Function at 0x404320
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x508706
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x280], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x298]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
lea ecx, [esp + 0x30]
mov dword [esp + 0x10], esi
mov dword [esp + 0x30], 0
call fcn.0040ae80
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.ncrypt.dll
call ebx
push str.bcrypt.dll
mov dword [esp + 0x24], eax
call ebx
push str.cryptnet.dll
mov dword [esp + 0x20], eax
call ebx
push str.bcryptprimitives.dll
mov dword [esp + 0x18], eax
call ebx
lea ecx, [esp + 0x16c]
mov dword [esp + 0x18], eax
call fcn.0042eb40
lea ecx, [esp + 0x4c]
call fcn.0042eb40
cmp dword [esp + 0x50], 6
jae 0x40440d
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x404409
push 0x10
push str.CryptSvc
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x404400
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push edi
call ebx
push esi
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [esp + 0x10]
xorps xmm0, xmm0
mov dword [esp + 0x2c], 0
lea ecx, [esp + 0x24]
movq qword [esp + 0x24], xmm0
call fcn.004045c0
mov dword [esp + 0x2a0], 0
xor eax, eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
mov byte [esp + 0x2a0], 1
lea eax, [esp + 0x34]
push eax
call fcn.00404170
cmp dword [esp + 0x44], 0
je 0x404483
cmp dword [esp + 0x48], 8
lea eax, [esp + 0x34]
cmovae eax, dword [esp + 0x34]
push eax
call ebx
push esi
lea ecx, [esp + 0x28]
call fcn.00402900
mov esi, dword [esp + 0x30]
mov ebx, eax
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esp + 0x10], ebx
test esi, esi
je 0x4044d0
mov ebx, dword [esi]
test ebx, ebx
je 0x4044c4
cmp dword [ebx], 0
setne al
test al, al
je 0x4044c4
mov eax, dword [ebx]
test eax, eax
je 0x4044c4
push eax
call edi
test eax, eax
je 0x4044c4
mov dword [ebx], 0
push ecx
mov ecx, esi
call fcn.0040b0a0
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40450e
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4044e5
call ecx
mov eax, dword [esp + 0x24]
mov dword [eax + 4], 0
mov eax, dword [esp + 0x24]
mov dword [eax + 8], 0
mov esi, dword [esp + 0x24]
mov eax, dword [esi]
test eax, eax
je 0x40450e
push eax
call edi
test eax, eax
je 0x40450e
mov dword [esi], 0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x404519
push eax
call edi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x404524
push eax
call edi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40452f
push eax
call edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40453a
push eax
call edi
mov byte [esp + 0x2a0], 0
cmp dword [esp + 0x48], 8
jb 0x404556
push dword [esp + 0x34]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
mov dword [esp + 0x2a0], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.00404680
mov eax, ebx
mov ecx, dword [esp + 0x298]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.00505b1e
mov esp, ebp
pop ebp
ret 0x10