joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473770
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4879c0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push esi
push edi
mov eax, dword [0x4aa0cc]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x58]
lea ecx, [esp + 0x44]
push ecx
push 0x4aa820
push str.GroupSize
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 4]
call eax
xor ecx, ecx
mov dword [esp + 0x1c], 0xffffffff
test al, al
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
cmovne ecx, dword [esp + 0x44]
mov dword [edi + 0x3c], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov byte [esp + 0xc], 0
mov dword [esp + 0x50], 3
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov byte [esp + 0x28], 0
mov byte [esp + 0x50], 7
test ecx, ecx
je 0x473842
lea eax, [esp + 0xc]
mov ecx, esi
push eax
push str.Separator
push str.Grouper
call fcn.004732c0
jmp 0x473858
mov eax, dword [esi]
lea ecx, [esp + 0xc]
push ecx
push 0x4ab4b8
push str.Separator
mov ecx, esi
call dword [eax + 4]
mov eax, dword [esi]
lea ecx, [esp + 0x28]
push ecx
push 0x4ab4b8
push str.Terminator
mov ecx, esi
call dword [eax + 4]
cmp byte [esp + 0xc], 0
je 0x47387f
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
jmp 0x473887
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
lea ecx, [edi + 0x1c]
call fcn.0045ca80
cmp byte [esp + 0x28], 0
je 0x4738a2
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
jmp 0x4738aa
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
lea ecx, [edi + 0x2c]
call fcn.0045ca80
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x3c]
cmp eax, dword [esp + 0x3c]
lea ecx, [esp + 0x38]
mov dword [edi + 0x40], 0
cmovae ecx, edx
mov byte [esp + 0x50], 3
mov edx, dword [esp + 0x40]
test edx, edx
je 0x4738ec
mov ecx, dword [ecx]
mov edi, edx
xor al, al
rep stosb byte es:[edi], al
push edx
call sub.MSVCR120.dll_free
add esp, 4
mov edx, dword [esp + 0x24]
mov dword [esp + 0x50], 0xffffffff
test edx, edx
je 0x473920
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
cmp eax, dword [esp + 0x20]
lea esi, [esp + 0x20]
mov edi, edx
cmovae ecx, esi
xor al, al
push edx
mov ecx, dword [ecx]
rep stosb byte es:[edi], al
call sub.MSVCR120.dll_free
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x48
ret 4
Function at 0x4749c0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x10
push ebx
push ebp
xor edx, edx
push esi
mov dword [esp + 0x18], edx
push edi
lea ecx, [ecx]
movzx edi, byte [edx + 0x48da90]
mov eax, edi
mov dword [esp + 0x10], edi
shr eax, 5
mov esi, edi
mov edx, eax
shr esi, 6
mov ebx, eax
lea ecx, [edi + edi]
xor ecx, edi
and eax, 1
mov dword [esp + 0x14], eax
and ebx, 2
shr edi, 7
and edx, 4
imul eax, edi, 0x1b000000
lea ebp, [ecx + ecx]
mov dword [esp + 0x18], edx
xor ebp, dword [esp + 0x10]
mov edx, esi
shl ebp, 0x19
and esi, 1
shl ecx, 2
and edx, 2
xor ebp, eax
xor ecx, dword [esp + 0x10]
imul eax, dword [esp + 0x14], 0x1b000000
shl ecx, 8
xor ebp, eax
imul eax, ebx, 0x1b000000
xor ebp, eax
imul eax, esi, 0x1b000000
xor ebp, eax
imul eax, edx, 0x1b000000
xor ebp, eax
imul eax, dword [esp + 0x18], 0x1b000000
xor ebp, eax
imul eax, dword [esp + 0x14], 0x11b00
xor ecx, eax
imul eax, ebx, 0x11b00
xor ecx, eax
imul eax, esi, 0x11b00
mov esi, dword [esp + 0x18]
xor ecx, eax
imul eax, edx, 0x11b00
mov edx, dword [esp + 0x10]
xor ecx, eax
imul eax, esi, 0x11b00
xor ecx, eax
mov eax, dword [esp + 0x10]
or ebp, ecx
lea ecx, [eax*8]
xor ecx, eax
imul eax, dword [esp + 0x14], 0x11b0000
shl ecx, 0x10
xor ecx, eax
imul eax, ebx, 0x11b0000
xor ecx, eax
imul eax, esi, 0x11b0000
xor ecx, eax
mov eax, dword [esp + 0x10]
or ebp, ecx
lea ecx, [eax*4]
xor ecx, eax
imul eax, edi, 0x11b
add ecx, ecx
xor ecx, eax
imul eax, dword [esp + 0x14], 0x11b
xor ecx, eax
imul eax, ebx, 0x11b
xor ecx, eax
imul eax, esi, 0x11b
xor ecx, eax
xor eax, eax
xor ecx, edx
or edx, ebp
or ecx, ebp
or eax, edx
mov edx, dword [esp + 0x1c]
mov dword [edx*8 + 0x4adaf8], eax
mov dword [edx*8 + 0x4adafc], ecx
inc edx
mov dword [esp + 0x1c], edx
cmp edx, 0x100
jl 0x4749d0
pop edi
pop esi
pop ebp
mov byte [0x4adaf1], 1
pop ebx
add esp, 0x10
ret

