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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c76a
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
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 - 0xc0], edi
cmp dword [0x47350c], 0
mov dword [ebp - 4], 0
jne 0x405d2f
movaps xmm0, xmmword [0x45e8c0]
xor ecx, ecx
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x38], 0x506f6e25
mov dword [ebp - 0x34], 0x550004
mov byte [ebp - 0x30], 1
mov al, cl
add al, 0x4d
xor byte [ebp + ecx - 0x48], al
inc ecx
cmp ecx, 0x17
jb 0x405d08
lea eax, [ebp - 0x48]
mov byte [ebp - 0x30], 0
push 5
push eax
call fcn.0040e5f0
add esp, 8
mov byte [0x4734a5], 1
mov dword [ebp - 0x20], 0x222a3d38
xor ecx, ecx
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 0x405d45
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 - 0xb8], 0
mov ecx, edx
mov dword [ebp - 0xa8], 0
add esp, 4
mov dword [ebp - 0xa4], 0
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405d90
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0xb8]
call fcn.00401e80
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
push 4
mov byte [ebp - 4], 2
call fcn.0045aab6
add esp, 4
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x405ddf
mov ecx, eax
call fcn.0040e110
push 0x1024
mov byte [ebp - 4], 2
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 byte [0x4734a4], 0
mov ecx, 0x4734a8
push 0
push 0x45e707
call fcn.004028c0
mov dword [ebp - 0x1c], 0x242e3c0f
xor ecx, ecx
mov dword [ebp - 0x18], 0x1003327
mov al, cl
add al, 0x4d
xor byte [ebp + ecx - 0x1c], al
inc ecx
cmp ecx, 6
jb 0x405e28
lea eax, [ebp - 0xba]
mov byte [ebp - 0x15], 0
push eax
lea eax, [ebp - 0x16]
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x48]
call fcn.004037e0
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.0040f490
add esp, 8
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 5
jb 0x405e76
mov edx, dword [edx]
mov dword [ebp - 0x2c], 0x393b2d2c
xor ecx, ecx
mov dword [ebp - 0x28], 0x1003c3e
mov al, cl
add al, 0x4d
xor byte [ebp + ecx - 0x2c], al
inc ecx
cmp ecx, 6
jb 0x405e86
push edx
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], 0
push eax
lea ecx, [ebp - 0x74]
call fcn.0040d2b0
mov ecx, dword [ebp - 0x7c]
mov byte [ebp - 4], 4
cmp ecx, 0x10
jb 0x405edc
mov edx, dword [ebp - 0x90]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405ed2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405f1b
push ecx
push edx
call fcn.0045aae6
add esp, 8
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0xf
mov byte [ebp - 0x90], 0
mov byte [ebp - 4], 2
cmp ecx, 0x10
jb 0x405f2b
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405f21
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x405f21
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 - 0x48]
push 0x47352c
push eax
call fcn.0040f490
add esp, 8
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 6
jb 0x405f4a
mov edx, dword [edx]
mov dword [ebp - 0x20], 0x383b3b2c
xor ecx, ecx
mov dword [ebp - 0x1c], 0x373b0e
mov byte [ebp - 0x18], 1
nop
mov al, cl
add al, 0x4d
xor byte [ebp + ecx - 0x20], al
inc ecx
cmp ecx, 7
jb 0x405f60
push edx
lea eax, [ebp - 0x20]
mov byte [ebp - 0x18], 0
push eax
lea ecx, [ebp - 0x74]
call fcn.0040d2b0
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 2
cmp ecx, 0x10
jb 0x405fb9
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405faf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x405faf
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 - 0x48]
push eax
lea ecx, [ebp - 0xb9]
call fcn.00411120
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 7
jb 0x405fe5
mov edx, dword [edx]
mov dword [ebp - 0x24], 0x383b3b2c
xor ecx, ecx
mov dword [ebp - 0x20], 0x3d273c34
mov dword [ebp - 0x1c], 0x31233736
mov dword [ebp - 0x18], 0x1003436
mov al, cl
add al, 0x4d
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, 0xe
jb 0x406003
push edx
lea eax, [ebp - 0x24]
mov byte [ebp - 0x15], 0
push eax
lea ecx, [ebp - 0x74]
call fcn.0040d2b0
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 2
cmp ecx, 0x10
jb 0x40605c
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406052
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406052
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 - 0x48]
push eax
lea ecx, [ebp - 0xb9]
call fcn.00411120
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 8
jb 0x406084
mov edx, dword [edx]
mov dword [ebp - 0x1c], 0x242e3c0f
xor ecx, ecx
mov dword [ebp - 0x18], 0x1003327
mov al, cl
add al, 0x4d
xor byte [ebp + ecx - 0x1c], al
inc ecx
cmp ecx, 6
jb 0x406094
push edx
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x15], 0
push eax
lea ecx, [ebp - 0x74]
call fcn.0040d2b0
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 2
cmp ecx, 0x10
jb 0x4060ed
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4060e3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4060e3
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 0x4734e4
call fcn.00402120
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0xb9]
call fcn.00411120
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 9
jb 0x406119
mov edx, dword [edx]
mov dword [ebp - 0x1c], 0x353c2121
xor ecx, ecx
mov word [ebp - 0x18], 0x23
mov byte [ebp - 0x16], 1
nop dword [eax]
mov al, cl
add al, 0x4d
xor byte [ebp + ecx - 0x1c], al
inc ecx
cmp ecx, 5
jb 0x406130
push edx
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x16], 0
push eax
lea ecx, [ebp - 0x74]
call fcn.0040d2b0
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 2
cmp ecx, 0x10
jb 0x406189
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40617f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40617f
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 - 0xb8]
mov ecx, esp
push eax
call fcn.00402120
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0xb9]
call fcn.00411120
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 0xa
jb 0x4061b7
mov edx, dword [edx]
mov dword [ebp - 0x1c], 0x222a3d24
xor ecx, ecx
mov word [ebp - 0x18], 0x100
mov al, cl
add al, 0x4d
xor byte [ebp + ecx - 0x1c], al
inc ecx
cmp ecx, 4
jb 0x4061c6
push edx
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x17], 0
push eax
lea ecx, [ebp - 0x74]
call fcn.0040d2b0
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 2
cmp ecx, 0x10
jb 0x40621f
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406215
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406215
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 - 0x74]
movups xmmword [ebp - 0x5c], xmm0
push 0
movaps xmm0, xmmword [0x45e8b0]
movups xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 0x3c], 0x19030209
mov dword [ebp - 0x38], 0xc16161f
mov dword [ebp - 0x34], 0x81f065b
mov word [ebp - 0x30], 0x100
call fcn.0040d470
sub esp, 0x18
mov esi, eax
mov edx, esp
mov dword [ebp - 0x28], 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]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406280
sub ecx, edi
push ecx
push esi
mov ecx, edx
call fcn.00401e80
push ebx
sub esp, 0x18
mov byte [ebp - 4], 0xb
mov edx, esp
mov dword [ebp - 0x18], edx
cmp byte [ebp - 0x2f], 0
je 0x4062b9
xor ecx, ecx
mov al, cl
add al, 0x4d
xor byte [ebp + ecx - 0x5c], al
inc ecx
cmp ecx, 0x2c
jb 0x4062a7
mov byte [ebp - 0x2f], 0
lea eax, [ebp - 0xba]
mov ecx, edx
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004037e0
mov byte [ebp - 4], 2
call fcn.0040aec0
movzx ecx, byte [0x4734a5]
test al, al
mov edx, 1
cmove ecx, edx
cmp ebx, str.Req_IDNF
push 0x1024
movzx eax, cl
push 0
push dword [0x473578]
cmove eax, edx
mov byte [0x4734a5], al
call sub.VCRUNTIME140.dll_memset
mov esi, dword [0x473578]
add esp, 0x44
mov edx, ebx
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [esi], al
lea esi, [esi + 1]
test al, al
jne 0x406317
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [ebp - 0xc0]
add esp, 4
call fcn.00406450
mov ecx, dword [ebp - 0x60]
cmp ecx, 0x10
jb 0x40636a
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406360
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4063a8
push ecx
push edx
call fcn.0045aae6
add esp, 8
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
cmp ecx, 0x10
jb 0x4063b8
mov edx, dword [ebp - 0xb8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4063ae
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4063ae
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 al, 1
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