Function at 0x100b9f40
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x2c]
push ebx
push ebp
mov ebp, ecx
mov ebx, edx
mov ecx, dword [esp + 0x28]
push esi
push edi
mov edi, dword [esp + 0x34]
mov dword [esp + 0x10], ebx
lea esi, [eax + ecx*4]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x1c], esi
cmp edi, 1
ja 0x100b9f77
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret 0x18
mov ecx, dword [esp + 0x38]
lea edx, [eax + 0x40000]
mov eax, 1
lea edx, [edx + ebp*4]
shl eax, cl
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], eax
cmp edi, eax
ja 0x100ba164
cmp edi, dword [esp + 0x44]
ja 0x100ba164
mov eax, dword [esp + 0x3c]
lea edi, [eax + ebp*4]
mov eax, dword [esi]
add eax, ebx
mov dword [esp + 0x3c], edi
mov ecx, eax
sub ecx, ebp
cmp eax, ebp
cmovb ecx, eax
mov eax, dword [edx + ecx*4]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x44], eax
shl eax, cl
mov ecx, dword [esp + 0x34]
mov dword [edi], eax
cmp ecx, 1
jbe 0x100ba15c
mov eax, esi
lea ebx, [edi + 4]
sub eax, edi
mov esi, 1
mov dword [esp + 0x40], eax
xor edi, edi
nop dword [eax + eax]
mov eax, dword [eax + ebx]
lea ebx, [ebx + 4]
add eax, dword [esp + 0x10]
mov ecx, eax
sub ecx, ebp
cmp eax, ebp
cmovb ecx, eax
mov edx, dword [edx + ecx*4]
mov eax, edx
mov ecx, dword [esp + 0x38]
xor edx, dword [esp + 0x44]
shl eax, cl
or edi, edx
mov ecx, dword [esp + 0x34]
or eax, esi
mov edx, dword [esp + 0x14]
inc esi
mov dword [ebx - 4], eax
mov eax, dword [esp + 0x40]
cmp esi, ecx
jb 0x100b9ff0
mov esi, dword [esp + 0x1c]
test edi, edi
mov edi, dword [esp + 0x3c]
je 0x100ba15c
mov edx, ecx
mov ecx, edi
call fcn.100cd900
mov ebx, dword [esp + 0x20]
xor eax, eax
mov ecx, dword [esp + 0x38]
dec ebx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x40], eax
mov eax, dword [edi]
mov edx, eax
and eax, ebx
shr edx, cl
mov dword [esp + 0x44], edx
xor ebp, ebp
mov dword [esp + 0x20], ebx
mov edx, 1
mov eax, dword [esi + eax*4]
mov dword [edi], eax
mov ebx, dword [edi + edx*4]
mov eax, ebx
shr eax, cl
cmp eax, dword [esp + 0x44]
je 0x100ba0d0
mov dword [esp + 0x44], eax
mov ecx, edx
mov eax, dword [esp + 0x30]
sub ecx, ebp
add eax, edx
mov dword [esp + 0x40], eax
sub ecx, 1
je 0x100ba0cc
mov eax, ecx
and eax, 0x3ff
or eax, 0xfffff800
shl eax, 0x14
or eax, dword [edi + ebp*4]
mov dword [edi + ebp*4], eax
cmp ecx, 0x400
jb 0x100ba0cc
and ecx, 0xfffffc00
or eax, 0x40000000
shl ecx, 0xa
mov dword [edi + ebp*4], eax
or dword [edi + ebp*4 + 4], ecx
mov ebp, edx
jmp 0x100ba0d8
mov dword [esp + 0x3c], 1
and ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x40]
mov eax, dword [esi + ebx*4]
mov ebx, dword [esp + 0x14]
mov dword [edi + edx*4], eax
inc edx
mov dword [ebx + eax*4], ecx
mov ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
cmp edx, ebx
jb 0x100ba076
sub edx, ebp
sub edx, 1
je 0x100ba137
mov eax, edx
and eax, 0x3ff
or eax, 0xfffff800
shl eax, 0x14
or eax, dword [edi + ebp*4]
mov dword [edi + ebp*4], eax
cmp edx, 0x400
jb 0x100ba137
and edx, 0xfffffc00
or eax, 0x40000000
shl edx, 0xa
mov dword [edi + ebp*4], eax
or dword [edi + ebp*4 + 4], edx
test ebx, ebx
je 0x100ba14e
sub edi, esi
nop dword [eax]
mov ecx, dword [edi + esi]
lea esi, [esi + 4]
mov dword [esi - 4], ecx
sub ebx, 1
jne 0x100ba140
mov eax, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x18
add ecx, 0xffffffff
jmp 0x100ba29d
mov eax, dword [esp + 0x10]
mov ebx, dword [esi]
add eax, ebx
mov ecx, eax
sub ecx, ebp
cmp eax, ebp
cmovb ecx, eax
mov eax, dword [esp + 0x34]
mov edi, dword [edx + ecx*4]
mov edx, 1
cmp eax, edx
jbe 0x100ba1b2
mov ebx, dword [esp + 0x10]
nop dword [eax]
mov eax, dword [esi + edx*4]
add eax, ebx
mov ecx, eax
sub ecx, ebp
cmp eax, ebp
cmovb ecx, eax
mov eax, dword [esp + 0x14]
cmp dword [eax + ecx*4], edi
mov eax, dword [esp + 0x34]
jne 0x100ba1b0
inc edx
cmp edx, eax
jb 0x100ba190
mov ebx, dword [esi]
cmp edx, eax
jne 0x100ba1d7
lea ecx, [eax - 1]
test ecx, ecx
je 0x100ba2cd
mov eax, ecx
and eax, 0x3ff
or eax, 0xfffff800
shl eax, 0x14
or eax, ebx
jmp 0x100ba2b0
mov edx, dword [esp + 0x44]
cmp edx, 1
jbe 0x100ba298
mov ebx, dword [esp + 0x40]
inc edx
shr edx, 1
add ebx, edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], ebx
xor edi, edi
mov edx, dword [esi + edi*4]
mov ecx, dword [esp + 0x10]
add ecx, edx
mov dword [esp + 0x24], edx
mov edx, ecx
sub edx, ebp
cmp ecx, ebp
cmovb edx, ecx
mov ecx, dword [esp + 0x14]
cmp dword [ecx + edx*4], ebx
jb 0x100ba25c
dec eax
cmp eax, edi
jbe 0x100ba261
nop dword [eax + eax]
mov ebx, dword [esi + eax*4]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
add ecx, ebx
mov edx, ecx
sub edx, ebp
cmp ecx, ebp
cmovb edx, ecx
mov ecx, dword [esp + 0x18]
cmp dword [esi + edx*4], ecx
mov esi, dword [esp + 0x1c]
jb 0x100ba24a
dec eax
cmp eax, edi
ja 0x100ba220
jmp 0x100ba265
mov edx, dword [esp + 0x24]
mov dword [esi + edi*4], ebx
mov dword [esi + eax*4], edx
cmp edi, eax
jae 0x100ba265
mov ebx, dword [esp + 0x18]
inc edi
cmp edi, eax
jb 0x100ba1f7
mov ecx, dword [esp + 0x18]
test edi, edi
jne 0x100ba27f
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
sub eax, ecx
add edx, eax
mov dword [esp + 0x40], ecx
mov eax, dword [esp + 0x34]
jmp 0x100ba28b
mov eax, dword [esp + 0x34]
cmp edi, eax
jne 0x100ba2dc
mov edx, dword [esp + 0x20]
mov dword [esp + 0x44], edx
cmp edx, 1
ja 0x100ba1e4
lea ecx, [eax - 1]
test ecx, ecx
je 0x100ba2cd
mov eax, ecx
and eax, 0x3ff
or eax, 0xfffff800
shl eax, 0x14
or eax, dword [esi]
mov dword [esi], eax
cmp ecx, 0x400
jb 0x100ba2cd
and ecx, 0xfffffc00
or eax, 0x40000000
shl ecx, 0xa
or dword [esi + 4], ecx
mov dword [esi], eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret 0x18
mov ebx, dword [esp + 0x30]
mov ecx, edi
add ebx, edi
cmp edi, eax
jae 0x100ba2ff
mov edx, dword [esp + 0x14]
mov ebp, eax
nop
mov eax, dword [esi + ecx*4]
inc ecx
mov dword [edx + eax*4], ebx
cmp ecx, ebp
jb 0x100ba2f0
mov ebp, dword [esp + 0x28]
push dword [esp + 0x20]
mov eax, dword [esp + 0x40]
mov ecx, ebp
push dword [esp + 0x44]
mov edx, dword [esp + 0x18]
push eax
push dword [esp + 0x44]
push edi
push dword [esp + 0x44]
call fcn.100b9f40
mov ecx, dword [esp + 0x40]
mov esi, eax
mov eax, dword [esp + 0x18]
sub ecx, eax
add ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x10]
push ecx
push eax
push dword [esp + 0x44]
mov eax, dword [esp + 0x40]
mov ecx, ebp
push dword [esp + 0x44]
sub eax, edi
push eax
push ebx
call fcn.100b9f40
pop edi
or eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x18