Function at 0x4089f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x623bd7
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1a8
mov eax, dword [0x717f80]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [0x7dd9e4]
lea eax, [ebp - 0x158]
push 0x4c
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x158]
call fcn.004686c0
push 0x44
lea eax, [ebp - 0x108]
mov dword [ebp - 4], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x108]
call fcn.00467520
mov ecx, 0x7dd960
mov byte [ebp - 4], 1
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408aa0
sub ecx, edx
push ecx
push 0x7dd960
lea ecx, [ebp - 0x2c]
call fcn.00401af0
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.00404050
mov ecx, eax
mov byte [ebp - 4], 3
cmp dword [ecx + 0x14], 0xf
jbe 0x408ad4
mov ecx, dword [ecx]
mov dl, 0x20
mov byte [ebp - 0x15a], 0
mov al, 0x55
mov byte [ebp - 0x15c], dl
xor al, dl
mov byte [ebp - 0x15a], 0
mov byte [ebp - 0x15b], al
lea eax, [ebp - 0x15b]
push ecx
push eax
lea ecx, [ebp - 0x108]
call fcn.00467790
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x30]
cmp ecx, 0xf
jbe 0x408b3b
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408b31
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408b77
push ecx
push edx
call fcn.00622081
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp ecx, 0xf
jbe 0x408b87
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408b7d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x408b7d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00622081
add esp, 8
mov ecx, 0x7dd9e8
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x2c], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408ba4
sub ecx, edx
push ecx
push 0x7dd9e8
lea ecx, [ebp - 0x2c]
call fcn.00401af0
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x44]
call fcn.00404050
mov ecx, eax
mov byte [ebp - 4], 5
cmp dword [ecx + 0x14], 0xf
jbe 0x408bd8
mov ecx, dword [ecx]
mov dl, 0x54
mov byte [ebp - 0x15a], 0
mov al, 0x24
mov byte [ebp - 0x15c], dl
xor al, dl
mov byte [ebp - 0x15a], 0
mov byte [ebp - 0x15b], al
lea eax, [ebp - 0x15b]
push ecx
push eax
lea ecx, [ebp - 0x108]
call fcn.00467790
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x30]
cmp ecx, 0xf
jbe 0x408c3f
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408c35
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408c7b
push ecx
push edx
call fcn.00622081
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp ecx, 0xf
jbe 0x408c8b
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408c81
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x408c81
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00622081
add esp, 8
sub esp, 0x18
mov ecx, 0x7dd778
mov edx, esp
xorps xmm0, xmm0
lea edi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408cb0
sub ecx, edi
push ecx
push 0x7dd778
mov ecx, edx
call fcn.00401af0
lea ecx, [ebp - 0x44]
call fcn.00402600
add esp, 0x18
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 0xf
jbe 0x408cdd
mov eax, dword [eax]
push eax
push 0x6dce10
lea ecx, [ebp - 0x108]
call fcn.00467790
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x30]
cmp ecx, 0xf
jbe 0x408d28
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408d1e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x408d1e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00622081
add esp, 8
mov eax, dword [0x7dd8a0]
lea ecx, [esi + esi*2]
lea edx, [eax + ecx*8]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp dword [edx + 0x14], 0xf
jbe 0x408d4d
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x2c], xmm0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408d67
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00401af0
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xa4]
call fcn.00404050
mov esi, eax
mov byte [ebp - 4], 8
cmp dword [esi + 0x14], 0xf
jbe 0x408d9a
mov esi, dword [esi]
mov ah, 0x1e
mov byte [ebp - 0x160], 0
mov al, 0x6e
mov byte [ebp - 0x164], ah
xor al, ah
mov byte [ebp - 0x160], 0
mov cl, 0x6c
mov byte [ebp - 0x163], al
mov dl, 0x71
xor cl, ah
xor dl, ah
mov byte [ebp - 0x162], cl
push esi
lea eax, [ebp - 0x163]
mov byte [ebp - 0x161], dl
push eax
lea ecx, [ebp - 0x108]
call fcn.00467790
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x90]
cmp ecx, 0xf
jbe 0x408e1b
mov edx, dword [ebp - 0xa4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408e11
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408e60
push ecx
push edx
call fcn.00622081
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0xf
mov byte [ebp - 0xa4], 0
cmp ecx, 0xf
jbe 0x408e70
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408e66
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x408e66
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00622081
add esp, 8
movaps xmm0, xmmword [0x6e67f0]
xor ecx, ecx
movups xmmword [ebp - 0x19c], xmm0
mov dword [ebp - 0x16c], 0x1a021a
movaps xmm0, xmmword [0x6e6840]
movups xmmword [ebp - 0x18c], xmm0
movaps xmm0, xmmword [0x6e6910]
movups xmmword [ebp - 0x17c], xmm0
nop word [eax + eax]
mov al, byte [ebp - 0x19c]
xor byte [ebp + ecx - 0x19b], al
inc ecx
cmp ecx, 0x32
jb 0x408eb0
lea eax, [ebp - 0x108]
mov byte [ebp - 0x169], 0
push eax
lea eax, [ebp - 0x19b]
push eax
lea ecx, [ebp - 0x158]
call fcn.00468810
mov esi, eax
lea ecx, [ebp - 0x158]
mov dword [ebp - 0x15c], esi
call fcn.00468300
cmp al, 1
je 0x408f2c
mov esi, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea ecx, [ebp - 0x158]
call fcn.00468320
mov edx, eax
mov ecx, esi
call fcn.00418810
mov edx, 0x6dce1c
mov ecx, eax
call fcn.00418810
mov byte [ebp - 0x165], 0
jmp 0x409468
mov ecx, esi
call fcn.00467c00
mov edx, eax
mov dword [ebp - 0x64], 0
mov ecx, edx
mov dword [ebp - 0x60], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x74], xmm0
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408f50
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x74]
call fcn.00401af0
mov dh, 0x35
mov byte [ebp - 4], 9
mov cl, 0x54
mov byte [ebp - 0x164], dh
mov dl, 0x41
mov byte [ebp - 0x15e], 0
xor cl, dh
mov byte [ebp - 0x15e], 0
mov al, 0x71
mov byte [ebp - 0x162], cl
mov ah, 0x50
mov dword [ebp - 0x1c], 0
mov ch, 0xf
mov dword [ebp - 0x18], 0
xor al, dh
xor dl, dh
xor ah, dh
mov byte [ebp - 0x161], dl
xor ch, dh
mov byte [ebp - 0x163], al
mov byte [ebp - 0x15f], ch
xorps xmm0, xmm0
lea ecx, [ebp - 0x163]
mov byte [ebp - 0x160], ah
movups xmmword [ebp - 0x2c], xmm0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408fd0
sub ecx, edx
lea eax, [ebp - 0x163]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401af0
mov byte [ebp - 4], 0xa
mov ah, 0x7a
mov cl, 0x37
mov byte [ebp - 0x160], 0
xor cl, ah
mov byte [ebp - 0x164], ah
mov al, 0x3d
mov byte [ebp - 0x162], cl
mov dl, 0x2e
mov byte [ebp - 0x160], 0
xor al, ah
mov dword [ebp - 0x34], 0
xor dl, ah
mov byte [ebp - 0x163], al
xorps xmm0, xmm0
mov byte [ebp - 0x161], dl
lea ecx, [ebp - 0x163]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409040
sub ecx, edx
lea eax, [ebp - 0x163]
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.00401af0
mov byte [ebp - 4], 0xb
lea esi, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0xf
cmova esi, dword [ebp - 0x2c]
mov edx, esi
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x409070
mov edi, dword [ebp - 0x60]
sub edx, ecx
push edx
cmp edi, 0xf
lea ecx, [ebp - 0x74]
push esi
cmova ecx, dword [ebp - 0x74]
mov esi, dword [ebp - 0x64]
mov edx, esi
push ecx
call fcn.00418e60
add esp, 0xc
mov dword [ebp - 0x4c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
movups xmmword [ebp - 0x5c], xmm0
lea edx, [eax + 6]
cmp esi, edx
jb 0x4094a2
sub esi, edx
lea eax, [ebp - 0x74]
or ecx, 0xffffffff
cmp esi, 0xffffffff
cmovb ecx, esi
cmp edi, 0xf
push ecx
cmova eax, dword [ebp - 0x74]
lea ecx, [ebp - 0x5c]
add eax, edx
push eax
call fcn.00401af0
mov byte [ebp - 4], 0xc
lea esi, [ebp - 0x44]
cmp dword [ebp - 0x30], 0xf
cmova esi, dword [ebp - 0x44]
mov edx, esi
lea ecx, [edx + 1]
nop dword [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x4090f0
sub edx, ecx
cmp dword [ebp - 0x48], 0xf
push edx
lea ecx, [ebp - 0x5c]
cmova ecx, dword [ebp - 0x5c]
push esi
mov esi, dword [ebp - 0x4c]
mov edx, esi
push ecx
call fcn.00418e60
add esp, 0xc
mov dword [ebp - 0x7c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x78], 0
movups xmmword [ebp - 0x8c], xmm0
lea ecx, [eax + 3]
cmp esi, ecx
lea eax, [ebp - 0x5c]
cmovb ecx, esi
cmp dword [ebp - 0x48], 0xf
push ecx
cmova eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x8c]
push eax
call fcn.00401af0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x8c]
cmp dword [ebp - 0x78], 0xf
mov eax, dword [ebp - 0x7c]
cmova ecx, dword [ebp - 0x8c]
add eax, ecx
cmp dword [ebp - 0x78], 0xf
lea ecx, [ebp - 0x8c]
cmova ecx, dword [ebp - 0x8c]
push ecx
push eax
push ecx
lea ecx, [ebp - 0xa4]
call fcn.00418a60
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x15c]
call fcn.00467ae0
mov edx, eax
mov dword [ebp - 0xac], 0
mov ecx, edx
mov dword [ebp - 0xa8], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0xbc], xmm0
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4091c0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0xbc]
call fcn.00401af0
mov byte [ebp - 4], 0xf
lea edx, [ebp - 0xa4]
cmp dword [ebp - 0x90], 0xf
xorps xmm0, xmm0
cmova edx, dword [ebp - 0xa4]
sub esp, 0x18
mov esi, esp
mov ecx, edx
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
lea edi, [ecx + 1]
mov dword [esi + 0x14], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409210
sub ecx, edi
push ecx
push edx
mov ecx, esi
call fcn.00401af0
lea ecx, [ebp - 0x1b4]
call fcn.00402600
add esp, 0x18
cmp dword [eax + 0x14], 0xf
jbe 0x409238
mov eax, dword [eax]
cmp dword [ebp - 0xa8], 0xf
lea ecx, [ebp - 0xbc]
mov esi, dword [ebp - 0xbc]
cmova ecx, esi
nop
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x409270
test dl, dl
je 0x40926c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x409270
add ecx, 2
add eax, 2
test dl, dl
jne 0x409250
xor edi, edi
jmp 0x409275
sbb edi, edi
or edi, 1
mov ecx, dword [ebp - 0x1a0]
cmp ecx, 0xf
jbe 0x4092b1
mov edx, dword [ebp - 0x1b4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4092a7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4092a7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00622081
add esp, 8
mov eax, dword [ebp - 0xa8]
test edi, edi
sete byte [ebp - 0x165]
cmp eax, 0xf
jbe 0x4092f0
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x4092e6
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409446
push ecx
push esi
call fcn.00622081
add esp, 8
mov ecx, dword [ebp - 0x90]
cmp ecx, 0xf
jbe 0x40932a
mov edx, dword [ebp - 0xa4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409320
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409446
push ecx
push edx
call fcn.00622081
add esp, 8
mov ecx, dword [ebp - 0x78]
cmp ecx, 0xf
jbe 0x409361
mov edx, dword [ebp - 0x8c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409357
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409446
push ecx
push edx
call fcn.00622081
add esp, 8
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], 0
cmp ecx, 0xf
jbe 0x4093aa
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4093a0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409446
push ecx
push edx
call fcn.00622081
add esp, 8
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
cmp eax, 0xf
jbe 0x4093ee
mov edx, dword [ebp - 0x44]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x4093e4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409446
push ecx
push edx
call fcn.00622081
add esp, 8
mov eax, dword [ebp - 0x18]
cmp eax, 0xf
jbe 0x409420
mov edx, dword [ebp - 0x2c]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x409416
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409446
push ecx
push edx
call fcn.00622081
add esp, 8
mov ecx, dword [ebp - 0x60]
cmp ecx, 0xf
jbe 0x409456
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40944c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40944c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00622081
add esp, 8
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
lea ecx, [ebp - 0x108]
call fcn.00467580
lea ecx, [ebp - 0x158]
call fcn.00468730
mov al, byte [ebp - 0x165]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00418800
int3