Function at 0x1000afa0
Capabilities:
Parse pe header
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x1003e620]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x104], eax
mov eax, dword [ebp + 0x10]
lea ecx, [eax - 0x15]
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x100], esi
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x124], ecx
cmp eax, ecx
jbe 0x1000b3b3
add eax, 0xffffffb6
mov dword [ebp - 0xf8], eax
jmp 0x1000b006
mov edi, dword [ebp - 0x10c]
cmp eax, 0x17
ja case.0x1000b00f.3
jmp dword [eax*4 + 0x1000b400]
mov cx, word [0x10035a58]
mov dl, byte [0x10035a5a]
mov word [ebp - 0x10], cx
mov byte [ebp - 0xe], dl
jmp case.0x1000b00f.3
push 3
lea ecx, [ebp - 0x40]
mov eax, 0x2e32
push 0x10035a4f
push ecx
mov word [ebp - 0x39], ax
mov byte [ebp - 0x37], 0
call fcn.10027280
jmp 0x1000b394
mov dx, word [0x10035a48]
mov al, byte [0x10035a4a]
push 3
lea ecx, [ebp - 0x24]
push 0x10035a44
push ecx
mov word [ebp - 0x24], dx
mov byte [ebp - 0x22], al
call fcn.10027280
push 2
lea edx, [ebp - 0x1f]
push 0x10035a40
push edx
call fcn.10026900
add esp, 0x18
jmp case.0x1000b00f.3
cmp dword [ebp - 0x108], 0xffffffff
jne case.0x1000b00f.3
mov byte [ebp - 0xed], 0
jmp case.0x1000b00f.3
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
push ecx
push 0x8a
call fcn.10001f60
add esp, 0xc
push 0xfffffffffffffff5
mov dword [ebp - 0x11c], eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x114], 0
jmp case.0x1000b00f.3
push 3
lea edx, [ebp - 0x40]
push 0x10035a39
push edx
call fcn.10027280
jmp 0x1000b394
mov dword [ebp - 0x120], 0x40
jmp case.0x1000b00f.3
mov dword [ebp - 0x40], 0x6e72656b
jmp case.0x1000b00f.3
push 0xa
lea eax, [ebp - 0xe]
push eax
push 0x20
call fcn.10033f01
push 5
lea ecx, [ebp - 0xc]
push str..dll
push ecx
call fcn.100273c0
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x30]
push eax
push 0x8a
mov byte [ebp - 0xed], 1
call fcn.10001f60
add esp, 0x24
mov dword [ebp - 0x118], eax
jmp case.0x1000b00f.3
push 3
lea ecx, [ebp - 0x30]
push 0x10035a1c
push ecx
call fcn.10027280
mov byte [ebp - 0x28], 0x72
jmp 0x1000b394
test ebx, ebx
je 0x1000b21d
mov edx, 0x5a4d
cmp word [ebx], dx
jne 0x1000b21d
mov eax, dword [ebx + 0x3c]
cmp dword [eax + ebx], 0x4550
jne 0x1000b21d
mov eax, dword [eax + ebx + 0x50]
push 0x40
push 0x1000
push eax
push 0
call dword [ebp - 0x11c]
mov esi, eax
test esi, esi
je 0x1000b217
mov edi, 0xcd
nop
mov eax, edi
sub eax, 0xcd
je 0x1000b1d3
dec eax
je 0x1000b1c3
dec eax
jne 0x1000b20e
xor esi, esi
jmp 0x1000b20e
push 0x8000
push 0
push esi
call dword [ebp - 0x118]
jmp 0x1000b20e
push 0
push 0x63
call fcn.10003370
mov ecx, dword [ebp - 0x10c]
push 0x19
push ecx
mov dword [ebp - 0x128], edx
mov edx, dword [ebp - 0x104]
push edx
lea ecx, [ebp - 0x128]
push ecx
push eax
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x128], ebx
call fcn.100094c0
add esp, 0x1c
inc edi
cmp edi, 0xd0
jb 0x1000b1b0
mov esi, dword [ebp - 0x100]
cmp byte [ebp - 0xed], 0
je case.0x1000b00f.3
mov eax, dword [ebp - 0x120]
mov edi, dword [ebp - 0x108]
push 0
lea edx, [ebp - 0xfc]
push edx
push eax
lea ecx, [ebp - 0xc0]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push edi
call dword [sym.imp.KERNEL32.dll_FlushConsoleInputBuffer]
jmp case.0x1000b00f.3
mov byte [ebp - 0x27], 0
jmp case.0x1000b00f.3
mov byte [ebp - 0x3c], 0
jmp case.0x1000b00f.3
push 3
lea edx, [ebp - 0x1e]
push 0x10035a18
push edx
call fcn.100273c0
mov ax, word [0x10034ae8]
mov cl, byte [0x10034aea]
push 3
lea edx, [ebp - 0x1a]
push 0x10035a14
push edx
mov word [ebp - 0x1c], ax
mov byte [ebp - 0x1a], cl
call fcn.10026900
add esp, 0x18
mov byte [ebp - 0x14], 0
jmp case.0x1000b00f.3
lea edi, [ebp - 0x14]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1000b2b0
mov ax, word [0x10035a10]
mov word [edi], ax
lea edi, [ebp - 0x14]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1000b2c5
mov cx, word [0x10034410]
mov word [edi], cx
mov edx, 0x72
mov eax, 0x6e
mov word [ebp - 0x12], dx
mov word [ebp - 0x11], ax
jmp case.0x1000b00f.3
push 3
lea ecx, [ebp - 0x2d]
push 0x10035a0c
push ecx
mov dword [ebp - 0x30], 0x726956
call fcn.100273c0
jmp 0x1000b394
mov edx, dword [edi]
mov eax, dword [ebx + edx*4]
mov ecx, dword [esi]
push 0
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
mov eax, dword [esi]
lea edx, [ebp - 0xf4]
push edx
push 0x8004667e
push eax
mov dword [ebp - 0xf4], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
jmp case.0x1000b00f.3
xor byte [esi - 0x45], dl
sbb bh, cl
mov ecx, dword [edi]
mov edx, dword [ebx + ecx*4]
mov eax, dword [esi]
push 0x21
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
mov ecx, dword [ebp - 0x104]
mov edx, dword [ecx]
push 0xffffffffffffffff
push 0
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ecx, dword [edi]
mov edx, dword [ebx + ecx*4]
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0xec]
push eax
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
jmp case.0x1000b00f.3
push 3
lea ecx, [ebp - 0x27]
push 0x10035a08
push ecx
call fcn.10026900
add esp, 0xc
mov eax, dword [ebp - 0xf8]
dec eax
lea edx, [eax + 0x4a]
mov dword [ebp - 0xf8], eax
cmp edx, dword [ebp - 0x124]
ja 0x1000b000
mov eax, dword [ebp - 0x110]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10027670
mov esp, ebp
pop ebp
ret
test byte [ebp - 0xec], 0x20
je 0x1000b3b3
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10027670
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x114]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10027670
mov esp, ebp
pop ebp
ret