joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408cd0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
xor eax, eax
mov dword [ebp - 4], eax
xor edx, edx
mov dword [ebp - 8], edx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
xor eax, eax
mov dword [ebp - 0x10], eax
xor edx, edx
mov dword [ebp - 0x14], edx
xor ecx, ecx
mov dword [ebp - 0x18], ecx
xor eax, eax
mov dword [ebp - 0x1c], eax
push str.KERNEL32.DLL
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x408e43
push str.CreateToolhelp32Snapshot
push dword [ebp - 0x18]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 4], eax
push str.Module32First
push dword [ebp - 0x18]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 8], eax
push str.Module32Next
push dword [ebp - 0x18]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0xc], eax
push str.Process32First
push dword [ebp - 0x18]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x10], eax
push str.Process32Next
push dword [ebp - 0x18]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x14], eax
cmp dword [ebp - 4], 0
je 0x408e43
cmp dword [ebp - 8], 0
je 0x408e43
cmp dword [ebp - 0xc], 0
je 0x408e43
cmp dword [ebp - 0x10], 0
je 0x408e43
cmp dword [ebp - 0x14], 0
je 0x408e43
push 0
push 2
call dword [ebp - 4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x408e43
mov dword [ebp - 0x154], 0x128
xor edx, edx
mov dword [ebp - 0x24], edx
lea ecx, [ebp - 0x154]
push ecx
push dword [ebp - 0x20]
call dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x408e3b
push 0x5c
lea eax, [ebp - 0x130]
push eax
call fcn.004849b9
add esp, 8
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x408ded
inc dword [ebp - 0x2c]
jmp 0x408df6
lea edx, [ebp - 0x130]
mov dword [ebp - 0x2c], edx
push dword [ebp - 0x2c]
push dword [ebp + 8]
call fcn.00484a6c
add esp, 8
test eax, eax
jne 0x408e22
cmp dword [ebp + 0xc], 0
je 0x408e1f
push dword [ebp - 0x14c]
call fcn.00408ca4
pop ecx
add dword [ebp - 0x1c], eax
jmp 0x408e22
inc dword [ebp - 0x1c]
lea ecx, [ebp - 0x154]
push ecx
push dword [ebp - 0x20]
call dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
inc dword [ebp - 0x24]
cmp dword [ebp - 0x28], 0
jne 0x408dce
push dword [ebp - 0x20]
call sub.KERNEL32.DLL_CloseHandle
push dword [ebp - 0x18]
call sub.KERNEL32.DLL_FreeLibrary
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x408e54
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x408e5d
mov eax, dword [ebp - 4]
add esp, 0xfffffec8
xor eax, eax
mov dword [ebp - 0x10], eax
push str.PSAPI.DLL
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [ebp - 4], eax
push str.VDMDBG.DLL
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x408e9b
cmp dword [ebp - 8], 0
jne 0x408ea3
mov eax, dword [ebp - 0x10]
jmp 0x409055
push str.VDMEnumTaskWOWEx
push dword [ebp - 8]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x20], eax
push str.EnumProcesses
push dword [ebp - 4]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x14], eax
push str.GetModuleFileNameExA
push dword [ebp - 4]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x18], eax
push str.GetModuleBaseNameA
push dword [ebp - 4]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x24], eax
push str.EnumProcessModules
push dword [ebp - 4]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], 0
je 0x409042
cmp dword [ebp - 0x14], 0
je 0x409042
cmp dword [ebp - 0x18], 0
je 0x409042
cmp dword [ebp - 0x24], 0
je 0x409042
cmp dword [ebp - 0x1c], 0
je 0x409042
lea edx, [ebp - 0xc]
push edx
push 0x1000
lea ecx, [ebp - 0x1038]
push ecx
call dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov ecx, 4
mov eax, dword [ebp - 0xc]
xor edx, edx
div ecx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x28], 0
jne 0x408f68
push dword [ebp - 8]
call sub.KERNEL32.DLL_FreeLibrary
push dword [ebp - 4]
call sub.KERNEL32.DLL_FreeLibrary
mov eax, dword [ebp - 0x10]
jmp 0x409055
xor edx, edx
mov dword [ebp - 0x2c], edx
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 0xc]
jae 0x409042
mov eax, dword [ebp - 0x2c]
push dword [ebp + eax*4 - 0x1038]
push 0
push 0x410
call sub.KERNEL32.DLL_OpenProcess
mov dword [ebp - 0x30], eax
lea edx, [ebp - 0x34]
push edx
push 0x1000
lea ecx, [ebp - 0x2038]
push ecx
push dword [ebp - 0x30]
call dword [ebp - 0x1c]
mov ecx, 4
mov eax, dword [ebp - 0x34]
xor edx, edx
div ecx
mov dword [ebp - 0x34], eax
push 0x104
lea eax, [ebp - 0x213c]
push eax
push dword [ebp - 0x2038]
push dword [ebp - 0x30]
call dword [ebp - 0x18]
test eax, eax
je 0x40902b
push 0x5c
lea edx, [ebp - 0x213c]
push edx
call fcn.004849b9
add esp, 8
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x408ff2
inc dword [ebp - 0x38]
jmp 0x408ffb
lea ecx, [ebp - 0x213c]
mov dword [ebp - 0x38], ecx
push dword [ebp - 0x38]
push dword [ebp + 8]
call fcn.00484a6c
add esp, 8
test eax, eax
jne 0x40902b
cmp dword [ebp + 0xc], 0
je 0x409028
mov eax, dword [ebp - 0x2c]
push dword [ebp + eax*4 - 0x1038]
call fcn.00408ca4
pop ecx
add dword [ebp - 0x10], eax
jmp 0x40902b
inc dword [ebp - 0x10]
push dword [ebp - 0x30]
call sub.KERNEL32.DLL_CloseHandle
inc dword [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0xc]
jb 0x408f79
push dword [ebp - 8]
call sub.KERNEL32.DLL_FreeLibrary
push dword [ebp - 4]
call sub.KERNEL32.DLL_FreeLibrary
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x409e48
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x14], edx
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], edx
mov ecx, dword [ebp + 8]
mov dword [ecx], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0xefcdab89
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x98badcfe
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], 0x10325476
pop ebp
ret

Function at 0x418ce0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4c186c
cmp dword [edi], 0
jne 0x418d5c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x4c1868]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4ae604
mov ecx, 2
call fcn.0042d684
mov edx, 0x418cb8
lea eax, [esi + 5]
call fcn.00418cd8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00418cd8
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 0x418d31
mov dword [0x4c1868], 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 0x41f678
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x41f6b1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0042f06c
jmp 0x41f6ba
mov eax, ebx
mov edx, esi
call fcn.0042efd0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41f6c4
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
test eax, eax
jle 0x41f6e5
mov al, byte [esp]
jmp 0x41f6e7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x41fd6c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x41fbe4
mov eax, dword [0x4b3958]
cmp byte [eax], 0
je 0x41fdd9
mov eax, dword [0x4b395c]
call fcn.0042db6c
call fcn.0042d5f0
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0041cc68
push eax
lea eax, [esp + 0x50]
push eax
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 0x41fe20
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x41fe0f
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4b3814]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4b3b60]
call fcn.004306c8
push eax
call sub.USER32.DLL_LoadStringA
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.USER32.DLL_MessageBoxA
add esp, 0x444
ret
Function at 0x420b3c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x420ba0
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.0042f1e4
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.0041c750
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x420ba7
lea eax, [ebp - 0xc]
call fcn.0042ef7c
ret

Function at 0x42d7b0
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.0042ef7c
test esi, esi
jne 0x42d7e6
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.0042f06c
jmp 0x42d804
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0042d6c4
mov edi, eax
test esi, esi
je 0x42d804
cmp dword [ebx], 0
je 0x42d804
dec esi
jmp 0x42d7ed
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x42e2a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4aeb44]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x42e338
push reloc.WSOCK32.DLL_bind
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x42e318
xor eax, eax
push ebp
push 0x42e311
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 0x42e354
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 0x42e318
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x4aeb44]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4aeb44], ax
mov esp, ebp
pop ebp
ret

Function at 0x42ee00
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4c1be8], 0
je 0x42ee61
cmp word [0x4c1dbc], 0xd7b2
jne 0x42ee29
cmp dword [0x4c1dc4], 0
jbe 0x42ee29
mov eax, 0x4c1db8
call dword [0x4c1dd4]
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 0x42ee88
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x4aeb54], 0
jne 0x42ee7d
push 0
push 0x4aebac
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x4308bc
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 0x430aec
push reloc.WSOCK32.DLL_accept
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x43093f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x430aec
push reloc.WSOCK32.DLL_bind
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x43093f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x430b08
push reloc.WSOCK32.DLL_accept
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4309c8
xor eax, eax
push ebp
push 0x4309c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00430704
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 0x4309a6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x430b28
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x4309a6
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 0x4309c8
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 0x430ae2
cmp byte [ebp - 0xd], 0
jne 0x430a0f
cmp byte [ebp - 0x12], 0
je 0x430ae2
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x430a28
dec ebx
cmp byte [ebx], 0x2e
je 0x430a37
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x430a27
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x430ae2
inc ebx
cmp byte [ebp - 0x12], 0
je 0x430a74
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 0x430ae2
cmp byte [ebp - 0xd], 0
je 0x430ae2
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 0x430ae2
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 0x431260
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x4c215c], 1
jae 0x4312e6
mov byte [0x4aeb40], 2
mov dword [0x4c1bac], 0x4a5b52
mov dword [0x4c1bb0], 0x4a5b64
mov byte [0x4c1bea], 2
mov dword [0x4c1b98], 0x42feec
call fcn.0042e270
test al, al
je 0x4312a3
call fcn.0042e2a0
call fcn.0042e364
mov word [0x4c1bf0], 0xd7b0
mov word [0x4c1dbc], 0xd7b0
mov word [0x4c1f88], 0xd7b0
call fcn.0042fdcc
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x4c1bdc], eax
call fcn.0042c0bc
mov dword [0x4c1bd8], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x4c1bd0], eax
ret

Function at 0x431cfc
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x431c48
call sub.USER32.DLL_EnumWindows
ret

Function at 0x431e20
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x431e9d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0043186c
call sub.KERNEL32.DLL_GetTickCount
mov ebx, eax
push 0
call sub.KERNEL32.DLL_Sleep
call sub.KERNEL32.DLL_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x431e45
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.004314c4
cmp dword [ebp - 4], 0
je 0x431e87
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.0042f42c
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.USER32.DLL_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x431ea4
lea eax, [ebp - 4]
call fcn.0042ef7c
ret

Function at 0x43df84
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.0042ef7c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43dfd3
push 0x100
lea edx, [ebp - 0x102]
push edx
push eax
call sub.USER32.DLL_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, 0x100
call fcn.0042f1e4
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x446048
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 0x44604e
ret

Function at 0x4485d4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x448625
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x44860c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4485fc
jmp 0x448625
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x44860d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x451410
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x451460]
test si, 4
je 0x451424
or bl, 1
test si, 8
je 0x45142e
or bl, 4
test si, 1
je 0x451438
or bl, 8
test si, 2
je 0x451442
or bl, 0x10
test si, 0x10
je 0x45144c
or bl, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x45145b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x451464
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45149c]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x45147d
or bl, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x45148c
or bl, 4
test esi, 0x20000000
je 0x451497
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x457dd8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x457dea
add esp, 0xfffffff0
call fcn.0042e794
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00417c5c
mov eax, dword [0x4b3980]
mov dword [eax + 4], ebx
mov dword [eax], 0x45817c
mov eax, dword [0x4b3984]
mov dword [eax + 4], ebx
mov dword [eax], 0x458188
mov eax, ebx
call fcn.00458194
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x40d64c]
call fcn.0042e400
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x40d64c]
call fcn.0042e400
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x40d64c]
call fcn.0042e400
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x40d64c]
call fcn.0042e400
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x40d64c]
call fcn.0042e400
mov dword [ebx + 0x7c], eax
push 0
call sub.USER32.DLL_GetDC
mov esi, eax
push 0x5a
push esi
call sub.GDI32.DLL_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.USER32.DLL_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x45465c
push eax
push 0
push 0
mov eax, dword [0x4b3af4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x44547c]
call fcn.00446b90
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x44547c]
call fcn.00446b90
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x44547c]
call fcn.00446b90
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004585fc
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4584d8
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4584d8
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4584d8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x457f27
call fcn.0042e7ec
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4582bc
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x458467
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x458448
mov dl, 1
mov eax, dword [0x40dc38]
call fcn.0042e400
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0042ef7c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.USER32.DLL_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x458437
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004702a0
test al, al
je 0x45842a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x458478
lea eax, [ebp - 0x254]
call fcn.0041d35c
push eax
push reloc.WSOCK32.DLL_bind
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x45842a
xor eax, eax
push ebp
push 0x458423
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x100
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4584b0
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x45840c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.0042f1e4
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45840c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.0042f1e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45842a
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45832d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004121ac
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45846e
lea eax, [ebp - 0x260]
call fcn.0042ef7c
ret

Function at 0x458d9c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4c235c]
cmp byte [eax + 0xa5], 0
jne 0x458e0d
cmp dword [0x4c2374], 0
jne 0x458dce
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x458d58
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x4c2374], eax
cmp dword [0x4c2370], 0
jne 0x458de9
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x4c2370], eax
cmp dword [0x4c2378], 0
jne 0x458e0d
push esp
push 0
push 0
push 0x458cfc
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x4c2378], eax
pop edx
ret