Function at 0x4b02c0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x64d882
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x538
mov eax, dword [0x703795]
push ebx
xor edx, edx
push ebp
push esi
cmp eax, edx
push edi
mov ebp, ecx
mov dword [esp + 0x10], edx
je 0x4b0303
cmp dword [0x826c3c], edx
jne 0x4b0303
mov esi, 1
mov dword [esp + 0x14], esi
jmp 0x4b0309
mov dword [esp + 0x14], edx
mov esi, edx
mov al, byte [0x703664]
test al, al
jne 0x4b045a
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x34]
cmp esi, edx
rep stosd dword es:[edi], eax
mov byte [esp + 0x34], 4
mov byte [esp + 0x35], 1
je 0x4b036b
movsx eax, byte [0x70379a]
mov cx, word [eax*4 + 0x703b83]
push ecx
call fcn.00645444
mov word [esp + 0x36], ax
movsx eax, byte [0x70379a]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
lea eax, [edx*2 + 0x70398f]
push eax
call fcn.0064543e
mov dword [esp + 0x38], eax
jmp 0x4b039e
mov ecx, ebp
call fcn.004afff0
push eax
call fcn.00645444
lea ecx, [esp + 0x10]
mov word [esp + 0x36], ax
push ecx
mov ecx, ebp
call fcn.004affc0
mov eax, dword [eax]
push eax
call fcn.0064543e
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], eax
call fcn.00643d26
cmp dword [esp + 0x38], 0xffffffff
jne 0x4b03f5
test esi, esi
je 0x4b03c7
movsx eax, byte [0x70379a]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
lea eax, [edx*2 + 0x70398f]
push eax
call fcn.00645438
mov esi, eax
jmp 0x4b03e6
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebp
call fcn.004affc0
mov eax, dword [eax]
push eax
call fcn.00645438
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.00643d26
test esi, esi
je 0x4b043a
mov edx, dword [esi + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0x38], ecx
mov edx, dword [ebp + 0x858]
lea esi, [ebp + 0x858]
push 0
lea eax, [esp + 0x38]
push 9
push eax
mov ecx, esi
call dword [edx + 0x20]
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x34]
push 2
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x38]
push ecx
push esi
call fcn.00488ca0
add esp, 0xc
test eax, eax
jne 0x4b0444
push 0x6b5b20
jmp 0x4b07ef
push 0x6b5b14
jmp 0x4b07ef
mov al, byte [esp + 0x34]
test al, al
jne 0x4b07ea
cmp byte [esp + 0x35], 0x5a
jmp 0x4b07e4
cmp al, 1
jne 0x4b0808
mov eax, dword [ebp + 0x858]
lea ebx, [ebp + 0x858]
push edx
lea ecx, [esp + 0x9c]
push 4
push ecx
mov ecx, ebx
mov byte [esp + 0xa4], 5
mov byte [esp + 0xa5], 2
mov byte [esp + 0xa6], 0
mov byte [esp + 0xa7], 2
call dword [eax + 0x20]
lea edx, [esp + 0x98]
mov ecx, 0x96
xor eax, eax
lea edi, [esp + 0x98]
push 2
push edx
rep stosd dword es:[edi], eax
push ebx
call fcn.00488ca0
add esp, 0xc
test eax, eax
je 0x4b07b3
cmp byte [esp + 0x98], 5
jne 0x4b07ea
mov al, byte [esp + 0x99]
test al, al
je 0x4b04ec
cmp al, 2
jne 0x4b07ea
jmp 0x4b04f4
cmp al, 2
jne 0x4b05e0
mov edi, 0x703731
or ecx, 0xffffffff
xor eax, eax
mov esi, 0x703731
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x7036cd
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x9a]
mov dword [esp + 0x10], ecx
mov ecx, edx
mov eax, ecx
mov byte [esp + 0x98], 1
shr ecx, 2
mov byte [esp + 0x99], dl
push 0
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov esi, 0x7036cd
mov byte [esp + edx + 0x9e], cl
mov eax, ecx
lea edi, [esp + edx + 0x9f]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov eax, dword [ebx]
lea edx, [ecx + edx + 3]
lea ecx, [esp + 0x9c]
push edx
push ecx
mov ecx, ebx
call dword [eax + 0x20]
lea edx, [esp + 0x98]
mov ecx, 0x96
xor eax, eax
lea edi, [esp + 0x98]
push 2
push edx
rep stosd dword es:[edi], eax
push ebx
call fcn.00488ca0
add esp, 0xc
test eax, eax
je 0x4b07b3
cmp byte [esp + 0x98], 1
jne 0x4b05be
mov al, byte [esp + 0x99]
test al, al
je 0x4b05dc
push 0x6b5af8
lea ecx, [ebp + 0x844]
call fcn.006440b6
mov ecx, ebp
call fcn.004b0bf0
xor eax, eax
jmp 0x4b0bd6
mov esi, dword [esp + 0x14]
xor edi, edi
mov byte [esp + 0x98], 5
test esi, esi
mov byte [esp + 0x99], 1
mov byte [esp + 0x9a], 0
je 0x4b0631
movsx eax, byte [0x70379a]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea ecx, [eax*2 + 0x70398f]
push ecx
call fcn.0064543e
movsx edx, byte [0x70379a]
mov esi, eax
mov ax, word [edx*4 + 0x703b83]
push eax
call fcn.00645444
jmp 0x4b066f
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebp
call fcn.004affc0
mov eax, dword [eax]
push eax
call fcn.0064543e
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.00643d26
cmp esi, 0xffffffff
jne 0x4b065a
mov edi, 1
mov ecx, ebp
call fcn.004afff0
push eax
call fcn.00645444
test edi, edi
mov dword [esp + 0x18], eax
jne 0x4b0690
mov dword [esp + 0x9c], esi
mov byte [esp + 0x9b], 1
mov word [esp + 0xa0], ax
mov esi, 6
jmp 0x4b0777
lea edx, [esp + 0x10]
mov ecx, ebp
push edx
mov byte [esp + 0x9f], 3
call fcn.004affc0
mov edi, dword [eax]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x9c], cl
lea ecx, [esp + 0x10]
call fcn.00643d26
lea eax, [esp + 0x14]
mov ecx, ebp
push eax
call fcn.004affc0
mov edi, dword [eax]
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebp
mov dword [esp + 0x554], 0
call fcn.004affc0
mov esi, dword [eax]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x9d]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.00643d26
lea ecx, [esp + 0x14]
mov dword [esp + 0x550], 0xffffffff
call fcn.00643d26
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
call fcn.004affc0
mov edi, dword [eax]
or ecx, 0xffffffff
xor eax, eax
mov dx, word [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov word [esp + ecx + 0x9d], dx
lea ecx, [esp + 0x10]
call fcn.00643d26
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
call fcn.004affc0
mov edi, dword [eax]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
lea ecx, [esp + 0x10]
add esi, 3
call fcn.00643d26
mov edx, dword [ebx]
add esi, 4
push 0
lea eax, [esp + 0x9c]
push esi
push eax
mov ecx, ebx
call dword [edx + 0x20]
mov ecx, 0x96
xor eax, eax
lea edi, [esp + 0x98]
push 5
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x9c]
push ecx
push ebx
call fcn.00488ca0
add esp, 0xc
test eax, eax
jne 0x4b07d1
push 0x6b5b20
lea ecx, [ebp + 0x844]
call fcn.006440b6
mov ecx, ebp
call fcn.004b0bf0
xor eax, eax
jmp 0x4b0bd6
cmp byte [esp + 0x98], 5
jne 0x4b07ea
mov al, byte [esp + 0x99]
test al, al
je 0x4b0bc7
push 0x6b5adc
lea ecx, [ebp + 0x844]
call fcn.006440b6
mov ecx, ebp
call fcn.004b0bf0
xor eax, eax
jmp 0x4b0bd6
mov ecx, 0x96
xor eax, eax
lea edi, [esp + 0x2f0]
rep stosd dword es:[edi], eax
mov al, byte [0x703731]
test al, al
jne 0x4b08b2
cmp esi, edx
jne 0x4b0870
lea edx, [esp + 0x10]
mov ecx, ebp
push edx
call fcn.004affc0
push 0x6b5a9c
mov ecx, ebp
mov edi, eax
call fcn.004afff0
push eax
mov eax, dword [edi]
push eax
push 0x6b5a90
lea ecx, [esp + 0x300]
push 0x6b5a84
push ecx
call dword [fcn.0065f1cc]
add esp, 0x18
lea ecx, [esp + 0x10]
call fcn.00643d26
jmp 0x4b0b1f
movsx eax, byte [0x70379a]
push 0x6b5a5c
mov edx, dword [eax*4 + 0x703b83]
lea eax, [eax + eax*4]
push edx
lea edx, [esp + 0x2f8]
lea eax, [eax + eax*4]
lea ecx, [eax*2 + 0x70398f]
push ecx
push 0x6b5a90
push 0x6b5a84
push edx
call dword [fcn.0065f1cc]
add esp, 0x18
jmp 0x4b0b1f
lea ecx, [esp + 0x1c]
call fcn.00643d62
mov ebx, 1
test esi, esi
mov dword [esp + 0x550], ebx
je 0x4b08fe
movsx eax, byte [0x70379a]
mov esi, dword [eax*4 + 0x703b83]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea ecx, [eax*2 + 0x70398f]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00643d2c
mov dword [esp + 0x10], ebx
mov byte [esp + 0x550], 2
jmp 0x4b0927
mov ecx, ebp
call fcn.004afff0
lea edx, [esp + 0x24]
mov ecx, ebp
push edx
mov esi, eax
call fcn.004affc0
mov ebx, 2
mov dword [esp + 0x10], ebx
mov dword [esp + 0x550], 3
mov eax, dword [eax]
push esi
push eax
lea eax, [esp + 0x24]
push 0x6b5a40
push eax
call fcn.00643d50
add esp, 0x10
mov dword [esp + 0x550], 2
test bl, 2
je 0x4b095d
and ebx, 0xfffffffd
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], ebx
call fcn.00643d26
test bl, 1
mov dword [esp + 0x550], 1
je 0x4b0976
lea ecx, [esp + 0x28]
call fcn.00643d26
push 0x6b5a3c
lea ecx, [esp + 0x28]
call fcn.00643d2c
push eax
lea ecx, [esp + 0x2c]
push 0x703731
push ecx
mov byte [esp + 0x55c], 4
call fcn.0064409e
push 0x7036cd
lea edx, [esp + 0x1c]
push eax
push edx
mov byte [esp + 0x55c], 5
call fcn.00643ea6
lea ecx, [esp + 0x28]
mov byte [esp + 0x550], 8
call fcn.00643d26
mov bl, 7
lea ecx, [esp + 0x24]
mov byte [esp + 0x550], bl
call fcn.00643d26
lea ecx, [esp + 0x20]
call fcn.00643d62
lea eax, [esp + 0x20]
lea edx, [esp + 0x18]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
mov byte [esp + 0x55c], 9
call fcn.00643edc
call dword [sym.imp.TGear.dll_Base64Encode]
add esp, 8
test eax, eax
jne 0x4b0a5e
push 0x6b5a28
lea ecx, [ebp + 0x844]
call fcn.006440b6
mov ecx, ebp
call fcn.004b0bf0
lea ecx, [esp + 0x20]
mov byte [esp + 0x550], bl
call fcn.00643d26
lea ecx, [esp + 0x18]
mov byte [esp + 0x550], 1
call fcn.00643d26
lea ecx, [esp + 0x1c]
mov dword [esp + 0x550], 0xffffffff
call fcn.00643d26
xor eax, eax
jmp 0x4b0bd6
lea eax, [esp + 0x20]
lea ecx, [esp + 0x2c]
push eax
push 0x6b5a0c
push ecx
call fcn.0064409e
push 0x6b5a04
lea edx, [esp + 0x34]
push eax
push edx
mov byte [esp + 0x55c], 0xa
call fcn.00643ea6
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x554], 0xb
call fcn.00643d38
lea ecx, [esp + 0x30]
mov byte [esp + 0x550], 0xa
call fcn.00643d26
lea ecx, [esp + 0x2c]
mov byte [esp + 0x550], 9
call fcn.00643d26
mov edi, dword [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2f0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x550], bl
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, [esp + 0x20]
call fcn.00643d26
lea ecx, [esp + 0x18]
mov byte [esp + 0x550], 1
call fcn.00643d26
lea ecx, [esp + 0x1c]
mov dword [esp + 0x550], 0xffffffff
call fcn.00643d26
mov esi, dword [esp + 0x14]
lea edi, [esp + 0x2f0]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp + 0x858]
repne scasb al, byte es:[edi]
not ecx
lea ebx, [ebp + 0x858]
dec ecx
push 0
lea eax, [esp + 0x2f4]
push ecx
push eax
mov ecx, ebx
call dword [edx + 0x20]
mov ecx, 0x96
xor eax, eax
lea edi, [esp + 0x2f0]
push 0x24
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x2f4]
push ecx
push ebx
call fcn.00488ca0
add esp, 0xc
test eax, eax
jne 0x4b0b85
test esi, esi
je 0x4b07b3
push 0x6b59f4
jmp 0x4b07b8
lea edx, [esp + 0x2f0]
push 0x6b59dc
push edx
call dword [fcn.0065f1fc]
add esp, 8
test eax, eax
jne 0x4b0bb1
test esi, esi
je 0x4b07ea
push 0x6b59c0
jmp 0x4b07ef
mov eax, dword [ebx]
push 0
lea ecx, [esp + 0x2f4]
push 0x1f4
push ecx
mov ecx, ebx
call dword [eax + 0x1c]
mov dword [ebp + 0x86c], 1
mov eax, 1
mov ecx, dword [esp + 0x548]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x544
ret