Function at 0x100b81c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
xor edi, edi
xor ebp, ebp
xor ebx, ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], edi
cmp dword [esi], edi
je 0x100b81f6
pop edi
pop esi
pop ebp
mov eax, 0xfffff445
pop ebx
add esp, 0x18
ret
push esi
call fcn.100c1f00
add esp, 4
sub eax, 1
js 0x100b8415
jmp 0x100b8218
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x10]
lea ecx, [eax + 1]
cmp ecx, dword [esp + 0x3c]
jge 0x100b8225
mov dword [esp + 0x3c], ecx
test edi, edi
je 0x100b8236
mov dword [esp + 0x18], 1
cmp edi, 0xa
jne 0x100b823e
mov dword [esp + 0x18], 0
mov edi, eax
sub edi, dword [esp + 0x3c]
lea edx, [edi + 1]
cmp eax, edx
jl 0x100b8277
mov esi, dword [esi + 0xc]
mov edi, edi
mov ebp, eax
sar ebp, 5
mov ebp, dword [esi + ebp*4]
mov ecx, eax
and ecx, 0x1f
shr ebp, cl
dec eax
and ebp, 1
xor ebp, dword [esp + 0x18]
cmp eax, edx
lea ebx, [ebp + ebx*2]
jge 0x100b8250
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x38]
mov esi, dword [esi + 0xc]
mov eax, edi
mov edx, eax
sar edx, 5
mov edx, dword [esi + edx*4]
mov ecx, eax
and ecx, 0x1f
shr edx, cl
mov ecx, dword [esp + 0x18]
mov edi, 1
sub edi, ecx
and edx, 1
cmp edx, edi
jne 0x100b82af
test eax, eax
jl 0x100b82af
mov edi, 1
inc ebx
sub edi, ecx
mov dword [esp + 0x18], edi
mov ecx, edi
cmp eax, 0xffffffff
jne 0x100b82ba
cmp ecx, 1
jne 0x100b82ba
inc ebx
mov ecx, dword [esp + 0x10]
xor edi, edi
cmp eax, edi
jl 0x100b834f
cmp edx, 1
jne 0x100b8302
cmp ecx, edi
je 0x100b82de
mov dword [esp + 0x10], 0xb
cmp ecx, 0xa
jne 0x100b82e6
mov dword [esp + 0x10], 1
test eax, eax
jl 0x100b82eb
inc edi
dec eax
mov edx, eax
sar edx, 5
mov edx, dword [esi + edx*4]
mov ecx, eax
and ecx, 0x1f
shr edx, cl
test dl, 1
jne 0x100b82e6
jmp 0x100b8341
cmp ecx, edi
je 0x100b8313
mov dword [esp + 0x10], 0xa
cmp ecx, 0xa
jne 0x100b8317
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
cmp edx, edi
jne 0x100b833d
nop
test eax, eax
jl 0x100b8328
inc dword [esp + 0x14]
dec eax
mov edx, eax
sar edx, 5
mov edx, dword [esi + edx*4]
mov ecx, eax
and ecx, 0x1f
shr edx, cl
test dl, 1
je 0x100b8320
mov edi, dword [esp + 0x14]
test eax, eax
jge 0x100b8368
mov dword [esp + 0x24], 1
jmp 0x100b8368
cmp ecx, edi
je 0x100b8360
mov dword [esp + 0x10], 0xa
cmp ecx, 0xa
jne 0x100b8364
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
mov esi, ebx
shr esi, cl
test ebx, ebx
je 0x100b838c
xor edx, edx
test bl, 1
jne 0x100b8388
jmp 0x100b8380
shr ebx, 1
inc edx
test bl, 1
je 0x100b8380
add edx, edi
jmp 0x100b838e
mov edx, edi
test ebp, ebp
jle 0x100b83b3
cmp ebx, esi
mov ecx, ebx
jle 0x100b83b3
jmp 0x100b83a0
mov edi, dword [esp + 0x2c]
inc dword [esp + 0x20]
inc ebp
sar ecx, 1
cmp ecx, esi
mov byte [edi + ebp], 0
jg 0x100b83a0
mov ecx, dword [esp + 0x10]
cmp ecx, 0xa
je 0x100b83c4
cmp ecx, 0xb
je 0x100b83c4
inc ebp
jmp 0x100b83c9
not bl
inc ebp
inc bl
mov ecx, dword [esp + 0x2c]
mov byte [ecx + ebp], bl
xor ebx, ebx
cmp edx, ebx
mov dword [esp + 0x1c], ebp
jle 0x100b83ee
add dword [esp + 0x20], edx
mov edi, edi
inc ebp
dec edx
cmp edx, ebx
mov byte [ecx + ebp], 0
jg 0x100b83e0
mov dword [esp + 0x1c], ebp
mov edx, 1
cmp dword [esp + 0x24], edx
jne 0x100b8409
cmp dword [esp + 0x18], edx
jne 0x100b8409
add ebp, edx
mov dword [esp + 0x1c], ebp
mov byte [ecx + ebp], 0xff
cmp eax, ebx
mov dword [esp + 0x14], ebx
jge 0x100b8210
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword [edx], ebp
pop ebp
mov dword [eax], ecx
xor eax, eax
pop ebx
add esp, 0x18
ret