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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ac518
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x100db3fc]
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 0x1005397c
mov eax, edi
and eax, reloc.OLEAUT32.dll_VariantInit
jns 0x1005375b
dec eax
or eax, 0xfffffff8
add eax, 1
jne 0x1005397c
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.1000bfd0
add esp, 0x10
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x100537a1
mov eax, dword [esi]
mov byte [eax], 0
mov ecx, dword [esi + 0x10]
cmp edi, ecx
ja 0x100537be
mov dword [esi + 0x10], edi
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x100537b8
mov eax, dword [esi]
mov byte [eax + edi], 0
jmp 0x100537cc
mov eax, edi
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.100180d0
xor ecx, ecx
mov dword [ebp - 0x28], ecx
test edi, edi
jle 0x1005387b
nop dword [eax]
mov edx, dword [ebp - 0x30]
mov eax, edx
cmp dword [edx + 0x14], 0x10
jb 0x100537ed
mov eax, dword [edx]
cmp dword [esi + 0x14], 0x10
lea edi, [eax + ecx]
mov eax, esi
jb 0x100537fa
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 0x10053867
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 0x10053820
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 0x100537e0
mov edx, dword [esi + 0x10]
cmp edx, 8
jb 0x10053975
mov eax, dword [ebp + 0x2c]
cmp eax, 1
je 0x10053925
test eax, eax
je 0x10053925
cmp eax, 3
je 0x100538a9
cmp eax, 2
jne 0x10053975
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x100538b3
mov ecx, dword [esi]
movsx edi, byte [ecx + edx - 1]
mov ecx, esi
jb 0x100538be
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 0x100538f4
nop
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x100538da
mov eax, dword [esi]
sub eax, ecx
mov cl, byte [ebp - 0x21]
cmp byte [eax + edx - 1], cl
mov ecx, dword [ebp - 0x28]
jne 0x10053975
inc ecx
mov dword [ebp - 0x28], ecx
cmp ecx, edi
jl 0x100538d0
mov eax, edx
sub eax, edi
cmp eax, edx
ja 0x10053912
mov dword [esi + 0x10], eax
cmp dword [esi + 0x14], 0x10
jb 0x10053907
mov esi, dword [esi]
mov byte [esi + eax], 0
mov esi, 1
jmp 0x1005397e
push 0
sub eax, edx
mov ecx, esi
push eax
call fcn.100180d0
mov esi, 1
jmp 0x1005397e
lea edi, [edx - 8]
xor ecx, ecx
nop word [eax + eax]
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x1005393a
mov eax, dword [esi]
sub eax, ecx
cmp byte [eax + edx - 1], 0
jne 0x1005394b
inc ecx
cmp ecx, 8
jl 0x10053930
jmp 0x1005394f
mov edi, edx
sub edi, ecx
cmp edi, edx
ja 0x10053969
mov dword [esi + 0x10], edi
cmp dword [esi + 0x14], 0x10
jb 0x1005395e
mov esi, dword [esi]
mov byte [esi + edi], 0
mov esi, 1
jmp 0x1005397e
push 0
sub edi, edx
mov ecx, esi
push edi
call fcn.100180d0
mov esi, 1
jmp 0x1005397e
xor esi, esi
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x100539ae
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100539a4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100539cd
push edx
push ecx
call fcn.1006a5fe
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.1006a60c
mov esp, ebp
pop ebp
ret 0x28
call fcn.100798ce
int3