Function at 0x1001848b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1014e058]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, ecx
xor ebx, ebx
push esi
push edi
inc ebx
mov dword [ebp - 0x30], eax
cmp dword [eax + 4], 0
push 0x20
jne 0x100184e3
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
pop eax
sub esp, 0x18
mov byte [ebp - 5], bl
mov byte [ebp - 6], bl
mov word [ebp - 8], ax
push 6
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x30]
jmp 0x100186f3
pop edx
cmp dword [eax + 4], ebx
jne 0x1001853a
mov esi, dword [eax]
cmp word [esi + 0x14], dx
jne 0x1001853a
mov edi, dword [ebp + 8]
cmp edi, dword [esi]
jne 0x10018508
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x10], ecx
mov dword [esi + 0xc], ecx
mov al, bl
jmp 0x100186fa
mov eax, dword [esi]
xor eax, edi
push 0x1f
pop edx
mov ecx, edx
js 0x1001851e
mov eax, dword [esi]
dec ecx
xor eax, edi
shr eax, cl
test bl, al
je 0x10018513
mov eax, dword [ebp + 0xc]
sub edx, ecx
mov word [esi + 0x14], dx
mov edx, edi
shr edx, cl
and edx, ebx
mov dword [esi + edx*4 + 0xc], eax
mov dword [esi + edx*4 + 4], edi
jmp 0x100186f8
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x20], eax
movzx edi, word [eax + 0x14]
mov eax, dword [eax]
sub edx, edi
push edi
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], eax
call fcn.10018408
mov ecx, dword [ebp - 0x2c]
mov esi, eax
push edi
call fcn.10018408
cmp esi, eax
jne 0x1001865a
mov eax, dword [ebp + 8]
dec edx
mov edi, dword [ebp - 0x20]
mov ecx, edx
mov esi, eax
mov dword [ebp - 0x28], edx
shr esi, cl
and esi, ebx
lea ecx, [edi + 4]
mov dword [ebp - 0x2c], esi
cmp byte [esi + edi + 0x16], 0
lea ecx, [ecx + esi*4]
mov dword [ebp - 0x24], ecx
jne 0x100185c1
imul eax, dword [ecx], 0x18
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x20], eax
movzx edi, word [eax + 0x14]
mov ecx, dword [eax]
sub edx, edi
push edi
mov dword [ebp - 0x28], edx
call fcn.10018408
push edi
mov edi, dword [ebp + 8]
mov esi, eax
mov ecx, edi
call fcn.10018408
cmp eax, esi
je 0x1001856c
jmp 0x1001865d
mov ecx, dword [ecx]
cmp eax, ecx
jne 0x100185d3
mov eax, dword [ebp + 0xc]
mov dword [edi + esi*4 + 0xc], eax
jmp 0x10018501
mov esi, dword [ebp - 0x24]
lea ecx, [edx - 1]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x20], ecx
mov eax, dword [esi]
xor eax, edx
shr eax, cl
test bl, al
jne 0x100185f7
mov eax, dword [esi]
dec ecx
xor eax, edx
shr eax, cl
test bl, al
je 0x100185e9
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 0xc]
mov esi, edx
shr esi, cl
lea ecx, [ebp - 0xc]
and esi, ebx
mov edx, esi
shl edx, 2
sub ecx, edx
mov dword [ebp + edx - 0x10], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [edi + eax*4 + 0xc]
mov dword [ecx], eax
lea eax, [ebp - 5]
sub eax, esi
mov byte [eax], bl
mov eax, dword [ebp + 8]
mov byte [ebp + esi - 6], bl
mov ebx, dword [ebp - 0x30]
mov dword [ebp + edx - 0x18], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
lea eax, [ebp - 0x14]
sub eax, edx
mov dword [ebp - 0x1c], ecx
mov dword [eax], ecx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x20]
dec eax
mov word [ebp - 8], ax
mov byte [ecx + edi + 0x16], 0
mov eax, dword [ebx + 4]
mov dword [edi + ecx*4 + 4], eax
jmp 0x100186e4
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 0x20]
movzx eax, word [esi + 0x14]
mov dword [ebp - 0x34], eax
movzx eax, ax
dec eax
mov dword [ebp - 0x24], eax
lea ecx, [eax + edx]
mov eax, dword [esi]
xor eax, edi
shr eax, cl
test bl, al
jne 0x10018695
mov edx, dword [esi]
mov esi, dword [ebp - 0x24]
dec esi
mov eax, edx
dec ecx
xor eax, edi
shr eax, cl
test bl, al
je 0x10018680
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x24], esi
mov esi, dword [ebp - 0x20]
push 6
pop ecx
lea edi, [ebp - 0x1c]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x34]
movzx eax, cx
add ecx, edx
mov edx, dword [ebp + 8]
sub esi, eax
dec esi
mov word [ebp - 8], ax
mov eax, dword [ebp + 0xc]
mov word [edi + 0x14], si
mov esi, edx
shr esi, cl
and esi, ebx
push 2
mov dword [edi + esi*4 + 0xc], eax
mov eax, edi
sub eax, esi
mov byte [esi + edi + 0x16], bl
mov ebx, dword [ebp - 0x30]
mov byte [eax + 0x17], 0
mov dword [edi + esi*4 + 4], edx
mov eax, dword [ebx + 4]
pop edx
sub edx, esi
mov dword [edi + edx*4], eax
sub esp, 0x18
lea esi, [ebp - 0x1c]
push 6
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.1001834b
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100d2f1c
leave
ret 8