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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ac698
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x100db55c]
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 0x10053b0c
mov eax, edi
and eax, reloc.OLEAUT32.dll_VariantInit
jns 0x100538eb
dec eax
or eax, 0xfffffff8
add eax, 1
jne 0x10053b0c
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.1000c160
add esp, 0x10
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x10053931
mov eax, dword [esi]
mov byte [eax], 0
mov ecx, dword [esi + 0x10]
cmp edi, ecx
ja 0x1005394e
mov dword [esi + 0x10], edi
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x10053948
mov eax, dword [esi]
mov byte [eax + edi], 0
jmp 0x1005395c
mov eax, edi
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.10018240
xor ecx, ecx
mov dword [ebp - 0x28], ecx
test edi, edi
jle 0x10053a0b
nop dword [eax]
mov edx, dword [ebp - 0x30]
mov eax, edx
cmp dword [edx + 0x14], 0x10
jb 0x1005397d
mov eax, dword [edx]
cmp dword [esi + 0x14], 0x10
lea edi, [eax + ecx]
mov eax, esi
jb 0x1005398a
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 0x100539f7
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 0x100539b0
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 0x10053970
mov edx, dword [esi + 0x10]
cmp edx, 8
jb 0x10053b05
mov eax, dword [ebp + 0x2c]
cmp eax, 1
je 0x10053ab5
test eax, eax
je 0x10053ab5
cmp eax, 3
je 0x10053a39
cmp eax, 2
jne 0x10053b05
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x10053a43
mov ecx, dword [esi]
movsx edi, byte [ecx + edx - 1]
mov ecx, esi
jb 0x10053a4e
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 0x10053a84
nop
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x10053a6a
mov eax, dword [esi]
sub eax, ecx
mov cl, byte [ebp - 0x21]
cmp byte [eax + edx - 1], cl
mov ecx, dword [ebp - 0x28]
jne 0x10053b05
inc ecx
mov dword [ebp - 0x28], ecx
cmp ecx, edi
jl 0x10053a60
mov eax, edx
sub eax, edi
cmp eax, edx
ja 0x10053aa2
mov dword [esi + 0x10], eax
cmp dword [esi + 0x14], 0x10
jb 0x10053a97
mov esi, dword [esi]
mov byte [esi + eax], 0
mov esi, 1
jmp 0x10053b0e
push 0
sub eax, edx
mov ecx, esi
push eax
call fcn.10018240
mov esi, 1
jmp 0x10053b0e
lea edi, [edx - 8]
xor ecx, ecx
nop word [eax + eax]
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x10053aca
mov eax, dword [esi]
sub eax, ecx
cmp byte [eax + edx - 1], 0
jne 0x10053adb
inc ecx
cmp ecx, 8
jl 0x10053ac0
jmp 0x10053adf
mov edi, edx
sub edi, ecx
cmp edi, edx
ja 0x10053af9
mov dword [esi + 0x10], edi
cmp dword [esi + 0x14], 0x10
jb 0x10053aee
mov esi, dword [esi]
mov byte [esi + edi], 0
mov esi, 1
jmp 0x10053b0e
push 0
sub edi, edx
mov ecx, esi
push edi
call fcn.10018240
mov esi, 1
jmp 0x10053b0e
xor esi, esi
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x10053b3e
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10053b34
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10053b5d
push edx
push ecx
call fcn.1006a79e
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.1006a7ac
mov esp, ebp
pop ebp
ret 0x28
call fcn.10079a6e
int3