joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c953
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x481d00]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41c993
cmp byte [ebx], 0xa
jne 0x41c993
or byte [eax + edi + 0x28], 4
jmp 0x41c998
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41ca96
mov al, byte [edx]
cmp al, 0x1a
je 0x41ca78
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41c9c7
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41c9ec
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41c9f6
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41c9a9
jmp 0x41ca96
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ca73
cmp dword [ebp - 0xc], 0
je 0x41ca73
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x481d00]
test byte [eax + edi + 0x28], 0x48
je 0x41ca4d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ca38
mov byte [esi], dl
jmp 0x41ca49
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x481d00]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41ca96
cmp byte [ebp - 1], 0xa
jne 0x41ca5c
cmp esi, ebx
jne 0x41ca5c
mov byte [esi], 0xa
jmp 0x41ca95
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041d4d3
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41ca96
mov byte [esi], 0xd
jmp 0x41ca95
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x481d00]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41ca92
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41ca96
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41ca9f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x481d00]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41cae2
cmp word [esi], dx
jne 0x41cae2
or byte [edi + eax + 0x28], 4
jmp 0x41cae7
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41cc3a
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41cc1a
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41cb29
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41cb5f
cmp eax, edx
jae 0x41cb6b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41cb01
jmp 0x41cc3a
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41cc16
cmp dword [ebp - 0x14], 0
je 0x41cc16
mov eax, dword [ebx*4 + 0x481d00]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41cbee
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41cbb7
mov word [esi], cx
jmp 0x41cbea
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x481d00]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x481d00]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x481d00]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41cc3a
pop ebx
cmp word [ebp - 4], bx
jne 0x41cbff
cmp esi, dword [ebp + 0xc]
jne 0x41cbff
mov word [esi], bx
jmp 0x41cc37
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041d4d3
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41cc3a
push 0xd
jmp 0x41cc33
mov ecx, dword [ebx*4 + 0x481d00]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41cc31
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41cc3a
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x416934
Capabilities:
Hide graphical window

Disassembly:
push esi
push ebx
sub esp, 0x74
mov ebx, dword [esp + 0x80]
mov eax, dword [esp + 0x84]
mov esi, dword [eax + 8]
inc dword [ebx + 0x5c]
mov dword [esp + 4], 0
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
sub esp, 8
mov eax, dword [esi + 0x98]
mov edx, eax
and edx, 0xfffffffe
mov dword [esi + 0x98], edx
test eax, 0x10000
je 0x4169b5
mov dword [esp + 0x10], 0x12
mov eax, dword [ebx + 0x5c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], ebx
mov eax, dword [esi + 0x14]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 0
lea eax, [esp + 0x10]
mov dword [esp], eax
call fcn.00417244
xor eax, eax
add esp, 0x74
pop ebx
pop esi
ret
Function at 0x41d720
Capabilities:
Enumerate gui resources

Disassembly:
push esi
push ebx
sub esp, 0x64
mov esi, dword [esp + 0x70]
mov dword [esp + 4], 1
lea ebx, [esp + 0x28]
mov dword [esp], ebx
mov eax, dword [0x68bb7c]
call dword [eax + 0x2dc]
mov ecx, ebx
mov edx, dword [esi]
mov eax, esi
call fcn.00417ebc
mov eax, dword [esp + 0x40]
lea eax, [eax*4 + 4]
mov dword [esp], eax
mov eax, dword [0x68bb7c]
call dword [eax + 0x14]
mov esi, eax
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x41d78c
mov dword [esi], 0
mov dword [esp], ebx
mov eax, dword [0x68bb7c]
call dword [eax + 0x1bc]
mov eax, esi
add esp, 0x64
pop ebx
pop esi
ret
cmp eax, 1
je 0x41d7dc
mov dword [esp + 0x14], ebx
lea eax, [esi + eax*4]
mov dword [eax], 0
sub eax, 4
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
mov dword [esp + 4], eax
mov dword [esp], 0x417e64
call sub.USER32.dll_EnumWindows
sub esp, 8
test eax, eax
je 0x41d804
lea eax, [esi - 4]
cmp dword [esp + 0x18], eax
je 0x41d774
mov dword [esp], str.num_matched_toplevel_windows_does_not_equal_num_children
mov eax, dword [0x68bb7c]
call dword [eax + 0x10]
jmp 0x41d774
lea eax, [esp + 0x1c]
mov dword [esp + 4], eax
mov dword [esp], ebx
mov eax, dword [0x68bb7c]
call dword [eax + 0x24c]
mov eax, dword [eax + 0xc]
mov dword [esi], eax
mov dword [esi + 4], 0
jmp 0x41d774
mov dword [esp], esi
mov eax, dword [0x68bb7c]
call dword [eax + 0x18]
xor esi, esi
jmp 0x41d774
Function at 0x4305dc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebp, dword [esp + 0x6c]
mov edx, dword [esp + 0x7c]
test ebp, ebp
je 0x43072c
test edx, edx
js 0x430734
lea ebx, [ebp + 0x10]
xor edi, edi
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x43072c
mov dword [esp + 0x24], edi
mov esi, edx
mov edx, dword [esp + 0x78]
jmp 0x4306fe
mov dword [esp + 4], edx
mov eax, dword [ebx]
mov dword [esp], eax
mov eax, dword [0x68bb7c]
mov dword [esp + 0x20], edx
call dword [eax + 0x51c]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov ecx, dword [ebx]
lea eax, [esp + 0x3c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [esp + 0x28]
sub eax, ecx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov eax, dword [ebp]
mov dword [esp], eax
call fcn.0047cb14
mov eax, dword [ebx]
mov edx, dword [esp + 0x20]
mov ecx, dword [0x68bb7c]
cmp edi, esi
jle 0x430681
mov edi, esi
mov dword [esp + 4], edi
mov dword [esp], eax
mov dword [esp + 0x20], edx
call dword [ecx + 0x51c]
mov ecx, dword [esp + 0x74]
add ecx, dword [ebx + 0x14]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x70]
add ecx, dword [ebx + 0x10]
add ecx, dword [esp + 0x3c]
mov dword [esp + 0x18], ecx
sub eax, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [ebp]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call fcn.0047d108
mov edx, dword [esp + 0x20]
mov eax, dword [ebx + 8]
sub edx, eax
sub esi, eax
test esi, esi
jle 0x43072c
add ebx, 0x20
inc dword [esp + 0x24]
mov eax, dword [esp + 0x24]
cmp dword [ebp + 0xc], eax
jle 0x43072c
mov edi, dword [ebx + 0xc]
test edi, edi
jle 0x4306e3
cmp edi, edx
jle 0x4306e3
test edx, edx
jg 0x43061c
mov dword [esp + 0x3c], 0
mov eax, dword [ebx]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
xor edx, edx
jmp 0x430675
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, 0x5f5e100
jmp 0x4305fb
Function at 0x4329a4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov dword [esp + 4], 0xb8
mov dword [esp], 0x68b24c
mov eax, dword [0x68bb7c]
call dword [eax + 0x4cc]
mov dword [esp + 0x38], eax
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
dec eax
mov edx, dword [esp + 0x38]
mov dword [edx], eax
test eax, eax
je 0x4329e2
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, edx
add ebx, 0x40
lea eax, [esp + 0x44]
mov dword [esp + 4], eax
mov dword [esp], ebx
mov eax, dword [0x68bb7c]
call dword [eax + 0x24c]
test eax, eax
je 0x432a25
mov eax, dword [eax + 0xc]
mov dword [esp], eax
mov eax, dword [0x68bb7c]
call dword [eax + 0x18]
lea edx, [esp + 0x44]
mov dword [esp], edx
mov eax, dword [0x68bb7c]
call dword [eax + 0x30c]
test eax, eax
jne 0x432a01
mov dword [esp], ebx
mov eax, dword [0x68bb7c]
call dword [eax + 0x1bc]
mov edx, dword [esp + 0x38]
add edx, 4
mov dword [esp + 0x3c], edx
lea eax, [esp + 0x44]
mov dword [esp + 4], eax
mov dword [esp], edx
mov eax, dword [0x68bb7c]
call dword [eax + 0x24c]
test eax, eax
je 0x432b40
mov eax, dword [eax + 0xc]
mov dword [esp + 0x34], eax
add eax, 4
mov dword [esp + 0x30], eax
mov dword [esp + 4], 0xb8
mov dword [esp], 0x68b24c
mov eax, dword [0x68bb7c]
call dword [eax + 0x4cc]
mov dword [esp + 0x2c], eax
mov ecx, dword [eax + 0x78]
test ecx, ecx
jle 0x432b05
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
nop
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
add eax, dword [edx]
mov dword [esp + 0x20], eax
mov esi, eax
add esi, 4
mov edi, eax
add edi, 8
mov edx, dword [eax + 4]
test edx, edx
jle 0x432add
xor ebp, ebp
xor ebx, ebx
nop
mov eax, dword [edi]
mov eax, dword [eax + ebp + 8]
mov dword [esp], eax
mov eax, dword [0x68bb7c]
call dword [eax + 0x18]
inc ebx
add ebp, 0xc
cmp ebx, dword [esi]
jl 0x432ac4
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 8]
mov dword [esp], eax
mov eax, dword [0x68bb7c]
call dword [eax + 0x18]
inc dword [esp + 0x24]
add dword [esp + 0x28], 0xc
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
cmp edx, dword [eax + 0x78]
jl 0x432aa0
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 4]
mov dword [esp], eax
mov eax, dword [0x68bb7c]
call dword [eax + 0x18]
mov edx, dword [esp + 0x34]
mov dword [esp], edx
mov eax, dword [0x68bb7c]
call dword [eax + 0x18]
lea eax, [esp + 0x44]
mov dword [esp], eax
mov eax, dword [0x68bb7c]
call dword [eax + 0x30c]
test eax, eax
jne 0x432a5c
mov edx, dword [esp + 0x3c]
mov dword [esp], edx
mov eax, dword [0x68bb7c]
call dword [eax + 0x1bc]
mov eax, dword [esp + 0x38]
add eax, 0x7c
mov dword [esp], eax
mov eax, dword [0x68bb7c]
call dword [eax + 0x1bc]
mov edx, dword [esp + 0x38]
mov eax, dword [edx + 0xb4]
mov dword [esp], eax
mov eax, dword [0x68bb7c]
call dword [eax + 0x18]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x433f18
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov eax, dword [0x68b2b0]
test eax, eax
je 0x433f24
ret
push edi
push esi
sub esp, 0x194
mov dword [esp + 0x34], 0x94
lea eax, [esp + 0x34]
mov dword [esp], eax
call sub.KERNEL32.dll_GetVersionExA
push eax
mov eax, dword [esp + 0x44]
mov dword [0x68b2b0], eax
cmp eax, 2
je 0x433f64
mov dword [0x68b2b4], 1
add esp, 0x194
pop esi
pop edi
ret
cmp dword [esp + 0x38], 5
jne 0x433f4f
cmp dword [esp + 0x3c], 1
jne 0x433f4f
mov dword [esp + 0x30], 0xc8
lea esi, [esp + 0xc8]
mov ecx, 0xc8
xor eax, eax
mov edi, esi
rep stosb byte es:[edi], al
lea eax, [esp + 0x2c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], str.Control_PanelAppearance
mov dword [esp], 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
je 0x433fd0
mov dword [0x68b2b4], 2
mov eax, dword [0x68b2b0]
jmp 0x433f59
lea eax, [esp + 0x30]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.Current
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
push edi
mov edi, str.Windows_Standard
mov ecx, 0x11
repe cmpsb byte [esi], byte es:[edi]
seta al
setb dl
sub eax, edx
movsx eax, al
cmp eax, 1
sbb eax, eax
add eax, 2
mov dword [0x68b2b4], eax
jmp 0x433fc9
Function at 0x434038
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov ecx, dword [0x68b264]
test ecx, ecx
je 0x434044
ret
sub esp, 0x4c
mov dword [0x68b264], 1
mov dword [esp + 0x18], 8
mov dword [esp + 0x1c], 0xff
lea eax, [esp + 0x18]
mov dword [esp], eax
call sub.COMCTL32.DLL_InitCommonControlsEx
push edx
test eax, eax
je 0x43419c
call fcn.00433f18
cmp eax, 2
je 0x4341b0
mov dword [0x68cba4], 0x5e7560
mov dword [0x68b280], 3
mov dword [0x68b288], 0
mov dword [0x68b28c], 0
mov eax, dword [esp + 0x50]
mov dword [0x68b290], eax
mov dword [0x68b29c], 0
mov dword [0x68b2a0], 0
mov dword [0x68b2a4], 0x600821
mov dword [0x68b284], 0x435790
mov dword [0x68b294], 0
mov dword [0x68b298], 0
mov dword [esp], 0x68b280
call sub.USER32.dll_RegisterClassA
push ecx
test ax, ax
je 0x434188
mov dword [esp], 0
call sub.USER32.dll_GetKeyboardLayout
push edx
mov dword [esp + 0xc], 4
lea edx, [esp + 0x14]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x20001004
and eax, 0xffff
mov dword [esp], eax
call sub.KERNEL32.dll_GetLocaleInfoA
sub esp, 0x10
test eax, eax
jne 0x434158
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
mov dword [esp], 0x433e04
call fcn.00417be8
add esp, 0x4c
ret
mov dword [esp + 8], 2
lea eax, [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sub.GDI32.dll_TranslateCharsetInfo
sub esp, 0xc
test eax, eax
je 0x434140
mov eax, dword [esp + 0x20]
call fcn.00433d68
jmp 0x434140
mov dword [esp], str.Unable_to_register_TkChild_class
mov eax, dword [0x68bb7c]
call dword [eax + 0x10]
jmp 0x434107
mov dword [esp], str.Unable_to_load_common_controls__
mov eax, dword [0x68bb7c]
call dword [eax + 0x10]
jmp 0x434076
mov dword [0x68cba4], 0x5e7540
jmp 0x43408e
Function at 0x4349d0
Capabilities:
Open clipboard

Disassembly:
push esi
push ebx
sub esp, 0x14
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx + 0x510]
test eax, eax
je 0x434a6d
mov eax, dword [eax + 0x14]
mov dword [esp], eax
call fcn.004165e8
mov esi, eax
call sub.USER32.dll_GetClipboardOwner
cmp eax, esi
je 0x434a74
mov eax, dword [ebx + 0x500]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x508]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x510]
mov dword [esp], eax
call fcn.0042ae7c
mov eax, dword [ebx + 0x504]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x508]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x510]
mov dword [esp], eax
call fcn.0042ae7c
mov eax, dword [ebx + 0x510]
mov dword [esp], eax
call fcn.00404238
mov eax, dword [ebx + 0x510]
mov dword [esp], eax
mov eax, dword [0x68bb7c]
call dword [eax + 0x368]
mov dword [ebx + 0x510], 0
add esp, 0x14
pop ebx
pop esi
ret
mov dword [esp], eax
call sub.USER32.dll_OpenClipboard
push ecx
call sub.USER32.dll_EmptyClipboard
mov dword [esp + 4], 1
mov dword [esp], ebx
call fcn.00482c88
call sub.USER32.dll_CloseClipboard
jmp 0x4349fd
Function at 0x47d0d4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
add eax, dword [esp + 0xc]
mov dword [esp + 0xc], eax
pop ebx
jmp fcn.0047cb14

Function at 0x481bfc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 0x10
call sub.USER32.dll_GetKeyState
push ecx
movsx ebx, ax
shr ebx, 0x1f
mov dword [esp], 0x11
call sub.USER32.dll_GetKeyState
push edx
test ax, ax
js 0x481cd8
mov dword [esp], 0x12
call sub.USER32.dll_GetKeyState
push edx
test ax, ax
js 0x481ccc
mov dword [esp], 0x14
call sub.USER32.dll_GetKeyState
push ecx
test al, 1
je 0x481c53
or ebx, 2
mov dword [esp], 0x90
call sub.USER32.dll_GetKeyState
push edx
test al, 1
je 0x481c67
or ebx, 8
mov dword [esp], 0x91
call sub.USER32.dll_GetKeyState
push ecx
test al, 1
je 0x481c7b
or ebx, 0x20
mov dword [esp], 1
call sub.USER32.dll_GetKeyState
push edx
test ax, ax
js 0x481cc4
mov dword [esp], 4
call sub.USER32.dll_GetKeyState
push ecx
test ax, ax
js 0x481cbc
mov dword [esp], 2
call sub.USER32.dll_GetKeyState
push edx
test ax, ax
jns 0x481cb4
or bh, 4
mov eax, ebx
add esp, 0x18
pop ebx
ret
or bh, 2
jmp 0x481c9f
or bh, 1
jmp 0x481c8d
or ebx, 0x20000
jmp 0x481c3f
or ebx, 4
jmp 0x481c29
Function at 0x482058
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x14c
mov ebp, eax
mov esi, edx
mov ebx, ecx
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.USER32.dll_MapVirtualKeyA
sub esp, 8
test ebx, ebx
jne 0x482184
cmp ebp, 0x14
je 0x4821ac
cmp ebp, 0x91
je 0x4821ac
cmp ebp, 0x90
je 0x4821ac
mov dword [esp + 4], 2
mov dword [esp], ebp
mov dword [esp + 0x28], eax
call sub.USER32.dll_MapVirtualKeyA
sub esp, 8
cmp eax, 0x7fff
mov edx, dword [esp + 0x28]
jbe 0x4820d8
mov eax, 0xff20
add esp, 0x14c
pop ebx
pop esi
pop edi
pop ebp
ret
lea ebx, [esp + 0x40]
mov ecx, 0x100
xor eax, eax
mov edi, ebx
rep stosb byte es:[edi], al
test esi, 1
je 0x4820f4
mov byte [esp + 0x50], pe_nt_image_headers32
test esi, 4
je 0x482101
mov byte [esp + 0x51], pe_nt_image_headers32
test esi, 0x10
je 0x48210e
mov byte [esp + 0x52], pe_nt_image_headers32
test esi, 2
je 0x48211b
mov byte [esp + 0x54], 1
test esi, 0x20
je 0x48212b
mov byte [esp + 0xd1], 1
and esi, 8
je 0x482138
mov byte [esp + 0xd0], 1
mov dword [esp + 0x10], 0
lea esi, [esp + 0x3c]
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], ebp
mov dword [esp + 0x28], edx
call sub.USER32.dll_ToAscii
sub esp, 0x14
test eax, eax
mov edx, dword [esp + 0x28]
js 0x482264
cmp eax, 2
je 0x482208
dec eax
jne 0x482184
movzx eax, byte [esp + 0x3c]
cmp al, 0x1f
jbe 0x482184
cmp al, 0x7f
jne 0x48218e
cmp ebp, 0x91
jbe 0x48219c
xor eax, eax
add esp, 0x14c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp ebp, 0x11
je 0x4821f0
cmp ebp, 0x12
je 0x4821d8
cmp ebp, 0x10
je 0x4821c0
nop
mov eax, dword [ebp*4 + 0x611440]
add esp, 0x14c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0xa1
call sub.USER32.dll_GetKeyState
push ecx
test al, 0x80
je 0x4821ac
mov eax, 0xffe2
jmp 0x48218e
mov dword [esp], 0xa5
call sub.USER32.dll_GetKeyState
push edx
test al, 0x80
je 0x4821ac
mov eax, 0xffea
jmp 0x48218e
mov dword [esp], 0xa3
call sub.USER32.dll_GetKeyState
push ebx
test al, 0x80
je 0x4821ac
mov eax, 0xffe4
jmp 0x48218e
movsx eax, byte [esp + 0x3c]
mov dword [esp], eax
call sub.USER32.dll_VkKeyScanA
push edi
movsx edx, ah
mov dword [esp + 0x2c], edx
movzx ebp, al
mov dword [esp + 4], 0
mov dword [esp], ebp
call sub.USER32.dll_MapVirtualKeyA
sub esp, 8
mov edx, eax
mov ecx, 0x100
xor eax, eax
mov edi, ebx
rep stosb byte es:[edi], al
test byte [esp + 0x2c], 1
je 0x48224c
mov byte [esp + 0x50], pe_nt_image_headers32
test byte [esp + 0x2c], 2
je 0x482258
mov byte [esp + 0x51], pe_nt_image_headers32
test byte [esp + 0x2c], 4
je 0x482264
mov byte [esp + 0x52], pe_nt_image_headers32
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], ebp
call sub.USER32.dll_ToAscii
sub esp, 0x14
mov eax, 0xff20
jmp 0x48218e
Function at 0x4823e8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
sub esp, 0x18
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov dword [ebx + 0x34], 0
test edx, edx
je 0x482418
xor eax, eax
jmp 0x48240c
inc eax
cmp eax, 0x92
je 0x482420
cmp dword [eax*4 + 0x611440], edx
jne 0x482404
mov dword [ebx + 0x34], eax
add esp, 0x18
pop ebx
ret
cmp edx, 0x1f
jbe 0x482418
movsx edx, dl
mov dword [esp], edx
call sub.USER32.dll_VkKeyScanA
push edx
cmp ax, 0xffff
je 0x482418
mov edx, eax
sar dx, 8
test dl, 1
je 0x482446
or dword [ebx + 0x30], 1
test dl, 2
je 0x48244f
or dword [ebx + 0x30], 4
and edx, 4
je 0x482458
or dword [ebx + 0x30], 0x10
movzx eax, al
jmp 0x482415

Function at 0x482460
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x1c
mov edx, dword [esp + 0x24]
test edx, edx
je 0x482490
xor eax, eax
jmp 0x482478
inc eax
cmp eax, 0x92
je 0x482488
cmp dword [eax*4 + 0x611440], edx
jne 0x482470
add esp, 0x1c
ret
cmp edx, 0x1f
ja 0x482496
lea esi, [esi]
xor eax, eax
add esp, 0x1c
ret
movsx edx, dl
mov dword [esp], edx
call sub.USER32.dll_VkKeyScanA
push ecx
cmp ax, 0xffff
je 0x482490
movzx eax, al
jmp 0x482481

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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov ebx, dword [esi + 0x30]
mov ebp, ebx
mov edi, dword [eax + 0xc0]
test edi, edi
jne 0x482810
mov eax, dword [esi + 0x34]
xor ecx, ecx
mov edx, ebx
call fcn.00482058
mov edi, eax
test eax, eax
jne 0x4827ed
test bl, 0x14
jne 0x48281c
test ebp, 1
jne 0x4827f8
mov eax, edi
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, ebp
and edx, 0xfffffffe
mov eax, dword [esi + 0x34]
xor ecx, ecx
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00482058
mov dword [esp], eax
call fcn.0048251c
jmp 0x4827ce
mov ebp, ebx
and ebp, 0xffffffeb
mov eax, dword [esi + 0x34]
xor ecx, ecx
mov edx, ebp
call fcn.00482058
test eax, eax
je 0x4827e5
mov edi, eax
jmp 0x4827ed

Function at 0x482868
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
sub esp, 0x18
mov ebx, eax
mov dword [esp], 1
call fcn.00434ba8
mov dword [esp], ebx
call sub.USER32.dll_OpenClipboard
push eax
call sub.USER32.dll_EmptyClipboard
call fcn.00433f18
mov dword [esp + 4], 0
cmp eax, 2
je 0x4828c0
mov dword [esp], 1
call sub.USER32.dll_SetClipboardData
sub esp, 8
call sub.USER32.dll_CloseClipboard
mov dword [esp], 0
call fcn.00434ba8
add esp, 0x18
pop ebx
ret
mov dword [esp], 0xd
call sub.USER32.dll_SetClipboardData
sub esp, 8
jmp 0x4828a9
Function at 0x482ec0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 4]
jmp fcn.00482868