joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414780
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419dbc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x28
call sub.mfc42.dll_CString::CString_2
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call sub.mfc42.dll_CString::CString_2
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x40
call sub.mfc42.dll_CString::CString_2
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call sub.mfc42.dll_CString::CString_2
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x60
call sub.mfc42.dll_CStringArray::CStringArray
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x41200000
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0x40a00000
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], 0xbb8
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc], 0x64
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x10], 0x3e8
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x1c], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x20], 1
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x24], 0
push 0x4204bc
mov ecx, dword [ebp - 0x10]
add ecx, 0x28
call sub.mfc42.dll_CString::operator_1
push 0x4204b8
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call sub.mfc42.dll_CString::operator_1
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x30], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x34], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x38], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x3c], 0x41200000
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x48], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x4c], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x50], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x54], 0x40a00000
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x58], 0x1388
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x5c], 0x40a00000
mov ecx, dword [ebp - 0x10]
add ecx, 0x60
call fcn.00414900
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x41a900
Capabilities:
Terminate process

Disassembly:
push 0x41a8e8
call dword [sym.imp.kernel32.dll_LoadLibraryA]
push 0x41a8f8
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x41a91d
call eax
jmp fcn.00418f00

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x402780
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x408028]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 4
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 1
push eax
push 0x36
push 0xffffffffffffffff
xor edi, edi
call dword [sym.imp.ntdll.dll_NtSetInformationProcess]
push 0x406ce0
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
push 1
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetErrorMode]
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push 0x40839c
mov dword [0x408394], eax
mov dword [0x4083a4], 0x4083a0
mov dword [0x4083a0], 0x4083a0
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_InitializeSRWLock]
push 0x408374
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_InitializeSRWLock]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDisablePredefinedCacheEx]
push 0x408428
push edi
push edi
push 0x40127c
call dword [sym.imp.ntdll.dll_EtwEventRegister]
test byte [0x7ffe02f0], 0x20
jne 0x406793
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCommandLineW]
mov ecx, eax
call fcn.00402b30
mov esi, eax
test esi, esi
je 0x4028cd
push 0x90
lea eax, [ebp - 0x98]
push 0
push eax
call sub.api_ms_win_core_crt_l1_1_0.dll_memset
mov dword [ebp - 0x8c], 1
add esp, 0xc
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
test ecx, ecx
jne 0x4067af
push eax
push 0x401270
lea eax, [ebp - 0x88]
push 0x40
push eax
call fcn.00402900
add esp, 0x10
push 0x90
lea eax, [ebp - 0x98]
push eax
push 0x52
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ntdll.dll_NtSetInformationProcess]
mov edx, esi
call fcn.00402dc0
call fcn.00402960
mov edi, eax
test edi, edi
je 0x4028b7
mov ecx, esi
call fcn.004029d0
test eax, eax
je 0x4028f0
mov eax, dword [esi + 0x60]
test eax, eax
jne 0x4028df
push esi
push 0
push dword [0x408394]
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00405970
mov esp, ebp
pop ebp
ret
push eax
push 0
push dword [0x408394]
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
jmp 0x4028be
push 1
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ExitProcess]
push 1
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_SetProcessAffinityUpdateMode]
test eax, eax
je 0x4028f0
jmp 0x402823
push ecx
push eax
push 0x4021a4
lea eax, [ebp - 0x88]
push 0x40
push eax
call fcn.00402900
add esp, 0x14
jmp 0x40287f
Function at 0x4029d0
Capabilities:
Access pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
je 0x4029ef
call fcn.00403840
test eax, eax
jne 0x4029ef
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4029fc
shl eax, 0xa
push eax
jmp 0x402a12
mov eax, dword fs:[0x30]
push dword [eax + 8]
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
test eax, eax
je 0x402a18
push dword [eax + 0x64]
call dword [sym.imp.RPCRT4.dll_RpcMgmtSetServerStackSize]
cmp dword [esi + 0x40], 1
jne 0x402a24
call dword [sym.imp.RPCRT4.dll_I_RpcServerDisableExceptionFilter]
cmp dword [esi + 0x44], 0
je 0x402a39
push 1
push 0
push 1
call dword [sym.imp.ntdll.dll_RtlSetProcessIsCritical]
add esp, 0xc
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x402a51
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push 4
push eax
push 2
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
mov eax, dword [esi + 0x50]
test eax, eax
je 0x402a69
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push 4
push eax
push 8
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x402a75
call fcn.00405fa5
cmp dword [esi + 0x58], 0
je 0x402a9f
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
push 6
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
push 0
push 1
push 0x401b20
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_SetProtectedPolicy]
push 0
push 0
push 1
push 0
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapSetInformation]
test byte [esi + 0x5c], 4
je 0x402ace
mov eax, dword fs:[0x30]
mov ecx, dword [eax + 0x240]
mov eax, dword fs:[0x30]
or ecx, 1
mov dword [eax + 0x240], ecx
call fcn.00406cf2
call fcn.00406703
test byte [esi + 0x5c], 8
je 0x402b12
xor eax, eax
mov dword [ebp - 0xc], 0
or eax, 1
mov dword [ebp - 0xc], 4
push 8
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0x34
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtSetInformationProcess]
xor ecx, ecx
test eax, eax
setns cl
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4037b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push 0
lea eax, [ebp - 8]
mov ebx, ecx
push eax
push 0
call dword [sym.imp.ntdll.dll_RtlGetDeviceFamilyInfoEnum]
mov eax, dword [ebp - 8]
cmp eax, 3
jne 0x40686b
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x401290
push 0x80000002
call sub.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW
test eax, eax
jne 0x403825
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x4012e8
push dword [ebp - 4]
call sub.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW
test eax, eax
je 0x406887
push dword [ebp - 4]
call sub.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 9
je 0x4037d5
cmp eax, 0xd
je 0x4037d5
mov eax, 1
jmp 0x403827
cmp dword [ebp - 0x10], 4
jne 0x40381d
xor ebx, ebx
cmp dword [ebp - 0x14], ebx
setne bl
jmp 0x40381d
Function at 0x405d11
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x408028]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
lea eax, [ebp - 0x88]
push esi
push 0x20
push eax
mov edi, edx
mov ebx, ecx
push 0xa4
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x8c], ebx
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x405e74
mov eax, dword [ebp - 0x88]
and eax, 0x50
cmp al, 0x50
jne 0x405e74
push esi
push esi
push 0x405730
push 0x408420
call dword [sym.imp.ntdll.dll_RtlRunOnceExecuteOnce]
test eax, eax
jns 0x405d8d
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
xor edi, edi
mov esi, eax
inc edi
jmp 0x405dce
cmp dword [0x4083b0], esi
je 0x405df1
mov esi, dword [0x408400]
test esi, esi
je 0x405df1
lea eax, [ebp - 0x94]
mov ecx, esi
push eax
push edi
push dword [ebx + 8]
push 1
call dword [0x40922c]
call esi
mov esi, eax
test esi, esi
jns 0x405dda
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x405dcb
movzx esi, si
push 3
pop edi
xor ebx, ebx
test esi, esi
je 0x405e74
jmp 0x405df9
cmp dword [ebp - 0x94], 0
jne 0x405dea
push 5
pop esi
push 4
jmp 0x405df6
xor esi, esi
jmp 0x405e74
push 5
pop esi
push 2
xor ebx, ebx
pop edi
cmp dword [section..data], 5
jbe 0x405e74
mov edx, dword [ebp - 0x8c]
lea ecx, [ebp - 0x48]
mov edx, dword [edx + 0xc]
call fcn.00406d03
mov edx, dword [ebp - 0x98]
lea ecx, [ebp - 0x38]
call fcn.00406d03
lea eax, [ebp - 0x90]
mov dword [ebp - 0x90], edi
push 8
mov dword [ebp - 0x28], eax
xor edx, edx
pop ecx
lea eax, [ebp - 0xa0]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x68]
push eax
push 6
push ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x9c], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], edx
mov edx, 0x401f17
push ecx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0xa0], esi
mov dword [ebp - 0x10], ecx
call fcn.00406d5a
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405970
leave
ret
Function at 0x40668d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push esi
push eax
push 0x20019
push 0
push 0x401290
push 0x80000002
mov esi, 0x19000
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x4066f8
push edi
push 4
pop edi
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x401b88
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x4066ee
cmp dword [ebp - 0xc], edi
jne 0x4066ee
cmp dword [ebp - 4], edi
jne 0x4066ee
mov esi, dword [ebp - 0x10]
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x10017160
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1008d610
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.10082ac8
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.10018f10
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x100171b4
jmp dword [ecx*4 + 0x1001731c]
mov al, byte [esi]
test al, al
je 0x100171e2
cmp al, 0x20
je 0x100171ce
cmp al, 0xa1
jne 0x100171e2
cmp byte [esi + 1], al
jne 0x100171e2
test al, 0x80
je 0x100171da
mov al, byte [esi + 1]
inc esi
test al, al
je 0x100171e2
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x100171c1
test ecx, ecx
je case.default.0x100171b4
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x100171b4
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x10017228
cmp dl, 0xa1
jne 0x1001721c
cmp byte [eax + 1], 0xa1
jne 0x1001721c
test ecx, ecx
jne 0x10017214
mov edi, eax
mov ecx, 1
inc eax
jmp 0x1001723c
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x10017256
jmp 0x1001723c
cmp dl, 0x20
jne 0x1001723a
test ecx, ecx
jne 0x10017233
mov edi, eax
mov ecx, 1
jmp 0x1001723c
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x100171fc
cmp ecx, 1
jne case.default.0x100171b4
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x100171b4
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x100171b4
mov al, byte [esi]
test al, al
je 0x100172ae
test al, 0x80
mov byte [esp + 0x3c], al
je 0x10017294
mov cl, byte [esi + 1]
test cl, cl
je 0x100172ae
cmp al, 0xa1
jne 0x10017284
cmp cl, al
je 0x10017291
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.100191e0
inc esi
jmp 0x100172a6
cmp al, 0x20
je 0x100172a6
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.10019220
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1001726d
push 0
lea ecx, [esp + 0x14]
call fcn.10019220
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.100295c0
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x100172e1
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x100a9710
call fcn.10019110
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.10082a5a
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x10022210
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x1008e07b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.100827cf
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x10022292
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.10080050
mov eax, dword [eax]
push 0x100bb224
push eax
call fcn.10072ca4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.10082a5a
test bl, bl
je 0x10022292
push 0x100bb224
lea ecx, [esp + 0xc]
call fcn.10082dea
push 0x100bed9c
lea ecx, [esp + 0xc]
call fcn.10082dea
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x100222ce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.10082a5a
jmp 0x10022399
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x10022352
lea edx, [esp + 0x7c]
push 0x100bed98
push edx
call fcn.10072ca4
add esp, 8
test eax, eax
je 0x10022352
lea eax, [esp + 0x7c]
push 0x100bed94
push eax
call fcn.10072ca4
add esp, 8
test eax, eax
je 0x10022352
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100222e2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.10082a5a
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x10022b90
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x10022bf2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x10022c00
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x1008e0fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x100cb630]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x10022d38
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x10022c66
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.10082a5a
xor eax, eax
jmp 0x10022daf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.10082b97
push esi
lea ecx, [esp + 0xc]
call fcn.10082e26
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x100bedd4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x10022d8d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.10022b90
test eax, eax
jne 0x10022d8d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.10022b90
test eax, eax
jne 0x10022d8d
lea eax, [esp + 0x14]
push 0x100bedb0
push eax
call fcn.10073ce0
mov esi, eax
add esp, 8
test esi, esi
jne 0x10022d6c
lea ecx, [esp + 0x14]
push 0x100bedac
push ecx
call fcn.10073c60
mov esi, eax
add esp, 8
test esi, esi
jne 0x10022d6c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x10022d6f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.10082b47
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x10022c7e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.10082a5a
xor eax, eax
jmp 0x10022daf
mov byte [esi], 0
push 0x100beda8
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.10082a5a
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x10035210
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x1003527e
cmp si, 0x69
ja 0x1003527e
add esi, 0xffd0
cmp si, 0x11
je 0x1003524e
push 0x11
call edi
test ax, ax
jge 0x1003524e
or esi, 0x2000
cmp si, 0x10
je 0x10035263
push 0x10
call edi
test ax, ax
jge 0x10035263
or esi, 0x4000
cmp si, 0x12
je 0x10035278
push 0x12
call edi
test ax, ax
jge 0x10035278
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x1003528b
mov esi, 0xbd
jmp 0x1003523f
cmp si, 0x6e
jne 0x10035298
mov esi, 0xbe
jmp 0x1003523f
cmp si, 0x6f
jne 0x10035239
mov esi, 0xbf
jmp 0x1003523f

Function at 0x10036a40
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x100dbdf8]
xor edx, edx
cmp eax, edx
jne 0x10036a66
xor eax, eax
mov byte [eax + 0x100dbcf8], al
inc eax
cmp eax, 0x100
jl 0x10036a4e
mov dword [0x100dbdf8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x100dbcf8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x10036af7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x10036aca
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x10036a98
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x10036b70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x10036bc3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x10036baa
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret