Function at 0x40a6d0
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45cca0
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x4730bc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0xb4], edi
mov dword [ebp - 0x78], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
push 4
mov byte [ebp - 4], 2
call fcn.0045aab6
add esp, 4
mov dword [ebp - 0xb0], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x40a74c
mov ecx, eax
call fcn.0040e110
mov byte [ebp - 4], 2
xor ecx, ecx
mov dword [ebp - 0x20], 0x222a3d38
mov dword [ebp - 0x1c], 0x313e333f
mov word [ebp - 0x18], 0x100
mov al, cl
add al, 0x4d
xor byte [ebp + ecx - 0x20], al
inc ecx
cmp ecx, 8
jb 0x40a766
lea eax, [ebp - 0x20]
mov byte [ebp - 0x17], 0
push eax
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov edx, eax
mov dword [ebp - 0x90], 0
mov ecx, edx
mov dword [ebp - 0x80], 0
add esp, 4
mov dword [ebp - 0x7c], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a7a4
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x90]
call fcn.00401e80
push 0x1024
mov byte [ebp - 4], 4
mov byte [0x4734a4], 0
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push 0x1024
mov ebx, eax
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [ebp - 0x2c], 0x31102d3e
mov dword [ebp - 0x28], 0x223a2632
xor ecx, ecx
mov word [ebp - 0x24], 0x30
mov byte [ebp - 0x22], 1
nop dword [eax]
mov al, cl
add al, 0x4d
xor byte [ebp + ecx - 0x2c], al
inc ecx
cmp ecx, 9
jb 0x40a800
lea eax, [ebp - 0xaa]
mov byte [ebp - 0x22], 0
push eax
lea eax, [ebp - 0x23]
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.004037e0
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.0040f490
add esp, 8
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 6
jb 0x40a84e
mov edx, dword [edx]
mov dword [ebp - 0x20], 0x393b2d2c
xor ecx, ecx
mov dword [ebp - 0x1c], 0x1003c3e
nop
mov al, cl
add al, 0x4d
xor byte [ebp + ecx - 0x20], al
inc ecx
cmp ecx, 6
jb 0x40a860
push edx
lea eax, [ebp - 0x20]
mov byte [ebp - 0x19], 0
push eax
lea ecx, [ebp - 0x78]
call fcn.0040d2b0
mov ecx, dword [ebp - 0x94]
mov byte [ebp - 4], 5
cmp ecx, 0x10
jb 0x40a8b9
mov edx, dword [ebp - 0xa8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a8af
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a8fe
push ecx
push edx
call fcn.0045aae6
add esp, 8
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0xf
mov byte [ebp - 0xa8], 0
mov byte [ebp - 4], 4
cmp ecx, 0x10
jb 0x40a90e
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a904
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a904
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045aae6
add esp, 8
lea eax, [ebp - 0x4c]
push 0x47352c
push eax
call fcn.0040f490
add esp, 8
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 7
jb 0x40a92d
mov edx, dword [edx]
mov dword [ebp - 0x20], 0x383b3b2c
xor ecx, ecx
mov dword [ebp - 0x1c], 0x373b0e
mov byte [ebp - 0x18], 1
mov al, cl
add al, 0x4d
xor byte [ebp + ecx - 0x20], al
inc ecx
cmp ecx, 7
jb 0x40a941
push edx
lea eax, [ebp - 0x20]
mov byte [ebp - 0x18], 0
push eax
lea ecx, [ebp - 0x78]
call fcn.0040d2b0
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 4], 4
cmp ecx, 0x10
jb 0x40a99a
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a990
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a990
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045aae6
add esp, 8
sub esp, 0x18
mov ecx, esp
push 0x473514
call fcn.00402120
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0xa9]
call fcn.00411120
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 8
jb 0x40a9c6
mov edx, dword [edx]
mov dword [ebp - 0x30], 0x383b3b2c
xor ecx, ecx
mov dword [ebp - 0x2c], 0x3d273c34
mov dword [ebp - 0x28], 0x31233736
mov dword [ebp - 0x24], 0x1003436
mov al, cl
add al, 0x4d
xor byte [ebp + ecx - 0x30], al
inc ecx
cmp ecx, 0xe
jb 0x40a9e4
push edx
lea eax, [ebp - 0x30]
mov byte [ebp - 0x21], 0
push eax
lea ecx, [ebp - 0x78]
call fcn.0040d2b0
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 4], 4
cmp ecx, 0x10
jb 0x40aa3d
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40aa33
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40aa33
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045aae6
add esp, 8
sub esp, 0x18
lea eax, [edi + 0x78]
mov ecx, esp
push eax
call fcn.00402120
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0xa9]
call fcn.00411120
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 9
jb 0x40aa68
mov edx, dword [edx]
mov dword [ebp - 0x2c], 0x3e2e262e
xor ecx, ecx
mov dword [ebp - 0x28], 0xb3f373f
mov dword [ebp - 0x24], 0x100323c
nop
mov al, cl
add al, 0x4d
xor byte [ebp + ecx - 0x2c], al
inc ecx
cmp ecx, 0xa
jb 0x40aa80
push edx
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x21], 0
push eax
lea ecx, [ebp - 0x78]
call fcn.0040d2b0
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 4], 4
cmp ecx, 0x10
jb 0x40aad9
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40aacf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40aacf
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045aae6
add esp, 8
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00402120
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0xa9]
call fcn.00411120
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 0xa
jb 0x40ab04
mov edx, dword [edx]
mov dword [ebp - 0x20], 0x233c2b20
xor ecx, ecx
mov dword [ebp - 0x1c], 0x363530
mov byte [ebp - 0x18], 1
mov al, cl
add al, 0x4d
xor byte [ebp + ecx - 0x20], al
inc ecx
cmp ecx, 7
jb 0x40ab18
push edx
lea eax, [ebp - 0x20]
mov byte [ebp - 0x18], 0
push eax
lea ecx, [ebp - 0x78]
call fcn.0040d2b0
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 4], 4
cmp ecx, 0x10
jb 0x40ab71
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ab67
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40ab67
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045aae6
add esp, 8
sub esp, 0x18
lea eax, [ebp - 0x90]
mov ecx, esp
push eax
call fcn.00402120
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0xa9]
call fcn.00411120
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 0xb
jb 0x40ab9f
mov edx, dword [edx]
mov dword [ebp - 0x1c], 0x222a3d24
xor ecx, ecx
mov word [ebp - 0x18], 0x100
nop
mov al, cl
add al, 0x4d
xor byte [ebp + ecx - 0x1c], al
inc ecx
cmp ecx, 4
jb 0x40abb0
push edx
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x17], 0
push eax
lea ecx, [ebp - 0x78]
call fcn.0040d2b0
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 4], 4
cmp ecx, 0x10
jb 0x40ac09
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40abff
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40abff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045aae6
add esp, 8
sub esp, 0x18
mov ecx, esp
push edi
call fcn.00402120
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0xa9]
call fcn.00411120
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 0xc
jb 0x40ac31
mov edx, dword [edx]
mov dword [ebp - 0x20], 0x242e3c0f
xor ecx, ecx
mov dword [ebp - 0x1c], 0x1003327
mov al, cl
add al, 0x4d
xor byte [ebp + ecx - 0x20], al
inc ecx
cmp ecx, 6
jb 0x40ac41
push edx
lea eax, [ebp - 0x20]
mov byte [ebp - 0x19], 0
push eax
lea ecx, [ebp - 0x78]
call fcn.0040d2b0
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 4], 4
cmp ecx, 0x10
jb 0x40ac9a
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ac90
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40ac90
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045aae6
add esp, 8
movaps xmm0, xmmword [0x45e870]
lea ecx, [ebp - 0x78]
movups xmmword [ebp - 0x60], xmm0
push 0
movaps xmm0, xmmword [0x45e8b0]
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x40], 0x19030209
mov dword [ebp - 0x3c], 0xc16161f
mov dword [ebp - 0x38], 0x81f065b
mov word [ebp - 0x34], 0x100
call fcn.0040d470
sub esp, 0x18
mov esi, eax
mov edx, esp
mov dword [ebp - 0xb0], esp
mov ecx, esi
mov dword [edx], 0
mov dword [edx + 0x10], 0
lea edi, [ecx + 1]
mov dword [edx + 0x14], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ad00
sub ecx, edi
push ecx
push esi
mov ecx, edx
call fcn.00401e80
push ebx
sub esp, 0x18
mov byte [ebp - 4], 0xd
mov edx, esp
mov dword [ebp - 0x1c], edx
cmp byte [ebp - 0x33], 0
je 0x40ad39
xor ecx, ecx
mov al, cl
add al, 0x4d
xor byte [ebp + ecx - 0x60], al
inc ecx
cmp ecx, 0x2c
jb 0x40ad27
mov byte [ebp - 0x33], 0
lea eax, [ebp - 0xaa]
mov ecx, edx
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.004037e0
mov byte [ebp - 4], 4
call fcn.0040aec0
movzx ecx, byte [0x4734a5]
test al, al
push 0x1024
mov edx, 1
push 0
push dword [0x473578]
cmove ecx, edx
mov byte [0x4734a5], cl
call sub.VCRUNTIME140.dll_memset
mov esi, dword [0x473578]
add esp, 0x44
mov edx, ebx
nop dword [eax]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [esi], al
lea esi, [esi + 1]
test al, al
jne 0x40ad90
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [ebp - 0xb4]
add esp, 4
call fcn.00406450
mov ecx, dword [ebp - 0x7c]
cmp ecx, 0x10
jb 0x40ade6
mov edx, dword [ebp - 0x90]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40addc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ae0c
push ecx
push edx
call fcn.0045aae6
add esp, 8
mov ecx, dword [ebp - 0x64]
cmp ecx, 0x10
jb 0x40ae1c
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ae12
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40ae12
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045aae6
add esp, 8
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x40ae9a
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ae90
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40ae90
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
movaps xmm0, xmmword [0x45e8a0]
lea ecx, [ebp - 0x5c]
movups xmmword [ebp - 0x5c], xmm0
push 5
movaps xmm0, xmmword [0x45e800]
movups xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 0x3c], 0x5e1d204d
mov dword [ebp - 0x38], 0x401851
mov byte [ebp - 0x34], 1
call fcn.004088e0
push eax
call fcn.0040e5f0
add esp, 8
mov byte [0x4734a5], 1
mov eax, 0x40ae1c
ret
push ecx
push edx
call fcn.0045aae6
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045aaf4
mov esp, ebp
pop ebp
ret 0x18