Function at 0x5375b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx + 0x10]
push esi
push edi
mov esi, ecx
mov cl, byte [ebx + 0x3030]
push 0
push 4
mov byte [ebp + 0x13], cl
mov ecx, dword [ebp + 8]
test eax, eax
lea edi, [esi + 0x10]
push edi
mov dword [ebp - 0x18], eax
setne byte [ebp - 1]
call fcn.00535190
cmp byte [ebp + 0x13], 0
je 0x53760f
mov eax, dword [edi]
mov edx, eax
mov ecx, eax
shl edx, 0x10
and ecx, 0xff00
add edx, ecx
shr eax, 8
and eax, 0xff00
shl edx, 8
add edx, eax
movzx eax, byte [esi + 0x13]
add edx, eax
mov dword [edi], edx
mov eax, dword [edi]
mov cl, byte [ebp - 1]
test eax, eax
setne byte [ebp - 3]
test eax, eax
je 0x537637
test cl, cl
je 0x537633
cmp eax, dword [ebp - 0x18]
je 0x537633
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test eax, eax
jne 0x537646
test cl, cl
je 0x537642
mov ecx, dword [ebp - 0x18]
mov dword [edi], ecx
jmp 0x537650
test eax, eax
je 0x537650
test cl, cl
jne 0x537650
mov dword [edi], 0
mov edi, dword [ebp + 8]
push 0
push 1
lea edx, [ebp - 2]
push edx
mov ecx, edi
call fcn.00535190
mov al, byte [ebp - 2]
cmp al, 0x59
jne 0x53766f
mov byte [esi + 0x20], 1
jmp 0x537677
cmp al, 0x4e
jne 0x537677
mov byte [esi + 0x20], 0
push 0
push 4
push esi
mov ecx, edi
call fcn.00535190
cmp byte [ebp + 0x13], 0
je 0x5376af
mov eax, dword [esi]
mov ecx, eax
mov edx, eax
shl ecx, 0x10
and edx, 0xff00
add ecx, edx
shr eax, 8
and eax, 0xff00
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 3]
add ecx, eax
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
push 0
push 4
lea edi, [esi + 4]
push edi
call fcn.00535190
cmp byte [ebp + 0x13], 0
je 0x5376eb
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shl ecx, 0x10
and edx, 0xff00
add ecx, edx
shr eax, 8
and eax, 0xff00
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 7]
add ecx, eax
mov dword [edi], ecx
mov ecx, dword [ebp + 8]
push 0
push 4
lea edi, [esi + 8]
push edi
call fcn.00535190
cmp byte [ebp + 0x13], 0
je 0x537727
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shl ecx, 0x10
and edx, 0xff00
add ecx, edx
shr eax, 8
and eax, 0xff00
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 0xb]
add ecx, eax
mov dword [edi], ecx
mov eax, dword [edi]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00416703
add esp, 4
cmp byte [esi + 0x20], 0
mov dword [ebp - 0x10], eax
je 0x537787
mov ecx, dword [ebp + 8]
push 0
push 4
lea edi, [esi + 0x14]
push edi
call fcn.00535190
cmp byte [ebp + 0x13], 0
je 0x537787
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shl ecx, 0x10
and edx, 0xff00
add ecx, edx
shr eax, 8
and eax, 0xff00
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 0x17]
add ecx, eax
mov dword [edi], ecx
mov ecx, dword [ebp + 8]
push 0
push 4
lea edi, [esi + 0x18]
push edi
call fcn.00535190
cmp byte [ebp + 0x13], 0
je 0x5377c3
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shl ecx, 0x10
and edx, 0xff00
add ecx, edx
shr eax, 8
and eax, 0xff00
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 0x1b]
add ecx, eax
mov dword [edi], ecx
cmp byte [esi + 0x20], 0
je 0x537827
mov eax, dword [esi]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00416703
mov ecx, dword [esi]
add esp, 4
add ecx, ecx
add ecx, ecx
push 0
push ecx
mov ecx, dword [ebp + 8]
push eax
mov dword [esi + 0x24], eax
call fcn.00535190
mov eax, dword [esi]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00416703
mov ecx, dword [esi]
add esp, 4
add ecx, ecx
push 0
push ecx
mov ecx, dword [ebp + 8]
push eax
mov dword [esi + 0x28], eax
call fcn.00535190
mov eax, dword [esi]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00416703
mov ecx, dword [esi]
add esp, 4
add ecx, ecx
add ecx, ecx
push 0
push ecx
mov ecx, dword [ebp + 8]
push eax
mov dword [esi + 0x2c], eax
call fcn.00535190
mov eax, dword [esi]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00416703
mov ecx, dword [esi]
mov edi, dword [ebp + 8]
add esp, 4
add ecx, ecx
push 0
push ecx
push eax
mov ecx, edi
mov dword [esi + 0x30], eax
call fcn.00535190
cmp byte [ebp + 0x13], 0
je 0x53794c
xor ecx, ecx
cmp dword [esi], ecx
jbe 0x53794c
jmp 0x5378a0
cmp byte [esi + 0x20], 0
je 0x5378f3
mov edx, dword [esi + 0x24]
lea eax, [edx + ecx*4]
mov dword [ebp - 0x18], eax
mov eax, dword [eax]
mov edx, eax
shl edx, 0x10
mov edi, eax
and edi, 0xff00
add edx, edi
mov edi, dword [ebp - 0x18]
movzx edi, byte [edi + 3]
shl edx, 8
add edx, edi
shr eax, 8
and eax, 0xff00
add edx, eax
mov eax, dword [ebp - 0x18]
mov dword [eax], edx
mov edx, dword [esi + 0x28]
mov di, word [edx + ecx*2]
lea eax, [edx + ecx*2]
movzx edx, byte [eax + 1]
shl di, 8
xor dx, di
mov word [eax], dx
mov eax, dword [esi + 0x2c]
lea eax, [eax + ecx*4]
mov dword [ebp - 0x18], eax
mov eax, dword [eax]
mov edx, eax
shl edx, 0x10
mov edi, eax
and edi, 0xff00
add edx, edi
mov edi, dword [ebp - 0x18]
movzx edi, byte [edi + 3]
shl edx, 8
add edx, edi
shr eax, 8
and eax, 0xff00
add edx, eax
mov eax, dword [ebp - 0x18]
mov dword [eax], edx
mov edx, dword [esi + 0x30]
mov di, word [edx + ecx*2]
lea eax, [edx + ecx*2]
movzx edx, byte [eax + 1]
shl di, 8
xor dx, di
inc ecx
mov word [eax], dx
cmp ecx, dword [esi]
jb 0x5378a0
mov edi, dword [ebp + 8]
cmp byte [esi + 0x20], 0
je 0x53796f
mov eax, dword [esi + 0x14]
push eax
call fcn.00416703
mov ecx, dword [esi + 0x14]
add esp, 4
push 0
push ecx
push eax
mov ecx, edi
mov dword [esi + 0x3c], eax
call fcn.00535190
mov edx, dword [esi + 0x18]
push edx
call fcn.00416703
mov ecx, dword [esi + 0x18]
add esp, 4
push 0
push ecx
push eax
mov ecx, edi
mov dword [esi + 0x40], eax
call fcn.00535190
cmp byte [ebp + 0x13], 0
je 0x5379be
mov ecx, dword [esi + 0x40]
xor eax, eax
test dword [esi + 0x18], 0xfffffffe
jbe 0x5379be
movzx edx, byte [ecx + eax*2 + 1]
mov di, word [ecx + eax*2]
shl di, 8
xor dx, di
mov word [ecx + eax*2], dx
mov edx, dword [esi + 0x18]
inc eax
shr edx, 1
cmp eax, edx
jb 0x5379a0
cmp byte [esi + 0x20], 0
je 0x537c94
mov eax, dword [esi + 8]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00416703
mov ecx, dword [esi + 8]
mov edi, dword [ebp + 8]
add esp, 4
add ecx, ecx
push 0
push ecx
push eax
mov ecx, edi
mov dword [esi + 0x54], eax
call fcn.00535190
mov edx, dword [esi + 8]
mov eax, dword [ebp - 0x10]
add edx, edx
push 0
add edx, edx
push edx
push eax
mov ecx, edi
call fcn.00535190
cmp byte [ebp + 0x13], 0
je 0x537a70
xor ecx, ecx
cmp dword [esi + 8], ecx
jbe 0x537a70
lea esp, [esp]
mov edx, dword [esi + 0x54]
mov di, word [edx + ecx*2]
lea eax, [edx + ecx*2]
movzx edx, byte [eax + 1]
shl di, 8
xor dx, di
mov word [eax], dx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + ecx*4]
mov edx, eax
mov edi, eax
shl edx, 0x10
and edi, 0xff00
add edx, edi
mov edi, dword [ebp - 0x10]
movzx edi, byte [edi + ecx*4 + 3]
shl edx, 8
shr eax, 8
and eax, 0xff00
add edx, edi
add edx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax + ecx*4], edx
inc ecx
cmp ecx, dword [esi + 8]
jb 0x537a20
cmp byte [esi + 0x20], 0
je 0x537c94
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x537c94
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
jmp 0x537a90
mov edx, dword [esi + 0x54]
movzx eax, word [edx + edi*2]
lea eax, [eax + eax*2]
mov ecx, dword [ebx + eax*4 + 0x3c]
mov edx, dword [ebx + eax*4 + 0x40]
lea eax, [ebx + eax*4 + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
add eax, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xc], edx
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00416703
mov ecx, dword [esi + 0x54]
movzx ecx, word [ecx + edi*2]
add esp, 4
cmp byte [ebp - 1], 0
lea edx, [ecx + ecx*2]
mov dword [ebx + edx*4 + 0x40], eax
je 0x537b19
xor eax, eax
cmp dword [ebp - 0x18], eax
jbe 0x537b0d
jmp 0x537af0
mov ecx, dword [esi + 0x54]
movzx ecx, word [ecx + edi*2]
lea edx, [ecx + ecx*2]
mov ecx, dword [ebx + edx*4 + 0x40]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebp - 0x18]
jb 0x537af0
mov eax, dword [ebp - 0xc]
push eax
call fcn.004166f8
add esp, 4
mov ecx, dword [esi + 0x54]
movzx eax, word [ecx + edi*2]
mov ecx, dword [ebp - 0x14]
lea edx, [eax + eax*2]
lea eax, [ebx + edx*4 + 0x3c]
mov edx, dword [ecx]
add dword [eax], edx
cmp dword [ecx], 0
mov dword [ebp - 0x1c], 0
jbe 0x537c86
mov eax, dword [ebp - 0x18]
lea ecx, [eax*4]
mov dword [ebp - 0xc], ecx
jmp 0x537b50
mov ecx, dword [ebp + 8]
push 0
push 4
lea edx, [ebp - 8]
push edx
call fcn.00535190
cmp byte [ebp + 0x13], 0
je 0x537b92
mov ecx, dword [ebp - 8]
mov eax, ecx
shl eax, 0x10
mov edx, ecx
and edx, 0xff00
add eax, edx
mov edx, ecx
shr edx, 8
shl eax, 8
and edx, 0xff00
add eax, edx
shr ecx, 0x18
add eax, ecx
mov dword [ebp - 8], eax
jmp 0x537b95
mov eax, dword [ebp - 8]
cmp byte [ebp - 3], 0
je 0x537bbf
cmp byte [ebp - 1], 0
je 0x537bc5
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x54]
add ecx, eax
movzx eax, word [edx + edi*2]
lea eax, [eax + eax*2]
mov edx, dword [ebx + eax*4 + 0x40]
mov eax, dword [ebp - 0xc]
mov dword [eax + edx], ecx
jmp 0x537c6e
cmp byte [ebp - 1], 0
jne 0x537be4
mov ecx, dword [esi + 0x54]
movzx ecx, word [ecx + edi*2]
lea edx, [ecx + ecx*2]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebx + edx*4 + 0x40]
mov dword [ecx + edx], eax
add ecx, 4
mov dword [ebp - 0xc], ecx
jmp 0x537c74
mov ecx, dword [esi + 0x30]
movzx edx, word [ecx + eax*2]
mov ecx, dword [esi + 0x2c]
push edx
mov edx, dword [ecx + eax*4]
add edx, dword [esi + 0x40]
mov ecx, dword [esi + 0x28]
push edx
movzx edx, word [ecx + eax*2]
mov ecx, dword [esi + 0x24]
push edx
mov edx, dword [ecx + eax*4]
add edx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x54]
movzx ecx, word [ecx + edi*2]
push edx
lea edx, [ecx + ecx*2]
mov ecx, dword [ebx + edx*4 + 0x40]
mov edx, dword [ebp - 0x18]
push ecx
push edx
push eax
mov ecx, ebx
call fcn.005371c0
test al, al
je 0x537c54
mov eax, dword [esi + 0x28]
mov edx, dword [ebp - 8]
xor ecx, ecx
mov word [eax + edx*2], cx
mov eax, dword [esi + 0x30]
mov edx, dword [ebp - 8]
mov word [eax + edx*2], cx
mov eax, dword [esi + 0x54]
movzx eax, word [eax + edi*2]
lea ecx, [eax + eax*2]
dec dword [ebx + ecx*4 + 0x3c]
dec dword [esi + 4]
lea eax, [ebx + ecx*4 + 0x3c]
jmp 0x537c74
mov eax, dword [esi + 0x54]
movzx eax, word [eax + edi*2]
mov edx, dword [esi + 0x10]
add edx, dword [ebp - 8]
lea ecx, [eax + eax*2]
mov ecx, dword [ebx + ecx*4 + 0x40]
mov eax, dword [ebp - 0xc]
mov dword [eax + ecx], edx
add eax, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, dword [edx]
jb 0x537b50
add dword [ebp - 0x14], 4
inc edi
cmp edi, dword [esi + 8]
jb 0x537a90
mov ebx, dword [ebp + 8]
push 0
push 4
lea edi, [esi + 0xc]
push edi
mov ecx, ebx
call fcn.00535190
cmp byte [ebp + 0x13], 0
je 0x537cd2
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shl ecx, 0x10
and edx, 0xff00
add ecx, edx
shr eax, 8
and eax, 0xff00
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 0xf]
add ecx, eax
mov dword [edi], ecx
cmp dword [edi], 0
je 0x537e9d
push 0
lea eax, [esi + 0x1c]
push 4
push eax
mov ecx, ebx
call fcn.00535190
cmp byte [ebp + 0x13], 0
je 0x537d18
mov eax, dword [esi + 0x1c]
mov ecx, eax
mov edx, eax
shl ecx, 0x10
and edx, 0xff00
add ecx, edx
shr eax, 8
and eax, 0xff00
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 0x1f]
add ecx, eax
mov dword [esi + 0x1c], ecx
mov eax, dword [edi]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00416703
mov ecx, dword [edi]
add esp, 4
add ecx, ecx
add ecx, ecx
push 0
push ecx
push eax
mov ecx, ebx
mov dword [esi + 0x58], eax
call fcn.00535190
mov eax, dword [edi]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00416703
mov ecx, dword [edi]
add esp, 4
add ecx, ecx
add ecx, ecx
push 0
push ecx
push eax
mov ecx, ebx
mov dword [esi + 0x34], eax
call fcn.00535190
mov eax, dword [edi]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00416703
mov ecx, dword [edi]
add esp, 4
add ecx, ecx
push 0
push ecx
push eax
mov ecx, ebx
mov dword [esi + 0x38], eax
call fcn.00535190
cmp byte [ebp + 0x13], 0
je 0x537e4e
xor ecx, ecx
cmp dword [edi], ecx
jbe 0x537e4e
jmp 0x537dc0
mov edx, dword [esi + 0x38]
mov bx, word [edx + ecx*2]
lea eax, [edx + ecx*2]
movzx edx, byte [eax + 1]
shl bx, 8
xor dx, bx
mov word [eax], dx
mov eax, dword [esi + 0x34]
lea eax, [eax + ecx*4]
mov dword [ebp - 0x1c], eax
mov eax, dword [eax]
mov edx, eax
shl edx, 0x10
mov ebx, eax
and ebx, 0xff00
add edx, ebx
mov ebx, dword [ebp - 0x1c]
movzx ebx, byte [ebx + 3]
shl edx, 8
add edx, ebx
shr eax, 8
and eax, 0xff00
add edx, eax
mov eax, dword [ebp - 0x1c]
mov dword [eax], edx
mov edx, dword [esi + 0x58]
lea eax, [edx + ecx*4]
mov dword [ebp - 0x1c], eax
mov eax, dword [eax]
mov edx, eax
mov ebx, eax
shl edx, 0x10
and ebx, 0xff00
add edx, ebx
mov ebx, dword [ebp - 0x1c]
movzx ebx, byte [ebx + 3]
shl edx, 8
shr eax, 8
and eax, 0xff00
add edx, ebx
add edx, eax
mov eax, dword [ebp - 0x1c]
inc ecx
mov dword [eax], edx
cmp ecx, dword [edi]
jb 0x537dc0
mov ebx, dword [ebp + 8]
mov ecx, dword [esi + 0x1c]
lea edi, [esi + 0x1c]
push ecx
call fcn.00416703
mov edx, dword [edi]
add esp, 4
push 0
push edx
push eax
mov ecx, ebx
mov dword [esi + 0x44], eax
call fcn.00535190
cmp byte [ebp + 0x13], 0
je 0x537e9d
mov esi, dword [esi + 0x44]
xor eax, eax
test dword [edi], 0xfffffffe
jbe 0x537e9d
movzx ecx, byte [esi + eax*2 + 1]
mov dx, word [esi + eax*2]
shl dx, 8
xor cx, dx
mov word [esi + eax*2], cx
mov ecx, dword [edi]
inc eax
shr ecx, 1
cmp eax, ecx
jb 0x537e80
mov edx, dword [ebp - 0x10]
push edx
call fcn.004166f8
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc