joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51fb40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x54
call fcn.004a72f0
mov eax, dword [0x595978]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push ebp
mov ebp, dword [esp + 0x60]
push edi
lea eax, [esp + 0x14]
push eax
mov edi, ecx
mov byte [esp + 0x10], 0x41
xor ebx, ebx
call fcn.004db370
lea ecx, [esp + 0x18]
push 8
push ecx
call fcn.004db920
lea edx, [esp + 0x30]
push edx
call fcn.004db370
add esp, 0x10
mov dword [esp + 0x10], ebx
test ebp, ebp
jle 0x51fcce
mov eax, 0x10
sub eax, edi
mov dword [esp + 0x34], eax
nop
inc ebx
cmp ebx, 0x10
ja 0x51fd08
test ebx, ebx
je 0x51fbc1
mov eax, dword [esp + 0xc]
push ebx
push eax
lea ecx, [esp + 0x54]
push ecx
call fcn.004a6110
add esp, 0xc
inc byte [esp + 0xc]
push 0
call fcn.004dad60
push eax
lea edx, [esp + 0x2c]
push edx
call fcn.004db470
push ebx
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.004db520
mov eax, dword [esi + 0xbc]
mov edx, dword [eax + 0x10]
push edx
add eax, 0x14
push eax
lea eax, [esp + 0x44]
push eax
call fcn.004db520
mov ecx, dword [esi + 0x58]
push 0x20
add ecx, 0x98
push ecx
lea edx, [esp + 0x50]
push edx
call fcn.004db520
mov eax, dword [esi + 0x58]
push 0x20
add eax, 0xb8
push eax
lea ecx, [esp + 0x5c]
push ecx
call fcn.004db520
push 0
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x68]
push eax
call fcn.004db530
add esp, 0x48
push 0
call fcn.004db230
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.004db470
mov eax, dword [esi + 0xbc]
mov edx, dword [eax + 0x10]
push edx
add eax, 0x14
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004db520
push 0x14
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.004db520
mov eax, dword [esp + 0x58]
add esp, 0x24
add eax, edi
push 0
lea edx, [esp + 0x18]
cmp eax, ebp
jle 0x51fcae
lea ecx, [esp + 0x3c]
push ecx
push edx
call fcn.004db530
mov eax, ebp
sub eax, dword [esp + 0x1c]
lea ecx, [esp + 0x44]
push eax
push ecx
push edi
call fcn.004a5720
add esp, 0x18
jmp 0x51fcb8
push edi
push edx
call fcn.004db530
add esp, 0xc
mov eax, dword [esp + 0x10]
add eax, 0x10
add edi, 0x10
mov dword [esp + 0x10], eax
cmp eax, ebp
jl 0x51fba0
lea eax, [esp + 0x38]
push 0x14
push eax
call fcn.004d97e0
lea ecx, [esp + 0x1c]
push ecx
call fcn.004db5b0
lea edx, [esp + 0x30]
push edx
call fcn.004db5b0
add esp, 0x10
pop edi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0049cc86
add esp, 0x54
ret
push 0x9d
push str.._ssl_s3_enc.c
push 0x44
push 0xee
push 0x14
call fcn.004c0430
mov ecx, dword [esp + 0x70]
add esp, 0x14
pop edi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0049cc86
add esp, 0x54
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..idata
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x431072
nop
mov ebx, 0x40915c
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x781f481b
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x431060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4310d2
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x2ce5898
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x40e858
Capabilities:
Check os version
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0xa0
mov dword [ebp - 0xc], 0x4020
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 4
cmp dword [0x4230a8], 0
jne 0x40e8ce
lea ebx, [ebp - 0xa8]
push eax
push 0x94
push 0
push ebx
call sub.msvcrt.dll_memset
mov dword [ebp - 0xa8], 0x94
mov dword [0x4230a8], 1
mov dword [esp], ebx
call sub.KERNEL32.DLL_GetVersionExA
add esp, 0xc
test eax, eax
je 0x40e8ce
cmp dword [ebp - 0xa4], 5
jbe 0x40e8ce
mov dword [0x4230a8], 2
cmp dword [0x4230a8], 2
je 0x40e91d
sub esp, 0xc
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x14]
push edx
push eax
push 0x1001
push 0xffff
push esi
call sub.WS2_32.DLL_getsockopt
add esp, 0xc
test eax, eax
jne 0x40e901
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jg 0x40e91d
sub esp, 0xc
lea eax, [ebp - 0xc]
push 4
push eax
push 0x1001
push 0xffff
push esi
call sub.WS2_32.DLL_setsockopt
add esp, 0xc
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x40f294
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x11c
mov esi, dword [ebp + 8]
mov edi, dword [esi]
cmp dword [esi + 0x8c], 2
je 0x40f3c0
cmp byte [esi + 0x1c1], 0
jne 0x40f3b4
lea eax, [ebp - 0x98]
lea ebx, [ebp - 0x14]
push ecx
push ebx
push eax
mov dword [ebp - 0x14], pe_nt_image_headers32
push dword [ebp + 0xc]
call sub.WS2_32.DLL_getpeername
pop edx
test eax, eax
je 0x40f2fb
call sub.WS2_32.DLL_WSAGetLastError
mov ebx, eax
push eax
push eax
push ebx
push esi
call fcn.004032f7
push eax
push ebx
push str.getpeername___failed_with_errno__d:__s
jmp 0x40f3a9
lea eax, [ebp - 0x118]
push ecx
push ebx
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x14], pe_nt_image_headers32
call sub.WS2_32.DLL_getsockname
pop edx
test eax, eax
je 0x40f331
call sub.WS2_32.DLL_WSAGetLastError
mov ebx, eax
push eax
push eax
push ebx
push esi
call fcn.004032f7
push eax
push ebx
push str.getsockname___failed_with_errno__d:__s
jmp 0x40f3a9
lea ebx, [esi + 0xb8]
lea ecx, [esi + 0xe8]
mov edx, ebx
lea eax, [ebp - 0x98]
call fcn.0040e7ff
test al, al
jne 0x40f367
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
push ecx
push ecx
push eax
push esi
call fcn.004032f7
push eax
push ebx
push str.ssrem_inet_ntop___failed_with_errno__d:__s
jmp 0x40f3a9
lea eax, [esi + 0x58]
push edx
push 0x2e
push ebx
push eax
call sub.msvcrt.dll_memcpy
lea ecx, [esi + 0x11c]
lea edx, [esi + 0xec]
lea eax, [ebp - 0x118]
call fcn.0040e7ff
add esp, 0x10
test al, al
jne 0x40f3b4
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
push eax
push eax
push ebx
push esi
call fcn.004032f7
push eax
push ebx
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edi
call fcn.0040e249
add esp, 0x20
jmp 0x40f3c0
sub esp, 0xc
push esi
call fcn.0040e609
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4112b3
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov dword [edx], 0
mov dword [ebp + 8], eax
mov edx, dword [ebp + 0x10]
mov dword [ebp + 0xc], edx
pop ebp
jmp fcn.0041125d
Function at 0x418870
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push dword [ebp + 8]
call sub.msvcrt.dll_getenv
add esp, 0x10
mov edx, eax
mov byte [ebp - 0x104], 0
test eax, eax
je 0x4188a5
lea eax, [ebp - 0x104]
push ecx
push 0x104
push eax
push edx
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
pop eax
xor eax, eax
cmp byte [ebp - 0x104], 0
je 0x4188c3
sub esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [0x41e014]
add esp, 0x10
leave
ret

Function at 0x41c078
Capabilities:
Set socket configuration

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 0xc], 0
setne al
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x8004667e
push dword [ebp + 8]
call sub.WS2_32.DLL_ioctlsocket
leave
ret
Function at 0x41c998
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
push 0xf0000000
push 1
push 0
push 0
push ebx
call sub.ADVAPI32.DLL_CryptAcquireContextA
add esp, 0xc
test eax, eax
je 0x41c9d4
sub esp, 0xc
lea eax, [ebx + 4]
push eax
push 0
push 0
push 0x8003
push dword [ebx]
call sub.ADVAPI32.DLL_CryptCreateHash
add esp, 0xc
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x5411fd
Capabilities:
Packed with generic packer
Terminate process

Disassembly:
push ebp
mov ebp, esp
pushal
mov eax, 0x54127b
sub eax, entry0
add eax, dword [0x54127c]
mov dword [entry0], 0xe9
mov dword [0x5411fe], eax
push 0x5410c9
push 0x5410bb
push 0x541009
push sym.imp.KERNEL32.dll_GetModuleHandleA
mov al, byte [0x541021]
cmp al, 1
je 0x541244
mov eax, 0
jmp 0x541247
mov eax, dword [ebp + 8]
push eax
call fcn.00541280
add esp, 0x14
cmp eax, 0
je 0x541271
mov dword [entry0], 0xc2
mov dword [0x5411fe], 0xc
push eax
mov eax, dword [sym.imp.KERNEL32.dll_ExitProcess]
call eax
popal
pop ebp
jmp 0x54127b
jmp 0x512110
Function at 0x10001000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1002a058]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
call fcn.10002eb9
mov dword [esp], 0x10022710
push dword [ebp + 0xc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
jne 0x10001049
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1000109c
and eax, 0xffff
or eax, 0x80070000
jmp 0x1000109c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x10001033
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp byte [esi + edi], 0
mov ebx, edi
je 0x10001085
lea eax, [esi + 1]
call fcn.1001de70
mov ebx, esp
lea eax, [esi + 1]
push eax
push edi
push ebx
call fcn.10014040
add esp, 0xc
mov byte [ebx + esi], 0
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
and dword [ebp - 0xc], 0
mov ecx, ebx
lea edx, [ebp - 0xc]
mov dword [ebp - 8], eax
call fcn.10002c5a
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10014027
leave
ret 0xc
Function at 0x10002308
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x1002a058]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 4]
push ecx
push dword [edi]
xor esi, esi
or eax, 0x2001f
lea ebx, [ebp - 0x118]
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x110], esi
call fcn.100022b6
mov ebx, eax
cmp ebx, esi
je 0x10002374
cmp dword [ebp - 0x118], esi
je 0x1000236d
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x1000240c
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x1000239c
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x118]
call fcn.10002308
mov dword [ebp - 0x124], eax
cmp eax, esi
jne 0x1000241d
lea eax, [ebp - 0x12c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x10c]
push eax
push esi
push dword [ebp - 0x118]
mov dword [ebp - 0x11c], pe_nt_image_headers32
call ebx
test eax, eax
je 0x1000237c
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x118], esi
je 0x100023e7
push dword [ebp - 0x118]
call ebx
mov dword [ebp - 0x118], esi
push dword [ebp - 0x120]
mov dword [ebp - 0x114], esi
call fcn.100024d7
mov edi, eax
cmp dword [ebp - 0x118], esi
je 0x1000240a
push dword [ebp - 0x118]
call ebx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10014027
leave
ret 4
cmp dword [ebp - 0x118], esi
je 0x10002431
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x124]
jmp 0x1000240c
Function at 0x100031b8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
xor ebx, ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
cmp esi, ebx
je 0x10003232
push edi
push 0x1002caf0
push esi
call fcn.10015e4d
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
je 0x1000322a
push edi
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x1000322a
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x10022a54
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x1000322a
cmp dword [ebp - 4], ebx
je 0x1000322a
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [edx], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
inc ebx
push edi
call fcn.1001401c
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x10003238
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x1002a058]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x12b
lea eax, [ebp - 0x12f]
push 0
push eax
mov byte [ebp - 0x130], 0
call fcn.10014410
add esp, 0xc
mov esi, 0x11f
push esi
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jae 0x100032d8
push str.ieframe.dll
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.100031b8
add esp, 0xc
test eax, eax
je 0x100032d1
mov eax, dword [ebp - 0x134]
push 9
shr eax, 0x10
pop ecx
cmp cx, ax
ja 0x100032d1
mov dword [0x1002daa8], 1
jmp 0x100032d8
and dword [0x1002daa8], 0
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 0x1002dac4
call fcn.10014027
leave
ret
Function at 0x10007023
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
cmp edi, ecx
je 0x10006f2b
add edi, 0xffffff90
jmp 0x10006f2d
xor edi, edi
mov eax, dword [edi + 0x10]
cmp eax, ecx
jne 0x10006f49
cmp dword [ebp + 0x14], ecx
je 0x10006f9a
xor al, al
test al, al
jne 0x10006f9a
mov eax, 0x8000ffff
jmp case.default.0x10006fc8
mov ebx, dword [ebp + 0x14]
cmp ebx, ecx
je 0x10006f39
lea edx, [esp + 0x10]
push edx
mov esi, 0x1002309c
push esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax]
push eax
call dword [ecx]
mov eax, dword [ebx]
lea ecx, [esp + 0x14]
push ecx
push esi
push ebx
call dword [eax]
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x10], eax
sete bl
test eax, eax
je 0x10006f88
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10006f96
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, bl
jmp 0x10006f3b
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x10006fb7
push dword [ebp + 0x20]
lea eax, [edi + 0x70]
push eax
call fcn.100073a9
mov eax, 0x40180
jmp case.default.0x10006fc8
add ecx, 7
mov eax, 0x80004001
cmp ecx, 7
ja case.default.0x10006fc8
jmp dword [ecx*4 + 0x10007059]
push dword [ebp + 0x20]
lea eax, [edi + 0x70]
push eax
call fcn.100073a9
jmp case.default.0x10006fc8
add edi, 0x70
je 0x10006fe7
lea ecx, [edi - 0x70]
jmp 0x10006fe9
xor ecx, ecx
push dword [ebp + 0x20]
push 0xffffffffffffffff
call fcn.10007a3c
test eax, eax
js case.default.0x10006fc8
xor eax, eax
jmp case.default.0x10006fc8
push dword [ebp + 0x20]
lea eax, [edi + 0x70]
call fcn.10007421
jmp case.default.0x10006fc8
add edi, 0x70
je 0x10007012
lea ecx, [edi - 0x70]
jmp 0x10007014
xor ecx, ecx
xor eax, eax
test byte [ecx + 0x44], 8
jne case.default.0x10006fc8
push dword [ebp + 0x20]
push 0xfffffffffffffffc
jmp 0x10006fee
add edi, 0x70
je 0x1000702d
lea esi, [edi - 0x70]
jmp 0x1000702f
xor esi, esi
lea eax, [esi + 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, dword [esi + 0x4c]
test esi, esi
je case.0x10006fc8.6
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x10006fc8.6
mov eax, 0x40181
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x10007867
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualQuery]
push edi
mov edi, eax
push 0x1c
lea eax, [ebp - 0x20]
push eax
lea ebx, [edi + 8]
push ebx
call esi
test eax, eax
je 0x100078dc
push 0x1c
lea eax, [ebp - 0x3c]
push eax
add edi, 0x17
push edi
call esi
test eax, eax
je 0x100078dc
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor eax, eax
push 0x40
pop edi
inc eax
cmp dword [ebp - 0xc], edi
je 0x100078be
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp - 0x14]
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x100078eb
mov ecx, dword [ebp - 0x3c]
cmp dword [ebp - 0x20], ecx
je 0x100078eb
cmp dword [ebp - 0x28], edi
je 0x100078eb
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp - 0x30]
push ecx
call esi
jmp 0x100078eb
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000e4b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x1000e4c5
add ebx, 0xffffff8c
jmp 0x1000e4c7
xor ebx, ebx
mov esi, dword [ebp + 0xc]
and dword [ebp - 4], 0
push 7
pop ecx
lea eax, [ebp - 0x20]
lea edi, [ebp - 0x20]
rep movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 4]
mov ecx, ebx
call fcn.100056d2
test eax, eax
je 0x1000e4f0
mov eax, dword [ebp - 4]
jmp 0x1000e572
mov eax, dword [ebx + 0x10]
xor edi, edi
mov dword [ebp + 8], edi
cmp eax, edi
jne 0x1000e506
mov dword [ebp + 8], edi
mov eax, 0x80004005
jmp 0x1000e514
mov ecx, dword [eax]
lea edx, [ebp + 8]
push edx
push 0x100229a4
push eax
call dword [ecx]
cmp eax, edi
jl 0x1000e55a
cmp dword [ebp + 8], edi
je 0x1000e557
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call esi
test ax, ax
jns 0x1000e52f
xor edi, edi
inc edi
push 0x11
call esi
test ax, ax
jns 0x1000e53b
add edi, 2
push 0x12
call esi
test ax, ax
jns 0x1000e547
add edi, 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push edi
lea edx, [ebp - 0x20]
push edx
push eax
call dword [ecx + 0x1c]
jmp 0x1000e55a
xor eax, eax
inc eax
xor ecx, ecx
test eax, eax
mov eax, dword [ebp + 8]
setne cl
mov esi, ecx
test eax, eax
je 0x1000e570
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10012fdb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x1001f366
call fcn.1001905b
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x428], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x41c], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
cmp edi, ebx
je 0x1001308a
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x420]
inc eax
push ecx
mov dword [ebp - 0x420], eax
call fcn.10001b91
pop ecx
test eax, eax
js 0x1001308a
mov ebx, dword [ebp - 0x420]
cmp ebx, 0x400
jg 0x1001306c
push ebx
call fcn.10001bf4
pop ecx
test al, al
je 0x1001306c
mov eax, ebx
call fcn.1001de70
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x10013079
mov eax, ebx
lea esi, [ebp - 0x41c]
call fcn.10001c60
push 3
push ebx
push edi
mov esi, eax
call fcn.10001555
test eax, eax
jne 0x100130ce
xor ebx, ebx
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x100130a3
lea eax, [ebp - 0x418]
call fcn.10012fa2
cmp dword [ebp - 0x41c], ebx
je 0x100130c4
mov eax, dword [ebp - 0x41c]
mov esi, dword [eax]
push eax
mov dword [ebp - 0x41c], esi
call fcn.1001451e
pop ecx
cmp esi, ebx
jne 0x100130ab
mov eax, 0x8007000e
jmp 0x10013224
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
mov dword [ebp - 0x420], edi
test edi, edi
jne 0x100130f1
call fcn.1000c3d7
mov edi, eax
jmp 0x100131e7
push dword [ebp - 0x424]
push dword [ebp - 0x428]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x10013114
call fcn.1000c3d7
jmp 0x100131d9
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x424], eax
test eax, eax
je 0x1001310a
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0x428], esi
cmp eax, esi
jae 0x10013147
mov edi, 0x8007000e
jmp 0x100131db
xor ecx, ecx
mov byte [ebp - 4], 2
ja 0x10013154
cmp eax, 0xffffffff
jbe 0x1001315e
push 0x80070216
call fcn.1000217c
cmp eax, 0x400
jbe 0x10013189
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.10012fb8
jmp 0x10013195
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
je 0x1001313d
push esi
push dword [ebp - 0x424]
push esi
push dword [ebp - 0x418]
call fcn.10001646
mov eax, dword [ebp - 0x418]
add esp, 0x10
push dword [ebp + 0x14]
mov byte [eax + esi], 0
mov ecx, dword [ebp - 0x418]
lea edx, [ebp - 0x430]
call fcn.10002c5a
mov edi, eax
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10013200
lea eax, [ebp - 0x418]
call fcn.10012fa2
cmp dword [ebp - 0x41c], 0
je 0x10013222
mov eax, dword [ebp - 0x41c]
mov esi, dword [eax]
push eax
mov dword [ebp - 0x41c], esi
call fcn.1001451e
pop ecx
test esi, esi
jne 0x10013209
mov eax, edi
lea esp, [ebp - 0x440]
call fcn.100190b7
ret 0x10
Function at 0x10013e61
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x1002ca98], 0
push esi
push edi
jne 0x10013dd7
call fcn.10013d43
test eax, eax
je 0x10013e1c
mov eax, dword [0x1002ca98]
cmp eax, 1
jne 0x10013df8
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x10013e1c
jmp 0x10013e5e
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x10013e5e
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x10013e20
xor eax, eax
jmp 0x10013e5e
mov eax, dword [esi]
push dword [0x1002ca98]
call edi
mov edi, eax
test edi, edi
je 0x10013e42
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x10013e5e
lea edi, [esi + 0xff0]
push esi
push dword [0x1002ca98]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x10013e48
mov eax, esi
pop edi
pop esi
ret
jmp 0x10013dc3

Function at 0x10014027
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1002a058]
jne 0x10014031
repz ret
jmp fcn.1001688a