Function at 0x409e80
Capabilities:
Encode data using xor
Query environment variable
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x80]
sub esp, 0x80
push 0xffffffffffffffff
push 0x45df74
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4750bc]
xor eax, ebp
mov dword [ebp + 0x7c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
lea eax, [ebx + 0x18]
cmp eax, 0x4757e8
je 0x409edc
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x409ed0
mov eax, dword [eax]
push ecx
push eax
mov ecx, 0x4757e8
call fcn.004035c0
cmp dword [0x4757cc], 0
mov dword [ebp - 4], 0
jne 0x40a740
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.0045bf0a
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x409f29
mov ecx, eax
call fcn.0040f790
mov byte [ebp - 4], 1
call fcn.00407b20
push 0
push 0x45fc37
mov ecx, 0x4756e0
mov byte [0x4756dc], 0
call fcn.004035c0
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 [0x4757ac], eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
lea eax, [ebp + 0x40]
lea ecx, [ebp - 0x11]
push 0x20
push eax
call fcn.004128e0
mov ecx, eax
cmp dword [ecx + 0x14], 0x10
jb 0x409f84
mov ecx, dword [ecx]
mov edx, dword [0x4757ac]
nop word [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x409f90
mov ecx, dword [ebp + 0x54]
cmp ecx, 0x10
jb 0x409fd4
mov edx, dword [ebp + 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409fca
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x409fca
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045bf3a
add esp, 8
push 0x1024
call esi
push 0x1024
push 0
push eax
mov dword [ebp - 0x18], eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [ebp + 0x74], 0x3d273130
mov dword [ebp + 0x78], 0x1003323
xor ecx, ecx
nop
mov al, cl
add al, 0x51
xor byte [ebp + ecx + 0x74], al
inc ecx
cmp ecx, 6
jb 0x40a000
lea eax, [ebp - 0x12]
mov byte [ebp + 0x7b], 0
push eax
lea eax, [ebp + 0x7a]
push eax
lea eax, [ebp + 0x74]
push eax
lea ecx, [ebp + 0x40]
call fcn.004065c0
lea eax, [ebp + 0x40]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.004108d0
add esp, 8
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 4
jb 0x40a048
mov edx, dword [edx]
mov dword [ebp + 0x6c], 0x3d273130
xor ecx, ecx
mov dword [ebp + 0x70], 0x100383a
mov al, cl
add al, 0x51
xor byte [ebp + ecx + 0x6c], al
inc ecx
cmp ecx, 6
jb 0x40a058
push edx
lea eax, [ebp + 0x6c]
mov byte [ebp + 0x73], 0
push eax
lea ecx, [ebp]
call fcn.0040e940
mov ecx, dword [ebp + 0x2c]
mov byte [ebp - 4], 3
cmp ecx, 0x10
jb 0x40a0ab
mov edx, dword [ebp + 0x18]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a0a1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a0e7
push ecx
push edx
call fcn.0045bf3a
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 0x40a0f7
mov edx, dword [ebp + 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a0ed
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a0ed
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045bf3a
add esp, 8
sub esp, 0x18
lea eax, [ebx + 0x48]
mov ecx, esp
push eax
call fcn.00402540
lea eax, [ebp + 0x40]
push eax
lea ecx, [ebp - 0x11]
call fcn.00412560
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 5
jb 0x40a11f
mov edx, dword [edx]
mov dword [ebp + 0x64], 0x38232230
xor ecx, ecx
mov dword [ebp + 0x68], 0x2c36353c
mov dword [ebp + 0x6c], 0x3353530
mov dword [ebp + 0x70], 0x1003a34
nop dword [eax]
mov al, cl
add al, 0x51
xor byte [ebp + ecx + 0x64], al
inc ecx
cmp ecx, 0xe
jb 0x40a140
push edx
lea eax, [ebp + 0x64]
mov byte [ebp + 0x73], 0
push eax
lea ecx, [ebp]
call fcn.0040e940
mov ecx, dword [ebp + 0x54]
mov byte [ebp - 4], 1
cmp ecx, 0x10
jb 0x40a199
mov edx, dword [ebp + 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a18f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a18f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045bf3a
add esp, 8
sub esp, 0x18
mov ecx, esp
push 0x47571c
call fcn.00402540
lea eax, [ebp + 0x40]
push eax
lea ecx, [ebp - 0x11]
call fcn.00412560
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 6
jb 0x40a1c2
mov edx, dword [edx]
mov dword [ebp + 0x74], 0x24243a3c
xor ecx, ecx
mov word [ebp + 0x78], 0x31
mov byte [ebp + 0x7a], 1
mov al, cl
add al, 0x51
xor byte [ebp + ecx + 0x74], al
inc ecx
cmp ecx, 5
jb 0x40a1d5
push edx
lea eax, [ebp + 0x74]
mov byte [ebp + 0x7a], 0
push eax
lea ecx, [ebp]
call fcn.0040e940
mov ecx, dword [ebp + 0x54]
mov byte [ebp - 4], 1
cmp ecx, 0x10
jb 0x40a22e
mov edx, dword [ebp + 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a224
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a224
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045bf3a
add esp, 8
mov dword [ebp + 0x68], 0x26362124
xor ecx, ecx
mov dword [ebp + 0x6c], 0x3d3a373b
mov word [ebp + 0x70], 0x100
mov al, cl
add al, 0x51
xor byte [ebp + ecx + 0x68], al
inc ecx
cmp ecx, 8
jb 0x40a244
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 0x40a280
sub ecx, esi
push ecx
push edx
lea ecx, [ebp + 0x18]
call fcn.004022a0
sub esp, 0x18
mov byte [ebp - 4], 7
lea eax, [ebp + 0x18]
mov ecx, esp
push eax
call fcn.00402540
lea eax, [ebp + 0x40]
push eax
lea ecx, [ebp - 0x11]
call fcn.00412560
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 8
jb 0x40a2bf
mov edx, dword [edx]
mov dword [ebp + 0x68], 0x352a3d23
xor ecx, ecx
mov dword [ebp + 0x6c], 0x2b220939
mov dword [ebp + 0x70], 0x100283c
mov al, cl
add al, 0x51
xor byte [ebp + ecx + 0x68], al
inc ecx
cmp ecx, 0xa
jb 0x40a2d6
push edx
lea eax, [ebp + 0x68]
mov byte [ebp + 0x73], 0
push eax
lea ecx, [ebp]
call fcn.0040e940
mov ecx, dword [ebp + 0x54]
mov byte [ebp - 4], 7
cmp ecx, 0x10
jb 0x40a32f
mov edx, dword [ebp + 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a325
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a325
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045bf3a
add esp, 8
mov ecx, dword [ebp + 0x2c]
mov byte [ebp - 4], 1
cmp ecx, 0x10
jb 0x40a369
mov edx, dword [ebp + 0x18]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a35f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a35f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045bf3a
add esp, 8
mov edx, dword [0x4757ac]
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 0x40a390
sub ecx, esi
push ecx
push edx
lea ecx, [ebp + 0x18]
call fcn.004022a0
lea eax, [ebp + 0x18]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp + 0x5c]
push eax
call fcn.004108d0
add esp, 8
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 0xa
jb 0x40a3c5
mov edx, dword [edx]
mov dword [ebp + 0x74], 0x352a3d23
xor ecx, ecx
mov word [ebp + 0x78], 0x39
mov byte [ebp + 0x7a], 1
mov al, cl
add al, 0x51
xor byte [ebp + ecx + 0x74], al
inc ecx
cmp ecx, 5
jb 0x40a3d8
push edx
lea eax, [ebp + 0x74]
mov byte [ebp + 0x7a], 0
push eax
lea ecx, [ebp]
call fcn.0040e940
mov ecx, dword [ebp + 0x70]
mov byte [ebp - 4], 9
cmp ecx, 0x10
jb 0x40a42b
mov edx, dword [ebp + 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a421
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a467
push ecx
push edx
call fcn.0045bf3a
add esp, 8
mov ecx, dword [ebp + 0x2c]
mov dword [ebp + 0x6c], 0
mov dword [ebp + 0x70], 0xf
mov byte [ebp + 0x5c], 0
mov byte [ebp - 4], 1
cmp ecx, 0x10
jb 0x40a477
mov edx, dword [ebp + 0x18]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a46d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a46d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045bf3a
add esp, 8
movaps xmm0, xmmword [str.9_lxw__:___]
lea ecx, [ebp]
movups xmmword [ebp + 0x38], xmm0
push 0
movaps xmm0, xmmword [0x45fd70]
movups xmmword [ebp + 0x48], xmm0
mov word [ebp + 0x58], 0x100
call fcn.0040eb00
sub esp, 0x18
mov esi, eax
mov edx, esp
mov dword [ebp + 0x78], 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 0x40a4c0
sub ecx, edi
push ecx
push esi
mov ecx, edx
call fcn.004022a0
mov esi, dword [ebp - 0x18]
push esi
sub esp, 0x18
mov byte [ebp - 4], 0xb
mov edx, esp
mov dword [ebp - 0x18], edx
cmp byte [ebp + 0x59], 0
je 0x40a502
xor ecx, ecx
nop word [eax + eax]
mov al, cl
add al, 0x51
xor byte [ebp + ecx + 0x38], al
inc ecx
cmp ecx, 0x20
jb 0x40a4f0
mov byte [ebp + 0x59], 0
lea eax, [ebp - 0x12]
mov ecx, edx
push eax
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp + 0x38]
push eax
call fcn.004065c0
mov byte [ebp - 4], 1
call fcn.0040c540
movaps xmm0, xmmword [0x45fcc0]
add esp, 0x38
movups xmmword [ebp + 0x30], xmm0
mov bl, al
mov dword [ebp + 0x50], 0x5a013c51
movaps xmm0, xmmword [0x45fd30]
xor ecx, ecx
movups xmmword [ebp + 0x40], xmm0
mov dword [ebp + 0x54], 0x4f1c55
mov byte [ebp + 0x58], 1
nop dword [eax]
mov al, cl
add al, 0x51
xor byte [ebp + ecx + 0x30], al
inc ecx
cmp ecx, 0x27
jb 0x40a550
lea eax, [ebp + 0x30]
mov byte [ebp + 0x58], 0
push 5
push eax
call fcn.0040fa40
add esp, 8
push 5
push esi
call fcn.0040fa40
add esp, 8
test bl, bl
je 0x40a79d
movaps xmm0, xmmword [0x45fcc0]
xor ecx, ecx
movups xmmword [ebp + 0x30], xmm0
mov dword [ebp + 0x50], 0x5a013c51
movaps xmm0, xmmword [0x45fd30]
movups xmmword [ebp + 0x40], xmm0
mov dword [ebp + 0x54], 0x4e1c55
mov byte [ebp + 0x58], 1
nop dword [eax]
mov al, cl
add al, 0x51
xor byte [ebp + ecx + 0x30], al
inc ecx
cmp ecx, 0x27
jb 0x40a5b0
lea eax, [ebp + 0x30]
mov byte [ebp + 0x58], 0
push 5
push eax
call fcn.0040fa40
add esp, 8
cmp esi, 0x45fc68
je 0x40a79d
movaps xmm0, xmmword [0x45fcc0]
xor ecx, ecx
movups xmmword [ebp + 0x30], xmm0
mov dword [ebp + 0x50], 0x5a013c51
movaps xmm0, xmmword [0x45fd30]
movups xmmword [ebp + 0x40], xmm0
mov dword [ebp + 0x54], 0x48461c55
mov word [ebp + 0x58], 0x100
mov al, cl
add al, 0x51
xor byte [ebp + ecx + 0x30], al
inc ecx
cmp ecx, 0x28
jb 0x40a608
lea eax, [ebp + 0x30]
mov byte [ebp + 0x59], 0
push 5
push eax
call fcn.0040fa40
add esp, 8
push 0x1024
push 0
push dword [0x4757b0]
call sub.VCRUNTIME140.dll_memset
mov edx, dword [0x4757b0]
add esp, 0xc
mov ecx, esi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x40a645
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
movaps xmm0, xmmword [0x45fcc0]
add esp, 4
movups xmmword [ebp + 0x30], xmm0
xor ecx, ecx
mov dword [ebp + 0x50], 0x5a013c51
movaps xmm0, xmmword [0x45fd30]
movups xmmword [ebp + 0x40], xmm0
mov dword [ebp + 0x54], 0x49461c55
mov word [ebp + 0x58], 0x100
nop dword [eax]
mov al, cl
add al, 0x51
xor byte [ebp + ecx + 0x30], al
inc ecx
cmp ecx, 0x28
jb 0x40a690
lea eax, [ebp + 0x30]
mov byte [ebp + 0x59], 0
push 5
push eax
call fcn.0040fa40
mov ecx, dword [ebp - 0x1c]
add esp, 8
call fcn.00408910
movaps xmm0, xmmword [0x45fcc0]
xor ecx, ecx
movups xmmword [ebp + 0x30], xmm0
mov dword [ebp + 0x50], 0x5a013c51
movaps xmm0, xmmword [0x45fd30]
movups xmmword [ebp + 0x40], xmm0
mov dword [ebp + 0x54], 0x4a461c55
mov word [ebp + 0x58], 0x100
mov al, cl
add al, 0x51
xor byte [ebp + ecx + 0x30], al
inc ecx
cmp ecx, 0x28
jb 0x40a6e4
lea eax, [ebp + 0x30]
mov byte [ebp + 0x59], 0
push 5
push eax
call fcn.0040fa40
inc dword [0x4757cc]
add esp, 8
mov ecx, dword [ebp + 0x14]
cmp ecx, 0x10
jb 0x40a740
mov edx, dword [ebp]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a736
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a736
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045bf3a
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 + 0x7c]
xor ecx, ebp
call fcn.0045bf48
lea esp, [ebp + 0x80]
pop ebp
ret
push 0x2b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3