Function at 0x474b20
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push esi
xor eax, eax
push edi
movzx esi, byte [eax + str.cw]
mov edx, esi
mov ecx, esi
shr edx, 7
imul edi, edx, 0x1b000000
shl ecx, 0x19
imul edx, edx, 0x11b
xor edi, ecx
mov ecx, esi
shl ecx, 8
or ecx, esi
shl ecx, 8
or edi, ecx
lea ecx, [esi + esi]
xor edx, ecx
xor ecx, ecx
xor edx, esi
or ecx, edi
or edx, edi
mov dword [eax*8 + 0x4ad2e0], ecx
mov dword [eax*8 + 0x4ad2e4], edx
inc eax
cmp eax, 0x100
jl 0x474b24
xorps xmm0, xmm0
pop edi
movlpd qword [0x4adae8], xmm0
movlpd qword [0x4adae0], xmm0
mov byte [0x4adaf0], 1
pop esi
ret
Function at 0x477380
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x487a91
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4aa0cc]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x4aa0cc]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
push 0x23
push str.Inflator:_error_in_compressed_block
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], esi
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
call fcn.00402190
mov ecx, esi
mov dword [esp + 0x30], 0
call dword [sym.imp.MSVCR120.dll_public:_void___thiscall_std::exception::constructor_void_]
push 0xffffffffffffffff
lea ecx, [esi + 0x10]
mov dword [esi], vtable.CryptoPP::Exception.0
mov dword [esi + 0xc], 4
lea eax, [esp + 0x10]
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [esp + 0x3c], 1
mov byte [ecx], 0
call fcn.00401e90
cmp dword [esp + 0x20], 0x10
mov dword [esi], vtable.CryptoPP::Inflator::Err.0
jb 0x477437
push dword [esp + 0xc]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
mov dword [esi], vtable.CryptoPP::Inflator::BadBlockErr.0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0047dbfe
add esp, 0x2c
ret

Function at 0x4774f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x487a91
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4aa0cc]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x4aa0cc]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
push 0x1f
push str.Inflator:_error_in_bit_distance
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], esi
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
call fcn.00402190
mov ecx, esi
mov dword [esp + 0x30], 0
call dword [sym.imp.MSVCR120.dll_public:_void___thiscall_std::exception::constructor_void_]
push 0xffffffffffffffff
lea ecx, [esi + 0x10]
mov dword [esi], vtable.CryptoPP::Exception.0
mov dword [esi + 0xc], 4
lea eax, [esp + 0x10]
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [esp + 0x3c], 1
mov byte [ecx], 0
call fcn.00401e90
cmp dword [esp + 0x20], 0x10
mov dword [esi], vtable.CryptoPP::Inflator::Err.0
jb 0x4775a7
push dword [esp + 0xc]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
mov dword [esi], vtable.CryptoPP::Inflator::BadDistanceErr.0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0047dbfe
add esp, 0x2c
ret
Function at 0x477a30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x487a91
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4aa0cc]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x4aa0cc]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
push 0x2c
push str.Inflator:_unexpected_end_of_compressed_block
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], esi
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
call fcn.00402190
mov ecx, esi
mov dword [esp + 0x30], 0
call dword [sym.imp.MSVCR120.dll_public:_void___thiscall_std::exception::constructor_void_]
push 0xffffffffffffffff
lea ecx, [esi + 0x10]
mov dword [esi], vtable.CryptoPP::Exception.0
mov dword [esi + 0xc], 4
lea eax, [esp + 0x10]
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [esp + 0x3c], 1
mov byte [ecx], 0
call fcn.00401e90
cmp dword [esp + 0x20], 0x10
mov dword [esi], vtable.CryptoPP::Inflator::Err.0
jb 0x477ae7
push dword [esp + 0xc]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
mov dword [esi], vtable.CryptoPP::Inflator::UnexpectedEndErr.0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0047dbfe
add esp, 0x2c
ret

Function at 0x479d30
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 8
mov edx, dword [esp + 0x14]
mov eax, 0
push ebx
xor bl, bl
test byte [esp + 0x10], 3
push ebp
sete al
push esi
test eax, eax
je 0x479de5
test cl, 3
mov eax, 0
sete al
test eax, eax
je 0x479de5
test edx, edx
je 0x479e05
mov ebx, dword [esp + 0x18]
xor eax, eax
push edi
mov edi, edx
mov dword [esp + 0x10], eax
shr edi, 2
xor esi, esi
test edi, edi
je 0x479dac
sub ebx, ecx
mov dword [esp + 0x14], edi
mov esi, ecx
xor ebp, ebp
mov eax, dword [ebx + esi]
lea esi, [esi + 4]
xor eax, dword [esi - 4]
or ebp, eax
dec edi
jne 0x479d90
mov ebx, dword [esp + 0x1c]
mov eax, ebp
mov esi, dword [esp + 0x14]
mov dword [esp + 0x10], ebp
shl esi, 2
pop edi
sub edx, esi
jne 0x479dc6
mov ebp, dword [esp + 0xc]
xor eax, eax
pop esi
test ebp, ebp
pop ebp
sete al
pop ebx
add esp, 8
ret
add ebx, esi
add ecx, esi
mov dword [esp + 0x18], ebx
mov ebx, eax
shr eax, 0x10
shr ebx, 0x18
or bl, al
mov eax, dword [esp + 0xc]
shr eax, 8
or bl, al
or bl, byte [esp + 0xc]
test edx, edx
je 0x479e05
mov eax, dword [esp + 0x18]
sub eax, ecx
mov dword [esp + 0x18], eax
mov al, byte [ecx + eax]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
or bl, al
mov eax, dword [esp + 0x18]
dec edx
jne 0x479df3
xor eax, eax
test bl, bl
pop esi
pop ebp
sete al
pop ebx
add esp, 8
ret
Function at 0x47d7f0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov ecx, dword [esp + 8]
mov eax, ecx
mov edx, dword [esp + 4]
add eax, eax
lea ecx, [ecx*4 - 4]
movdqa xmm0, xmmword [edx + eax*8]
movdqa xmm1, xmmword [edx]
movdqa xmmword [edx], xmm0
movdqa xmmword [edx + eax*8], xmm1
mov eax, 4
cmp ecx, eax
jbe 0x47d840
mov edi, edi
aesimc xmm0, xmmword [edx + ecx*4]
aesimc xmm1, xmmword [edx + eax*4]
movdqa xmmword [edx + eax*4], xmm0
add eax, 4
movdqa xmmword [edx + ecx*4], xmm1
sub ecx, 4
cmp eax, ecx
jb 0x47d820
aesimc xmm0, xmmword [edx + eax*4]
movdqa xmmword [edx + eax*4], xmm0
ret

Function at 0x47d850
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x28
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push edi
push eax
push esi
movdqu xmm0, xmmword [eax + edi - 0x10]
movdqa xmmword [esp + 0x2c], xmm0
call sub.MSVCR120.dll_memcpy
movdqa xmm1, xmmword [esp + 0x2c]
mov edx, edi
shr edx, 2
add esp, 0xc
aeskeygenassist xmm0, xmm1, 0
pextrd ecx, xmm0, 3
xor ecx, dword [esi]
lea edi, [esi + edx*4]
lea eax, [edx + 7]
mov dword [esp + 8], 0x48d954
shl eax, 4
xor ecx, 1
add eax, esi
mov dword [edi], ecx
mov dword [esp + 0xc], eax
lea eax, [edx*4]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 4]
xor eax, ecx
mov dword [edi + 4], eax
mov ecx, dword [esi + 8]
xor ecx, eax
lea eax, [edx*4 + 8]
mov dword [eax + esi], ecx
mov dword [esp + 0x14], eax
lea eax, [edx*4 + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0xc]
xor eax, ecx
mov dword [esi + edx*4 + 0xc], eax
lea eax, [edx*4 + 0x10]
mov dword [esp + 0x1c], eax
add eax, esi
cmp eax, dword [esp + 0xc]
je 0x47d9be
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + 0xc]
cmp eax, 0x18
jne 0x47d926
mov eax, dword [esi + 0x24]
xor eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
xor ecx, eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
pinsrd xmm1, ecx, 3
jmp 0x47d96b
cmp eax, 0x20
jne 0x47d964
pinsrd xmm1, dword [esi + 0x2c], 3
mov eax, dword [esi + 0x14]
aeskeygenassist xmm0, xmm1, 0
pextrd ecx, xmm0, 2
xor ecx, dword [esi + 0x10]
xor eax, ecx
mov dword [esi + 0x30], ecx
mov ecx, dword [esi + 0x18]
xor ecx, eax
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x1c]
xor eax, ecx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
pinsrd xmm1, eax, 3
jmp 0x47d96b
pinsrd xmm1, dword [esi + 0x1c], 3
mov ecx, dword [esp + 8]
mov esi, edi
aeskeygenassist xmm0, xmm1, 0
pextrd eax, xmm0, 3
lea edi, [edx + esi]
xor eax, dword [ecx]
add ecx, 4
xor eax, dword [esi]
mov dword [edi], eax
mov eax, dword [esi + 4]
xor eax, dword [edi]
mov dword [edx + esi + 4], eax
mov dword [esp + 8], ecx
mov ecx, dword [esi + 8]
xor ecx, eax
mov eax, dword [esp + 0x14]
mov dword [eax + esi], ecx
mov eax, dword [esi + 0xc]
xor eax, ecx
mov ecx, dword [esp + 0x18]
mov dword [ecx + esi], eax
mov eax, dword [esp + 0x1c]
add eax, esi
cmp eax, dword [esp + 0xc]
jne 0x47d905
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x480bc0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00480bd0

Function at 0x480e50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x480e5c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.00480e70
Function at 0x406ccd
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push ebp
push esi
xor esi, esi
push edi
mov edi, ecx
mov eax, esi
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmmword [0x15e9d290]
movups xmmword [edi + eax*4], xmm0
add eax, 4
cmp eax, 0x100
jl 0x406cd7
mov ebp, dword [esp + 0x14]
mov ebx, esi
xor edx, edx
mov eax, ebx
div dword [esp + 0x18]
movzx eax, byte [edx + ebp]
add eax, dword [edi + ebx*4]
add esi, eax
and esi, 0x800000ff
jns 0x406d1d
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [edi + ebx*4]
mov eax, dword [edi + esi*4]
mov dword [edi + ebx*4], eax
inc ebx
movzx eax, cl
mov dword [edi + esi*4], eax
cmp ebx, 0x100
jl 0x406cfc
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x406d3c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x400
lea eax, [esp]
push ebx
push esi
push edi
push 0x400
push ecx
xor esi, esi
push eax
mov edi, esi
call fcn.00436910
mov edx, dword [esp + 0x420]
add esp, 0xc
mov ebx, esi
add edx, 1
je 0x406dcc
push ebp
mov ebp, dword [esp + 0x414]
inc esi
and esi, 0x800000ff
jns 0x406d82
dec esi
or esi, 0xffffff00
inc esi
mov eax, dword [esp + esi*4 + 0x10]
add edi, eax
and edi, 0x800000ff
jns 0x406d98
dec edi
or edi, 0xffffff00
inc edi
mov cl, al
mov eax, dword [esp + edi*4 + 0x10]
mov dword [esp + esi*4 + 0x10], eax
movzx eax, cl
mov dword [esp + edi*4 + 0x10], eax
mov ecx, dword [esp + esi*4 + 0x10]
add ecx, eax
and ecx, 0x800000ff
jns 0x406dbf
dec ecx
or ecx, 0xffffff00
inc ecx
mov al, byte [esp + ecx*4 + 0x10]
xor byte [ebx + ebp], al
inc ebx
cmp ebx, edx
jb 0x406d71
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x400
ret 8
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x95658fb
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x324d0263
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
mov esi, eax
test eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x4014e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
xor esi, esi
call fcn.004014a0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4015a8
push ebx
push esi
push esi
push 3
push esi
push 3
push 0x80000000
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401572
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x401572
lea eax, [esi + 1]
push eax
call fcn.00406d70
mov edi, eax
add esp, 4
test edi, edi
je 0x401572
push 0
lea eax, [ebp - 4]
mov byte [edi + esi], 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401560
cmp dword [ebp - 4], esi
jne 0x401560
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x10], eax
jmp 0x40158b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x401572
push 0x26
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov dword [ebp + 0x10], eax
call fcn.00406d6b
add esp, 4
xor edi, edi
cmp ebx, 0xffffffff
je 0x401592
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
test edi, edi
jne 0x4015a8
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004015d0
push edi
mov esi, eax
call fcn.00406d6b
add esp, 0x14
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401b70
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0xffffffff
je 0x401c15
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x401c15
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x401c15
mov ebx, dword [ebp + 0x14]
push ebx
call fcn.00406d70
mov esi, eax
add esp, 4
test esi, esi
je 0x401c0f
push 0
lea eax, [ebp - 4]
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401bf9
cmp dword [ebp - 4], ebx
jne 0x401bf9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x401c29
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
test eax, eax
jne 0x401c15
push 0x26
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x401c15
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push esi
mov ebx, eax
call fcn.00406d6b
add esp, 4
xor esi, esi
cmp edi, 0xffffffff
je 0x401c30
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401c40
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x401d15
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x401d15
xor eax, eax
cmp dword [ebp + 0x14], eax
push ebx
push ebx
setne al
add eax, 2
push eax
push ebx
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401cdb
cmp dword [ebp + 0x14], ebx
je 0x401cab
push 2
xorps xmm0, xmm0
push ebx
movlpd qword [ebp - 0xc], xmm0
push dword [ebp - 8]
push dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
cmp eax, 0xffffffff
je 0x401cdb
push 0
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401cd1
cmp edi, dword [ebp - 4]
jne 0x401cd1
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x401cea
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
mov edi, eax
cmp esi, 0xffffffff
je 0x401cf5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x401d05
mov esi, dword [ebp + 8]
cmp dword [ebp + 0x14], 0
jne 0x401d05
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x401cf8