Function at 0x10031970
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10066936
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x10078014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebx]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
test esi, esi
je 0x10031cb1
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 4
push esi
call edi
test eax, eax
jne 0x10031cb1
push 4
add esi, 0xfc
push esi
call edi
test eax, eax
jne 0x10031cb1
mov al, byte [esi]
test al, al
je 0x10031cb1
cmp dword [ebp + 8], 0
je 0x10031cb1
cmp dword [0x1007a234], 0
je 0x10031cb1
mov eax, dword [ebx]
mov eax, dword [eax + 0x310]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x10031cb1
call fcn.1000e3f0
add ebx, 0xc
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x50], 0xc
nop dword [eax + eax]
mov esi, dword [ebx - 4]
test esi, esi
je 0x10031ca1
push 4
push esi
call edi
test eax, eax
jne 0x10031ca1
push dword [ebp - 0x8c]
mov ecx, esi
push dword [ebp - 0x90]
call dword [0x1006ebdc]
test al, al
je 0x10031ca1
cmp byte [ebx + 4], 0
je 0x10031ca1
mov eax, dword [0x1007a234]
mov edx, dword [ebx]
push 0x2c
mov eax, dword [eax + 0x44]
cmp eax, edx
jae 0x10031b86
lea ecx, [ebp - 0xac]
call fcn.1000ebd0
add esp, 4
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 0x10
jb 0x10031a9f
mov eax, dword [eax]
movaps xmm0, xmmword [0x1006f400]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x6c], xmm0
mov dword [ebp - 0x5c], 0x33353f24
mov dword [ebp - 0x58], 0x73766c76
mov word [ebp - 0x54], 0x25
mov al, byte [ebp - 0x6c]
xor byte [ebp + ecx - 0x6b], al
inc ecx
cmp ecx, 0x18
jb 0x10031ac1
sub esp, 0x18
mov byte [ebp - 0x53], 0
lea eax, [ebp - 0x6b]
mov ecx, esp
push eax
call fcn.100029c0
lea eax, [ebp - 0x28]
push eax
call fcn.100061b0
add esp, 0x20
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 2
call fcn.10002380
cmp dword [ebp - 0x14], 0x10
lea ebx, [ebp - 0x28]
cmovae ebx, dword [ebp - 0x28]
lea ecx, [ebx + 1]
nop dword [eax]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x10031b10
sub ebx, ecx
lea esi, [ebx + 0x21]
push esi
call fcn.100630da
push esi
mov edi, eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
push ebx
cmovae ecx, dword [ebp - 0x28]
lea esi, [edi + 0x20]
push ecx
push esi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x48]
mov dword [edi + 4], esi
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], 0x1f
push edi
mov dword [eax], edi
call fcn.100630e3
mov eax, dword [ebp - 0x4c]
add esp, 0x20
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x144]
call fcn.10015040
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.10002380
mov ebx, dword [ebp - 0x44]
jmp 0x10031c9b
lea ecx, [ebp - 0xc4]
call fcn.1000ebd0
add esp, 4
mov dword [ebp - 4], 3
cmp dword [eax + 0x14], 0x10
jb 0x10031ba3
mov eax, dword [eax]
movaps xmm0, xmmword [0x1006ffc0]
push eax
movups xmmword [ebp - 0x88], xmm0
mov dword [ebp - 0x78], 0x51575d46
xor eax, eax
mov dword [ebp - 0x74], 0x11140e14
mov word [ebp - 0x70], 0x47
nop dword [eax + eax]
mov cl, byte [ebp - 0x88]
xor byte [ebp + eax - 0x87], cl
inc eax
cmp eax, 0x18
jb 0x10031bd0
sub esp, 0x18
mov byte [ebp - 0x6f], 0
lea eax, [ebp - 0x87]
mov ecx, esp
push eax
call fcn.100029c0
lea eax, [ebp - 0x40]
push eax
call fcn.100061b0
add esp, 0x20
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 5
call fcn.10002380
cmp dword [ebp - 0x2c], 0x10
lea ebx, [ebp - 0x40]
cmovae ebx, dword [ebp - 0x40]
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x10031c21
sub ebx, ecx
lea esi, [ebx + 0x21]
push esi
call fcn.100630da
push esi
mov edi, eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x40]
push ebx
cmovae ecx, dword [ebp - 0x40]
lea esi, [edi + 0x20]
push ecx
push esi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x48]
mov dword [edi + 4], esi
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], 0x1f
push edi
mov dword [eax], edi
call fcn.100630e3
mov eax, dword [ebp - 0x4c]
add esp, 0x20
mov ebx, dword [ebp - 0x44]
mov edx, dword [eax + 0x140]
mov ecx, dword [ebx]
call fcn.10031900
mov ecx, dword [ebp + 8]
mov edx, eax
call fcn.10015040
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.10002380
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
add ebx, 0xc
sub dword [ebp - 0x50], 1
mov dword [ebp - 0x44], ebx
jne 0x10031a30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10063065
mov esp, ebp
pop ebp
ret 8