Function at 0x461790
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x38
call fcn.0047f270
push ebx
mov ebx, dword [esp + 0x4c]
push ebx
mov dword [esp + 0x38], 0
call fcn.00431f30
push ebx
call fcn.00431e50
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x461c2a
push ebx
call fcn.00431e50
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
je 0x461c2a
push edi
push ebx
call fcn.00431e50
mov edi, eax
add esp, 4
mov dword [esp + 0x28], edi
test edi, edi
je 0x461c29
push ebp
push ebx
call fcn.00431e50
mov ebp, eax
add esp, 4
mov dword [esp + 0x38], ebp
test ebp, ebp
je 0x461c28
push esi
mov esi, dword [esp + 0x54]
push esi
push dword [esp + 0x54]
push edi
call fcn.00461430
add esp, 0xc
test eax, eax
je 0x461c27
cmp dword [edi + 4], 0
je 0x461c27
push esi
push ebp
call fcn.00432540
add esp, 8
test eax, eax
je 0x461c27
push edi
call fcn.00432200
mov ebx, eax
push ebp
mov dword [esp + 0x1c], ebx
call fcn.00432200
mov esi, dword [esi + 4]
add esp, 8
mov dword [esp + 0x40], eax
mov dword [esp + 0x2c], esi
cmp esi, dword [edi + 8]
jle 0x46186d
push esi
push edi
call fcn.00432650
add esp, 8
mov eax, dword [edi + 4]
mov ebp, dword [edi]
mov dword [esp + 0x28], ebp
cmp eax, esi
jge 0x46188f
lea edi, [eax*4]
mov ecx, esi
add edi, ebp
sub ecx, eax
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x30]
mov dword [edi + 4], esi
mov edi, dword [esp + 0x20]
cmp esi, dword [edi + 8]
jle 0x4618a5
push esi
push edi
call fcn.00432650
add esp, 8
mov edx, dword [edi]
mov dword [esp + 0x18], edx
mov dword [edx], 1
cmp esi, 1
jle 0x4618c4
lea ecx, [esi - 1]
xor eax, eax
lea edi, [edx + 4]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x20]
mov dword [edi + 4], esi
mov edi, dword [esp + 0x24]
cmp esi, dword [edi + 8]
jle 0x4618de
push esi
push edi
call fcn.00432650
mov edx, dword [esp + 0x20]
add esp, 8
mov edi, dword [edi]
mov dword [esp + 0x1c], edi
test esi, esi
jle 0x4618ee
mov ecx, esi
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x24]
mov dword [eax + 4], esi
mov eax, dword [esp + 0x3c]
mov edi, dword [eax]
mov dword [esp + 0x10], edi
nop
test ebx, ebx
je 0x4619d8
nop dword [eax + eax]
mov ebx, dword [ebp]
test bl, 1
jne 0x4619d0
mov ecx, dword [esp + 0x54]
dec esi
mov eax, dword [edx]
mov edi, eax
and edi, 1
neg edi
mov ecx, dword [ecx]
mov ecx, dword [ecx]
and ecx, edi
xor eax, ecx
xor ecx, ecx
mov dword [esp + 0x38], ecx
test esi, esi
jle 0x4619ae
mov ecx, ebp
mov dword [esp + 0x34], 0xfffffffc
sub ecx, edx
lea esi, [edx + 4]
sub dword [esp + 0x34], edx
mov dword [esp + 0x44], ecx
jmp 0x461959
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx + esi]
mov ecx, edx
shl ecx, 0x1f
shr ebx, 1
or ecx, ebx
shr eax, 1
mov ebx, dword [esp + 0x38]
mov dword [ebp + ebx*4], ecx
mov ebx, edx
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x34]
mov ebp, dword [esp + 0x28]
add edx, esi
mov ecx, dword [ecx]
mov edx, dword [edx + ecx + 4]
and edx, edi
xor edx, dword [esi]
mov ecx, edx
shl ecx, 0x1f
or ecx, eax
mov eax, edx
mov edx, dword [esp + 0x2c]
mov dword [esi - 4], ecx
dec edx
mov ecx, dword [esp + 0x38]
add esi, 4
inc ecx
mov dword [esp + 0x38], ecx
cmp ecx, edx
jl 0x461955
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x2c]
shr ebx, 1
mov dword [ebp + ecx*4], ebx
mov ebx, dword [esp + 0x14]
shr eax, 1
sub ebx, 1
mov dword [edx + ecx*4], eax
mov dword [esp + 0x14], ebx
jne 0x461910
jmp 0x4619d4
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
cmp ebx, 0x20
jg 0x4619e7
cmp dword [ebp], 1
je 0x461be2
mov ecx, dword [esp + 0x40]
cmp ebx, ecx
jge 0x461a35
mov eax, dword [esp + 0x30]
mov ebp, edi
mov edx, dword [esp + 0x24]
mov dword [esp + 0x40], ebx
mov ebx, ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x30], ecx
mov ecx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x1c]
mov ecx, dword [ecx]
mov dword [esp + 0x24], eax
mov eax, dword [eax]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
xor edi, edi
test esi, esi
jle 0x461b94
cmp esi, 4
jb 0x461b45
mov ebx, dword [esp + 0x1c]
lea ecx, [esi - 1]
lea ecx, [edx + ecx*4]
lea eax, [ebx - 4]
lea eax, [eax + esi*4]
cmp edx, eax
ja 0x461a64
cmp ecx, ebx
jae 0x461b45
lea eax, [esi*4 - 4]
add eax, ebp
lea ecx, [esi - 1]
lea ecx, [edx + ecx*4]
cmp edx, eax
ja 0x461a7f
cmp ecx, ebp
jae 0x461b45
mov eax, dword [esp + 0x10]
lea ecx, [esi - 1]
lea ecx, [edx + ecx*4]
lea eax, [eax + esi*4]
add eax, 0xfffffffc
cmp edx, eax
ja 0x461a9d
cmp ecx, dword [esp + 0x10]
jae 0x461b45
lea eax, [ebx - 4]
lea ecx, [esi*4 - 4]
lea eax, [eax + esi*4]
add ecx, ebp
cmp ebp, eax
ja 0x461ab8
cmp ecx, ebx
jae 0x461b45
mov ebx, dword [esp + 0x10]
lea ecx, [esi*4 - 4]
add ecx, ebp
lea eax, [ebx - 4]
lea eax, [eax + esi*4]
cmp ebp, eax
ja 0x461ad3
cmp ecx, ebx
jae 0x461b49
mov eax, esi
and eax, reloc.WS2_32.dll_closesocket
jns 0x461ae1
dec eax
or eax, 0xfffffffc
inc eax
mov edx, dword [esp + 0x1c]
mov ecx, esi
mov esi, dword [esp + 0x2c]
sub edx, ebp
mov dword [esp + 0x44], edx
sub ecx, eax
mov edx, dword [esp + 0x18]
sub ebx, ebp
mov dword [esp + 0x38], edx
mov eax, ebp
sub dword [esp + 0x38], ebp
mov edx, dword [esp + 0x44]
mov ebp, dword [esp + 0x38]
nop dword [eax + eax]
movups xmm0, xmmword [eax]
add edi, 4
lea eax, [eax + 0x10]
movups xmm1, xmmword [ebx + eax - 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
movups xmm1, xmmword [edx + eax - 0x10]
movups xmm0, xmmword [eax + ebp - 0x10]
pxor xmm1, xmm0
movups xmmword [eax + ebp - 0x10], xmm1
cmp edi, ecx
jl 0x461b10
mov ebp, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
cmp edi, esi
jge 0x461b90
mov eax, dword [esp + 0x1c]
lea ecx, [edi*4]
sub eax, ebp
add ecx, ebp
mov dword [esp + 0x44], eax
sub ebx, ebp
mov eax, edx
sub eax, ebp
sub esi, edi
mov edi, dword [esp + 0x44]
mov ebp, eax
mov dword [esp + 0x38], eax
mov eax, dword [ecx + ebx]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
mov eax, dword [ecx + edi - 4]
xor dword [ecx + ebp - 4], eax
sub esi, 1
jne 0x461b72
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
cmp ebx, dword [esp + 0x40]
jne 0x461900
mov ebx, dword [esp + 0x30]
mov ecx, dword [ebx + 4]
test ecx, ecx
jle 0x461bc6
mov eax, dword [ebx]
lea edx, [ecx - 1]
lea edx, [eax + edx*4]
mov eax, dword [edx]
lea edx, [edx - 4]
test eax, eax
jne 0x461bc3
dec ecx
test ecx, ecx
jg 0x461bb5
mov dword [ebx + 4], ecx
push ebx
call fcn.00432200
mov edx, dword [esp + 0x1c]
mov ebx, eax
mov edi, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x14], ebx
jmp 0x461900
mov ebx, dword [esp + 0x20]
mov ecx, dword [ebx + 4]
test ecx, ecx
jle 0x461c06
mov eax, dword [ebx]
lea edx, [ecx - 1]
lea edx, [eax + edx*4]
mov eax, dword [edx]
lea edx, [edx - 4]
test eax, eax
jne 0x461c03
dec ecx
test ecx, ecx
jg 0x461bf5
mov dword [ebx + 4], ecx
push ebx
push dword [esp + 0x50]
call fcn.00432540
mov ebx, dword [esp + 0x60]
xor ecx, ecx
add esp, 8
mov edx, 1
test eax, eax
cmovne ecx, edx
mov dword [esp + 0x40], ecx
pop esi
pop ebp
pop edi
push ebx
call fcn.0044d650
mov eax, dword [esp + 0x38]
add esp, 4
pop ebx
add esp, 0x38
ret