joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46fd90
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4aa948
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004a3c4b
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0046f730
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004a3b79
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004a046a
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004a046a
push 1
push 0
push 0
mov ecx, esi
call fcn.004a0412
push 1
push 0
push 1
mov ecx, esi
call fcn.004a0412
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004a3cbd
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x46ff10
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4aa968
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004a3c4b
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0046f730
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004a3b79
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x46ffd4
cmp dword [esp + 0x40], 1
jne 0x46ffd2
cmp ecx, eax
jge 0x46ffd4
mov eax, ecx
cmp eax, 0xc8
jge 0x46ffe0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0046fd90
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004a3cbd
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x470760
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4aa9d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0049e89f
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004a3ef3
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004a540f
test eax, eax
je 0x47087c
mov ecx, dword [esp + 0x3c]
call fcn.004a3f20
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x470840
push edi
mov ecx, esi
call fcn.004a1580
mov ecx, esi
call fcn.004709e0
cmp dword [esp + 0x38], 1
jne 0x470875
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004a16bb
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4732a0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4732d3
push esi
call fcn.00476390
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4732cc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x473359
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x473342
mov eax, dword [esi + 8]
test eax, eax
je 0x4732f7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x47333e
cmp eax, 2
je 0x473342
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4732ea
cmp eax, 3
je 0x47331d
cmp eax, 1
jne 0x4732ea
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4732ea
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4732ea
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00473380
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x473368
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00473380
add esp, 4
pop esi
ret
Function at 0x480a90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
cmp di, 0x76d
jb 0x480be5
cmp di, 0x801
ja 0x480be5
mov ebx, dword [esp + 0x28]
cmp bx, 1
jb 0x480be5
cmp bx, 0xc
ja 0x480be5
mov al, byte [esp + 0x30]
test al, al
je 0x480ae4
push edi
call fcn.00481020
add esp, 4
cmp ax, bx
je 0x480ae4
mov byte [esp + 0x30], 0
mov esi, dword [esp + 0x34]
mov ebp, dword [esp + 0x3c]
lea eax, [esp + 0x13]
lea ecx, [esp + 0x14]
mov word [esi], di
mov edi, dword [esp + 0x38]
push eax
lea edx, [esp + 0x1c]
mov word [edi], bx
mov ebx, dword [esp + 0x30]
push ecx
lea eax, [esp + 0x24]
mov word [ebp], bx
mov cx, word [edi]
push edx
mov dx, word [esi]
push eax
push ebx
push ecx
push edx
call fcn.00480bf0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x30]
push ebx
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x44]
push edx
push eax
push ecx
call fcn.00480a10
add esp, 0x34
mov ebx, eax
xor eax, eax
inc eax
cmp eax, 0x64
mov dword [esp + 0x34], eax
jg 0x480be5
test ebx, ebx
jne 0x480b79
mov al, byte [esp + 0x13]
mov cl, byte [esp + 0x30]
cmp al, cl
je 0x480bdb
test al, al
je 0x480b6c
push 0xffffffffffffffe1
jmp 0x480b6e
push 0x1f
push ebp
push edi
push esi
call fcn.004809c0
add esp, 0x10
neg ebx
push ebx
push ebp
push edi
push esi
call fcn.004809c0
lea edx, [esp + 0x23]
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x2c]
push eax
mov ax, word [ebp]
lea edx, [esp + 0x34]
push ecx
mov cx, word [edi]
push edx
mov dx, word [esi]
push eax
push ecx
push edx
call fcn.00480bf0
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x54]
push eax
push ecx
push edx
call fcn.00480a10
mov ebx, eax
mov eax, dword [esp + 0x78]
add esp, 0x44
jmp 0x480b46
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x10
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret
Function at 0x482280
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4aaf38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push 0x529ed0
lea ecx, [esp + 4]
call fcn.0049d35f
push 0x500dfc
lea ecx, [esp + 8]
mov dword [esp + 0x40], 0
call fcn.0049d35f
push 0x500df8
lea ecx, [esp + 0xc]
mov byte [esp + 0x40], 1
call fcn.0049d35f
push 0x500df4
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 2
call fcn.0049d35f
push 0x500df0
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 3
call fcn.0049d35f
push 0x500dec
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 4
call fcn.0049d35f
push 0x500de8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 5
call fcn.0049d35f
push 0x500de4
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 6
call fcn.0049d35f
push 0x500de0
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 7
call fcn.0049d35f
push 0x500ddc
lea ecx, [esp + 0x28]
mov byte [esp + 0x40], 8
call fcn.0049d35f
push 0x500dd8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x40], 9
call fcn.0049d35f
push 0x500dd4
lea ecx, [esp + 0x30]
mov byte [esp + 0x40], 0xa
call fcn.0049d35f
push 0x500dd0
lea ecx, [esp + 0x34]
mov byte [esp + 0x40], 0xb
call fcn.0049d35f
mov eax, dword [esp + 0x44]
mov byte [esp + 0x3c], 0xc
cmp eax, 1
jge 0x4823b0
cmp eax, 0xc
jle 0x4823b0
mov ecx, dword [esp + 0x48]
push 0x529ed0
call fcn.0049d42e
jmp 0x4823be
mov ecx, dword [esp + 0x48]
lea eax, [esp + eax*4]
push eax
call fcn.0049d3de
lea ecx, [esp + 0x30]
mov byte [esp + 0x3c], 0xb
call fcn.0049d2f1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x3c], 0xa
call fcn.0049d2f1
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 9
call fcn.0049d2f1
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 8
call fcn.0049d2f1
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 7
call fcn.0049d2f1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 6
call fcn.0049d2f1
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 5
call fcn.0049d2f1
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 4
call fcn.0049d2f1
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 3
call fcn.0049d2f1
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c], 2
call fcn.0049d2f1
lea ecx, [esp + 8]
mov byte [esp + 0x3c], 1
call fcn.0049d2f1
lea ecx, [esp + 4]
mov byte [esp + 0x3c], 0
call fcn.0049d2f1
lea ecx, [esp]
mov dword [esp + 0x3c], 0xffffffff
call fcn.0049d2f1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret
Function at 0x489280
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4892c9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x489740
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ab2c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004892f0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00489370
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00489370
lea ecx, [esi + 0xc]
call fcn.0049d27c
lea ecx, [esi + 0x10]
call fcn.0049d27c
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0048a900
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0048a900
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0048a900
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0049d2f1
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0049d2f1
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x48aaf0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x48ab56
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x48ab56
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x48ab37
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x49f67b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x49f6b3
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0049d74c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0049d724
jmp 0x49f6bf
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4a0d6e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4a0db0
call fcn.004a67a9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a0db0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a0da7
xor eax, eax
jmp 0x4a0db8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a0dbe
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a6cd9
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4a6d07
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a6d25
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a6c3f
jmp 0x4a6d25
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a6d25
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a6c3f
test edi, edi
mov eax, edi
jne 0x4a6d0f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401012
mov eax, dword [0x48439f]
shl eax, 2
mov dword [0x4843a3], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.004638d8
pop edx
call fcn.0046383c
call fcn.00463918
push 0
call fcn.00464bac
pop ecx
push 0x484348
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x4843a7], eax
push 0
jmp fcn.0046adb8
Function at 0x4067e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
mov eax, dword [ebp + 8]
cmp dword [eax + 0x318], 0
jle 0x4068fd
cmp dword [ebp + 0x10], 0x2800
jle 0x4068fd
mov edx, 4
mov eax, dword [ebp + 0xc]
call fcn.00452728
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x30]
mov ecx, 0x14
mov ebx, dword [eax]
call dword [ebx + 4]
mov edx, dword [ebp + 0x10]
sar edx, 1
jns 0x40682c
adc edx, 0
mov eax, dword [ebp + 0xc]
call fcn.00452728
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x48]
mov ecx, 0x14
mov ebx, dword [eax]
call dword [ebx + 4]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x318], 1
jne 0x40689e
push 0x15
push 0
lea edx, [ebp - 0x18]
push edx
call fcn.00463c2c
mov ecx, dword [ebp + 8]
add esp, 0xc
lea edx, [ebp - 0x18]
mov eax, dword [ecx + 0x31c]
push eax
push 0x484b4b
push edx
call fcn.004667a4
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0x48]
mov ebx, 0x14
sub ebx, eax
inc eax
mov bl, byte [ebp + ebx - 0x18]
xor bl, byte [edx]
xor bl, byte [ecx]
inc ecx
mov byte [edx], bl
inc edx
cmp eax, 0x14
jl 0x406883
jmp 0x4068d1
mov eax, dword [ebp + 8]
cmp dword [eax + 0x318], 2
jne 0x4068d1
xor eax, eax
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0x48]
mov ebx, 0x14
mov esi, dword [ebp + 8]
sub ebx, eax
inc eax
mov bl, byte [esi + ebx + 0x320]
xor bl, byte [edx]
xor bl, byte [ecx]
inc ecx
mov byte [edx], bl
inc edx
cmp eax, 0x14
jl 0x4068b2
mov edx, dword [ebp + 0x10]
sar edx, 1
jns 0x4068db
adc edx, 0
mov eax, dword [ebp + 0xc]
call fcn.00452728
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x48]
mov ecx, 0x14
mov ebx, dword [eax]
call dword [ebx + 8]
xor edx, edx
mov eax, dword [ebp + 0xc]
call fcn.00452728
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a164
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov edx, dword [ebp + 0xc]
mov ecx, eax
inc eax
shl ecx, 2
push ecx
mov cl, 0x64
pop ebx
sub cl, bl
xor byte [edx], cl
inc edx
cmp eax, 0x28
jl 0x40a16d
pop ebx
pop ebp
ret

Function at 0x4188fc
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.00461654
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x41894b
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.00461884
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41eb08
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 0x41eb0e
ret

Function at 0x420ff8
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 0x421049
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x421030
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x421020
jmp 0x421049
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 0x421031
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x429afc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x48fa00
cmp dword [edi], 0
jne 0x429b78
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x48f9fc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x488dc4
mov ecx, 2
call fcn.00460634
mov edx, 0x429ad4
lea eax, [esi + 5]
call fcn.00429af4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00429af4
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 0x429b4d
mov dword [0x48f9fc], 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 0x429c94
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x429ce4]
test si, 4
je 0x429ca8
or bl, 1
test si, 8
je 0x429cb2
or bl, 4
test si, 1
je 0x429cbc
or bl, 8
test si, 2
je 0x429cc6
or bl, 0x10
test si, 0x10
je 0x429cd0
or bl, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x429cdf
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x429ce8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x429d20]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x429d01
or bl, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x429d10
or bl, 4
test esi, 0x20000000
je 0x429d1b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x430270
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x430282
add esp, 0xfffffff0
call fcn.00460ee4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004555fc
mov eax, ebx
call fcn.004305bc
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x44f31c]
call fcn.00460bb4
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x44f31c]
call fcn.00460bb4
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x44f31c]
call fcn.00460bb4
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x44f31c]
call fcn.00460bb4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x44f31c]
call fcn.00460bb4
mov dword [ebx + 0x70], eax
push 0
call sub.USER32.DLL_GetDC
mov esi, eax
push 0x5a
push esi
call sub.GDI32.DLL_GetDeviceCaps
mov dword [ebx + 0x34], eax
push esi
push 0
call sub.USER32.DLL_ReleaseDC
mov eax, dword [ebx + 0x4c]
push eax
mov eax, 0x42cd60
push eax
push 0
push 0
mov eax, dword [0x48d3ec]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41e030]
call fcn.0041f568
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x41e030]
call fcn.0041f568
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x41e030]
call fcn.0041f568
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.0043099c
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4308b8
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4308b8
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4308b8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x430391
call fcn.00460f3c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret