Function at 0x5ca151
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x5ca16e
cmp dword [ebx + 0x2c], 0
jne 0x5ca173
mov edi, ebx
mov dword [ebp + 0xc], edi
cmp dword [edi + 0x1c], ebx
je 0x5ca17b
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0x40
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
mov dword [ebx + 0x2e4], 0
mov dword [ebx + 0x2e8], 0
mov dword [ebp - 0x10], 0x40
call fcn.005c6931
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
test esi, esi
jne 0x5ca1d1
push 0x660558
call fcn.005c9011
add esp, 4
xor eax, eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x3c]
push edi
push ebx
mov dword [ebp - 4], esi
call eax
add esp, 8
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x2f0]
push ebx
call eax
mov edi, dword [ebp + 8]
add esp, 4
mov dword [ebp - 0x1c], eax
cmp esi, edi
jbe 0x5ca30f
cmp eax, 0x3c
je 0x5ca209
cmp eax, 0xffffffff
jne 0x5ca318
mov edi, dword [ebp - 0x14]
mov byte [esi], 0
cmp edi, 2
je 0x5ca219
cmp edi, 0xffffffff
jne 0x5ca227
push dword [ebp + 8]
call fcn.005c8391
add esp, 4
mov dword [ebp - 4], eax
push dword [ebp + 8]
xor esi, esi
call fcn.005c7741
add esp, 4
test eax, eax
je 0x5ca2fe
mov eax, edi
sub eax, 1
je 0x5ca2ac
sub eax, 1
je 0x5ca290
sub eax, 1
jne 0x5ca2fe
cmp dword [ebx + 0x44], esi
je 0x5ca8fe
mov edi, dword [ebp - 8]
mov dword [edi + 0x18], 3
push dword [ebp + 8]
mov eax, dword [ebx + 0x44]
push edi
push ebx
call eax
add esp, 0xc
test eax, eax
jne 0x5ca2fe
push dword [edi]
push dword [ebp + 8]
push 0x6605a0
call fcn.005c9011
add esp, 0xc
jmp 0x5caa3d
mov edi, dword [ebp - 8]
push 1
mov dword [edi + 0x18], 2
push dword [ebp + 8]
push edi
call fcn.005cba31
add esp, 0xc
test eax, eax
jmp 0x5ca2f8
cmp dword [ebx + 0x2e8], esi
je 0x5ca2e3
push dword [ebp + 8]
call fcn.005c79c1
mov edi, dword [ebp - 8]
add esp, 4
cmp byte [eax], 0
je 0x5ca2e6
cmp dword [edi + 0x18], esi
jne 0x5ca2e6
mov dword [edi + 0x18], 1
push dword [ebp + 8]
push edi
call fcn.005c9ea1
add esp, 8
test eax, eax
jmp 0x5ca2f8
mov edi, dword [ebp - 8]
push dword [ebp + 8]
push 0
push edi
call fcn.005c9e41
mov esi, eax
add esp, 0xc
test esi, esi
je 0x5ca910
mov eax, dword [ebp - 0xc]
test eax, eax
mov edi, dword [ebp + 8]
cmove eax, esi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
cmp eax, 0xffffffff
je 0x5caa0f
cmp eax, 0x3c
jne 0x5ca8bf
mov eax, dword [ebx + 0x2f0]
push ebx
mov dword [ebp - 4], edi
call eax
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
je 0x5ca44a
nop word [eax + eax]
push esi
call fcn.005c8961
add esp, 4
test eax, eax
jne 0x5ca44a
cmp esi, 0x3e
je 0x5ca44a
cmp esi, 0x2f
jne 0x5ca36b
cmp edi, dword [ebp + 8]
ja 0x5ca44a
jmp 0x5ca3cb
cmp esi, 0x3c
je 0x5ca928
cmp esi, 0x26
jne 0x5ca3b3
push dword [ebp - 8]
push ebx
call fcn.005caf01
add esp, 8
cmp eax, 0xffffffff
je 0x5caa3d
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.005ca031
add esp, 0x10
test eax, eax
je 0x5caa3d
mov edi, dword [ebp - 4]
jmp 0x5ca433
cmp esi, 0x30
jge 0x5ca3cb
cmp esi, 0x21
je 0x5ca3cb
cmp esi, 0x2d
je 0x5ca3cb
cmp esi, 0x2e
jne 0x5caa3d
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
call fcn.005ca031
add esp, 0x10
test eax, eax
je 0x5caa3d
mov edi, dword [ebp - 4]
mov eax, edi
mov ecx, dword [ebp + 8]
sub eax, ecx
cmp eax, 1
jne 0x5ca3fc
cmp byte [ecx], 0x3f
je 0x5ca44a
cmp eax, 3
jne 0x5ca417
push eax
push 0x660610
push ecx
call 0x7c6ea1
add esp, 0xc
test eax, eax
je 0x5ca44a
mov ecx, dword [ebp + 8]
mov eax, edi
sub eax, ecx
cmp eax, 8
jne 0x5ca433
push eax
push 0x6602cc
push ecx
call 0x7c6ea1
add esp, 0xc
test eax, eax
je 0x5ca44a
mov eax, dword [ebx + 0x2f0]
push ebx
call eax
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
jne 0x5ca341
mov byte [edi], 0
mov ecx, 0x580610
add eax, 0x9d203210
cmp dh, byte fs:[0x90473537]
adc dword gs:[ebp - 0x2a54f880], 0xd1a096a0
inc edx
iretd
mov ebx, 0x447eab8d
fild word [esi + 0x733d956a]
cmc
add bl, byte [edx - 0x2012858]
fisub word [ebx + 0x1698339d]
pop eax
push 0xf
int 0x8c
cmpsb byte [esi], byte es:[edi]
sal byte [edi - 0x32b54af7], 0x68
and byte [edx + 0x7471b0c7], bl
pushal
push eax
int3
idiv dword [eax + 0x6d]
push 0xffffffffffffffff
hlt
loopne 0x5ca87c
jg 0x5ca899
add al, 0xd9
aaa
mov dl, 0xc4
rcr dword [0x154f7542], cl
xor eax, 0x38118082
and dword [eax + 0x214954e4], edi
dec eax
dec ebx
xor byte [ebp + 0x4b83f802], ah
wait
xor byte [edx - 0x2f427f39], 0xb3
inc esp
sar dword [eax], cl
pushal
je 0x5ca887
xchg esi, eax
nop
or byte [ecx - 0x401ac7ba], dl
push es
add al, byte [esi]
movsb byte es:[edi], byte [esi]
or eax, 0xa03ef07f
xor eax, 0xe694a5b1
mov al, byte [0xe0c4d368]
xchg esp, eax
jg 0x5ca8f0
mov al, byte ds:[0x94a5b135]
out 0xa0, al
push 0x94e0c4d3
loope 0x5ca8f0
jnp 0x5ca8af
sahf
add byte [eax + 0x11], bh
cmpsb byte [esi], byte es:[edi]
invalid
das
sbb ch, al
movsb byte es:[edi], byte [esi]
in al, 0xd8
jmp 0x5e49043
arpl word [ebp + 0x562c0c6], ax
js 0x5caa7c
xchg ebp, eax
fidiv dword [esi]
cld
xor eax, 0xc47c9a35
cmp dword [ecx - 0x5101760c], ecx
xor bh, al
add esi, edx
mov bl, byte [ebx + 0x25615852]
popfd
in eax, 0x3d
sub dword [eax], edx
test al, 0xfb
xor ebx, eax
push edi
jne 0x5caa31
jecxz 0x5caa8b
enter 0xffffffffffffb905, 0x1c
pop esi
in eax, 0x80
sub byte [edi + edx], ah
fsubr st(0)
mov ch, 0x66
sub eax, 0x1aaa5576
rcr dword [0x40022e20], cl
sbb dl, bl
sbb eax, 0x40022e20
and byte [esi], ch
add al, byte [eax - 0x5c]
movsb byte es:[edi], byte [esi]
pop ss
push cs
popfd
mov byte [ebp + ebp*2 - 0x7e], bl
invalid
jg 0x5caa52
in al, 4
sar dword [eax], 1
sbb eax, 0x8f5e90d1
xchg esi, eax
add byte [ecx], 0x41
push cs
or ecx, dword [edi - 0x1494cf65]
out dx, al
imul ebp, ebx, 0xffffffee
jo 0x5caa68
sub dh, 0x1f
pop ebp
mov edi, 0xc845ba3b
cmp esi, dword [edx + 0xf]
jb 0x5caa9c
mul bl
invalid
xor ah, byte [ebx + ebx*8 - 8]
wait
xchg esi, eax
pop ebx
insb byte es:[edi], dx
movsd dword es:[edi], dword [esi]
and byte [ebx + edi*8 - 0x2d643a3d], 0x8a
sbb edx, esi
cld
lodsd eax, dword [esi]
setae byte [edi - 0x428247dc]
inc eax
inc edi
jbe 0x5caa55
mov cl, 0x42
xchg edx, eax
and eax, 0xa900df64
cmpsd dword [esi], dword es:[edi]
mov edi, 0x15ba7504
dec dword [esi]
xor byte [ebp - 0x2e], bl
push esp
and al, 0x57
xor byte [esi + edi*2 - 0x7f], 0x2d
jne 0x5caa7f
cmp ch, byte [eax - 0x6879d8cb]
sti
xchg ecx, eax
mov al, 0xd
add al, 0x2e
push 0xffffffffffffffba
aaa
mov byte [ebp + ebp*4 + 0x7f], ah
cli
adc esi, dword [ebx - 0x30]
and al, 0x32
cmp dword [edx + esi*4 - 0x7c], 0xa773d0bc
stosb byte es:[edi], al
push ecx
sub dword [ecx + 0x70], 0x798d40da
movsb byte es:[edi], byte [esi]
mov dword [0x1f0611aa], eax
invalid