Function at 0x100cae20
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x1019f65c
mov eax, dword fs:[0]
push eax
sub esp, 0x90c
mov eax, dword [0x1026d48c]
xor eax, esp
mov dword [esp + 0x908], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1026d48c]
xor eax, esp
push eax
lea eax, [esp + 0x920]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x938]
mov esi, dword [esp + 0x93c]
mov edi, dword [esp + 0x930]
mov ebx, dword [esp + 0x934]
mov ecx, ebp
mov dword [esp + 0x20], esi
call fcn.10017ff0
lea ecx, [esp + 0x114]
call fcn.100c69b0
lea ecx, [esp + 0x44]
mov dword [esp + 0x928], 0
call fcn.100c6e20
lea ecx, [esp + 0x3a4]
mov byte [esp + 0x928], 1
call fcn.100c95e0
push edi
lea ecx, [esp + 0x5c]
mov byte [esp + 0x92c], 2
mov dword [esp + 0x50], 1
call fcn.1001b160
lea ecx, [esp + 0x58]
call fcn.100f6330
add eax, eax
add eax, eax
add eax, eax
push esi
mov dword [esp + 0x58], eax
lea eax, [esp + 0x3a8]
push eax
lea ecx, [esp + 0x4c]
push ecx
push 1
lea ecx, [esp + 0x124]
mov dword [esp + 0x60], 3
call fcn.100ca270
lea ecx, [esp + 0x28]
call fcn.100182e0
push ebx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x92c], 3
mov byte [esp + 0x44], 1
call fcn.1001b160
lea ecx, [esp + 0x28]
call fcn.100f6330
mov ebx, eax
cmp ebx, 2
mov dword [esp + 0x24], ebx
jb 0x100cb0b9
test bl, 7
jne 0x100cb0b9
push 8
push 0xa6
mov ecx, ebp
call fcn.10019090
lea edx, [esp + 0x28]
push edx
mov ecx, ebp
call fcn.1001b160
shr ebx, 3
mov ecx, ebp
mov dword [esp + 0x18], ebx
call fcn.1008bea0
xor ecx, ecx
mov esi, eax
mov dword [esp + 0x1c], ecx
jmp 0x100caf80
mov eax, dword [esp + 0x18]
mov ebx, 1
cmp eax, ebx
lea edi, [esi + 8]
jl 0x100cb01c
imul cl
mov byte [esp + 0x17], al
lea ebx, [ebx]
mov ecx, dword [esi + 4]
mov edx, dword [edi]
mov eax, dword [esi]
mov dword [esp + 0x910], ecx
lea ecx, [esp + 0x90c]
mov dword [esp + 0x914], edx
push ecx
mov edx, ecx
mov dword [esp + 0x910], eax
mov eax, dword [edi + 4]
push edx
lea ecx, [esp + 0x11c]
mov dword [esp + 0x920], eax
call fcn.100c7610
mov eax, dword [esp + 0x90c]
mov ecx, dword [esp + 0x910]
mov dl, byte [esp + 0x17]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x918]
mov dword [esi], eax
mov eax, dword [esp + 0x914]
add dl, bl
xor byte [esi + 7], dl
mov dword [edi], eax
mov dword [edi + 4], ecx
add ebx, 1
add edi, 8
cmp ebx, dword [esp + 0x18]
jle 0x100cafa0
mov ecx, dword [esp + 0x1c]
add ecx, 1
cmp ecx, 5
mov dword [esp + 0x1c], ecx
jle 0x100caf80
mov ecx, ebp
mov bl, 1
call fcn.100f6330
mov edx, dword [esp + 0x24]
add edx, 8
cmp eax, edx
je 0x100cb068
mov esi, dword [esp + 0x20]
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.Output_is_not_the_expected_size.
mov ecx, esi
call edx
mov ecx, ebp
call fcn.100f6330
push eax
push str.outNumBytes
mov ecx, esi
call fcn.100612a0
xor bl, bl
lea ecx, [esp + 0x28]
mov byte [esp + 0x928], 2
call fcn.10018a90
lea ecx, [esp + 0x3a4]
mov byte [esp + 0x928], 1
call fcn.100c6d60
lea ecx, [esp + 0x44]
mov byte [esp + 0x928], 0
call fcn.100c6ee0
lea ecx, [esp + 0x114]
mov dword [esp + 0x928], 0xffffffff
call fcn.100c6a30
mov al, bl
jmp 0x100cb123
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.Key_data_must_be_a_multiple_of_8_bytes_in_length.
mov ecx, esi
call edx
push ebx
push str.keyDataLen
mov ecx, esi
call fcn.100612a0
lea ecx, [esp + 0x28]
mov byte [esp + 0x928], 2
call fcn.10018a90
lea ecx, [esp + 0x3a4]
mov byte [esp + 0x928], 1
call fcn.100c6d60
lea ecx, [esp + 0x44]
mov byte [esp + 0x928], 0
call fcn.100c6ee0
lea ecx, [esp + 0x114]
mov dword [esp + 0x928], 0xffffffff
call fcn.100c6a30
xor al, al
mov ecx, dword [esp + 0x920]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x908]
xor ecx, esp
call fcn.1018f87e
add esp, 0x918
ret