Function at 0x10005d70
Capabilities:
Check mutex on windows
Initialize winsock library
Print debug messages
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a4
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1a0], eax
mov eax, dword [ebp + 0xc]
sub eax, 0
push ebx
push esi
push edi
je 0x10006080
sub eax, 1
jne 0x100060a0
lea eax, [esp + 0x18]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x100060a0
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x10064e20], eax
test eax, eax
je 0x100060a0
mov eax, str.lrl_
xor ecx, ecx
lea esi, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10005de0
sub eax, esi
mov bl, 7
test eax, eax
jle 0x10005e0d
nop
add byte [ecx + str.lrl_], bl
mov eax, str.lrl_
inc ecx
lea esi, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10005e00
sub eax, esi
cmp ecx, eax
jl 0x10005df0
mov eax, str.pbggmphkd
xor ecx, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10005e17
sub eax, esi
test eax, eax
jle 0x10005e40
add byte [ecx + str.pbggmphkd], bl
mov eax, str.pbggmphkd
inc ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10005e33
sub eax, esi
cmp ecx, eax
jl 0x10005e24
mov eax, str.Lh_mpZk
xor ecx, ecx
lea esi, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10005e50
sub eax, esi
test eax, eax
jle 0x10005e7d
lea ecx, [ecx]
add byte [ecx + str.Lh_mpZk], bl
mov eax, str.Lh_mpZk
inc ecx
lea esi, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10005e70
sub eax, esi
cmp ecx, eax
jl 0x10005e60
xor eax, eax
nop
mov cl, byte [eax + str.Lh_mpZk]
mov byte [eax + 0x10064e40], cl
inc eax
test cl, cl
jne 0x10005e80
mov edi, 0x10064e40
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10005e97
mov bx, word [0x10008218]
mov eax, str.pbggmphkd
mov word [edi], bx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10005eb0
mov edi, 0x10064e40
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10005ec1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x10064e40
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10005ee0
mov eax, str.lrl_
mov word [edi], bx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10005ef2
mov edi, 0x10064e40
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10005f03
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push str.IsWow64Process
and ecx, 3
push str.kernel32
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, eax
test esi, esi
je 0x10005f60
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
jne 0x10005f60
mov ebx, 1
push ebx
call edi
jmp 0x10005f65
mov ebx, 1
push 0x10064de4
cmp dword [esp + 0x14], ebx
jne 0x10005f77
push 0xf013f
jmp 0x10005f7c
push 0xf003f
push 0
push 0x10064e40
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x1000821c
call esi
mov ecx, dword [0x10064de4]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0x100090f8
push ecx
mov dword [esp + 0x2c], 4
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x10]
push ebx
mov dword [0x10064e78], edx
call edi
cmp dword [0x10064e78], 0x58
jne 0x10005fe8
push 0x1000821c
call esi
cmp dword [0x10064e78], 0x63
jne 0x1000601a
call fcn.10006ec0
test eax, eax
jne 0x1000601a
push 0x1000821c
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1a0]
xor ecx, esp
call fcn.10007058
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x10064e20]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [0x10064de4]
push 4
lea ecx, [esp + 0x18]
push ecx
push 4
push 0
push 0x100090f8
push edx
mov dword [0x10064e78], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [0x10064e20]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0x1000821c
call esi
call fcn.10001860
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1a0]
xor ecx, esp
call fcn.10007058
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [0x10064e20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x10064de4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x1ac]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.10007058
mov esp, ebp
pop ebp
ret 0xc