joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401610
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x401630
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
test esi, esi
jne 0x401644
pop edi
lea eax, [esi + 0xd]
pop esi
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x401670
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 4], ecx
test ebp, ebp
jne 0x401686
lea eax, [ebp + 0xd]
pop ebp
pop ecx
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x401693
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8
Function at 0x401fb0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x4ca1d0]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [ecx]
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ecx + 4]
push edi
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x1c]
push ecx
xor ebx, ebx
or esi, 0x2001f
push esi
push ebx
push edx
push eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x10]
mov edi, eax
cmp edi, ebx
jne 0x40202f
xor eax, eax
cmp ecx, ebx
je 0x402017
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
and esi, 0x300
mov edi, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
cmp eax, ebx
je 0x402053
cmp ecx, ebx
je 0x40203a
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.00493ffe
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebx
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
lea edx, [esp + 0x44]
push edx
push ebx
push ecx
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
jne 0x4020ba
jmp 0x402080
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x14]
call fcn.00401fb0
mov edi, eax
cmp edi, ebx
jne 0x402109
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x44]
push eax
push ebx
push ecx
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
je 0x402080
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4020cd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push edx
mov dword [esp + 0x18], ebx
call fcn.004014a0
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4020f0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.00493ffe
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x402118
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x234]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00493ffe
mov esp, ebp
pop ebp
ret 4
Function at 0x403d20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x4afd80
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4ca1d0]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov edi, dword [ebp + 0x414]
mov ebx, dword [ebp + 0x418]
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp], edx
push 2
push edx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x403da2
call fcn.00401250
mov edi, eax
jmp 0x403e84
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x403dbb
call fcn.00401250
jmp 0x403e7b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
jne 0x403dd6
call fcn.00401250
jmp 0x403e7b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x18], edi
cmp eax, edi
jae 0x403e0c
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x403dfa
lea ecx, [ebp]
call fcn.00401f50
lea ecx, [ebp - 0x20]
call fcn.00401ef0
mov eax, 0x8007000e
jmp 0x403e96
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.00402a40
mov dword [ebp - 4], 1
jmp 0x403e38
mov eax, dword [ebp]
test eax, eax
jne 0x403e46
mov edi, 0x8007000e
jmp 0x403e7d
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x403e5f
call fcn.00401250
jmp 0x403e7b
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x41c]
mov ecx, dword [ebp]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00403ba0
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x403e94
lea ecx, [ebp]
call fcn.00401f50
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.00493ffe
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404ca0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4afe7a
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4ca1d0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
lea ecx, [esi + 0x9c]
mov dword [esp + 0x14], 4
call fcn.00412050
lea eax, [esi + 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [esi + 0x70]
sub eax, 0x10
mov byte [esp + 0x14], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404d0c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esi + 0x50]
mov byte [esp + 0x14], 1
call fcn.00404aa0
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 0
call fcn.00404aa0
lea ecx, [esi + 0x10]
mov dword [esp + 0x14], 0xffffffff
call fcn.00404c10
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x404d60
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4afeda
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x4ca1d0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea eax, [esp + 0xe]
xor edi, edi
push eax
lea edx, [esp + 0x13]
mov dword [esi + 4], edi
lea ecx, [esi + 0x10]
push edx
mov dword [esi + 8], edi
call fcn.00411610
lea eax, [esp + 0x10]
push eax
lea edx, [esp + 0x15]
lea ecx, [esi + 0x30]
push edx
mov dword [esp + 0x28], edi
call fcn.004045e0
lea eax, [esp + 0x12]
push eax
lea edx, [esp + 0x17]
lea ecx, [esi + 0x50]
push edx
mov byte [esp + 0x28], 1
call fcn.004045e0
mov eax, dword [0x4d3dcc]
mov edx, dword [eax + 0xc]
mov ecx, 0x4d3dcc
mov byte [esp + 0x20], 2
call edx
add eax, 0x10
mov dword [esi + 0x70], eax
mov dword [esi + 0x78], edi
lea ecx, [esi + 0x84]
xor eax, eax
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], 0x32
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov byte [esp + 0x20], 3
mov dword [ecx + 0x14], eax
call fcn.004011c0
cmp eax, edi
jge 0x404e29
push eax
call fcn.004010b0
lea ecx, [esi + 0x9c]
mov byte [esp + 0x20], 4
call fcn.004123a0
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret

Function at 0x405bd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405be9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405c24
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x405c20
lea ebx, [ebx]
cmp esi, eax
jae 0x405c24
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x405c10
cmp esi, eax
jb 0x405c2a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x406000
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
add eax, eax
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406076
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x406045
cmp eax, 2
jne 0x406061
mov eax, dword [esp + 0x14]
test esi, esi
je 0x406070
test eax, eax
je 0x40606b
test al, 1
jne 0x406061
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x406070
pop edi
mov eax, 0xd
pop esi
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc

Function at 0x4063f0
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0x208
mov eax, dword [0x4ca1d0]
xor eax, esp
mov dword [esp + 0x204], eax
mov ecx, dword [esp + 0x210]
push esi
mov esi, dword [esp + 0x210]
lea eax, [esp + 0x218]
push eax
push ecx
push 0xff
lea edx, [esp + 0x14]
push 0x100
push edx
call fcn.0049527b
xor eax, eax
add esp, 0x14
lea ecx, [esp + 8]
mov word [esp + 0x206], ax
mov dword [esp + 4], ecx
cmp dword [esi + 0x260], eax
jne 0x406458
mov edx, ecx
push edx
call fcn.0049529b
add esp, 4
add esi, 0x40
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x40648b
push 0
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [esp + 0x208]
pop esi
xor ecx, esp
call fcn.00493ffe
add esp, 0x208
ret
Function at 0x4064e0
Capabilities:
Create service

Disassembly:
sub esp, 0xa10
mov eax, dword [0x4ca1d0]
xor eax, esp
mov dword [esp + 0xa0c], eax
push ebx
push ebp
push esi
push edi
push 0xf003f
xor edi, edi
push edi
push edi
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x406539
push 1
lea eax, [ebx + 0x40]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x40652e
push eax
mov edi, 1
call ebp
push esi
call ebp
test edi, edi
jne 0x40666c
push 0x104
lea ecx, [esp + 0x16]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4065d3
cmp eax, 0x104
je 0x4065d3
mov edx, 0x22
mov word [esp + 0x10], dx
mov ecx, edx
xor edx, edx
push 0xf003f
push edx
push edx
mov word [esp + eax*2 + 0x1e], cx
mov word [esp + eax*2 + 0x20], dx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x4065ee
push 0x400
lea eax, [esp + 0x220]
push eax
push 0xd80a
call fcn.00405c40
add esp, 0xc
test eax, eax
jne 0x4065bd
push str.Could_not_open_Service_Manager
lea ecx, [esp + 0x220]
push 0x400
push ecx
call fcn.00405b90
add esp, 0xc
push 0
add ebx, 0x40
push ebx
lea edx, [esp + 0x224]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov ecx, dword [esp + 0xa1c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00493ffe
add esp, 0xa10
ret
push 0
push 0
push str.RPCSS
push 0
push 0
lea eax, [esp + 0x24]
push eax
push 1
push 3
push 0x10
push 0xf01ff
lea edi, [ebx + 0x40]
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
jne 0x406666
push esi
call ebp
push 0x400
lea ecx, [esp + 0x220]
push ecx
push 0xd80b
call fcn.00405c40
add esp, 0xc
test eax, eax
jne 0x406656
push 0x4b30d4
lea edx, [esp + 0x220]
push 0x400
push edx
call fcn.00405b90
add esp, 0xc
push 0
push edi
lea eax, [esp + 0x224]
push eax
jmp 0x4065cb
push eax
call ebp
push esi
call ebp
mov eax, 1
jmp 0x4065d5
Function at 0x406680
Capabilities:
Delete service
Stop service

Disassembly:
mov eax, 0x1020
call fcn.00494010
mov eax, dword [0x4ca1d0]
xor eax, esp
mov dword [esp + 0x101c], eax
push ebx
push ebp
push esi
push edi
push 0xf003f
xor ebp, ebp
push ebp
push ebp
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x4066db
push 1
lea ebx, [edi + 0x40]
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x4066d0
push eax
mov ebp, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebp, ebp
jne 0x4066e5
mov eax, 1
jmp 0x406876
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x40673f
push 0x400
lea eax, [esp + 0x30]
push eax
push 0xd80a
call fcn.00405c40
add esp, 0xc
test eax, eax
jne 0x406732
push str.Could_not_open_Service_Manager
lea ecx, [esp + 0x30]
push 0x400
push ecx
call fcn.00494885
push eax
call fcn.004010d0
add esp, 0x10
push 0
push ebx
lea edx, [esp + 0x34]
push edx
jmp 0x40686c
push 0x10020
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x40679d
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x400
lea eax, [esp + 0x30]
push eax
push 0xd80c
call fcn.00405c40
add esp, 0xc
test eax, eax
jne 0x406732
push str.Could_not_open_service
lea ecx, [esp + 0x30]
push 0x400
push ecx
call fcn.00494885
push eax
call fcn.004010d0
add esp, 0x10
push esi
push ebx
lea edx, [esp + 0x34]
push edx
jmp 0x40686c
lea eax, [esp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x40680c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x40680c
cmp eax, 0x425
jne 0x4067ca
cmp dword [esp + 0x14], 3
je 0x40680c
push 0x400
lea ecx, [esp + 0x30]
push ecx
push 0xd80e
call fcn.00405c40
add esp, 0xc
test eax, eax
jne 0x4067fc
push str.Could_not_stop_service
lea edx, [esp + 0x30]
push 0x400
push edx
call fcn.00405b90
add esp, 0xc
push 0
push ebx
lea eax, [esp + 0x34]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebp, eax
call esi
push edi
call esi
test ebp, ebp
jne 0x4066db
push 0x400
lea ecx, [esp + 0x830]
push ecx
push 0xd80d
call fcn.00405c40
add esp, 0xc
test eax, eax
jne 0x406861
push str.Could_not_delete_service
lea edx, [esp + 0x830]
push 0x400
push edx
call fcn.00405b90
add esp, 0xc
push 0
push ebx
lea eax, [esp + 0x834]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov ecx, dword [esp + 0x102c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00493ffe
add esp, 0x1020
ret
Function at 0x407970
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
jne 0x40798c
pop esi
pop ecx
ret
push edi
lea eax, [esp + 8]
push eax
push 0
push esi
push 0x406f40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x4079b4
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x4080d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
mov edx, dword [esp + 8]
push esi
lea ecx, [esp + 0xc]
push ecx
push eax
push edx
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x4080f6
xor eax, eax
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push str.Start
push edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x2c], 4
call edi
cmp dword [esp + 8], 2
jne 0x4081a8
mov esi, dword [esp + 0x18]
mov eax, dword [esi]
sub eax, 0x10
mov dword [esp + 0x14], 0x10000
mov edx, dword [eax + 8]
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, 0x8000
or ecx, edx
jge 0x40815c
push 0x8000
mov ecx, esi
call fcn.00407af0
mov eax, dword [esi]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push eax
push 0
push 0
push str.ImagePath
push edx
call edi
mov edi, eax
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40818d
push ecx
push eax
call fcn.00495384
add esp, 8
test eax, eax
jl 0x4081bb
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x4081bb
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
xor eax, eax
test edi, edi
sete al
mov esi, eax
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ecx
ret 0xc
push 0x80070057
call fcn.004010b0
int3
Function at 0x4096a0
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
xor ebp, ebp
push str.System
mov esi, ecx
push ebp
mov dword [esp + 0x34], esi
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ADVAPI32.dll_OpenEventLogW]
mov ebx, eax
mov dword [esp + 0x1c], ebx
cmp ebx, ebp
jne 0x4096e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetStartTime_error:__d
push esi
call fcn.004089e0
add esp, 0xc
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret
push edi
push 0x10000
call fcn.00492e10
mov edi, eax
add esp, 4
lea eax, [esp + 0x2c]
push eax
push ebx
mov dword [esp + 0x20], edi
mov esi, edi
call dword [sym.imp.ADVAPI32.dll_GetOldestEventLogRecord]
lea ecx, [esp + 0x10]
push ecx
push ebx
mov dword [esp + 0x18], ebp
call dword [sym.imp.ADVAPI32.dll_GetNumberOfEventLogRecords]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
push 0x10000
push edi
push ecx
push 0xa
push ebx
mov dword [esp + 0x40], ebp
call dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
test eax, eax
je 0x409826
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
jmp 0x409750
mov edx, dword [esp + 0x10]
cmp edx, dword [esp + 0x2c]
jbe 0x409822
test ebp, ebp
jne 0x409822
cmp dword [esp + 0x14], ebp
jbe 0x4097ee
test ebp, ebp
jne 0x4097ee
mov eax, dword [esi + 8]
push str.Microsoft_Windows_Kernel_General
lea edi, [esi + 0x38]
push edi
mov dword [esp + 0x18], eax
call ebx
test eax, eax
jne 0x409793
cmp dword [esi + 0x14], 0xc
jne 0x409793
mov ebp, dword [esi + 0xc]
push str.Microsoft_Windows_Kernel_Boot
push edi
call ebx
test eax, eax
jne 0x4097ac
cmp dword [esi + 0x14], 0x12
jne 0x4097ac
test ebp, ebp
jne 0x4097ac
mov ebp, dword [esi + 0xc]
push str.Microsoft_Windows_Wininit
push edi
call ebx
test eax, eax
jne 0x4097be
cmp dword [esi + 0x14], 0xe
je 0x4097d3
push str.Microsoft_Windows_Winlogon
push edi
call ebx
test eax, eax
jne 0x4097da
cmp dword [esi + 0x14], 0x1b59
jne 0x4097da
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x14]
sub eax, dword [esi]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x14], eax
add esi, dword [esi]
test eax, eax
ja 0x409770
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x18]
push eax
push 0x10000
push edi
push ecx
push 0xa
push edx
mov esi, edi
mov dword [esp + 0x38], 0x10000
call dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
test eax, eax
jne 0x409750
mov ebx, dword [esp + 0x20]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
push edi
call fcn.00494228
mov edi, dword [esp + 0x34]
push ebp
push str.GetStartTime_begin:__d
push edi
call fcn.004089e0
mov esi, dword [esp + 0x34]
push esi
push str.GetStartTime_wininit:__d
push edi
call fcn.004089e0
add esp, 0x1c
pop edi
test ebp, ebp
je 0x409869
test esi, esi
je 0x409869
cmp esi, ebp
jbe 0x409869
sub esi, ebp
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x24]
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x409fc0
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x18
push edi
mov edi, ecx
call fcn.00406680
test eax, eax
jne 0x409fdb
mov eax, 0x80004005
pop edi
add esp, 0x18
ret 4
mov ecx, dword [0x4cb544]
push ebx
lea eax, [esp + 0x10]
push eax
push 1
push 0x65
xor ebx, ebx
push ecx
mov dword [esp + 0x20], 0x4b332c
mov dword [esp + 0x24], str.CB4B4EAB_4ABB_4702_BB38_E3A1A1D5D67D
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.00403f80
cmp eax, ebx
jl 0x40a115
push esi
push 0x20006
push str.AppID
push SysReAllocString
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.004015b0
cmp eax, ebx
je 0x40a05d
push eax
call fcn.00401270
mov esi, eax
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebx
je 0x40a052
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
pop edi
add esp, 0x18
ret 4
mov edx, dword [esp + 0x14]
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push str.CB4B4EAB_4ABB_4702_BB38_E3A1A1D5D67D
push edx
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.00401530
mov esi, eax
cmp esi, ebx
je 0x40a0ab
lea ecx, [esp + 0xc]
call fcn.00401f90
lea ecx, [esp + 0x14]
call fcn.00401f90
push esi
call fcn.00401270
add esp, 4
pop esi
pop ebx
pop edi
add esp, 0x18
ret 4
mov eax, dword [esp + 0xc]
push str.LocalService
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp byte [esp + 0x28], bl
je 0x40a100
push 1
lea ecx, [edi + 0x40]
push ecx
push str.LocalService
lea ecx, [esp + 0x18]
call fcn.00401630
mov ecx, edi
call fcn.004064e0
test eax, eax
jne 0x40a100
lea ecx, [esp + 0xc]
call fcn.00401f90
lea ecx, [esp + 0x14]
call fcn.00401f90
pop esi
pop ebx
mov eax, 0x80004005
pop edi
add esp, 0x18
ret 4
lea ecx, [esp + 0xc]
call fcn.00401f90
lea ecx, [esp + 0x14]
call fcn.00401f90
xor eax, eax
pop esi
pop ebx
pop edi
add esp, 0x18
ret 4