Function at 0x1812b70c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x181c0008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x48], eax
xor eax, eax
mov dword [ebp - 0x44], edx
push edi
push 0xf
cmp dword [esi + 0x14], 0x10
pop ecx
mov dword [ebp - 0xc], eax
mov byte [ebp - 0x1c], al
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x34], al
mov eax, esi
mov dword [ebp - 8], ecx
mov dword [ebp - 0x20], ecx
jb 0x1812b74b
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x3c]
call fcn.1800e0c1
mov ecx, dword [eax]
call fcn.1800a901
mov ecx, dword [ebp - 0x3c]
mov bl, al
add ecx, 0xfffffff0
call fcn.18004595
test bl, bl
jne 0x1812b774
push 2
pop esi
jmp 0x1812b8ed
lea ecx, [ebp - 0x64]
call fcn.1800a852
cmp dword [esi + 0x14], 0x10
jb 0x1812b784
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x3c]
call fcn.1800e0c1
xor ebx, ebx
push ebx
push ecx
push ebx
push dword [eax]
lea ecx, [ebp - 0x64]
call fcn.1800a88b
mov ecx, dword [ebp - 0x3c]
mov esi, eax
add ecx, 0xfffffff0
call fcn.18004595
test esi, esi
jns 0x1812b7b5
push 2
pop esi
jmp 0x1812b8e5
call fcn.1809e0d1
push 0x10
mov edi, eax
call fcn.1813cb72
pop ecx
xor ecx, ecx
mov dword [ebp - 0x4c], eax
inc ecx
mov byte [ebp - 0x35], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
lea ecx, [ebp - 0x64]
mov dword [eax], 0x1819ef08
mov dword [eax + 0xc], edi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], ebx
push eax
push 4
pop esi
push esi
mov dword [ebp - 0x3c], ebx
call fcn.1800af68
test eax, eax
js 0x1812b8da
cmp dword [ebp - 0x3c], esi
jne 0x1812b8da
push esi
lea eax, [ebp - 0x40]
push str.CrOD
push eax
call fcn.18151c10
add esp, 0xc
test eax, eax
jne 0x1812b823
mov byte [ebp - 0x35], 1
jmp 0x1812b83d
push esi
lea eax, [ebp - 0x40]
push str.Cr24
push eax
call fcn.18151c10
add esp, 0xc
test eax, eax
jne 0x1812b8da
push esi
lea ecx, [ebp - 0x40]
lea eax, [edi + 8]
push ecx
push eax
mov dword [ebp - 0x3c], eax
call fcn.181178c8
add esp, 0xc
lea ecx, [ebp - 0x64]
mov edx, edi
call fcn.1812a86a
push 3
pop ecx
cmp eax, ecx
jne 0x1812b886
mov eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x64]
mov edx, edi
cmp dword [eax], 2
sete al
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call fcn.1812a9ef
add esp, 0x10
mov ecx, eax
test ecx, ecx
je 0x1812b88e
mov esi, ecx
jmp 0x1812b8dd
mov eax, dword [ebp + 0xc]
mov edi, dword [eax]
mov eax, dword [eax + 4]
cmp edi, eax
je 0x1812b8c2
sub eax, edi
cmp eax, 0x20
jne 0x1812b8dd
push dword [ebp - 0x3c]
call fcn.1811791d
pop ecx
mov edx, ebx
mov cl, byte [edx + edi]
xor cl, byte [eax]
or bl, cl
inc edx
inc eax
cmp edx, 0x20
jb 0x1812b8ac
test bl, bl
je 0x1812b8c2
push 5
jmp 0x1812b8dc
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x1812b8d4
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.1804ebf3
movzx esi, byte [ebp - 0x35]
jmp 0x1812b8dd
push 3
pop esi
mov ecx, dword [ebp - 0x4c]
call fcn.1801c6c9
lea ecx, [ebp - 0x64]
call fcn.1800a872
lea ecx, [ebp - 0x34]
call fcn.1800e36d
lea ecx, [ebp - 0x1c]
call fcn.1800e36d
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1813c4a8
leave
ret