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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x5130
call fcn.1001a2d0
mov eax, dword [0x10086ba0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x5130], ecx
mov dword [ebp - 0x5120], 0
push 0x1006fafa
lea eax, [ebp - 0x2890]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x1006fafb
lea ecx, [ebp - 0x5098]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x90], 1
mov dword [ebp - 0x5120], 0
cmp dword [ebp - 0x90], 1
jne 0x1005c2dc
lea edx, [ebp - 0x88]
push edx
lea eax, [ebp - 0x5118]
push eax
mov ecx, dword [ebp - 0x5120]
push ecx
mov ecx, dword [ebp - 0x5130]
call fcn.1005bf50
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 1
jne 0x1005c2d7
cmp dword [ebp - 0x5120], 0
jle 0x1005c236
mov edx, dword [ebp - 0x5120]
imul edx, edx, 0x2e
add edx, dword [ebp - 0x5120]
mov byte [ebp + edx - 0x2891], 0
mov eax, dword [ebp - 0x5120]
imul eax, eax, 0x35
add eax, dword [ebp - 0x5120]
mov byte [ebp + eax - 0x5099], 0
mov dword [ebp - 0x5128], 0
jmp 0x1005c251
mov ecx, dword [ebp - 0x5128]
add ecx, 1
mov dword [ebp - 0x5128], ecx
cmp dword [ebp - 0x5128], 0x2e
jge 0x1005c27f
mov edx, dword [ebp - 0x5120]
imul edx, edx, 0x2f
add edx, dword [ebp - 0x5128]
mov eax, dword [ebp - 0x5128]
mov cl, byte [ebp + eax - 0x5118]
mov byte [ebp + edx - 0x2890], cl
jmp 0x1005c242
mov dword [ebp - 0x5124], 0
jmp 0x1005c29a
mov edx, dword [ebp - 0x5124]
add edx, 1
mov dword [ebp - 0x5124], edx
cmp dword [ebp - 0x5124], 0x35
jge 0x1005c2c8
mov eax, dword [ebp - 0x5120]
imul eax, eax, 0x36
add eax, dword [ebp - 0x5124]
mov ecx, dword [ebp - 0x5124]
mov dl, byte [ebp + ecx - 0x88]
mov byte [ebp + eax - 0x5098], dl
jmp 0x1005c28b
mov eax, dword [ebp - 0x5120]
add eax, 1
mov dword [ebp - 0x5120], eax
jmp 0x1005c1bf
mov ecx, dword [ebp - 0x5120]
imul ecx, ecx, 0x2e
add ecx, dword [ebp - 0x5120]
mov byte [ebp + ecx - 0x2891], 0
mov edx, dword [ebp - 0x5120]
imul edx, edx, 0x2e
add edx, dword [ebp - 0x5120]
mov byte [ebp + edx - 0x2890], 0
mov eax, dword [ebp - 0x5120]
imul eax, eax, 0x35
add eax, dword [ebp - 0x5120]
mov byte [ebp + eax - 0x5099], 0
mov ecx, dword [ebp - 0x5120]
imul ecx, ecx, 0x35
add ecx, dword [ebp - 0x5120]
mov byte [ebp + ecx - 0x5098], 0
lea edx, [ebp - 0x2898]
push edx
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesSjyPkt
push reloc.RtlIhvOid.dll_Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x511c], eax
cmp dword [ebp - 0x511c], 0
jne 0x1005c476
push 0
lea eax, [ebp - 0x8c]
push eax
push 0
push 0xf003f
push 0
push 0x1006fb1d
push 0
push 0x1007aa40
mov ecx, dword [ebp - 0x2898]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x511c], eax
cmp dword [ebp - 0x511c], 0
jne 0x1005c422
mov edx, dword [ebp - 0x5120]
imul edx, edx, 0x30
mov dword [ebp - 0x512c], edx
mov eax, dword [ebp - 0x512c]
push eax
lea ecx, [ebp - 0x2890]
push ecx
push 7
push 0
push str.Bind
mov edx, dword [ebp - 0x8c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x511c], eax
mov eax, dword [ebp - 0x5120]
imul eax, eax, 0x37
mov dword [ebp - 0x512c], eax
mov ecx, dword [ebp - 0x512c]
push ecx
lea edx, [ebp - 0x5098]
push edx
push 7
push 0
push 0x1007aa50
mov eax, dword [ebp - 0x8c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x511c], eax
mov ecx, dword [ebp - 0x8c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
lea edx, [ebp - 0x2894]
push edx
push 0
push 0xf003f
push 0
push 0x1006fb1e
push 0
push str.Parameters
mov eax, dword [ebp - 0x2898]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x511c], eax
cmp dword [ebp - 0x511c], 0
jne 0x1005c469
mov ecx, dword [ebp - 0x2894]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x2898]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001362b
mov esp, ebp
pop ebp
ret