joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ff20
Capabilities:
Get hostname
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x568ae4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
mov eax, dword [0x5bc6c4]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edi
mov ecx, dword [0x5cfb04]
mov dword [esp + 0x124], 0
test ecx, ecx
je 0x40ff77
call fcn.0040d740
mov ecx, dword [0x5cfb04]
test ecx, ecx
je 0x40ff77
mov edx, dword [ecx]
push 1
call dword [edx]
push 0x9c
call fcn.00547b9a
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0x124], 1
je 0x40ff9d
mov ecx, eax
call fcn.0040c4f0
jmp 0x40ff9f
xor eax, eax
mov ebx, dword [esp + 0x12c]
mov ecx, eax
push ebx
push 0x186a0
push edi
push 0x40fde0
mov byte [esp + 0x134], 0
mov dword [0x5cfb04], eax
call fcn.0040c700
test al, al
je 0x4100cd
push ebp
lea eax, [esp + 0x20]
push 0x100
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x410059
mov edx, dword [esi + 0xc]
mov ebp, dword [sym.imp.WS2_32.dll_inet_ntoa]
mov eax, dword [edx]
mov ecx, dword [eax]
push ecx
call ebp
push eax
lea ecx, [esp + 0x14]
call fcn.0054c9d4
mov edx, dword [esi + 0xc]
movsx eax, word [esi + 0xa]
mov ecx, dword [edx]
add ecx, eax
mov eax, dword [esi]
cmp ecx, eax
jae 0x410059
xor edi, edi
push 0x5ba4a4
lea ecx, [esp + 0x14]
call fcn.0054c9d4
mov edx, dword [esi + 0xc]
add edi, 4
mov eax, dword [edx + edi]
mov ecx, dword [eax]
push ecx
call ebp
push eax
lea ecx, [esp + 0x14]
call fcn.0054c9d4
mov edx, dword [esi + 0xc]
movsx eax, word [esi + 0xa]
mov ecx, dword [edx + edi]
add ecx, eax
mov eax, dword [esi]
cmp ecx, eax
jb 0x41001d
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x14]
push edx
call fcn.00545a7f
mov eax, dword [eax]
lea ecx, [esp + 0x1c]
push 0x5ba460
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], eax
call fcn.00545ac1
mov edx, dword [esp + 0x1c]
lea esi, [edi + 0x38c]
push edx
push 0
mov ecx, esi
mov byte [esp + 0x130], 2
call fcn.0043be20
push ebx
lea eax, [esp + 0x14]
push 0x5ba454
push eax
call fcn.00545283
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
push 2
mov ecx, esi
call fcn.0043be20
lea ecx, [esp + 0x1c]
mov byte [esp + 0x128], 0
call fcn.0054c5f8
pop ebp
jmp 0x410102
push ebx
lea edx, [esp + 0x10]
push 0x5ba444
push edx
call fcn.00545283
mov eax, dword [esp + 0x18]
add esp, 0xc
lea esi, [edi + 0x38c]
push eax
push 0
mov ecx, esi
call fcn.0043be20
push 0x5ba43c
push 2
mov ecx, esi
call fcn.0043be20
push 0x5ba434
push 3
mov ecx, esi
call fcn.0043be20
lea ecx, [esp + 0xc]
mov dword [esp + 0x124], 0xffffffff
call fcn.0054c5f8
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x11c
ret 8
Function at 0x4129e0
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x18]
push edi
push eax
xor edi, edi
push 0x8004667e
push ebx
mov dword [esp + 0x28], edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test esi, esi
jle 0x412a25
mov ebp, dword [esp + 0x18]
push 0
lea ecx, [edi + ebp]
push esi
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x412a25
sub esi, eax
add edi, eax
test esi, esi
jg 0x412a0b
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x412a30
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
mov eax, 0x2104
call fcn.00531210
mov eax, dword [esp + 0x2108]
push ebx
push ebp
push esi
mov ebp, dword [eax]
mov ebx, dword [eax + 4]
push edi
mov ecx, 0x7ff
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.WS2_32.dll_recv]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 1
xor eax, eax
lea ecx, [esp + 0x14]
cmp dword [ecx], ebx
je 0x412a8a
inc eax
add ecx, 4
cmp eax, 1
jb 0x412a7d
cmp eax, 1
jne 0x412a9b
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], 2
push 0
push 0
lea eax, [esp + 0x18]
push 0
push eax
push 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x412b40
lea ecx, [esp + 0x10]
push ecx
push ebp
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x412af7
push 0
lea edx, [esp + 0x118]
push 0x2000
push edx
push ebp
call edi
mov esi, eax
test esi, esi
jle 0x412b40
lea eax, [esp + 0x114]
push esi
push eax
push ebx
call fcn.004129e0
add esp, 0xc
test eax, eax
je 0x412b40
cmp eax, esi
jne 0x412b40
lea ecx, [esp + 0x10]
push ecx
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x412a6b
push 0
lea edx, [esp + 0x118]
push 0x2000
push edx
push ebx
call edi
mov esi, eax
test esi, esi
jle 0x412b40
lea eax, [esp + 0x114]
push esi
push eax
push ebp
call fcn.004129e0
add esp, 0xc
test eax, eax
je 0x412b40
cmp eax, esi
je 0x412a6b
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push ebp
call esi
push ebx
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2104
ret 4

Function at 0x412b60
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x412b7e
xor eax, eax
pop esi
add esp, 0x10
ret
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
xor eax, eax
push edx
mov dword [esp + 0xa], eax
mov word [esp + 8], 2
mov dword [esp + 0xe], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x12], eax
mov word [esp + 0x16], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 6], ax
lea eax, [esp + 4]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x412bd1
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop esi
add esp, 0x10
ret
push 3
push esi
call dword [sym.imp.WS2_32.dll_listen]
mov eax, esi
pop esi
add esp, 0x10
ret
Function at 0x412bf0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x14
xor eax, eax
push esi
mov dword [esp + 0xa], eax
mov word [esp + 8], 0
mov dword [esp + 0xe], eax
mov dword [esp + 4], 0x10
mov dword [esp + 0x12], eax
push eax
push eax
mov word [esp + 0x1e], ax
call fcn.00412b60
mov esi, eax
add esp, 8
test esi, esi
jbe 0x412c3c
lea ecx, [esp + 4]
lea edx, [esp + 8]
push ecx
push edx
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x412c4a
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop esi
add esp, 0x14
ret
mov eax, dword [esp + 0xa]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [esp + 0x1c]
mov word [ecx], ax
mov eax, esi
pop esi
add esp, 0x14
ret

Function at 0x412c70
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
sbb eax, eax
inc eax
add esp, 0x190
ret

Function at 0x412d40
Capabilities:
Create thread
Set socket configuration

Disassembly:
mov eax, 0x2018
call fcn.00531210
push ebx
push edi
mov ecx, 0x803
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x14], 0x57c840
mov dword [esp + 0xc], 1
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x2024]
push eax
push 0
call fcn.00412b60
mov ebx, dword [sym.imp.WS2_32.dll_closesocket]
mov edi, eax
add esp, 8
test edi, edi
jbe 0x412e51
mov ecx, dword [esp + 0x2028]
push ecx
push 0
call fcn.00412b60
add esp, 8
mov dword [esp + 8], eax
test eax, eax
jbe 0x412e4e
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_accept]
push esi
push 0
push 0
push edi
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x412e45
lea edx, [esp + 0x14]
push 4
push edx
push 8
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x412e45
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x20], esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
push 0
push 0
push eax
call ebp
cmp eax, 0xffffffff
jne 0x412e10
push 0x3e8
call esi
jmp 0x412df7
mov ecx, dword [esp + 0x24]
cmp ecx, 0x800
jge 0x412e25
inc ecx
mov dword [esp + 0x24], ecx
mov dword [esp + ecx*4 + 0x28], eax
lea ecx, [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
push 0
push edx
push 0x412ca0
push 0
push 0
call edi
test eax, eax
je 0x412e07
push eax
call ebx
jmp 0x412df7
push esi
call ebx
mov eax, dword [esp + 0x10]
pop esi
pop ebp
push eax
call ebx
push edi
call ebx
pop edi
xor eax, eax
pop ebx
add esp, 0x2018
ret
Function at 0x41b110
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x41b175
push ebx
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov esi, dword [esp + 0x10]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x41b16d
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, esi
mov esi, dword [esp + 0x10]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
pop ebx
ret 8

Function at 0x41b180
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 8
push esi
mov dword [esp + 8], ecx
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x41b223
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
mov dword [esp + 4], esi
jne 0x41b1b5
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
add esp, 8
ret
push ebx
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov ebx, eax
push esi
inc ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov esi, eax
call fcn.00547b9a
lea ecx, [ebx - 1]
mov ebp, eax
mov eax, ecx
add esp, 4
lea edi, [ebp + 1]
mov byte [ebp], 0x19
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [esp + 0x14]
push ebx
push ebp
mov edx, dword [eax + 0x154]
mov ecx, dword [eax + 0x158]
push edx
call fcn.0040ce80
push ebp
call fcn.00547bc3
add esp, 4
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
Function at 0x430e50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x56bfb9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.0054be5e
mov eax, dword [0x5bc6c4]
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esi + 0x50], eax
mov ecx, dword [0x5bc6c4]
mov dword [esi + 0x54], ecx
mov dword [esi + 0x68], 0x583918
mov dword [esi + 0x6c], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x70], edi
mov ecx, esi
mov byte [esp + 0x14], 3
mov dword [esi], 0x5838c0
call fcn.00565ca9
lea edx, [esi + 0x40]
or eax, 0xffffffff
push edx
mov dword [esi + 0x30], 1
mov dword [esi + 0x2c], 1
mov dword [esi + 0x38], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x3c], edi
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x60], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x64], 1
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x433de0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x14]
push eax
lea ebx, [edi + 0x3c]
push ecx
mov ecx, ebx
call fcn.004326a0
mov edx, dword [esp + 0x18]
mov esi, eax
push edx
mov ecx, esi
call fcn.00431050
mov ebp, dword [esp + 0x1c]
mov ecx, esi
push ebp
call fcn.00498750
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x24]
cmp ecx, eax
je 0x433e2a
mov ecx, dword [esi + 0x5c]
mov dword [esi + 0x24], eax
mov eax, dword [ecx]
call dword [eax + 4]
test ebp, ebp
je 0x433e37
push 0
push ebp
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x433e4f
mov eax, dword [edi + 0x40]
test eax, eax
jne 0x433e4f
push 0
mov ecx, ebx
call fcn.00432920
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 0x14
Function at 0x43eb30
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x24
push esi
push edi
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
test esi, esi
je 0x43eb6b
mov edi, dword [esp + 0x30]
push edi
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
push edi
push 0x43ea80
push esi
call dword [sym.imp.USER32.dll_EnumChildWindows]
pop edi
mov al, 1
pop esi
add esp, 0x24
ret 4
mov ecx, 9
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x24
push eax
push 5
call dword [sym.imp.SHELL32.dll_SHAppBarMessage]
test eax, eax
je 0x43ebf7
mov eax, dword [esp + 0x14]
cmp eax, 3
ja case.default.0x43eb9a
jmp dword [eax*4 + 0x43ec34]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
pop edi
pop esi
lea edx, [ecx - 0x64]
add ecx, 0xfffffff0
mov dword [eax + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov dword [eax + 8], edx
mov al, 1
add esp, 0x24
ret 4
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 0xc], edx
lea edx, [ecx - 0x64]
add ecx, 0xfffffff0
mov dword [eax], edx
mov dword [eax + 8], ecx
pop edi
mov al, 1
pop esi
add esp, 0x24
ret 4
mov esi, dword [esp + 0x30]
push 0
push esi
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
je 0x43ec29
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
sub eax, 0x96
sub ecx, 0x1e
mov dword [esi], eax
mov dword [esi + 4], ecx
pop edi
mov al, 1
pop esi
add esp, 0x24
ret 4
pop edi
xor al, al
pop esi
add esp, 0x24
ret 4

Function at 0x4417e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x56d1c9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.00548689
mov eax, dword [0x5bc6c4]
lea edi, [esi + 0x3c]
mov dword [esp + 0x14], 0
mov dword [edi], eax
mov edx, dword [0x5bc6c4]
lea ecx, [esi + 0x40]
mov dword [ecx], edx
mov eax, dword [0x5bc6c4]
mov dword [esi + 0x44], eax
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push eax
mov byte [esp + 0x18], 3
mov dword [esi], method.CWnd.virtual_0
mov dword [esi + 0x48], edx
call fcn.0054c781
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x4c], edx
mov ecx, edi
mov dword [esi + 0x50], eax
call fcn.0054c583
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov dword [esi + 0x54], ecx
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x60], edx
mov dword [esi + 0x58], 1
mov dword [esi + 0x64], 0
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x1c
Function at 0x442b20
Capabilities:
Log keystrokes

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x70]
cmp dword [eax + 0x5c], 2
je 0x442c74
mov ecx, dword [esp + 0x14]
cmp ecx, 0x60
jb 0x442b4c
cmp ecx, 0x69
ja 0x442b4c
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x442c74
push 2
push ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
test eax, eax
je 0x442c74
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x50]
mov ebp, eax
push ebp
call fcn.00440da0
mov esi, eax
mov eax, dword [edi + 0x80]
add esp, 4
neg esi
sbb esi, esi
xor ebx, ebx
and esi, ebp
test eax, eax
jle 0x442bc2
push ebx
mov ecx, edi
call fcn.00443440
mov ebp, eax
mov eax, dword [ebp + 0x88]
test eax, eax
jne 0x442bc0
mov ecx, dword [edi + 0x70]
test byte [ecx + 0x5c], 1
je 0x442bb3
test esi, esi
jne 0x442bb3
push ebp
call fcn.00440da0
add esp, 4
test eax, eax
je 0x442bb3
mov esi, ebp
mov eax, dword [edi + 0x80]
inc ebx
cmp ebx, eax
jl 0x442b83
jmp 0x442bc2
mov esi, ebp
test esi, esi
je 0x442c74
push esi
call fcn.00440da0
add esp, 4
test eax, eax
je 0x442c74
mov ebx, dword [esp + 0x14]
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x170]
test eax, eax
je 0x442bfa
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 4
lea eax, [esp + 0x14]
mov ecx, edi
push eax
push ebx
push esi
call fcn.004428b0
mov ebp, eax
test ebp, ebp
je 0x442c74
mov esi, dword [ebp + 0xbc]
mov ebx, dword [ebp + 0x3c]
mov eax, dword [esi + 0x88]
test eax, eax
jne 0x442c28
mov ecx, edi
call fcn.00442af0
push 1
mov ecx, edi
call fcn.004426d0
mov dword [edi + 0x40], 1
mov edx, dword [esi]
push 1
push 0
push 1
mov ecx, esi
call dword [edx + 0xbc]
mov eax, dword [esi]
push 1
push ebx
mov ecx, esi
call dword [eax + 0xc4]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x442c68
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0xac]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
Function at 0x442c80
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
cmp dword [edi + 4], 0x104
jne 0x442d3c
mov eax, dword [edi + 0xc]
shr eax, 0x10
test ah, 0x20
je 0x442d3c
call fcn.004427a0
mov ecx, dword [eax + 4]
test ecx, ecx
jg 0x442d3c
push 0
mov ecx, esi
call fcn.004427a0
mov ecx, eax
call fcn.004a4950
test eax, eax
jne 0x442d3c
mov ecx, esi
call fcn.004427a0
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x442ce0
mov eax, dword [eax + 0x1c]
push eax
call fcn.004a4600
add esp, 4
test eax, eax
je 0x442d3c
cmp dword [edi + 8], 0x12
jne 0x442d07
push 1
mov ecx, esi
call fcn.004426d0
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x20
ret 4
mov eax, dword [esi + 0x20]
test eax, eax
je 0x442d1b
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
jne 0x442d3c
mov eax, dword [edi + 8]
test eax, eax
je 0x442d3c
push eax
mov ecx, esi
call fcn.00442b20
test eax, eax
je 0x442d3c
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x20
ret 4
mov eax, dword [edi + 4]
cmp eax, 0x105
je 0x442d4d
cmp eax, 0x101
jne 0x442d7d
mov eax, dword [esi + 0xc0]
test eax, eax
je 0x442d7d
mov eax, dword [esi + 0xac]
test eax, eax
je 0x442d7d
push 0
mov ecx, esi
call fcn.004427a0
mov ecx, eax
call fcn.004a4950
test eax, eax
jne 0x442d7d
push eax
mov ecx, esi
call fcn.004426d0
mov eax, dword [edi + 4]
cmp eax, 0x7b
je 0x442d8c
cmp eax, 0x105
jne 0x442dce
push 0
mov ecx, esi
call fcn.004427a0
mov ecx, eax
call fcn.004a4950
test eax, eax
je 0x442dce
push 0x444810
mov ecx, 0x5d2b2c
call fcn.005628e2
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 8]
push ecx
push edx
push 0x7b
mov ecx, eax
call fcn.004b5bf0
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x20
ret 4
cmp dword [edi + 4], 0x20a
jne 0x442e8b
push 0x444810
mov ecx, 0x5d2b2c
call fcn.005628e2
mov ecx, dword [eax + 0x1c]
test ecx, ecx
jle 0x442e1d
push 0x444810
mov ecx, 0x5d2b2c
call fcn.005628e2
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 8]
push ecx
push edx
push 0x20a
mov ecx, eax
call fcn.004b5bf0
pop edi
pop esi
pop ebx
add esp, 0x20
ret 4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x50]
lea ecx, [esp + 0xc]
mov ebx, eax
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
test ebx, ebx
je 0x442e8b
cmp dword [ebx + 0xa0], 3
jne 0x442e8b
mov edx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
push ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], edx
call fcn.004632c0
mov ecx, dword [esp + 0x1c]
push ecx
push ebp
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
pop ebp
je 0x442e8b
mov edx, dword [edi + 8]
xor eax, eax
shr edx, 0x10
test dx, dx
setle al
push eax
mov ecx, ebx
call fcn.004ba5c0
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x20
ret 4
mov eax, dword [edi + 4]
cmp eax, 0x100
jb 0x442cfc
cmp eax, 0x108
ja 0x442cfc
push edi
mov ecx, esi
call fcn.004412e0
mov ecx, eax
call fcn.0044d670
test eax, eax
je 0x442cfc
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x20
ret 4
Function at 0x44e310
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x56df37
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
mov ebx, dword [esp + 0x138]
push ebp
push esi
cmp ebx, 0x60
push edi
jb 0x44e359
cmp ebx, 0x69
ja 0x44e359
movsx eax, byte [esp + 0x140]
add ebx, 0xffffffd0
xor ecx, ecx
cmp eax, ebx
sete cl
mov eax, ecx
jmp 0x44e549
push 2
push ebx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
test al, al
je 0x44e520
mov edx, dword [esp + 0x140]
push edx
call fcn.0044e6a0
mov cl, byte [esp + 0x144]
add esp, 4
cmp cl, bl
mov byte [esp + 0x13], al
je 0x44e544
cmp al, bl
je 0x44e544
mov ebp, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
xor esi, esi
push esi
push esi
call ebp
mov edi, eax
cmp edi, 1
jl 0x44e520
xor ebx, ebx
mov dword [esp + 0x18], 0x5858e8
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
cmp edi, esi
mov dword [esp + 0x138], esi
jne 0x44e3db
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
jmp 0x44e402
lea eax, [edi*4]
push eax
call fcn.00547b9a
add esp, 4
mov dword [esp + 0x1c], eax
push edi
push eax
call fcn.00444bf0
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
push ebx
push edi
call ebp
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
jne 0x44e42d
mov dword [esp + 0x18], method.CCommandLineInfo.virtual_0
mov dword [esp + 0x138], 1
jmp 0x44e513
cmp edi, esi
mov dword [esp + 0x2c], esi
jle 0x44e500
mov ebp, dword [sym.imp.USER32.dll_ToAsciiEx]
mov esi, ebx
mov dword [esp + 0x14], 0
mov edx, dword [esi]
push edx
mov edx, dword [esp + 0x148]
lea eax, [esp + 0x18]
push 0
lea ecx, [esp + 0x38]
push eax
push ecx
push 0
push edx
call ebp
cmp eax, 1
jne 0x44e491
mov eax, dword [esp + 0x14]
mov cl, byte [esp + 0x140]
cmp cl, al
je 0x44e524
push eax
call fcn.0044e6a0
mov cl, byte [esp + 0x17]
add esp, 4
cmp cl, al
je 0x44e524
mov bl, byte [esp + 0x40]
mov byte [esp + 0x40], 0x81
mov eax, dword [esi]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x148]
push 0
lea edx, [esp + 0x38]
push ecx
push edx
push 0
push eax
call ebp
cmp eax, 1
jne 0x44e4e2
mov eax, dword [esp + 0x14]
mov cl, byte [esp + 0x140]
cmp cl, al
je 0x44e562
push eax
call fcn.0044e6a0
mov cl, byte [esp + 0x17]
add esp, 4
cmp cl, al
je 0x44e562
mov eax, dword [esp + 0x2c]
add esi, 4
inc eax
mov byte [esp + 0x40], bl
mov ebx, dword [esp + 0x1c]
cmp eax, edi
mov dword [esp + 0x2c], eax
jl 0x44e441
xor esi, esi
mov dword [esp + 0x18], method.CCommandLineInfo.virtual_0
mov dword [esp + 0x138], 4
cmp ebx, esi
je 0x44e520
push ebx
call fcn.00547bc3
add esp, 4
xor eax, eax
jmp 0x44e549
mov dword [esp + 0x18], method.CCommandLineInfo.virtual_0
test ebx, ebx
mov dword [esp + 0x138], 2
je 0x44e544
push ebx
call fcn.00547bc3
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x12c
ret
mov dword [esp + 0x18], method.CCommandLineInfo.virtual_0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x138], 3
test eax, eax
je 0x44e544
push eax
jmp 0x44e53c