Function at 0x50c6e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
push ebx
push esi
mov esi, dword [edx]
xor ebx, ebx
push edi
mov edi, ecx
mov dword [esp + 0x24], 0
mov ecx, dword [edx + 0x14]
inc esi
push esi
mov dword [esp + 0x34], edi
mov eax, dword [edi]
push dword [edi + 0xc]
mov dword [esp + 0x40], eax
mov eax, dword [edx + 4]
mov dword [esp + 0x20], eax
mov eax, dword [edx + 0x10]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
call fcn.004676b0
mov ecx, dword [esp + 0x38]
add esp, 8
mov edi, eax
mov dword [esp + 0x10], edi
mov ecx, dword [ecx + 0xc]
push esi
push ecx
test edi, edi
jne 0x50c762
call fcn.00467900
sub eax, 5
add esp, 8
neg eax
sbb eax, eax
and eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00467260
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x5c], eax
mov ecx, dword [ecx + 0x24]
mov edx, dword [ecx]
mov dword [esp + 0x54], edx
lea edx, [esp + 0x50]
push edx
push eax
mov eax, dword [esp + 0x40]
push edi
mov edx, dword [eax + 0x14]
call fcn.004f5cd0
add esp, 0x14
test eax, eax
jne 0x50cf01
jmp 0x50c7a4
mov ebx, dword [esp + 0x20]
mov edi, dword [ebp + 0x20]
lea eax, [esp + 0x24]
mov dword [esp + 0x50], 0xffffffff
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x20], 0
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x30], 0
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x70]
push eax
mov eax, dword [esp + 0x60]
push dword [esp + 0x5c]
mov eax, dword [eax + 0x14]
call eax
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x50ce5d
mov edx, dword [esp + 0x18]
cmp dword [esp + 0x24], edx
jl 0x50c7a7
cmp dword [esp + 0x2c], eax
jne 0x50cb5a
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x10]
sub eax, ebx
mov dword [esp + 0x44], eax
lea eax, [ebx + ecx]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x40], eax
mov eax, ebx
or eax, dword [esp + 0xc]
je 0x50c9e0
mov eax, ebx
mov dword [esp + 0x34], esi
and eax, 1
or eax, esi
jne 0x50c867
mov edi, dword [esp + 0xc]
inc esi
xor edx, edx
xor ecx, ecx
mov eax, esi
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, ebx
and ecx, edi
or edx, ecx
je 0x50c840
mov edi, dword [ebp + 0x20]
mov dword [esp + 0x34], esi
mov ebx, dword [ebp + 0x10]
xor edx, edx
dec ebx
mov dword [esp + 0x2c], 0
xor ecx, ecx
mov eax, ebx
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, dword [esp + 0x14]
and ecx, dword [esp + 0xc]
or edx, ecx
jne 0x50c8ce
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x14]
nop
dec ebx
xor edx, edx
xor ecx, ecx
mov eax, ebx
bts edx, eax
inc edi
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, esi
and ecx, dword [esp + 0xc]
or edx, ecx
je 0x50c8a0
mov esi, dword [esp + 0x34]
mov dword [esp + 0x2c], edi
mov edi, dword [ebp + 0x20]
sub esi, dword [esp + 0x2c]
mov eax, esi
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
test ebx, ebx
jle 0x50c9d4
mov eax, dword [esp + 0x38]
mov dword [esp + 0x2c], 0
mov ecx, dword [eax + 0x24]
mov eax, dword [ecx]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x34]
push dword [esp + 0x48]
push dword [esp + 0x48]
mov edx, dword [eax + 0x14]
call fcn.004f5cd0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x50ceef
add ebx, dword [ebp + 0x10]
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x34]
nop dword [eax]
cmp dword [esp + 0x2c], ebx
jge 0x50c97a
lea ecx, [esp + 0x2c]
mov dword [esp + 0x58], 0
push ecx
lea ecx, [esp + 0x48]
mov dword [esp + 0x44], 0
push ecx
lea ecx, [esp + 0x48]
mov dword [esp + 0x4c], 0
push ecx
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x74]
push ecx
push eax
mov eax, dword [edi + 0x14]
call eax
mov esi, eax
add esp, 0x18
mov eax, dword [esp + 0x3c]
test esi, esi
je 0x50c930
push eax
mov eax, edi
mov eax, dword [eax + 0x10]
call eax
mov edi, dword [ebp + 0x20]
add esp, 4
test esi, esi
je 0x50c995
cmp esi, 0x65
jne 0x50ceef
mov edx, dword [esp + 0x18]
xor eax, eax
mov ecx, dword [esp + 0x10]
cmp esi, 0x65
sete al
sub eax, dword [ebp + 0x10]
add eax, dword [esp + 0x2c]
test eax, eax
jle 0x50c9dc
movq xmm1, qword [esp + 0x68]
add edx, eax
movd xmm0, eax
psrlq xmm1, xmm0
movq qword [esp + 0x68], xmm1
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0x68]
mov dword [esp + 0xc], eax
jmp 0x50c9e0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x14], ebx
xor esi, esi
mov ebx, dword [esp + 0xc]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x2c], 1
test edx, edx
jg 0x50caac
cmp dword [ebp + 8], esi
jg 0x50caac
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x50cb39
jns 0x50ca29
mov ebx, ecx
lea ecx, [ebx + 1]
nop
mov al, byte [ebx]
inc ebx
test al, al
jne 0x50ca20
sub ebx, ecx
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
inc ecx
add ecx, ebx
cmp ecx, eax
jl 0x50ca7d
cdq
mov esi, eax
mov ecx, edx
mov eax, ebx
cdq
add esi, eax
mov eax, dword [edi]
mov dword [esp + 0x44], eax
adc ecx, edx
add esi, 0x64
adc ecx, 0
mov dword [esp + 0x58], ecx
call fcn.004e4f50
test eax, eax
jne 0x50ce53
push dword [esp + 0x58]
mov ecx, dword [esp + 0x48]
push esi
call fcn.0043b4b0
add esp, 8
test eax, eax
je 0x50ce53
mov dword [edi], eax
mov dword [edi + 8], esi
mov esi, dword [edi + 4]
mov edi, dword [edi]
mov edx, dword [esp + 0x10]
push ebx
push edx
lea eax, [edi + esi]
push eax
call fcn.00570750
mov edx, dword [esp + 0x24]
lea eax, [esi + ebx]
mov ebx, dword [ebp + 0x20]
add esp, 0xc
mov byte [edi + eax], 0
xor esi, esi
mov dword [ebx + 4], eax
jmp 0x50cb3c
mov ebx, dword [ebp + 0x1c]
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x50cab2
mov eax, dword [edi + 8]
sub ebx, ecx
mov ecx, dword [edi + 4]
inc ecx
add ecx, ebx
cmp ecx, eax
jl 0x50cb0f
cdq
mov esi, eax
mov ecx, edx
mov eax, ebx
cdq
add esi, eax
mov eax, dword [edi]
mov dword [esp + 0x44], eax
adc ecx, edx
add esi, 0x64
adc ecx, 0
mov dword [esp + 0x58], ecx
call fcn.004e4f50
test eax, eax
jne 0x50ce53
push dword [esp + 0x58]
mov ecx, dword [esp + 0x48]
push esi
call fcn.0043b4b0
add esp, 8
test eax, eax
je 0x50ce53
mov dword [edi], eax
mov dword [edi + 8], esi
mov esi, dword [edi + 4]
mov edi, dword [edi]
push ebx
push dword [ebp + 0x1c]
lea eax, [edi + esi]
push eax
call fcn.00570750
mov edx, dword [esp + 0x24]
lea eax, [esi + ebx]
mov ebx, dword [ebp + 0x20]
add esp, 0xc
mov byte [eax + edi], 0
xor esi, esi
mov dword [ebx + 4], eax
jmp 0x50cb3c
mov ebx, dword [ebp + 0x20]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
cmp edi, edx
jl 0x50c7a0
jmp 0x50cb61
mov ebx, dword [ebp + 0x20]
mov edi, dword [esp + 0x24]
mov eax, dword [ebp + 0x10]
add eax, edx
cmp edi, eax
jge 0x50cdc9
mov eax, edi
xor ecx, ecx
sub eax, edx
xor edx, edx
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, dword [esp + 0x14]
and ecx, dword [esp + 0xc]
or edx, ecx
je 0x50cb9a
mov ebx, 1
jmp 0x50cb9c
xor ebx, ebx
cmp edi, dword [esp + 0x18]
mov edi, dword [ebp + 0x20]
mov dword [esp + 0x40], ebx
jle 0x50cbcf
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
sub eax, ecx
push eax
lea edx, [edx + ecx]
mov ecx, edi
call fcn.0050c620
mov esi, eax
add esp, 4
test esi, esi
jne 0x50cdb4
test ebx, ebx
je 0x50cc5f
mov ebx, dword [ebp + 0x14]
lea ecx, [ebx + 1]
nop dword [eax]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x50cbe0
mov eax, dword [edi + 8]
sub ebx, ecx
mov ecx, dword [edi + 4]
inc ecx
add ecx, ebx
cmp ecx, eax
jl 0x50cc3d
cdq
mov esi, eax
mov ecx, edx
mov eax, ebx
cdq
add esi, eax
mov eax, dword [edi]
mov dword [esp + 0x44], eax
adc ecx, edx
add esi, 0x64
adc ecx, 0
mov dword [esp + 0x58], ecx
call fcn.004e4f50
test eax, eax
jne 0x50ce53
push dword [esp + 0x58]
mov ecx, dword [esp + 0x48]
push esi
call fcn.0043b4b0
add esp, 8
test eax, eax
je 0x50ce53
mov dword [edi], eax
mov dword [edi + 8], esi
mov esi, dword [edi + 4]
mov edi, dword [edi]
push ebx
push dword [ebp + 0x14]
lea eax, [edi + esi]
push eax
call fcn.00570750
lea eax, [esi + ebx]
add esp, 0xc
mov ebx, dword [ebp + 0x20]
mov byte [eax + edi], 0
mov dword [ebx + 4], eax
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
sub ecx, ebx
mov dword [esp + 0x34], ecx
lea eax, [ebx + eax]
mov dword [esp + 0x5c], eax
jns 0x50cc8d
mov ecx, eax
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50cc80
sub ecx, edx
mov dword [esp + 0x34], ecx
mov edi, dword [ebp + 0x20]
mov eax, dword [edi + 4]
mov edx, dword [edi + 8]
inc eax
add eax, ecx
mov dword [esp + 0x44], edx
cmp eax, edx
jl 0x50cceb
mov eax, edx
cdq
mov ebx, eax
mov esi, edx
mov eax, ecx
cdq
add ebx, eax
mov eax, dword [edi]
mov dword [esp + 0x58], eax
adc esi, edx
add ebx, 0x64
mov dword [esp + 0x44], ebx
adc esi, 0
call fcn.004e4f50
test eax, eax
jne 0x50ce53
mov ecx, dword [esp + 0x58]
push esi
push ebx
call fcn.0043b4b0
add esp, 8
test eax, eax
je 0x50ce53
mov ecx, dword [esp + 0x34]
mov dword [edi], eax
mov dword [edi + 8], ebx
mov ebx, dword [edi]
mov esi, dword [edi + 4]
push ecx
push dword [esp + 0x60]
mov dword [esp + 0x28], ebx
lea eax, [ebx + esi]
push eax
call fcn.00570750
mov ecx, dword [esp + 0x40]
add esp, 0xc
add ecx, esi
xor esi, esi
mov dword [edi + 4], ecx
mov byte [ecx + ebx], 0
cmp dword [esp + 0x40], esi
je 0x50cdb4
mov ebx, dword [ebp + 0x18]
lea edx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x50cd24
sub ebx, edx
lea eax, [ecx + 1]
mov ecx, dword [esp + 0x44]
add eax, ebx
cmp eax, ecx
jl 0x50cd83
mov eax, ecx
cdq
mov esi, eax
mov ecx, edx
mov eax, ebx
cdq
add esi, eax
adc ecx, edx
add esi, 0x64
adc ecx, 0
mov dword [esp + 0x5c], ecx
call fcn.004e4f50
test eax, eax
jne 0x50ce53
push dword [esp + 0x5c]
mov ecx, dword [esp + 0x24]
push esi
call fcn.0043b4b0
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
je 0x50ce53
mov dword [edi], eax
mov dword [edi + 8], esi
jmp 0x50cd87
mov eax, dword [esp + 0x20]
mov esi, dword [edi + 4]
add eax, esi
push ebx
push dword [ebp + 0x18]
push eax
call fcn.00570750
mov ecx, dword [esp + 0x2c]
lea eax, [esi + ebx]
add esp, 0xc
mov dword [edi + 4], eax
mov byte [eax + ecx], 0
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x20], ebx
jmp 0x50c7a7
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x20], ebx
test esi, esi
je 0x50c7a7
jmp 0x50ceef
cmp dword [ebp + 0xc], 0
je 0x50ceef
mov esi, dword [ebp + 0x1c]
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x50cde0
mov eax, dword [ebx + 8]
sub esi, ecx
mov ecx, dword [ebx + 4]
inc ecx
mov dword [esp + 0x44], esi
add ecx, esi
cmp ecx, eax
jl 0x50ce33
cdq
mov edi, eax
mov ecx, edx
mov eax, esi
mov esi, dword [ebx]
cdq
add edi, eax
adc ecx, edx
add edi, 0x64
adc ecx, 0
mov dword [esp + 0x5c], ecx
call fcn.004e4f50
test eax, eax
jne 0x50ce53
push dword [esp + 0x5c]
mov ecx, esi
push edi
call fcn.0043b4b0
add esp, 8
test eax, eax
je 0x50ce53
mov dword [ebx], eax
mov dword [ebx + 8], edi
mov esi, dword [ebx + 4]
mov edi, dword [ebx]
push dword [esp + 0x44]
push dword [ebp + 0x1c]
lea eax, [edi + esi]
push eax
call fcn.00570750
mov eax, dword [esp + 0x50]
add eax, esi
jmp 0x50cee3
mov esi, 7
jmp 0x50ceef
cmp esi, 0x65
jne 0x50ceef
add ebx, dword [esp + 0x10]
lea ecx, [ebx + 1]
nop dword [eax]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x50ce70
mov eax, dword [edi + 8]
sub ebx, ecx
mov ecx, dword [edi + 4]
inc ecx
add ecx, ebx
cmp ecx, eax
jl 0x50cec5
cdq
mov esi, eax
mov ecx, edx
mov eax, ebx
cdq
add esi, eax
mov eax, dword [edi]
mov dword [esp + 0x58], eax
adc ecx, edx
add esi, 0x64
adc ecx, 0
mov dword [esp + 0x5c], ecx
call fcn.004e4f50
test eax, eax
jne 0x50ce53
push dword [esp + 0x5c]
mov ecx, dword [esp + 0x5c]
push esi
call fcn.0043b4b0
add esp, 8
test eax, eax
je 0x50ce53
mov dword [edi], eax
mov dword [edi + 8], esi
mov esi, dword [edi + 4]
mov edi, dword [edi]
mov eax, dword [esp + 0x10]
add eax, dword [esp + 0x20]
push ebx
push eax
lea eax, [edi + esi]
push eax
call fcn.00570750
lea eax, [esi + ebx]
mov ebx, dword [ebp + 0x20]
add esp, 0xc
mov byte [eax + edi], 0
xor esi, esi
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x4c]
push dword [esp + 0x48]
mov eax, dword [eax + 0x10]
call eax
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret