joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411885
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x42e870]
je 0x4118a0
inc edi
cmp edi, 0x17
jb 0x411891
cmp edi, 0x17
jae 0x411a20
push ebp
push 3
call fcn.0041bb30
cmp eax, 1
pop ecx
je 0x4119ec
push 3
call fcn.0041bb30
test eax, eax
pop ecx
jne 0x4118d4
cmp dword [0x42e260], 1
je 0x4119ec
cmp ebx, 0xfc
je 0x411a1f
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x430ce0
push ebp
call fcn.00410aac
add esp, 0xc
test eax, eax
je 0x41190a
push esi
push esi
push esi
push esi
push esi
call fcn.0040a983
add esp, 0x14
push 0x104
mov esi, 0x430cf9
push esi
push 0
mov byte [0x430dfd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41194e
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00410aac
add esp, 0xc
test eax, eax
je 0x41194e
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040a983
add esp, 0x14
push esi
call fcn.0040cdf0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x411993
push esi
call fcn.0040cdf0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x430ff4
push 0x4256f4
sub ecx, eax
push ecx
push eax
call fcn.004174d2
add esp, 0x14
test eax, eax
je 0x411993
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040a983
add esp, 0x14
jmp 0x411995
xor esi, esi
push 0x4256f0
push ebx
push ebp
call fcn.0040bd6d
add esp, 0xc
test eax, eax
je 0x4119b5
push esi
push esi
push esi
push esi
push esi
call fcn.0040a983
add esp, 0x14
push dword [edi*8 + 0x42e874]
push ebx
push ebp
call fcn.0040bd6d
add esp, 0xc
test eax, eax
je 0x4119d7
push esi
push esi
push esi
push esi
push esi
call fcn.0040a983
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0041b973
add esp, 0xc
jmp 0x411a1f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x411a1f
cmp ebp, 0xffffffff
je 0x411a1f
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x42e874]
push dword [esi]
call fcn.0040cdf0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x41b973
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00410cfd
xor ebx, ebx
cmp dword [0x43130c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x41ba49
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41bb29
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x426840
push edi
call esi
cmp eax, ebx
je 0x41bb29
push eax
call fcn.00410c8f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43130c], eax
call esi
push eax
call fcn.00410c8f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x431310], eax
call esi
push eax
call fcn.00410c8f
mov dword [0x431314], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040a683
test eax, eax
pop ecx
pop ecx
je 0x41ba17
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040a983
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x41ba49
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00410c8f
cmp eax, ebx
pop ecx
mov dword [0x43131c], eax
je 0x41ba49
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00410c8f
pop ecx
mov dword [0x431318], eax
mov eax, dword [0x431318]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x41bace
cmp dword [0x43131c], ecx
je 0x41bace
push eax
call fcn.00410d06
push dword [0x43131c]
mov esi, eax
call fcn.00410d06
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x41bace
cmp edi, ebx
je 0x41bace
call esi
cmp eax, ebx
je 0x41ba9b
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41ba9b
test byte [ebp - 0x18], 1
jne 0x41bace
lea eax, [ebp - 0x10]
push eax
call fcn.0040a6ba
test eax, eax
pop ecx
je 0x41bab6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040a983
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x41bac5
or dword [ebp + 0x10], 0x200000
jmp 0x41bb09
or dword [ebp + 0x10], 0x40000
jmp 0x41bb09
mov eax, dword [0x431310]
cmp eax, dword [ebp - 8]
je 0x41bb09
push eax
call fcn.00410d06
cmp eax, ebx
pop ecx
je 0x41bb09
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41bb09
mov eax, dword [0x431314]
cmp eax, dword [ebp - 8]
je 0x41bb09
push eax
call fcn.00410d06
cmp eax, ebx
pop ecx
je 0x41bb09
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43130c]
call fcn.00410d06
cmp eax, ebx
pop ecx
je 0x41bb29
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41bb2b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402be4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402c7c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402c5c
xor eax, eax
push ebp
push 0x402c55
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402c98
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402c5c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x4053c0
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x40557c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405421
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x405598
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405493
xor eax, eax
push ebp
push 0x40548c
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00405218
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405475
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4055b8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405493
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405574
cmp byte [ebp - 0xd], 0
jne 0x4054d5
cmp byte [ebp - 0x12], 0
je 0x405574
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4054ee
dec ebx
cmp byte [ebx], 0x2e
je 0x4054fd
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4054ed
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405574
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40552a
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405574
cmp byte [ebp - 0xd], 0
je 0x405574
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405574
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4086c8
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x424], ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x408915
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00403a88
cmp dword [0x47a11c], 1
jne 0x408713
cmp dword [0x47a120], 4
jle 0x408752
mov dword [ebp - 0x14], 0x400
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x420]
push eax
push 1
mov eax, dword [ebp - 4]
call fcn.00403e78
push eax
call sub.mpr.dll_WNetGetUniversalNameA
test eax, eax
jne 0x4088f7
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x420]
mov edx, dword [edx]
call fcn.00403bec
jmp 0x4088f7
mov eax, dword [ebp - 4]
mov al, byte [eax]
call fcn.004028a0
mov byte [ebp - 0x15], al
cmp byte [ebp - 0x15], 0x41
jb 0x4088f7
cmp byte [ebp - 0x15], 0x5a
ja 0x4088f7
mov eax, dword [ebp - 4]
call fcn.00403cb4
cmp eax, 3
jl 0x4088f7
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0x3a
jne 0x4088f7
mov eax, dword [ebp - 4]
cmp byte [eax + 2], 0x5c
jne 0x4088f7
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 1
push 1
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x4088f7
xor edx, edx
push ebp
push 0x4088f0
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0xc], 0x640
mov eax, dword [ebp - 0xc]
call fcn.00402748
mov dword [ebp - 0x20], eax
xor edx, edx
push ebp
push 0x4088d2
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.mpr.dll_WNetEnumResourceA
cmp eax, 0xea
jne 0x408821
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0xc]
call fcn.00402778
jmp 0x4087e5
test eax, eax
je 0x408834
call fcn.004035a4
call fcn.004035a4
jmp 0x4088f7
mov esi, dword [ebp - 0x10]
dec esi
test esi, esi
jl 0x4087e5
inc esi
xor edi, edi
mov eax, edi
shl eax, 2
mov edx, dword [ebp - 0x20]
lea ebx, [edx + eax*8]
cmp dword [ebx + 0x10], 0
je 0x4088b0
mov eax, dword [ebx + 0x10]
mov al, byte [eax]
call fcn.004028a0
cmp al, byte [ebp - 0x15]
jne 0x4088b0
lea eax, [ebp - 0x424]
push eax
mov eax, dword [ebp - 4]
call fcn.00403cb4
mov ecx, eax
sub ecx, 2
mov edx, 3
mov eax, dword [ebp - 4]
call fcn.00403ebc
mov eax, dword [ebp - 0x424]
push eax
lea eax, [ebp - 0x428]
mov edx, dword [ebx + 0x14]
call fcn.00403bec
mov edx, dword [ebp - 0x428]
mov eax, dword [ebp - 8]
pop ecx
call fcn.00403d00
call fcn.004035a4
call fcn.004035a4
jmp 0x4088f7
inc edi
dec esi
jne 0x40883f
jmp 0x4087e5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40891c
lea eax, [ebp - 0x428]
mov edx, 2
call fcn.00403a58
ret
Function at 0x40a3c8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a401
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403b1c
jmp 0x40a40a
mov eax, ebx
mov edx, esi
call fcn.00403a88
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a414
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a435
mov al, byte [esp]
jmp 0x40a437
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x418428
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41842e
ret

Function at 0x41aa50
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41aaa1
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41aa88
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41aa78
jmp 0x41aaa1
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41aa89
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42d9a4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
cmp dword [0x47c780], 0
sete dl
or al, dl
jne 0x42dae4
mov eax, dword [0x47c784]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x47c780]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x42dab3
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x47c780]
call fcn.0040fbfc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42daab
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x42daab
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x42daab
mov eax, dword [ebp - 0x14]
call fcn.00435cec
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42daab
push ebp
call fcn.0042d960
pop ecx
test al, al
jne 0x42daab
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x42da67
mov eax, dword [ebp - 0x14]
call fcn.00434678
dec eax
jle 0x42daab
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov bx, 0xffc1
call fcn.00402f48
cmp byte [ebp - 1], 0
je 0x42daab
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x42daab
mov edx, dword [ebp - 0x14]
mov eax, dword [0x47c784]
call fcn.0042d1ac
inc edi
dec esi
jne 0x42d9fa
mov eax, dword [0x47c784]
cmp dword [eax + 8], 0
jle 0x42dacb
mov eax, dword [0x47c784]
call fcn.0042d23c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42dae4
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0042d7c8
pop ecx
test al, al
jne 0x42dae4
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x433684
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, dword [esi]
cmp eax, 0x84
jg 0x4336b5
je 0x43370f
sub eax, 7
je 0x4336d6
dec eax
je 0x433700
sub eax, 0x17
je 0x4337b4
jmp 0x4337f2
add eax, 0xffffff00
sub eax, 9
jb 0x4337a0
add eax, 0xffffff09
sub eax, 0xb
jb 0x433768
jmp 0x4337f2
mov eax, ebx
call fcn.004454fc
mov edi, eax
test edi, edi
je 0x433852
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xd4]
test al, al
je 0x43385b
jmp 0x433852
test byte [ebx + 0x44], 0x20
jne 0x43385b
jmp 0x433852
mov edx, esi
mov eax, ebx
call fcn.00430c84
cmp dword [esi + 0xc], 0xffffffff
jne 0x43385b
push 0
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.00406fb0
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.0042f780
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.0043355c
test eax, eax
je 0x43385b
mov dword [esi + 0xc], 1
jmp 0x43385b
mov edx, esi
mov eax, ebx
call fcn.004335f0
test al, al
je 0x433852
cmp dword [esi + 0xc], 0
jne 0x43385b
mov eax, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
push eax
mov eax, dword [esi]
push eax
mov eax, ebx
call fcn.00435cec
push eax
call sub.user32.dll_DefWindowProcA
jmp 0x43385b
mov eax, ebx
call fcn.00430320
test al, al
jne 0x43385b
jmp 0x433852
mov eax, ebx
call fcn.00435cec
mov edi, eax
call sub.user32.dll_GetCapture
cmp edi, eax
jne 0x433852
cmp dword [0x47a814], 0
je 0x433852
mov eax, dword [0x47a814]
cmp ebx, dword [eax + 0x24]
jne 0x433852
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x47a814]
call fcn.00430bb8
jmp 0x433852
mov eax, dword [0x47c748]
cmp byte [eax + 0x20], 0
je 0x433852
mov eax, dword [0x47c748]
cmp dword [eax + 0x1c], 0
je 0x433852
mov eax, dword [esi]
mov edx, dword [0x47c748]
cmp eax, dword [edx + 0x1c]
jne 0x433852
lea eax, [ebp - 0x110]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x110]
call fcn.00445440
mov byte [ebp - 0xc], al
mov ax, word [esi + 4]
mov word [ebp - 0xa], ax
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, ebx
mov bx, 0xffb7
call fcn.00402f48
jmp 0x43385b
mov edx, esi
mov eax, ebx
call fcn.00430c84
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x433d1c
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1e8], 0
je 0x433d38
cmp dword [esi + 4], 0
je 0x433d65
test byte [ebx + 0x45], 1
jne 0x433d57
mov eax, ebx
call fcn.00432c54
test eax, eax
jne 0x433d57
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x433e75
mov edx, esi
mov eax, ebx
call fcn.00433994
jmp 0x433e75
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x433e6e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00435cec
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00430bb8
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00433d1c
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00435cec
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x433e75
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43d800
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00403a34
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43d84f
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00403c64
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x445218
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x47c7e0
cmp dword [edi], 0
jne 0x445294
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x47c7dc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x47a9a8
mov ecx, 2
call fcn.00402860
mov edx, 0x4451f0
lea eax, [esi + 5]
call fcn.00445210
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00445210
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x445269
mov dword [0x47c7dc], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4453b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x445400]
test si, 4
je 0x4453c4
or bl, 1
test si, 8
je 0x4453ce
or bl, 4
test si, 1
je 0x4453d8
or bl, 8
test si, 2
je 0x4453e2
or bl, 0x10
test si, 0x10
je 0x4453ec
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4453fb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x445404
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44543c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44541d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44542c
or bl, 4
test esi, 0x20000000
je 0x445437
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44b66c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44b67e
add esp, 0xfffffff0
call fcn.004030ac
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00416488
mov eax, ebx
call fcn.0044b9b8
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x40e0a0]
call fcn.00402d3c
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x40e0a0]
call fcn.00402d3c
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x40e0a0]
call fcn.00402d3c
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x40e0a0]
call fcn.00402d3c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x40e0a0]
call fcn.00402d3c
mov dword [ebx + 0x70], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x34], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x4c]
push eax
mov eax, 0x44815c
push eax
push 0
push 0
mov eax, dword [0x47afcc]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x417950]
call fcn.00418e88
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x417950]
call fcn.00418e88
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x417950]
call fcn.00418e88
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.0044bd98
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44bcb4
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44bcb4
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44bcb4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44b78d
call fcn.00403104
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret