Function at 0x4db6f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61f026
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x659af8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, word [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14c], edi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ecx
mov ecx, dword [edi]
lea eax, [ebp - 0x120]
xorps xmm0, xmm0
mov dword [ebp - 4], 0
push eax
movups xmmword [ebp - 0x120], xmm0
mov dword [ebp - 0x110], 0
call fcn.005dd600
mov eax, dword [ebp - 0x120]
xorps xmm0, xmm0
mov esi, dword [edi]
mov ecx, dword [edi + 4]
mov dword [ebp - 0x12c], eax
mov eax, 0x8000
movq qword [ebp - 0x138], xmm0
mov word [ebp - 0x130], 0
mov word [ebp - 0x134], ax
movups xmmword [ebp - 0x148], xmm0
mov byte [ebp - 0x12f], 9
mov eax, dword [esi]
shr eax, 1
mov dword [ebp - 0x124], ecx
test al, 1
je 0x4db7b4
mov eax, dword [esi + 0x14]
jmp 0x4db7b7
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x13c], eax
lea eax, [ebp - 0x13c]
push dword [ecx + 0xc]
push eax
call fcn.0050ec30
mov eax, dword [ebp - 0x12c]
add esp, 8
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x140], eax
mov eax, dword [esi + 8]
shr eax, 2
test al, 1
je 0x4db7f0
mov eax, dword [ecx + 0x1c]
jmp 0x4db7f3
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x148], eax
mov eax, dword [ecx + 0x20]
mov dword [ebp - 0x144], eax
movups xmm0, xmmword [ebp - 0x148]
mov ax, word [ebp - 0x130]
push 0x2c
mov word [ebp - 0xb8], ax
lea eax, [ebp - 0xfc]
movups xmmword [ebp - 0xd0], xmm0
push 0
movq xmm0, qword [ebp - 0x138]
push eax
movq qword [ebp - 0xc0], xmm0
call fcn.0060a6d0
add esp, 0xc
lea eax, [ebp - 0x11c]
lea ecx, [ebp - 0xfc]
push 0x10
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.00519f50
mov byte [ebp - 0x38], 0
mov eax, dword [edi + 8]
mov byte [ebp - 4], 1
test dword [eax], 0x4000000
je 0x4db8ad
push dword [edi + 0xc]
push dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x17c]
push eax
call fcn.004db4c0
add esp, 0x10
cmp byte [ebp - 0x38], 0
movq xmm0, qword [eax]
movq qword [ebp - 0x34], xmm0
mov eax, dword [eax + 8]
mov dword [ebp - 0x2c], eax
jne 0x4db89e
mov byte [ebp - 0x38], 1
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0xfc]
call fcn.0051a580
mov eax, dword [ebp + 0x3c]
test eax, eax
je 0x4dbe2c
mov eax, dword [eax]
lea ecx, [ebp - 0xfc]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x6504ac]
mov ecx, dword [ebp + 0x3c]
call esi
mov esi, dword [edi]
xorps xmm0, xmm0
add esi, 0x40
movups xmmword [ebp - 0x50], xmm0
push 0x10
mov dword [ebp - 0x128], esi
mov byte [ebp - 0x50], 0
call fcn.006084b7
mov edi, eax
xorps xmm0, xmm0
mov dword [ebp - 0x12c], edi
mov dword [ebp - 0x4c], edi
lea eax, [edi + 0x10]
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x44], eax
movups xmmword [edi], xmm0
mov dword [ebp - 0x48], eax
movups xmm0, xmmword [esi + 4]
push 0x20
mov byte [ebp - 4], 2
movups xmmword [edi], xmm0
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
mov byte [ebp - 0x28], 0
call fcn.006084b7
mov esi, eax
xorps xmm0, xmm0
add esp, 8
mov dword [ebp - 0x24], esi
lea edx, [esi + 0x20]
movups xmmword [esi], xmm0
mov dword [ebp - 0x1c], edx
movups xmmword [esi + 0x10], xmm0
mov dword [ebp - 0x20], edx
sub edx, esi
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], 0
cmp edx, 0x10
jae 0x4dba01
mov ecx, edx
mov eax, closesocket
shr ecx, 1
sub eax, ecx
cmp edx, eax
jbe 0x4db97e
mov dword [ebp - 0x124], getpeername
jmp 0x4db991
lea eax, [ecx + edx]
mov ecx, 0x10
cmp eax, ecx
cmovb eax, ecx
mov dword [ebp - 0x124], eax
test esi, esi
je 0x4db9f0
mov eax, edx
mov ecx, esi
test edx, edx
je 0x4db9ab
nop dword [eax]
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub eax, 1
jne 0x4db9a0
mov byte [ebp - 4], 4
cmp edx, 0x1000
jb 0x4db9cd
mov ecx, dword [esi - 4]
add edx, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x4dbe31
mov esi, ecx
push edx
push esi
call fcn.006084e7
add esp, 8
mov byte [ebp - 4], 3
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
push dword [ebp - 0x124]
lea ecx, [ebp - 0x28]
call fcn.004dbe40
mov esi, dword [ebp - 0x24]
push 0x10
push edi
push esi
call fcn.0060a150
add esp, 0xc
lea eax, [esi + 0x10]
mov dword [ebp - 0x20], eax
push 0xffffffffffffffff
call fcn.0051abb0
mov ecx, eax
call fcn.0051ac90
lea ecx, [esi + 0x10]
mov dword [ebp - 0x18], eax
sub ecx, esi
xor edx, edx
mov dword [ebp - 0x124], ecx
mov ecx, eax
not ecx
add ecx, ecx
xor ecx, eax
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x124], edx
jbe 0x4dba69
mov edi, dword [ebp - 0x124]
nop word [eax + eax]
mov eax, edx
lea ecx, [esi + edx]
and eax, 3
inc edx
mov al, byte [ebp + eax - 0x14]
xor byte [ecx], al
cmp edx, edi
jb 0x4dba50
mov edi, dword [ebp - 0x12c]
mov esi, dword [ebp - 0x14c]
xorps xmm0, xmm0
movups xmmword [ebp - 0x90], xmm0
mov byte [ebp - 4], 5
movups xmmword [ebp - 0x80], xmm0
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x170], eax
mov eax, dword [ecx + 0x18]
lea ecx, [ebp - 0x164]
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp - 0x128]
mov eax, dword [eax]
mov dword [ebp - 0x168], eax
lea eax, [ebp - 0x28]
push eax
call fcn.004db530
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x154], eax
mov byte [ebp - 4], 6
call fcn.0051abb0
push eax
lea eax, [ebp - 0x170]
push eax
lea ecx, [ebp - 0x90]
call fcn.0051a590
mov ecx, dword [ebp - 0x160]
mov byte [ebp - 4], 8
test ecx, ecx
je 0x4dbb19
mov eax, dword [ebp - 0x158]
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x164]
call fcn.004dc030
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x158], 0
mov ecx, dword [esi]
push 0
call fcn.005ddf30
mov edx, dword [esi + 4]
mov esi, dword [0x6612bc]
mov ecx, dword [edx + 0x14]
mov dword [ebp - 0x104], ecx
mov ecx, dword [edx + 0x18]
mov dword [ebp - 0x100], ecx
mov eax, dword [eax + 4]
mov dword [ebp - 0x10c], eax
test esi, esi
jne 0x4dbc1c
push 0x5c
call fcn.006084b7
mov esi, eax
add esp, 4
mov dword [ebp - 0x128], esi
test esi, esi
je 0x4dbc14
push 0x5c
push 0
push esi
call fcn.0060a6d0
add esp, 0xc
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov byte [esi + 0x58], 0
jmp 0x4dbc16
xor esi, esi
mov dword [0x6612bc], esi
xorps xmm0, xmm0
mov dword [ebp - 0x108], esi
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x70]
movups xmmword [ebp - 0x70], xmm0
movups xmmword [ebp - 0x60], xmm0
call fcn.0050fcc0
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 9
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x94], 0
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0xb4]
movups xmmword [ebp - 0xb4], xmm0
movups xmmword [ebp - 0xa4], xmm0
call fcn.0050fba0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0xfc]
push eax
lea ecx, [ebp - 0xb4]
call fcn.0050ff80
mov edx, dword [ebp - 0xac]
mov dword [ebp - 0x128], eax
test edx, edx
je 0x4dbcce
mov ecx, dword [ebp - 0xa4]
sub ecx, edx
push ecx
push edx
lea ecx, [ebp - 0xb0]
call fcn.004dc030
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0
mov ecx, dword [ebp - 0x70]
mov byte [ebp - 4], 0xb
test ecx, ecx
je 0x4dbcfd
mov eax, dword [ebp - 0x68]
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x70]
call fcn.004c84c0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov ecx, dword [ebp - 0x8c]
test ecx, ecx
je 0x4dbd3a
mov eax, dword [ebp - 0x84]
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x90]
call fcn.004dc030
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov edx, dword [ebp - 0x24]
test edx, edx
je 0x4dbd9c
mov esi, dword [ebp - 0x1c]
mov ecx, edx
sub esi, edx
mov eax, esi
je 0x4dbd5b
nop dword [eax]
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub eax, 1
jne 0x4dbd50
mov eax, edx
mov byte [ebp - 4], 0xc
cmp esi, 0x1000
jb 0x4dbd7d
mov edx, dword [edx - 4]
add esi, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4dbe31
push esi
push edx
call fcn.006084e7
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x150]
mov ecx, edi
sub edx, edi
mov eax, edx
je 0x4dbdbb
nop word [eax + eax]
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub eax, 1
jne 0x4dbdb0
mov byte [ebp - 4], 0xd
cmp edx, 0x1000
jb 0x4dbdd9
mov ecx, dword [edi - 4]
add edx, 0x23
sub edi, ecx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x4dbe31
mov edi, ecx
push edx
push edi
call fcn.006084e7
mov edi, dword [ebp + 0x3c]
add esp, 8
mov byte [ebp - 0x38], 0
test edi, edi
je 0x4dbe0b
mov esi, dword [edi]
lea eax, [ebp + 0x18]
cmp edi, eax
setne al
mov esi, dword [esi + 0x10]
mov ecx, esi
movzx eax, al
push eax
call dword [0x6504ac]
mov ecx, edi
call esi
mov eax, dword [ebp - 0x128]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00608a00
mov esp, ebp
pop ebp
ret
call fcn.005f382a
call fcn.00540ccc
int3