Function at 0x5c5ef6
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x627c38
call fcn.0044c384
sub esp, 0x74
push ebx
push esi
push edi
mov esi, ecx
call fcn.005c5e56
mov eax, dword [esi + 0xc]
xor ebx, ebx
test eax, eax
jbe 0x5c5f31
cmp eax, 1
ja 0x5c5fce
mov eax, dword [esi + 0x30]
mov eax, dword [eax]
cmp byte [eax + 4], 0x10
jne 0x5c5fce
mov ebx, dword [eax + 0x6c]
mov eax, dword [ebx + 0xc]
and dword [ebp - 0x28], 0
cmp byte [esi + 0x62], 0
mov dword [ebp - 0x34], eax
mov al, byte [ebx + 8]
mov byte [ebp - 0xd], al
mov al, byte [ebx + 9]
mov byte [ebp - 0xe], al
je 0x5c6051
push 0x30
call fcn.005c389b
mov edi, eax
pop ecx
test edi, edi
mov dword [ebp - 0x28], edi
je 0x5c64b3
push 0
mov ecx, edi
push dword [esi + 0x6c]
push dword [esi + 0x68]
call fcn.005d344d
mov eax, dword [edi + 0x24]
and dword [ebp - 0x14], 0
cmp dword [esi + 0x6c], 0
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x20], eax
jbe 0x5c6051
and dword [ebp - 0x24], 0
and dword [ebp - 0x18], 0
cmp dword [esi + 0x68], 0
jbe 0x5c603c
movzx eax, byte [ebp - 0xd]
mov dword [ebp - 0x2c], eax
movzx eax, word [esi + 0x78]
movzx edx, word [esi + 0x7a]
mov ecx, edx
mov edi, eax
imul ecx, dword [ebp - 0x14]
imul edi, dword [ebp - 0x18]
add ecx, edi
add ecx, dword [esi + 0x70]
jns 0x5c5fd5
sar ecx, 8
or ecx, 0xff000000
jmp 0x5c5fd8
push 6
jmp 0x5c64b5
sar ecx, 8
imul edx, dword [ebp - 0x18]
imul eax, dword [ebp - 0x14]
sub eax, edx
add eax, dword [esi + 0x74]
jns 0x5c5ff1
sar eax, 8
or eax, 0xff000000
jmp 0x5c5ff4
sar eax, 8
mov edx, dword [ebp - 0x2c]
add edx, ecx
test edx, edx
jle 0x5c6011
cmp ecx, dword [esi + 0x40]
jge 0x5c6011
movzx ecx, byte [ebp - 0xe]
add ecx, eax
test ecx, ecx
jle 0x5c6011
cmp eax, dword [esi + 0x44]
jl 0x5c602d
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
shr eax, 3
add eax, dword [ebp - 0x24]
add eax, ecx
mov ecx, dword [ebp - 0x18]
and ecx, 7
mov cl, byte [ecx + 0x63c57c]
or byte [eax], cl
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [esi + 0x68]
jb 0x5c5fa8
mov eax, dword [ebp - 0x1c]
inc dword [ebp - 0x14]
add dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 0x6c]
jb 0x5c5f93
mov ebx, dword [ebx]
push 1
pop eax
xor edi, edi
cmp ebx, eax
mov dword [ebp - 0x24], edi
jbe 0x5c6069
shl eax, 1
inc edi
cmp eax, ebx
jb 0x5c605f
mov dword [ebp - 0x24], edi
mov eax, dword [esi + 0x6c]
shl eax, 2
push eax
call fcn.005c389b
mov ebx, eax
pop ecx
test ebx, ebx
mov dword [ebp - 0x2c], ebx
je 0x5c64b3
mov eax, dword [esi + 0x6c]
imul eax, dword [esi + 0x68]
shl eax, 2
push eax
call fcn.005c389b
pop ecx
mov dword [ebx], eax
push 1
pop ecx
cmp dword [esi + 0x6c], ecx
jbe 0x5c60b5
lea eax, [ebx + 4]
mov edx, dword [esi + 0x68]
mov ebx, dword [eax - 4]
inc ecx
lea edx, [ebx + edx*4]
mov dword [eax], edx
add eax, 4
cmp ecx, dword [esi + 0x6c]
jb 0x5c60a1
lea ebx, [edi + edi*2]
shl ebx, 4
push ebx
call fcn.005c389b
test eax, eax
pop ecx
mov dword [ebp - 0x20], eax
je 0x5c64b3
and dword [ebp - 0x14], 0
test edi, edi
jbe 0x5c60fc
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push 0
push dword [esi + 0x6c]
push dword [esi + 0x68]
call fcn.005d344d
test eax, eax
jne 0x5c64b6
inc dword [ebp - 0x14]
add dword [ebp - 0x1c], 0x30
cmp dword [ebp - 0x14], edi
jb 0x5c60d8
mov dl, byte [esi + 0x62]
mov al, byte [esi + 0x61]
mov byte [ebp - 0x56], dl
mov edx, dword [ebp - 0x28]
and byte [ebp - 0x57], 0
mov dword [ebp - 0x54], edx
mov edx, dword [esi + 0x68]
mov cl, byte [esi + 0x60]
mov dword [ebp - 0x60], edx
mov edx, dword [esi + 0x6c]
mov dword [ebp - 0x5c], edx
mov dl, 1
cmp dl, al
mov byte [ebp - 0x58], al
sbb al, al
or byte [ebp - 0x4c], 0xff
or byte [ebp - 0x4b], 0xff
add eax, 3
test cl, cl
mov byte [ebp - 0x64], cl
mov byte [ebp - 0x50], al
mov byte [ebp - 0x4f], 0xfd
mov byte [ebp - 0x4e], 2
mov byte [ebp - 0x4a], 0xfe
mov byte [ebp - 0x4d], 0xfe
mov byte [ebp - 0x49], 0xfe
je 0x5c61e3
lea ecx, [ebp - 0x48]
call fcn.005d3e73
mov eax, dword [esi + 0x28]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x38], eax
call fcn.005d7903
mov eax, dword [esi + 0x28]
push 1
lea ecx, [ebp - 0x48]
mov byte [eax + 0xd], 8
mov eax, dword [ebp - 0x20]
lea eax, [ebx + eax - 0x30]
push eax
call fcn.005d79a1
mov eax, dword [esi + 0x28]
mov byte [eax + 0xd], 8
lea eax, [edi - 2]
test eax, eax
jl 0x5c61ca
lea ebx, [eax + eax*2]
lea edi, [eax + 1]
shl ebx, 4
add ebx, dword [ebp - 0x20]
push 1
push ebx
lea ecx, [ebp - 0x48]
call fcn.005d79a1
mov eax, dword [esi + 0x28]
push 2
push 0
push 0
mov byte [eax + 0xd], 8
lea eax, [ebx + 0x30]
push eax
mov ecx, ebx
call fcn.005d351f
sub ebx, 0x30
dec edi
jne 0x5c61a1
lea ecx, [ebp - 0x48]
call fcn.005d7981
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00463952
jmp 0x5c62f9
lea ecx, [ebp - 0x80]
call fcn.005d3d57
mov eax, dword [esi + 0x28]
lea ecx, [ebp - 0x80]
mov dword [ebp - 4], 1
mov dword [ebp - 0x6c], eax
call fcn.005d3de3
push 0x10
lea ecx, [ebp - 0x80]
call fcn.005d3d84
test eax, eax
mov dword [ebp - 0x1c], eax
je 0x5c6225
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.005d3d7d
mov eax, dword [ebp - 0x1c]
jmp 0x5c64b6
mov eax, dword [ebp - 0x20]
lea eax, [ebx + eax - 0x30]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.005d6205
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x5c63d2
lea eax, [edi - 2]
test eax, eax
mov dword [ebp - 0x1c], eax
jl 0x5c62e5
mov edi, eax
lea edi, [edi + edi*2]
shl edi, 4
add edi, dword [ebp - 0x20]
lea eax, [ebp - 0x64]
push edi
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.005d6205
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x5c63d2
and dword [ebp - 0x14], eax
cmp dword [esi + 0x6c], eax
jbe 0x5c62d5
and dword [ebp - 0x18], 0
cmp dword [esi + 0x68], 0
jbe 0x5c62ca
push dword [ebp - 0x18]
mov ecx, edi
push dword [ebp - 0x14]
call fcn.005c64c5
push dword [ebp - 0x18]
lea ecx, [edi + 0x30]
mov bl, al
push dword [ebp - 0x14]
call fcn.005c64c5
xor bl, al
mov ecx, edi
mov byte [ebp - 0x30], bl
push dword [ebp - 0x30]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call fcn.005c6506
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [esi + 0x68]
jb 0x5c628d
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 0x6c]
jb 0x5c6283
dec dword [ebp - 0x1c]
sub edi, 0x30
cmp dword [ebp - 0x1c], 0
jge 0x5c6260
lea ecx, [ebp - 0x80]
call fcn.005c5793
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.005d3d7d
mov edi, dword [ebp - 0x28]
xor ebx, ebx
cmp edi, ebx
je 0x5c631a
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x5c6310
push eax
call fcn.005c38fa
pop ecx
push edi
mov dword [edi + 8], ebx
call fcn.005c38fa
pop ecx
cmp dword [esi + 0x6c], ebx
mov dword [ebp - 0x14], ebx
jbe 0x5c6393
mov edi, dword [ebp - 0x2c]
xor eax, eax
cmp dword [esi + 0x68], eax
mov dword [ebp - 0x18], eax
jbe 0x5c6385
mov ecx, dword [edi]
mov edx, dword [ebp - 0x18]
cmp dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
mov dword [ecx + edx*4], eax
jle 0x5c637a
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [edi]
push eax
push dword [ebp - 0x14]
lea ebx, [ecx + eax*4]
mov ecx, dword [ebp - 0x28]
call fcn.005c64c5
mov ecx, dword [ebp - 0x1c]
push 1
pop edx
add dword [ebp - 0x28], 0x30
shl edx, cl
movzx eax, al
imul eax, edx
add dword [ebx], eax
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x24]
jl 0x5c6345
xor eax, eax
inc dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [esi + 0x68]
jb 0x5c632f
inc dword [ebp - 0x14]
add edi, 4
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 0x6c]
jb 0x5c6325
xor edi, edi
cmp dword [esi + 0x6c], edi
mov dword [ebp - 0x14], edi
jbe 0x5c643d
mov ebx, dword [ebp - 0x2c]
cmp dword [esi + 0x68], edi
mov dword [ebp - 0x18], edi
jbe 0x5c642b
movzx eax, word [esi + 0x78]
movzx edx, word [esi + 0x7a]
mov ecx, edx
mov edi, eax
imul ecx, dword [ebp - 0x14]
imul edi, dword [ebp - 0x18]
add ecx, edi
add ecx, dword [esi + 0x70]
jns 0x5c63e5
sar ecx, 8
or ecx, 0xff000000
jmp 0x5c63e8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.005d3d7d
mov eax, ebx
jmp 0x5c64b6
sar ecx, 8
mov edi, dword [ebp - 0x18]
imul eax, dword [ebp - 0x14]
imul edx, edi
sub eax, edx
add eax, dword [esi + 0x74]
jns 0x5c6403
sar eax, 8
or eax, 0xff000000
jmp 0x5c6406
sar eax, 8
movzx edx, byte [esi + 0x63]
push edx
push eax
mov eax, dword [ebx]
push ecx
mov ecx, dword [ebp - 0x34]
mov eax, dword [eax + edi*4]
push dword [ecx + eax*4]
mov ecx, dword [esi + 0x54]
call fcn.005d38bb
inc edi
cmp edi, dword [esi + 0x68]
mov dword [ebp - 0x18], edi
jb 0x5c63ac
xor edi, edi
inc dword [ebp - 0x14]
add ebx, 4
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 0x6c]
jb 0x5c63a4
cmp byte [esi + 4], 0x14
je 0x5c646f
mov eax, dword [esi + 0x5c]
cmp byte [eax + 0x55], 0
je 0x5c6452
movzx eax, byte [esi + 0x50]
jmp 0x5c6456
movzx eax, byte [eax + 0x53]
push eax
mov ecx, dword [esi + 0x58]
push dword [esi + 0x4c]
push dword [esi + 0x48]
push dword [esi + 0x54]
call fcn.005d351f
mov ecx, esi
call fcn.005b14a4
mov esi, dword [ebp - 0x2c]
push dword [esi]
call fcn.005c38fa
push esi
mov dword [esi], edi
call fcn.005c38fa
mov edi, dword [ebp - 0x24]
pop ecx
test edi, edi
pop ecx
jbe 0x5c64a6
mov eax, dword [ebp - 0x20]
lea esi, [eax + 8]
mov eax, dword [esi]
test eax, eax
je 0x5c649d
push eax
call fcn.005c38fa
pop ecx
and dword [esi], 0
add esi, 0x30
dec edi
jne 0x5c6490
push dword [ebp - 0x20]
call fcn.005c38fa
pop ecx
xor eax, eax
jmp 0x5c64b6
push 3
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret