Function at 0x10052140
Capabilities:
Decrypt data using tea
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ab028
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x100db774]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x20]
mov edi, dword [ebp + 0x24]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], edi
mov edi, dword [edi + 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], edi
test edi, edi
je 0x100523bc
mov eax, edi
and eax, reloc.OLEAUT32.dll_VariantInit
jns 0x1005219b
dec eax
or eax, 0xfffffff8
add eax, 1
jne 0x100523bc
mov ecx, dword [ebp + 0x18]
mov eax, 0x10
cmp ecx, eax
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
cmova ecx, eax
cmp dword [ebp + 0x1c], 0x10
push ecx
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push 0x10
push eax
call fcn.1000c3c0
add esp, 0x10
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x100521e1
mov eax, dword [esi]
mov byte [eax], 0
mov ecx, dword [esi + 0x10]
cmp edi, ecx
ja 0x100521fe
mov dword [esi + 0x10], edi
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x100521f8
mov eax, dword [esi]
mov byte [eax + edi], 0
jmp 0x1005220c
mov eax, edi
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.10018280
xor ecx, ecx
mov dword [ebp - 0x28], ecx
test edi, edi
jle 0x100522bb
nop dword [eax]
mov edx, dword [ebp - 0x30]
mov eax, edx
cmp dword [edx + 0x14], 0x10
jb 0x1005222d
mov eax, dword [edx]
cmp dword [esi + 0x14], 0x10
lea edi, [eax + ecx]
mov eax, esi
jb 0x1005223a
mov eax, dword [esi]
mov edx, dword [edi]
add eax, ecx
cmp dword [ebp + 0x28], 0
mov edi, dword [edi + 4]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], 0xc6ef3720
jbe 0x100522a7
mov eax, dword [ebp + 0x28]
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
nop word [eax + eax]
mov ecx, edx
mov eax, edx
shr ecx, 5
add ecx, dword [ebp - 0x14]
shl eax, 4
add eax, dword [ebp - 0x18]
xor ecx, eax
lea eax, [esi + edx]
xor ecx, eax
sub edi, ecx
mov ecx, edi
mov eax, edi
shr ecx, 5
add ecx, dword [ebp - 0x1c]
shl eax, 4
add eax, dword [ebp - 0x20]
xor ecx, eax
lea eax, [esi + edi]
xor ecx, eax
lea esi, [esi + 0x61c88647]
sub edx, ecx
sub dword [ebp - 0x2c], 1
jne 0x10052260
mov esi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x3c]
add ecx, 8
mov dword [eax], edx
mov dword [eax + 4], edi
mov dword [ebp - 0x28], ecx
cmp ecx, dword [ebp - 0x40]
jl 0x10052220
mov edx, dword [esi + 0x10]
cmp edx, 8
jb 0x100523b5
mov eax, dword [ebp + 0x2c]
cmp eax, 1
je 0x10052365
test eax, eax
je 0x10052365
cmp eax, 3
je 0x100522e9
cmp eax, 2
jne 0x100523b5
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x100522f3
mov ecx, dword [esi]
movsx edi, byte [ecx + edx - 1]
mov ecx, esi
jb 0x100522fe
mov ecx, dword [esi]
mov al, byte [ecx + edx - 1]
xor ecx, ecx
mov byte [ebp - 0x21], al
mov dword [ebp - 0x28], ecx
test edi, edi
jle 0x10052334
nop
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x1005231a
mov eax, dword [esi]
sub eax, ecx
mov cl, byte [ebp - 0x21]
cmp byte [eax + edx - 1], cl
mov ecx, dword [ebp - 0x28]
jne 0x100523b5
inc ecx
mov dword [ebp - 0x28], ecx
cmp ecx, edi
jl 0x10052310
mov eax, edx
sub eax, edi
cmp eax, edx
ja 0x10052352
mov dword [esi + 0x10], eax
cmp dword [esi + 0x14], 0x10
jb 0x10052347
mov esi, dword [esi]
mov byte [esi + eax], 0
mov esi, 1
jmp 0x100523be
push 0
sub eax, edx
mov ecx, esi
push eax
call fcn.10018280
mov esi, 1
jmp 0x100523be
lea edi, [edx - 8]
xor ecx, ecx
nop word [eax + eax]
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x1005237a
mov eax, dword [esi]
sub eax, ecx
cmp byte [eax + edx - 1], 0
jne 0x1005238b
inc ecx
cmp ecx, 8
jl 0x10052370
jmp 0x1005238f
mov edi, edx
sub edi, ecx
cmp edi, edx
ja 0x100523a9
mov dword [esi + 0x10], edi
cmp dword [esi + 0x14], 0x10
jb 0x1005239e
mov esi, dword [esi]
mov byte [esi + edi], 0
mov esi, 1
jmp 0x100523be
push 0
sub edi, edx
mov ecx, esi
push edi
call fcn.10018280
mov esi, 1
jmp 0x100523be
xor esi, esi
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x100523ee
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100523e4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005240d
push edx
push ecx
call fcn.100693ae
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100693bc
mov esp, ebp
pop ebp
ret 0x28
call fcn.1007869e
int3