joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4032e8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00405220
test esi, esi
jne 0x40331e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405310
jmp 0x40333c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040318c
mov edi, eax
test esi, esi
je 0x40333c
cmp dword [ebx], 0
je 0x40333c
dec esi
jmp 0x403325
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4041ec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x469020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x404284
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404264
xor eax, eax
push ebp
push 0x40425d
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 0x4042a0
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 0x404264
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x469020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x469020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4050a0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46f044], 0
je 0x405101
cmp word [0x46f218], 0xd7b2
jne 0x4050c9
cmp dword [0x46f220], 0
jbe 0x4050c9
mov eax, 0x46f214
call dword [0x46f230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x405128
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46902c], 0
jne 0x40511d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4065dc
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 0xf0019
push 0
push 0x40680c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40665f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40680c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40665f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406828
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4066e8
xor eax, eax
push ebp
push 0x4066e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406418
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 0x4066c6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406848
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4066c6
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4066e8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
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 0x406802
cmp byte [ebp - 0xd], 0
jne 0x40672f
cmp byte [ebp - 0x12], 0
je 0x406802
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406748
dec ebx
cmp byte [ebx], 0x2e
je 0x406757
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406747
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406802
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406794
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406802
cmp byte [ebp - 0xd], 0
je 0x406802
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406802
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
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 0x408ca0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x408cf2
test eax, edx
je 0x408cf5
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x408cb5
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x408cdb
add ecx, 4
js 0x408ccb
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x408cd8
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x408d01
test edx, edx
jne 0x408ca8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x409548
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004056b0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409561
test al, 0x10
je 0x409565
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c038
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 0x40c071
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00405310
jmp 0x40c07a
mov eax, ebx
mov edx, esi
call fcn.00405274
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c084
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 0x40c0a6
movzx eax, byte [esp]
jmp 0x40c0a8
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c738
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c5b0
mov eax, dword [0x46e698]
cmp byte [eax], 0
je 0x40c7b4
mov eax, dword [0x46e4a0]
call fcn.0040374c
call fcn.00402fec
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004097b8
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40c7fc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c7ea
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46e448]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4717f0]
call fcn.004063c0
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40d060
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d136
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004052b8
lea eax, [ebp - 4]
call fcn.00405708
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004056b0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d120
mov eax, ebx
call fcn.00402e90
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d119
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004056b0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d103
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d148
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d103
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d120
mov eax, dword [ebp - 0x10]
call fcn.00402eac
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d13d
lea eax, [ebp - 4]
call fcn.00405220
ret

Function at 0x41bd04
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4739e4
cmp dword [edi], 0
jne 0x41bd80
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4739e0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x469af4
mov ecx, 2
call fcn.0040308c
mov edx, 0x41bcdc
lea eax, [esi + 5]
call fcn.0041bcfc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041bcfc
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 0x41bd55
mov dword [0x4739e0], 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 0x41c6f8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.004056b0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41c750
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x46e7bc]
mov dl, 1
mov eax, dword [0x41c204]
call fcn.0040c8f8
call fcn.00404c68
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041c30c
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41d8e0
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 0x41d8e6
ret
Function at 0x42d9b0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x473a58
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x42d9d2
shr eax, 1
xor eax, 0xedb88320
jmp 0x42d9d4
shr eax, 1
dec edx
jne 0x42d9c0
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x42d9b9
mov byte [0x473e58], 1
pop esi
pop ebx
ret

Function at 0x42d9f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x473e58], 0
jne 0x42da07
call fcn.0042d9b0
mov eax, edi
dec eax
test eax, eax
jl 0x42da2f
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x473a58]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x42da11
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x43036c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x14]
movzx edx, byte [eax + 0x461]
movzx ecx, dl
cmp ecx, 6
ja case.0x430406.0
jmp dword [ecx*4 + 0x43039f]
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x4303d1
sub dl, 8
je 0x4303e0
jmp case.0x430406.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x430018
jmp case.0x430406.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x430070
jmp case.0x430406.0
movzx ecx, byte [eax + 0x460]
cmp ecx, 0x10
ja case.0x430406.0
movzx ecx, byte [ecx + 0x43040d]
jmp dword [ecx*4 + 0x43041e]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x43011c
jmp case.0x430406.0
cmp dl, 3
jne 0x43044b
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x430170
jmp case.0x430406.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x43012c
jmp case.0x430406.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4301b4
jmp case.0x430406.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x430476
sub dl, 8
je 0x430482
jmp case.0x430406.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4301e0
jmp case.0x430406.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x43024c
jmp case.0x430406.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x4304a1
sub dl, 8
je 0x4304ad
jmp case.0x430406.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x430308
jmp case.0x430406.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x430330
mov edx, dword [eax + 0x468]
mov ecx, dword [ebx + 0x1c]
dec ecx
imul edx, ecx
mov esi, edx
add esi, dword [eax + 0x450]
mov dword [ebp - 0xc], esi
mov esi, dword [eax + 0x454]
mov dword [ebp - 8], esi
mov esi, edx
add esi, dword [eax + 0x44c]
mov dword [ebp - 0x10], esi
mov esi, ecx
test esi, esi
jb 0x430551
inc esi
mov eax, dword [ebx + 0x20]
inc eax
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
movzx eax, byte [ebx + 0x48]
mov ecx, dword [ebx + eax*4 + 0x40]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0042f524
test eax, eax
je 0x430551
mov eax, ebx
call fcn.0043055c
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
lea edx, [eax + 1]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call dword [ebp - 0x18]
movzx eax, byte [ebx + 0x48]
xor al, 1
mov byte [ebx + 0x48], al
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x468]
sub dword [ebp - 0xc], eax
sub dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x18]
add dword [ebp - 8], eax
dec esi
jne 0x4304ea
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x43055c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x43058d
dec al
je 0x4305c8
dec al
je 0x43060d
dec al
je 0x430676
jmp 0x430700
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x430700
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x43059d
jmp 0x430700
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x430700
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4305d8
jmp 0x430700
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x430700
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x43063c
xor ebp, ebp
jmp 0x43064c
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x430655
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x43061d
jmp 0x430700
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x430700
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x4306cf
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.0042da38
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x43068a
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x439e70
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.00405220
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x439ebe
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.00405490
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43df40
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43e073
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x16], 0
lea eax, [ebp - 0x16]
push eax
call sub.user32.dll_GetKeyboardLayoutNameA
mov dl, 1
mov eax, dword [0x41c264]
call fcn.0041c334
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x43e049
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0041c3d4
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.00405490
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x43e088
call fcn.00405538
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0041c438
lea ecx, [ebp - 4]
mov edx, 0x43e0c4
mov eax, dword [ebp - 0xc]
call fcn.0041c680
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040e314
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x43e02c
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x43e0d0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x46dcdc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43e033
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x43e120
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x43e167
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43e14a
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43e15b
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x43e167
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x442dc4
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 - 9]
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
cmp dword [0x474048], 0
je 0x442f0d
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x46e630]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x442f0d
mov eax, dword [0x47404c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x474048]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x442edc
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x474048]
call fcn.00414d98
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x442ed4
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1da], 0
je 0x442ed4
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x442ed4
mov eax, dword [ebp - 0x14]
call fcn.0044d4cc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x442ed4
push ebp
call fcn.00442d80
pop ecx
test al, al
jne 0x442ed4
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.004045f0
test al, al
je 0x442ed4
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbc
call fcn.004045f0
cmp byte [ebp - 1], 0
je 0x442ed4
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x442ed4
mov edx, dword [ebp - 0x14]
mov eax, dword [0x47404c]
call fcn.004424f0
inc edi
dec ebx
jne 0x442e29
mov eax, dword [0x47404c]
cmp dword [eax + 8], 0
jle 0x442ef4
mov eax, dword [0x47404c]
call fcn.004425a8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x442f0d
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00442be4
pop ecx
test al, al
jne 0x442f0d
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 0x44a3c8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.00407088
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.0044514c
test ebx, ebx
jne 0x44a41b
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.0044a304
mov ebx, eax
test ebx, ebx
je 0x44a506
cmp esi, ebx
je 0x44a444
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x44a459
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x44a491
add eax, 0xffffff5f
sub eax, 2
jb 0x44a4a9
dec eax
sub eax, 2
jb 0x44a4bd
dec eax
sub eax, 2
jb 0x44a4b3
jmp 0x44a4c7
add eax, 0xfffffdff
sub eax, 2
jb 0x44a4a9
dec eax
sub eax, 2
jb 0x44a4bd
dec eax
sub eax, 2
jb 0x44a4b3
jmp 0x44a4c7
mov byte [esp + 0x120], 0
jmp 0x44a4cf
mov byte [esp + 0x120], 2
jmp 0x44a4cf
mov byte [esp + 0x120], 1
jmp 0x44a4cf
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.004557e8
mov byte [esp + 0x121], al
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.004468f0
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x44a508
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret