joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e265
Capabilities:
Accept command line arguments
Read file via mapping
Set environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 1
call fcn.0040ed97
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, 0x424cf8
call fcn.0040f498
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esi, eax
cmp esi, ebx
je 0x40e2f5
push esi
call fcn.0040c16a
cmp byte [0x41c211], bl
je 0x40e2ed
push str.winrarsfxmappingfile.tmp
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x40e2e2
push 0x20000
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, ebx
je 0x40e2db
push esi
push str.sfxcmd
call edi
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40e2f5
push esi
push str.sfxcmd
call edi
push 0x400
mov esi, 0x41b8e0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push str.sfxname
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
push 0x64
push edi
mov dword [0x415e74], edi
mov dword [0x415e78], edi
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x65
push dword [0x415e78]
mov dword [0x41b8dc], eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
lea ecx, [ebp - 8]
mov dword [0x41b8d8], eax
call fcn.004128c7
push esi
mov ecx, 0x415e88
call fcn.0040a39f
lea ecx, [ebp - 0x40]
call fcn.00406a93
lea ecx, [ebp - 0x24]
call fcn.00406a93
push 0x64
call fcn.0040b7de
push 0x64
mov dword [ebp - 0x28], eax
call fcn.0040b7de
push ebx
push 0x40da7c
mov dword [ebp - 0xc], eax
push ebx
lea eax, [ebp - 0x40]
mov dword [0x41b0d4], eax
push str.STARTDLG
lea eax, [ebp - 0x24]
push edi
mov dword [0x41b0d0], eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
lea ecx, [ebp - 0x24]
mov dword [0x41b0d0], ebx
mov dword [0x41b0d4], ebx
call fcn.00406aa9
lea ecx, [ebp - 0x40]
call fcn.00406aa9
lea ecx, [ebp - 8]
call fcn.00412919
cmp byte [0x41c208], bl
je 0x40e3d0
call fcn.0040c422
push 0x100
push ebx
push 0x41c0f0
call fcn.0040ad4b
cmp dword [0x41d324], ebx
jbe 0x40e3f3
push dword [0x41d318]
call fcn.0040acc7
push dword [0x41b8dc]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x41b8d8]
cmp eax, ebx
je 0x40e40d
push eax
call esi
cmp dword [0x415e7c], ebx
jne 0x40e42c
cmp byte [0x41c1f2], bl
je 0x40e42c
push 0xff
mov ecx, 0x415e7c
call fcn.0040344d
mov eax, dword [0x41d32c]
mov byte [0x41c1f2], 1
cmp eax, ebx
je 0x40e442
push eax
call fcn.0040c3e3
call dword [sym.imp.ole32.dll_OleUninitialize]
push dword [0x415e7c]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40e7b4
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x412857
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8
Function at 0x40304c
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x403088
movzx eax, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x4030a8
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404d10
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x40336c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404aa0
test esi, esi
jne 0x4033a2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404b90
jmp 0x4033c0
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403210
mov edi, eax
test esi, esi
je 0x4033c0
cmp dword [ebx], 0
je 0x4033c0
dec esi
jmp 0x4033a9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403a8c
Capabilities:
Query or enumerate registry value

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

Function at 0x404920
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x57d044], 0
je 0x404981
cmp word [0x57d218], 0xd7b2
jne 0x404949
cmp dword [0x57d220], 0
jbe 0x404949
mov eax, 0x57d214
call dword [0x57d230]
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 0x4049a8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45802c], 0
jne 0x40499d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405e14
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406044
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405e97
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406044
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405e97
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406060
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405f20
xor eax, eax
push ebp
push 0x405f19
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405c50
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405efe
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406080
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405efe
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405f20
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40603a
cmp byte [ebp - 0xd], 0
jne 0x405f67
cmp byte [ebp - 0x12], 0
je 0x40603a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405f80
dec ebx
cmp byte [ebx], 0x2e
je 0x405f8f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405f7f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40603a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405fcc
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40603a
cmp byte [ebp - 0xd], 0
je 0x40603a
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40603a
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4084e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x408532
test eax, edx
je 0x408535
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x4084f5
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40851b
add ecx, 4
js 0x40850b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x408518
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x408541
test edx, edx
jne 0x4084e8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x408d18
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404f30
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408d31
test al, 0x10
je 0x408d35
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x408d3c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404f30
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408d55
test al, 0x10
jne 0x408d59
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b948
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 0x40b981
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404b90
jmp 0x40b98a
mov eax, ebx
mov edx, esi
call fcn.00404af4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bec0
mov eax, dword [0x57cee4]
cmp byte [eax], 0
je 0x40c0c4
mov eax, dword [0x57cd10]
call fcn.00403454
call fcn.00402fcc
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.00408fa4
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 0x40c10c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c0fa
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x57ccb8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x57f7f0]
call fcn.00405bf8
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 0x40c970
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 0x40ca46
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404b38
lea eax, [ebp - 4]
call fcn.00404f88
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404f30
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40ca30
mov eax, ebx
call fcn.00402e70
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40ca29
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.00404f30
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40ca13
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40ca58
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40ca13
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 0x40ca30
mov eax, dword [ebp - 0x10]
call fcn.00402e8c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ca4d
lea eax, [ebp - 4]
call fcn.00404aa0
ret
Function at 0x41b6e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x5819e4
cmp dword [edi], 0
jne 0x41b75c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x5819e0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x458b50
mov ecx, 2
call fcn.00403110
mov edx, 0x41b6b8
lea eax, [esi + 5]
call fcn.0041b6d8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041b6d8
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 0x41b731
mov dword [0x5819e0], 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 0x41d3dc
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.00404f30
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41d434
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x57cff8]
mov dl, 1
mov eax, dword [0x41cee8]
call fcn.0040c208
call fcn.004044e8
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041cff0
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 0x41e290
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 0x41e296
ret
Function at 0x42a2d0
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.00404aa0
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x42a31e
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.00404d10
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42e3a0
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 0x42e4d3
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 [0x41cf48]
call fcn.0041d018
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x42e4a9
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0041d0b8
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.00404d10
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x42e4e8
call fcn.00404db8
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0041d11c
lea ecx, [ebp - 4]
mov edx, 0x42e524
mov eax, dword [ebp - 0xc]
call fcn.0041d364
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040db90
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x42e48c
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x42e530
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 [0x459434]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e493
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x42e580
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 0x42e5c7
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42e5aa
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42e5bb
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x42e5c7
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x4330b8
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 [0x581c38], 0
je 0x433201
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x57ce88]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x433201
mov eax, dword [0x581c3c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x581c38]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4331d0
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x581c38]
call fcn.0041461c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4331c8
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1da], 0
je 0x4331c8
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x4331c8
mov eax, dword [ebp - 0x14]
call fcn.0043d664
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4331c8
push ebp
call fcn.00433074
pop ecx
test al, al
jne 0x4331c8
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00403e88
test al, al
je 0x4331c8
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.00403e88
cmp byte [ebp - 1], 0
je 0x4331c8
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x4331c8
mov edx, dword [ebp - 0x14]
mov eax, dword [0x581c3c]
call fcn.004327e4
inc edi
dec ebx
jne 0x43311d
mov eax, dword [0x581c3c]
cmp dword [eax + 8], 0
jle 0x4331e8
mov eax, dword [0x581c3c]
call fcn.0043289c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x433201
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00432ed8
pop ecx
test al, al
jne 0x433201
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 0x43a560
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.00406bb8
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.00435440
test ebx, ebx
jne 0x43a5b3
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.0043a49c
mov ebx, eax
test ebx, ebx
je 0x43a69e
cmp esi, ebx
je 0x43a5dc
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x43a5f1
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x43a629
add eax, 0xffffff5f
sub eax, 2
jb 0x43a641
dec eax
sub eax, 2
jb 0x43a655
dec eax
sub eax, 2
jb 0x43a64b
jmp 0x43a65f
add eax, 0xfffffdff
sub eax, 2
jb 0x43a641
dec eax
sub eax, 2
jb 0x43a655
dec eax
sub eax, 2
jb 0x43a64b
jmp 0x43a65f
mov byte [esp + 0x120], 0
jmp 0x43a667
mov byte [esp + 0x120], 2
jmp 0x43a667
mov byte [esp + 0x120], 1
jmp 0x43a667
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.00445838
mov byte [esp + 0x121], al
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.00436bb8
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x43a6a0
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x442754
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x57cfec]
cmp byte [eax + 0xc], 0
je 0x4428c1
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4428ba
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x581c48], 0
jne 0x4427a8
push 0x4428c8
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x4428d0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x581c48], eax
cmp dword [0x459578], 0
jne 0x4428a3
push 0x4428e0
call sub.kernel32.dll_LoadLibraryA
mov dword [0x459578], eax
cmp dword [0x459578], 0
je 0x4428a3
push 0x4428ec
mov eax, dword [0x459578]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x581c4c], eax
push 0x4428fc
mov eax, dword [0x459578]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x581c50], eax
push 0x442910
mov eax, dword [0x459578]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x581c54], eax
push 0x442928
mov eax, dword [0x459578]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x581c58], eax
push 0x442940
mov eax, dword [0x459578]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x581c5c], eax
push 0x442954
mov eax, dword [0x459578]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x581c60], eax
push 0x44296c
mov eax, dword [0x459578]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x581c64], eax
push 0x442984
mov eax, dword [0x459578]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x581c68], eax
push 0x4429a0
mov eax, dword [0x459578]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x581c6c], eax
push 0x4429ac
mov eax, dword [0x459578]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x581c70], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4428c1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret