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

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x10037277
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1003721e
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1003722d
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1043ced0
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x1003727e
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.1001e0f4
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1003731d
add edi, 4
add eax, 2
dec ecx
jne 0x10037263
call 0x100372ca
loope 0x100372c0
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1003731a
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x1003732b
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x100372de
cmp eax, ecx
ja 0x100372de
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x10037368
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1003735e
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1001e5d3
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x57dc40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x130000]
push edi
jmp 0x57dc5a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x57dc61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57dc50
mov eax, 1
add ebx, ebx
jne 0x57dc73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x57dc84
jne 0x57dca3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57dca3
dec eax
add ebx, ebx
jne 0x57dc90
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x57dc68
add ebx, ebx
jne 0x57dc9f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x57dcf5
xor ecx, ecx
sub eax, 3
jb 0x57dcbb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x57dd2a
sar eax, 1
mov ebp, eax
jmp 0x57dcc6
add ebx, ebx
jne 0x57dcc6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57dc94
inc ecx
add ebx, ebx
jne 0x57dcd4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57dc94
add ebx, ebx
jne 0x57dce1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x57dcd6
jne 0x57dcf2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x57dcd6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x57dd14
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x57dd06
jmp 0x57dc56
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x57dd14
add edi, ecx
jmp 0x57dc56
pop esi
mov edi, esi
mov ecx, 0x91a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x57dd32
cmp byte [edi], 9
jne 0x57dd32
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x57dd37
lea edi, [esi + 0x17b000]
mov eax, dword [edi]
or eax, eax
je 0x57ddaf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x194fe4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1950c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x57dd64
mov ecx, edi
jns 0x57dd93
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1950cc]
or eax, eax
je 0x57dda9
mov dword [ebx], eax
add ebx, 4
jmp 0x57dd81
call dword [esi + 0x1950c8]
mov ebp, dword [esi + 0x1950d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x57dde3
sub esp, 0xffffff80
jmp 0x41382f
Function at 0x403954
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x47c020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4039ec
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4039cc
xor eax, eax
push ebp
push 0x4039c5
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 0x403a24
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4039cc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x47c020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x47c020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404b30
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47e050], 0
je 0x404b91
cmp word [0x47e32c], 0xd7b2
jne 0x404b59
cmp dword [0x47e334], 0
jbe 0x404b59
mov eax, 0x47e328
call dword [0x47e344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
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 0x404bbc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47c02c], 0
jne 0x404bad
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404d10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x47c030], 0
je 0x404d36
mov edx, esi
mov eax, ebx
call dword [0x47c030]
jmp 0x404d45
mov eax, 8
call fcn.00402f9c
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x47e051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404cd8
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x408bf8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x480b2c
push 0xa
push 0x408c8c
mov eax, dword [0x480b1c]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x408c1c
call fcn.004107fc
push ebx
mov eax, dword [0x480b1c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x408c33
call fcn.004107fc
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x408c45
call fcn.004107fc
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x480b30], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x480b34], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x480b38], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x480b3c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x480b40], ecx
add edx, dword [eax + 0x14]
mov dword [0x480b44], edx
pop esi
pop ebx
ret

Function at 0x40a2ac
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40a355
test eax, edx
je 0x40a358
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40a2d5
push edx
mov edx, eax
mov eax, esp
call fcn.00405718
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40a2eb
push eax
lea eax, [esp + 8]
call fcn.00405718
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40a2fa
movzx eax, word [eax]
sub eax, ecx
jmp 0x40a321
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]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40a33b
add ecx, 4
js 0x40a312
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40a338
push eax
mov eax, ecx
mov edx, 2
call fcn.00404db0
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40a31f
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40a321
xor eax, eax
ret
test eax, eax
je 0x40a368
test edx, edx
jne 0x40a2bc
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40e310
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40e349
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00405680
jmp 0x40e352
mov eax, ebx
mov edx, esi
call fcn.00405544
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40e35c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40e37e
movzx eax, word [esp]
jmp 0x40e380
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40eae4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffff004
push eax
add esp, 0xffffff7c
push 0x800
lea ecx, [esp + 0x88]
call fcn.0040e91c
mov eax, dword [0x47ddb8]
cmp byte [eax], 0
je 0x40eb76
mov eax, dword [0x47db8c]
call fcn.004033c0
call fcn.00403104
lea eax, [esp + 0x884]
push eax
lea eax, [esp + 0x88]
push eax
call sub.user32.dll_CharToOemW
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x88c]
call fcn.0040b1f8
push eax
lea eax, [esp + 0x890]
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 0x40ebc4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ebaf
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x47db34]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x480b1c]
call fcn.0040664c
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x8c]
push eax
push 0
call sub.user32.dll_MessageBoxW
add esp, 0x1084
ret

Function at 0x40f78c
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 0x40f862
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405598
lea eax, [ebp - 4]
call fcn.00405e14
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004055d0
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x40f84c
mov eax, ebx
call fcn.00402f9c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40f845
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.004055d0
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x40f82f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40f874
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x40f82f
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 0x40f84c
mov eax, dword [ebp - 0x10]
call fcn.00402fb8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f869
lea eax, [ebp - 4]
call fcn.00405534
ret
Function at 0x41062b
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.0040504c
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x41064e
mov eax, edi
add eax, eax
call fcn.00402f9c
mov esi, eax
jmp 0x410650
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x410689
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x410673
mov eax, esp
cmp esi, eax
je 0x410696
mov eax, esi
call fcn.00402fb8
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x4106d0
cmp bl, 0
je 0x4106cc
cmp bl, 0x41
jl 0x4106c7
cmp bl, 0x5a
jg 0x4106c7
or bl, 0x20
xor al, bl
inc esi
jmp 0x4106ab
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x410610

Function at 0x41fe4c
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041fb50
dec esi
jne 0x41fe6e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x421018
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x482e60
cmp dword [edi], 0
jne 0x421094
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x482e5c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x47cc34
mov ecx, 2
call fcn.00403154
mov edx, 0x420ff0
lea eax, [esi + 5]
call fcn.00421010
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00421010
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 0x421069
mov dword [0x482e5c], 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 0x423e28
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.004055d0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
je 0x423e80
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x47dee4]
mov dl, 1
mov eax, dword [0x4238b0]
call fcn.0040ecc0
call fcn.004045b4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00423a38
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 0x424dc0
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 0x424dc6
ret
Function at 0x437d98
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00405544
push 0
mov eax, esi
movzx eax, al
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x437ddf
push pe_nt_image_headers32
lea edx, [esp + 4]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.004056fc
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x43d1f8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43d331
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x423924]
call fcn.00423a60
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x43d307
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.00423b00
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.004056fc
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x43d34c
call fcn.004058d0
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.00423b64
test al, al
je 0x43d2f1
lea ecx, [ebp - 4]
mov edx, 0x43d3c0
mov eax, dword [ebp - 0xc]
call fcn.00423db0
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.00410e78
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x43d2ea
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x43d3d8
mov eax, dword [ebp - 8]
push eax
call fcn.00407a34
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x47d734]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43d2f1
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43d30e
mov eax, dword [ebp - 0xc]
call fcn.00403b7c
ret

Function at 0x43d43c
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 0x43d483
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43d466
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43d477
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x43d483
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x442f60
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
cmp dword [0x483124], 0
je 0x4430a1
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x47dd50]
mov edx, dword [edx]
xor al, byte [edx + 0xb8]
je 0x4430a1
mov eax, dword [0x483128]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x483124]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x443070
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x483124]
call fcn.004190bc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x443068
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1e2], 0
je 0x443068
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x443068
mov eax, dword [ebp - 0x14]
call fcn.0044e164
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x443068
push ebp
call fcn.00442f1c
pop ecx
test al, al
jne 0x443068
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00403d8c
test al, al
je 0x443068
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 si, 0xffbc
call fcn.00403d8c
cmp byte [ebp - 1], 0
je 0x443068
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.004076ec
test al, al
je 0x443068
mov edx, dword [ebp - 0x14]
mov eax, dword [0x483128]
call fcn.00442694
inc edi
dec ebx
jne 0x442fc5
mov eax, dword [0x483128]
cmp dword [eax + 8], 0
jle 0x443088
mov eax, dword [0x483128]
call fcn.0044274c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4430a1
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00442d80
pop ecx
test al, al
jne 0x4430a1
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 0x44ae50
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.004076d4
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.004453dc
test ebx, ebx
jne 0x44aea3
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.0044ace4
mov ebx, eax
test ebx, ebx
je 0x44af8e
cmp esi, ebx
je 0x44aecc
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 0x44aee1
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 0x44af19
add eax, 0xffffff5f
sub eax, 2
jb 0x44af31
dec eax
sub eax, 2
jb 0x44af45
dec eax
sub eax, 2
jb 0x44af3b
jmp 0x44af4f
add eax, 0xfffffdff
sub eax, 2
jb 0x44af31
dec eax
sub eax, 2
jb 0x44af45
dec eax
sub eax, 2
jb 0x44af3b
jmp 0x44af4f
mov byte [esp + 0x120], 0
jmp 0x44af57
mov byte [esp + 0x120], 2
jmp 0x44af57
mov byte [esp + 0x120], 1
jmp 0x44af57
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.0045b7c8
mov byte [esp + 0x121], al
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.00446bc0
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x44af90
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret

Function at 0x45b2d0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
mov edi, eax
test bl, bl
je 0x45b2f1
test edi, 0x40000
je 0x45b30b
test bl, bl
jne 0x45b38c
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x45b38c
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call sub.user32.dll_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x45b33e
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x45b353
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
jmp 0x45b362
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x45b373
cmp byte [esp + 2], 0
je 0x45b38c
cmp byte [esp + 2], 0
je 0x45b384
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x45b38c
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret