Function at 0x414cb0
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2028
call fcn.004179b0
mov eax, dword [0x421008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x2028], ebx
mov edx, dword [ebx + 8]
mov esi, dword [edx + 4]
test esi, esi
je 0x414f92
mov edx, dword [0x423f44]
mov edi, dword [0x423f4c]
add edx, esi
mov ecx, dword [0x423f48]
inc edi
cmp esi, ecx
mov dword [0x423f44], edx
mov dword [0x423f4c], edi
cmovae ecx, esi
mov dword [0x423f48], ecx
cmp esi, 0x2000
jb 0x414d4d
push esi
call fcn.00416a77
mov dword [ebp - 0x2010], eax
xor edx, edx
mov eax, dword [0x423f44]
add esp, 4
div dword [0x423f4c]
push eax
mov eax, dword [0x423f48]
shr eax, 0xa
push eax
push esi
push str.DecryptBuffer___AllocHeap__d_max__d__ave__d__n
call fcn.0040b370
mov esi, dword [ebp - 0x2010]
jmp 0x414d6f
mov eax, edx
shr ecx, 0xa
xor edx, edx
div edi
push eax
push ecx
push esi
push str.DecryptBuffer___AllocStack__d_max__d__ave__d__n
call fcn.0040b370
lea esi, [ebp - 0x200c]
mov dword [ebp - 0x2010], esi
mov eax, dword [ebx + 8]
add esp, 0x10
mov ecx, dword [ebx + 0xc]
sub ecx, 4
mov dword [ebp - 0x2020], esi
mov dword [ebp - 0x2018], ecx
mov eax, dword [eax + 4]
mov edx, eax
and edx, 0x80000007
jns 0x414d9b
dec edx
or edx, 0xfffffff8
add edx, 1
je 0x414da2
sub eax, edx
add eax, 8
sar eax, 3
mov dword [ebp - 0x201c], eax
test eax, eax
jle 0x414e5b
mov dword [ebp - 0x2014], esi
nop dword [eax]
mov esi, dword [ecx]
mov edx, 0xc6ef3720
mov edi, dword [ecx + 4]
mov ebx, 0x20
nop
mov ecx, esi
mov eax, esi
shl eax, 4
dec ebx
shr ecx, 5
xor ecx, eax
mov dword [ebp - 0x2024], ebx
mov ebx, dword [ebp + 8]
mov eax, edx
shr eax, 0xb
add ecx, esi
and eax, 3
mov eax, dword [ebx + eax*4]
add eax, edx
add edx, 0x61c88647
xor ecx, eax
sub edi, ecx
mov ecx, edi
mov eax, edi
shl eax, 4
shr ecx, 5
xor ecx, eax
mov eax, edx
and eax, 3
add ecx, edi
mov eax, dword [ebx + eax*4]
mov ebx, dword [ebp - 0x2024]
add eax, edx
xor ecx, eax
sub esi, ecx
test ebx, ebx
jne 0x414dd0
mov eax, dword [ebp - 0x2014]
mov ecx, dword [ebp - 0x2018]
add ecx, 8
mov dword [ebp - 0x2018], ecx
mov dword [eax], esi
mov dword [eax + 4], edi
add eax, 8
sub dword [ebp - 0x201c], 1
mov dword [ebp - 0x2014], eax
jne 0x414dc0
mov ebx, dword [ebp - 0x2028]
mov ecx, dword [ebp - 0x2020]
cmp dword [ecx], 0x5a4f434d
je 0x414e84
push str.LZObject:_key_incorrect_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00407ca0
add esp, 8
jmp 0x414ebd
mov edx, dword [ebx + 8]
lea eax, [ebp - 0x2014]
push ecx
push eax
push dword [ebx]
mov edx, dword [edx + 8]
add ecx, 4
call fcn.004163d0
add esp, 0xc
test eax, eax
je 0x414f1d
push eax
push str.LZObject:_Decompress_failed_decrypt__ret__d_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00407ca0
add esp, 0xc
lea eax, [ebp - 0x200c]
cmp eax, dword [ebp - 0x2010]
je 0x414efb
push str.DecruptBuffer___FreeHeap_n
call fcn.0040b370
add esp, 4
push dword [ebp - 0x2010]
call fcn.0041704d
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004168e6
mov esp, ebp
pop ebp
ret 4
push str.DecruptBuffer___FreeStack_n
call fcn.0040b370
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004168e6
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x200c]
cmp eax, dword [ebp - 0x2010]
je 0x414f86
push str.DecruptBuffer___FreeHeap_n
call fcn.0040b370
add esp, 4
push dword [ebp - 0x2010]
call fcn.0041704d
add esp, 4
mov ecx, dword [ebx + 8]
mov eax, dword [ebp - 0x2014]
cmp eax, dword [ecx + 0xc]
je 0x414fef
push str.LZObject:_Size_differs_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00407ca0
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004168e6
mov esp, ebp
pop ebp
ret 4
push str.DecruptBuffer___FreeStack_n
call fcn.0040b370
jmp 0x414f43
mov eax, dword [edx + 0xc]
mov edx, dword [edx + 8]
push ecx
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x2014], eax
lea eax, [ebp - 0x2014]
push eax
push dword [ebx]
call fcn.004163d0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x414f46
mov ecx, dword [ebx + 8]
push 2
mov esi, dword [ecx + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push esi
push edi
push str.LZObject:_Decompress_failed_:_ret__d__CompressedSize__d_n
push eax
call fcn.00407ca0
add esp, 0x10
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004168e6
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004168e6
mov esp, ebp
pop ebp
ret 4