Function at 0x5c0a74
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x622014
call fcn.0044c164
sub esp, 0x74
push ebx
push esi
push edi
mov esi, ecx
call fcn.005c09d4
mov eax, dword [esi + 0xc]
xor ebx, ebx
test eax, eax
jbe 0x5c0aaf
cmp eax, 1
ja 0x5c0b4c
mov eax, dword [esi + 0x30]
mov eax, dword [eax]
cmp byte [eax + 4], 0x10
jne 0x5c0b4c
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 0x5c0bcf
push 0x30
call fcn.005be419
mov edi, eax
pop ecx
test edi, edi
mov dword [ebp - 0x28], edi
je 0x5c1031
push 0
mov ecx, edi
push dword [esi + 0x6c]
push dword [esi + 0x68]
call fcn.005cdfcb
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 0x5c0bcf
and dword [ebp - 0x24], 0
and dword [ebp - 0x18], 0
cmp dword [esi + 0x68], 0
jbe 0x5c0bba
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 0x5c0b53
sar ecx, 8
or ecx, 0xff000000
jmp 0x5c0b56
push 6
jmp 0x5c1033
sar ecx, 8
imul edx, dword [ebp - 0x18]
imul eax, dword [ebp - 0x14]
sub eax, edx
add eax, dword [esi + 0x74]
jns 0x5c0b6f
sar eax, 8
or eax, 0xff000000
jmp 0x5c0b72
sar eax, 8
mov edx, dword [ebp - 0x2c]
add edx, ecx
test edx, edx
jle 0x5c0b8f
cmp ecx, dword [esi + 0x40]
jge 0x5c0b8f
movzx ecx, byte [ebp - 0xe]
add ecx, eax
test ecx, ecx
jle 0x5c0b8f
cmp eax, dword [esi + 0x44]
jl 0x5c0bab
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 + 0x6364ec]
or byte [eax], cl
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [esi + 0x68]
jb 0x5c0b26
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 0x5c0b11
mov ebx, dword [ebx]
push 1
pop eax
xor edi, edi
cmp ebx, eax
mov dword [ebp - 0x24], edi
jbe 0x5c0be7
shl eax, 1
inc edi
cmp eax, ebx
jb 0x5c0bdd
mov dword [ebp - 0x24], edi
mov eax, dword [esi + 0x6c]
shl eax, 2
push eax
call fcn.005be419
mov ebx, eax
pop ecx
test ebx, ebx
mov dword [ebp - 0x2c], ebx
je 0x5c1031
mov eax, dword [esi + 0x6c]
imul eax, dword [esi + 0x68]
shl eax, 2
push eax
call fcn.005be419
pop ecx
mov dword [ebx], eax
push 1
pop ecx
cmp dword [esi + 0x6c], ecx
jbe 0x5c0c33
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 0x5c0c1f
lea ebx, [edi + edi*2]
shl ebx, 4
push ebx
call fcn.005be419
test eax, eax
pop ecx
mov dword [ebp - 0x20], eax
je 0x5c1031
and dword [ebp - 0x14], 0
test edi, edi
jbe 0x5c0c7a
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push 0
push dword [esi + 0x6c]
push dword [esi + 0x68]
call fcn.005cdfcb
test eax, eax
jne 0x5c1034
inc dword [ebp - 0x14]
add dword [ebp - 0x1c], 0x30
cmp dword [ebp - 0x14], edi
jb 0x5c0c56
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 0x5c0d61
lea ecx, [ebp - 0x48]
call fcn.005d22cc
mov eax, dword [esi + 0x28]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x38], eax
call fcn.005d2482
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.005d2520
mov eax, dword [esi + 0x28]
mov byte [eax + 0xd], 8
lea eax, [edi - 2]
test eax, eax
jl 0x5c0d48
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.005d2520
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.005ce09d
sub ebx, 0x30
dec edi
jne 0x5c0d1f
lea ecx, [ebp - 0x48]
call fcn.005d2500
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.005d23ab
jmp 0x5c0e77
lea ecx, [ebp - 0x80]
call fcn.005ce8d5
mov eax, dword [esi + 0x28]
lea ecx, [ebp - 0x80]
mov dword [ebp - 4], 1
mov dword [ebp - 0x6c], eax
call fcn.005ce961
push 0x10
lea ecx, [ebp - 0x80]
call fcn.005ce902
test eax, eax
mov dword [ebp - 0x1c], eax
je 0x5c0da3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.005ce8fb
mov eax, dword [ebp - 0x1c]
jmp 0x5c1034
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.005d0d80
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x5c0f50
lea eax, [edi - 2]
test eax, eax
mov dword [ebp - 0x1c], eax
jl 0x5c0e63
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.005d0d80
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x5c0f50
and dword [ebp - 0x14], eax
cmp dword [esi + 0x6c], eax
jbe 0x5c0e53
and dword [ebp - 0x18], 0
cmp dword [esi + 0x68], 0
jbe 0x5c0e48
push dword [ebp - 0x18]
mov ecx, edi
push dword [ebp - 0x14]
call fcn.005c1043
push dword [ebp - 0x18]
lea ecx, [edi + 0x30]
mov bl, al
push dword [ebp - 0x14]
call fcn.005c1043
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.005c1084
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [esi + 0x68]
jb 0x5c0e0b
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 0x6c]
jb 0x5c0e01
dec dword [ebp - 0x1c]
sub edi, 0x30
cmp dword [ebp - 0x1c], 0
jge 0x5c0dde
lea ecx, [ebp - 0x80]
call fcn.005c0311
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.005ce8fb
mov edi, dword [ebp - 0x28]
xor ebx, ebx
cmp edi, ebx
je 0x5c0e98
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x5c0e8e
push eax
call fcn.005be478
pop ecx
push edi
mov dword [edi + 8], ebx
call fcn.005be478
pop ecx
cmp dword [esi + 0x6c], ebx
mov dword [ebp - 0x14], ebx
jbe 0x5c0f11
mov edi, dword [ebp - 0x2c]
xor eax, eax
cmp dword [esi + 0x68], eax
mov dword [ebp - 0x18], eax
jbe 0x5c0f03
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 0x5c0ef8
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.005c1043
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 0x5c0ec3
xor eax, eax
inc dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [esi + 0x68]
jb 0x5c0ead
inc dword [ebp - 0x14]
add edi, 4
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 0x6c]
jb 0x5c0ea3
xor edi, edi
cmp dword [esi + 0x6c], edi
mov dword [ebp - 0x14], edi
jbe 0x5c0fbb
mov ebx, dword [ebp - 0x2c]
cmp dword [esi + 0x68], edi
mov dword [ebp - 0x18], edi
jbe 0x5c0fa9
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 0x5c0f63
sar ecx, 8
or ecx, 0xff000000
jmp 0x5c0f66
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.005ce8fb
mov eax, ebx
jmp 0x5c1034
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 0x5c0f81
sar eax, 8
or eax, 0xff000000
jmp 0x5c0f84
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.005ce439
inc edi
cmp edi, dword [esi + 0x68]
mov dword [ebp - 0x18], edi
jb 0x5c0f2a
xor edi, edi
inc dword [ebp - 0x14]
add ebx, 4
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 0x6c]
jb 0x5c0f22
cmp byte [esi + 4], 0x14
je 0x5c0fed
mov eax, dword [esi + 0x5c]
cmp byte [eax + 0x55], 0
je 0x5c0fd0
movzx eax, byte [esi + 0x50]
jmp 0x5c0fd4
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.005ce09d
mov ecx, esi
call fcn.005abffa
mov esi, dword [ebp - 0x2c]
push dword [esi]
call fcn.005be478
push esi
mov dword [esi], edi
call fcn.005be478
mov edi, dword [ebp - 0x24]
pop ecx
test edi, edi
pop ecx
jbe 0x5c1024
mov eax, dword [ebp - 0x20]
lea esi, [eax + 8]
mov eax, dword [esi]
test eax, eax
je 0x5c101b
push eax
call fcn.005be478
pop ecx
and dword [esi], 0
add esi, 0x30
dec edi
jne 0x5c100e
push dword [ebp - 0x20]
call fcn.005be478
pop ecx
xor eax, eax
jmp 0x5c1034
push 3
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret