Function at 0x1006c05
Capabilities:
Connect socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp byte [0x100a2ac], bl
jne 0x1006c1e
mov eax, dword [ebp + 0x24]
cmp eax, ebx
jne 0x1006c28
mov eax, 0x3eb
jmp 0x1006d86
push esi
push edi
mov dword [eax], ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
call fcn.010066ce
push dword [ebp - 4]
mov esi, dword [sym.imp.WSOCK32.dll_ntohs]
call esi
mov edi, dword [ebp + 0x14]
push edi
call esi
cmp dword [ebp + 8], ebx
mov dword [ebp + 0x14], ebx
je 0x1006c6b
push dword [ebp + 8]
call fcn.0100679a
test al, al
jne 0x1006c6b
mov eax, 0x3eb
jmp 0x1006d84
mov esi, dword [ebp + 0x18]
cmp esi, ebx
jne 0x1006c95
call fcn.010079d4
mov esi, eax
cmp esi, ebx
mov dword [ebp + 0x14], esi
jne 0x1006c95
cmp dword [ebp + 8], ebx
je 0x1006c8d
push dword [ebp + 8]
call fcn.010067cb
push 8
pop eax
jmp 0x1006d84
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x20]
push ebx
push ebx
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x10]
mov word [esi + 0x36], di
push 1
mov dword [esi + 0x2c], ebx
mov word [esi + 0x34], 2
mov dword [esi + 0x38], eax
lea edi, [esi + 0x54]
push ebx
mov dword [edi], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, ebx
mov dword [esi + 0x50], eax
je 0x1006d1f
push 9
push 0xffffffffffffffff
push esi
push 0x10068de
push eax
push edi
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
je 0x1006d1f
mov eax, dword [esi + 0x50]
mov ecx, dword [ebp + 0x24]
push 0x30
mov dword [ecx], eax
push dword [esi + 0x50]
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x1006d0a
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
jmp 0x1006d25
push ebx
push ebx
push ebx
push ebx
push 0x10
lea eax, [esi + 0x34]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_WSAConnect]
jmp 0x1006d25
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x1006d42
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
mov dword [ebp + 0xc], eax
jne 0x1006d42
mov dword [ebp + 0xc], ebx
jmp 0x1006d81
cmp dword [ebp + 0xc], ebx
je 0x1006d81
mov eax, dword [ebp + 0x24]
mov dword [eax], ebx
mov edi, dword [edi]
cmp edi, ebx
je 0x1006d59
push edi
call dword [sym.imp.KERNEL32.dll_UnregisterWait]
mov esi, dword [esi + 0x50]
cmp esi, ebx
je 0x1006d67
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x14], ebx
je 0x1006d74
push dword [ebp + 0x14]
call fcn.01007a82
cmp dword [ebp + 8], ebx
je 0x1006d81
push dword [ebp + 8]
call fcn.010067cb
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0x20

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx