Function at 0x452a30
Capabilities:
Create service
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e7a0
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x58fa2c]
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 ebx, ecx
mov dword [ebp - 0x230], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x240], eax
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x220], 0
xor edi, edi
mov dword [ebp - 0x22c], edi
mov dword [ebp - 4], edi
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x452ad1
cmp byte [ecx], 0
je 0x452ad1
lea edx, [ebp - 0x218]
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x452ac3
jmp 0x452ae5
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xf003f
push 0
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x234], eax
test eax, eax
je 0x452eab
or esi, 0x10
mov dword [ebp - 0x224], esi
mov esi, dword [ebp - 0x228]
push esi
mov ecx, ebx
call fcn.00452f00
test eax, eax
je 0x452b38
push esi
mov ecx, ebx
call fcn.00453e90
push 0x7d0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
call edi
jmp 0x452b3e
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 1
mov dword [ebp - 0x244], esi
cmp esi, 5
jg 0x452e88
push dword [ebp - 0x238]
push dword [ebp - 0x23c]
push dword [ebx + 0x1c8]
push 0
push 0
lea eax, [ebp - 0x218]
push eax
push 1
push dword [ebp - 0x240]
push dword [ebp - 0x224]
push 0xf01ff
lea eax, [ebx + 0x44]
push eax
lea eax, [ebx + 4]
push eax
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 0x248], eax
test eax, eax
jne 0x452baa
push 0xbb8
call edi
inc esi
jmp 0x452b43
push 0x100
push 0
lea eax, [ebp - 0x114]
push eax
call fcn.004b8570
add esp, 0xc
movups xmm0, xmmword [str.SYSTEMCurrentControlSetServicesEventLogApplication_]
movups xmmword [ebp - 0x114], xmm0
movups xmm0, xmmword [0x51c2e8]
movups xmmword [ebp - 0x104], xmm0
movups xmm0, xmmword [0x51c2f8]
movups xmmword [ebp - 0xf4], xmm0
movq xmm0, qword [0x51c308]
movq qword [ebp - 0xe4], xmm0
add ebx, 4
mov edx, ebx
mov esi, ebx
mov al, byte [edx]
inc edx
test al, al
jne 0x452c01
sub edx, esi
lea edi, [ebp - 0x114]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x452c11
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x452c58
lea ecx, [ebp - 0x220]
push ecx
push 1
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x114]
push ecx
push reloc.WS2_32.dll_bind
push eax
call fcn.0048cb10
add esp, 0x18
jmp 0x452c71
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x114]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x452e67
lea ecx, [ebp - 0x218]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x452c82
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x218]
push eax
push 2
push 0
push str.EventMessageFile
push dword [ebp - 0x21c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call edi
mov esi, eax
test esi, esi
jne 0x452d10
lea ecx, [ebp - 0x218]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x452cc0
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x218]
push eax
push 2
push 0
push str.ParameterMessageFile
push dword [ebp - 0x21c]
call edi
mov esi, eax
test esi, esi
jne 0x452d10
mov dword [ebp - 0x224], 7
push 4
lea eax, [ebp - 0x224]
push eax
push 4
push esi
push str.TypesSupported
push dword [ebp - 0x21c]
call edi
mov esi, eax
push dword [ebp - 0x21c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x452d33
push eax
call edi
xor eax, eax
mov dword [ebp - 0x220], eax
test esi, esi
jne 0x452e6d
mov edx, dword [ebp - 0x230]
add edx, 0x84
cmp byte [edx], 0
je 0x452e45
movups xmm0, xmmword [str.SYSTEMCurrentControlSetServices_]
movups xmmword [ebp - 0x114], xmm0
movups xmm0, xmmword [0x51c35c]
movups xmmword [ebp - 0x104], xmm0
mov ax, word [0x51c36c]
mov word [ebp - 0xf4], ax
mov al, byte [0x51c36e]
mov byte [ebp - 0xf2], al
mov esi, ebx
mov al, byte [ebx]
inc ebx
test al, al
jne 0x452d86
sub ebx, esi
lea edi, [ebp - 0x114]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x452d96
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebx, dword [ebp - 0x228]
test ebx, ebx
je 0x452dee
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x452dc0
sub ecx, esi
push 1
push 1
lea eax, [ecx + 1]
push eax
push edx
push str.Description
lea eax, [ebp - 0x114]
push eax
push reloc.WS2_32.dll_bind
push ebx
call fcn.0048cde0
add esp, 0x20
jmp 0x452e45
push 0
lea eax, [ebp - 0x224]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x114]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x452e45
mov esi, dword [ebp - 0x230]
add esi, 0x84
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push 1
push 0
push str.Description
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x22c], 1
push 0
push 0
push 0
push 0x40020102
push 4
mov ecx, dword [ebp - 0x230]
call fcn.00452ff0
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x452e78
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x248]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
jmp 0x452e98
push 1
call fcn.0048c5d0
add esp, 4
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x452ea5
push eax
call esi
mov edi, dword [ebp - 0x22c]
mov dword [ebp - 4], 0xffffffff
mov eax, edi
jmp 0x452eda
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.004a4566
mov esp, ebp
pop ebp
ret 0x18