Function at 0x4083d0
Capabilities:
Create process on windows
Create thread
Get common file path
Get hostname
Initialize winsock library
Resolve dns
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fa823
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2bac
call fcn.004f2630
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], esp
call fcn.004aae40
push eax
mov dword [0xe56fd0], eax
call fcn.004a7580
add esp, 4
call fcn.004d9240
push 0x80
push 0xddc214
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
or esi, 0xffffffff
mov edi, 0xddc214
mov ecx, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0x80
push 0xc37010
mov dword [0xe56e28], ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, 0xc37010
mov ecx, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [0xe56e2c], ecx
call fcn.0042eb20
push 0
call fcn.00404870
add esp, 4
mov ebx, 1
lea ecx, [ebp - 0x6c]
push ebx
call fcn.004f0653
mov eax, dword [0x4fe4e8]
lea ecx, [ebp - 0x6c]
push eax
push ebx
push str.c:endpcacheloginAddress.txt
mov byte [ebp - 4], bl
call fcn.004f0727
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ecx + 4]
mov eax, dword [ebp + edx - 0x68]
cmp dword [eax + 0x30], esi
je 0x4084c1
mov edi, dword [ebp - 0x68]
push 0xa
inc edi
push 0x80
push 0xdb1a8c
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x68], edi
call fcn.004f0ae9
lea ecx, [ebp - 0x6c]
call fcn.004f076e
mov eax, dword [0x4fe4e8]
lea ecx, [ebp - 0x6c]
push eax
push ebx
push str.c:endpcachemcnAddress.txt
call fcn.004f0727
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ecx + 4]
mov eax, dword [ebp + edx - 0x68]
cmp dword [eax + 0x30], esi
je 0x408507
mov edi, dword [ebp - 0x68]
push 0xa
inc edi
push 0x80
push 0xddc194
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x68], edi
call fcn.004f0ae9
lea ecx, [ebp - 0x6c]
call fcn.004f076e
mov eax, dword [0x4fe4e8]
lea ecx, [ebp - 0x6c]
push eax
push ebx
push str.c:endpcache_server_model.txt
mov dword [0xe56dbc], 0
call fcn.004f0727
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ecx + 4]
mov eax, dword [ebp + edx - 0x68]
cmp dword [eax + 0x30], esi
je 0x40873a
mov eax, dword [ebp - 0x68]
push 0xa
inc eax
push 0x40
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0x6c]
call fcn.004f0ae9
lea edi, [ebp - 0xac]
mov ecx, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jle 0x40873a
lea ecx, [ebp - 0xac]
push str.close
push ecx
call fcn.004f61e0
add esp, 8
test eax, eax
jne 0x4085c2
push eax
mov dword [0xe56dbc], ebx
call fcn.00404870
mov eax, dword [0x513e04]
add esp, 4
mov dword [0xe56be0], 2
lea edx, [eax + eax*4]
mov eax, dword [0x513e00]
shl edx, 1
lea eax, [eax + eax*4]
mov dword [0x513e04], edx
shl eax, 1
mov dword [0x513e00], eax
lea ecx, [ebp - 0xac]
push str.army_waterbox
push ecx
call fcn.004f61e0
add esp, 8
test eax, eax
jne 0x4085f5
mov dword [0xe56bf0], ebx
mov dword [0xe56be4], ebx
call fcn.004e05d0
push 0
call fcn.00404870
add esp, 4
lea edx, [ebp - 0xac]
push str.army_strong
push edx
call fcn.004f61e0
add esp, 8
test eax, eax
jne 0x408666
mov dword [0xe56be8], ebx
mov dword [0xe56be4], ebx
call fcn.004e05d0
push 0
call fcn.00404870
add esp, 4
call fcn.004ca9a0
push str.fileSecurity
call fcn.004ca8f0
add esp, 4
call fcn.004caa30
push str.regSecurity
call fcn.004ca8f0
add esp, 4
push str.fileSecurity
call fcn.004ca8f0
add esp, 4
push str.regSecurity
call fcn.004ca8f0
add esp, 4
lea eax, [ebp - 0xac]
push str.domain
push eax
call fcn.004f61e0
add esp, 8
test eax, eax
jne 0x40868d
push eax
mov dword [0xe56bec], ebx
call fcn.00404870
add esp, 4
lea ecx, [ebp - 0xac]
push str.army_domain
push ecx
call fcn.004f61e0
add esp, 8
test eax, eax
jne 0x4086c0
mov dword [0xe56be4], ebx
mov dword [0xe56bec], ebx
call fcn.004e05d0
push 0
call fcn.00404870
add esp, 4
lea edx, [ebp - 0xac]
push 0x514410
push edx
call fcn.004f61e0
add esp, 8
test eax, eax
jne 0x40870d
mov eax, dword [0x513e04]
push 0
mov dword [0xe56dbc], ebx
mov dword [0xe56be0], ebx
lea eax, [eax + eax*4]
shl eax, 1
mov dword [0x513e04], eax
mov eax, dword [0x513e00]
lea ecx, [eax + eax*4]
shl ecx, 1
mov dword [0x513e00], ecx
call fcn.00404870
add esp, 4
lea edx, [ebp - 0xac]
push str.army
push edx
call fcn.004f61e0
add esp, 8
test eax, eax
jne 0x40873a
mov dword [0xe56be4], ebx
call fcn.004e05d0
push 0
call fcn.00404870
add esp, 4
lea ecx, [ebp - 0x6c]
call fcn.004f076e
cmp dword [0xe56be4], ebx
jne 0x4087b1
push 0xc37010
push str._swinzbbt.dll
push 0xd068f0
call fcn.004f175f
push 0xc37010
push str._s_system_thomas.dll
push 0xd069f0
call fcn.004f175f
push 0xc37010
push str._s_system32_service.exe
push 0xc6139c
call fcn.004f175f
push 0xc37010
push str._s_system32_regsvrb.exe
push 0xc6149c
call fcn.004f175f
push 0xc37010
push str._s_system32cnamsclt.exe_r
push 0xc5159c
call fcn.004f175f
add esp, 0x3c
push ebx
lea ecx, [ebp - 0xf4]
xor esi, esi
call fcn.004f0653
mov eax, dword [0x4fe4e8]
lea ecx, [ebp - 0xf4]
push eax
push ebx
push str.c:endpcacheproc_setAutoReport_flag.txt
mov byte [ebp - 4], 2
call fcn.004f0727
mov ecx, dword [ebp - 0xf4]
mov edx, dword [ecx + 4]
mov eax, dword [ebp + edx - 0xf0]
cmp dword [eax + 0x30], 0xffffffff
je 0x408844
mov eax, dword [ebp - 0xf0]
push 0xa
inc eax
push 0x100
mov dword [ebp - 0xf0], eax
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0xf4]
call fcn.004f0ae9
lea edi, [ebp - 0x22c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, ebx
jle 0x408844
lea ecx, [ebp - 0x22c]
push str.close
push ecx
call fcn.004f61e0
add esp, 8
test eax, eax
jne 0x408844
mov esi, ebx
lea ecx, [ebp - 0xf4]
call fcn.004f076e
cmp esi, ebx
jne 0x408864
push ebx
call fcn.00404870
add esp, 4
mov dword [0xe56db0], ebx
jmp 0x40886e
push 0
call fcn.00404870
add esp, 4
cmp dword [0xe56bdc], ebx
jne 0x408885
push ebx
call fcn.00404870
add esp, 4
mov dword [0xe56db0], ebx
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], bl
call fcn.004f0714
lea ecx, [ebp - 0xe0]
call fcn.004f05fb
lea edx, [ebp - 0x3bc]
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4088e7
push str.socket_init_defeat____
mov ecx, 0xf558a0
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
push ebx
call fcn.00404870
add esp, 4
mov dword [0xe56db0], ebx
lea eax, [ebp - 0x12c]
push 0x10
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x408922
mov edi, str.Unknown
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x12c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x12c]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x408954
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
call fcn.004fa6c0
add esp, 4
lea edx, [ebp - 0x1ac]
mov edi, eax
jmp 0x40895f
lea edx, [ebp - 0x1ac]
mov edi, 0x50e258
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0xd52ffc
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004ab6e0
add esp, 4
push 0xd09fb0
call fcn.00401350
add esp, 4
call fcn.00408bb0
call fcn.004c8d10
movsx ecx, ax
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x2bbc]
xor edi, edi
push edx
push eax
mov dword [0xe56bd8], ecx
mov dword [ebp - 0x14], edi
call fcn.004da980
add esp, 8
cmp edi, dword [ebp - 0x14]
jge 0x4089ff
mov ecx, edi
push str.Wireless
shl ecx, 8
lea esi, [ebp + ecx - 0x2bbc]
push esi
call fcn.004f2d80
add esp, 8
test eax, eax
jne 0x4089f9
push str.wireless
push esi
call fcn.004f2d80
add esp, 8
test eax, eax
jne 0x4089f9
inc edi
jmp 0x4089c1
mov dword [0xe56bd8], ebx
push str.c:endpcacheprocCheck.exe
call fcn.004bd410
add esp, 4
push 0x5144fc
push eax
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x408a7a
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
lea edx, [ebp - 0x14]
push edx
push 0
push 0
push 0x40da60
push 0
push 0
call esi
test eax, eax
jne 0x408a48
push str.CreateThread_cardm_monitor_failed._n
call fcn.004f172e
add esp, 4
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0x40da00
push 0
push 0
call esi
test eax, eax
jne 0x408b5b
push str.CreateThread_monitor_failed._n
call fcn.004f172e
add esp, 4
call fcn.00409fa0
jmp 0x408b5b
push str.procCheck.exe
call fcn.004ab130
add esp, 4
push 0x1770
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x24], ecx
lea edi, [ebp - 0xf0]
mov dword [ebp - 0x20], ecx
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1c], ecx
push edx
mov dword [ebp - 0x18], ecx
mov ecx, 0x11
rep stosd dword es:[edi], eax
mov word [ebp - 0xc0], ax
lea eax, [ebp - 0xf0]
push eax
push 0
push 0
push 0
push ebx
push 0
push 0
push 0
push str.c:endpcacheprocCheck.exe
mov dword [ebp - 0xf0], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x408b82
push str.CreateProcess__procCheck.exe_failed_n
call fcn.004f172e
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0x40da60
push 0
push 0
call edi
mov esi, eax
test esi, esi
jne 0x408b24
push str.CreateThread_cardm_monitor_failed._n
call fcn.004f172e
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebx
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
push 0x40da00
push 0
push 0
call edi
mov esi, eax
test esi, esi
jne 0x408b58
push str.CreateThread_monitor_failed._n
call fcn.004f172e
add esp, 4
call fcn.00409fa0
push esi
call ebx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0
call fcn.004f0714
lea ecx, [ebp - 0x58]
call fcn.004f05fb
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x20]
push edx
call esi
jmp 0x408b5b