Function at 0x100b6730
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
mov eax, dword [0x1013a420]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x20]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0xd8], ecx
mov ecx, dword [ebp + 0x24]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc8], ecx
mov ecx, dword [ebp + 0x28]
shr edi, 3
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xd0], ecx
mov ecx, dword [ebp + 0x2c]
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb4], 2
cmp edi, 0x14
je 0x100b67c3
cmp edi, 0x1c
je 0x100b67c3
cmp edi, 0x20
je 0x100b67c3
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003890f
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x100b67d2
call fcn.1006b710
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp + 0xc]
mov eax, 0x200
cmp ecx, eax
cmovb ecx, eax
lea eax, [ecx + 0x3f]
and eax, 0xffffffc0
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x100b67f9
xor ecx, ecx
cmp eax, edi
cmovb esi, ecx
cmp eax, edi
cmova eax, edi
mov dword [ebp + 0x1c], eax
test esi, esi
je 0x100b6813
push eax
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.1003da60
add esp, 0xc
call fcn.1008c610
mov dword [ebp - 0x88], eax
test eax, eax
je 0x100b6e60
push ebx
call fcn.100af8e0
mov dword [ebp - 0xa4], eax
test eax, eax
je 0x100b6e37
mov esi, dword [ebp - 0x88]
push esi
call fcn.1008c690
push esi
call fcn.1008c5a0
push esi
mov ebx, eax
call fcn.1008c5a0
push esi
mov dword [ebp - 0xa0], eax
call fcn.1008c5a0
push esi
mov dword [ebp - 0xb0], eax
call fcn.1008c5a0
push esi
mov dword [ebp - 0x94], eax
call fcn.1008c5a0
push esi
mov dword [ebp - 0xcc], eax
call fcn.1008c5a0
push esi
mov dword [ebp - 0xc4], eax
call fcn.1008c5a0
push esi
mov dword [ebp - 0x90], eax
call fcn.1008c5a0
mov esi, eax
add esp, 0x24
mov eax, dword [ebp - 0xac]
dec eax
mov dword [ebp - 0x8c], esi
push eax
call fcn.100571f0
push eax
push esi
call fcn.10076610
add esp, 0xc
test eax, eax
je 0x100b6e37
mov esi, dword [ebp - 0xbc]
push esi
push 0
push dword [ebp - 0x98]
call fcn.100bbc10
inc esi
add esp, 0xc
mov dword [ebp - 0xbc], esi
test eax, eax
je 0x100b6e37
cmp dword [ebp + 0x1c], 0
jne 0x100b6906
lea eax, [ebp - 0x64]
push edi
push eax
call fcn.10053090
add esp, 8
mov esi, 1
jmp 0x100b690b
xor esi, esi
mov dword [ebp + 0x1c], esi
push edi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.1003da60
push edi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.1003da60
lea eax, [edi - 1]
add esp, 0x18
test eax, eax
js 0x100b693d
inc byte [ebp + eax - 0x44]
jne 0x100b693d
dec eax
jns 0x100b6934
push 0
push dword [ebp - 0x9c]
lea eax, [ebp - 0x24]
push 0
push eax
lea eax, [ebp - 0x64]
push edi
push eax
call fcn.1006ab60
add esp, 0x18
test eax, eax
je 0x100b6e37
push 0
push dword [ebp - 0x9c]
lea eax, [ebp - 0x84]
push 0
push eax
lea eax, [ebp - 0x44]
push edi
push eax
call fcn.1006ab60
add esp, 0x18
test eax, eax
je 0x100b6e37
xor ecx, ecx
test edi, edi
jle 0x100b69a0
lea esp, [esp]
mov al, byte [ebp + ecx - 0x84]
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, edi
jl 0x100b6990
push dword [ebp - 0x94]
or byte [ebp - 0x24], 0x80
lea eax, [ebp - 0x24]
or byte [ebp + edi - 0x25], 1
push edi
push eax
call fcn.10056950
add esp, 0xc
test eax, eax
je 0x100b6e37
push dword [ebp - 0x98]
push esi
push dword [ebp - 0x88]
push 0x32
push dword [ebp - 0x94]
call fcn.100bbeb0
add esp, 0x14
test eax, eax
jg 0x100b69f0
je 0x100b68c6
jmp 0x100b6e37
mov esi, dword [ebp - 0x98]
push 0
push 2
push esi
call fcn.100bbc10
add esp, 0xc
test eax, eax
je 0x100b6e37
push 0
push 3
push esi
call fcn.100bbc10
add esp, 0xc
test eax, eax
je 0x100b6e37
mov ecx, dword [ebp - 0xac]
mov eax, 0xcccccccd
xor esi, esi
mov dword [ebp - 0xb8], esi
lea ecx, [ecx - 1]
mul ecx
mov eax, edx
shr eax, 7
mov dword [ebp - 0xc0], eax
test esi, esi
je 0x100b6a60
push esi
push 0
push dword [ebp - 0x98]
call fcn.100bbc10
add esp, 0xc
test eax, eax
je 0x100b6e37
push 0
push dword [ebp - 0xb0]
call fcn.10057150
xor esi, esi
add esp, 8
cmp dword [ebp - 0xc0], esi
jl 0x100b6b0c
mov edi, edi
lea eax, [edi - 1]
test eax, eax
js 0x100b6a90
inc byte [ebp + eax - 0x44]
jne 0x100b6a90
dec eax
jns 0x100b6a87
push 0
push dword [ebp - 0x9c]
lea eax, [ebp - 0x24]
push 0
push eax
lea eax, [ebp - 0x44]
push edi
push eax
call fcn.1006ab60
add esp, 0x18
test eax, eax
je 0x100b6e37
push ebx
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.10056950
add esp, 0xc
test eax, eax
je 0x100b6e37
lea eax, [edi*8]
imul eax, esi
push eax
push ebx
push ebx
call fcn.10076610
add esp, 0xc
test eax, eax
je 0x100b6e37
mov eax, dword [ebp - 0xb0]
push ebx
push eax
push eax
call fcn.100ac400
add esp, 0xc
test eax, eax
je 0x100b6e37
inc esi
cmp esi, dword [ebp - 0xc0]
jle 0x100b6a80
mov eax, dword [ebp - 0xac]
mov esi, dword [ebp - 0xb0]
dec eax
push eax
push esi
call fcn.10056f20
add esp, 8
test eax, eax
je 0x100b6e37
push esi
mov esi, dword [ebp - 0xcc]
push esi
call fcn.10056d60
add esp, 8
test eax, eax
je 0x100b6e37
push dword [ebp - 0x8c]
push esi
push esi
call fcn.100ac400
add esp, 0xc
test eax, eax
je 0x100b6e37
push dword [ebp - 0x94]
push ebx
call fcn.10076740
add esp, 8
test eax, eax
je 0x100b6e37
push dword [ebp - 0x88]
push ebx
push esi
push dword [ebp - 0xc4]
push 0
call fcn.100af350
add esp, 0x14
test eax, eax
je 0x100b6e37
call fcn.100571f0
push eax
push dword [ebp - 0xc4]
push ebx
call fcn.100ac4a0
add esp, 0xc
test eax, eax
je 0x100b6e37
push ebx
push esi
mov esi, dword [ebp - 0x90]
push esi
call fcn.100ac4a0
add esp, 0xc
test eax, eax
je 0x100b6e37
push dword [ebp - 0x8c]
push esi
call fcn.10056b10
add esp, 8
test eax, eax
js 0x100b6c04
mov esi, dword [ebp - 0x98]
push esi
push 1
push dword [ebp - 0x88]
push 0x32
push dword [ebp - 0x90]
call fcn.100bbeb0
add esp, 0x14
test eax, eax
jg 0x100b6c22
jne 0x100b6e37
mov esi, dword [ebp - 0xb8]
inc esi
mov dword [ebp - 0xb8], esi
cmp esi, 0x1000
jl 0x100b6a43
jmp 0x100b68c6
push 1
push 2
push esi
call fcn.100bbc10
add esp, 0xc
test eax, eax
je 0x100b6e37
call fcn.100571f0
push eax
push dword [ebp - 0x90]
push dword [ebp - 0x8c]
call fcn.100ac4a0
add esp, 0xc
test eax, eax
je 0x100b6e37
push dword [ebp - 0x88]
push dword [ebp - 0x94]
push dword [ebp - 0x8c]
push 0
push ebx
call fcn.100af350
add esp, 0x14
test eax, eax
je 0x100b6e37
push 2
push dword [ebp - 0x8c]
call fcn.10057150
add esp, 8
test eax, eax
je 0x100b6e37
push dword [ebp - 0x88]
push dword [ebp - 0x90]
push dword [ebp - 0xa4]
call fcn.100af940
add esp, 0xc
test eax, eax
je 0x100b6e37
push dword [ebp - 0xa4]
push dword [ebp - 0x88]
push dword [ebp - 0x90]
push ebx
push dword [ebp - 0x8c]
push dword [ebp - 0xa0]
call fcn.100aa3d0
add esp, 0x18
test eax, eax
je 0x100b6e37
jmp 0x100b6cf0
mov ecx, dword [ebp - 0xa0]
cmp dword [ecx + 4], 1
jne 0x100b6d5d
mov eax, dword [ecx]
cmp dword [eax], 1
jne 0x100b6d5d
cmp dword [ecx + 0xc], 0
jne 0x100b6d5d
call fcn.100571f0
push eax
mov eax, dword [ebp - 0x8c]
push eax
push eax
call fcn.100ac400
add esp, 0xc
test eax, eax
je 0x100b6e37
push dword [ebp - 0xa4]
inc dword [ebp - 0xb4]
push dword [ebp - 0x88]
push dword [ebp - 0x90]
push ebx
push dword [ebp - 0x8c]
push dword [ebp - 0xa0]
call fcn.100aa3d0
add esp, 0x18
test eax, eax
jne 0x100b6cf0
jmp 0x100b6e37
push 1
push 3
push esi
call fcn.100bbc10
add esp, 0xc
test eax, eax
je 0x100b6e37
mov ebx, dword [ebp - 0xd4]
mov dword [ebp - 0xa8], 1
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x100b6d92
push eax
call fcn.10056e70
add esp, 4
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x100b6da2
push eax
call fcn.10056e70
add esp, 4
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x100b6db2
push eax
call fcn.10056e70
add esp, 4
push dword [ebp - 0x90]
call fcn.10056e30
push dword [ebp - 0x94]
mov dword [ebx + 0xc], eax
call fcn.10056e30
push dword [ebp - 0xa0]
mov dword [ebx + 0x10], eax
call fcn.10056e30
add esp, 0xc
mov dword [ebx + 0x14], eax
cmp dword [ebx + 0xc], 0
je 0x100b6e2d
cmp dword [ebx + 0x10], 0
je 0x100b6e2d
test eax, eax
je 0x100b6e2d
mov ecx, dword [ebp - 0xc8]
test ecx, ecx
je 0x100b6e01
mov eax, dword [ebp - 0xb8]
mov dword [ecx], eax
mov eax, dword [ebp - 0xd0]
test eax, eax
je 0x100b6e13
mov ecx, dword [ebp - 0xb4]
mov dword [eax], ecx
mov eax, dword [ebp - 0xd8]
test eax, eax
je 0x100b6e37
push edi
lea ecx, [ebp - 0x64]
push ecx
push eax
call fcn.1003da60
add esp, 0xc
jmp 0x100b6e37
mov dword [ebp - 0xa8], 0
mov ebx, dword [ebp - 0x88]
push ebx
call fcn.1008c520
push ebx
call fcn.1008c570
mov eax, dword [ebp - 0xa4]
add esp, 8
pop ebx
test eax, eax
je 0x100b6e60
push eax
call fcn.100af8a0
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xa8]
xor ecx, ebp
pop edi
pop esi
call fcn.1003890f
mov esp, ebp
pop ebp
ret