joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47a9fb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x48e9e2
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x47aa53
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x48ea03
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x47aa49
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x47aa57
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x47b974
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x47b976
mov dword [ebp - 8], eax
inc ebp
clc
add ecx, 0x28
dec edx
jne 0x47b967
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.0047b722
test byte [esi + ecx*2], ah
clc
lea eax, [ebp - 0x58]
push eax
call fcn.0047b732
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.0047b6e7
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x47ba10
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.0047b722
out 0x60, eax
mov ecx, dword ss:[ebp - 0x17af3fbb]
invalid
Function at 0x4015d0
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 0x4015e9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401624
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401620
lea ebx, [ebx]
cmp esi, eax
jae 0x401624
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401610
cmp esi, eax
jb 0x40162a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4019b0
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 0x4019d0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
mov edi, ecx
jne 0x4019e6
push 0x80004005
call fcn.00401000
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 0x401a10
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
mov dword [esp + 4], ecx
jne 0x401a28
push 0x80004005
call fcn.00401000
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x401a35
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 0x402780
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x43d8bc]
xor eax, esp
mov dword [esp + 0x218], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x22c]
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0xc]
mov esi, eax
test esi, esi
jne 0x4027ee
test ecx, ecx
je 0x4027e0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0xc], ecx
je 0x4027fc
test ecx, ecx
je 0x4028a1
push ecx
jmp 0x40289b
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x38]
push edx
push 0
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x40286e
jmp 0x402830
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.00402780
mov edi, eax
test edi, edi
jne 0x4028bd
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x402830
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x402885
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4028a1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0041d071
add esp, 0x21c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4028cc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x4028a3
Function at 0x4065d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x42aea0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x43d8bc]
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 esi, ecx
mov eax, dword [ebp + 0x418]
mov edi, dword [ebp + 0x410]
mov ebx, dword [ebp + 0x414]
mov dword [ebp - 0x14], eax
call dword [0x43e870]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], eax
mov dword [ebp], eax
push 2
push eax
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
mov dword [ebp - 0x18], edi
jne 0x40665d
call fcn.00401700
mov esi, eax
jmp 0x406745
mov ecx, dword [ebp - 0x14]
push ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x406679
call fcn.00401700
jmp 0x40673c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x20], eax
jne 0x406692
call fcn.00401700
jmp 0x40673c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
mov dword [ebp - 0x14], esi
jae 0x4066c8
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x4066b6
lea ecx, [ebp]
call fcn.00402180
lea ecx, [ebp - 0x1c]
call fcn.00402110
mov eax, 0x8007000e
jmp 0x406762
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.004033d0
mov dword [ebp - 4], 1
jmp 0x4066f1
mov ebx, dword [ebp]
test ebx, ebx
jne 0x4066ff
mov esi, 0x8007000e
jmp 0x40673e
call dword [0x43e870]
mov ecx, dword [ebp - 0x20]
push esi
push ebx
push esi
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x406720
call fcn.00401700
jmp 0x40673c
mov edx, dword [ebp]
mov word [edx + eax*2], 0
mov eax, dword [ebp + 0x41c]
mov ecx, dword [ebp]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.004053f0
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x406760
lea ecx, [ebp]
call fcn.00402180
jmp 0x406760
mov eax, esi
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.0041d071
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4075b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x42b02f
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43d8bc]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov eax, dword [0x43fa40]
mov edx, dword [eax + 0xc]
mov ecx, 0x43fa40
call edx
add eax, 0x10
mov dword [esi], eax
mov eax, dword [0x43fa40]
mov edx, dword [eax + 0xc]
xor ebx, ebx
mov ecx, 0x43fa40
mov dword [esp + 0x20], ebx
lea edi, [esi + 4]
call edx
add eax, 0x10
mov dword [edi], eax
mov eax, dword [0x43fa40]
mov edx, dword [eax + 0xc]
mov ecx, 0x43fa40
mov byte [esp + 0x20], 1
lea ebp, [esi + 8]
call edx
add eax, 0x10
mov dword [ebp], eax
mov eax, dword [0x43fa40]
mov edx, dword [eax + 0xc]
mov ecx, 0x43fa40
mov byte [esp + 0x20], 2
call edx
add eax, 0x10
mov dword [esi + 0x28], eax
mov eax, dword [0x43fa40]
mov edx, dword [eax + 0xc]
mov ecx, 0x43fa40
mov byte [esp + 0x20], 3
call edx
add eax, 0x10
mov dword [esi + 0x30], eax
mov eax, dword [0x43fa40]
mov edx, dword [eax + 0xc]
mov ecx, 0x43fa40
mov byte [esp + 0x20], 4
call edx
add eax, 0x10
mov dword [esi + 0x34], eax
push 0x43e8b8
mov ecx, edi
mov byte [esp + 0x24], 5
mov byte [esi + 0xc], bl
mov byte [esi + 0xd], bl
mov byte [esi + 0xe], bl
mov byte [esi + 0xf], bl
mov byte [esi + 0x10], bl
mov byte [esi + 0x11], bl
mov byte [esi + 0x12], bl
mov byte [esi + 0x24], bl
mov byte [esi + 0x2c], bl
mov byte [esi + 0x2d], bl
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x20], 0x7530
call fcn.004012d0
push 0x43e8b8
mov ecx, ebp
call fcn.004012d0
mov byte [esi + 0x1e], bl
mov byte [esi + 0x1f], bl
mov dword [esi + 0x38], 1
mov byte [esi + 0x1c], bl
mov byte [esi + 0x3c], bl
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x408800
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0x208
mov eax, dword [0x43d8bc]
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.0041df51
add esp, 0x14
cmp dword [esi + 0x260], 0
lea eax, [esp + 8]
mov word [esp + 0x206], 0
mov dword [esp + 4], eax
jne 0x408869
mov ecx, eax
push ecx
call fcn.0041dbcb
add esp, 4
add esi, 0x40
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x40889c
push 0
lea edx, [esp + 8]
push edx
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.0041d071
add esp, 0x208
ret
Function at 0x4088c0
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 0x408936
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x408905
cmp eax, 2
jne 0x408921
test esi, esi
mov eax, dword [esp + 0x14]
je 0x408930
test eax, eax
je 0x40892b
test al, 1
jne 0x408921
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x408930
pop edi
mov eax, 0xd
pop esi
ret 0xc
mov word [esi], 0
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc

Function at 0x408cc0
Capabilities:
Create service

Disassembly:
sub esp, 0xa10
mov eax, dword [0x43d8bc]
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 0x408d19
push 1
lea eax, [ebx + 0x40]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x408d0e
push eax
mov edi, 1
call ebp
push esi
call ebp
test edi, edi
jne 0x408e4c
push 0x104
lea ecx, [esp + 0x16]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x408db3
cmp eax, 0x104
je 0x408db3
push 0xf003f
mov ecx, 0x22
push 0
mov word [esp + 0x18], cx
push 0
mov word [esp + eax*2 + 0x1e], cx
mov word [esp + eax*2 + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x408dce
push 0x400
lea edx, [esp + 0x220]
push edx
push 0xd80a
call fcn.004081c0
add esp, 0xc
test eax, eax
jne 0x408d9d
push str.Could_not_open_Service_Manager
lea eax, [esp + 0x220]
push 0x400
push eax
call fcn.00408180
add esp, 0xc
push 0
add ebx, 0x40
push ebx
lea ecx, [esp + 0x224]
push ecx
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.0041d071
add esp, 0xa10
ret
push 0
push 0
push str.RPCSS
push 0
push 0
lea edx, [esp + 0x24]
push edx
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 0x408e46
push esi
call ebp
push 0x400
lea eax, [esp + 0x220]
push eax
push 0xd80b
call fcn.004081c0
add esp, 0xc
test eax, eax
jne 0x408e36
push str.Could_not_start_service
lea ecx, [esp + 0x220]
push 0x400
push ecx
call fcn.00408180
add esp, 0xc
push 0
push edi
lea edx, [esp + 0x224]
push edx
jmp 0x408dab
push eax
call ebp
push esi
call ebp
mov eax, 1
jmp 0x408db5
Function at 0x408e60
Capabilities:
Delete service
Stop service

Disassembly:
mov eax, 0x1020
call fcn.0041d490
mov eax, dword [0x43d8bc]
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 0x408ebb
push 1
lea ebx, [edi + 0x40]
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x408eb0
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 0x408ec5
mov eax, 1
jmp 0x409056
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x408f1f
push 0x400
lea eax, [esp + 0x30]
push eax
push 0xd80a
call fcn.004081c0
add esp, 0xc
test eax, eax
jne 0x408f12
push str.Could_not_open_Service_Manager
lea ecx, [esp + 0x30]
push 0x400
push ecx
call fcn.0041dae5
push eax
call fcn.00401460
add esp, 0x10
push 0
push ebx
lea edx, [esp + 0x34]
push edx
jmp 0x40904c
push 0x10020
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x408f7d
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x400
lea eax, [esp + 0x30]
push eax
push 0xd80c
call fcn.004081c0
add esp, 0xc
test eax, eax
jne 0x408f12
push str.Could_not_open_service
lea ecx, [esp + 0x30]
push 0x400
push ecx
call fcn.0041dae5
push eax
call fcn.00401460
add esp, 0x10
push esi
push ebx
lea edx, [esp + 0x34]
push edx
jmp 0x40904c
lea eax, [esp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x408fec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x408fec
cmp eax, 0x425
jne 0x408faa
cmp dword [esp + 0x14], 3
je 0x408fec
push 0x400
lea ecx, [esp + 0x30]
push ecx
push 0xd80e
call fcn.004081c0
add esp, 0xc
test eax, eax
jne 0x408fdc
push str.Could_not_stop_service
lea edx, [esp + 0x30]
push 0x400
push edx
call fcn.00408180
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 0x408ebb
push 0x400
lea ecx, [esp + 0x830]
push ecx
push 0xd80d
call fcn.004081c0
add esp, 0xc
test eax, eax
jne 0x409041
push str.Could_not_delete_service
lea edx, [esp + 0x830]
push 0x400
push edx
call fcn.00408180
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.0041d071
add esp, 0x1020
ret
Function at 0x4094e0
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]
test eax, eax
mov dword [esi + 0x30], eax
jne 0x4094fc
pop esi
pop ecx
ret
push edi
lea eax, [esp + 8]
push eax
push 0
push esi
push 0x409070
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x409524
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 0x409ff0
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x1c
push edi
mov edi, ecx
call fcn.00408e60
test eax, eax
jne 0x40a00b
mov eax, 0x80004005
pop edi
add esp, 0x1c
ret 4
mov ecx, dword [0x43e880]
push ebx
lea eax, [esp + 0x14]
push eax
push 1
push 0x65
xor ebx, ebx
push ecx
mov dword [esp + 0x24], str.APPID
mov dword [esp + 0x28], 0x431498
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.00406930
cmp eax, ebx
jl 0x40a143
push esi
push 0x20006
push str.AppID
push SysReAllocStringLen
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebx
call fcn.004018c0
cmp eax, ebx
je 0x40a089
push eax
call fcn.00401720
mov esi, eax
mov eax, dword [esp + 0x10]
add esp, 4
cmp eax, ebx
je 0x40a07e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
pop edi
add esp, 0x1c
ret 4
mov esi, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push 0x431498
push esi
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x40a10d
mov eax, dword [esp + 0x10]
push str.LocalService
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp byte [esp + 0x2c], bl
je 0x40a12e
push 1
lea ecx, [edi + 0x40]
push ecx
push str.LocalService
lea ecx, [esp + 0x1c]
call fcn.004019d0
mov ecx, edi
call fcn.00408cc0
test eax, eax
jne 0x40a12e
lea ecx, [esp + 0x10]
call fcn.00402760
lea ecx, [esp + 0xc]
call fcn.00402760
pop esi
pop ebx
mov eax, 0x80004005
pop edi
add esp, 0x1c
ret 4
push eax
call fcn.00401720
add esp, 4
cmp esi, ebx
mov edi, eax
je 0x40a123
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov eax, edi
pop edi
add esp, 0x1c
ret 4
lea ecx, [esp + 0x10]
call fcn.00402760
lea ecx, [esp + 0xc]
call fcn.00402760
xor eax, eax
pop esi
pop ebx
pop edi
add esp, 0x1c
ret 4

Function at 0x40a160
Capabilities:
Delete registry value

Disassembly:
sub esp, 8
call fcn.00408e60
test eax, eax
jne 0x40a175
mov eax, 0x80004005
add esp, 8
ret
push ebx
lea eax, [esp + 8]
push eax
push 0x20006
xor ebx, ebx
push ebx
push str.AppID
push SysReAllocStringLen
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40a1ed
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0x20006
push 0x431498
push eax
lea ecx, [esp + 0x1c]
mov ebp, eax
mov dword [esp + 0x1c], ebx
call fcn.004018c0
cmp eax, ebx
je 0x40a1fb
push eax
call fcn.00401720
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, ebx
je 0x40a1dc
push eax
call edi
cmp ebp, ebx
je 0x40a1e3
push ebp
call edi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push eax
call fcn.00401720
add esp, 4
pop ebx
add esp, 8
ret
mov esi, dword [esp + 0x10]
push str.LocalService
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push ebx
call fcn.00409ed0
test esi, esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
je 0x40a220
push esi
call edi
test ebp, ebp
je 0x40a227
push ebp
call edi
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 8
ret
Function at 0x40f1e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x42bcd4
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x43d8bc]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.00401100
add eax, 0x10
mov dword [esi], eax
mov eax, dword [edi + 4]
sub eax, 0x10
push eax
mov dword [esp + 0x20], 0
call fcn.00401100
add eax, 0x10
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
sub eax, 0x10
push eax
mov byte [esp + 0x24], 1
call fcn.00401100
add eax, 0x10
mov dword [esi + 8], eax
movzx eax, byte [edi + 0xc]
mov byte [esi + 0xc], al
movzx ecx, byte [edi + 0xd]
mov byte [esi + 0xd], cl
movzx edx, byte [edi + 0xe]
mov byte [esi + 0xe], dl
movzx eax, byte [edi + 0xf]
mov byte [esi + 0xf], al
movzx ecx, byte [edi + 0x10]
mov byte [esi + 0x10], cl
movzx edx, byte [edi + 0x11]
mov byte [esi + 0x11], dl
movzx eax, byte [edi + 0x12]
mov byte [esi + 0x12], al
mov ecx, dword [edi + 0x14]
mov dword [esi + 0x14], ecx
mov edx, dword [edi + 0x18]
mov dword [esi + 0x18], edx
movzx eax, byte [edi + 0x1c]
mov byte [esi + 0x1c], al
movzx ecx, byte [edi + 0x1d]
mov byte [esi + 0x1d], cl
movzx edx, byte [edi + 0x1e]
mov byte [esi + 0x1e], dl
movzx eax, byte [edi + 0x1f]
mov byte [esi + 0x1f], al
mov ecx, dword [edi + 0x20]
mov dword [esi + 0x20], ecx
movzx edx, byte [edi + 0x24]
mov byte [esi + 0x24], dl
mov eax, dword [edi + 0x28]
sub eax, 0x10
push eax
mov byte [esp + 0x28], 2
call fcn.00401100
add eax, 0x10
mov dword [esi + 0x28], eax
movzx eax, byte [edi + 0x2c]
mov byte [esi + 0x2c], al
movzx ecx, byte [edi + 0x2d]
mov byte [esi + 0x2d], cl
mov eax, dword [edi + 0x30]
sub eax, 0x10
push eax
mov byte [esp + 0x2c], 3
call fcn.00401100
add eax, 0x10
mov dword [esi + 0x30], eax
mov eax, dword [edi + 0x34]
sub eax, 0x10
push eax
mov byte [esp + 0x30], 4
call fcn.00401100
add esp, 0x18
add eax, 0x10
mov dword [esi + 0x34], eax
mov edx, dword [edi + 0x38]
mov dword [esi + 0x38], edx
movzx eax, byte [edi + 0x3c]
mov byte [esi + 0x3c], al
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4