Function at 0x10001710
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 0x10001a1e
sub eax, 1
jne 0x10001a3d
lea eax, [esp + 0x18]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10001a3d
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x1000f2bc], eax
test eax, eax
je 0x10001a3d
push 0
push 0
call dword [sym.imp.USER32.dll_KillTimer]
push 0x10007204
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, str.Gmphkd_
xor ecx, ecx
lea esi, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10001790
sub eax, esi
mov bl, 7
test eax, eax
jle 0x100017bd
nop
add byte [ecx + str.Gmphkd_], bl
mov eax, str.Gmphkd_
inc ecx
lea esi, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100017b0
sub eax, esi
cmp ecx, eax
jl 0x100017a0
mov eax, str.PbgGmEblgl
xor ecx, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100017c7
sub eax, esi
test eax, eax
jle 0x100017f0
add byte [ecx + str.PbgGmEblgl], bl
mov eax, str.PbgGmEblgl
inc ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100017e3
sub eax, esi
cmp ecx, eax
jl 0x100017d4
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 0x10001800
sub eax, esi
test eax, eax
jle 0x1000182d
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 0x10001820
sub eax, esi
cmp ecx, eax
jl 0x10001810
xor eax, eax
nop
mov cl, byte [eax + str.Lh_mpZk]
mov byte [eax + 0x1000f2c0], cl
inc eax
test cl, cl
jne 0x10001830
mov edi, 0x1000f2c0
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10001847
mov bx, word [0x10007208]
mov eax, str.PbgGmEblgl
mov word [edi], bx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10001860
mov edi, 0x1000f2c0
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10001871
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, 0x1000f2c0
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10001890
mov eax, str.Gmphkd_
mov word [edi], bx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100018a2
mov edi, 0x1000f2c0
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100018b3
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]
push str.IsWow64Process
xor edi, edi
push str.kernel32
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, edi
je 0x1000190c
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
jne 0x1000190c
mov ebx, 1
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10001911
mov ebx, 1
push 0x1000f284
cmp dword [esp + 0x14], ebx
jne 0x10001923
push 0xf013f
jmp 0x10001928
push 0xf003f
push edi
push 0x1000f2c0
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x10007204
call esi
mov ecx, dword [0x1000f284]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push edi
push edi
push 0x10008074
push ecx
mov dword [esp + 0x2c], 4
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x10]
mov dword [0x1000f2f8], eax
cmp eax, 0x58
jne 0x10001985
push 0x10007204
call esi
cmp dword [0x1000f2f8], 0x63
jne 0x100019b7
call fcn.10005b40
test eax, eax
jne 0x100019b7
push 0x10007204
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1a0]
xor ecx, esp
call fcn.10005cdc
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [0x1000f2bc]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [0x1000f284]
push 4
lea eax, [esp + 0x18]
push eax
push 4
push edi
push 0x10008074
push ecx
mov dword [0x1000f2f8], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [0x1000f2bc]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0x10007204
call esi
call fcn.10002260
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1a0]
xor ecx, esp
call fcn.10005cdc
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x1000f2bc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x1000f284]
push ecx
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.10005cdc
mov esp, ebp
pop ebp
ret 0xc