joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a9a0
Capabilities:
Enumerate processes on remote desktop session host

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431668
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x43ec2c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push 0x4372b0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x20], ebx
call fcn.00401bf0
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
add eax, 0x94
lea esi, [ebp + 8]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
call fcn.004074e0
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00401580
mov byte [ebp - 4], bl
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aa22
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x10]
push edx
push 1
push ebx
push ebx
call sub.WTSAPI32.dll_WTSEnumerateProcessesW
neg eax
sbb eax, eax
neg eax
je 0x40aaff
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x14], ebx
jbe 0x40aaff
mov edi, dword [ebp - 0x10]
add edi, 4
call fcn.0040d18b
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x40aadb
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 2
mov ecx, dword [edi]
push ecx
lea edx, [ebp + 8]
push 0x437b9c
push edx
call fcn.00402260
mov ecx, dword [ebp - 0x18]
xor eax, eax
add esp, 0xc
cmp ecx, ebx
setne al
cmp eax, ebx
je 0x40aadb
mov esi, dword [ebp + 8]
push ecx
push esi
call fcn.00418d73
add esp, 8
or edx, 0xffffffff
cmp eax, ebx
lea eax, [esi - 0x10]
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
je 0x40aae5
add edi, 0x10
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aac9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp - 0x14]
jb 0x40aa51
jmp 0x40aaff
push 0x80004005
call fcn.00401cd0
mov dword [ebp - 0x20], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aaff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x40ab0f
push eax
call sub.WTSAPI32.dll_WTSFreeMemory
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ab35
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4183f6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43ec2c]
jne 0x418400
repz ret
jmp fcn.0041dda6

Function at 0x4254c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
div ecx
test edx, edx
je 0x4254cc
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.004251de
pop esp
lds eax, [edx]
popfd
lea eax, [ebp - 0x40]
push eax
call fcn.004251ee
push eax
push esi
push dword [ebp + 8]
call fcn.004251a3
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.004251de
imul ecx, eax, 0x458d96c3
call 0x512ab2d4
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.004251ee
push eax
push esi
push dword [ebp + 8]
call fcn.004251a3
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.004251ee
push eax
push esi
push dword [ebp + 8]
call fcn.004251a3
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.004251ee
push eax
push esi
push dword [ebp + 8]
call fcn.004251a3
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.004251de
out dx, eax
dec esi
add eax, dword [eax + ecx*4 - 0x8363]
dec dword [eax - 0x8263]
inc esi
test dword [esi - 1], edi
invalid
Function at 0x427643
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041d7b5
and dword [ebp - 4], 0
cmp dword [0x442bc8], 0
mov ebx, eax
jne 0x4276f4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4277a5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4277a5
push eax
call fcn.0041d743
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x442bc8], eax
call esi
push eax
call fcn.0041d743
mov dword [esp], 0x43596c
push edi
mov dword [0x442bcc], eax
call esi
push eax
call fcn.0041d743
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x442bd0], eax
call esi
push eax
call fcn.0041d743
pop ecx
mov dword [0x442bd8], eax
test eax, eax
je 0x4276f4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041d743
pop ecx
mov dword [0x442bd4], eax
mov eax, dword [0x442bd4]
cmp eax, ebx
je 0x42774c
cmp dword [0x442bd8], ebx
je 0x42774c
push eax
call fcn.0041d7be
push dword [0x442bd8]
mov esi, eax
call fcn.0041d7be
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42774c
test edi, edi
je 0x42774c
call esi
test eax, eax
je 0x427743
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x427743
test byte [ebp - 0xc], 1
jne 0x42774c
or dword [ebp + 0x10], 0x200000
jmp 0x427785
mov eax, dword [0x442bcc]
cmp eax, ebx
je 0x427785
push eax
call fcn.0041d7be
pop ecx
test eax, eax
je 0x427785
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x427785
mov eax, dword [0x442bd0]
cmp eax, ebx
je 0x427785
push eax
call fcn.0041d7be
pop ecx
test eax, eax
je 0x427785
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x442bc8]
call fcn.0041d7be
pop ecx
test eax, eax
je 0x4277a5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4277a7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001890
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000de25
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x10
push esi
push edi
mov eax, dword [0x100190b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x18
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, dword [ebx + 0xc]
add esp, 4
mov edi, eax
xorps xmm0, xmm0
push esi
movups xmmword [edi], xmm0
push 0
movq qword [edi + 0x10], xmm0
push 0x5a
mov dword [edi + 0x10], ecx
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [edi + 0xc], eax
test eax, eax
jne 0x10001927
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenThread_ERROR:__x_r_n
call fcn.10001800
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 8
call fcn.1000ca5e
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [eax], edi
mov dword [eax + 4], 0x100019b0
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x10001cb0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x10001995
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 1
call fcn.10001840
cmp dword [ebp - 0x18], 0
je 0x1000197f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 6
mov dword [ebp - 0x18], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x10004280
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000e0f6
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x100190b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x30], 0
mov byte [ebp - 4], 2
mov eax, 0x3f
mov dword [esi + 4], 0x3f800000
mov word [esi + 0x3c], ax
call fcn.10004330
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10004cc0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
lea eax, [ebp - 0x58]
mov dword [ebp - 0x10], edx
push eax
mov dword [ebp - 0x14], ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x4c]
xor edi, edi
cdq
mov ecx, eax
mov dword [ebp - 4], edx
xor eax, eax
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x10004da1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1c
lea eax, [ebp - 0x34]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x10004d9f
xor esi, esi
cmp dword [ebp - 0x24], 0x1000
jne 0x10004d86
cmp dword [ebp - 0x20], 1
je 0x10004d86
push dword [ebp - 0x28]
call fcn.1000d26e
add esp, 4
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push dword [ebp - 0x28]
push dword [ebp - 0x34]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x10004d86
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x28]
push esi
push dword [ebp - 0x34]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0x28]
push dword [ebp - 0x34]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
push esi
call fcn.10004c40
add esp, 8
test eax, eax
jne 0x10004da8
add edi, dword [ebp - 0x28]
test esi, esi
je 0x10004d96
push esi
call fcn.1000d269
add esp, 4
cmp edi, dword [ebp - 0x18]
jb 0x10004cf1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub eax, esi
add eax, edi
push esi
mov dword [ebp - 0x18], eax
call fcn.1000d269
mov eax, dword [ebp - 0x18]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10006c10
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x100190b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 4
mov dword [ebp - 0x30], ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
je 0x10006d00
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x28], 0xffffffff
push ecx
push eax
mov dword [ebp - 0x2c], 0x7fffffff
xor esi, esi
mov dword [ebp - 0x20], 0x1c
call dword [sym.imp.KERNEL32.dll_Thread32First]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10006cfb
nop dword [eax]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x10006cd2
push dword [ebp - 0x18]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x38]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetThreadTimes]
test eax, eax
je 0x10006cd2
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 0xffffffff
jne 0x10006ccf
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ecx
test esi, esi
je 0x10006ccb
push esi
call ebx
mov esi, edi
jmp 0x10006cd2
push edi
call ebx
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10006c70
push dword [ebp - 0x30]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadId]
mov ecx, eax
call fcn.10001890
add esp, 8
push esi
call ebx
push dword [ebp - 0x24]
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000ca50
mov esp, ebp
pop ebp
ret
Function at 0x10008470
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000e185
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x100190b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0xc], 1
jne 0x10008534
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x10006ea0
push 1
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
push 4
call fcn.1000ca5e
mov dword [ebp + 0xc], eax
mov dword [eax], 0x10008370
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x1000c370
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x1c
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10008525
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 1
call fcn.10001840
cmp dword [ebp - 0x10], 0
je 0x1000850f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc
push 6
mov dword [ebp - 0x10], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc
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.00463a8c
pop edx
call fcn.004639f0
call fcn.00463acc
push 0
call fcn.00464d60
pop ecx
push 0x484348
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x4843a7], eax
push 0
jmp fcn.0046af6c
Function at 0x406940
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 0x406a5d
cmp dword [ebp + 0x10], 0x2800
jle 0x406a5d
mov edx, 4
mov eax, dword [ebp + 0xc]
call fcn.004528dc
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 0x40698c
adc edx, 0
mov eax, dword [ebp + 0xc]
call fcn.004528dc
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 0x4069fe
push 0x15
push 0
lea edx, [ebp - 0x18]
push edx
call fcn.00463de0
mov ecx, dword [ebp + 8]
add esp, 0xc
lea edx, [ebp - 0x18]
mov eax, dword [ecx + 0x31c]
push eax
push 0x484b50
push edx
call fcn.00466958
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 0x4069e3
jmp 0x406a31
mov eax, dword [ebp + 8]
cmp dword [eax + 0x318], 2
jne 0x406a31
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 0x406a12
mov edx, dword [ebp + 0x10]
sar edx, 1
jns 0x406a3b
adc edx, 0
mov eax, dword [ebp + 0xc]
call fcn.004528dc
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.004528dc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ab94
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 0x40ab9d
pop ebx
pop ebp
ret

Function at 0x418ab0
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.00461808
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x418aff
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.00461a38
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41ecbc
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 0x41ecc2
ret

Function at 0x4211ac
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 0x4211fd
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4211e4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4211d4
jmp 0x4211fd
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 0x4211e5
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x429cb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x48fa78
cmp dword [edi], 0
jne 0x429d2c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x48fa74]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x488e3c
mov ecx, 2
call fcn.004607e8
mov edx, 0x429c88
lea eax, [esi + 5]
call fcn.00429ca8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00429ca8
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 0x429d01
mov dword [0x48fa74], 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 0x429e48
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x429e98]
test si, 4
je 0x429e5c
or bl, 1
test si, 8
je 0x429e66
or bl, 4
test si, 1
je 0x429e70
or bl, 8
test si, 2
je 0x429e7a
or bl, 0x10
test si, 0x10
je 0x429e84
or bl, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x429e93
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x429e9c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x429ed4]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x429eb5
or bl, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x429ec4
or bl, 4
test esi, 0x20000000
je 0x429ecf
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x430424
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x430436
add esp, 0xfffffff0
call fcn.00461098
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004557b0
mov eax, ebx
call fcn.00430770
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x44f4d0]
call fcn.00460d68
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x44f4d0]
call fcn.00460d68
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x44f4d0]
call fcn.00460d68
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x44f4d0]
call fcn.00460d68
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x44f4d0]
call fcn.00460d68
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, 0x42cf14
push eax
push 0
push 0
mov eax, dword [0x48d464]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41e1e4]
call fcn.0041f71c
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x41e1e4]
call fcn.0041f71c
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x41e1e4]
call fcn.0041f71c
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.00430b50
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x430a6c
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x430a6c
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x430a6c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x430545
call fcn.004610f0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret