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

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x78
push 0xffffffffffffffff
push 0x461d54
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x47a0bc]
xor eax, ebp
mov dword [ebp + 0x74], 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 0x40bf40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [edi + 0x18]
cmp eax, 0x47a888
je 0x40b71e
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x40b712
mov eax, dword [eax]
push ecx
push eax
mov ecx, 0x47a888
call fcn.004031a0
cmp dword [0x47a86c], 0
mov dword [ebp - 4], 0
jne 0x40bdf0
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.0045fa8c
add esp, 4
mov dword [ebp + 0x60], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x40b76b
mov ecx, eax
call fcn.00413100
mov byte [ebp - 4], 1
call fcn.00408ac0
push 0
push 0x463c77
mov ecx, 0x47a780
mov byte [0x47a77c], 0
call fcn.004031a0
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 [0x47a84c], eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
lea eax, [ebp + 0x40]
lea ecx, [ebp - 0x11]
push 0x20
push eax
call fcn.00416490
mov ecx, eax
cmp dword [ecx + 0x14], 0x10
jb 0x40b7c6
mov ecx, dword [ecx]
mov edx, dword [0x47a84c]
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x40b7d0
mov ecx, dword [ebp + 0x54]
cmp ecx, 0x10
jb 0x40b814
mov edx, dword [ebp + 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b80a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40b80a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045fabc
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 + 0x6c], 0x958f9998
mov dword [ebp + 0x70], 0x1009b8b
xor ecx, ecx
nop dword [eax]
mov al, cl
sub al, 7
xor byte [ebp + ecx + 0x6c], al
inc ecx
cmp ecx, 6
jb 0x40b840
lea eax, [ebp - 0x12]
mov byte [ebp + 0x73], 0
push eax
lea eax, [ebp + 0x72]
push eax
lea eax, [ebp + 0x6c]
push eax
lea ecx, [ebp + 0x40]
call fcn.00405d40
lea eax, [ebp + 0x40]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.00414480
add esp, 8
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 4
jb 0x40b888
mov edx, dword [edx]
mov dword [ebp + 0x5c], 0x958f9998
xor ecx, ecx
mov dword [ebp + 0x60], 0x1009092
mov al, cl
sub al, 7
xor byte [ebp + ecx + 0x5c], al
inc ecx
cmp ecx, 6
jb 0x40b898
push edx
lea eax, [ebp + 0x5c]
mov byte [ebp + 0x63], 0
push eax
lea ecx, [ebp]
call fcn.004122a0
mov ecx, dword [ebp + 0x2c]
mov byte [ebp - 4], 3
cmp ecx, 0x10
jb 0x40b8eb
mov edx, dword [ebp + 0x18]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b8e1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b927
push ecx
push edx
call fcn.0045fabc
add esp, 8
mov ecx, dword [ebp + 0x54]
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x2c], 0xf
mov byte [ebp + 0x18], 0
mov byte [ebp - 4], 1
cmp ecx, 0x10
jb 0x40b937
mov edx, dword [ebp + 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b92d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40b92d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045fabc
add esp, 8
sub esp, 0x18
lea eax, [edi + 0x48]
mov ecx, esp
push eax
call fcn.00402120
lea eax, [ebp + 0x40]
push eax
lea ecx, [ebp - 0x11]
call fcn.00416110
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 5
jb 0x40b95f
mov edx, dword [edx]
mov dword [ebp + 0x64], 0x908b8a98
xor ecx, ecx
mov dword [ebp + 0x68], 0x749e9d94
mov dword [ebp + 0x6c], 0x5b6d6d68
mov dword [ebp + 0x70], 0x100626c
nop dword [eax]
mov al, cl
sub al, 7
xor byte [ebp + ecx + 0x64], al
inc ecx
cmp ecx, 0xe
jb 0x40b980
push edx
lea eax, [ebp + 0x64]
mov byte [ebp + 0x73], 0
push eax
lea ecx, [ebp]
call fcn.004122a0
mov ecx, dword [ebp + 0x54]
mov byte [ebp - 4], 1
cmp ecx, 0x10
jb 0x40b9d9
mov edx, dword [ebp + 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b9cf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40b9cf
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045fabc
add esp, 8
sub esp, 0x18
mov ecx, esp
push 0x47a7bc
call fcn.00402120
lea eax, [ebp + 0x40]
push eax
lea ecx, [ebp - 0x11]
call fcn.00416110
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 6
jb 0x40ba02
mov edx, dword [edx]
mov dword [ebp + 0x6c], 0x8c8c9294
xor ecx, ecx
mov word [ebp + 0x70], 0x99
mov byte [ebp + 0x72], 1
mov al, cl
sub al, 7
xor byte [ebp + ecx + 0x6c], al
inc ecx
cmp ecx, 5
jb 0x40ba15
push edx
lea eax, [ebp + 0x6c]
mov byte [ebp + 0x72], 0
push eax
lea ecx, [ebp]
call fcn.004122a0
mov ecx, dword [ebp + 0x54]
mov byte [ebp - 4], 1
cmp ecx, 0x10
jb 0x40ba6e
mov edx, dword [ebp + 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ba64
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40ba64
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045fabc
add esp, 8
mov dword [ebp + 0x68], 0x8e9e898c
xor ecx, ecx
mov dword [ebp + 0x6c], 0x65929f93
mov word [ebp + 0x70], 0x100
mov al, cl
sub al, 7
xor byte [ebp + ecx + 0x68], al
inc ecx
cmp ecx, 8
jb 0x40ba84
lea eax, [ebp + 0x68]
mov byte [ebp + 0x71], 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 0x40bac0
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 + 0x40]
push eax
lea ecx, [ebp - 0x11]
call fcn.00416110
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 8
jb 0x40baff
mov edx, dword [edx]
mov dword [ebp + 0x68], 0x9d82958b
xor ecx, ecx
mov dword [ebp + 0x6c], 0x738aa191
mov dword [ebp + 0x70], 0x1007064
mov al, cl
sub al, 7
xor byte [ebp + ecx + 0x68], al
inc ecx
cmp ecx, 0xa
jb 0x40bb16
push edx
lea eax, [ebp + 0x68]
mov byte [ebp + 0x73], 0
push eax
lea ecx, [ebp]
call fcn.004122a0
mov ecx, dword [ebp + 0x54]
mov byte [ebp - 4], 7
cmp ecx, 0x10
jb 0x40bb6f
mov edx, dword [ebp + 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40bb65
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40bb65
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045fabc
add esp, 8
mov ecx, dword [ebp + 0x2c]
mov byte [ebp - 4], 1
cmp ecx, 0x10
jb 0x40bba9
mov edx, dword [ebp + 0x18]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40bb9f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40bb9f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045fabc
add esp, 8
mov edx, dword [0x47a84c]
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 0x40bbd0
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 + 0x40]
push eax
call fcn.00414480
add esp, 8
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 0xa
jb 0x40bc05
mov edx, dword [edx]
mov dword [ebp + 0x6c], 0x9d82958b
xor ecx, ecx
mov word [ebp + 0x70], 0x91
mov byte [ebp + 0x72], 1
mov al, cl
sub al, 7
xor byte [ebp + ecx + 0x6c], al
inc ecx
cmp ecx, 5
jb 0x40bc18
push edx
lea eax, [ebp + 0x6c]
mov byte [ebp + 0x72], 0
push eax
lea ecx, [ebp]
call fcn.004122a0
mov ecx, dword [ebp + 0x54]
mov byte [ebp - 4], 9
cmp ecx, 0x10
jb 0x40bc6b
mov edx, dword [ebp + 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40bc61
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bca7
push ecx
push edx
call fcn.0045fabc
add esp, 8
mov ecx, dword [ebp + 0x2c]
mov dword [ebp + 0x50], 0
mov dword [ebp + 0x54], 0xf
mov byte [ebp + 0x40], 0
mov byte [ebp - 4], 1
cmp ecx, 0x10
jb 0x40bcb7
mov edx, dword [ebp + 0x18]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40bcad
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40bcad
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045fabc
add esp, 8
movaps xmm0, xmmword [0x463e80]
lea ecx, [ebp]
movups xmmword [ebp + 0x34], xmm0
push 0
movaps xmm0, xmmword [0x463da0]
movups xmmword [ebp + 0x44], xmm0
mov word [ebp + 0x54], 0x100
call fcn.00412460
sub esp, 0x18
mov esi, eax
mov edx, esp
mov dword [ebp + 0x60], 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 0x40bd00
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 + 0x70], edx
cmp byte [ebp + 0x55], 0
je 0x40bd39
xor ecx, ecx
mov al, cl
sub al, 7
xor byte [ebp + ecx + 0x34], al
inc ecx
cmp ecx, 0x20
jb 0x40bd27
mov byte [ebp + 0x55], 0
lea eax, [ebp - 0x12]
mov ecx, edx
push eax
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp + 0x34]
push eax
call fcn.00405d40
mov byte [ebp - 4], 1
call fcn.0040eb90
movzx ecx, byte [0x47a77d]
test al, al
mov edx, 1
cmove ecx, edx
cmp ebx, str.Req_IDNF
push 0x1024
movzx eax, cl
push 0
push dword [0x47a850]
cmove eax, edx
mov byte [0x47a77d], al
call sub.VCRUNTIME140.dll_memset
mov esi, dword [0x47a850]
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 0x40bd94
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.004098f0
inc dword [0x47a86c]
mov ecx, dword [ebp + 0x14]
cmp ecx, 0x10
jb 0x40bdf0
mov edx, dword [ebp]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40bde6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40bde6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045fabc
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 + 0x74]
xor ecx, ebp
call fcn.0045faca
lea esp, [ebp + 0x78]
pop ebp
ret