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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x33c
mov eax, dword [0x45563c]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x20c], 0
push 0x103
push 0
lea eax, [ebp - 0x20b]
push eax
call fcn.00417850
add esp, 0xc
mov byte [ebp - 0x310], 0
push 0x103
push 0
lea ecx, [ebp - 0x30f]
push ecx
call fcn.00417850
add esp, 0xc
mov byte [ebp - 0x108], 0
push 0x103
push 0
lea edx, [ebp - 0x107]
push edx
call fcn.00417850
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push 0x104
lea ecx, [ebp - 0x310]
push ecx
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x20c]
push edx
call fcn.004123b4
add esp, 0x24
push 0x2d
lea eax, [ebp - 0x310]
push eax
call fcn.0040cbb0
add esp, 8
mov dword [ebp - 0x318], eax
cmp dword [ebp - 0x318], 0
je 0x405a99
mov ecx, dword [ebp - 0x318]
add ecx, 1
mov dword [ebp - 0x318], ecx
push 0x2d
mov edx, dword [ebp - 0x318]
push edx
call fcn.0040cbb0
add esp, 8
mov dword [ebp - 0x328], eax
cmp dword [ebp - 0x328], 0
je 0x405a99
mov eax, dword [ebp - 0x328]
cmp eax, dword [ebp - 0x318]
jbe 0x405a99
mov dword [ebp - 0x324], 0
mov dword [ebp - 0x32c], 0
push 0x5b
mov ecx, dword [ebp - 0x318]
push ecx
call fcn.0040cbb0
add esp, 8
mov dword [ebp - 0x324], eax
cmp dword [ebp - 0x324], 0
je 0x405929
push 0x5d
mov edx, dword [ebp - 0x324]
push edx
call fcn.0040cbb0
add esp, 8
mov dword [ebp - 0x32c], eax
cmp dword [ebp - 0x324], 0
je 0x4059d8
cmp dword [ebp - 0x32c], 0
je 0x4059d8
mov eax, dword [ebp - 0x324]
mov byte [eax], 0
mov ecx, dword [ebp - 0x328]
mov byte [ecx], 0
mov edx, dword [ebp - 0x32c]
add edx, 1
push edx
mov eax, dword [ebp - 0x318]
push eax
push 0x44cec0
push 0x104
lea ecx, [ebp - 0x108]
push ecx
call fcn.00411ef6
add esp, 0x14
lea edx, [ebp - 0x108]
mov dword [ebp - 0x320], edx
mov eax, dword [ebp - 0x320]
add eax, 1
mov dword [ebp - 0x33c], eax
mov ecx, dword [ebp - 0x320]
mov dl, byte [ecx]
mov byte [ebp - 0x319], dl
add dword [ebp - 0x320], 1
cmp byte [ebp - 0x319], 0
jne 0x40599a
mov eax, dword [ebp - 0x320]
sub eax, dword [ebp - 0x33c]
mov dword [ebp - 0x338], eax
mov ecx, dword [ebp - 0x338]
mov dword [ebp - 0x330], ecx
jmp 0x405a07
mov edx, dword [ebp - 0x328]
sub edx, dword [ebp - 0x318]
mov dword [ebp - 0x330], edx
mov eax, dword [ebp - 0x330]
push eax
mov ecx, dword [ebp - 0x318]
push ecx
lea edx, [ebp - 0x108]
push edx
call fcn.0040b520
add esp, 0xc
mov dword [ebp - 0x314], 0
mov dword [ebp - 0x334], 0
push 0
lea eax, [ebp - 0x314]
push eax
push 0
push 0x20206
push 0
push 0
push 0
push 0x44cec8
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x334], eax
cmp dword [ebp - 0x334], 0
jne 0x405a99
mov ecx, dword [ebp - 0x330]
add ecx, 1
push ecx
lea edx, [ebp - 0x108]
push edx
push 1
push 0
push 0x44cef8
mov eax, dword [ebp - 0x314]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x405a8c
mov ecx, dword [ebp - 0x314]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x405a9b
mov edx, dword [ebp - 0x314]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411455
mov esp, ebp
pop ebp
ret