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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x33c
mov eax, dword [section..data]
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.00405dd0
add esp, 0xc
mov byte [ebp - 0x310], 0
push 0x103
push 0
lea ecx, [ebp - 0x30f]
push ecx
call fcn.00405dd0
add esp, 0xc
mov byte [ebp - 0x108], 0
push 0x103
push 0
lea edx, [ebp - 0x107]
push edx
call fcn.00405dd0
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.00401ea3
add esp, 0x24
push 0x2d
lea eax, [ebp - 0x310]
push eax
call fcn.00401b30
add esp, 8
mov dword [ebp - 0x318], eax
cmp dword [ebp - 0x318], 0
je 0x4017c9
mov ecx, dword [ebp - 0x318]
add ecx, 1
mov dword [ebp - 0x318], ecx
push 0x2d
mov edx, dword [ebp - 0x318]
push edx
call fcn.00401b30
add esp, 8
mov dword [ebp - 0x328], eax
cmp dword [ebp - 0x328], 0
je 0x4017c9
mov eax, dword [ebp - 0x328]
cmp eax, dword [ebp - 0x318]
jbe 0x4017c9
mov dword [ebp - 0x324], 0
mov dword [ebp - 0x32c], 0
push 0x5b
mov ecx, dword [ebp - 0x318]
push ecx
call fcn.00401b30
add esp, 8
mov dword [ebp - 0x324], eax
cmp dword [ebp - 0x324], 0
je 0x401659
push 0x5d
mov edx, dword [ebp - 0x324]
push edx
call fcn.00401b30
add esp, 8
mov dword [ebp - 0x32c], eax
cmp dword [ebp - 0x324], 0
je 0x401708
cmp dword [ebp - 0x32c], 0
je 0x401708
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 str._s_s
push 0x104
lea ecx, [ebp - 0x108]
push ecx
call fcn.004021db
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 0x4016ca
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 0x401737
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.00401b10
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 0x40eebc
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x334], eax
cmp dword [ebp - 0x334], 0
jne 0x4017c9
mov ecx, dword [ebp - 0x330]
add ecx, 1
push ecx
lea edx, [ebp - 0x108]
push edx
push 1
push 0
push 0x40eeec
mov eax, dword [ebp - 0x314]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4017bc
mov ecx, dword [ebp - 0x314]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x4017cb
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.00401b65
mov esp, ebp
pop ebp
ret