Function at 0x1000b1e0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0xc]
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x18]
mov ebx, dword [edi + 0x28]
lea eax, [ecx + edx*4]
xor esi, esi
cmp dword [eax], esi
je 0x1000b20a
mov eax, dword [eax]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
xor eax, eax
cmp dword [edi + 0x10], esi
jle 0x1000b21d
mov ecx, dword [edi + 0x1c]
mov dword [ecx + eax*4], esi
inc eax
cmp eax, dword [edi + 0x10]
jl 0x1000b211
xor ebp, ebp
cmp dword [edi + 8], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], 1
mov dword [esp + 0x10], ebp
jle 0x1000b2d7
mov ecx, esi
and ecx, 0x1f
mov edx, 1
shl edx, cl
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx]
mov eax, esi
shr eax, 5
test dword [ecx + eax*4], edx
je 0x1000b2bd
mov edx, dword [ebx + 0x1c]
mov eax, dword [edx + esi*4]
movzx ecx, word [eax + 8]
add eax, 8
cmp cx, 0xffff
je 0x1000b2bd
movsx ecx, cx
cmp ecx, dword [esp + 0x34]
jne 0x1000b2b0
mov ecx, dword [eax + 4]
mov ebp, dword [edi + 0x1c]
mov edx, ecx
shr edx, 5
lea edx, [ebp + edx*4]
and ecx, 0x1f
mov ebp, 1
shl ebp, cl
or dword [edx], ebp
mov ecx, dword [eax + 4]
mov ebp, 1
cmp ecx, dword [ebx + 0x10]
jne 0x1000b29c
mov dword [esp + 0x14], ebp
mov edx, dword [ebx + 0x1c]
mov ecx, dword [edx + ecx*4]
cmp word [ecx], 0
jne 0x1000b2b0
mov dword [esp + 0x18], 0
movzx ecx, word [eax + 8]
add eax, 8
cmp cx, 0xffff
jne 0x1000b267
inc esi
cmp esi, dword [edi + 8]
jl 0x1000b238
mov dword [esp + 0x10], ebp
test ebp, ebp
je 0x1000b2d7
mov eax, dword [ebx + 8]
and eax, 1
jmp 0x1000b2d9
xor eax, eax
mov dword [esp + 0x24], 0
test eax, eax
je 0x1000b3e8
xor edx, edx
cmp dword [edi + 8], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], edx
jle 0x1000b3e8
lea esp, [esp]
mov esi, dword [edi + 0x1c]
mov ecx, edx
and ecx, 0x1f
mov eax, 1
shl eax, cl
mov ecx, edx
shr ecx, 5
test dword [esi + ecx*4], eax
je 0x1000b3cf
mov eax, dword [ebx + 0x1c]
mov esi, dword [eax + edx*4]
movzx eax, word [esi + 8]
add esi, 8
cmp ax, 0xffff
je 0x1000b3cf
movsx edx, ax
cmp edx, dword [ebx + 4]
jle 0x1000b3b6
mov eax, dword [esi + 4]
mov ecx, eax
and ecx, 0x1f
mov ebp, 1
shl ebp, cl
mov ecx, dword [edi + 0x1c]
shr eax, 5
mov dword [esp + 0x24], 1
test dword [ecx + eax*4], ebp
jne 0x1000b3b6
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x3c]
push edx
mov edx, ebx
call fcn.1000b520
add esp, 8
test eax, eax
je 0x1000b3b6
mov ecx, dword [esi + 4]
mov edx, dword [edi + 0x1c]
mov eax, ecx
shr eax, 5
lea eax, [edx + eax*4]
mov edx, 1
and ecx, 0x1f
mov ebp, edx
shl ebp, cl
mov dword [esp + 0x20], edx
or dword [eax], ebp
mov eax, dword [esi + 4]
cmp eax, dword [ebx + 0x10]
jne 0x1000b3a2
mov dword [esp + 0x14], edx
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ecx + eax*4]
cmp word [edx], 0
jne 0x1000b3b6
mov dword [esp + 0x18], 0
movzx eax, word [esi + 8]
add esi, 8
cmp ax, 0xffff
jne 0x1000b334
mov edx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x10]
inc edx
cmp edx, dword [edi + 8]
mov dword [esp + 0x1c], edx
jl 0x1000b300
cmp dword [esp + 0x20], 0
jne 0x1000b2e9
test ebp, ebp
jne 0x1000b3f6
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov edx, dword [edi + 0x10]
cmp edx, 1
jne 0x1000b405
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax]
jmp 0x1000b41a
xor ecx, ecx
test edx, edx
jle 0x1000b41a
mov eax, dword [edi + 0x1c]
mov edi, edi
xor ecx, dword [eax]
add eax, 4
sub edx, 1
jne 0x1000b410
mov edx, dword [edi + 4]
mov eax, dword [edi + 0x14]
mov dword [esp + 0x10], ecx
test edx, edx
jle 0x1000b48b
mov ecx, dword [esp + 0x10]
cmp dword [eax + 4], ecx
jne 0x1000b481
mov ecx, dword [edi + 0x10]
cmp ecx, 1
je 0x1000b489
mov esi, dword [eax]
mov ebp, dword [edi + 0x1c]
add ecx, ecx
add ecx, ecx
cmp ecx, 4
jb 0x1000b45c
mov ebx, dword [ebp]
cmp ebx, dword [esi]
jne 0x1000b481
sub ecx, 4
add esi, 4
add ebp, 4
cmp ecx, 4
jae 0x1000b447
test ecx, ecx
je 0x1000b489
mov bl, byte [esi]
cmp bl, byte [ebp]
jne 0x1000b481
cmp ecx, 1
jbe 0x1000b489
mov bl, byte [esi + 1]
cmp bl, byte [ebp + 1]
jne 0x1000b481
cmp ecx, 2
jbe 0x1000b489
mov cl, byte [esi + 2]
cmp cl, byte [ebp + 2]
je 0x1000b489
dec edx
add eax, 0x20
test edx, edx
jg 0x1000b428
test edx, edx
jne 0x1000b4e3
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x30]
push edi
call fcn.1000b5d0
xor ecx, ecx
add esp, 8
cmp dword [edi + 0x10], ecx
jle 0x1000b4c1
lea ebx, [ebx]
mov edx, dword [edi + 0x1c]
mov edx, dword [edx + ecx*4]
mov esi, dword [eax]
mov dword [esi + ecx*4], edx
inc ecx
cmp ecx, dword [edi + 0x10]
jl 0x1000b4b0
mov ecx, dword [esp + 0x10]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x14]
neg ecx
sbb ecx, ecx
and ecx, 2
cmp dword [esp + 0x18], 0
mov dword [eax + 8], ecx
je 0x1000b4e3
or ecx, 8
mov dword [eax + 8], ecx
cmp dword [esp + 0x24], 0
jne 0x1000b50f
mov esi, dword [esp + 0x30]
mov ecx, dword [esi + 0x18]
mov edx, dword [esp + 0x34]
mov dword [ecx + edx*4], eax
mov ecx, dword [esi + 0x1c]
mov edi, dword [eax + 0xc]
mov dword [ecx + edx*8], edi
mov edi, dword [eax + 0x10]
mov dword [ecx + edx*8 + 4], edi
mov dword [eax + 0xc], esi
mov word [eax + 0x10], dx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret