joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100030e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
cmp dword [0x1008cccc], 0
push esi
je 0x10003105
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
call fcn.10003680
add esp, 8
jmp 0x10003103
mov eax, dword [0x1008ccd0]
test eax, eax
jne 0x10003149
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push eax
push 0
call sym.vmtools.dll_Str_Vasprintf
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10003144
mov ecx, dword [0x1008ccbc]
push esi
push 0x1005de4c
push 4
push ecx
call sub.glib_2.0.dll_g_log
push esi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 0x14
call fcn.10001b50
cmp eax, 1
jne 0x1000318e
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push eax
lea ecx, [ebp - 0x400]
push 0x400
push ecx
call sym.vmtools.dll_Str_Vsnprintf
add esp, 0x10
lea edx, [ebp - 0x400]
push edx
push str.Recursive_panic:__s_n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
call fcn.10001b50
push str.Recursive_panic__giving_up._n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 8
push 0xffffffffffffffff
call dword [sym.imp.MSVCR90.dll_exit]
int3

Function at 0x10004c30
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x1008c224]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov esi, eax
test esi, esi
je 0x10004c7f
push esi
call sym.vmtools.dll_Err_Errno2String
push eax
push esi
push str.SimpleSock:_Error_in_WSAStartup:__d__s__n
call sym.vmtools.dll_Warning
add esp, 0x10
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004e3f2
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x10004ca6
mov ecx, eax
shr ecx, 8
test cl, cl
jne 0x10004ca6
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004e3f2
mov esp, ebp
pop ebp
ret
mov edx, eax
shr edx, 8
movzx ecx, dl
movzx edx, al
push ecx
push edx
push str.SimpleSock:_Unsupported_Winsock_version__d._d_n
call sym.vmtools.dll_Warning
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
xor eax, eax
pop esi
call fcn.1004e3f2
mov esp, ebp
pop ebp
ret
Function at 0x10004ce0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
test esi, esi
jle 0x10004d42
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push 0
push esi
push ebx
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x10004d5e
cmp eax, 0xffffffff
jne 0x10004d37
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2714
je 0x10004d3b
push edi
call sym.vmtools.dll_Err_Errno2String
push eax
mov eax, dword [ebp + 8]
push edi
push eax
push str.SimpleSock:_Recv_error_for_socket__d:__d__s_
call sym.vmtools.dll_Warning
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
sub esi, eax
add ebx, eax
test esi, esi
jg 0x10004cf0
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push ecx
push esi
push str.SimpleSock:_Recved__d_bytes_from_socket__d_n
call sym.vmtools.dll_Debug
add esp, 0xc
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
push edi
push str.SimpleSock:_Socket__d_closed_by_peer.
call sym.vmtools.dll_Debug
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x10004d80
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
test esi, esi
jle 0x10004de4
nop
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
push esi
lea ecx, [edi + eax]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x10004dd9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2714
je 0x10004ddd
push ebx
call sym.vmtools.dll_Err_Errno2String
push eax
mov eax, dword [ebp + 8]
push ebx
push eax
push str.SimpleSock:_Send_error_for_socket__d:__d__s_
call sym.vmtools.dll_Warning
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
sub esi, eax
add edi, eax
test esi, esi
jg 0x10004d90
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push ecx
push esi
push str.SimpleSock:_Sent__d_bytes_from_socket__d_n
call sym.vmtools.dll_Debug
add esp, 0xc
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
Function at 0x1000c910
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0x20
mov dword [ebp - 8], 5
test eax, eax
je 0x1000ca3b
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1000ca3b
push ebx
push 1
push eax
call sym.vmtools.dll_Unicode_GetAllocBytes
push 1
push esi
mov edi, eax
call sym.vmtools.dll_Unicode_GetAllocBytes
add esp, 0x10
mov ebx, eax
jmp 0x1000c960
push 1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1000c978
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1000c97a
xor esi, esi
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 4], eax
jae 0x1000c990
xor eax, eax
cmp dword [ebp + eax*4 - 0xc], esi
je 0x1000c9ee
inc eax
cmp eax, 2
jb 0x1000c984
push edi
mov edi, dword [sym.imp.MSVCR90.dll_free]
call edi
push ebx
call edi
add esp, 8
pop ebx
test esi, esi
je 0x1000ca40
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x1000ca02
cmp dword [ebp - 4], edi
jb 0x1000ca02
push esi
push esi
call sym.vmtools.dll_Err_Errno2String
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
add esp, 4
push eax
push ecx
push edx
push edi
push str.File_RenameRetry
push str.FILE:__s:_Retry_time_expired___u___s___s___last_error__s___d__n
call sym.vmtools.dll_Log
add esp, 0x1c
push esi
push str.File_RenameRetry
call fcn.1000c670
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x64
push 0xa
call fcn.1000a600
add esp, 8
add dword [ebp - 4], eax
jmp 0x1000c960
push esi
push esi
call sym.vmtools.dll_Err_Errno2String
mov ecx, dword [ebp + 8]
add esp, 4
push eax
mov eax, dword [ebp + 0xc]
push eax
push ecx
push str.File_RenameRetry
push str.FILE:__s:_Non_retriable_error_encountered___n
call sym.vmtools.dll_Log
add esp, 0x18
push esi
push str.File_RenameRetry
call fcn.1000c670
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, 0x1e7
push esi
push str.File_RenameRetry
call fcn.1000c670
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403660
Capabilities:
Query or enumerate registry value

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

Function at 0x404504
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x479048], 0
je 0x404565
cmp word [0x47921c], 0xd7b2
jne 0x40452d
cmp dword [0x479224], 0
jbe 0x40452d
mov eax, 0x479218
call dword [0x479234]
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 0x40458c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47602c], 0
jne 0x404581
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4080f8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408188
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408188
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x40813b
test edx, 3
jne 0x40812a
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408135
jmp 0x40813b
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x40813b
cmp dword [ecx - 8], 1
je 0x408145
mov edx, ebx
or edx, 3
call fcn.00404dd0
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x408157
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404684

