Function at 0x537800
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc8
call fcn.0055bc20
mov eax, dword [0x5e2ec0]
xor eax, esp
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0xcc]
push edi
mov edi, dword [esi + 0x294]
mov dword [esp + 8], eax
lea eax, [edi + 0x10]
mov dword [esp + 0x24], ecx
mov dword [esp + 4], edx
cmp dword [esp + 0xd4], eax
je 0x537856
xor eax, eax
pop edi
mov ecx, dword [esp + 0xc4]
xor ecx, esp
call fcn.0055a67a
add esp, 0xc8
ret
lea ecx, [esp + 0x28]
neg ecx
and ecx, 0xf
lea ecx, [esp + ecx + 0x28]
push ebx
lea ebx, [ecx + 0x30]
push ebp
mov dword [esp + 0x18], ecx
lea ebp, [ecx + 0x40]
mov dword [esp + 0x28], ebx
cmp edi, 0x40
ja 0x5379aa
lea eax, [esi + 0x100]
push eax
lea edx, [esi + 0xe0]
push edx
push 0x80
push 0x5c9d40
push ecx
mov dword [eax], 0
mov dword [esp + 0x38], 0x80
call fcn.00504b00
mov eax, dword [esp + 0x2c]
push eax
lea eax, [esi + 0x158]
push eax
call fcn.00505270
mov ecx, dword [esi + 0x264]
mov edx, dword [esi + 0x268]
mov dword [ebx], ecx
mov ecx, dword [esi + 0x26c]
mov dword [ebx + 4], edx
mov edx, dword [esi + 0x270]
xor eax, eax
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
add esp, 0x1c
xor ebx, ebx
test byte [esi + 0x1c], 2
mov dword [esi + 0x150], eax
mov dword [esi + 0x278], 0xd
mov dword [esi + 0x27c], eax
mov dword [esi + 0x280], edi
mov dword [esi + 0x284], eax
je 0x537940
test edi, edi
jbe 0x537980
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
sub ecx, ebp
sub edx, ebp
mov eax, ebp
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], edi
mov ebx, edi
movzx edx, byte [ecx + eax]
xor byte [eax], dl
mov dl, byte [eax]
mov edi, dword [esp + 0x20]
mov byte [edi + eax], dl
inc eax
sub dword [esp + 0x14], 1
jne 0x537927
jmp 0x537980
test edi, edi
jbe 0x537980
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
sub ecx, edx
sub edx, ebp
mov eax, ebp
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], edi
mov ebx, edi
jmp 0x53796a
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
lea edi, [eax + edx]
mov cl, byte [edi + ecx]
mov dl, byte [eax]
xor dl, cl
mov byte [eax], cl
inc eax
sub dword [esp + 0x14], 1
mov byte [edi], dl
jne 0x537962
add dword [esp + 0xc], ebx
add dword [esp + 0x10], ebx
mov edi, ebx
neg edi
and edi, 0xf
push edi
lea eax, [ebx + ebp]
push 0
push eax
call fcn.0055bfc0
add ebx, edi
add esp, 0xc
add ebp, ebx
lea eax, [ebx + 0x10]
jmp 0x537ab3
lea ebx, [esi + 0x100]
push ebx
lea eax, [esi + 0xe0]
push eax
push 0x40
push 0x5c9d40
push ecx
mov dword [ebx], 0
mov dword [esp + 0x38], 0x40
call fcn.00504b00
mov edx, dword [esp + 0x2c]
push edx
lea eax, [esi + 0x158]
push eax
call fcn.00505270
push 0x10
lea eax, [esi + 0x264]
push eax
lea eax, [esi + 0x158]
push eax
mov dword [ebx], 1
mov dword [esi + 0x150], 0
call fcn.00505330
xor eax, eax
add esp, 0x28
test byte [esi + 0x1c], 2
mov dword [esp + 0x28], ebp
mov dword [esp + 0x1c], eax
mov dword [esi + 0x278], 0xd
mov dword [esi + 0x27c], eax
mov dword [esi + 0x280], edi
mov dword [esi + 0x284], eax
je 0x537a60
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
lea eax, [esi + 0xe0]
push eax
push edi
push ecx
push ebx
call fcn.00504b00
push edi
lea eax, [esi + 0x158]
push ebx
push eax
call fcn.00505330
jmp 0x537a8a
mov edx, dword [esp + 0xc]
push edi
push edx
lea eax, [esi + 0x158]
push eax
call fcn.00505330
mov ecx, dword [esp + 0x1c]
push ebx
lea eax, [esi + 0xe0]
push eax
mov eax, dword [esp + 0x20]
push edi
push eax
push ecx
call fcn.00504b00
add dword [esp + 0x2c], edi
add dword [esp + 0x30], edi
add esp, 0x20
neg edi
and edi, 0xf
push edi
lea eax, [esi + 0x158]
push 0x5c9d40
push eax
call fcn.00505330
mov eax, dword [esp + 0x28]
add esp, 0xc
mov edx, dword [esi + 0x278]
mov ecx, dword [esi + 0x27c]
mov ebx, dword [esp + 0x28]
mov dword [ebp], edx
mov edx, dword [esi + 0x280]
add eax, 0x10
push eax
mov dword [ebp + 4], ecx
mov ecx, dword [esi + 0x284]
push ebx
lea edi, [esi + 0x158]
mov dword [ebp + 8], edx
push edi
mov dword [ebp + 0xc], ecx
call fcn.00505330
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
push edx
push eax
call fcn.0046b340
add esp, 0x14
test byte [esi + 0x1c], 2
lea eax, [esi + 0x254]
jne 0x537b0c
mov eax, ebx
push eax
push edi
call fcn.005053e0
add esp, 8
test byte [esi + 0x1c], 2
mov dword [esi + 0x294], 0xffffffff
je 0x537b77
mov ecx, dword [esi + 0x254]
mov eax, dword [esp + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x258]
mov dword [eax + 4], edx
mov ecx, dword [esi + 0x25c]
mov dword [eax + 8], ecx
mov edx, dword [esi + 0x260]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0xdc]
mov ecx, dword [esp + 0x2c]
pop ebp
pop ebx
mov dword [ecx], eax
mov eax, 1
pop edi
mov ecx, dword [esp + 0xc4]
xor ecx, esp
call fcn.0055a67a
add esp, 0xc8
ret
mov eax, dword [esp + 0xc]
push 0x10
push eax
push ebx
call fcn.004671a0
add esp, 0xc
test eax, eax
je 0x537b4d
mov ecx, dword [esp + 0xdc]
cmp ecx, 0x10
jbe 0x537baf
mov eax, dword [esp + 0x10]
lea edx, [ecx - 0x10]
push edx
sub eax, ecx
add eax, 0x10
push 0
push eax
call fcn.0055bfc0
add esp, 0xc
mov ecx, dword [esp + 0xd0]
pop ebp
pop ebx
pop edi
xor ecx, esp
xor eax, eax
call fcn.0055a67a
add esp, 0xc8
ret