joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c1f0
Capabilities:
Create thread

Disassembly:
push esi
push edi
push 0
push 0
push 0
push 0x40c250
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
jne 0x40c212
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [0x414a74]
test eax, eax
jne 0x40c236
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
push esi
call edi
cmp eax, 0x102
jne 0x40c20d
mov eax, dword [0x414a74]
test eax, eax
je 0x40c221
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
ret

Function at 0x40c420
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
test eax, eax
push ebp
mov dword [esp + 8], 0
je 0x40c511
mov ebp, dword [esp + 0x18]
test ebp, ebp
je 0x40c511
mov ebx, dword [esp + 0x14]
test bx, bx
je 0x40c511
push esi
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
test esi, esi
je 0x40c508
push edi
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
push 0x3e8
push 2
push esi
call edi
push 4
push 0x3e8
push 5
push esi
call edi
push 4
push 0x3e8
push 6
push esi
call edi
mov eax, dword [esp + 0x18]
push 0
push 0
push 3
push 0x41487c
push 0x41487c
push ebx
push eax
push esi
call dword [sym.imp.WININET.dll_InternetConnectW]
push 0
push 0x4040000
push 0
push 0
push 0
mov ebx, eax
push ebp
push 0x413040
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ebp, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, eax
test edi, edi
je 0x40c4fd
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
mov dword [esp + 0x10], eax
je 0x40c4fa
mov dword [esp + 0x10], 1
push edi
call ebp
test ebx, ebx
pop edi
je 0x40c505
push ebx
call ebp
push esi
call ebp
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
pop ecx
ret
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x401338
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x40134a
mov eax, dword [0x48508b]
shl eax, 2
mov dword [0x48508f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.004673a4
pop edx
call fcn.00467308
call fcn.004673e4
push 0
call fcn.004687f0
pop ecx
push 0x485034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x485093], eax
push 0
jmp fcn.0046c634

Function at 0x4027fc
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov byte [ebp - 8], dl
test dl, dl
jle 0x40280e
call fcn.00470d60
mov byte [ebp - 0x2a], cl
mov byte [ebp - 0x29], dl
mov dword [ebp - 4], eax
mov eax, 0x486304
call fcn.00467b50
mov word [ebp - 0x18], 8
mov cl, byte [ebp - 0x2a]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00412470
add dword [ebp - 0xc], 2
mov eax, dword [ebp - 4]
add eax, 0x30
call fcn.004019c0
inc dword [ebp - 0xc]
mov byte [ebp - 0x2a], 0
mov edx, dword [ebp - 4]
mov byte [edx + 0xf], 1
mov ecx, dword [ebp - 0x28]
mov dword fs:[0], ecx
mov eax, dword [ebp - 4]
cmp byte [ebp - 0x29], 0
je 0x402869
call fcn.00470d6d
mov esp, ebp
pop ebp
ret

Function at 0x4030d8
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], eax
mov eax, 0x485da4
call fcn.00467b50
xor edx, edx
mov dword [ebp - 0x40], edx
mov word [ebp - 0x24], 8
lea eax, [ebp - 4]
call fcn.004019c0
inc dword [ebp - 0x18]
mov word [ebp - 0x24], 0x14
push 0
push 1
push str.http:__www.microsoft.com_
call sub.WININET.DLL_InternetCheckConnectionA
test eax, eax
je 0x40314f
mov word [ebp - 0x24], 0x20
mov edx, 0x485406
lea eax, [ebp - 8]
call fcn.004707ec
inc dword [ebp - 0x18]
lea edx, [ebp - 8]
lea eax, [ebp - 4]
call fcn.004708ec
dec dword [ebp - 0x18]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004708bc
jmp 0x403180
mov word [ebp - 0x24], 0x2c
mov edx, 0x485420
lea eax, [ebp - 0xc]
call fcn.004707ec
inc dword [ebp - 0x18]
lea edx, [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.004708ec
dec dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004708bc
mov word [ebp - 0x24], 0x38
lea eax, [ebp - 0x10]
call fcn.004019c0
mov ecx, eax
inc dword [ebp - 0x18]
lea edx, [ebp - 4]
mov eax, dword [ebp - 0x3c]
call fcn.00470900
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x3c]
call fcn.004708ec
dec dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004708bc
mov eax, dword [ebp - 0x40]
push eax
dec dword [ebp - 0x18]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004708bc
pop eax
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret
Function at 0x4127ac
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00412630
dec esi
jne 0x4127ce
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x4138f8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x48c20c
cmp dword [edi], 0
jne 0x413974
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x48c208]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x487110
mov ecx, 2
call fcn.004275b4
mov edx, 0x4138d0
lea eax, [esi + 5]
call fcn.004138f0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004138f0
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 0x413949
mov dword [0x48c208], 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 0x414de8
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.00429508
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x414e40
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x48bd64]
mov dl, 1
mov eax, dword [0x4149a0]
call fcn.0041ae34
call fcn.00428af4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00414aa8
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 0x41a590
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 0x41a5c9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00429148
jmp 0x41a5d2
mov eax, ebx
mov edx, esi
call fcn.004290ac
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41a5dc
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 0x41a5fd
mov al, byte [esp]
jmp 0x41a5ff
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x41ac84
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x41aafc
mov eax, dword [0x48bf4c]
cmp byte [eax], 0
je 0x41acf1
mov eax, dword [0x48bf50]
call fcn.00427abc
call fcn.00427520
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00417b54
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 0x41ad38
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x41ad27
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x48be0c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x48c100]
call fcn.0042a7d0
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 0x41ba5c
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 0x41bac0
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.004292c0
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.004177f8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41bac7
lea eax, [ebp - 0xc]
call fcn.00429058
ret

Function at 0x4276e0
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.00429058
test esi, esi
jne 0x427716
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.00429148
jmp 0x427734
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004275f4
mov edi, eax
test esi, esi
je 0x427734
cmp dword [ebx], 0
je 0x427734
dec esi
jmp 0x42771d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x428198
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x487654]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x428230
push SysFreeString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x428210
xor eax, eax
push ebp
push 0x428209
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 0x42824c
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 0x428210
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x487654]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x487654], ax
mov esp, ebp
pop ebp
ret
Function at 0x428e58
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48c530], 0
je 0x428eb9
cmp word [0x48c704], 0xd7b2
jne 0x428e81
cmp dword [0x48c70c], 0
jbe 0x428e81
mov eax, 0x48c700
call dword [0x48c71c]
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 0x428ee0
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x487664], 0
jne 0x428ed5
push 0
push 0x4876bc
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret

Function at 0x42900c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00427350
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x48c531], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x428fd4
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x42a9c4
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 0x42abf4
push SysFreeString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x42aa47
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x42abf4
push SysFreeString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x42aa47
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x42ac10
push SysFreeString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x42aad0
xor eax, eax
push ebp
push 0x42aac9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0042a80c
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 0x42aaae
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x42ac30
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x42aaae
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 0x42aad0
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 0x42abea
cmp byte [ebp - 0xd], 0
jne 0x42ab17
cmp byte [ebp - 0x12], 0
je 0x42abea
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x42ab30
dec ebx
cmp byte [ebx], 0x2e
je 0x42ab3f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x42ab2f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x42abea
inc ebx
cmp byte [ebp - 0x12], 0
je 0x42ab7c
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 0x42abea
cmp byte [ebp - 0xd], 0
je 0x42abea
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 0x42abea
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 0x42b368
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x48caa4], 1
jae 0x42b3ee
mov byte [0x487650], 2
mov dword [0x48c4f4], 0x483ec2
mov dword [0x48c4f8], 0x483eda
mov byte [0x48c532], 2
mov dword [0x48c4e0], 0x429ff4
call fcn.00428168
test al, al
je 0x42b3ab
call fcn.00428198
call fcn.0042825c
mov word [0x48c538], 0xd7b0
mov word [0x48c704], 0xd7b0
mov word [0x48c8d0], 0xd7b0
call fcn.00429ed4
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x48c524], eax
call fcn.00425fec
mov dword [0x48c520], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x48c518], eax
ret

Function at 0x42be04
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 0x42bd50
call sub.USER32.DLL_EnumWindows
ret

Function at 0x42bf28
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 0x42bfa5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0042b974
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 0x42bf4d
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0042b5cc
cmp dword [ebp - 4], 0
je 0x42bf8f
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00429508
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 0x42bfac
lea eax, [ebp - 4]
call fcn.00429058
ret

Function at 0x436e78
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.00429058
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x436ec7
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.004292c0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43d444
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 0x43d44a
ret

Function at 0x43fa0c
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 0x43fa5d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x43fa44
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x43fa34
jmp 0x43fa5d
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 0x43fa45
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44882c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44887c]
test si, 4
je 0x448840
or bl, 1
test si, 8
je 0x44884a
or bl, 4
test si, 1
je 0x448854
or bl, 8
test si, 2
je 0x44885e
or bl, 0x10
test si, 0x10
je 0x448868
or bl, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x448877
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x448880
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4488b8]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x448899
or bl, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4488a8
or bl, 4
test esi, 0x20000000
je 0x4488b3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44f1f4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44f206
add esp, 0xfffffff0
call fcn.0042868c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00412874
mov eax, dword [0x48bf6c]
mov dword [eax + 4], ebx
mov dword [eax], 0x44f598
mov eax, dword [0x48bf70]
mov dword [eax + 4], ebx
mov dword [eax], 0x44f5a4
mov eax, ebx
call fcn.0044f5b0
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x407ecc]
call fcn.004282f8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x407ecc]
call fcn.004282f8
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x407ecc]
call fcn.004282f8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x407ecc]
call fcn.004282f8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x407ecc]
call fcn.004282f8
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, 0x44ba78
push eax
push 0
push 0
mov eax, dword [0x48c0c8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x43c878]
call fcn.0043df8c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x43c878]
call fcn.0043df8c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x43c878]
call fcn.0043df8c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044f9d0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44f8ac
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44f8ac
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44f8ac
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44f343
call fcn.004286e4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44f690
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 0x44f83b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44f81c
mov dl, 1
mov eax, dword [0x4083fc]
call fcn.004282f8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00429058
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.USER32.DLL_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44f80b
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.00466650
test al, al
je 0x44f7fe
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, 0x44f84c
lea eax, [ebp - 0x254]
call fcn.00418234
push eax
push SysFreeString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x44f7fe
xor eax, eax
push ebp
push 0x44f7f7
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 0x44f884
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x44f7e0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.004292c0
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 0x44f7e0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.004292c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44f7fe
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44f701
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0040c89c
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 0x44f842
lea eax, [ebp - 0x260]
call fcn.00429058
ret

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

Disassembly:
push ecx
mov eax, dword [0x48cc88]
cmp byte [eax + 0xa5], 0
jne 0x4501e1
cmp dword [0x48cca0], 0
jne 0x4501a2
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x45012c
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x48cca0], eax
cmp dword [0x48cc9c], 0
jne 0x4501bd
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x48cc9c], eax
cmp dword [0x48cca4], 0
jne 0x4501e1
push esp
push 0
push 0
push 0x4500d0
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x48cca4], eax
pop edx
ret