Function at 0x408194
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408224
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408224
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4081d7
test edx, 3
jne 0x4081c6
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4081d1
jmp 0x4081d7
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4081d7
cmp dword [ecx - 8], 1
je 0x4081e1
mov edx, ebx
or edx, 3
call fcn.00404dd0
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4081f3
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404684

Function at 0x40b638
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 0x40b671
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404774
jmp 0x40b67a
mov eax, ebx
mov edx, esi
call fcn.004046d8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b684
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 0x40b6a6
movzx eax, byte [esp]
jmp 0x40b6a8
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40bd38
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bbb0
mov eax, dword [0x47848c]
cmp byte [eax], 0
je 0x40bdb4
mov eax, dword [0x478294]
call fcn.00403028
call fcn.00402de8
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.00408dd0
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 0x40bdfc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bdea
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x478238]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x47b7f4]
call fcn.00405850
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 0x40c648
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 0x40c71e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040471c
lea eax, [ebp - 4]
call fcn.00404b98
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b48
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c708
mov eax, ebx
call fcn.00402c8c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c701
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.00404b48
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c6eb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c730
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c6eb
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 0x40c708
mov eax, dword [ebp - 0x10]
call fcn.00402ca8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c725
lea eax, [ebp - 4]
call fcn.00404684
ret
Function at 0x41b4f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x47c300
cmp dword [edi], 0
jne 0x41b56c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x47c2fc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x476ad4
mov ecx, 2
call fcn.00402e7c
mov edx, 0x41b4c8
lea eax, [esi + 5]
call fcn.0041b4e8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041b4e8
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 0x41b541
mov dword [0x47c2fc], 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 0x41dac8
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.00404b48
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41db20
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4785b8]
mov dl, 1
mov eax, dword [0x41d5ec]
call fcn.0040bef8
call fcn.004040cc
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041d6f4
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 0x41ecb0
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 0x41ecb6
ret
Function at 0x4304e4
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404b38
xor eax, eax
push ebp
push 0x430619
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x4305ec
xor edx, edx
push ebp
push 0x4305e5
push dword fs:[edx]
mov dword fs:[edx], esp
mov ebx, dword [ebp - 4]
mov eax, ebx
test eax, eax
je 0x430531
sub eax, 4
mov eax, dword [eax]
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4305ba
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov esi, eax
xor eax, eax
push ebp
push 0x4305a9
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x430570
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 4]
call fcn.00404b48
lea ecx, [ebx + 1]
mov edx, esi
call fcn.00402e7c
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4305b0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x4781d8]
mov dl, 1
mov eax, dword [0x407464]
call fcn.0040bebc
call fcn.004040cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430620
lea eax, [ebp - 4]
call fcn.00404684
ret
Function at 0x430628
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4307e3
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.00404e34
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
mov ecx, 0x4307fc
call fcn.00404994
mov eax, ebx
call fcn.0041aa70
mov edi, eax
dec edi
test edi, edi
jl 0x4306e0
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.0041aa44
mov edx, dword [0x429f58]
call fcn.004039e4
test al, al
je 0x4306dc
push dword [ebp - 8]
mov edx, esi
mov eax, ebx
call fcn.0041aa44
lea edx, [ebp - 0x14]
call fcn.0043ee14
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.00404e34
push dword [ebp - 0x18]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404a08
inc esi
dec edi
jne 0x43068e
movzx eax, byte [0x430800]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x43080c
mov eax, dword [ebp - 8]
call fcn.0040d10c
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 8]
call fcn.0040471c
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.0043ee14
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x4307fc
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x360]
call fcn.0043ee14
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x4307fc
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x4307fc
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x430818
call fcn.004094d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4307ea
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.004046a8
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004046a8
lea eax, [ebp - 0x14]
call fcn.00404684
lea eax, [ebp - 0x10]
call fcn.00404684
lea eax, [ebp - 8]
mov edx, 2
call fcn.004046a8
ret
Function at 0x4331a0
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.00404684
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4331ee
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.004048f4
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x437270
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 0x4373a3
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 [0x41d64c]
call fcn.0041d71c
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x437379
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0041d7bc
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.004048f4
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x4373b8
call fcn.00404994
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0041d820
lea ecx, [ebp - 4]
mov edx, 0x4373f4
mov eax, dword [ebp - 0xc]
call fcn.0041da50
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040daf8
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x43735c
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x437400
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 [0x477538]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x437363
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x437450
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 0x437497
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43747a
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43748b
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x437497
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x43c5bc
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 [0x47c560], 0
je 0x43c705
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x478428]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x43c705
mov eax, dword [0x47c564]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x47c560]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x43c6d4
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x47c560]
call fcn.004145c0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x43c6cc
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1da], 0
je 0x43c6cc
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x43c6cc
mov eax, dword [ebp - 0x14]
call fcn.00446914
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x43c6cc
push ebp
call fcn.0043c578
pop ecx
test al, al
jne 0x43c6cc
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00403a54
test al, al
je 0x43c6cc
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.00403a54
cmp byte [ebp - 1], 0
je 0x43c6cc
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x43c6cc
mov edx, dword [ebp - 0x14]
mov eax, dword [0x47c564]
call fcn.0043bce8
inc edi
dec ebx
jne 0x43c621
mov eax, dword [0x47c564]
cmp dword [eax + 8], 0
jle 0x43c6ec
mov eax, dword [0x47c564]
call fcn.0043bda0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x43c705
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0043c3dc
pop ecx
test al, al
jne 0x43c705
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