Function at 0x51db90
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x64
call fcn.0052e070
mov eax, dword [0x6c0924]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x68]
push ebx
push esi
mov esi, dword [esp + 0x74]
push edi
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x80]
push eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], 0
call fcn.004cbff0
mov ebx, dword [esp + 0x4c]
push ebx
call fcn.004cbe40
add esp, 8
mov dword [esp + 0x24], eax
test eax, eax
je 0x51e07f
push ebx
call fcn.004cbe40
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
je 0x51e07f
push ebp
push ebx
call fcn.004cbe40
mov ebp, eax
add esp, 4
mov dword [esp + 0x48], ebp
test ebp, ebp
je 0x51e07e
push ebx
call fcn.004cbe40
mov ebx, eax
add esp, 4
mov dword [esp + 0x34], ebx
test ebx, ebx
je 0x51e07e
push 6
lea eax, [esp + 0x5c]
push eax
push edi
call fcn.0051e860
add esp, 0xc
test eax, eax
je 0x51e063
cmp eax, 6
jg 0x51e063
lea eax, [esp + 0x58]
push eax
push esi
push ebp
call fcn.0051d750
add esp, 0xc
test eax, eax
je 0x51e07e
push ebp
call fcn.0049a230
add esp, 4
test eax, eax
jne 0x51e07e
push edi
push ebx
call fcn.00499ee0
add esp, 8
test eax, eax
je 0x51e07e
push ebp
call fcn.0049a2f0
push dword [esp + 0x38]
mov ebx, eax
mov dword [esp + 0x20], ebx
call fcn.0049a2f0
mov edi, dword [edi + 4]
push edi
push ebp
mov dword [esp + 0x50], eax
mov dword [esp + 0x24], edi
call fcn.0049a980
add esp, 0x10
test eax, eax
je 0x51e07e
mov eax, dword [ebp + 4]
mov esi, dword [ebp]
mov dword [esp + 0x3c], esi
cmp eax, edi
jge 0x51dcde
mov ecx, dword [esp + 0x14]
lea edi, [esi + eax*4]
sub ecx, eax
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x14]
mov dword [ebp + 4], edi
mov ebp, dword [esp + 0x28]
push edi
push ebp
call fcn.0049a980
add esp, 8
test eax, eax
je 0x51e07e
mov edx, ebp
mov ebp, dword [edx]
mov dword [esp + 0x20], ebp
mov dword [ebp], 1
cmp edi, 1
jle 0x51dd19
lea ecx, [edi - 1]
xor eax, eax
lea edi, [ebp + 4]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x14]
push edi
push dword [esp + 0x28]
mov dword [edx + 4], edi
call fcn.0049a980
add esp, 8
test eax, eax
je 0x51e07e
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
mov dword [esp + 0x1c], edx
test edi, edi
jle 0x51dd4f
mov ecx, edi
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
mov dword [eax + 4], edi
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
nop dword [eax]
test ebx, ebx
je 0x51de42
nop dword [eax + eax]
mov ebx, dword [esi]
test bl, 1
jne 0x51de3a
mov ecx, dword [esp + 0x44]
lea edx, [edi - 1]
mov eax, dword [ebp]
mov ebp, eax
and ebp, 1
neg ebp
mov ecx, dword [ecx]
mov ecx, dword [ecx]
and ecx, ebp
xor eax, ecx
xor ecx, ecx
mov dword [esp + 0x38], ecx
test edx, edx
jle 0x51de18
mov ecx, dword [esp + 0x20]
mov edx, esi
sub edx, ecx
mov dword [esp + 0x30], edx
lea edi, [ecx + 4]
mov ecx, 0xfffffffc
sub ecx, dword [esp + 0x20]
mov dword [esp + 0x2c], ecx
nop word [eax + eax]
mov edx, dword [edx + edi]
mov ecx, edx
shl ecx, 0x1f
shr ebx, 1
or ecx, ebx
shr eax, 1
mov ebx, dword [esp + 0x38]
mov dword [esi + ebx*4], ecx
mov ebx, edx
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x3c]
add edx, edi
mov ecx, dword [ecx]
mov edx, dword [edx + ecx + 4]
and edx, ebp
xor edx, dword [edi]
mov ecx, edx
shl ecx, 0x1f
or ecx, eax
mov eax, edx
mov edx, dword [esp + 0x14]
mov dword [edi - 4], ecx
dec edx
mov ecx, dword [esp + 0x38]
add edi, 4
inc ecx
cmp ecx, edx
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0x30]
jl 0x51ddc0
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
shr ebx, 1
mov dword [esi + ecx*4], ebx
mov ebx, dword [esp + 0x18]
shr eax, 1
sub ebx, 1
mov dword [ebp + ecx*4], eax
mov dword [esp + 0x18], ebx
jne 0x51dd70
jmp 0x51de3e
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
cmp ebx, 0x20
jg 0x51de5a
mov eax, dword [esi]
test eax, eax
je 0x51e07e
cmp eax, 1
je 0x51e03a
mov edx, dword [esp + 0x40]
cmp ebx, edx
jge 0x51deaa
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x40], ebx
mov ebx, edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x48], edx
mov edx, eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x28], esi
mov esi, ecx
mov dword [esp + 0x18], ebx
mov ecx, dword [edx]
mov dword [esp + 0x10], ecx
mov ecx, dword [eax]
mov dword [esp + 0x34], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ecx
jmp 0x51deae
mov ecx, dword [esp + 0x1c]
xor edx, edx
test edi, edi
jle 0x51dfe2
cmp edi, 4
jb 0x51df95
lea ebx, [edi - 1]
lea eax, [edi*4 - 4]
lea ebx, [ecx + ebx*4]
add eax, ebp
cmp ebp, ebx
ja 0x51dedc
cmp eax, ecx
jae 0x51df95
lea ecx, [edi - 1]
lea ecx, [esi + ecx*4]
cmp ebp, ecx
ja 0x51deee
cmp eax, esi
jae 0x51df95
mov esi, dword [esp + 0x10]
sub esi, 4
lea edi, [esi + edi*4]
mov esi, dword [esp + 0x3c]
cmp ebp, edi
ja 0x51df0a
cmp eax, dword [esp + 0x10]
jae 0x51df91
cmp esi, ebx
mov ebx, dword [esp + 0x1c]
ja 0x51df16
cmp ecx, ebx
jae 0x51df91
cmp esi, edi
ja 0x51df26
mov eax, dword [esp + 0x10]
cmp ecx, eax
jae 0x51e031
mov ecx, dword [esp + 0x14]
mov eax, ecx
and eax, reloc.WS2_32.dll_closesocket
jns 0x51df38
dec eax
or eax, 0xfffffffc
inc eax
mov edi, dword [esp + 0x10]
sub ecx, eax
mov dword [esp + 0x30], ecx
sub edi, esi
mov ecx, ebp
sub ebx, esi
sub ecx, esi
mov eax, esi
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x30]
mov ebp, dword [esp + 0x2c]
nop dword [eax + eax]
movups xmm0, xmmword [eax]
add edx, 4
lea eax, [eax + 0x10]
movups xmm1, xmmword [edi + eax - 0x10]
pxor xmm1, xmm0
movups xmm0, xmmword [eax + ebp - 0x10]
movups xmmword [eax - 0x10], xmm1
movups xmm1, xmmword [ebx + eax - 0x10]
pxor xmm1, xmm0
movups xmmword [eax + ebp - 0x10], xmm1
cmp edx, ecx
jl 0x51df60
mov ebp, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp edx, edi
jge 0x51dfde
mov ebx, eax
lea ecx, [esi + edx*4]
mov eax, dword [esp + 0x1c]
sub ebp, esi
sub eax, esi
mov dword [esp + 0x2c], ebp
sub ebx, esi
mov dword [esp + 0x30], eax
sub edi, edx
mov edx, eax
nop dword [eax + eax]
mov eax, dword [ecx + ebx]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
mov eax, dword [ecx + edx - 4]
xor dword [ecx + ebp - 4], eax
sub edi, 1
jne 0x51dfc0
mov ebp, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
cmp ebx, dword [esp + 0x40]
jne 0x51dd60
lea eax, [ebx - 1]
cdq
and edx, 0x1f
lea edi, [edx + eax]
sar edi, 5
mov eax, dword [esi + edi*4]
test eax, eax
jne 0x51e011
test edi, edi
je 0x51e011
mov eax, dword [esi + edi*4 - 4]
dec edi
test eax, eax
je 0x51e004
push eax
call fcn.0049a360
mov ecx, dword [esp + 0x14]
add esp, 4
shl edi, 5
lea ebx, [edi + eax]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x18], ebx
jmp 0x51dd60
mov edi, dword [esp + 0x14]
jmp 0x51df99
mov ebp, dword [esp + 0x28]
push ebp
call fcn.0049a7a0
push ebp
push dword [esp + 0x5c]
call fcn.00499ee0
xor ecx, ecx
add esp, 0xc
test eax, eax
mov edx, 1
cmovne ecx, edx
mov dword [esp + 0x50], ecx
jmp 0x51e07e
push 0x196
push 0x679ea0
push 0x6a
push 0x83
push 3
call fcn.00492a30
add esp, 0x14
pop ebp
push dword [esp + 0x48]
call fcn.004cbd40
mov ecx, dword [esp + 0x70]
add esp, 4
mov eax, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0052e057
add esp, 0x64
ret