Function at 0x5d8b4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [0x8d5f40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0xc0], 0
and dword [ebp - 0xb0], 0
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0x20]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp + 0x28]
push edi
shr esi, 3
xor edi, edi
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], eax
mov dword [ebp - 0xbc], 2
cmp esi, 0x14
je 0x5d8bd5
cmp esi, 0x1c
je 0x5d8bd5
cmp esi, 0x20
je 0x5d8bd5
xor eax, eax
jmp 0x5d9261
test ebx, ebx
jne 0x5d8bfe
cmp esi, 0x14
jne 0x5d8be5
call fcn.0053391f
jmp 0x5d8bf6
cmp esi, 0x1c
jne 0x5d8bf1
call fcn.00533925
jmp 0x5d8bf6
call fcn.0053392b
mov dword [ebp - 0x94], eax
jmp 0x5d8c07
push ebx
call fcn.0053b734
pop ecx
mov esi, eax
mov ecx, dword [ebp - 0x9c]
mov eax, 0x200
cmp dword [ebp + 0xc], eax
cmovae eax, dword [ebp + 0xc]
add eax, 0x3f
and eax, 0xffffffc0
mov dword [ebp - 0xc4], eax
test ecx, ecx
je 0x5d8c58
mov eax, dword [ebp + 0x1c]
cmp eax, esi
jae 0x5d8c47
push 0x55
push 0x8242e0
push 0x6e
push 0x7d
push 0xa
call fcn.0053f640
add esp, 0x14
jmp 0x5d8bce
cmova eax, esi
push eax
push ecx
lea eax, [ebp - 0x64]
push eax
call fcn.00717660
add esp, 0xc
call fcn.0056cf79
mov dword [ebp - 0xa8], eax
test eax, eax
je 0x5d9241
call fcn.005512e9
mov edi, eax
test edi, edi
je 0x5d9241
push edi
call fcn.00551347
push edi
call fcn.0055128a
push edi
mov dword [ebp - 0x88], eax
call fcn.0055128a
push edi
mov dword [ebp - 0xa4], eax
call fcn.0055128a
push edi
mov dword [ebp - 0xb4], eax
call fcn.0055128a
push edi
mov dword [ebp - 0x98], eax
call fcn.0055128a
push edi
mov dword [ebp - 0xa0], eax
call fcn.0055128a
push edi
mov dword [ebp - 0xc8], eax
call fcn.0055128a
push edi
mov dword [ebp - 0x8c], eax
call fcn.0055128a
mov ebx, eax
add esp, 0x24
mov dword [ebp - 0xd0], ebx
test ebx, ebx
je 0x5d9241
mov eax, dword [ebp - 0xc4]
dec eax
push eax
mov dword [ebp - 0xcc], eax
call fcn.00539b6e
push eax
push ebx
call fcn.0056dfd6
add esp, 0xc
test eax, eax
je 0x5d9241
push dword [ebp - 0xb0]
xor ebx, ebx
cmp dword [ebp - 0x9c], ebx
push 0
push dword [ebp - 0x90]
sete bl
call fcn.005537ac
add esp, 0xc
inc dword [ebp - 0xb0]
test eax, eax
je 0x5d9241
cmp dword [ebp - 0x9c], 0
jne 0x5d8d60
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.0054123c
pop ecx
pop ecx
test eax, eax
jle 0x5d9241
jmp 0x5d8d67
and dword [ebp - 0x9c], 0
push esi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00717660
push esi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.00717660
lea eax, [esi - 1]
add esp, 0x18
test eax, eax
js 0x5d8d9c
add byte [ebp + eax - 0x44], 1
jne 0x5d8d9c
sub eax, 1
jns 0x5d8d90
push 0
push dword [ebp - 0x94]
lea eax, [ebp - 0x24]
push 0
push eax
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.0055c260
add esp, 0x18
test eax, eax
je 0x5d9241
push 0
push dword [ebp - 0x94]
lea eax, [ebp - 0x84]
push 0
push eax
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.0055c260
add esp, 0x18
test eax, eax
je 0x5d9241
xor ecx, ecx
test esi, esi
jle 0x5d8dfb
mov al, byte [ebp + ecx - 0x84]
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, esi
jl 0x5d8deb
push dword [ebp - 0x98]
or byte [ebp - 0x24], 0x80
lea eax, [ebp - 0x24]
or byte [ebp + esi - 0x25], 1
push esi
push eax
call fcn.00539442
add esp, 0xc
test eax, eax
je 0x5d9241
push dword [ebp - 0x90]
push ebx
push edi
push 0x40
push dword [ebp - 0x98]
call fcn.00553a08
add esp, 0x14
test eax, eax
jg 0x5d8e46
je 0x5d8d12
jmp 0x5d9241
mov ebx, dword [ebp - 0x90]
push 0
push 2
push ebx
call fcn.005537ac
add esp, 0xc
test eax, eax
je 0x5d9241
push 0
push 3
push ebx
call fcn.005537ac
add esp, 0xc
test eax, eax
je 0x5d9241
mov eax, dword [ebp - 0xc4]
xor ecx, ecx
mov dword [ebp - 0xac], 0xa0
dec eax
xor edx, edx
mov dword [ebp - 0xb8], ecx
div dword [ebp - 0xac]
mov dword [ebp - 0xac], eax
jmp 0x5d8ea5
mov ebx, dword [ebp - 0x90]
test ecx, ecx
je 0x5d8ebd
push ecx
push 0
push ebx
call fcn.005537ac
add esp, 0xc
test eax, eax
je 0x5d9241
push 0
push dword [ebp - 0xb4]
call fcn.00539ad2
xor ebx, ebx
pop ecx
pop ecx
cmp dword [ebp - 0xac], ebx
jl 0x5d8f77
lea eax, [esi - 1]
test eax, eax
js 0x5d8eed
add byte [ebp + eax - 0x44], 1
jne 0x5d8eed
sub eax, 1
jns 0x5d8ee1
push 0
push dword [ebp - 0x94]
lea eax, [ebp - 0x24]
push 0
push eax
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.0055c260
add esp, 0x18
test eax, eax
je 0x5d9241
push dword [ebp - 0x88]
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.00539442
add esp, 0xc
test eax, eax
je 0x5d9241
mov eax, esi
shl eax, 3
imul eax, ebx
push eax
mov eax, dword [ebp - 0x88]
push eax
push eax
call fcn.0056dfd6
add esp, 0xc
test eax, eax
je 0x5d9241
push dword [ebp - 0x88]
mov eax, dword [ebp - 0xb4]
push eax
push eax
call fcn.0055156a
add esp, 0xc
test eax, eax
je 0x5d9241
inc ebx
cmp ebx, dword [ebp - 0xac]
jle 0x5d8eda
push dword [ebp - 0xcc]
mov ebx, dword [ebp - 0xb4]
push ebx
call fcn.00539875
pop ecx
pop ecx
test eax, eax
je 0x5d9241
push ebx
push dword [ebp - 0xa0]
call fcn.005396c5
pop ecx
pop ecx
test eax, eax
je 0x5d9241
mov ebx, dword [ebp - 0xd0]
mov eax, dword [ebp - 0xa0]
push ebx
push eax
push eax
call fcn.0055156a
add esp, 0xc
test eax, eax
je 0x5d9241
push dword [ebp - 0x98]
push dword [ebp - 0x88]
call fcn.0056e01c
pop ecx
pop ecx
test eax, eax
je 0x5d9241
push edi
push dword [ebp - 0x88]
push dword [ebp - 0xa0]
push dword [ebp - 0xc8]
push 0
call fcn.00552394
add esp, 0x14
test eax, eax
je 0x5d9241
call fcn.00539b6e
push eax
push dword [ebp - 0xc8]
push dword [ebp - 0x88]
call fcn.005515cb
add esp, 0xc
test eax, eax
je 0x5d9241
push dword [ebp - 0x88]
push dword [ebp - 0xa0]
push dword [ebp - 0x8c]
call fcn.005515cb
add esp, 0xc
test eax, eax
je 0x5d9241
push ebx
push dword [ebp - 0x8c]
call fcn.005395c2
pop ecx
pop ecx
test eax, eax
js 0x5d9081
push dword [ebp - 0x90]
push 1
push edi
push 0x40
push dword [ebp - 0x8c]
call fcn.00553a08
add esp, 0x14
test eax, eax
jg 0x5d909f
jne 0x5d9241
mov ecx, dword [ebp - 0xb8]
inc ecx
mov dword [ebp - 0xb8], ecx
cmp ecx, 0x1000
jl 0x5d8e9f
jmp 0x5d8d12
push 1
push 2
push dword [ebp - 0x90]
call fcn.005537ac
add esp, 0xc
test eax, eax
je 0x5d9241
call fcn.00539b6e
push eax
push dword [ebp - 0x8c]
push ebx
call fcn.005515cb
add esp, 0xc
test eax, eax
je 0x5d9241
push edi
push dword [ebp - 0x98]
push ebx
push 0
push dword [ebp - 0x88]
call fcn.00552394
add esp, 0x14
test eax, eax
je 0x5d9241
push 2
push ebx
call fcn.00539ad2
pop ecx
pop ecx
test eax, eax
je 0x5d9241
push edi
push dword [ebp - 0x8c]
push dword [ebp - 0xa8]
call fcn.0056cfc4
add esp, 0xc
test eax, eax
je 0x5d9241
jmp 0x5d9155
push dword [ebp - 0xa4]
call fcn.00539815
pop ecx
test eax, eax
je 0x5d9180
call fcn.00539b6e
push eax
push ebx
push ebx
call fcn.0055156a
add esp, 0xc
test eax, eax
je 0x5d9241
inc dword [ebp - 0xbc]
push dword [ebp - 0xa8]
push edi
push dword [ebp - 0x8c]
push dword [ebp - 0x88]
push ebx
push dword [ebp - 0xa4]
call fcn.00593d83
add esp, 0x18
test eax, eax
jne 0x5d9127
jmp 0x5d9241
xor ebx, ebx
inc ebx
push ebx
push 3
push dword [ebp - 0x90]
call fcn.005537ac
add esp, 0xc
test eax, eax
je 0x5d9241
mov dword [ebp - 0xc0], ebx
mov ebx, dword [ebp - 0xd4]
push dword [ebx + 8]
call fcn.0053974e
push dword [ebx + 0xc]
call fcn.0053974e
push dword [ebx + 0x10]
call fcn.0053974e
push dword [ebp - 0x8c]
call fcn.0053970c
push dword [ebp - 0x98]
mov dword [ebx + 8], eax
call fcn.0053970c
push dword [ebp - 0xa4]
mov dword [ebx + 0xc], eax
call fcn.0053970c
xor ecx, ecx
mov dword [ebx + 0x10], eax
add esp, 0x18
cmp dword [ebx + 8], ecx
je 0x5d923b
cmp dword [ebx + 0xc], ecx
je 0x5d923b
test eax, eax
je 0x5d923b
mov ecx, dword [ebp - 0xd8]
test ecx, ecx
je 0x5d920f
mov eax, dword [ebp - 0xb8]
mov dword [ecx], eax
mov ecx, dword [ebp - 0xdc]
test ecx, ecx
je 0x5d9221
mov eax, dword [ebp - 0xbc]
mov dword [ecx], eax
mov eax, dword [ebp - 0xe0]
test eax, eax
je 0x5d9241
push esi
lea ecx, [ebp - 0x64]
push ecx
push eax
call fcn.00717660
add esp, 0xc
jmp 0x5d9241
mov dword [ebp - 0xc0], ecx
push edi
call fcn.005511ea
push edi
call fcn.0055124e
push dword [ebp - 0xa8]
call fcn.0056cefd
mov eax, dword [ebp - 0xc0]
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006fedff
leave
ret