joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421ac4
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
test eax, eax
jle 0x421afd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004099c8
jmp 0x421b06
mov eax, ebx
mov edx, esi
call fcn.00409c20
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x421b10
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
test eax, eax
jle 0x421b32
movzx eax, word [esp]
jmp 0x421b34
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x422a98
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x422bb8
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004228a0
mov esi, eax
mov eax, dword [0x5dbf90]
cmp byte [eax], 0
je 0x422b60
mov eax, dword [0x5dbb58]
call fcn.00406e1c
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x422a68]
call fcn.0040c704
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x422bd4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x422b9c
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x5dbaac]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5e0634]
call fcn.0040ce0c
push eax
call sub.user32.dll_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422bbf
lea eax, [ebp - 4]
mov edx, dword [0x422a68]
call fcn.0040c828
ret
Function at 0x42395c
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 0x423a32
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00409c68
lea eax, [ebp - 4]
call fcn.00409e44
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a87c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x423a1c
mov eax, ebx
call fcn.00406724
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x423a15
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.0040a87c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4239ff
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x423a44
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4239ff
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 0x423a1c
mov eax, dword [ebp - 0x10]
call fcn.00406740
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423a39
lea eax, [ebp - 4]
call fcn.00409840
ret

Function at 0x423a48
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x423b4c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00409c68
lea eax, [ebp - 4]
call fcn.00409e44
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a87c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x423b36
mov eax, ebx
call fcn.00406724
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x423b2f
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.0040a87c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x423b19
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x423b60
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x423b19
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
call fcn.004129c0
movzx eax, ax
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
call fcn.004129c0
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423b36
mov eax, dword [ebp - 0x10]
call fcn.00406740
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423b53
lea eax, [ebp - 4]
call fcn.00409840
ret
Function at 0x424960
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.00409d84
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040fa3c
mov edi, eax
cmp edi, 0x104
jbe 0x424907
mov eax, edi
add eax, eax
call fcn.00406724
mov esi, eax
jmp 0x424909
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040fa3c
mov eax, esi
call fcn.0041c53c
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x424943
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 0x42492d
mov eax, esp
cmp esi, eax
je 0x424950
mov eax, esi
call fcn.00406740
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 0x42498c
cmp bl, 0
je 0x424988
cmp bl, 0x41
jl 0x424983
cmp bl, 0x5a
jg 0x424983
or bl, 0x20
xor al, bl
inc esi
jmp 0x424967
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4248c8

Function at 0x425d70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov eax, esi
call fcn.0041c0d4
lea edx, [edi + ebx]
cmp eax, edx
jg 0x425da1
mov eax, esi
call fcn.0041c0d4
mov dword [ebp - 0xc], eax
jmp 0x425da6
add edi, ebx
mov dword [ebp - 0xc], edi
mov edx, ebx
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x425e08
xor edi, edi
cmp edx, dword [ebp - 0xc]
jge 0x425e51
mov eax, dword [esi]
movzx eax, word [eax + edx*2]
cmp ax, word [ebp + 0x14]
jne 0x425dcc
inc edi
jmp 0x425ddd
mov eax, dword [esi]
movzx eax, word [eax + edx*2]
cmp ax, word [ebp + 0x10]
jne 0x425ddd
test edi, edi
jle 0x425ddd
dec edi
test edi, edi
jne 0x425e00
xor eax, eax
jmp 0x425df9
mov ecx, dword [ebp - 4]
movzx ecx, word [ecx + eax*2]
mov ebx, dword [esi]
cmp cx, word [ebx + edx*2]
jne 0x425df8
mov eax, edx
jmp 0x425e54
inc eax
mov ecx, dword [ebp - 8]
cmp eax, ecx
jle 0x425de5
inc edx
cmp edx, dword [ebp - 0xc]
jl 0x425dbd
jmp 0x425e51
mov byte [ebp - 0xd], 0
cmp edx, dword [ebp - 0xc]
jge 0x425e51
mov eax, dword [esi]
movzx eax, word [eax + edx*2]
cmp ax, word [ebp + 0x14]
jne 0x425e26
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x425e4b
xor eax, eax
jmp 0x425e44
mov ecx, dword [ebp - 4]
movzx ecx, word [ecx + eax*2]
mov ebx, dword [esi]
cmp cx, word [ebx + edx*2]
jne 0x425e43
mov eax, edx
jmp 0x425e54
inc eax
mov ecx, dword [ebp - 8]
cmp eax, ecx
jle 0x425e30
inc edx
cmp edx, dword [ebp - 0xc]
jl 0x425e11
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x426248
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov word [ebp - 6], cx
mov dword [ebp - 4], edx
mov edi, eax
lea eax, [ebp - 4]
call fcn.0041c0d4
mov esi, eax
mov eax, edi
call fcn.0041c0d4
mov ebx, eax
sub ebx, dword [ebp + 8]
sub ebx, esi
inc ebx
cmp dword [ebp + 8], 0
jl 0x42638a
test ebx, ebx
jl 0x42638a
test esi, esi
jle 0x42638a
mov eax, dword [ebp - 4]
call fcn.0040a87c
mov dword [ebp - 0xc], eax
mov eax, dword [edi]
call fcn.0040a87c
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, eax
add ecx, eax
movzx eax, word [ebp - 6]
cmp ax, word [ebp + 0xc]
je 0x426327
xor eax, eax
mov dword [ebp - 0x10], eax
test ebx, ebx
jl 0x42638a
inc ebx
mov dword [ebp - 0x18], ebx
xor edx, edx
xor eax, eax
jmp 0x42630c
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 6]
jne 0x4262db
inc dword [ebp - 0x10]
jmp 0x4262eb
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp + 0xc]
jne 0x4262eb
dec dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0
jle 0x4262f6
or eax, 0xffffffff
jmp 0x42630c
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0xc]
cmp bx, word [edi + eax*2]
jne 0x426309
inc eax
jmp 0x42630c
or eax, 0xffffffff
test eax, eax
jl 0x426314
cmp esi, eax
jg 0x4262c9
cmp esi, eax
jg 0x42631f
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x42638d
inc edx
dec dword [ebp - 0x18]
jne 0x4262c5
jmp 0x42638a
mov byte [ebp - 0x11], 0
test ebx, ebx
jl 0x42638a
inc ebx
mov dword [ebp - 0x18], ebx
xor edx, edx
xor eax, eax
jmp 0x426371
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 6]
jne 0x426350
movzx ebx, byte [ebp - 0x11]
xor bl, 1
mov byte [ebp - 0x11], bl
cmp byte [ebp - 0x11], 0
je 0x42635b
or eax, 0xffffffff
jmp 0x426371
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0xc]
cmp bx, word [edi + eax*2]
jne 0x42636e
inc eax
jmp 0x426371
or eax, 0xffffffff
test eax, eax
jl 0x426379
cmp esi, eax
jg 0x426339
cmp esi, eax
jg 0x426384
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x42638d
inc edx
dec dword [ebp - 0x18]
jne 0x426335
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4490c0
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00448ab0
dec esi
jne 0x4490e2
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret
Function at 0x44adb4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x5e2ff0
cmp dword [edi], 0
jne 0x44ae30
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc
mov esi, eax
mov eax, dword [0x5e2fec]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x5d5a70
mov ecx, 2
call fcn.00406944
mov edx, 0x44ad8c
lea eax, [esi + 5]
call fcn.0044adac
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0044adac
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 0x44ae05
mov dword [0x5e2fec], 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 0x46faa0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x46faa8
mov eax, edx
pop esi
pop ebx
ret

Function at 0x47d104
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.0040a87c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov edx, eax
mov eax, ebx
call fcn.0047cd80
test al, al
jne 0x47d165
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5dc1c0]
mov dl, 1
mov eax, dword [0x47cb2c]
call fcn.00422cfc
call fcn.00408f34
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0047cce8
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 0x480ba4
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 0x480baa
ret
Function at 0x491c30
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, 0x5d8310
test edx, edx
jne 0x491c4f
xor eax, eax
jmp 0x491d6d
mov dword [ebp - 4], 1
cmp byte [ebp - 4], 0
je 0x491c6c
push esi
push edx
push eax
call fcn.00491d90
add esp, 0xc
jmp 0x491d6d
push esi
push edx
push eax
call fcn.00492050
add esp, 0xc
jmp 0x491d6d
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x497e54
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 [0x5e3648], 0
je 0x497f95
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x5dbecc]
mov edx, dword [edx]
xor al, byte [edx + 0xd4]
je 0x497f95
mov eax, dword [0x5e364c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x5e3648]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x497f64
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x5e3648]
call fcn.0043e738
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x497f5c
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x215], 0
je 0x497f5c
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x78]
test al, al
je 0x497f5c
mov eax, dword [ebp - 0x14]
call fcn.004a3994
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x497f5c
push ebp
call fcn.00497e10
pop ecx
test al, al
jne 0x497f5c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffb8
call fcn.00407e34
test al, al
je 0x497f5c
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, 0xffb9
call fcn.00407e34
cmp byte [ebp - 1], 0
je 0x497f5c
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.00410afc
test al, al
je 0x497f5c
mov edx, dword [ebp - 0x14]
mov eax, dword [0x5e364c]
call fcn.004975a8
inc edi
dec ebx
jne 0x497eb9
mov eax, dword [0x5e364c]
cmp dword [eax + 8], 0
jle 0x497f7c
mov eax, dword [0x5e364c]
call fcn.0049765c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x497f95
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00497c78
pop ecx
test al, al
jne 0x497f95
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 0x4a0398
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffedc
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.00410d3c
lea edx, [esp + 0x11c]
call fcn.00412a18
lea edx, [esp + 0x11c]
mov ecx, esp
mov eax, esi
call fcn.0049a444
test ebx, ebx
jne 0x4a03e4
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.004a023c
mov ebx, eax
test ebx, ebx
je 0x4a04da
cmp esi, ebx
je 0x4a040d
mov eax, dword [esp]
sub eax, dword [ebx + 0x50]
mov dword [esp + 0x108], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x54]
mov dword [esp + 0x10c], eax
jmp 0x4a0422
mov eax, dword [esp]
mov dword [esp + 0x108], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x10c], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x110], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x4a045a
add eax, 0xffffff5f
sub eax, 2
jb 0x4a0472
dec eax
sub eax, 2
jb 0x4a0486
dec eax
sub eax, 2
jb 0x4a047c
jmp 0x4a0490
add eax, 0xfffffdff
sub eax, 2
jb 0x4a0472
dec eax
sub eax, 2
jb 0x4a0486
dec eax
sub eax, 2
jb 0x4a047c
jmp 0x4a0490
mov byte [esp + 0x114], 0
jmp 0x4a0498
mov byte [esp + 0x114], 2
jmp 0x4a0498
mov byte [esp + 0x114], 1
jmp 0x4a0498
mov byte [esp + 0x114], 0
lea eax, [esp + 8]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 8]
call fcn.004f4828
mov esi, eax
call fcn.00496d70
or si, ax
mov word [esp + 0x115], si
lea eax, [esp + 0x108]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.0049be28
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x4a04dc
xor eax, eax
add esp, 0x124
pop edi
pop esi
pop ebx
ret
Function at 0x4dc4c8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
mov eax, ebx
call fcn.004dc590
test eax, eax
je 0x4dc51a
mov edi, dword [ebx + 8]
test edi, edi
je 0x4dc4f6
test edi, edi
je 0x4dc4f6
mov edx, esi
mov eax, edi
call fcn.0049aa8c
jmp 0x4dc528
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, ebx
call fcn.004dc590
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004099c8
jmp 0x4dc528
mov ecx, esi
mov edx, 0x4dc548
mov eax, ebx
call fcn.004dc450
lea eax, [ebx + 0x1c]
mov edx, dword [esi]
call fcn.00409c20
add esp, 0x200
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
mov eax, esi
call fcn.00409840
push 0
movzx eax, bl
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
mov ebx, eax
test ebx, ebx
je 0x4e9e36
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
push ebx
call sub.user32.dll_GetKeyNameTextW
test eax, eax
je 0x4e9e2f
mov eax, esi
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.0040a91c
jmp 0x4e9e36
mov eax, esi
call fcn.00409840
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x4ef57c
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 0x4ef6db
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x5daaf4], 0
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x47cbf0]
call fcn.0047cd10
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4ef6b1
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0047cdbc
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.0040a91c
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x4ef6f4
call fcn.0040aacc
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.0047ce20
test al, al
je 0x4ef69b
lea ecx, [ebp - 4]
mov edx, 0x4ef768
mov eax, dword [ebp - 0xc]
call fcn.0047d084
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.00425270
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4ef69b
xor edx, edx
push ebp
push 0x4ef694
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4ef780
mov eax, dword [ebp - 8]
push eax
call fcn.00411b5c
test eax, eax
je 0x4ef67d
mov ebx, eax
call ebx
mov ebx, eax
test ebx, ebx
je 0x4ef67d
call fcn.004ef508
test eax, eax
je 0x4ef66d
mov eax, dword [ebx + 0x50]
jmp 0x4ef670
mov eax, dword [ebx + 0x28]
and eax, 1
cmp eax, 1
sete byte [0x5daaf4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ef69b
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ef6b8
mov eax, dword [ebp - 0xc]
call fcn.00407b94
ret
Function at 0x4ef7e4
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 0x4ef82b
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4ef80e
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4ef81f
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x4ef82b
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x4f4328
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
mov edx, 0xffffffec
mov eax, esi
call fcn.004125f4
mov edi, eax
test bl, bl
je 0x4f434d
test edi, 0x40000
je 0x4f4367
test bl, bl
jne 0x4f43f0
mov eax, 0x40000
and eax, edi
cmp eax, 0x40000
jne 0x4f43f0
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 0x4f439a
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x4f43b3
mov ecx, 0x40000
or ecx, edi
mov edx, 0xffffffec
mov eax, esi
call fcn.00412878
jmp 0x4f43c6
mov ecx, 0xfffbffff
and ecx, edi
mov edx, 0xffffffec
mov eax, esi
call fcn.00412878
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x4f43d7
cmp byte [esp + 2], 0
je 0x4f43f0
cmp byte [esp + 2], 0
je 0x4f43e8
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x4f43f0
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4f4698
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x4f46be
mov eax, esp
push eax
push 0x4f4660
call sub.user32.dll_EnumWindows
jmp 0x4f46d1
mov eax, esp
push eax
push 0x4f4640
call sub.kernel32.dll_GetCurrentThreadId
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x4f4794
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
movzx esi, word [0x4f47e4]
test bl, 4
je 0x4f47a8
or si, 1
test bl, 8
je 0x4f47b1
or si, 4
test bl, 1
je 0x4f47ba
or si, 8
test bl, 2
je 0x4f47c3
or si, 0x10
test bl, 0x10
je 0x4f47cc
or si, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4f47dc
or si, 2
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4f47e8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, word [0x4f4824]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4f4803
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4f4813
or bx, 4
test esi, 0x20000000
je 0x4f481f
or bx, 2
mov eax, ebx
pop esi
pop ebx
ret