joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007f7d5
Capabilities:
Get file system object information

Disassembly:
push 0x394
mov eax, 0x10198827
call fcn.1017569b
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3a0], edi
test ecx, ecx
je 0x1007f96c
mov eax, dword [ebp + 0x10]
xor esi, esi
sub eax, esi
je 0x1007f93e
sub eax, 1
je 0x1007f854
sub eax, 1
je 0x1007f82c
sub eax, 1
je 0x1007f854
push 0x101d4e14
mov ecx, edi
call fcn.10006910
mov eax, edi
call fcn.10175645
ret 0x10
push 0x408
push 0x160
lea eax, [ebp - 0x39c]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x1007f816
lea eax, [ebp - 0x28c]
push eax
jmp 0x1007f81b
lea eax, [ebp - 0x114]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x1007f816
push esi
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], esi
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x238], esi
push eax
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x228], esi
call fcn.100793e8
test eax, eax
je 0x1007f816
call fcn.100399ad
push eax
lea ecx, [ebp - 0x3a0]
call fcn.100061a0
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x1007f8f4
test byte [ebp - 0x21c], 0x18
jne 0x1007f916
mov eax, dword [ebx]
lea ecx, [ebp - 0x3a0]
push ecx
push dword [ebp - 0x220]
mov esi, dword [eax + 0x1a0]
mov ecx, esi
push dword [ebp - 0x224]
call dword [0x101a4a04]
mov ecx, ebx
call esi
jmp 0x1007f916
mov eax, dword [ebx]
lea ecx, [ebp - 0x3a0]
push ecx
lea ecx, [ebp - 0x234]
push ecx
mov esi, dword [eax + 0x1a4]
mov ecx, esi
call dword [0x101a4a04]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x3a0]
add eax, 0xfffffff0
push eax
call fcn.10005d80
pop ecx
mov ecx, dword [ebp - 0x3a0]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.10006560
jmp 0x1007f822
push 0x208
push 0x160
lea eax, [ebp - 0x39c]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x1007f816
lea eax, [ebp - 0x390]
jmp 0x1007f851
call fcn.100393ac
int3

Function at 0x1007faff
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.10100b75
call fcn.1003a01d
cmp dword [eax + 0x14], 0
jne 0x1007fb1a
mov ecx, esi
pop esi
jmp fcn.1007ee24
pop esi
ret
Function at 0x10088361
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x101f9e44]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [esi - 0x60]
cmp eax, 9
ja 0x10088390
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x100883bd
cmp dword [0x1020113c], 0
jne 0x100883bd
lea eax, [esi - 0x41]
cmp eax, 0x19
jbe 0x100883b9
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jb 0x100883b9
push esi
call fcn.10185197
pop ecx
jmp 0x1008842a
mov eax, esi
jmp 0x1008842a
xor eax, eax
mov word [ebp - 0x10c], ax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
call fcn.10036f2a
push dword [eax + 0x30]
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 1
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
push esi
call dword [sym.imp.USER32.dll_ToAsciiEx]
mov al, byte [ebp - 0x10c]
mov byte [ebp - 0x108], al
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 0x107], 0
call dword [sym.imp.USER32.dll_CharUpperA]
movsx eax, byte [ebp - 0x108]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10174d8d
leave
ret 4
Function at 0x100b655f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push edi
test esi, esi
jne 0x100b6578
call fcn.10039fc9
mov esi, dword [eax + 0xc]
push 0x101b3378
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x100b65ba
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100b65ba
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x100b65ba
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.100b65c3
jmp 0x100b65bc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x100dc00f
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
mov ecx, 0x104
mov eax, dword [esi + 4]
cmp eax, ecx
ja 0x100dc1a2
je 0x100dc1c8
cmp eax, 0xa1
jb 0x100dc206
cmp eax, 0xa2
jbe 0x100dc1c8
cmp eax, 0xa3
jbe 0x100dc206
cmp eax, 0xa5
jbe 0x100dc1c8
cmp eax, 0xa6
jbe 0x100dc206
cmp eax, 0xa8
jbe 0x100dc1c8
cmp eax, 0x100
jne 0x100dc206
cmp dword [edi + 0xc0], 0xffffffff
je 0x100dc1c8
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x100dc1c8
mov eax, dword [esi + 8]
sub eax, 0x21
je 0x100dc0f7
sub eax, 1
jne 0x100dc1c8
mov eax, dword [edi + 0xc0]
lea ebx, [eax + 1]
jmp 0x100dc0e6
mov eax, ebx
cdq
idiv ecx
mov eax, dword [edi]
mov ecx, edx
mov dword [ebp - 4], ecx
push ecx
mov esi, dword [eax + 0x27c]
mov ecx, esi
call dword [0x101a4a04]
mov ecx, edi
call esi
test eax, eax
jne 0x100dc143
mov eax, dword [edi + 0xc0]
inc ebx
mov ecx, dword [edi + 0xbc]
add eax, ecx
cmp ebx, eax
jl 0x100dc0bc
jmp 0x100dc220
mov ecx, dword [edi + 0xc0]
lea ebx, [ecx - 1]
add ebx, dword [edi + 0xbc]
cmp ebx, ecx
jle 0x100dc220
mov eax, ebx
cdq
idiv dword [edi + 0xbc]
mov eax, dword [edi]
mov ecx, edx
mov dword [ebp - 4], ecx
push ecx
mov esi, dword [eax + 0x27c]
mov ecx, esi
call dword [0x101a4a04]
mov ecx, edi
call esi
test eax, eax
jne 0x100dc143
dec ebx
cmp ebx, dword [edi + 0xc0]
jg 0x100dc10e
jmp 0x100dc220
mov eax, dword [edi]
push dword [ebp - 4]
mov dword [edi + 0x24c], 1
mov esi, dword [eax + 0x214]
mov ecx, esi
call dword [0x101a4a04]
mov ecx, edi
call esi
mov eax, dword [edi]
mov esi, dword [eax + 0x210]
mov ecx, esi
call dword [0x101a4a04]
mov ecx, edi
call esi
mov ecx, eax
call fcn.10042940
mov eax, dword [edi]
push dword [edi + 0xc0]
mov esi, dword [eax + 0x270]
mov ecx, esi
call dword [0x101a4a04]
mov ecx, edi
call esi
and dword [edi + 0x24c], 0
jmp 0x100dc220
cmp eax, 0x200
jb 0x100dc206
cmp eax, 0x202
jbe 0x100dc1c8
cmp eax, 0x203
jbe 0x100dc206
cmp eax, 0x205
jbe 0x100dc1c8
add eax, 0xfffffdf9
cmp eax, 1
ja 0x100dc206
mov eax, dword [edi + 0xfc]
test eax, eax
je 0x100dc1e7
cmp dword [eax + 0x20], ebx
je 0x100dc1e7
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [edi + 0xf8]
test eax, eax
je 0x100dc206
cmp dword [eax + 0x20], ebx
je 0x100dc206
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [esi + 4], 0x203
jne 0x100dc225
lea eax, [edi + 0x2250]
test eax, eax
je 0x100dc21c
mov ebx, dword [eax + 0x20]
cmp dword [esi], ebx
jne 0x100dc225
xor eax, eax
inc eax
jmp 0x100dc22d
push esi
mov ecx, edi
call fcn.100d6624
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x100f853e
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.10001e60
call fcn.1003a01d
cmp dword [eax + 0x14], 0
jne 0x100f8559
mov ecx, esi
pop esi
jmp fcn.100f7db3
pop esi
ret
Function at 0x10117789
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.101858d0
pop ecx
test eax, eax
jne 0x101177cb
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.10037ef9
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10117791
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
leave
ret
Function at 0x101393f7
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 4], esi
push edi
test ebx, ebx
je 0x101394ab
mov eax, dword [esi + 0x34c]
test eax, eax
je 0x101394a7
mov eax, dword [eax + 0x20]
test eax, eax
je 0x101394a7
cmp dword [ebx], eax
jne 0x101394a7
mov eax, dword [ebx + 4]
sub eax, 1
je 0x10139476
sub eax, 1
je 0x10139444
sub eax, 1
jne 0x101394a7
mov edi, 0x428e
jmp 0x1013947b
push 0x11
mov edi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x1013947b
mov eax, dword [esi]
mov esi, dword [eax + 0x340]
mov ecx, esi
call dword [0x101a4a04]
mov ecx, dword [ebp - 4]
call esi
test eax, eax
je 0x1013947b
add edi, 3
jmp 0x1013947b
mov edi, 0x3ea0
push edi
call fcn.100395fb
test eax, eax
je 0x101394ab
push edi
push eax
mov ecx, 0x10202740
call fcn.100062a0
test eax, eax
je 0x101394ab
mov eax, dword [0x10202740]
mov dword [ebx + 0xc], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
jmp 0x101394a0
call fcn.100393ac
int3

Function at 0x1016423b
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 8
mov eax, 0x1019cd81
call fcn.10175667
mov esi, ecx
mov dword [ebp - 0x14], esi
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x1016431b
mov edi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x1016431b
cmp edi, 0x43
je 0x10164280
cmp edi, 0x2d
jne 0x1016431b
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1016431b
call dword [sym.imp.USER32.dll_EmptyClipboard]
call fcn.100399ad
push eax
lea ecx, [ebp - 0x10]
call fcn.100061a0
movzx eax, byte [esi + 0xe6]
and dword [ebp - 4], 0
push eax
movzx eax, byte [esi + 0xe5]
push eax
movzx eax, byte [esi + 0xe4]
push eax
lea eax, [ebp - 0x10]
push str.RGB__d___d___d_
push eax
call fcn.10005f50
mov esi, dword [ebp - 0x10]
add esp, 0x14
mov eax, dword [esi - 0xc]
inc eax
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.10006560
mov esi, dword [ebp - 0x14]
push ebx
mov ecx, esi
call fcn.10042f88
call fcn.10175630
ret 4
Function at 0x40b11a
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jge 0x40b143
mov eax, 0xfffffffd
jmp 0x40b2e4
mov ebx, dword [0x1318cd8]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0
je 0x40b2b2
mov ebx, dword [0x1318cd8]
add ebx, 4
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0xa
jne 0x40b192
mov ebx, dword [0x1318cd8]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 0
jne 0x40b192
mov eax, 1
jmp 0x40b197
mov eax, 0
test eax, eax
je 0x40b1c7
call fcn.0040b2ea
mov dword [ebp - 4], eax
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x40b1b4
mov eax, dword [ebp + 8]
call dword [ebp - 4]
nop
nop
leave
ret 4
mov ebx, dword [0x1318cd8]
add ebx, 4
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 6
jne 0x40b1fe
mov ebx, dword [0x1318cd8]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 2
jne 0x40b1fe
mov eax, 1
jmp 0x40b203
mov eax, 0
test eax, eax
jne 0x40b253
mov ebx, dword [0x1318cd8]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
cmp dword [ebx], 6
jne 0x40b242
mov ebx, dword [0x1318cd8]
add ebx, 8
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
cmp dword [ebx], 3
jne 0x40b242
mov eax, 1
jmp 0x40b247
mov eax, 0
test eax, eax
jne 0x40b253
xor eax, eax
jmp 0x40b258
mov eax, 1
test eax, eax
je 0x40b284
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x40b26d
mov eax, dword [ebp + 8]
call dword fs:[0xc0]
nop
nop
leave
ret 4
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0x1318cd8]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0
jne 0x40b2da
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x40b2e4
mov esp, ebp
pop ebp
ret 4

Function at 0x40c0c1
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.0040c123
test eax, eax
je 0x40c104
xor eax, eax
xchg dword [ebp + 8], eax
cmp eax, 0xffff
jle 0x40c104
cmp word [eax], 0x5a4d
jne 0x40c104
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
jne 0x40c104
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.0040c1f5
mov eax, dword [ebp + 8]
jmp 0x40c11d
mov esp, ebp
pop ebp
ret 4

Function at 0x40c123
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x40c1d6
mov eax, dword [ebp + 8]
leave
sub esp, 0x60
pushfd
pushal
push dword [esp + 0x84]
push 0
push eax
fnsave dword [esp + 0x30]
wait
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
jmp dword [esp + 0xc]
Function at 0x4ca2d2
Capabilities:
Reference the vmware io port

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
mov eax, 0x564d5868
mov ebx, 0
mov ecx, 0xa
mov edx, 0x5658
in eax, dx
cmp ebx, 0x564d5868
sete byte [ebp - 4]
mov eax, dword [ebp - 4]
jmp 0x4ca309
mov esp, ebp
pop ebp
ret

Function at 0x4dbab1
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x4dbae9
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x4dbad7
mov al, 1
jmp 0x4dbb33
cmp dword [ebx + 0x54], ecx
jne 0x4dbae0
mov al, 2
jmp 0x4dbb33
cmp dword [ebx + 0x7c], ecx
jne 0x4dbb33
mov al, 3
jmp 0x4dbb33
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x4dbafe
mov al, 4
jmp 0x4dbb33
cmp ecx, 5
jne 0x4dbb1e
cmp ebx, 0
jne 0x4dbb0c
mov al, 5
jmp 0x4dbb33
cmp ebx, 1
jne 0x4dbb15
mov al, 6
jmp 0x4dbb33
cmp ebx, 2
jne 0x4dbb1e
mov al, 7
jmp 0x4dbb33
cmp ecx, 6
jne 0x4dbb2a
cmp ebx, 0
jne 0x4dbb2c
mov al, 8
jmp 0x4dbb33
cmp ebx, 1
jne 0x4dbb33
mov al, 9
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x51150f
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x5115c2
mov eax, dword [ebp + 8]
leave
sub esp, 0x60
pushfd
pushal
push dword [esp + 0x84]
push 0
push eax
fnsave dword [esp + 0x30]
wait
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
jmp dword [esp + 0xc]
Function at 0x5162ad
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.0051150f
test eax, eax
je 0x5162f0
xor eax, eax
xchg dword [ebp + 8], eax
cmp eax, 0xffff
jle 0x5162f0
cmp word [eax], 0x5a4d
jne 0x5162f0
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
jne 0x5162f0
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.0051630f
mov eax, dword [ebp + 8]
jmp 0x516309
mov esp, ebp
pop ebp
ret 4

Function at 0x5164c5
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jge 0x5164ee
mov eax, 0xfffffffd
jmp 0x51668f
mov ebx, dword [0x1319144]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0
je 0x51665d
mov ebx, dword [0x1319144]
add ebx, 4
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0xa
jne 0x51653d
mov ebx, dword [0x1319144]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 0
jne 0x51653d
mov eax, 1
jmp 0x516542
mov eax, 0
test eax, eax
je 0x516572
call fcn.00516695
mov dword [ebp - 4], eax
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x51655f
mov eax, dword [ebp + 8]
call dword [ebp - 4]
nop
nop
leave
ret 4
mov ebx, dword [0x1319144]
add ebx, 4
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 6
jne 0x5165a9
mov ebx, dword [0x1319144]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 2
jne 0x5165a9
mov eax, 1
jmp 0x5165ae
mov eax, 0
test eax, eax
jne 0x5165fe
mov ebx, dword [0x1319144]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
cmp dword [ebx], 6
jne 0x5165ed
mov ebx, dword [0x1319144]
add ebx, 8
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
cmp dword [ebx], 3
jne 0x5165ed
mov eax, 1
jmp 0x5165f2
mov eax, 0
test eax, eax
jne 0x5165fe
xor eax, eax
jmp 0x516603
mov eax, 1
test eax, eax
je 0x51662f
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x516618
mov eax, dword [ebp + 8]
call dword fs:[0xc0]
nop
nop
leave
ret 4
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0x1319144]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0
jne 0x516685
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x51668f
mov esp, ebp
pop ebp
ret 4
Function at 0x531090
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x62632b
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.00618427
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x531112
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0061582d
mov eax, dword [eax]
push 0x12f1f40
push eax
call fcn.00606484
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.006186b2
test bl, bl
je 0x531112
push 0x12f1f40
lea ecx, [esp + 0xc]
call fcn.00618a8e
push 0x12f1f4c
lea ecx, [esp + 0xc]
call fcn.00618a8e
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 0x53114e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.006186b2
jmp 0x531219
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 0x5311d2
lea edx, [esp + 0x7c]
push 0x12f1f48
push edx
call fcn.00606484
add esp, 8
test eax, eax
je 0x5311d2
lea eax, [esp + 0x7c]
push 0x12f1f44
push eax
call fcn.00606484
add esp, 8
test eax, eax
je 0x5311d2
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 0x531162
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.006186b2
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 0x531a30
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 0x531a92
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 0x531aa0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x6263ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x13143b8]
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 0x531bd8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x531b06
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.006186b2
xor eax, eax
jmp 0x531c4f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0061883b
push esi
lea ecx, [esp + 0xc]
call fcn.00618aca
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x12f1f80
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x531c2d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push 0x12f1f78
push closesocket
call fcn.00531a30
test eax, eax
jne 0x531c2d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push 0x12f1f64
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.00531a30
test eax, eax
jne 0x531c2d
lea eax, [esp + 0x14]
push 0x12f1f5c
push eax
call fcn.00607700
mov esi, eax
add esp, 8
test esi, esi
jne 0x531c0c
lea ecx, [esp + 0x14]
push 0x12f1f58
push ecx
call fcn.00607680
mov esi, eax
add esp, 8
test esi, esi
jne 0x531c0c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x531c0f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.006187eb
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x531b1e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.006186b2
xor eax, eax
jmp 0x531c4f
mov byte [esi], 0
push 0x12f1f54
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.006186b2
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

Function at 0x540656
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
mov esi, ecx
mov eax, dword [esi + 0x3a0]
test eax, eax
jne 0x54067e
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x3a0], eax
pop esi
add esp, 0x190
ret