Function at 0x45ffa0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
lea eax, [ebp - 0x88]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x58]
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x188]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x108]
push edi
cmp dword [esi + 0x14], 0x20
mov dword [ebp - 0x38], eax
jne 0x460386
mov ebx, dword [ebp + 0x20]
cmp ebx, 8
jl 0x460386
mov eax, ebx
and eax, reloc.WSOCK32.dll_getsockopt
jns 0x460000
dec eax
or eax, 0xfffffff8
inc eax
jne 0x460386
cmp ebx, 0x30
jbe 0x460022
lea eax, [ebx + 8]
push eax
call fcn.00473980
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x460386
push 0x20
push dword [esi + 4]
lea eax, [ebp - 0x34]
push eax
call fcn.004d0d60
push 0x20
push dword [esi + 8]
lea eax, [ebp - 0x58]
push eax
call fcn.004d0d60
mov esi, dword [ebp - 0x34]
add esp, 0x18
sub esi, dword [ebp - 0x58]
mov ecx, esi
mov eax, esi
and ecx, 0xff0000
shr eax, 0x10
or ecx, eax
mov eax, esi
shr ecx, 8
shl eax, 8
and eax, 0xff0000
shl esi, 0x18
or ecx, eax
or ecx, esi
mov esi, dword [ebp - 0x30]
add ecx, dword [ebp - 0x58]
sub esi, dword [ebp - 0x54]
mov dword [ebp - 0x34], ecx
mov eax, esi
shr eax, 0x10
mov ecx, esi
and ecx, 0xff0000
or ecx, eax
mov eax, esi
shr ecx, 8
shl eax, 8
and eax, 0xff0000
shl esi, 0x18
or ecx, eax
or ecx, esi
mov esi, dword [ebp - 0x2c]
add ecx, dword [ebp - 0x54]
sub esi, dword [ebp - 0x50]
mov dword [ebp - 0x30], ecx
mov eax, esi
shr eax, 0x10
mov ecx, esi
and ecx, 0xff0000
or ecx, eax
mov eax, esi
shr ecx, 8
shl eax, 8
and eax, 0xff0000
shl esi, 0x18
or ecx, eax
or ecx, esi
mov esi, dword [ebp - 0x28]
add ecx, dword [ebp - 0x50]
sub esi, dword [ebp - 0x4c]
mov dword [ebp - 0x2c], ecx
mov eax, esi
mov ecx, esi
shr eax, 0x10
and ecx, 0xff0000
or ecx, eax
mov eax, esi
shr ecx, 8
shl eax, 8
and eax, 0xff0000
shl esi, 0x18
or ecx, eax
or ecx, esi
mov esi, dword [ebp - 0x24]
add ecx, dword [ebp - 0x4c]
sub esi, dword [ebp - 0x48]
mov dword [ebp - 0x28], ecx
mov eax, esi
mov ecx, esi
and ecx, 0xff0000
shr eax, 0x10
or ecx, eax
mov eax, esi
shr ecx, 8
shl eax, 8
and eax, 0xff0000
shl esi, 0x18
or ecx, eax
or ecx, esi
mov esi, dword [ebp - 0x20]
add ecx, dword [ebp - 0x48]
sub esi, dword [ebp - 0x44]
mov dword [ebp - 0x24], ecx
mov eax, esi
shr eax, 0x10
mov ecx, esi
and ecx, 0xff0000
or ecx, eax
mov eax, esi
shr ecx, 8
shl eax, 8
and eax, 0xff0000
shl esi, 0x18
or ecx, eax
or ecx, esi
mov esi, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x44]
sub esi, dword [ebp - 0x40]
mov dword [ebp - 0x20], ecx
mov eax, esi
shr eax, 0x10
mov ecx, esi
and ecx, 0xff0000
or ecx, eax
mov eax, esi
shr ecx, 8
shl eax, 8
and eax, 0xff0000
shl esi, 0x18
or ecx, eax
or ecx, esi
mov esi, dword [ebp - 0x18]
add ecx, dword [ebp - 0x40]
sub esi, dword [ebp - 0x3c]
mov dword [ebp - 0x1c], ecx
mov eax, esi
mov ecx, esi
shr eax, 0x10
and ecx, 0xff0000
or ecx, eax
mov eax, esi
shr ecx, 8
shl eax, 8
and eax, 0xff0000
shl esi, 0x18
or ecx, eax
or ecx, esi
add ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x18], ecx
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
sub esi, 0x20
mov eax, dword [esi]
mov dword [edi + 0x1c], eax
mov eax, dword [esi + 4]
mov dword [edi + 0x18], eax
mov eax, dword [esi + 8]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 8], eax
mov eax, dword [esi + 0x18]
mov dword [edi + 4], eax
mov eax, dword [esi + 0x1c]
mov dword [edi], eax
mov esi, edi
add edi, 0x20
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0x38]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
sub esi, 0x20
mov eax, dword [esi]
mov dword [edi + 0x1c], eax
mov eax, dword [esi + 4]
mov dword [edi + 0x18], eax
mov eax, dword [esi + 8]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 8], eax
mov eax, dword [esi + 0x18]
mov dword [edi + 4], eax
mov eax, dword [esi + 0x1c]
mov dword [edi], eax
mov esi, edi
add edi, 0x20
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x10]
lea eax, [ebx - 8]
mov dword [ebp + 0x14], eax
test ecx, ecx
jle 0x46037a
mov edi, dword [ebp + 0x20]
lea eax, [ecx - 1]
mov esi, dword [ebp - 4]
add edi, 8
shr eax, 3
add edi, esi
inc eax
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], eax
mov ebx, esi
mov eax, dword [ebp + 8]
nop dword [eax + eax]
push 8
push eax
push ebx
call fcn.004d0d60
add ebx, 8
add esp, 0xc
cmp ebx, edi
cmovae ebx, esi
mov dword [ebp + 0x20], ebx
pushal
mov esi, dword [ebp - 0x14]
mov edx, dword [esi]
mov eax, dword [esi + 4]
bswap edx
bswap eax
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp + 0x18]
push ebp
mov ecx, 0x20
mov ebp, eax
add eax, dword [esi]
sub eax, dword [esi + 0x80]
add esi, 4
movzx ebx, al
xor edx, dword [edi + ebx*4]
mov bl, ah
xor edx, dword [edi + ebx*4 + 0x400]
shr eax, 0x10
mov bl, ah
xor edx, dword [edi + ebx*4 + 0xc00]
mov bl, al
xor edx, dword [edi + ebx*4 + 0x800]
mov eax, edx
mov edx, ebp
loop 0x4602b0
pop ebp
bswap eax
bswap edx
mov esi, dword [ebp + 0xc]
mov dword [esi], eax
mov dword [esi + 4], edx
popal
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x20]
mov esi, dword [ebp - 4]
movzx ecx, byte [eax]
xor byte [edx], cl
movzx ecx, byte [eax + 1]
xor byte [edx + 1], cl
movzx ecx, byte [eax + 2]
xor byte [edx + 2], cl
movzx ecx, byte [eax + 3]
xor byte [edx + 3], cl
movzx ecx, byte [eax + 4]
xor byte [edx + 4], cl
movzx ecx, byte [eax + 5]
xor byte [edx + 5], cl
movzx ecx, byte [eax + 6]
xor byte [edx + 6], cl
movzx ecx, byte [eax + 7]
add eax, 8
xor byte [edx + 7], cl
add edx, 8
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp - 8]
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 8]
add eax, 8
mov dword [ebp + 0xc], edx
mov dword [ebp + 8], eax
mov dword [ebp - 0x14], eax
cmp ecx, 8
jl 0x460362
sub ecx, 8
mov dword [ebp + 0x14], ecx
jmp 0x460370
lea eax, [ebx + 8]
cmp eax, edi
cmovae eax, esi
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 8]
sub dword [ebp - 0xc], 1
jne 0x460280
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret