Function at 0x1003e260
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e4c9e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1a8
mov eax, dword [0x100fc040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x100fc0a8], 0
je 0x1003e4eb
cmp dword [0x100fc428], 0
jg 0x1003e4eb
push 0x138
lea eax, [ebp - 0x168]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [0x10131a34]
add esp, 0xc
test al, 1
jne 0x1003e431
or eax, 1
mov dword [0x10131a34], eax
mov dword [ebp - 4], 0
xor eax, eax
movaps xmm0, xmmword [0x100f1850]
movaps xmm2, xmmword [0x100f1a20]
movups xmmword [ebp - 0x1b8], xmm0
mov byte [ebp - 0x188], 0x2e
movaps xmm0, xmmword [0x100f16b0]
movups xmmword [ebp - 0x1a8], xmm0
movaps xmm0, xmmword [0x100f1830]
movups xmmword [ebp - 0x198], xmm0
nop word [eax + eax]
movups xmm0, xmmword [ebp + eax - 0x1b8]
movaps xmm1, xmm2
xorps xmm1, xmm0
movups xmmword [ebp + eax - 0x1b8], xmm1
add eax, 0x10
cmp eax, 0x30
jb 0x1003e330
cmp eax, 0x31
jae 0x1003e361
xor byte [ebp + eax - 0x1b8], 0x2e
inc eax
cmp eax, 0x31
jb 0x1003e353
xorps xmm0, xmm0
mov dword [ebp - 0x174], 0
lea ecx, [ebp - 0x1b8]
mov dword [ebp - 0x170], 0
movups xmmword [ebp - 0x184], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003e388
sub ecx, edx
lea eax, [ebp - 0x1b8]
push ecx
push eax
lea ecx, [ebp - 0x184]
call fcn.10032850
mov byte [ebp - 4], 1
mov edx, dword [0x1012b924]
test edx, edx
je 0x1003e3b7
mov edx, dword [edx + 0x50]
jmp 0x1003e3b9
xor edx, edx
mov eax, dword [0x1012b91c]
test eax, eax
je 0x1003e3c7
mov eax, dword [eax + 0x18]
jmp 0x1003e3c9
xor eax, eax
lea ecx, [ebp - 0x184]
push ecx
push eax
lea ecx, [ebp - 0x16c]
call fcn.10029b40
mov eax, dword [ebp - 0x16c]
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x170]
mov dword [0x10131a2c], eax
cmp ecx, 0xf
jbe 0x1003e42a
mov edx, dword [ebp - 0x184]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003e420
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003e420
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100e2296
add esp, 8
mov dword [ebp - 4], 0xffffffff
xor edx, edx
lea ecx, [ebp - 0x168]
call dword [0x10131a2c]
mov ecx, dword [0x100fc0a4]
add ecx, 8
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
mov ecx, dword [0x100fc0a4]
cmp dword [ecx + 0x3874], 0
je 0x1003e46e
movss xmm0, dword [0x100fc504]
movss dword [ebp - 0x174], xmm0
mov ecx, dword [0x1012b9c0]
lea edx, [ebp - 0x168]
mov dword [ebp - 0x14c], eax
xorps xmm0, xmm0
mov eax, dword [ebp - 0x174]
mov dword [ebp - 0x140], eax
lea eax, [ebp - 0x2c]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x150], 1
mov dword [ebp - 0x144], 0xd329b84
mov dword [ebp - 0x13c], 0xcccccc00
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x134], 0x3f
mov dword [ebp - 0x154], eax
mov eax, dword [ecx]
push 1
push 0
push edx
mov eax, dword [eax + 0xa8]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100e1e1c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret