Function at 0x100db760
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
mov eax, dword [0x1025ab04]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x18c], ecx
mov dword [ebp - 0x178], eax
lea ecx, [eax + 8]
mov eax, dword [ecx]
push esi
push edi
mov eax, dword [eax + 0x28]
call eax
imul esi, eax, 0x6c
cmp dword [0x10192088], 0
lea edi, [esi + 0x1025bc98]
je 0x100dbd6c
mov ecx, dword [0x10192080]
test ecx, ecx
je 0x100dbd6c
mov eax, dword [0x1025bc0c]
test al, 1
jne 0x100db7d2
or eax, 1
mov dword [0x1025bc0c], eax
mov eax, dword [0x1025bc04]
mov dword [0x1025bc08], eax
jmp 0x100db7d7
mov eax, dword [0x1025bc08]
cmp dword [eax + ecx], 0
jne 0x100dbd6c
mov eax, dword [0x1025bc14]
test al, 1
jne 0x100db7fe
or eax, 1
mov dword [0x1025bc14], eax
mov eax, dword [0x1025bc00]
mov dword [0x1025bc10], eax
jmp 0x100db803
mov eax, dword [0x1025bc10]
cmp dword [eax + ecx], 0
jle 0x100dbd6c
mov eax, dword [ebp - 0x18c]
cmp dword [eax + 0x14], 2
jl 0x100dbd6c
push 0x90
lea eax, [ebp - 0x174]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x80
xorps xmm0, xmm0
mov dword [ebp - 0xe4], 0
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xc0], 0
push 0
push eax
movups xmmword [ebp - 0xe0], xmm0
mov dword [ebp - 0xbc], 0
movups xmmword [ebp - 0xd0], xmm0
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebp - 0x178]
add esp, 0x18
add ecx, 8
mov word [ebp - 0x38], 0
xorps xmm0, xmm0
mov byte [ebp - 0x24], 0
movups xmmword [ebp - 0x34], xmm0
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
mov ecx, dword [0x1025ba70]
lea edx, [ebp - 0x174]
push edx
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
call eax
cmp byte [ebp - 0x38], 0
jne 0x100dbd6c
cmp byte [0x1024d9f3], 0
je 0x100dbd6c
mov eax, dword [0x1023f10c]
mov edx, dword [ebp - 0x178]
cmp dword [edx + eax], 0
je 0x100dbd6c
mov eax, dword [0x1025de14]
test al, 1
jne 0x100db8f4
or eax, 1
mov dword [0x1025de14], eax
mov eax, dword [0x1025ddd0]
mov dword [0x1025de10], eax
jmp 0x100db8f9
mov eax, dword [0x1025de10]
mov ecx, dword [esi + 0x1025bce8]
and ecx, 0x80000007
jns 0x100db90c
dec ecx
or ecx, 0xfffffff8
inc ecx
mov eax, dword [edx + eax + 4]
xorps xmm2, xmm2
mov dword [esi + ecx*4 + 0x1025bcc8], eax
xor ecx, ecx
mov eax, dword [esi + 0x1025bce8]
cmp eax, 9
lea edx, [eax + 1]
cmovl ecx, edx
mov edx, 7
mov dword [esi + 0x1025bce8], ecx
lea ecx, [esi + 0x1025bccc]
movss xmm3, dword [0x101687a0]
movss xmm1, dword [0x101686c8]
nop dword [eax]
movss xmm0, dword [ecx - 4]
subss xmm0, dword [ecx]
andps xmm0, xmm3
comiss xmm2, xmm0
jb 0x100db981
mov eax, dword [esi + 0x1025bcf0]
cmp eax, 3
jge 0x100db975
inc eax
mov dword [esi + 0x1025bcf0], eax
jmp 0x100db9a4
mov dword [esi + 0x1025bcec], 0
jmp 0x100db9a4
comiss xmm0, xmm1
jb 0x100db9a4
mov eax, dword [esi + 0x1025bcec]
cmp eax, 3
jge 0x100db99a
inc eax
mov dword [esi + 0x1025bcec], eax
jmp 0x100db9a4
mov dword [esi + 0x1025bcf0], 0
add ecx, 4
sub edx, 1
jne 0x100db950
mov eax, dword [esi + 0x1025bcec]
cmp eax, dword [esi + 0x1025bcf0]
setg al
mov byte [esi + 0x1025bcb8], al
mov eax, dword [ebp - 0x178]
push eax
call fcn.100dafd0
add esp, 4
cmp byte [esi + 0x1025bcb8], 0
je 0x100dbba8
movss xmm0, dword [esi + 0x1025bce4]
push ecx
movss dword [esp], xmm0
call fcn.100633e0
movss xmm0, dword [esi + 0x1025bce0]
fstp dword [ebp - 0x178]
movss dword [esp], xmm0
call fcn.100633e0
movss xmm0, dword [ebp - 0x178]
fstp dword [ebp - 0x188]
movss dword [esp], xmm0
call fcn.10063000
movss xmm0, dword [ebp - 0x188]
fstp dword [ebp - 0x17c]
movss dword [esp], xmm0
call fcn.10063000
movss xmm0, dword [ebp - 0x178]
fstp dword [ebp - 0x184]
movss dword [esp], xmm0
call fcn.10063000
movss xmm0, dword [ebp - 0x184]
fstp dword [ebp - 0x178]
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_sinf
movss dword [ebp - 0x184], xmm0
movss xmm0, dword [ebp - 0x17c]
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_sinf
movss xmm1, dword [ebp - 0x184]
addss xmm1, xmm0
movss xmm0, dword [ebp - 0x188]
movss dword [esp], xmm0
mulss xmm1, dword [0x10168670]
movss dword [ebp - 0x184], xmm1
call fcn.10063000
fstp dword [ebp - 0x17c]
movss xmm0, dword [ebp - 0x17c]
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_cosf
movss dword [ebp - 0x17c], xmm0
movss xmm0, dword [ebp - 0x178]
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_cosf
movss xmm1, dword [ebp - 0x17c]
fld dword [ebp - 0x184]
addss xmm1, xmm0
mulss xmm1, dword [0x10168670]
movss dword [ebp - 0x17c], xmm1
fld dword [ebp - 0x17c]
fpatan
fstp dword [ebp - 0x17c]
movss xmm0, dword [ebp - 0x17c]
movss dword [esp], xmm0
call fcn.10063440
fstp dword [esp]
call fcn.100633e0
mov eax, dword [ebp - 0x18c]
fstp dword [ebp - 0x17c]
movss xmm0, dword [eax + 0xc0]
subss xmm0, dword [ebp - 0x17c]
movss dword [esp], xmm0
call fcn.100633e0
xor eax, eax
mov byte [edi], 1
fstp dword [ebp - 0x17c]
movss xmm0, dword [ebp - 0x17c]
add esp, 4
comiss xmm0, dword [0x10168634]
mov ecx, 0x10256678
setbe al
lea eax, [eax*2 - 1]
mov dword [esi + 0x1025bc9c], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.1005ae20
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
lea ecx, [esi + 0x1025bca0]
cmovae eax, dword [ebp - 0x1c]
push eax
call fcn.10081c00
lea ecx, [ebp - 0x1c]
call fcn.10043cb0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10104522
mov esp, ebp
pop ebp
ret
cmp byte [esi + 0x1025bcf8], 0
je 0x100dbd22
cmp byte [0x10256690], 0
mov eax, dword [esi + 0x1025bcfc]
mov dword [esi + 0x1025bc9c], eax
je 0x100dbc3a
cmp byte [0x10256691], 0
jne 0x100dbc9e
mov byte [0x10256691], 1
xor edi, edi
xor edx, edx
mov eax, edi
xor eax, dword [0x102566a0]
xor edx, dword [0x102566a4]
xor eax, 0x1de26cd5
mov dword [ebp - 0x178], eax
xor edx, 0xd28f2c5
mov ecx, edx
shld ecx, eax, 0xd
shl eax, 0xd
xor edx, ecx
xor dword [ebp - 0x178], eax
mov ecx, dword [ebp - 0x178]
mov eax, ecx
mov dword [ebp - 0x17c], edx
shrd eax, edx, 7
xor al, byte [edi + 0x10256692]
xor al, cl
mov byte [edi + 0x10256692], al
inc edi
cmp edi, 0xd
jb 0x100dbbe0
jmp 0x100dbc98
xor edi, edi
nop dword [eax]
xor edx, edx
mov eax, edi
xor eax, dword [0x102566a0]
xor edx, dword [0x102566a4]
xor eax, 0x1de26cd5
mov dword [ebp - 0x178], eax
xor edx, 0xd28f2c5
mov ecx, edx
shld ecx, eax, 0xd
shl eax, 0xd
xor edx, ecx
xor dword [ebp - 0x178], eax
mov ecx, dword [ebp - 0x178]
mov eax, ecx
mov dword [ebp - 0x17c], edx
shrd eax, edx, 7
xor al, byte [edi + 0x10256692]
xor al, cl
mov byte [edi + 0x10256692], al
inc edi
cmp edi, 0xd
jb 0x100dbc40
lea edi, [esi + 0x1025bc98]
push 0xc
push 0x10256692
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
call fcn.10045f20
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
lea ecx, [esi + 0x1025bca0]
cmovae eax, dword [ebp - 0x1c]
push eax
call fcn.10081c00
mov edx, dword [ebp - 8]
cmp edx, 0x10
jb 0x100dbd59
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100dbd05
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100dbd05
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.101041fa
add esp, 8
mov byte [edi], 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10104522
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1c]
mov dword [esi + 0x1025bc9c], 0
push eax
mov ecx, 0x102566a8
call fcn.1005ae20
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
lea ecx, [esi + 0x1025bca0]
cmovae eax, dword [ebp - 0x1c]
push eax
call fcn.10081c00
lea ecx, [ebp - 0x1c]
call fcn.10043cb0
mov byte [edi], 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10104522
mov esp, ebp
pop ebp
ret
cmp byte [edi], 0
je 0x100dbd78
mov ecx, edi
call fcn.100dbd90
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10104522
mov esp, ebp
pop ebp
ret