joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413448
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd90
push esi
push edi
mov eax, 0x516b3c
call fcn.004fde78
mov word [ebp - 0x3c], 0x18
push 0x514232
lea edx, [ebp - 0x28]
push edx
call fcn.00401bb4
add esp, 8
inc dword [ebp - 0x30]
mov word [ebp - 0x3c], 0xc
mov dword [ebp - 0x50], 0x104
mov esi, 0x512d84
lea edi, [ebp - 0x15c]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
mov word [ebp - 0x3c], 0x24
lea eax, [ebp - 0x50]
push eax
lea edx, [ebp - 0x15c]
push edx
call sub.KERNEL32.DLL_GetComputerNameA
mov byte [ebp - 0x152], 0
mov esi, 0x512e88
lea edi, [ebp - 0x16c]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
mov word [ebp - 0x3c], 0x30
lea eax, [ebp - 0x16c]
push eax
call sub.KERNEL32.DLL_GetSystemTime
mov esi, 0x512e98
lea edi, [ebp - 0x270]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
mov word [ebp - 0x3c], 0x3c
lea eax, [ebp - 0x15c]
push eax
movzx edx, word [ebp - 0x166]
push edx
movzx ecx, word [ebp - 0x16a]
push ecx
movzx eax, word [ebp - 0x16c]
push eax
push 0x514233
lea edx, [ebp - 0x270]
push edx
call fcn.005007c0
add esp, 0x18
lea ecx, [ebp - 0x270]
push ecx
call fcn.004133f8
mov dword [ebp - 0x54], eax
push dword [ebp - 0x54]
push 0x51423c
lea eax, [ebp - 0x270]
push eax
call fcn.005007c0
add esp, 0xc
mov dword [ebp - 0x58], eax
mov edx, dword [ebp - 0x58]
mov byte [ebp + edx - 0x270], 0
lea ecx, [ebp - 0x270]
push ecx
lea eax, [ebp - 0x28]
push eax
call fcn.00401d84
add esp, 8
mov word [ebp - 0x3c], 0x48
lea edx, [ebp - 0x28]
push edx
push dword [ebp + 8]
call fcn.00402244
add esp, 8
inc dword [ebp - 0x30]
mov eax, dword [ebp + 8]
mov word [ebp - 0x3c], 0x54
push eax
dec dword [ebp - 0x30]
push 2
lea edx, [ebp - 0x28]
push edx
call fcn.00401c10
add esp, 8
pop eax
mov word [ebp - 0x3c], 0x48
inc dword [ebp - 0x30]
mov edx, dword [ebp - 0x4c]
mov dword fs:[0], edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x413ac4
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
mov dword [ebp - 0x144], 0x128
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 4]
call sub.KERNEL32.DLL_Process32First
mov dword [ebp - 8], eax
xor edx, edx
mov dword [ebp - 0xc], edx
cmp dword [ebp - 8], 0
je 0x413c0c
lea ecx, [ebp - 0x120]
push ecx
push 0x51431c
call fcn.004fdaf0
add esp, 8
test eax, eax
je 0x413b50
lea eax, [ebp - 0x120]
push eax
push 0x514325
call fcn.004fdaf0
add esp, 8
test eax, eax
je 0x413b50
lea edx, [ebp - 0x120]
push edx
push 0x51432e
call fcn.004fdaf0
add esp, 8
test eax, eax
jne 0x413be4
mov byte [ebp - 0xd], 0
push 0x5249b0
mov ecx, dword [0x5249b0]
call dword [ecx + 0x1c]
pop ecx
jmp 0x413b9e
push 0x5249b0
mov eax, dword [0x5249b0]
call dword [eax + 0x2c]
pop ecx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x413b90
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0x5e]
cmp ecx, dword [ebp - 0x13c]
jne 0x413b90
mov byte [ebp - 0xd], 1
jmp 0x413bb1
push 0x5249b0
mov eax, dword [0x5249b0]
call dword [eax + 0x20]
pop ecx
push 0x5249b0
mov edx, dword [0x5249b0]
call dword [edx + 0x28]
pop ecx
test al, al
je 0x413b65
cmp byte [ebp - 0xd], 0
je 0x413be4
push dword [ebp - 0x13c]
push 0
push 0x1fffff
call sub.KERNEL32.DLL_OpenProcess
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x413be4
push 0
push dword [ebp - 0x18]
call sub.KERNEL32.DLL_TerminateProcess
push dword [ebp - 0x18]
call sub.KERNEL32.DLL_CloseHandle
mov ecx, dword [ebp - 0x130]
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 4]
call sub.KERNEL32.DLL_Process32Next
mov dword [ebp - 8], eax
inc dword [ebp - 0xc]
cmp dword [ebp - 8], 0
jne 0x413b04
push dword [ebp - 4]
call sub.KERNEL32.DLL_CloseHandle
mov esp, ebp
pop ebp
ret

