Function at 0x45f7d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
lea eax, [ebp - 0x5c]
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x3c]
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x15c]
mov dword [ebp - 4], eax
lea eax, [ebp - 0xdc]
push edi
cmp dword [esi + 0x14], 0x20
mov dword [ebp - 0x14], eax
jne 0x45fa33
mov ebx, dword [ebp + 0x10]
mov eax, ebx
and eax, reloc.WSOCK32.dll_getsockopt
jns 0x45f81f
dec eax
or eax, 0xfffffff8
inc eax
jne 0x45fa33
push 0x20
push dword [esi + 4]
lea eax, [ebp - 0x5c]
push eax
call fcn.004d0d60
push 0x20
push dword [esi + 8]
lea eax, [ebp - 0x3c]
push eax
call fcn.004d0d60
add esp, 0x18
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
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 - 0x10]
mov edi, dword [ebp - 0x14]
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]
test ebx, ebx
jle 0x45fa27
lea eax, [ebx - 1]
shr eax, 3
inc eax
mov dword [ebp + 0x14], eax
nop word [eax + eax]
pushal
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov esi, dword [ebp - 4]
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 0x45f905
pop ebp
mov esi, dword [ebp + 0xc]
mov dword [esi], edx
mov dword [esi + 4], eax
popal
mov eax, dword [ebp - 8]
add dword [ebp + 8], 8
add dword [ebp + 0xc], 8
add eax, 8
mov dword [ebp - 8], eax
je 0x45fa1d
cmp dword [ebp + 0x1c], 0
je 0x45fa1d
test eax, 0x3ff
jne 0x45fa1d
push dword [ebp + 0x18]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00461600
add esp, 0x10
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
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 - 0x10]
mov edi, dword [ebp - 0x14]
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]
sub dword [ebp + 0x14], 1
jne 0x45f8f0
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