joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ea0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x41c214]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00403d70
lea eax, [ebp + 0x10]
mov dword [ebp - 0x20c], eax
mov ecx, dword [ebp - 0x20c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0x100
lea eax, [ebp - 0x204]
push eax
call fcn.00411860
add esp, 0x10
mov dword [ebp - 0x20c], 0
mov ecx, 4
imul edx, ecx, 0
lea eax, [ebp - 0x204]
mov dword [ebp + edx - 0x210], eax
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x254], 0
je 0x401f63
mov edx, dword [ebp + 8]
add edx, 0x30
push edx
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 0
je 0x401f61
push 0
mov eax, 4
imul ecx, eax, 0
lea edx, [ebp + ecx - 0x210]
push edx
push 0
push 1
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x208]
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
mov ecx, dword [ebp - 0x208]
push ecx
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x401f73
lea edx, [ebp - 0x204]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__putws]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004134d5
mov esp, ebp
pop ebp
ret

Function at 0x402e00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov byte [ebp - 2], 1
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push str.SOFTWARESiemensWinCCRtsLoaderConstants
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402e83
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 4
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x14]
push eax
push 0
push str.UseExceptHandler
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402e67
mov byte [ebp - 1], 1
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, byte [ebp - 1]
test eax, eax
je 0x402e83
cmp dword [ebp - 0xc], 0
jne 0x402e83
mov byte [ebp - 2], 0
jmp 0x402e87
mov al, byte [ebp - 2]
mov esp, ebp
pop ebp
ret
Function at 0x40a140
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4146ab
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x41c214]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x434], ecx
mov ecx, dword [ebp - 0x434]
call fcn.00401de0
test eax, eax
je 0x40a18a
mov eax, 1
jmp 0x40a360
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
jne 0x40a1c8
push 0
mov eax, dword [ebp - 0x434]
add eax, 0x30
push eax
push str.Couldnt_open_service_manager
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x40a360
push 0x104
lea ecx, [ebp - 0x418]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x4161b8
lea ecx, [ebp - 0x430]
call fcn.00404a90
mov dword [ebp - 4], 0
lea edx, [ebp - 0x418]
push edx
lea ecx, [ebp - 0x430]
call fcn.0040fec0
push 0x4161b8
lea ecx, [ebp - 0x430]
call fcn.0040fec0
mov ax, word [0x415df0]
mov word [ebp - 0x210], ax
push 0x1fe
push 0
lea ecx, [ebp - 0x20e]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0xff
push 0x4161bc
push 0x100
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
add esp, 4
mov ecx, 0xff
sub ecx, eax
push ecx
push str.Data_Manager
push 0x100
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
push 0
push 0
push str.RPCSS
push 0
push 0
lea ecx, [ebp - 0x430]
call fcn.00410200
push eax
push 1
push 3
push 0x10
push 0xf01ff
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp - 0x434]
add ecx, 0x30
push ecx
mov edx, dword [ebp - 0x438]
push edx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0
jne 0x40a324
mov eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0
mov ecx, dword [ebp - 0x434]
add ecx, 0x30
push ecx
push str.Couldnt_create_service
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [ebp - 0x440], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x430]
call fcn.00405390
mov eax, dword [ebp - 0x440]
jmp 0x40a360
mov edx, dword [ebp - 0x43c]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x444], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x430]
call fcn.00405390
mov eax, dword [ebp - 0x444]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004134d5
mov esp, ebp
pop ebp
ret
Function at 0x40b0d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x40b0d9
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
shl edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40b11c
mov eax, dword [ebp - 8]
jmp 0x40b182
cmp dword [ebp - 0xc], 1
je 0x40b12f
cmp dword [ebp - 0xc], 2
je 0x40b12f
mov eax, 0xd
jmp 0x40b182
cmp dword [ebp + 0xc], 0
je 0x40b176
cmp dword [ebp - 4], 0
je 0x40b165
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x40b15c
mov edx, dword [ebp - 4]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x40b163
mov eax, 0xd
jmp 0x40b182
jmp 0x40b176
mov edx, 2
imul eax, edx, 0
xor ecx, ecx
mov edx, dword [ebp + 0xc]
mov word [edx + eax], cx
mov eax, dword [ebp - 4]
shr eax, 1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40b360
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x41c214]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x20c], ecx
push 0
lea ecx, [ebp - 0x21c]
call fcn.00404ef0
mov eax, dword [ebp - 0x20c]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x20c]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.0040aaf0
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 0
je 0x40b3df
mov edx, dword [ebp - 0x208]
mov dword [ebp - 0x220], edx
lea ecx, [ebp - 0x21c]
call fcn.00405600
mov eax, dword [ebp - 0x220]
jmp 0x40b494
mov dword [ebp - 0x210], 0x100
lea eax, [ebp - 0x230]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x204]
push edx
push 0
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40b463
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.0040b360
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 0
je 0x40b457
mov edx, dword [ebp - 0x208]
mov dword [ebp - 0x224], edx
lea ecx, [ebp - 0x21c]
call fcn.00405600
mov eax, dword [ebp - 0x224]
jmp 0x40b494
mov dword [ebp - 0x210], 0x100
jmp 0x40b3e9
lea ecx, [ebp - 0x21c]
call fcn.004085d0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x20c]
call fcn.004087a0
mov dword [ebp - 0x228], eax
lea ecx, [ebp - 0x21c]
call fcn.00405600
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004134d5
mov esp, ebp
pop ebp
ret 4
Function at 0x40b570
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x40b5cf
push 0x415a9c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40b59c
mov eax, 1
jmp 0x40b5ed
push str.RegDeleteKeyTransactedW
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40b5cd
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 0xc]
jmp 0x40b5ed
jmp 0x40b5e8
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x40b5e8
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x40b5ed
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x40ce70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
xor eax, eax
jne 0x40ce79
cmp dword [ebp + 0xc], 0
je 0x40ce8c
mov dword [ebp - 0x10], 1
jmp 0x40ce93
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
jne 0x40cea6
mov eax, 0xd
jmp 0x40cf04
xor edx, edx
jne 0x40ce7d
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
add esp, 4
add eax, 1
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
lea ecx, [eax + edx*2]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
lea ecx, [eax + edx*2]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 8], 1
jne 0x40ceb7
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 7
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8

Function at 0x40d0e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
xor eax, eax
jne 0x40d0e9
cmp dword [ebp + 0xc], 0
je 0x40d0fc
mov dword [ebp - 4], 1
jmp 0x40d103
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jne 0x40d116
mov eax, 0xd
jmp 0x40d146
xor edx, edx
jne 0x40d0ed
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40d5d0
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x41c214]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x24]
call fcn.00401de0
test eax, eax
jne 0x40d5f9
mov eax, 1
jmp 0x40d6c7
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x40d62e
push 0
mov eax, dword [ebp - 0x24]
add eax, 0x30
push eax
push str.Couldnt_open_service_manager
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x40d6c7
push 0x10020
mov ecx, dword [ebp - 0x24]
add ecx, 0x30
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x40d671
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0
mov ecx, dword [ebp - 0x24]
add ecx, 0x30
push ecx
push str.Couldnt_open_service
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x40d6c7
lea edx, [ebp - 0x20]
push edx
push 1
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x30], 0
je 0x40d6af
mov eax, 1
jmp 0x40d6c7
push 0
mov ecx, dword [ebp - 0x24]
add ecx, 0x30
push ecx
push str.Service_could_not_be_deleted
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004134d5
mov esp, ebp
pop ebp
ret

Function at 0x40e440
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40e464
xor eax, eax
jmp 0x40e4e4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40e47b
xor eax, eax
jmp 0x40e4e4
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x40e4c7
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x40e4c7
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x40e49e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x40e4d3
xor eax, eax
jmp 0x40e4e4
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x40e4e1
xor eax, eax
jmp 0x40e4e4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x413719
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x419df8
call fcn.00413e50
push 1
call fcn.00412ca8
pop ecx
test al, al
jne 0x413738
push 7
call fcn.00413c51
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00412bbe
mov byte [ebp - 0x24], al
mov eax, dword [0x41cb6c]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x413731
test eax, eax
jne 0x4137a2
mov dword [0x41cb6c], ecx
push 0x4153c0
push 0x4153b0
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x413785
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x413889
push 0x4153ac
push 0x41532c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x41cb6c], 2
jmp 0x4137a7
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.00412e05
pop ecx
call fcn.00413fea
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x4137d7
push esi
call fcn.00412d78
pop ecx
test al, al
je 0x4137d7
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.00413e3b
call esi
call fcn.00413ff0
mov esi, eax
cmp dword [esi], edi
je 0x4137f5
push esi
call fcn.00412d78
pop ecx
test al, al
je 0x4137f5
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
push edi
call sub.VCRUNTIME140.dll___telemetry_main_invoke_trigger
pop ecx
call fcn.00413d6c
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_wide_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
push edi
call sub.VCRUNTIME140.dll___telemetry_main_return_trigger
pop ecx
call fcn.00413da2
test al, al
jne 0x41382e
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x413837
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.00412e22
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x413889
call fcn.00413e96
ret
call fcn.004ae000
jmp 0x413719
Function at 0x402a3c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404290
test esi, esi
jne 0x402a72
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404380
jmp 0x402a90
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402950
mov edi, eax
test esi, esi
je 0x402a90
cmp dword [ebx], 0
je 0x402a90
dec esi
jmp 0x402a79
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4033d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x469020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403468
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403448
xor eax, eax
push ebp
push 0x403441
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 0x403484
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 0x403448
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x469020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x469020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404114
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46b048], 0
je 0x404175
cmp word [0x46b21c], 0xd7b2
jne 0x40413d
cmp dword [0x46b224], 0
jbe 0x40413d
mov eax, 0x46b218
call dword [0x46b234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x469098
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 0x40419c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x469030], 0
jne 0x404191
push 0
push 0x469090
push 0x469098
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40c800
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c864
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404500
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408250
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c86b
lea eax, [ebp - 0xc]
call fcn.00404290
ret

Function at 0x41ad30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x46b884
cmp dword [edi], 0
jne 0x41adac
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x46b880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x469498
mov ecx, 2
call fcn.00402910
mov edx, 0x41ad08
lea eax, [esi + 5]
call fcn.0041ad28
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041ad28
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 0x41ad81
mov dword [0x46b880], 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 0x41bfc0
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 0x41bfc6
ret

Function at 0x41e42c
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 0x41e47d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41e464
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41e454
jmp 0x41e47d
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 0x41e465
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42c7d8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x46bb54], 0
je 0x42c927
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x46a628]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x42c927
mov eax, dword [0x46bb58]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x46bb54]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x42c8f6
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x46bb54]
call fcn.004141fc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42c8ee
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x42c8ee
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x42c8ee
mov eax, dword [ebp - 0x14]
call fcn.004353e8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42c8ee
push ebp
call fcn.0042c794
pop ecx
test al, al
jne 0x42c8ee
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x42c8aa
mov eax, dword [ebp - 0x14]
call fcn.00433f18
dec eax
jle 0x42c8ee
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.00403754
cmp byte [ebp - 1], 0
je 0x42c8ee
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x42c8ee
mov edx, dword [ebp - 0x14]
mov eax, dword [0x46bb58]
call fcn.0042bf60
inc edi
dec ebx
jne 0x42c83d
mov eax, dword [0x46bb58]
cmp dword [eax + 8], 0
jle 0x42c90e
mov eax, dword [0x46bb58]
call fcn.0042bff0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42c927
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0042c5fc
pop ecx
test al, al
jne 0x42c927
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret