Function at 0x105de90
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x27c
mov ebx, dword [0xf0282c]
mov ebp, dword [0xf02828]
mov eax, ebp
or eax, ebx
jne 0x105df24
mov dword [esp + 0x4c], 0x51ba4fa2
mov dword [esp + 0x50], 0x55be53b4
mov dword [esp + 0x54], 0x597857b8
mov dword [esp + 0x58], 0x5db65bbc
mov dword [esp + 0x5c], 0x615e5fb0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0x8d
xor cl, byte [esp + eax + 0x4c]
add cl, 0x3f
mov byte [esp + eax + 0x4c], cl
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
cmp eax, 0x14
jb 0x105dee0
lea eax, [esp + 0x4c]
push eax
call fcn.0105db00
add esp, 4
mov ebp, eax
mov dword [0xf0282c], edx
mov dword [0xf02828], eax
or eax, edx
je 0x105dffe
mov ebx, edx
lea eax, [esp + 0x14c]
push 0x40
push eax
push ebx
push ebp
call fcn.0105d910
add esp, 0x10
test eax, eax
js 0x105dffe
mov eax, dword [esp + 0x188]
mov ecx, eax
sar ecx, 0x1f
add eax, ebp
adc ecx, ebx
add eax, 0x18
adc ecx, 0
lea edx, [esp + 0x18c]
push 0xf0
push edx
push ecx
push eax
call fcn.0105d910
add esp, 0x10
xor edi, edi
test eax, eax
js 0x105e000
cmp dword [esp + 0x200], 0
je 0x105e000
mov eax, dword [esp + 0x1fc]
mov esi, 0
test eax, eax
je 0x105e002
add eax, ebp
mov ecx, ebx
adc ecx, 0
lea edx, [esp + 0x24]
push 0x28
push edx
push ecx
push eax
call fcn.0105d910
add esp, 0x10
test eax, eax
js 0x105dffe
mov ecx, dword [esp + 0x38]
lea esi, [ecx*4]
mov eax, 0xffffffff
cmp ecx, 0x40000000
jae 0x105dfc7
mov eax, esi
push eax
call fcn.0102a430
add esp, 4
mov edx, dword [esp + 0x40]
add edx, ebp
mov ecx, ebx
adc ecx, 0
push esi
mov dword [esp + 0xc], eax
push eax
push ecx
push edx
call fcn.0105d910
add esp, 0x10
test eax, eax
js 0x105e011
mov eax, dword [esp + 0x38]
test eax, eax
jns 0x105e01a
mov eax, 0xffffffff
jmp 0x105e01c
xor edi, edi
xor esi, esi
mov eax, edi
mov edx, esi
add esp, 0x27c
pop esi
pop edi
pop ebx
pop ebp
ret
xor edi, edi
xor esi, esi
jmp 0x105e236
add eax, eax
push eax
call fcn.0102a430
add esp, 4
mov esi, dword [esp + 0x3c]
mov ecx, esi
and ecx, 0xfffffffd
mov edx, esi
and edx, 2
or esi, 2
imul esi, edx
xor edx, 2
imul edx, ecx
add esi, edx
mov ecx, dword [esp + 0x48]
add ecx, ebp
mov edx, ebx
adc edx, 0
push esi
mov dword [esp + 4], eax
push eax
push edx
push ecx
call fcn.0105d910
add esp, 0x10
test eax, eax
js 0x105e227
mov ecx, dword [esp + 0x3c]
lea esi, [ecx*4]
mov eax, 0xffffffff
cmp ecx, 0x40000000
jae 0x105e07e
mov eax, esi
push eax
call fcn.0102a430
add esp, 4
mov edx, dword [esp + 0x44]
add edx, ebp
mov ecx, ebx
adc ecx, 0
push esi
mov dword [esp + 0x10], eax
push eax
push ecx
push edx
call fcn.0105d910
add esp, 0x10
test eax, eax
js 0x105e215
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
cmp esi, eax
jb 0x105e0b8
mov esi, eax
test esi, esi
je 0x105e215
xor edi, edi
mov dword [esp + 4], ebx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], esi
jmp 0x105e0fb
mov eax, 0x36c0b43e
mov ebx, dword [esp + 4]
cmp eax, dword [esp + 0x290]
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
je 0x105e247
inc edi
cmp edi, esi
je 0x105e215
mov eax, dword [esp + 0xc]
mov eax, dword [eax + edi*4]
mov edx, ebp
and edx, eax
mov ecx, edx
shr ecx, 0x1f
add edx, edx
xor eax, ebp
add eax, edx
adc ecx, ebx
push 0x100
lea edx, [esp + 0x50]
push edx
push ecx
push eax
call fcn.0105d910
add esp, 0x10
test eax, eax
jns 0x105e132
cmp eax, 0x8000000d
jne 0x105e0f2
mov dword [esp + 0x20], edi
mov ecx, 0xffffffff
xor eax, eax
nop
nop
nop
mov edi, eax
cmp byte [esp + ecx + 0x4d], 0
lea ecx, [ecx + 1]
lea eax, [eax + 1]
jne 0x105e140
mov dword [esp + 0x10], 0x161a1481
mov byte [esp + 0x14], 0
mov eax, 0xc4
mov edx, 0x3b
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + edx - 0x2b]
lea ebx, [eax - 0x80]
mov ebp, edx
and ebp, 0x26
and ebx, 0x59
or ebx, ebp
mov ebp, eax
and ebp, esi
xor ebx, esi
xor ebx, 0x59
or ebx, ebp
add bl, 0xd9
mov byte [esp + edx - 0x2b], bl
dec eax
inc edx
cmp eax, 0xbf
jne 0x105e170
test ecx, ecx
je 0x105e0d0
mov edx, dword [esp + 0x10]
mov ebp, 0x36c0b43e
lea esi, [esp + 0x4c]
cmp ecx, 4
jb 0x105e1eb
mov eax, edi
and eax, 0xfffffffc
nop
nop
nop
nop
movsx ebx, byte [esi]
xor ebx, ebp
imul ebx, edx
movsx ebp, byte [esi + 1]
xor ebp, ebx
imul ebp, edx
movsx ebx, byte [esi + 2]
xor ebx, ebp
imul ebx, edx
movsx ebp, byte [esi + 3]
add esi, 4
xor ebp, ebx
imul ebp, edx
add eax, 0xfffffffc
jne 0x105e1c0
mov eax, ebp
test cl, 3
mov ebx, dword [esp + 4]
je 0x105e0d9
and edi, 3
xor ecx, ecx
nop
movsx eax, byte [esi + ecx]
xor eax, ebp
imul eax, edx
inc ecx
mov ebp, eax
cmp edi, ecx
jne 0x105e200
jmp 0x105e0d9
xor edi, edi
xor esi, esi
push dword [esp + 0xc]
call fcn.0102a440
add esp, 4
jmp 0x105e22b
xor edi, edi
xor esi, esi
push dword [esp]
call fcn.0102a440
add esp, 4
push dword [esp + 8]
call fcn.0102a440
add esp, 4
jmp 0x105e002
mov eax, dword [esp]
movzx eax, word [eax + edi*2]
mov ecx, dword [esp + 8]
add ebp, dword [ecx + eax*4]
adc ebx, 0
mov edi, ebp
mov esi, ebx
jmp 0x105e219