Function at 0x10031120
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 0x100dc74e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1a8
mov eax, dword [0x100f5008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x100f5028], 0
je 0x100313b3
cmp dword [0x100f53a8], 0
jg 0x100313b3
push 0x138
lea eax, [ebp - 0x168]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [0x101293cc]
add esp, 0xc
test al, 1
jne 0x100312f9
or eax, 1
mov dword [0x101293cc], eax
mov dword [ebp - 4], 0
xor eax, eax
movaps xmm0, xmmword [0x100ea190]
movaps xmm2, xmmword [0x100ea3d0]
movups xmmword [ebp - 0x1b8], xmm0
mov byte [ebp - 0x188], 0xac
movaps xmm0, xmmword [0x100ea0a0]
movups xmmword [ebp - 0x1a8], xmm0
movaps xmm0, xmmword [0x100ea280]
movups xmmword [ebp - 0x198], xmm0
nop word [eax + eax]
movups xmm0, xmmword [ebp + eax - 0x1b8]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x1b8], xmm1
add eax, 0x10
cmp eax, 0x30
jb 0x100311f0
cmp eax, 0x31
jae 0x10031222
xor byte [ebp + eax - 0x1b8], 0xac
inc eax
cmp eax, 0x31
jb 0x10031214
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]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10031250
sub ecx, edx
lea eax, [ebp - 0x1b8]
push ecx
push eax
lea ecx, [ebp - 0x184]
call fcn.10026020
mov byte [ebp - 4], 1
mov edx, dword [0x1012331c]
test edx, edx
je 0x1003127f
mov edx, dword [edx + 0x50]
jmp 0x10031281
xor edx, edx
mov eax, dword [0x10123314]
test eax, eax
je 0x1003128f
mov eax, dword [eax + 0x18]
jmp 0x10031291
xor eax, eax
lea ecx, [ebp - 0x184]
push ecx
push eax
lea ecx, [ebp - 0x16c]
call fcn.1001dc50
mov eax, dword [ebp - 0x16c]
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x170]
mov dword [0x101293c4], eax
cmp ecx, 0x10
jb 0x100312f2
mov edx, dword [ebp - 0x184]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100312e8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100312e8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100d9f61
add esp, 8
mov dword [ebp - 4], 0xffffffff
xor edx, edx
lea ecx, [ebp - 0x168]
call dword [0x101293c4]
mov ecx, dword [0x100f5024]
add ecx, 8
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
mov ecx, dword [0x100f5024]
cmp dword [ecx + 0x3874], 0
je 0x10031336
movss xmm0, dword [0x100f5478]
movss dword [ebp - 0x174], xmm0
mov ecx, dword [0x101233b8]
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], 0x13287c84
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.100d9ae6
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret