joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402320
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f34b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x43dfc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0041aee4
push 4
mov dword [ebp - 4], 0
call fcn.0041beff
mov edi, eax
add esp, 4
test edi, edi
je 0x4023a0
call fcn.0041a83e
mov dword [edi], eax
call fcn.0041a5fd
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0041a532
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x402396
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0041a55a
jmp 0x4023a2
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406de0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f34b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x43dfc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0041aee4
push 4
mov dword [ebp - 4], 0
call fcn.0041beff
mov edi, eax
add esp, 4
test edi, edi
je 0x406e60
call fcn.0041a83e
mov dword [edi], eax
call fcn.0041a5fd
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0041a532
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406e56
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0041a55a
jmp 0x406e62
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b340
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f828
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x43dfc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x40b46c
cmp byte [edi + 0x4a], bl
je 0x40b46c
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffff
call edx
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
je 0x40b460
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x40b3c0
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x40b3d8
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
mov edx, dword [esi + 0x18]
push eax
lea eax, [edi + 0x4c]
push eax
call edx
sub eax, 0
je 0x40b401
dec eax
je 0x40b405
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x40b45b
jmp 0x40b467
mov byte [edi + 0x4a], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x40b415
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x40b43e
cmp ebx, 0x10
jae 0x40b424
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0041d5a4
add esp, 0x10
cmp esi, eax
jne 0x40b458
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x4a], 0
je 0x40b464
test esi, esi
jne 0x40b3cc
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.004036e0
jmp 0x40b3c6
lea ecx, [ebp - 0x2c]
call fcn.00403590
xor al, al
jmp 0x40b46e
lea ecx, [ebp - 0x2c]
call fcn.00403590
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041b721
mov esp, ebp
pop ebp
ret

Function at 0x40b8b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x43dfc0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.0041bf80
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
push str._SYSTEMDRIVE_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, 0x104
jbe 0x40b914
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b721
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x40b91d
lea eax, [esi + 0x10]
jmp 0x40b91f
xor eax, eax
push str.IntelCPHS.log
push str.Logs
push 0x431ad8
lea ecx, [ebp - 0x20c]
push ecx
push eax
call fcn.0040a460
add esp, 8
push eax
call fcn.0040a460
add esp, 8
push eax
call fcn.0040a460
add esp, 8
push eax
call fcn.0040a460
add esp, 8
push 0
mov ecx, eax
call fcn.00404a00
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop esi
call fcn.0041b721
mov esp, ebp
pop ebp
ret
Function at 0x40dad0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x43dfc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
mov edx, dword [edi]
or ecx, 0x2001f
push ecx
xor esi, esi
push eax
push edx
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x208], esi
call fcn.0040d020
mov ebx, eax
cmp ebx, esi
je 0x40db4a
mov eax, dword [ebp - 0x210]
cmp eax, esi
je 0x40db35
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b721
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x210]
push esi
push esi
push esi
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x204]
push edx
push esi
push eax
mov dword [ebp - 0x214], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40dbcc
mov edi, edi
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x210]
call fcn.0040dad0
mov ebx, eax
cmp ebx, esi
jne 0x40db24
lea edx, [ebp - 0x220]
push edx
mov edx, dword [ebp - 0x210]
push esi
push esi
push esi
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x204]
push ecx
push esi
push edx
mov dword [ebp - 0x214], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x40db80
mov eax, dword [ebp - 0x210]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x40dbe5
push eax
call ebx
mov dword [ebp - 0x210], esi
mov eax, dword [ebp - 0x218]
push eax
mov ecx, edi
mov dword [ebp - 0x20c], esi
call fcn.0040ced0
mov edi, eax
mov eax, dword [ebp - 0x210]
cmp eax, esi
je 0x40dc08
push eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b721
mov esp, ebp
pop ebp
ret 4
Function at 0x410210
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fd66
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x43dfc0]
xor eax, ebp
mov dword [ebp - 0x14], 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 + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor edx, edx
mov dword [ebp - 0x430], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], edx
mov dword [ebp - 0x418], 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 - 0x420], esi
test esi, esi
jne 0x41028d
call fcn.0040cd10
mov edi, eax
jmp 0x410372
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4102a6
call fcn.0040cd10
jmp 0x410369
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
test ebx, ebx
jne 0x4102c4
call fcn.0040cd10
jmp 0x410369
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x41c], edi
cmp eax, edi
jae 0x4102e5
mov edi, 0x8007000e
jmp 0x41036b
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0040e820
mov dword [ebp - 4], 1
jmp 0x41031d
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x41032e
mov edi, 0x8007000e
jmp 0x41036b
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x410347
call fcn.0040cd10
jmp 0x410369
mov edx, dword [ebp - 0x418]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x418]
push eax
push ecx
lea ecx, [ebp - 0x42c]
call fcn.0040fc70
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0x414]
cmp dword [ebp - 0x418], edx
je 0x410390
lea ecx, [ebp - 0x418]
call fcn.0040d840
jmp 0x410390
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 - 0x14]
xor ecx, ebp
call fcn.0041b721
mov esp, ebp
pop ebp
ret 0x10
Function at 0x410d10
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fe66
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x43dfc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push 1
lea ecx, [ebp - 0x100]
call fcn.00405fb0
mov dword [eax + 0x60], 0x64
add eax, 0x10
push str.ClientMonitor::startMonitor___session_0x
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004041c0
add esp, 8
cmp eax, ebx
jne 0x410d73
xor ecx, ecx
jmp 0x410d7a
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
mov edx, dword [ecx + 0x14]
and edx, 0xfffff9ff
or edx, 0x800
mov dword [ecx + 0x14], edx
push edi
mov ecx, eax
call fcn.0040ff30
cmp eax, ebx
jne 0x410d9c
xor ecx, ecx
jmp 0x410da3
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
mov edx, dword [ecx + 0x14]
and edx, 0xfffff3ff
or edx, 0x200
push eax
mov dword [ecx + 0x14], edx
call fcn.004053f0
add esp, 4
lea ecx, [ebp - 0x98]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c2e0
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], vtable.std::ios_base.0
call fcn.0041aa30
push 0xc
call fcn.0041beff
mov esi, eax
add esp, 8
mov dword [ebp - 0x44], esi
mov dword [ebp - 4], 1
cmp esi, ebx
je 0x410e43
mov ecx, dword [edi + 0x24]
mov eax, dword [edi + 0x64]
push ecx
push ebx
push 0x100000
mov dword [esi], edi
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x410e41
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_sync_with_client_process
lea ecx, [ebp - 0x40]
call fcn.00407a80
push 0x439790
lea ecx, [ebp - 0x40]
push ecx
call fcn.0041b730
mov ebx, esi
push 0
push 4
push ebx
push 0x410910
push 0
push 0
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
jne 0x410e8f
push ebx
call fcn.0041b3b1
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ClientMonitor::startMonitor___CreateThread
lea ecx, [ebp - 0x40]
call fcn.00407a80
push 0x439790
lea edx, [ebp - 0x40]
push edx
call fcn.0041b730
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x410ee3
push ebx
call fcn.0041b3b1
mov edx, dword [edi]
mov eax, dword [edx + 8]
add esp, 4
push edi
call eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x44], str.ClientMonitor::startMonitor___ResumeThread
call fcn.0041b272
push 0x4387c8
lea edx, [ebp - 0x50]
push edx
mov dword [ebp - 0x50], vtable.std::runtime_error.0
call fcn.0041b730
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041b721
mov esp, ebp
pop ebp
ret 4
Function at 0x415d90
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
lea edx, [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push esi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0xc]
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 0x415e02
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x415dd1
cmp eax, 2
jne 0x415dec
mov eax, dword [ebp + 0x10]
test esi, esi
je 0x415dfc
test eax, eax
je 0x415df7
test al, 1
jne 0x415dec
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x415dfc
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x416400
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa10
mov eax, dword [0x43dfc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
xor edi, edi
push edi
push edi
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x416459
push 1
lea eax, [ebx + 0x40]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x41644a
push eax
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
jne 0x416594
push 0x104
lea ecx, [ebp - 0x20e]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4164fa
cmp eax, 0x104
je 0x4164fa
mov edx, 0x22
mov word [ebp - 0x210], dx
mov ecx, edx
xor edx, edx
push 0xf003f
push edx
push edx
mov word [ebp + eax*2 - 0x20e], cx
mov word [ebp + eax*2 - 0x20c], dx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x41650d
push 0x400
lea eax, [ebp - 0xa10]
push eax
push 0xd80a
call fcn.00415a60
add esp, 0xc
test eax, eax
jne 0x4164e5
push str.Could_not_open_Service_Manager
lea ecx, [ebp - 0xa10]
push 0x400
push ecx
call fcn.004157f0
add esp, 0xc
push 0
add ebx, 0x40
push ebx
lea edx, [ebp - 0xa10]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b721
mov esp, ebp
pop ebp
ret
push 0
push 0
push str.RPCSS
push 0
push 0
lea eax, [ebp - 0x210]
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 0x416588
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x400
lea ecx, [ebp - 0xa10]
push ecx
push 0xd80b
call fcn.00415a60
add esp, 0xc
test eax, eax
jne 0x416579
push str.Could_not_start_service
lea edx, [ebp - 0xa10]
push 0x400
push edx
call fcn.004157f0
add esp, 0xc
push 0
push edi
lea eax, [ebp - 0xa10]
push eax
jmp 0x4164f2
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call edi
push esi
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0041b721
mov esp, ebp
pop ebp
ret
Function at 0x4165b0
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.0041dbb0
mov eax, dword [0x43dfc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
mov edi, ecx
mov dword [ebp - 0x1024], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x41661b
push 1
lea ebx, [edi + 0x40]
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x41660a
push eax
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x416610
mov edi, dword [ebp - 0x1024]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
jne 0x416631
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b721
mov esp, ebp
pop ebp
ret
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x41668b
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0xd80a
call fcn.00415a60
add esp, 0xc
test eax, eax
jne 0x41667c
push str.Could_not_open_Service_Manager
lea ecx, [ebp - 0x804]
push 0x400
push ecx
call fcn.004157f0
add esp, 0xc
push 0
push ebx
lea edx, [ebp - 0x804]
push edx
jmp 0x4167c8
push 0x10020
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x4166e9
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0xd80c
call fcn.00415a60
add esp, 0xc
test eax, eax
jne 0x41667c
push str.Could_not_open_service
lea ecx, [ebp - 0x804]
push 0x400
push ecx
call fcn.004157f0
add esp, 0xc
push esi
push ebx
lea edx, [ebp - 0x804]
push edx
jmp 0x4167c8
lea eax, [ebp - 0x1020]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x416762
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x416762
cmp eax, 0x425
jne 0x41671a
cmp dword [ebp - 0x101c], 3
je 0x416762
push 0x400
lea ecx, [ebp - 0x804]
push ecx
push 0xd80e
call fcn.00415a60
add esp, 0xc
test eax, eax
jne 0x416750
push str.Could_not_stop_service
lea edx, [ebp - 0x804]
push 0x400
push edx
call fcn.004157f0
add esp, 0xc
push 0
push ebx
lea eax, [ebp - 0x804]
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 dword [ebp - 0x1024], eax
call esi
push edi
call esi
cmp dword [ebp - 0x1024], 0
jne 0x41661b
push 0x400
lea ecx, [ebp - 0x1004]
push ecx
push 0xd80d
call fcn.00415a60
add esp, 0xc
test eax, eax
jne 0x4167be
push str.Could_not_delete_service
lea edx, [ebp - 0x1004]
push 0x400
push edx
call fcn.004157f0
add esp, 0xc
push 0
push ebx
lea eax, [ebp - 0x1004]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0041b721
mov esp, ebp
pop ebp
ret
Function at 0x416be0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
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 0x416c01
pop esi
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x4167f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x416c28
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x416c30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4306c0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x43dfc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x14], edi
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [edi + 0x10], eax
mov dword [0x43f300], edi
mov dword [edi + 0xc], eax
mov dword [edi + 8], eax
mov dword [ebp - 4], eax
xor ecx, ecx
mov eax, ebx
mov edx, 0xc
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041af27
xor esi, esi
add esp, 4
cmp eax, esi
je 0x416cae
mov edx, ebx
mov ecx, eax
lea esp, [esp]
dec edx
js 0x416cb0
mov dword [ecx + 8], esi
mov dword [ecx + 4], esi
add ecx, 0xc
jmp 0x416ca0
xor eax, eax
mov dword [edi + 0xc], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x416cd1
mov eax, dword [edi + 0xc]
cmp eax, esi
jne 0x416ce9
mov byte [0x43f350], 1
push 0x80004005
call fcn.0040cac0
lea ecx, [ebx + ebx*2]
add ecx, ecx
add ecx, ecx
push ecx
push esi
push eax
call fcn.0041bf80
add esp, 0xc
mov dword [edi + 8], ebx
mov dword [ebp - 0x14], esi
cmp ebx, esi
jle 0x416daa
lea esp, [esp]
lea edx, [ebp + 8]
push edx
mov dword [ebp + 8], 0
call fcn.0041def3
add esp, 4
test eax, eax
jne 0x416d2a
mov eax, dword [ebp + 8]
push 0
mov dword [ebp + 8], eax
call fcn.0041ded2
add esp, 4
cmp eax, 0x50
ja case.0x416d91.1
movzx ecx, byte [eax + 0x416e1c]
jmp dword [ecx*4 + 0x416e0c]
mov eax, dword [edi + 0xc]
add eax, esi
push eax
push 0
push eax
push 0x4168a0
push 0
push 0
call fcn.0041dfdd
mov ecx, dword [edi + 0xc]
mov dword [ecx + esi + 4], eax
mov edx, dword [edi + 0xc]
add esp, 0x18
cmp dword [edx + esi + 4], 0
je 0x416ded
mov eax, dword [ebp + 8]
push eax
call fcn.0041ded2
add esp, 4
cmp eax, 0x50
ja case.0x416d91.1
movzx ecx, byte [eax + 0x416e80]
jmp dword [ecx*4 + 0x416e70]
mov eax, dword [ebp - 0x14]
inc eax
add esi, 0xc
mov dword [ebp - 0x14], eax
cmp eax, ebx
jl 0x416d10
cmp byte [0x43f350], 0
jne 0x416dc3
push str.ATL_CREATE_OBJECT
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov dword [0x43f35c], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x8007000e
call fcn.0040cac0
push 0x80070057
call fcn.0040cac0
lea edx, [ebp + 8]
push edx
mov dword [ebp + 8], 0
call fcn.0041def3
add esp, 4
mov byte [0x43f350], 1
jmp 0x416dc3
Function at 0x417ea0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
call fcn.004165b0
test eax, eax
jne 0x417eb8
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0x20006
xor esi, esi
push str.AppID
push SysReAllocString
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.0040d020
cmp eax, esi
je 0x417f01
push eax
call fcn.0040cd30
mov edi, eax
mov eax, dword [ebp - 0x10]
add esp, 4
cmp eax, esi
je 0x417ef9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp - 0x10]
push 0x20006
push str.11AC3232_E7D7_49CD_ABFE_501700100B3A
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.0040d020
cmp eax, esi
je 0x417f52
push eax
call fcn.0040cd30
mov edi, eax
mov eax, dword [ebp - 0x1c]
add esp, 4
cmp eax, esi
je 0x417f3e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
je 0x417f49
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x1c]
push str.LocalService
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [0x43f30c]
lea eax, [ebp - 0x20]
push eax
push esi
push 0x65
push ecx
mov dword [ebp - 0x20], 0x433650
mov dword [ebp - 0x1c], str.11AC3232_E7D7_49CD_ABFE_501700100B3A
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.00410470
mov dword [ebp - 4], eax
cmp edi, esi
je 0x417f96
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
je 0x417fa1
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret