joyce8/EMBER2024-capa huggingface dataset:
Function at 0x569844
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x569965
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x569949
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x56989b
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x569879
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18

Function at 0x56a3ad
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x56a404
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x56a404
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x56a404
xor eax, eax
inc eax
jmp 0x56a406
xor eax, eax
leave
ret 0x10
Function at 0x56a42f
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x56a49d
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x82af54
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x56a494
cmp dword [ebp - 0xc], 4
jne 0x56a494
cmp dword [ebp - 0x10], edi
je 0x56a494
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x85b5c0], edi
xor eax, eax
jmp 0x56a4dc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x85b5c0], edi
jge 0x56a4d7
lea eax, [ebp - 0x34]
push eax
mov dword [0x85b5c0], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x56a4d7
cmp word [ebp - 0x14], 5
jb 0x56a4d7
call fcn.0056a40a
test eax, eax
je 0x56a4d7
emms
mov dword [0x85b5c0], 1
mov eax, dword [0x85b5c0]
pop edi
leave
ret

Function at 0x58e319
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x58e351
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0058c3a6
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0058c37e
jmp 0x58e35d
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x58fa0f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x58fa51
call fcn.005957c7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x58fa51
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x58fa48
xor eax, eax
jmp 0x58fa59
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0058fa5f
pop edi
pop esi
pop ebx
ret 4

Function at 0x595cf7
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x595d25
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x595d43
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00595c5d
jmp 0x595d43
mov eax, dword [esi + 0x14]
test eax, eax
je 0x595d43
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00595c5d
test edi, edi
mov eax, edi
jne 0x595d2d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x405590
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4055ae
or eax, eax
pop esi
add esp, 0x10
ret
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
mov dword [esp + 0xc], eax
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esp + 4]
push 0x10
push edx
push esi
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4055ef
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x4eccc1
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x4eca52
add eax, 0x60b23044
call fcn.004eccf7
mov eax, eax
mov edx, eax
xor dword [ebx], ecx
add edx, 0x6842cd4c
add eax, eax
or eax, eax
add ebx, 1
or edx, edx
cmp ebx, edi
jl fcn.004eccc1
sub eax, eax
inc eax
ret
Function at 0x4010e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.004098d9

Function at 0x402010
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
call fcn.0040934a
push 0
push SysReAllocString
push 0xc40080
mov ecx, esi
call fcn.00410441
push 0
push 0x80000
push 0x40001
mov ecx, esi
call fcn.0041046d
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x20]
push 1
push 0
push eax
push ecx
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
push str.UpdateLogin
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402078
mov edx, dword [esi]
mov eax, dword [edx + 0x158]
mov ecx, esi
call eax
mov ecx, dword [esi + 0x84]
mov edx, dword [esi + 0x20]
push ecx
push 1
push 0x80
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push str.GXDCompress.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x4020be
push str.uncompress
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x58538c], eax
test eax, eax
je 0x4020be
mov dword [0x585380], 0xffffffff
call fcn.00402100
call fcn.00402100
push 0
lea ecx, [esi + 0x8c]
call fcn.00410564
push 0
push 0
push 0
push 0
push esi
push 0x402800
call fcn.00417bad
mov ecx, esi
mov dword [esi + 0x78], eax
call fcn.00402350
mov eax, 1
pop esi
ret
Function at 0x402dc0
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x5853d8]
push esi
push 0
push eax
mov esi, ecx
mov dword [0x5853bc], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x78]
test eax, eax
je 0x402deb
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x585390]
test eax, eax
je 0x402dfb
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov ecx, dword [esi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.0040c787
test eax, eax
je 0x402e1f
mov edx, dword [eax + 0x20]
push 0
push 0
push 0x10
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, esi
pop esi
jmp fcn.004090a7

Function at 0x403380
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x6c
mov eax, dword [0x57c6c0]
xor eax, esp
mov dword [esp + 0x68], eax
push esi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push str.G02_GINFO014.BIN
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4033e6
push 0
lea eax, [esp + 8]
push eax
push 8
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4033df
cmp dword [esp + 4], 8
jne 0x4033df
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov dword [edi], edx
mov dword [ebx], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x6c]
pop esi
xor ecx, esp
call fcn.00508851
add esp, 0x6c
ret

Function at 0x403c70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403c89
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403cc4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x403cc0
lea ebx, [ebx]
cmp esi, eax
jae 0x403cc4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403cb0
cmp esi, eax
jb 0x403cca
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x404ba0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x6c
mov eax, dword [0x57c6c0]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
mov edx, dword [eax]
push esi
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push str.G02_GINFO014.BIN
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x404c01
push 0
lea eax, [esp + 8]
push eax
push 8
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x6c]
pop esi
xor ecx, esp
call fcn.00508851
add esp, 0x6c
ret 8
Function at 0x406150
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52ff3b
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x57c6c0]
xor eax, esp
mov dword [esp + 0x404], eax
push esi
push edi
mov eax, dword [0x57c6c0]
xor eax, esp
push eax
lea eax, [esp + 0x418]
mov dword fs:[0], eax
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push str.PRESENTVERSION.DAT
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406212
push 0x1001
push str.PRESENTVERSION.DAT
lea ecx, [esp + 0x1c]
mov dword [0x585374], 1
call fcn.004209ce
push 6
push str.00001
lea ecx, [esp + 0x1c]
mov dword [esp + 0x428], 0
call fcn.004200f8
lea ecx, [esp + 0x14]
call fcn.0042035c
mov ecx, edi
call fcn.00406150
lea ecx, [esp + 0x14]
mov dword [esp + 0x420], esi
call fcn.004204c4
jmp 0x40629d
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x14]
push eax
push 5
lea ecx, [esp + 0x30]
push ecx
push esi
call edi
test eax, eax
jne 0x406239
mov dword [0x585374], 1
jmp 0x406296
cmp dword [esp + 0x10], 5
jne 0x40622d
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x2d], 0
call fcn.00509327
mov dword [0x585378], eax
lea eax, [esp + 0x28]
push eax
call fcn.00509327
add esp, 8
cmp eax, 1
mov dword [0x585374], eax
jge 0x406275
mov dword [0x585374], 1
push 0
lea ecx, [esp + 0x14]
push ecx
push 6
lea edx, [esp + 0x30]
push edx
push esi
call edi
test eax, eax
je 0x406296
cmp dword [esp + 0x10], 6
jne 0x406296
mov byte [esp + 0x2a], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x418]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.00508851
mov esp, ebp
pop ebp
ret
Function at 0x407990
Capabilities:
Delete file
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push esi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4079c9
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push ecx
push edx
lea eax, [esp + 0x1c]
push eax
push esi
call dword [0x58538c]
add esp, 0x10
test eax, eax
je 0x4079d0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
pop esi
pop ecx
ret 0xc
push edi
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x407a17
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0xc]
push ecx
push edx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
test eax, eax
jne 0x407a26
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x1c]
jne 0x407a0a
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x407a10
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, 1
pop esi
pop ecx
ret 0xc

Function at 0x409842
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.004118dd
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40987b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00409493
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x40fb64
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40fbab
call fcn.004118dd
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40fbab
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40fbc7
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040f6de
mov esi, eax
test edi, edi
je 0x40fbc5
test ebx, ebx
je 0x40fbc5
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x410b04
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x524616
call fcn.0050a130
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x410b29
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x410b6f
lea ecx, [ebp - 0x10]
call fcn.00404340
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004102ea
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00404320
mov eax, esi
call fcn.0050a208
ret 8

Function at 0x41d1b4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x41d1fc
call fcn.004118dd
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41d1fc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x41d23f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x41d228
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x41d228
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x41d23c
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x41ede1
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x41ee0c
call fcn.004118dd
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 8], eax
test eax, eax
jne 0x41ee2f
push eax
push dword [esi + 4]
call fcn.0041ed67
push esi
push eax
mov ecx, 0x58139c
call fcn.0041ea1b
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x431e4b
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x57c6c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push edi
mov edi, dword [ebp + 8]
lea eax, [edi - 0x60]
mov ebx, 0x8000
cmp eax, 9
ja 0x431e84
push 0x12
call esi
mov ecx, ebx
test cx, ax
je 0x431eab
cmp dword [0x581af0], 0
jne 0x431eab
lea eax, [edi - 0x41]
cmp eax, 0x19
jbe 0x431e9e
push 0x12
call esi
test bx, ax
je 0x431ea2
mov eax, edi
jmp 0x431f16
push edi
call fcn.0050fb0d
pop ecx
jmp 0x431f16
and dword [ebp - 0x10c], 0
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
call fcn.00417138
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 edi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
push edi
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
pop esi
xor ecx, ebp
pop ebx
call fcn.00508851
leave
ret 4
Function at 0x441dad
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
movzx ebx, word [ebp + 8]
push esi
push edi
mov edi, ecx
test ebx, ebx
jne 0x441dc7
call fcn.004157fb
call fcn.004118dd
mov esi, dword [eax + 0xc]
push 0xf1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x441de7
xor eax, eax
jmp 0x441f02
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x441de0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x441de0
movzx eax, word [esi + 6]
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00408ef2
pop ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x441dc2
cmp dword [ebp + 0x10], 0
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
push eax
lea ebx, [ecx + 6]
lea edx, [eax + 6]
push ebx
push edx
je 0x441e44
mov ecx, edi
call fcn.0043a867
jmp 0x441e49
call fcn.0043a751
mov eax, dword [ebp + 0xc]
xor ebx, ebx
inc ebx
cmp dword [eax + 4], 0
jne 0x441e5b
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
cmp dword [edi + 0xbe0], 0
jne 0x441e76
push dword [ebp + 0x10]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x310]
test eax, eax
je 0x441eee
mov eax, dword [edi + 0xad0]
mov dword [ebp + 0xc], eax
xor eax, eax
xor ebx, ebx
cmp ax, word [esi + 6]
jae 0x441ec5
lea eax, [esi + 8]
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp - 4]
movzx eax, word [eax]
mov ecx, dword [ebp - 8]
mov dword [ecx + ebx*4], eax
jne 0x441eb8
test eax, eax
jbe 0x441eb8
push eax
mov ecx, 0x579834
call fcn.00447f4d
mov ecx, dword [ebp + 0xc]
inc dword [ebp + 0xc]
mov dword [eax], ecx
movzx eax, word [esi + 6]
add dword [ebp - 4], 2
inc ebx
cmp ebx, eax
jl 0x441e8f
mov eax, dword [ebp + 8]
mov dword [edi + 0xbe0], eax
movzx ecx, word [esi + 6]
mov eax, dword [edi]
push 1
push ecx
push dword [ebp - 8]
mov ecx, edi
call dword [eax + 0x318]
mov ebx, eax
test ebx, ebx
jne 0x441eee
and dword [edi + 0xbe0], eax
push dword [ebp - 8]
call fcn.00408f21
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc