joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418cb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi + 0x3030], 0
lea esi, [edi + 0x3034]
je 0x418d32
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x418cec
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.00426d40
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.00404e40
mov edx, dword [esi]
mov ecx, 0x488428
push dword [edi + 0x3030]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x303c]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.00404e40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x419200
Capabilities:
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
or ecx, 0xffffffff
mov al, byte [edi]
lea esi, [edi + 1]
test al, al
je 0x41923c
push ebx
or ebx, 0xffffffff
cmp al, 0x23
jne 0x419222
cmp byte [esi], al
jne 0x419222
cmp byte [esi + 1], al
cmove ecx, ebx
movzx edx, cl
movzx eax, al
xor edx, eax
shr ecx, 8
mov al, byte [esi]
inc esi
xor ecx, dword [edx*4 + 0x44c5b8]
test al, al
jne 0x419214
pop ebx
not ecx
call fcn.00419140
test eax, eax
jne 0x419250
mov ecx, edi
pop edi
pop esi
jmp fcn.00419060
pop edi
pop esi
ret
Function at 0x41ce30
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x455040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x20], esi
push edi
test eax, eax
jle 0x41cfc6
lea ebx, [edx + 0x18]
nop word [eax + eax]
mov edx, dword [ebx - 0x18]
test edx, edx
je 0x41cfb7
mov ecx, esi
call fcn.0041c7b0
mov edi, eax
mov eax, dword [ebx - 0x14]
mov dword [ebp - 0x1c], edi
test eax, eax
je 0x41ce8e
push eax
lea ecx, [esi + 0x2fb8]
call fcn.00404be0
mov ecx, eax
jmp 0x41ce90
xor ecx, ecx
mov dword [edi + 0x10], ecx
movsx eax, word [ebx]
movd xmm1, eax
movsx eax, word [ebx + 2]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x2c], xmm1
movss dword [edi + 0x30], xmm0
movsx eax, word [ebx + 4]
movd xmm1, eax
movsx eax, word [ebx + 6]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x34], xmm1
movss dword [edi + 0x38], xmm0
movsx eax, word [ebx + 8]
movd xmm1, eax
movsx eax, word [ebx + 0xa]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
mov eax, dword [edi + 0x90]
cvtdq2ps xmm0, xmm0
and eax, 0xfffffe49
or eax, 0x49
mov dword [edi + 0x90], eax
movss dword [edi + 0x3c], xmm1
movss dword [edi + 0x40], xmm0
test ecx, ecx
je 0x41cf1e
cmp dword [ecx + 0x14], 0
jne 0x41cf15
mov dword [ecx + 0x14], edi
jmp 0x41cf1e
cmp dword [ecx + 0x18], 0
jne 0x41cf1e
mov dword [ecx + 0x18], edi
mov eax, dword [ebx - 0xc]
mov ecx, edi
mov dword [edi + 0x88], eax
movsx eax, byte [ebx - 8]
mov dword [edi + 0x44], eax
mov eax, dword [ebx - 4]
and eax, 0x61fc20
or dword [edi + 8], eax
mov eax, dword [edi + 0x10]
test eax, eax
je 0x41cf4b
mov ecx, eax
mov eax, dword [ecx + 0x10]
test eax, eax
jne 0x41cf42
push dword [ecx]
lea eax, [ebp - 0x18]
push str.DockNode__02X
push 0x14
push eax
call fcn.004046e0
mov al, byte [ebp - 0x18]
lea esi, [ebp - 0x17]
add esp, 0x10
or edx, 0xffffffff
test al, al
je 0x41cf9a
or edi, 0xffffffff
cmp al, 0x23
jne 0x41cf7e
cmp byte [esi], al
jne 0x41cf7e
cmp byte [esi + 1], al
cmove edx, edi
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
mov al, byte [esi]
inc esi
xor edx, dword [ecx*4 + 0x44c5b8]
test al, al
jne 0x41cf70
mov edi, dword [ebp - 0x1c]
mov ecx, dword [0x488420]
not edx
push edx
lea ecx, [ecx + 0x1c30]
call fcn.00404be0
mov esi, dword [ebp - 0x20]
mov dword [edi + 0x68], eax
mov eax, dword [ebp + 8]
add ebx, 0x24
sub eax, 1
mov dword [ebp + 8], eax
jne 0x41ce60
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044463b
mov esp, ebp
pop ebp
ret
Function at 0x42ee40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x42ee7a
mov eax, dword [0x488420]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x42ee6d
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x42eeab
mov eax, dword [0x488420]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x42ee9e
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x42eedc
mov eax, dword [0x488420]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x42eecf
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x42ef29
mov eax, dword [0x488420]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x42ef1c
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x42ef5a
mov eax, dword [0x488420]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x42ef4d
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x42ef8b
mov eax, dword [0x488420]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x42ef7e
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x5c], 0
pop edi
lea ecx, [esi + 0x78]
pop esi
jmp fcn.00431990
Function at 0x4411a0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov ebx, edx
je 0x441234
test dword [ecx + 0xc], 0x100000
jne 0x4411d3
push 0x1cd8
push 0x452460
push str.tab_bar__Flags__ImGuiTabBarFlags_DockNode
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov cl, byte [ebx]
lea esi, [ebx + 1]
or eax, 0xffffffff
test cl, cl
je 0x44120a
or edi, 0xffffffff
cmp cl, 0x23
jne 0x4411f1
cmp byte [esi], cl
jne 0x4411f1
cmp byte [esi + 1], cl
cmove eax, edi
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x44c5b8]
test cl, cl
jne 0x4411e2
mov ecx, dword [0x488420]
not eax
cmp dword [ecx + 0x1c84], eax
jne 0x441220
mov dword [ecx + 0x1c88], eax
cmp dword [ecx + 0x1cbc], eax
jne 0x4412a0
pop edi
pop esi
mov byte [ecx + 0x1cc0], 1
pop ebx
pop ebp
ret
mov esi, dword [0x488420]
mov edi, dword [esi + 0x1c48]
cmp dword [edi + 0xfc], 0
jg 0x441267
push 0x6d1
push 0x446378
push str.Size___0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov esi, dword [0x488420]
add esp, 0xc
mov ecx, dword [edi + 0xfc]
xor edx, edx
mov eax, dword [edi + 0x104]
push dword [eax + ecx*4 - 4]
mov ecx, ebx
call fcn.00404720
add esp, 4
cmp dword [esi + 0x1c84], eax
jne 0x441291
mov dword [esi + 0x1c88], eax
cmp dword [esi + 0x1cbc], eax
jne 0x4412a0
mov byte [esi + 0x1cc0], 1
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4451f6
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x445235
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x445235
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x445235
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x445235
cmp dword [ecx + 0x74], 0xe
jbe 0x445235
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x40288e
pop dword [ebp - 0x10]
mov eax, 0x827cf1a2
sub eax, 0x823cc914
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x5d799275
add dword [ebp - 0x20], 0xf0d8b2d6
mov dword [ebp - 0x1c], 0xa77cdf1a
add dword [ebp - 0x1c], 0x8ab66d2b
mov dword [ebp - 0x18], 0x95446de6
sub dword [ebp - 0x18], 0x48f829b8
mov dword [ebp - 0x14], 0x7bff0670
sub dword [ebp - 0x14], 0x7bff0670
lea eax, [ebp - 0x20]
push eax
mov eax, 0x96c760da
sub eax, 0x9686e04e
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0xfa365f1d
sub dword [ebp - 0x20], 0x85c3f5c7
mov dword [ebp - 0x1c], 0x2d0d402e
sub dword [ebp - 0x1c], 0xeba0deb9
mov dword [ebp - 0x18], 0x165f0aec
add dword [ebp - 0x18], 0x4d106180
mov dword [ebp - 0x14], 0x240ee581
sub dword [ebp - 0x14], 0x240ee581
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0xf4dab72b
sub eax, 0xf49a3657
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x375ea
push 0
call eax
mov ecx, 0xd83802bc
add ecx, 0x27c8485c
mov esi, eax
mov edi, 0x93900873
sub edi, 0x934ef873
add edi, dword [ebp - 0x10]
mov ebx, 0xe2f2fb93
sub ebx, 0xbdf250
mov dword [ebp - 8], 0x72cbb73c
mov edx, dword [edi]
xor edx, ebx
xor dword [ebp - 8], 0x762907cb
mov dword [esi], edx
xor dword [ebp - 8], edi
add esi, 0xda51ba27
add esi, 0x25ae45dd
add edi, 0xc3860131
sub edi, 0xc386012d
loop 0x4029b0
add eax, 0x7133d706
add eax, 0x8ecd482d
mov ebx, eax
add eax, 0x2920e7c1
add eax, 0xd6df1844
mov ecx, 0x39f1a4f7
sub ecx, 0x39b1a4f7
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x402814
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402851
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x108]
push eax
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
push esp
call sub.KERNEL32.DLL_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test bl, bl
je 0x402871
lea eax, [esp + 0x108]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x104
call fcn.00403e54
add esp, 0x20c
pop esi
pop ebx
ret

Function at 0x4029b0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x4029df
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403d0c
jmp 0x4029fd
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.004028e4
mov edi, eax
test ebx, ebx
je 0x4029fd
cmp dword [esi], 0
je 0x4029fd
dec ebx
jmp 0x4029e6
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402efc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402f94
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402f74
xor eax, eax
push ebp
push 0x402f6d
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 0x402fb0
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 0x402f74
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x404bbc
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 0xf003f
push 0
push 0x404d58
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404c6c
xor eax, eax
push ebp
push 0x404c65
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
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 0x404c4e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404d78
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404c6c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpyA
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 0x404d4d
cmp byte [ebp - 0xd], 0
jne 0x404cae
cmp byte [ebp - 0x12], 0
je 0x404d4d
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404cc7
dec ebx
cmp byte [ebx], 0x2e
je 0x404cd6
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404cc6
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404d4d
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404d03
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404d4d
cmp byte [ebp - 0xd], 0
je 0x404d4d
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404d4d
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
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 0x407e7c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push esp
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA_1
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403d0c
add esp, 0x104
pop ebx
ret

Function at 0x408c48
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 0x408c81
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403d0c
jmp 0x408c8a
mov eax, ebx
mov edx, esi
call fcn.00403cc0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x408c94
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 0x408cb5
mov al, byte [esp]
jmp 0x408cb7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4155fc
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 0x415602
ret

Function at 0x4180b8
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 0x418109
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4180f0
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jne 0x4180e0
jmp 0x418109
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
jne 0x4180f1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x429fe4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x28], 0
je 0x42a065
xor eax, eax
mov al, byte [ebx + 4]
mov word [ebp - 6], ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42a016
add word [ebp - 6], 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42a028
add word [ebp - 6], 0x4000
test byte [ebx + 0xb], 0x20
je 0x42a034
add word [ebp - 6], 0x8000
xor ebx, ebx
movzx edx, word [ebp - 6]
mov cl, 2
mov eax, dword [ebp - 0xc]
call fcn.00429e70
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x42a059
push ebp
mov eax, dword [ebp - 4]
call fcn.00429f54
pop ecx
mov ebx, eax
cmp bl, 2
je 0x42a034
cmp dword [ebp - 4], 0
setne al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42c668
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x5056ec
cmp dword [edi], 0
jne 0x42c6e4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x5056e8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x5037c8
mov ecx, 2
call fcn.004028a4
mov edx, 0x42c640
lea eax, [esi + 5]
call fcn.0042c660
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042c660
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 0x42c6b9
mov dword [0x5056e8], 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 0x42c808
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x42c858]
test si, 4
je 0x42c81c
or bl, 1
test si, 8
je 0x42c826
or bl, 4
test si, 1
je 0x42c830
or bl, 8
test si, 2
je 0x42c83a
or bl, 0x10
test si, 0x10
je 0x42c844
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42c853
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x42c85c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x42c894]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42c875
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42c884
or bl, 4
test esi, 0x20000000
je 0x42c88f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x430f04
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 0x4310a9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40c75c]
call fcn.00403054
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00403c28
push 0
call sub.user32.dll_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x43107f
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.00428394
test al, al
je 0x431072
lea eax, [ebp - 0xc]
push eax
push 0xf003f
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, 0x4310b8
lea eax, [ebp - 0x254]
call fcn.00408540
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x431072
xor eax, eax
push ebp
push 0x43106b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4310f0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x431054
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403e54
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x431054
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403e54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x431072
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x430f75
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0040fb00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4310b0
lea eax, [ebp - 0x260]
call fcn.00403c28
ret

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

Disassembly:
push ecx
mov eax, dword [0x5056c0]
cmp byte [eax + 0x85], 0
jne 0x4313dd
cmp dword [0x5056f8], 0
jne 0x43139e
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x431328
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x5056f8], eax
cmp dword [0x5056f4], 0
jne 0x4313b9
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x5056f4], eax
cmp dword [0x5056fc], 0
jne 0x4313dd
push esp
push 0
push 0
push 0x4312cc
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread_1
mov dword [0x5056fc], eax
pop edx
ret