Function at 0x426140
Capabilities:
Get hostname
Get session user name
Initialize winsock library
Print debug messages
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c900e
mov eax, dword fs:[0]
push eax
sub esp, 0xd7c
mov eax, dword [0x50545c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x114], 0
push 0xfe
push 0
lea eax, [ebp - 0x113]
push eax
call fcn.004931a0
add esp, 0xc
call fcn.0044fb81
push eax
lea ecx, [ebp - 0x4b8]
call fcn.00412940
mov dword [ebp - 4], 0
mov ecx, 2
mov word [ebp - 0x4bc], cx
lea edx, [ebp - 0x2a4]
push edx
movzx eax, word [ebp - 0x4bc]
push eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x42626a
push 0xff
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x42623b
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x658]
call fcn.00412370
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x658]
push eax
push 0x4d2d7c
lea ecx, [ebp - 0x4b8]
push ecx
call fcn.00413630
add esp, 0xc
lea ecx, [ebp - 0x4b8]
call fcn.004274a0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x658]
sub edx, 0x10
mov dword [ebp - 0xcc8], edx
mov ecx, dword [ebp - 0xcc8]
call fcn.004029d0
jmp 0x426262
mov dword [ebp - 0xc8c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4b8]
call fcn.004129d0
mov eax, dword [ebp - 0xc8c]
jmp 0x426adb
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x426291
mov dword [ebp - 0xc90], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4b8]
call fcn.004129d0
mov eax, dword [ebp - 0xc90]
jmp 0x426adb
xor eax, eax
mov word [ebp - 0x654], ax
push 0x18e
push 0
lea ecx, [ebp - 0x652]
push ecx
call fcn.004931a0
add esp, 0xc
lea edx, [ebp - 0x4c0]
push edx
call fcn.00425f70
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x4c0]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0xcd4], ecx
xor edx, edx
cmp dword [ebp - 0xcd4], 0
sete dl
movzx eax, dl
test eax, eax
je 0x426302
mov ecx, dword [ebp - 0x4c0]
push ecx
push str.Volatile_Environment
lea edx, [ebp - 0x654]
push edx
call fcn.00494329
add esp, 0xc
jmp 0x42631d
mov eax, dword [ebp - 0x4c0]
push eax
push str._sVolatile_Environment
lea ecx, [ebp - 0x654]
push ecx
call fcn.00494329
add esp, 0xc
lea edx, [ebp - 0x654]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 0x4b0], 0
mov dword [ebp - 0x4a8], 0
mov eax, dword [ebp - 0x4c0]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0xcd8], ecx
xor edx, edx
cmp dword [ebp - 0xcd8], 0
sete dl
movzx eax, dl
test eax, eax
jne 0x426441
lea ecx, [ebp - 0x4b0]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x654]
push edx
push SysFreeString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x4a8], eax
cmp dword [ebp - 0x4a8], 0
je 0x426431
call fcn.0044fb81
push eax
lea ecx, [ebp - 0x65c]
call fcn.00412940
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x4a8]
push eax
push 0x4d69b4
lea ecx, [ebp - 0x65c]
push ecx
call fcn.00413630
add esp, 0xc
push 0x4d69ac
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 0x65c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.open_Volatile_Environment_is_fail
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 0xc94], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x65c]
call fcn.004129d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c0]
call fcn.004129d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4b8]
call fcn.004129d0
mov eax, dword [ebp - 0xc94]
jmp 0x426adb
push str.open_volatile_Environment_is_success
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x426519
lea eax, [ebp - 0x4b0]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x654]
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x4a8], eax
cmp dword [ebp - 0x4a8], 0
je 0x42650e
call fcn.0044fb81
push eax
lea ecx, [ebp - 0x660]
call fcn.00412940
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x4a8]
push edx
push 0x4d69b4
lea eax, [ebp - 0x660]
push eax
call fcn.00413630
add esp, 0xc
push 0x4d69ac
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0x660]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.open_Volatile_Environment_is_fail
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 0xc98], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x660]
call fcn.004129d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c0]
call fcn.004129d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4b8]
call fcn.004129d0
mov eax, dword [ebp - 0xc98]
jmp 0x426adb
push str.open_volatile_Environment_is_success
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 0x4b4], 0xff
xor edx, edx
mov word [ebp - 0x4a4], dx
push 0x1fc
push 0
lea eax, [ebp - 0x4a2]
push eax
call fcn.004931a0
add esp, 0xc
lea ecx, [ebp - 0x4b4]
push ecx
lea edx, [ebp - 0x4a4]
push edx
lea eax, [ebp - 0x4ac]
push eax
push 0
push str.LOGONSERVER
mov ecx, dword [ebp - 0x4b0]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x4a8], eax
cmp dword [ebp - 0x4a8], 0
je 0x426600
call fcn.0044fb81
push eax
lea ecx, [ebp - 0x664]
call fcn.00412940
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x4a8]
push edx
push 0x4d69b4
lea eax, [ebp - 0x664]
push eax
call fcn.00413630
add esp, 0xc
mov ecx, dword [ebp - 0x4b0]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xc9c], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x664]
call fcn.004129d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c0]
call fcn.004129d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4b8]
call fcn.004129d0
mov eax, dword [ebp - 0xc9c]
jmp 0x426adb
lea ecx, [ebp - 0x4c4]
call fcn.00412230
mov byte [ebp - 4], 6
lea edx, [ebp - 0x4a4]
push edx
push 0x4d2d7c
lea eax, [ebp - 0x4c4]
push eax
call fcn.00413630
add esp, 0xc
lea ecx, [ebp - 0x4b8]
push ecx
push 0x4d68f8
lea edx, [ebp - 0xca4]
push edx
call fcn.0040f350
add esp, 0xc
mov dword [ebp - 0xd80], eax
mov eax, dword [ebp - 0xd80]
mov dword [ebp - 0xd10], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0xd10]
mov edx, dword [ecx]
mov dword [ebp - 0xd0c], edx
mov eax, dword [ebp - 0xd0c]
push eax
lea ecx, [ebp - 0x4c4]
call fcn.004276a0
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0xc9d], al
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xca4]
call fcn.004129d0
movzx ecx, byte [ebp - 0xc9d]
test ecx, ecx
je 0x42692e
mov dword [ebp - 0x870], 0xff
xor edx, edx
mov word [ebp - 0x86c], dx
push 0x1fc
push 0
lea eax, [ebp - 0x86a]
push eax
call fcn.004931a0
add esp, 0xc
mov dword [ebp - 0x668], 0
lea ecx, [ebp - 0x870]
push ecx
lea edx, [ebp - 0x4a4]
push edx
lea eax, [ebp - 0x66c]
push eax
push 0
push str.USERNAME
mov ecx, dword [ebp - 0x4b0]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x668], eax
cmp dword [ebp - 0x668], 0
jne 0x42672e
lea edx, [ebp - 0x4a4]
push edx
push 0x4d2d7c
push 0x5069d0
call fcn.00413630
add esp, 0xc
jmp 0x4268d7
call fcn.00426c70
test eax, eax
je 0x42686b
lea eax, [ebp - 0x870]
push eax
lea ecx, [ebp - 0x4a4]
push ecx
lea edx, [ebp - 0x66c]
push edx
push 0
push str.HOMEPATH
mov eax, dword [ebp - 0x4b0]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x668], eax
cmp dword [ebp - 0x668], 0
jne 0x426869
lea ecx, [ebp - 0x4a4]
push ecx
push 0x4d2d7c
push 0x5069d0
call fcn.00413630
add esp, 0xc
lea ecx, [ebp - 0x874]
call fcn.00412230
mov byte [ebp - 4], 8
mov edx, dword [0x5069d0]
mov dword [ebp - 0xd28], edx
push 0x5c
mov eax, dword [ebp - 0xd28]
push eax
call fcn.00494159
add esp, 8
mov dword [ebp - 0xd24], eax
cmp dword [ebp - 0xd24], 0
jne 0x4267d7
mov dword [ebp - 0xd84], 0xffffffff
jmp 0x4267eb
mov ecx, dword [ebp - 0xd24]
sub ecx, dword [0x5069d0]
sar ecx, 1
mov dword [ebp - 0xd84], ecx
mov edx, dword [ebp - 0xd84]
mov dword [ebp - 0x878], edx
mov eax, dword [ebp - 0x878]
add eax, 1
push eax
lea ecx, [ebp - 0xca8]
push ecx
mov ecx, 0x5069d0
call fcn.00427550
mov dword [ebp - 0xd88], eax
mov edx, dword [ebp - 0xd88]
mov dword [ebp - 0xd2c], edx
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0xd2c]
push eax
lea ecx, [ebp - 0x874]
call fcn.00412a10
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xca8]
call fcn.004129d0
lea ecx, [ebp - 0x874]
push ecx
mov ecx, 0x5069d0
call fcn.00412a10
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x874]
call fcn.004129d0
jmp 0x4268d7
mov dword [ebp - 0x87c], 0
mov ecx, 0x5069d0
call fcn.00412c40
mov edx, dword [0x5069d0]
sub edx, 0x10
mov dword [ebp - 0xd44], edx
mov eax, dword [ebp - 0xd44]
xor ecx, ecx
cmp dword [eax + 0xc], 1
setg cl
movzx edx, cl
test edx, edx
je 0x4268b8
mov eax, dword [ebp - 0xd44]
mov ecx, dword [eax + 4]
push ecx
mov ecx, 0x5069d0
call fcn.00412fc0
lea edx, [ebp - 0x87c]
push edx
mov eax, dword [0x5069d0]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0xffffffffffffffff
mov ecx, 0x5069d0
call fcn.00425740
mov ecx, dword [ebp - 0x4b0]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xcac], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c4]
call fcn.004129d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c0]
call fcn.004129d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4b8]
call fcn.004129d0
mov eax, dword [ebp - 0xcac]
jmp 0x426adb
xor edx, edx
mov word [ebp - 0xa7c], dx
push 0x1fc
push 0
lea eax, [ebp - 0xa7a]
push eax
call fcn.004931a0
add esp, 0xc
lea ecx, [ebp - 0x4b4]
push ecx
lea edx, [ebp - 0xa7c]
push edx
lea eax, [ebp - 0x4ac]
push eax
push 0
push 0x4d68b4
mov ecx, dword [ebp - 0x4b0]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x4a8], eax
cmp dword [ebp - 0x4a8], 0
jne 0x426a5c
mov dword [ebp - 0xc88], 0xff
xor edx, edx
mov word [ebp - 0xc84], dx
push 0x1fc
push 0
lea eax, [ebp - 0xc82]
push eax
call fcn.004931a0
add esp, 0xc
mov dword [ebp - 0xa80], 0
lea ecx, [ebp - 0xc88]
push ecx
lea edx, [ebp - 0x4a4]
push edx
lea eax, [ebp - 0xa84]
push eax
push 0
push str.USERNAME
mov ecx, dword [ebp - 0x4b0]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xa80], eax
cmp dword [ebp - 0xa80], 0
jne 0x426a0d
lea edx, [ebp - 0x4a4]
push edx
push 0x4d2d7c
push 0x5069d0
call fcn.00413630
add esp, 0xc
mov eax, dword [ebp - 0x4b0]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xcb0], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c4]
call fcn.004129d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c0]
call fcn.004129d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4b8]
call fcn.004129d0
mov eax, dword [ebp - 0xcb0]
jmp 0x426adb
mov ecx, dword [ebp - 0x4b0]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xcb4], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c4]
call fcn.004129d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c0]
call fcn.004129d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4b8]
call fcn.004129d0
mov eax, dword [ebp - 0xcb4]
jmp 0x426adb
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049318c
mov esp, ebp
pop ebp
ret