Function at 0x1000daf0
Capabilities:
Get system information on windows
Print debug messages
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101eeba0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x1028dc74]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push 8
mov dword [ebp - 4], 0
call fcn.1018ea15
add esp, 4
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1000db44
mov dword [eax], vtable.CRegistry.0
mov dword [eax + 4], reloc.WS2_32.dll_bind
jmp 0x1000db46
xor eax, eax
mov dword [ebx + 0x79c], eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x40]
cmp ax, 9
je 0x1000db6b
cmp ax, 6
mov eax, str.SOFTWAREMicrosoftWindowsCurrentVersion_nsocksPath_
jne 0x1000db70
mov eax, str.SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersion_nsocksPath_
mov esi, dword [ebx + 0x79c]
lea ecx, [ebp - 0x14]
push ecx
push 0xf003f
push 0
push eax
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
or ebx, 0xffffffff
test eax, eax
jne 0x1000dd2e
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov dword [esi + 4], eax
push dword [ebp + 8]
call fcn.10009310
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x1000dbb2
mov edx, dword [edi]
jmp 0x1000dbb4
xor edx, edx
mov eax, dword [ebp - 0x10]
mov ecx, edx
mov esi, dword [eax + 0x79c]
lea eax, [ecx + 2]
mov dword [ebp - 0x14], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000dbc5
sub ecx, dword [ebp - 0x14]
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push 1
push 0
push str.strPath
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov eax, dword [0x10288004]
mov dword [ebp - 0x14], eax
je 0x1000dc4e
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1026a52c
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.100018b0
add esp, 0x10
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff4
cmp ecx, dword [section..data]
je 0x1000dc3e
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1000dc3e
push ecx
call fcn.1002139c
add esp, 4
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 4
jmp 0x1000dca2
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1026a540
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.100018b0
add esp, 0x10
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff4
cmp ecx, dword [section..data]
je 0x1000dc94
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1000dc94
push ecx
call fcn.1002139c
add esp, 4
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 7
add esi, 0xfffffff4
cmp esi, dword [section..data]
je 0x1000dcc1
mov eax, ebx
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x1000dcc1
push esi
call fcn.1002139c
add esp, 4
mov esi, dword [ebp - 0x10]
mov eax, dword [esi + 0x79c]
mov dword [ebp - 0x1c], eax
mov eax, dword [eax + 4]
test eax, eax
je 0x1000dce5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], 0
mov byte [ebp - 4], 0
test edi, edi
je 0x1000dd31
mov eax, ebx
lock xadd dword [edi + 8], eax
dec eax
jne 0x1000dd31
mov eax, dword [edi]
test eax, eax
je 0x1000dd0a
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x1000dd21
push eax
call fcn.1018ede5
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
call fcn.1018edab
add esp, 8
jmp 0x1000dd31
mov esi, dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esi + 0x79c]
test ecx, ecx
je 0x1000dd54
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x79c], 0
mov dword [ebp - 4], 8
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
cmp eax, dword [section..data]
je 0x1000dd7b
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x1000dd7b
push eax
call fcn.1002139c
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4