Function at 0x100b0341
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov edx, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 3
mov eax, dword [esi + 0x454]
cmp edx, eax
pop ecx
cmovg edx, eax
mov dword [ebp - 0x28], ecx
xor ebx, ebx
mov dword [ebp - 0x18], edx
lea eax, [edi + 0x18]
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x34], eax
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x100b0768
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
movzx ecx, byte [eax*2 + 0x10141390]
movzx eax, byte [eax*2 + 0x10141391]
mov dword [ebp - 0x30], eax
mov eax, ecx
shl eax, 4
add eax, 0x101c6728
mov dword [ebp - 0x24], eax
test ecx, ecx
jne 0x100b03d4
mov eax, dword [ebp - 0x1c]
shl eax, 3
push eax
lea eax, [ebx + 0x20]
push ecx
lea eax, [edi + eax*4]
push eax
call fcn.101138b0
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov edx, dword [ebp - 0x18]
lea ebx, [ebx + eax*2]
mov dword [ebp - 4], ebx
jmp 0x100b0765
cmp dword [ebp - 0x1c], 0
jle 0x100b0765
lea eax, [ebx + 0x21]
lea eax, [edi + eax*4]
lea edi, [edi + ebx*4]
mov dword [ebp - 0x10], eax
sub edi, 0xffffff80
mov dword [ebp - 0xc], edi
mov eax, dword [esi + 0x450]
mov dword [ebp - 0x2c], eax
cmp eax, edx
jl 0x100b0421
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.100b2916
mov edx, dword [ebp - 0x20]
add esp, 0x10
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x2c], edx
jge 0x100b0762
mov ebx, dword [ebp - 0x24]
lea eax, [esi + 0x448]
mov ecx, dword [eax + 0x10]
mov esi, ebx
mov edx, dword [eax + 8]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [eax]
mov eax, edx
shr eax, 3
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x38], ecx
mov ecx, dword [eax + ecx]
mov edx, ecx
mov eax, ecx
and edx, 0xff0000
shr eax, 0x10
or edx, eax
mov eax, ecx
and ecx, 0xff00
shl eax, 0x10
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov eax, dword [ebp - 0x14]
mov ecx, eax
and ecx, 7
shl edx, cl
mov ecx, dword [ebx + 4]
mov ebx, dword [esi + 4]
mov esi, dword [ebp + 8]
shr edx, 0x19
movsx ecx, word [ecx + edx*4]
movsx edx, word [ebx + edx*4 + 2]
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], ecx
test edx, edx
jns 0x100b0568
mov edi, dword [ebp - 0x2c]
add eax, 7
mov ecx, dword [ebp - 0x38]
cmp edi, eax
push 0x20
cmova edi, eax
neg edx
mov dword [ebp - 4], edx
mov eax, edi
shr eax, 3
mov dword [ebp - 0x14], edi
mov ecx, dword [eax + ecx]
mov edx, ecx
mov eax, ecx
and edx, 0xff0000
shr eax, 0x10
or edx, eax
mov eax, ecx
and ecx, 0xff00
shl eax, 0x10
or eax, ecx
shr edx, 8
shl eax, 8
mov ecx, edi
or edx, eax
and ecx, 7
shl edx, cl
pop ecx
sub ecx, dword [ebp - 4]
shr edx, cl
mov ecx, dword [ebp - 0x24]
add edx, dword [ebp - 8]
mov eax, dword [ecx + 4]
movsx ecx, word [eax + edx*4]
movsx edx, word [eax + edx*4 + 2]
mov eax, edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0x3c], edx
test edx, edx
jns 0x100b0565
add eax, dword [ebp - 4]
mov edi, dword [ebp - 0x2c]
cmp edi, eax
mov ecx, dword [ebp - 0x38]
cmova edi, eax
mov eax, edi
mov dword [ebp - 0x14], edi
shr eax, 3
mov ecx, dword [eax + ecx]
mov edx, ecx
mov eax, ecx
and edx, 0xff0000
shr eax, 0x10
or edx, eax
mov eax, ecx
and ecx, 0xff00
shl eax, 0x10
or eax, ecx
shr edx, 8
shl eax, 8
mov ecx, edi
or edx, eax
and ecx, 7
shl edx, cl
mov ecx, dword [ebp - 0x3c]
add ecx, 0x20
shr edx, cl
mov ecx, dword [ebp - 0x24]
add edx, dword [ebp - 8]
mov eax, dword [ecx + 4]
movsx ecx, word [eax + edx*4]
movsx edx, word [eax + edx*4 + 2]
mov eax, edi
mov edi, dword [ebp - 0xc]
add eax, edx
mov edx, dword [ebp - 0x2c]
cmp edx, eax
cmova edx, eax
lea eax, [esi + 0x448]
mov dword [eax + 8], edx
test ecx, ecx
jne 0x100b058d
mov ecx, dword [ebp - 0x10]
and dword [ecx], 0
and dword [edi], 0
jmp 0x100b073e
mov edx, dword [ebp + 0x10]
movsx edi, word [edx + ebx*2]
mov edx, ecx
sar edx, 5
mov dword [ebp - 0x2c], edi
test cl, 0x10
je 0x100b068d
and ecx, 0xf
mov dword [ebp - 0x38], edx
mov dword [ebp - 8], ecx
cmp edx, 0xf
jge 0x100b05d6
push eax
call fcn.100d8ec5
pop ecx
mov ecx, edi
neg eax
shl ecx, 4
add ecx, dword [ebp - 0x38]
mov ecx, dword [ecx*4 + 0x101f2fe0]
xor ecx, eax
sub ecx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax], ecx
jmp 0x100b0612
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x100b05eb
push ecx
push eax
call fcn.10043ccf
mov edx, dword [ebp - 0x38]
pop ecx
pop ecx
jmp 0x100b05ed
xor eax, eax
add eax, edx
push edi
push eax
call fcn.100b0b87
lea ecx, [esi + 0x448]
mov edi, eax
push ecx
call fcn.100d8ec5
add esp, 0xc
test eax, eax
je 0x100b060d
neg edi
mov eax, dword [ebp - 0xc]
mov dword [eax], edi
mov edi, dword [ebp - 8]
cmp edi, 0xf
jge 0x100b0646
lea eax, [esi + 0x448]
push eax
call fcn.100d8ec5
pop ecx
mov ecx, dword [ebp - 0x2c]
neg eax
shl ecx, 4
add ecx, edi
mov ecx, dword [ecx*4 + 0x101f2fe0]
xor ecx, eax
sub ecx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax], ecx
jmp 0x100b0738
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x100b065e
push eax
lea eax, [esi + 0x448]
push eax
call fcn.10043ccf
pop ecx
pop ecx
jmp 0x100b0660
xor eax, eax
mov ecx, dword [ebp - 0x2c]
add eax, edi
push ecx
push eax
call fcn.100b0b87
mov edi, eax
lea eax, [esi + 0x448]
push eax
call fcn.100d8ec5
add esp, 0xc
test eax, eax
je 0x100b0683
neg edi
mov ecx, dword [ebp - 0x10]
mov dword [ecx], edi
jmp 0x100b073b
and ecx, 0xf
add edx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x38], edx
cmp edx, 0xf
jge 0x100b06d1
push eax
call fcn.100d8ec5
mov edx, dword [ebp + 0xc]
neg eax
shl edi, 4
add edi, dword [ebp - 0x38]
pop ecx
mov ecx, dword [edi*4 + 0x101f2fe0]
mov edi, dword [ebp - 8]
xor ecx, eax
sub ecx, eax
xor eax, eax
test edi, edi
setne al
add eax, ebx
mov dword [edx + eax*4 + 0x80], ecx
mov ecx, edx
jmp 0x100b0727
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x100b06e6
push ecx
push eax
call fcn.10043ccf
mov edx, dword [ebp - 0x38]
pop ecx
pop ecx
jmp 0x100b06e8
xor eax, eax
add eax, edx
push edi
push eax
call fcn.100b0b87
mov edi, eax
mov dword [ebp - 0x38], eax
lea eax, [esi + 0x448]
push eax
call fcn.100d8ec5
add esp, 0xc
test eax, eax
je 0x100b070e
neg edi
mov dword [ebp - 0x38], edi
mov edi, dword [ebp - 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test edi, edi
mov edx, dword [ebp - 0x38]
setne al
add eax, ebx
mov dword [ecx + eax*4 + 0x80], edx
xor eax, eax
test edi, edi
sete al
add eax, ebx
and dword [ecx + eax*4 + 0x80], 0
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
add ebx, 2
mov edx, dword [ebp - 0x18]
add edi, 8
add ecx, 8
mov dword [ebp - 0xc], edi
dec eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], eax
test eax, eax
jg 0x100b03f0
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x34]
add eax, 4
dec ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], ecx
jne 0x100b0375
movzx eax, byte [edi + 0x31]
xor ecx, ecx
shl eax, 4
add eax, 0x101ca2b0
mov dword [ebp - 0x28], eax
cmp ebx, 0x23c
jg 0x100b0923
lea eax, [ebx + 0x22]
lea eax, [edi + eax*4]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x450]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
cmp eax, edx
jl 0x100b07e6
mov edi, dword [ebp + 0x14]
cmp eax, edi
jle 0x100b07c0
test ecx, ecx
jne 0x100b08d3
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x38]
push eax
push esi
call fcn.100b2916
mov edx, dword [ebp - 0x20]
add esp, 0x10
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x18], edx
cmp eax, edx
jge 0x100b0923
mov dword [ebp - 0x2c], eax
lea eax, [esi + 0x448]
mov esi, dword [eax + 8]
mov ecx, esi
mov ebx, dword [eax + 0x10]
mov dword [ebp - 0x38], eax
mov eax, dword [eax]
mov edi, dword [ebp - 0x28]
shr ecx, 3
push 0x20
mov edi, dword [edi + 4]
mov ecx, dword [ecx + eax]
mov edx, ecx
mov eax, ecx
and edx, 0xff0000
shr eax, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
mov ecx, esi
or edx, eax
and ecx, 7
mov eax, dword [ebp - 0x28]
shl edx, cl
pop ecx
sub ecx, dword [eax]
shr edx, cl
movsx eax, word [edi + edx*4 + 2]
movsx ecx, word [edi + edx*4]
add eax, esi
mov edi, dword [ebp - 0x30]
cmp ebx, eax
mov edx, dword [ebp - 0x38]
cmova ebx, eax
mov dword [ebp - 0x34], ecx
xor eax, eax
mov dword [edx + 8], ebx
mov ebx, dword [ebp - 4]
mov dword [edi + 4], eax
mov dword [edi], eax
mov dword [edi - 4], eax
mov dword [edi - 8], eax
test ecx, ecx
je 0x100b08b1
mov edi, dword [ebp + 0xc]
mov ecx, dword [ecx*4 + 0x101401e8]
push 8
pop eax
sar eax, cl
xor dword [ebp - 0x34], eax
lea esi, [ecx + ebx]
push edx
call fcn.100d8ec5
mov edx, dword [ebp - 0x38]
neg eax
pop ecx
mov ecx, dword [ebp + 0x10]
movsx ecx, word [ecx + esi*2]
mov ecx, dword [ecx*4 + 0x101f27e0]
xor ecx, eax
sub ecx, eax
mov dword [edi + esi*4 + 0x80], ecx
mov ecx, dword [ebp - 0x34]
test ecx, ecx
jne 0x100b0870
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp + 8]
add ebx, 4
add edi, 0x10
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], edi
cmp ebx, 0x23c
jg 0x100b0923
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
jmp 0x100b07a1
sub ecx, eax
sub ebx, 4
push ecx
lea eax, [esi + 0x448]
mov dword [ebp - 0x2c], ecx
push eax
call fcn.1004e146
mov edx, dword [ebp - 0x18]
mov eax, edi
sub eax, dword [ebp - 0x3c]
sub edx, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x2c]
push edx
push eax
push str.overread__skip__d_enddists:__d__d_n
push 0x20
push dword [esi + 0x80ac]
call fcn.1010c4f6
add esp, 0x20
test dword [esi + 0x80a8], 0x20002
push 0
pop eax
cmovne ebx, eax
mov dword [ebp - 4], ebx
jmp 0x100b0926
mov edi, dword [ebp + 0x14]
sub edi, dword [esi + 0x450]
jns 0x100b0954
test dword [esi + 0x80a8], 0x20004
je 0x100b0954
push edi
push str.bits_left_d_n
push 0x10
push dword [esi + 0x80ac]
call fcn.1010c4f6
add esp, 0x10
xor ecx, ecx
jmp 0x100b0967
test edi, edi
jle 0x100b0964
test dword [esi + 0x80a8], 0x40004
jne 0x100b093a
mov ecx, dword [ebp - 4]
mov eax, 0x240
sub eax, ecx
shl eax, 2
push eax
mov eax, dword [ebp + 0xc]
push 0
lea eax, [eax + ecx*4]
sub eax, 0xffffff80
push eax
call fcn.101138b0
lea eax, [esi + 0x448]
push edi
push eax
call fcn.1004e146
mov eax, dword [esi + 0x450]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0xc]
push eax
push esi
call fcn.100b2916
add esp, 0x24
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret