Function at 0x5a6f20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x180
mov eax, dword [0x6480b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x140], eax
mov eax, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x144], eax
lea eax, [ebp - 0x150]
push edi
mov edi, dword [ebp + 8]
push eax
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x138], ebx
call fcn.0059f2f0
lea eax, [ebp - 0x15c]
push eax
call fcn.0059f2f0
lea eax, [edi + 0x4c]
push 0
push eax
mov dword [ebp - 0x130], eax
call fcn.0059f930
add esp, 0x10
cmp eax, 1
je 0x5a6fb3
pop edi
pop esi
mov eax, 0xffffb080
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058bb64
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x5c], 0x180
sbb al, al
add al, 5
mov byte [ebp - 0x10d], al
lea eax, [edi + 0x34]
push eax
lea eax, [ebx + 0xc]
push eax
call fcn.005a09e0
add esp, 8
test eax, eax
jne 0x5a6fed
lea eax, [edi + 0x28]
push eax
push ebx
call fcn.005a09e0
add esp, 8
test eax, eax
jne 0x5a6fed
mov bl, 1
jmp 0x5a6fef
xor bl, bl
mov dl, byte [ebp - 0x10d]
test bl, bl
mov byte [ebp - 0x10e], bl
mov ebx, 2
lea eax, [edx + 1]
movzx ecx, al
movzx eax, dl
mov edx, dword [edi + 0x5c]
cmove ecx, eax
movzx eax, cl
cmp eax, edx
movzx ecx, cl
mov al, 1
cmovae ecx, ebx
movzx ebx, cl
mov byte [ebp - 0x134], cl
mov dword [ebp - 0x114], ebx
lea ecx, [ebx - 1]
shl al, cl
mov byte [ebp - 0x124], al
lea eax, [edx - 1]
add eax, ebx
xor edx, edx
div ebx
cmp byte [ebp - 0x10e], 0
mov ebx, eax
mov dword [ebp - 0x13c], ebx
je 0x5a705f
mov eax, dword [edi + 0x74]
mov dword [ebp - 0x11c], eax
test eax, eax
jne 0x5a70cc
movzx eax, byte [ebp - 0x124]
push 0x24
push eax
mov dword [ebp - 0x12c], eax
call fcn.005d9af7
add esp, 8
mov dword [ebp - 0x11c], eax
test eax, eax
jne 0x5a708b
mov edi, 0xffffb280
jmp 0x5a7405
push ebx
push dword [ebp - 0x134]
push dword [ebp - 0x138]
push eax
push edi
call fcn.005a7c50
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x5a73a2
cmp byte [ebp - 0x10e], al
je 0x5a70cc
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp - 0x11c]
mov dword [eax + 0x74], ecx
mov ecx, dword [ebp - 0x12c]
mov dword [eax + 0x78], ecx
mov edi, dword [ebp - 0x120]
push 0
push edi
call fcn.0059f930
cmp eax, 1
lea eax, [ebp - 0x150]
push edi
push eax
sete byte [ebp - 0x10d]
call fcn.0059f490
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x5a73a2
push dword [ebp - 0x120]
lea eax, [ebp - 0x15c]
push dword [ebp - 0x130]
push eax
call fcn.005a0e50
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x5a73a2
mov al, byte [ebp - 0x10d]
xor al, 1
push eax
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x150]
push eax
call fcn.0059f5b0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x5a73a2
lea eax, [ebx + 1]
push eax
lea eax, [ebp - 0x10c]
push edi
push eax
call fcn.005c9220
xor ecx, ecx
add esp, 0xc
mov dword [ebp - 0x120], ecx
test ebx, ebx
je 0x5a71e4
mov eax, dword [ebp - 0x114]
xor esi, esi
test eax, eax
je 0x5a71d3
lea eax, [ebp - 0x10c]
mov edi, ecx
add eax, ecx
mov dword [ebp - 0x130], eax
mov al, byte [eax]
mov byte [ebp - 0x10d], al
lea eax, [ebp - 0x150]
push edi
push eax
call fcn.0059f930
mov ecx, esi
add esp, 8
shl al, cl
inc esi
mov cl, byte [ebp - 0x10d]
add edi, ebx
or cl, al
mov eax, dword [ebp - 0x114]
mov byte [ebp - 0x10d], cl
cmp esi, eax
jb 0x5a7196
mov edx, dword [ebp - 0x130]
mov byte [edx], cl
mov ecx, dword [ebp - 0x120]
inc ecx
mov dword [ebp - 0x120], ecx
cmp ecx, ebx
jb 0x5a7178
mov esi, dword [ebp - 0x128]
xor al, al
mov byte [ebp - 0x10d], al
cmp ebx, 1
jb 0x5a7253
mov dword [ebp - 0x114], ebx
lea edi, [ebp - 0x10c]
mov bh, byte [ebp - 0x10c]
mov dl, byte [edi + 1]
lea edi, [edi + 1]
mov dh, bh
mov bl, 1
mov bh, dl
movzx ecx, dh
and dl, byte [ebp - 0x10d]
xor bh, al
mov al, bh
and al, 1
sub bl, al
movzx eax, bl
imul ecx, eax
mov al, bh
shl bl, 7
or bl, dh
mov byte [edi - 1], bl
and al, cl
xor bh, cl
or al, dl
mov byte [edi], bh
sub dword [ebp - 0x114], 1
mov byte [ebp - 0x10d], al
jne 0x5a7203
mov ebx, dword [ebp - 0x13c]
mov esi, dword [ebp - 0x128]
lea eax, [ebp - 0x180]
push eax
call fcn.0059f2f0
lea eax, [ebp - 0x174]
push eax
call fcn.0059f2f0
lea eax, [ebp - 0x168]
push eax
call fcn.0059f2f0
movzx eax, byte [ebp + ebx - 0x10c]
push eax
push dword [ebp - 0x124]
push dword [ebp - 0x11c]
push esi
push dword [ebp - 0x118]
call fcn.005a80b0
mov edi, eax
add esp, 0x20
test edi, edi
jne 0x5a734f
lea eax, [esi + 0x18]
push 1
push eax
call fcn.0059f880
mov edi, eax
add esp, 8
test edi, edi
jne 0x5a734f
mov eax, dword [ebp - 0x140]
test eax, eax
je 0x5a72e3
push dword [ebp - 0x144]
push eax
push esi
push dword [ebp - 0x118]
call fcn.005a7e70
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x5a734f
test ebx, ebx
je 0x5a734f
push esi
push esi
push dword [ebp - 0x118]
dec ebx
call fcn.005a6680
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x5a734f
movzx eax, byte [ebp + ebx - 0x10c]
push eax
push dword [ebp - 0x124]
lea eax, [ebp - 0x180]
push dword [ebp - 0x11c]
push eax
push dword [ebp - 0x118]
call fcn.005a80b0
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x5a734f
lea eax, [ebp - 0x180]
push eax
push esi
push esi
push dword [ebp - 0x118]
call fcn.005a5850
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x5a734f
test ebx, ebx
jne 0x5a72e7
lea eax, [ebp - 0x180]
push eax
call fcn.0059f310
lea eax, [ebp - 0x174]
push eax
call fcn.0059f310
lea eax, [ebp - 0x168]
push eax
call fcn.0059f310
add esp, 0xc
test edi, edi
jne 0x5a73a2
push dword [ebp - 0x12c]
mov ebx, dword [ebp - 0x118]
push esi
push ebx
call fcn.005a8040
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x5a73a2
push esi
push ebx
call fcn.005a77d0
add esp, 8
mov edi, eax
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x5a7405
cmp byte [ebp - 0x10e], 0
jne 0x5a7405
mov ebx, eax
movzx eax, byte [ebp - 0x124]
mov dword [ebp - 0x114], eax
test ebx, ebx
je 0x5a73e9
push ebx
call fcn.0059f310
lea esi, [ebx + 0x18]
lea eax, [esi - 0xc]
push eax
call fcn.0059f310
push esi
call fcn.0059f310
mov eax, dword [ebp - 0x114]
add esp, 0xc
add ebx, 0x24
sub eax, 1
mov dword [ebp - 0x114], eax
jne 0x5a73c4
push dword [ebp - 0x11c]
call fcn.005d1ed0
add esp, 4
lea eax, [ebp - 0x150]
push eax
call fcn.0059f310
lea eax, [ebp - 0x15c]
push eax
call fcn.0059f310
add esp, 8
test edi, edi
je 0x5a7449
mov esi, dword [ebp - 0x128]
test esi, esi
je 0x5a7449
push esi
call fcn.0059f310
lea eax, [esi + 0xc]
push eax
call fcn.0059f310
lea eax, [esi + 0x18]
push eax
call fcn.0059f310
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058bb64
mov esp, ebp
pop ebp
ret