joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403750
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov dword [ebp - 0x2c], edx
test eax, eax
je 0x4037f0
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll__open
mov esi, eax
test eax, eax
js 0x4037e6
xor ebx, ebx
mov dword [esp + 8], 0x2000
mov dword [esp + 4], 0x47d060
mov dword [esp], esi
call sub.msvcrt.dll__read
mov ecx, eax
sar ecx, 0x1f
mov edi, eax
or edi, ecx
je 0x4037ce
not ebx
add eax, 0x47d060
cmp eax, 0x47d060
jbe 0x4037ca
mov edx, 0x47d060
nop
mov cl, byte [edx]
xor ecx, ebx
movzx ecx, cl
shr ebx, 8
xor ebx, dword [ecx*4 + 0x465be0]
inc edx
cmp eax, edx
ja 0x4037b4
not ebx
jmp 0x40377c
mov dword [esp], esi
call sub.msvcrt.dll__close
xor eax, eax
cmp dword [ebp - 0x2c], ebx
sete al
add esp, 0x3c
pop ebx
pop esi
pop edi
leave
ret
xor eax, eax
add esp, 0x3c
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp + 4], 0x413
mov dword [esp], str..._.._.._binutils_2.16.1_bfd_opncls.c
mov dword [ebp - 0x1c], eax
call fcn.00404f00
mov eax, dword [ebp - 0x1c]
jmp 0x403764

Function at 0x404b84
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
test eax, eax
je 0x404bd8
mov edi, str.default
mov ecx, 8
mov esi, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x404bec
mov dword [ebx + 0x18], 1
mov eax, dword [0x4643c4]
test eax, eax
je 0x404bc4
mov dword [ebx + 8], eax
add esp, 0x1c
pop ebx
pop esi
pop edi
leave
ret
mov eax, dword [0x4643c0]
mov eax, dword [eax]
mov dword [ebx + 8], eax
add esp, 0x1c
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp], str.GNUTARGET
call sub.msvcrt.dll_getenv
test eax, eax
je 0x404ba7
jmp 0x404b97
mov dword [ebx + 0x18], 0
call fcn.00404a90
test eax, eax
jne 0x404bb7
jmp 0x404bba
Function at 0x406078
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi]
lea ecx, [esi + 1]
test eax, eax
je 0x406128
xor edx, edx
add edx, eax
shl eax, 0x11
lea eax, [edx + eax]
mov edx, eax
shr edx, 2
xor edx, eax
movzx eax, byte [ecx]
inc ecx
test eax, eax
jne 0x406094
mov edi, esi
not edi
lea edi, [ecx + edi]
lea edx, [edi + edx]
mov eax, edi
shl eax, 0x11
add edx, eax
mov eax, edx
shr eax, 2
xor eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 8]
xor edx, edx
div dword [ecx + 4]
shl edx, 2
mov dword [ebp - 0x20], edx
mov eax, dword [ecx]
mov ebx, dword [eax + edx]
test ebx, ebx
je 0x406115
mov dword [ebp - 0x24], edi
mov edi, esi
mov esi, dword [ebp - 0x1c]
jmp 0x4060ee
mov ebx, dword [ebx]
test ebx, ebx
je 0x406110
cmp dword [ebx + 8], esi
jne 0x4060e8
mov eax, dword [ebx + 4]
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x4060e8
mov eax, ebx
add esp, 0x2c
pop ebx
pop esi
pop edi
leave
ret
mov esi, edi
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp + 0x10]
test edx, edx
jne 0x40612f
xor ebx, ebx
mov eax, ebx
add esp, 0x2c
pop ebx
pop esi
pop edi
leave
ret
xor edx, edx
jmp 0x4060ab
mov dword [esp + 8], esi
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [eax + 8]
mov ebx, eax
test eax, eax
je 0x406106
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x406192
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xc]
mov edx, 1
inc edi
mov dword [ebp - 0x28], edi
je 0x406164
mov edx, edi
add edx, 7
and edx, 0xfffffff8
mov ecx, dword [eax + 4]
cmp edx, ecx
ja 0x4061ae
mov edi, dword [eax]
add edi, edx
mov dword [eax], edi
sub ecx, edx
mov dword [eax + 4], ecx
sub edi, edx
mov dword [ebp - 0x24], edi
cmp dword [ebp - 0x24], 0
je 0x4061bf
mov edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x24]
mov dword [ebx + 4], esi
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp + 8]
add eax, dword [edx]
mov edx, dword [eax]
mov dword [ebx], edx
mov dword [eax], ebx
jmp 0x406106
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0045c2b0
mov dword [ebp - 0x24], eax
jmp 0x406181
mov dword [esp], 6
call fcn.00404d18
xor ebx, ebx
jmp 0x406106
Function at 0x410920
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov byte [ebp - 0x45], 0x3a
mov eax, edx
shr eax, 4
and eax, 0xf
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [ebp - 0x44], al
mov eax, edx
and eax, 0xf
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [ebp - 0x43], al
mov eax, ecx
shr eax, 8
movzx edx, al
shr edx, 4
mov dl, byte [edx + str.0123456789ABCDEF]
mov byte [ebp - 0x42], dl
mov edx, eax
and edx, 0xf
mov dl, byte [edx + str.0123456789ABCDEF]
mov byte [ebp - 0x41], dl
movzx edx, cl
shr edx, 4
mov dl, byte [edx + str.0123456789ABCDEF]
mov byte [ebp - 0x40], dl
mov edx, ecx
and edx, 0xf
mov dl, byte [edx + str.0123456789ABCDEF]
mov byte [ebp - 0x3f], dl
mov edx, edi
shr edx, 4
and edx, 0xf
mov dl, byte [edx + str.0123456789ABCDEF]
mov byte [ebp - 0x3e], dl
mov edx, edi
and edx, 0xf
mov dl, byte [edx + str.0123456789ABCDEF]
mov byte [ebp - 0x3d], dl
mov ebx, dword [ebp - 0x4c]
lea ebx, [ecx + ebx]
add ebx, eax
add ebx, edi
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x410a71
xor edx, edx
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x5c], ebx
nop
mov bl, byte [esi + edx]
mov cl, bl
shr cl, 4
mov edi, ecx
and edi, 0xf
mov cl, byte [edi + str.0123456789ABCDEF]
mov byte [eax], cl
movzx ecx, bl
mov edi, ecx
and edi, 0xf
mov bl, byte [edi + str.0123456789ABCDEF]
mov byte [eax + 1], bl
add dword [ebp - 0x5c], ecx
inc edx
add eax, 2
cmp dword [ebp - 0x4c], edx
ja 0x4109d4
mov ebx, dword [ebp - 0x5c]
lea esi, [eax + 1]
lea ecx, [eax + 2]
lea edx, [eax + 3]
mov edi, ebx
neg edi
mov ebx, edi
and ebx, 0xff
shr ebx, 4
mov bl, byte [ebx + str.0123456789ABCDEF]
mov byte [eax], bl
and edi, 0xf
mov al, byte [edi + str.0123456789ABCDEF]
mov byte [esi], al
mov byte [ecx], 0xd
mov byte [edx], 0xa
mov eax, dword [ebp - 0x4c]
lea ebx, [eax + eax + 0xd]
mov ecx, dword [ebp - 0x50]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], 0
lea eax, [ebp - 0x45]
mov dword [esp], eax
call fcn.00407fc8
xor eax, ebx
or eax, edx
sete al
movzx eax, al
add esp, 0x6c
pop ebx
pop esi
pop edi
leave
ret
lea edx, [ebp - 0x39]
lea ecx, [ebp - 0x3a]
lea esi, [ebp - 0x3b]
lea eax, [ebp - 0x3c]
jmp 0x410a12
Function at 0x457eac
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 4
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x14]
cmp edi, 0
ja 0x457ecb
cmp edx, 1
jbe 0x457ef8
mov ecx, dword [eax + 0x28]
mov eax, 1
xor edx, edx
lea esi, [esi]
mov ebx, dword [ecx + 4]
mov dword [ebx + 0x10], 0
add eax, 1
adc edx, 0
add ecx, 4
mov esi, edx
xor esi, edi
mov ebx, dword [ebp - 0x10]
xor ebx, eax
or esi, ebx
jne 0x457ed8
pop edx
pop ebx
pop esi
pop edi
leave
ret
Function at 0x458c6c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x30], ecx
mov ebx, edx
mov edx, dword [eax + 0x24]
test edx, edx
jne 0x458d84
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x458e54
xor eax, eax
xor ebx, ebx
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x20]
nop
movzx edx, byte [edi + eax]
mov ecx, edx
shl ecx, 0x11
lea edx, [ecx + edx]
add edx, ebx
mov ebx, edx
shr ebx, 2
xor ebx, edx
inc eax
cmp eax, esi
jb 0x458ca4
mov eax, ebx
mov ecx, dword [ebp - 0x1c]
xor edx, edx
div dword [ecx + 4]
shl edx, 2
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [eax + ecx]
test eax, eax
je 0x458e08
mov edx, dword [ebp - 0x28]
jmp 0x458cf2
mov eax, dword [eax]
test eax, eax
je 0x458e08
cmp dword [eax + 8], ebx
jne 0x458ce8
cmp dword [eax + 0xc], edx
jne 0x458ce8
mov esi, dword [eax + 4]
cmp edx, edx
mov edi, dword [ebp - 0x20]
mov ecx, edx
repe cmpsb byte [esi], byte es:[edi]
seta byte [ebp - 0x21]
setb cl
cmp byte [ebp - 0x21], cl
jne 0x458ce8
mov edx, dword [ebp - 0x30]
cmp dword [eax + 0x10], edx
jae 0x458e15
cmp dword [ebp + 8], 0
je 0x458e13
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 0x20]
mov dword [esp + 8], ecx
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.00458c08
test eax, eax
je 0x458e15
mov edx, dword [ebp - 0x20]
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov ecx, dword [ebp - 0x28]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 0x30]
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
add edx, dword [ecx]
mov ecx, dword [edx]
mov dword [eax], ecx
mov dword [edx], eax
jmp 0x458e15
mov edx, dword [ebp - 0x1c]
mov ecx, dword [edx + 0x20]
cmp ecx, 1
je 0x458e1d
test ecx, ecx
je 0x458de4
xor edi, edi
xor edx, edx
nop
movzx esi, byte [ebx]
mov eax, esi
test al, al
jne 0x458dbb
xor eax, eax
jmp 0x458db2
cmp byte [ebx + eax], 0
jne 0x458db7
inc eax
cmp ecx, eax
ja 0x458dac
cmp eax, ecx
je 0x458de8
xor eax, eax
jmp 0x458dc4
movzx esi, byte [ebx + eax]
and esi, 0xff
lea edx, [esi + edx]
shl esi, 0x11
lea esi, [edx + esi]
mov edx, esi
shr edx, 2
xor edx, esi
inc eax
cmp ecx, eax
ja 0x458dc0
add ebx, ecx
inc edi
jmp 0x458d9c
xor edi, edi
xor edx, edx
lea eax, [edi + edx]
mov edx, edi
shl edx, 0x11
add eax, edx
imul edi, ecx
mov ebx, eax
shr ebx, 2
xor ebx, eax
add edi, ecx
mov dword [ebp - 0x28], edi
jmp 0x458cbe
mov eax, dword [ebp + 8]
test eax, eax
jne 0x458d38
xor eax, eax
add esp, 0x3c
pop ebx
pop esi
pop edi
leave
ret
mov eax, dword [ebp - 0x20]
movzx edx, byte [eax]
test edx, edx
je 0x458e62
xor edi, edi
xor eax, eax
mov ebx, dword [ebp - 0x20]
nop
lea eax, [edx + eax]
shl edx, 0x11
lea edx, [eax + edx]
mov eax, edx
shr eax, 2
xor eax, edx
inc edi
movzx edx, byte [ebx + edi]
test edx, edx
jne 0x458e30
add eax, edi
mov edx, edi
shl edx, 0x11
add eax, edx
jmp 0x458df5
mov dword [ebp - 0x2c], 0
xor ebx, ebx
jmp 0x458cce
xor edi, edi
xor eax, eax
jmp 0x458e49
Function at 0x45bf7c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov edi, dword [0x47f45c]
test edi, edi
je 0x45bf9c
mov eax, edi
add esp, 0x2c
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp], str.TMPDIR
call sub.msvcrt.dll_getenv
mov ebx, eax
test eax, eax
jne 0x45c070
mov dword [esp], 0x47886b
call sub.msvcrt.dll_getenv
mov ebx, eax
test eax, eax
jne 0x45c14d
mov dword [esp], str.TEMP
call sub.msvcrt.dll_getenv
mov ebx, eax
test eax, eax
jne 0x45c03d
mov dword [esp + 4], 7
mov dword [esp], 0x478860
call sub.msvcrt.dll__access
test eax, eax
jne 0x45c0a2
mov esi, 2
mov eax, 3
mov dword [ebp - 0x1c], 1
mov ebx, 0x478860
mov dword [esp], eax
call fcn.0045be38
mov edi, eax
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
mov eax, dword [ebp - 0x1c]
mov byte [edi + eax], 0x2f
mov byte [edi + esi], 0
mov dword [0x47f45c], edi
mov eax, edi
add esp, 0x2c
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp + 4], 7
mov dword [esp], ebx
call sub.msvcrt.dll__access
test eax, eax
jne 0x45bfda
lea esi, [esi]
xor eax, eax
mov ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
lea eax, [ecx - 1]
mov dword [ebp - 0x1c], eax
lea eax, [ecx + 1]
mov esi, ecx
jmp 0x45c00c
mov dword [esp + 4], 7
mov dword [esp], eax
call sub.msvcrt.dll__access
test eax, eax
jne 0x45bfb2
mov dword [esp], 0x47886b
call sub.msvcrt.dll_getenv
mov dword [esp], str.TEMP
call sub.msvcrt.dll_getenv
jmp 0x45c054
mov dword [esp + 4], 7
mov dword [esp], str._var_tmp
call sub.msvcrt.dll__access
test eax, eax
jne 0x45c0db
mov edi, str._var_tmp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea eax, [ecx - 1]
mov dword [ebp - 0x1c], eax
lea eax, [ecx + 1]
mov esi, ecx
mov ebx, str._var_tmp
jmp 0x45c00c
mov dword [esp + 4], 7
mov dword [esp], str._usr_tmp
call sub.msvcrt.dll__access
test eax, eax
jne 0x45c114
mov edi, str._usr_tmp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea eax, [ecx - 1]
mov dword [ebp - 0x1c], eax
lea eax, [ecx + 1]
mov esi, ecx
mov ebx, str._usr_tmp
jmp 0x45c00c
mov dword [esp + 4], 7
mov dword [esp], str._tmp
call sub.msvcrt.dll__access
test eax, eax
jne 0x45c16a
mov edi, str._tmp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea eax, [ecx - 1]
mov dword [ebp - 0x1c], eax
lea eax, [ecx + 1]
mov esi, ecx
mov ebx, str._tmp
jmp 0x45c00c
mov dword [esp + 4], 7
mov dword [esp], ebx
call sub.msvcrt.dll__access
test eax, eax
je 0x45c094
jmp 0x45bfc8
mov esi, 2
mov eax, 3
mov dword [ebp - 0x1c], 1
mov ebx, 0x478862
jmp 0x45c00c

Function at 0x45dcf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
mov ebx, dword [sym.imp.msvcrt.dll__iob]
mov dword [ebp - 4], esi
lea esi, [ebp + 0xc]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov eax, dword [ebp + 8]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
Function at 0x45dd40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x45dd66
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x45ddfa
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x45ddb5
cmp eax, 0x40
je 0x45ddb5
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x45dd59
cmp eax, 0x40
je 0x45dd59
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x45dd59
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.0045dcf0
lea esi, [esi]
lea edi, [edi]
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x408ecc
mov ecx, 0x66fe0c23
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..text
mov ebx, 0x42e1d0
nop
mov ecx, 0x14b95a58
nop
test eax, eax
nop
nop
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
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x401076
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [0x403040]
mov esi, eax
mov dword [ebp - 4], esi
cmp esi, 0xffffffff
jne 0x4010a5
xor eax, eax
jmp 0x4010c3
push ebx
push edi
push edi
push edi
push 2
push edi
push esi
call dword [0x403044]
mov ebx, eax
cmp ebx, edi
jne 0x4010c7
push esi
call dword [0x403048]
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret
push edi
push edi
push edi
push 4
push ebx
call dword [0x40304c]
mov esi, eax
cmp esi, edi
jne 0x4010eb
mov esi, dword [0x403048]
push ebx
call esi
push dword [ebp - 4]
call esi
mov eax, edi
jmp 0x4010c2
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x401105
mov eax, dword [esi + 0x3c]
add eax, esi
cmp dword [eax], 0x4550
jne 0x401105
mov esi, dword [eax + 0x34]
push esi
call dword [0x403050]
mov edi, esi
jmp 0x4010d9

Function at 0x40b000
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x40
lea eax, [esp + 0x44]
lea ecx, [esp]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push esi
mov esi, dword [esp + 0x50]
push edi
push 0
push eax
push 0x40
push ecx
push esi
call ebx
test eax, eax
je 0x40b175
cmp dword [esp + 0x54], 0x40
jne 0x40b175
cmp word [esp + 0x10], 0x5a4d
jne 0x40b175
mov edx, dword [esp + 0x4c]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push edx
push esi
call ebp
cmp eax, 0xffffffff
je 0x40b175
lea eax, [esp + 0x54]
push 0
push eax
push 0xf8
push 0x411960
push esi
call ebx
test eax, eax
je 0x40b175
cmp dword [esp + 0x54], 0xf8
jne 0x40b175
cmp dword [0x411960], 0x4550
jne 0x40b175
mov eax, dword [0x411976]
test ah, 0x20
jne 0x40b175
mov edx, dword [0x411a80]
xor eax, eax
mov ax, word [0x411966]
add eax, edx
lea eax, [eax + eax*4]
shl eax, 3
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [0x411a58], eax
je 0x40b175
push 1
push 0
push 0
push esi
call ebp
mov dword [0x411a6c], eax
xor eax, eax
mov ax, word [0x411966]
mov edx, dword [0x411a58]
lea ecx, [esp + 0x54]
push 0
lea edi, [eax + eax*4]
push ecx
shl edi, 3
push edi
push edx
push esi
call ebx
test eax, eax
je 0x40b175
cmp dword [esp + 0x54], edi
jne 0x40b175
push 1
push 0
push 0
push esi
call ebp
mov ecx, dword [0x411a80]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*8]
mov eax, dword [0x4119b4]
cmp edx, eax
ja 0x40b175
mov edi, dword [0x411a58]
mov ecx, dword [0x411988]
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
add eax, edx
cmp ecx, eax
jae 0x40b175
xor eax, eax
push 2
mov ax, word [0x411966]
push 0
push 0
push esi
lea ecx, [eax + eax*4]
mov ebx, dword [edi + ecx*8 - 0x18]
lea edi, [edi + ecx*8]
call ebp
mov edx, dword [edi - 0x14]
add edx, ebx
cmp eax, edx
jne 0x40b175
cmp dword [edi - 0x20], ebx
ja 0x40b175
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
Function at 0x40a397
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x419004]
xor eax, esp
mov dword [esp + 0x50], eax
push esi
mov esi, dword [ebp + 8]
push 0x406f00
push 0x406f1c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40a3d1
push 0x800
call eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0xc]
call fcn.00409496
push esi
lea ecx, [esp + 0x24]
call fcn.00408b70
lea ecx, [esp + 0x20]
call fcn.00408e9c
mov esi, eax
test esi, esi
jns 0x40a44f
lea ecx, [esp + 8]
call fcn.0040a30c
test al, al
je 0x40a499
cmp esi, 0x80040b00
jne 0x40a499
and dword [esp + 0x4c], 0
lea ecx, [esp + 0x20]
xor eax, eax
mov dword [esp + 0x50], 7
mov word [esp + 0x3c], ax
lea eax, [esp + 0x3c]
push eax
call fcn.00408f41
lea ecx, [esp + 0x3c]
mov esi, eax
call fcn.004095f1
test esi, esi
js 0x40a499
mov esi, 0x80040b02
jmp 0x40a499
cmp dword [esp + 0x1c], 8
lea esi, [esp + 8]
jb 0x40a45e
mov esi, dword [esp + 8]
push 0x406d74
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40a491
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x40a48a
jle 0x40a499
movzx esi, si
or esi, 0x80070000
jmp 0x40a499
mov esi, 0x80004005
jmp 0x40a499
push dword [ebp + 0x14]
push esi
call eax
mov esi, eax
cmp dword [esp + 0x20], 0
je 0x40a4aa
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x24]
call fcn.004095f1
lea ecx, [esp + 8]
call fcn.004095f1
mov ecx, dword [esp + 0x54]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040ab91
mov esp, ebp
pop ebp
ret 0x10
Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..rsrc
nop
nop
mov ebx, 0x40915c
mov ecx, 0x20db2040
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f3f8
nop
mov ecx, 0x4b26b15
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x41a2af
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00419f5d

Function at 0x41de6c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041dceb

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

Disassembly:
pushal
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0xfca3ae5
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x6a00186d
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219