Function at 0x1006c190
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x1015c803
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push ebp
push esi
push edi
mov al, byte [esp + 0xa8]
mov dword [esp + 0x9c], 0
test al, al
mov byte [esp + 0x18], 0x56
mov byte [0x1018c822], 0x78
jne 0x1006c20d
mov esi, dword [esp + 0xa4]
lea ecx, [esp + 0x13]
push ecx
mov ecx, esi
mov eax, dword [esi]
mov byte [esp + 0x17], 1
call dword [eax + 0x18]
mov al, byte [esp + 0x13]
test al, al
jne 0x1006c214
test esi, esi
mov dword [esp + 0x9c], 0xffffffff
je 0x1006c206
mov edx, dword [esi]
push esi
call dword [edx + 8]
xor al, al
jmp 0x1006c8de
mov esi, dword [esp + 0xa4]
push 0x1018c824
call fcn.1006c960
add esp, 4
test eax, eax
jle 0x1006c241
test esi, esi
mov dword [esp + 0x9c], 0xffffffff
je 0x1006c23a
mov eax, dword [esi]
push esi
call dword [eax + 8]
xor al, al
jmp 0x1006c8de
push 5
push 0x1018c824
call fcn.1006cc30
mov cl, byte [esp + 0x1b]
add esp, 8
mov byte [esp + 0x20], cl
lea ecx, [esp + 0x20]
push 0
mov byte [0x1018c821], 0x4f
call fcn.1000bc70
mov eax, 0x1d2
mov byte [esp + 0x9c], 1
cdq
idiv dword [0x1018c7fc]
mov eax, dword [0x1018c7f8]
mov cl, byte [edx + eax]
lea eax, [esp + 0x20]
mov byte [0x1018c822], cl
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x10]
test eax, eax
mov byte [0x1018c821], 0xdd
je 0x1006c2d2
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0xa0], 0
call fcn.1000bc70
test esi, esi
mov dword [esp + 0x9c], 0xffffffff
je 0x1006c2cb
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
xor al, al
jmp 0x1006c8de
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x54]
mov byte [esp + 0x54], dl
call fcn.1000bc70
push 0x101913e8
call fcn.1013c2c2
add esp, 4
mov esi, eax
lea ecx, [esp + 0x50]
push 1
push esi
call fcn.1000c010
test al, al
je 0x1006c321
mov eax, dword [esp + 0x54]
push esi
push 0x101913e8
push eax
call fcn.100017d0
add esp, 0xc
lea ecx, [esp + 0x50]
push esi
call fcn.1000bff0
mov eax, 0x17
mov ebp, 6
mov word [esp + 0x76], ax
mov word [esp + 0x90], ax
mov al, byte [0x101976dc]
mov ecx, 0x2b
mov edx, 0xd
mov byte [esp + 0x9c], 2
test al, 1
mov word [esp + 0x70], 0x45
mov word [esp + 0x72], bp
mov word [esp + 0x74], 0x16
mov word [esp + 0x78], 0x13
mov word [esp + 0x7a], bp
mov word [esp + 0x7c], 2
mov word [esp + 0x7e], 0xb
mov word [esp + 0x80], 0x1a
mov word [esp + 0x82], cx
mov word [esp + 0x84], 0x33
mov word [esp + 0x86], dx
mov word [esp + 0x88], 0x12
mov word [esp + 0x8a], 7
mov word [esp + 0x8c], cx
mov word [esp + 0x8e], 0x29
mov word [esp + 0x92], dx
jne 0x1006c3f9
mov bl, al
lea ecx, [esp + 0x70]
or bl, 1
push ecx
mov ecx, 0x101976e0
mov byte [0x101976dc], bl
call fcn.1006d500
push 0x1006d6e0
call fcn.1013c36b
add esp, 4
mov dl, byte [esp + 0x13]
mov edi, dword [0x101976e0]
push 0
lea ecx, [esp + 0x44]
mov byte [esp + 0x44], dl
call fcn.1000bc70
push edi
call fcn.1013c2c2
add esp, 4
mov esi, eax
lea ecx, [esp + 0x40]
push 1
push esi
call fcn.1000c010
test al, al
je 0x1006c446
mov eax, dword [esp + 0x44]
push esi
push edi
push eax
call fcn.100017d0
add esp, 0xc
lea ecx, [esp + 0x40]
push esi
call fcn.1000bff0
lea ecx, [esp + 0x50]
lea edx, [esp + 0x40]
push ecx
mov ecx, dword [0x10191a54]
lea eax, [esp + 0x64]
push edx
push eax
mov byte [esp + 0xa8], 3
call fcn.10058e60
mov ecx, eax
call fcn.10067fe0
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x9c], 4
test ecx, ecx
jne 0x1006c484
mov ecx, 0x1016a1d8
mov edx, dword [esp + 0x28]
push edx
push ecx
mov ecx, dword [eax + 8]
push ecx
push 0
mov ecx, eax
call fcn.1000d2b0
test eax, eax
push 1
lea ecx, [esp + 0x64]
sete bl
mov byte [esp + 0xa0], 3
call fcn.1000bc70
push 1
lea ecx, [esp + 0x44]
mov byte [esp + 0xa0], 2
call fcn.1000bc70
push 1
lea ecx, [esp + 0x54]
mov byte [esp + 0xa0], 1
call fcn.1000bc70
test bl, bl
je 0x1006c50f
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0xa0], 0
call fcn.1000bc70
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x9c], 0xffffffff
test eax, eax
je 0x1006c508
mov edx, dword [eax]
push eax
call dword [edx + 8]
xor al, al
jmp 0x1006c8de
mov al, byte [esp + 0x20]
sub esp, 0x10
mov esi, esp
xor edi, edi
mov dword [esp + 0x24], esp
push edi
mov ecx, esi
mov byte [esi], al
call fcn.1000bc70
mov ecx, dword [0x1016a210]
lea edx, [esp + 0x30]
push ecx
push edi
push edx
mov ecx, esi
call fcn.1000ba60
lea eax, [esp + 0x40]
mov byte [esp + 0xac], 1
push eax
call fcn.1006cef0
add esp, 0x14
mov al, byte [0x1018c821]
mov cl, 0xd4
imul al
imul cl
mov byte [esp + 0x9c], 6
mov byte [0x1018c821], al
cmp dword [esp + 0x38], edi
jne 0x1006c5b7
mov edx, dword [0x1016a210]
lea eax, [esp + 0x20]
push edx
push edi
push eax
lea ecx, [esp + 0x3c]
call fcn.1000ba60
mov eax, 0x24d
mov ecx, dword [0x1018c7f8]
cdq
idiv dword [0x1018c7fc]
push 0x78
mov dl, byte [edx + ecx]
push edx
push 0xffffffffffffffc3
call fcn.1006c900
mov cl, 0xf9
imul cl
push eax
call fcn.1006c940
push eax
call fcn.1006c940
add esp, 0x14
mov eax, dword [esp + 0x34]
cmp eax, edi
jne 0x1006c5c4
mov eax, 0x1016a1d8
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x20]
push edx
push eax
mov eax, dword [esp + 0x30]
push eax
push edi
call fcn.1000d2b0
cmp eax, edi
je 0x1006c82e
push 0x12
call fcn.1006c940
mov ebx, dword [esp + 0xa8]
mov byte [0x1018c821], al
mov al, byte [esp + 0xac]
add esp, 4
mov edx, dword [ebx]
lea ecx, [esp + 0x30]
test al, al
sete al
push eax
push ecx
mov ecx, ebx
call dword [edx + 0x14]
mov cl, 0x3b
cmp eax, edi
mov byte [0x1018c822], cl
je 0x1006c650
mov edx, dword [0x1016a210]
lea eax, [esp + 0x20]
push edx
mov byte [0x1018c820], cl
push edi
push eax
lea ecx, [esp + 0x3c]
mov byte [0x1018c822], 0x3c
call fcn.1000ba60
mov cl, byte [0x1018c822]
mov byte [0x1018c820], cl
jmp 0x1006c835
mov eax, 0xd
mov edx, 0x17
mov word [esp + 0x86], ax
mov word [esp + 0x92], ax
mov al, byte [0x101976dc]
mov ecx, 0x2b
test al, 1
mov byte [esp + 0x18], 0x3c
mov word [esp + 0x70], 0x45
mov word [esp + 0x72], bp
mov word [esp + 0x74], 0x16
mov word [esp + 0x76], dx
mov word [esp + 0x78], 0x13
mov word [esp + 0x7a], bp
mov word [esp + 0x7c], 2
mov word [esp + 0x7e], 0xb
mov word [esp + 0x80], 0x1a
mov word [esp + 0x82], cx
mov word [esp + 0x84], 0x33
mov word [esp + 0x88], 0x12
mov word [esp + 0x8a], 7
mov word [esp + 0x8c], cx
mov word [esp + 0x8e], 0x29
mov word [esp + 0x90], dx
jne 0x1006c76e
mov bl, al
push 0x26
or bl, 1
mov byte [0x101976dc], bl
call fcn.1013c2df
add esp, 4
mov dword [0x101976e0], eax
mov edi, 0x30
xor esi, esi
mov bp, word [esp + esi + 0x70]
push edi
mov edx, ebp
mov ecx, 0x101976e0
and edx, 0xffff
push edx
call fcn.1004a650
mov ecx, dword [0x101976e0]
xor eax, edi
xor eax, ebp
xor edi, edi
mov word [esi + ecx], ax
mov eax, dword [0x101976e0]
mov di, word [esi + eax]
add esi, 2
cmp esi, 0x24
jb 0x1006c71a
push 0x1006d6e0
mov word [eax + 0x24], 0
call fcn.1013c36b
mov ebx, dword [esp + 0xa8]
add esp, 4
mov edi, dword [0x101976e0]
mov dl, byte [esp + 0x13]
xor ebp, ebp
push edi
mov byte [esp + 0x44], dl
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
call fcn.1013c2c2
add esp, 4
mov esi, eax
lea ecx, [esp + 0x40]
push 1
push esi
call fcn.1000c010
test al, al
je 0x1006c7be
mov eax, dword [esp + 0x44]
push esi
push edi
push eax
call fcn.100017d0
add esp, 0xc
lea ecx, [esp + 0x40]
push esi
call fcn.1000bff0
lea ecx, [esp + 0x30]
lea edx, [esp + 0x40]
push ecx
mov ecx, dword [0x10191a54]
push edx
mov byte [esp + 0xa4], 7
call fcn.10058e60
mov ecx, eax
call fcn.10068200
mov ecx, dword [esp + 0x44]
mov byte [esp + 0x9c], 6
cmp ecx, ebp
je 0x1006c81e
mov al, byte [ecx - 1]
test al, al
je 0x1006c812
cmp al, 0xff
je 0x1006c812
dec al
mov byte [ecx - 1], al
mov al, byte [0x1018c820]
dec al
xor edi, edi
mov byte [0x1018c820], al
jmp 0x1006c835
add ecx, 0xfffffffe
push ecx
call fcn.101307a0
add esp, 4
mov al, byte [0x1018c820]
dec al
xor edi, edi
mov byte [0x1018c820], al
jmp 0x1006c835
mov ebx, dword [esp + 0xa4]
lea eax, [esp + 0x30]
push eax
call fcn.1008c5b0
mov ecx, dword [esp + 0x1c]
push ecx
push 0x12
call fcn.1006c930
mov ecx, dword [esp + 0x40]
add esp, 0xc
mov byte [0x1018c820], al
cmp ecx, edi
mov byte [esp + 0x9c], 1
je 0x1006c881
mov al, byte [ecx - 1]
test al, al
je 0x1006c875
cmp al, 0xff
je 0x1006c875
dec al
mov byte [ecx - 1], al
jmp 0x1006c881
add ecx, 0xfffffffe
push ecx
call fcn.101307a0
add esp, 4
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
cmp ecx, edi
mov byte [esp + 0x9c], 0
je 0x1006c8bb
mov al, byte [ecx - 1]
test al, al
je 0x1006c8af
cmp al, 0xff
je 0x1006c8af
dec al
mov byte [ecx - 1], al
jmp 0x1006c8bb
lea eax, [ecx - 2]
push eax
call fcn.101307a0
add esp, 4
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
cmp ebx, edi
mov dword [esp + 0x9c], 0xffffffff
je 0x1006c8dc
mov edx, dword [ebx]
push ebx
call dword [edx + 8]
mov al, 1
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x90
ret