Function at 0x100bb290
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.10054450
test eax, eax
je 0x100bb2ac
push 1
push 0x20
call fcn.10054f50
add esp, 8
mov ebp, dword [esi + 8]
mov ecx, ebp
mov edi, 1
call fcn.100969f0
mov ebx, eax
test byte [ebx + 0x1724], 0x10
je 0x100bb4f4
mov eax, dword [esp + 0x1c]
mov dword [eax], 0
xor eax, eax
lea edi, [esi + 0x4c4]
mov ecx, 0x19
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 8]
mov dword [esi + 0x510], ecx
mov edx, dword [ebx + 0x814]
mov dword [esi + 0x514], edx
mov dword [esi + 0x518], eax
cmp dword [ebx + 8], 0xffffffff
je 0x100bb309
cmp dword [ebx + 8], eax
jne 0x100bb33c
mov eax, dword [ebx + 0x814]
cmp eax, 0xffffffff
je 0x100bb33c
test eax, eax
je 0x100bb33c
mov eax, dword [ebx + 4]
mov ecx, ebp
mov dword [esi + 0x518], eax
call fcn.10070230
shl eax, 0xf
xor eax, dword [esi + 0x520]
and eax, 0xf8000
xor dword [esi + 0x520], eax
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x5cc]
xor eax, dword [esi + 0x520]
and eax, 1
xor dword [esi + 0x520], eax
mov eax, dword [ebx + 0x814]
cmp eax, 0xffffffff
je 0x100bb37f
test eax, eax
je 0x100bb37f
mov eax, dword [ebx + 0xa48]
shl eax, 0xa
xor eax, dword [esi + 0x520]
and eax, 0x7c00
xor dword [esi + 0x520], eax
mov ecx, dword [ebp + 0x1f4]
call fcn.10055580
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
test byte [eax + 0x1a], 2
je 0x100bb3a4
cmp dword [ebx + 0xa48], 8
jne 0x100bb3a4
mov al, 1
jmp 0x100bb3a6
xor al, al
movzx eax, al
add eax, eax
xor eax, dword [esi + 0x520]
and eax, 2
xor dword [esi + 0x520], eax
mov ecx, dword [ebx + 4]
mov dword [esi + 0x518], ecx
mov edx, dword [ebx + 0xc]
mov dword [esi + 0x51c], edx
mov eax, dword [ebx + 0xa48]
shl eax, 0xa
xor eax, dword [esi + 0x520]
mov ecx, ebp
and eax, 0x7c00
xor dword [esi + 0x520], eax
call fcn.10070230
shl eax, 0xf
xor eax, dword [esi + 0x520]
and eax, 0xf8000
xor dword [esi + 0x520], eax
mov ecx, dword [ebx + 0xdf0]
shl ecx, 4
xor ecx, dword [esi + 0x520]
and ecx, 0x70
xor dword [esi + 0x520], ecx
mov edx, dword [ebx + 0xdf8]
shl edx, 7
xor edx, dword [esi + 0x520]
and edx, 0x380
xor dword [esi + 0x520], edx
mov eax, dword [ebx + 0xc18]
cmp eax, 0x11
ja 0x100bb450
mov ecx, dword [esi + 0x50c]
xor ecx, eax
and ecx, 0x1f
xor dword [esi + 0x50c], ecx
mov dword [esp + 0x10], 0
lea edi, [esi + 0x4c4]
lea ebp, [ebx + 0xa64]
cmp byte [ebp + 0x14], 0
je 0x100bb49f
or dword [edi], 1
xor ecx, ecx
nop
mov edx, dword [ebp]
mov eax, 0x1f
shl eax, cl
shl edx, cl
add ecx, 5
not eax
add eax, eax
or eax, 0xffe00001
and eax, dword [edi]
add edx, edx
or edx, eax
xor edx, eax
and edx, 0x1ffffe
xor edx, eax
cmp ecx, 0x14
mov dword [edi], edx
jb 0x100bb470
mov eax, dword [esp + 0x10]
add eax, 1
add edi, 4
add ebp, 0x18
cmp eax, dword [ebx + 0xc18]
mov dword [esp + 0x10], eax
jbe 0x100bb464
mov eax, dword [esp + 0x1c]
mov dl, byte [ebx + 0x1ae9]
push eax
lea eax, [esi + 0x4c4]
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esi + 0x54]
mov byte [esi + 0x524], dl
call fcn.100cd730
mov edi, dword [eax]
call fcn.10054450
test eax, eax
je 0x100bb534
push 0x74
call fcn.10054f00
add esp, 4
jmp 0x100bb534
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx]
test ecx, ecx
je 0x100bb534
mov esi, dword [esi + 0x54]
mov eax, dword [esi + 0x3c]
add esi, 0x34
test eax, eax
je 0x100bb515
cmp ecx, dword [esi + 0xc]
jae 0x100bb515
mov esi, dword [eax + ecx*4]
jmp 0x100bb517
xor esi, esi
test esi, esi
je 0x100bb534
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
test al, al
je 0x100bb534
mov edx, dword [esi]
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call dword [edx + 0x10]
mov edi, dword [eax]
call fcn.10054450
test eax, eax
je 0x100bb549
push 0
push 0x20
call fcn.10054f50
add esp, 8
mov eax, dword [esp + 0x18]
mov dword [eax], edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8