Function at 0x100018b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x100bf358]
xor eax, esp
mov dword [esp + 0x18], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x10], ebx
cmp ecx, ebx
je 0x10001ac5
xor eax, eax
mov dword [esi + 0x160], eax
mov dword [esi + 0x164], eax
mov dword [esi + 0x168], eax
mov dword [esi + 0x16c], eax
lea edi, [esi + 0x160]
mov dword [esi + 0x170], eax
mov dword [esi + 0x174], eax
mov dword [esi + 0x178], eax
mov dword [esi + 0x17c], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x180], eax
mov dword [esi + 0x140], ebx
mov dword [esi + 0x144], ebx
mov dword [esi + 0x148], ebx
mov dword [esi + 0x14c], ebx
cmp ecx, 0xc
jne 0x10001958
mov ecx, dword [edx]
mov dword [edi], ecx
mov eax, dword [edx + 4]
mov dword [edi + 4], eax
mov ecx, dword [edx + 8]
mov dword [edi + 8], ecx
mov byte [esi + 0x16f], 1
jmp 0x10001a35
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [ecx*8]
mov ebx, eax
shr ebx, 0x18
mov byte [esp + 0x20], bl
mov ebx, eax
shr eax, 8
mov byte [esp + 0x22], al
shr ebx, 0x10
mov al, cl
add al, al
add al, al
mov byte [esp + 0x21], bl
add al, al
xor ebx, ebx
mov byte [esp + 0x23], al
mov dword [esp + 0xc], edx
cmp ecx, ebx
jbe 0x100019ea
jmp 0x100019a9
mov ecx, dword [ebp + 0x14]
mov edx, dword [esp + 0xc]
mov ebx, ecx
cmp ecx, 0x10
jb 0x100019b5
mov ebx, 0x10
xor eax, eax
test ebx, ebx
je 0x100019cb
jmp 0x100019c0
mov cl, byte [eax + edx]
xor byte [edi + eax], cl
inc eax
cmp eax, ebx
jb 0x100019c0
push edi
mov ecx, edi
mov eax, esi
call fcn.10001380
mov eax, dword [ebp + 0x14]
add dword [esp + 0x10], ebx
sub eax, ebx
add esp, 4
mov dword [ebp + 0x14], eax
test eax, eax
jne 0x100019a2
xor ebx, ebx
xor eax, eax
lea esp, [esp]
movzx edx, byte [esp + eax + 0x14]
movzx ecx, byte [esp + eax + 0x15]
xor byte [esi + eax + 0x160], dl
xor byte [esi + eax + 0x161], cl
movzx edx, byte [esp + eax + 0x16]
movzx ecx, byte [esp + eax + 0x17]
xor byte [esi + eax + 0x162], dl
xor byte [esi + eax + 0x163], cl
add eax, 4
cmp eax, 0x10
jb 0x100019f0
push edi
mov ecx, edi
mov eax, esi
call fcn.10001380
add esp, 4
lea edx, [esp + 0x10]
push edx
lea eax, [esi + 0x150]
push eax
push 0x10
push edi
push esi
call fcn.10001c90
add esp, 0x14
cmp eax, ebx
jne 0x10001aca
mov edi, dword [ebp + 0x1c]
mov dword [esi + 0x14c], ebx
mov ebx, dword [ebp + 0x18]
mov dword [esi + 0x148], edi
test edi, edi
je 0x10001ab1
jmp 0x10001a73
mov edi, dword [ebp + 0x1c]
cmp edi, 0x10
jb 0x10001a7d
mov edi, 0x10
xor eax, eax
test edi, edi
je 0x10001a92
mov cl, byte [eax + ebx]
xor byte [esi + eax + 0x170], cl
inc eax
cmp eax, edi
jb 0x10001a83
lea ecx, [esi + 0x170]
push ecx
mov eax, esi
call fcn.10001380
mov eax, dword [ebp + 0x1c]
sub eax, edi
add esp, 4
add ebx, edi
mov dword [ebp + 0x1c], eax
test eax, eax
jne 0x10001a70
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.1009625b
mov esp, ebp
pop ebp
ret
mov eax, 0xffffffec
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1009625b
mov esp, ebp
pop ebp
ret