Function at 0x418ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0x10]
jge 0x418f36
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
xor edx, edx
mov dl, byte [ecx + eax]
xor edx, dword [ebp + 8]
and edx, 0xff
mov ecx, dword [edx*4 + 0x519dec]
mov eax, dword [ebp + 8]
shr eax, 8
xor ecx, eax
mov dword [ebp + 8], ecx
inc dword [ebp - 4]
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0x10]
jl 0x418f05
mov eax, dword [ebp + 8]
pop ecx
pop ebp
ret
Function at 0x4192a8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x5304b0
push 0xa
push 0x41933c
mov eax, dword [0x5233d0]
push eax
call sub.KERNEL32.DLL_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x4192cc
call fcn.0043adb4
push ebx
mov eax, dword [0x5233d0]
push eax
call sub.KERNEL32.DLL_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x4192e3
call fcn.0043adb4
push ebx
call sub.KERNEL32.DLL_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x4192f5
call fcn.0043adb4
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x5304b4], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x5304b8], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x5304bc], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x5304c0], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x5304c4], ecx
add edx, dword [eax + 0x14]
mov dword [0x5304c8], edx
pop esi
pop ebx
ret

Function at 0x42b2a4
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.0042afa8
dec esi
jne 0x42b2c6
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x42c470
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x5307b4
cmp dword [edi], 0
jne 0x42c4ec
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x5307b0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x51a424
mov ecx, 2
call fcn.00447198
mov edx, 0x42c448
lea eax, [esi + 5]
call fcn.0042c468
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042c468
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 0x42c4c1
mov dword [0x5307b0], 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 0x42e178
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.00449a24
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
je 0x42e1d0
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x522f40]
mov dl, 1
mov eax, dword [0x42dc00]
call fcn.00438f4c
call fcn.00448668
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0042dd88
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 0x4330f8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4331a1
test eax, edx
je 0x4331a4
push 0
push 0
cmp word [eax - 0xa], 2
je 0x433121
push edx
mov edx, eax
mov eax, esp
call fcn.00449b9c
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x433137
push eax
lea eax, [esp + 8]
call fcn.00449b9c
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x433146
movzx eax, word [eax]
sub eax, ecx
jmp 0x43316d
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]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x433187
add ecx, 4
js 0x43315e
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x433184
push eax
mov eax, ecx
mov edx, 2
call fcn.00448dbc
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x43316b
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x43316d
xor eax, eax
ret
test eax, eax
je 0x4331b4
test edx, edx
jne 0x433108
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00449a24
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x43429a
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x4342bb
cmp ebx, 3
je 0x4342bb
cmp ebx, 0x7b
je 0x4342bb
mov eax, esi
call fcn.0043423c
test al, al
jne 0x4342bf
xor eax, eax
jmp 0x4342c1
mov al, 1
pop esi
pop ebx
ret

Function at 0x43859c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoW
test eax, eax
jle 0x4385d5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00449ad4
jmp 0x4385de
mov eax, ebx
mov edx, esi
call fcn.00449998
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4385e8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
test eax, eax
jle 0x43860a
movzx eax, word [esp]
jmp 0x43860c
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x438d70
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffff004
push eax
add esp, 0xffffff7c
push 0x800
lea ecx, [esp + 0x88]
call fcn.00438ba8
mov eax, dword [0x522e5c]
cmp byte [eax], 0
je 0x438e02
mov eax, dword [0x522e60]
call fcn.00447344
call fcn.00447148
lea eax, [esp + 0x884]
push eax
lea eax, [esp + 0x88]
push eax
call sub.USER32.DLL_CharToOemW
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x88c]
call fcn.004345e0
push eax
lea eax, [esp + 0x890]
push eax
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x438e50
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x438e3b
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x522ce0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5233d0]
call fcn.0044b100
push eax
call sub.USER32.DLL_LoadStringW
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x8c]
push eax
push 0
call sub.USER32.DLL_MessageBoxW
add esp, 0x1084
ret

Function at 0x439a60
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 0x439b36
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004499ec
lea eax, [ebp - 4]
call fcn.0044a298
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00449a24
push eax
call sub.VERSION.DLL_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x439b20
mov eax, ebx
call fcn.00446f58
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x439b19
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.00449a24
push eax
call sub.VERSION.DLL_GetFileVersionInfoW
test eax, eax
je 0x439b03
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x439b48
mov eax, dword [ebp - 0x10]
push eax
call sub.VERSION.DLL_VerQueryValueW
test eax, eax
je 0x439b03
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 0x439b20
mov eax, dword [ebp - 0x10]
call fcn.00446f74
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x439b3d
lea eax, [ebp - 4]
call fcn.00449988
ret
Function at 0x43abeb
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.0044909c
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.KERNEL32.DLL_MultiByteToWideChar
mov edi, eax
cmp edi, 0x104
jbe 0x43ac0e
mov eax, edi
add eax, eax
call fcn.00446f58
mov esi, eax
jmp 0x43ac10
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.KERNEL32.DLL_MultiByteToWideChar
push edi
push esi
call sub.USER32.DLL_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x43ac49
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x43ac33
mov eax, esp
cmp esi, eax
je 0x43ac56
mov eax, esi
call fcn.00446f74
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x43ac90
cmp bl, 0
je 0x43ac8c
cmp bl, 0x41
jl 0x43ac87
cmp bl, 0x5a
jg 0x43ac87
or bl, 0x20
xor al, bl
inc esi
jmp 0x43ac6b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x43abd0

Function at 0x4478e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x51a8a0]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x44797c
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
jne 0x44795c
xor eax, eax
push ebp
push 0x447955
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 0x4479b4
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44795c
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
movzx eax, word [0x51a8a0]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x51a8a0], ax
mov esp, ebp
pop ebp
ret

Function at 0x448b1c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x532b44], 0
je 0x448b7d
cmp word [0x532e20], 0xd7b2
jne 0x448b45
cmp dword [0x532e28], 0
jbe 0x448b45
mov eax, 0x532e1c
call dword [fcn.00532e38]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push 0x51affc
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 0x448ba8
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x51a8ac], 0
jne 0x448b99
push 0
push 0x51aff4
push 0x51affc
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x448d1c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x51a88c], 0
je 0x448d42
mov edx, esi
mov eax, ebx
call dword [0x51a88c]
jmp 0x448d51
mov eax, 8
call fcn.00446f58
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x532b45], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x448ce4
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.KERNEL32.DLL_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x44bdcc
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.KERNEL32.DLL_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x44be84
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x5333dc], 1
jae 0x44bf31
call fcn.00446d34
mov byte [0x51a89c], 2
mov dword [fcn.00532b00], sub.KERNEL32.DLL_RaiseException
mov dword [0x532b04], 0x50b756
mov byte [0x532b46], 2
call fcn.0044bdcc
mov dword [0x532b48], eax
mov dword [0x532aec], 0x44aaa0
call fcn.004478b4
test al, al
je 0x44beda
call fcn.004478e4
call fcn.004479d0
mov word [0x532b50], 0xd7b0
mov word [0x532e20], 0xd7b0
mov word [0x5330f0], 0xd7b0
call sub.KERNEL32.DLL_GetCommandLineW
mov dword [0x532b38], eax
call fcn.0044532c
mov dword [0x532b34], eax
call sub.KERNEL32.DLL_GetACP
mov dword [0x5333c4], eax
mov dword [0x5333c8], 0x4b0
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x532b2c], eax
call fcn.0044bde0
ret
Function at 0x461a40
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00449998
push 0
mov eax, esi
movzx eax, al
push eax
call sub.USER32.DLL_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x461a87
push 0x100
lea edx, [esp + 4]
push edx
push eax
call sub.USER32.DLL_GetKeyNameTextW
mov eax, ebx
mov edx, esp
mov ecx, 0x100
call fcn.00449b80
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x466ea0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x466fd9
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.USER32.DLL_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x42dc74]
call fcn.0042ddb0
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x466faf
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, SysStringLen
mov eax, dword [ebp - 0xc]
call fcn.0042de50
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.00449b80
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x466ff4
call fcn.00449d54
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.0042deb4
test al, al
je 0x466f99
lea ecx, [ebp - 4]
mov edx, 0x467068
mov eax, dword [ebp - 0xc]
call fcn.0042e100
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0043b430
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x466f92
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x467080
mov eax, dword [ebp - 8]
push eax
call fcn.00419528
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x51b800]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466f99
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_FreeLibrary
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466fb6
mov eax, dword [ebp - 0xc]
call fcn.00447b1c
ret

Function at 0x4670e4
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 0x46712b
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x46710e
add bx, 0x2000
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x46711f
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x46712b
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x46be00
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 0x46be06
ret
Function at 0x477dc0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_GetWindowLongW
mov edi, eax
test bl, bl
je 0x477de1
test edi, 0x40000
je 0x477dfb
test bl, bl
jne 0x477e7c
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x477e7c
push esi
call sub.USER32.DLL_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call sub.USER32.DLL_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x477e2e
push 0
push esi
call sub.USER32.DLL_ShowWindow
test bl, bl
je 0x477e43
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_SetWindowLongW
jmp 0x477e52
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x477e63
cmp byte [esp + 2], 0
je 0x477e7c
cmp byte [esp + 2], 0
je 0x477e74
push 6
push esi
call sub.USER32.DLL_ShowWindow
jmp 0x477e7c
push 5
push esi
call sub.USER32.DLL_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x478124
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.USER32.DLL_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x47814a
mov eax, esp
push eax
push 0x4780ec
call sub.USER32.DLL_EnumWindows
jmp 0x47815d
mov eax, esp
push eax
push 0x4780cc
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
call sub.USER32.DLL_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x478220
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x478274]
test si, 4
je 0x478235
or bl, 1
test si, 8
je 0x47823f
or bl, 4
test si, 1
je 0x478249
or bl, 8
test si, 2
je 0x478253
or bl, 0x10
test si, 0x10
je 0x47825d
or bl, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x47826c
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x478278
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x4782b4]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x478292
or bl, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4782a1
or bl, 4
test esi, 0x20000000
je 0x4782ac
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4806d4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4806e6
add esp, 0xfffffff0
call fcn.00448000
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0042b3b0
mov eax, dword [0x522e90]
mov dword [eax + 4], ebx
mov dword [eax], 0x480ae8
mov eax, dword [0x522e94]
mov dword [eax + 4], ebx
mov dword [eax], 0x480af4
mov eax, ebx
call fcn.00480b00
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41dfc8]
call fcn.00447aec
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41dfc8]
call fcn.00447aec
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41dfc8]
call fcn.00447aec
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41dfc8]
call fcn.00447aec
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41dfc8]
call fcn.00447aec
mov dword [ebx + 0x74], 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, 0x47bb24
push eax
push 0
push 0
mov eax, dword [0x522f34]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x46b05c]
call fcn.0046ce38
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x46b05c]
call fcn.0046ce38
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x46b05c]
call fcn.0046ce38
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x46b05c]
call fcn.0046ce38
mov dword [ebx + 0x84], eax
mov eax, ebx
call fcn.00480ff8
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x480ed0
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x480ed0
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x480ed0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x480ed0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x480839
call fcn.00448058
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret