Function at 0x4046a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x7c]
sub esp, 0x7c
push 0xffffffffffffffff
push 0x45b3bc
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4720bc]
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 ebx, ecx
mov dword [ebp + 0x44], 0
mov dword [ebp - 4], 0
mov dword [0x4725c0], 2
mov dword [ebp + 0x54], 0
mov dword [ebp + 0x58], 0xf
mov byte [ebp + 0x44], 0
push 4
mov byte [ebp - 4], 1
call fcn.00459a3a
add esp, 4
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x40471f
mov ecx, eax
call fcn.0040cc90
push 0x1024
mov byte [ebp - 4], 1
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push 0x1024
push 0
push eax
mov dword [ebp - 0x1c], eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov byte [0x47249c], 0
mov ecx, 0x4724a0
push 0
push 0x45d68b
call fcn.00402a50
mov dword [ebp + 0x6c], 0xd5c8cedb
xor ecx, ecx
mov dword [ebp + 0x70], 0xb1b0dee1
mov word [ebp + 0x74], 0x100
nop
mov al, cl
sub al, 0x46
xor byte [ebp + ecx + 0x6c], al
inc ecx
cmp ecx, 8
jb 0x404770
lea eax, [ebp - 0x11]
mov byte [ebp + 0x75], 0
push eax
lea eax, [ebp + 0x74]
push eax
lea eax, [ebp + 0x6c]
push eax
lea ecx, [ebp + 0x28]
call fcn.00403020
lea eax, [ebp + 0x28]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp]
push eax
call fcn.0040e010
add esp, 8
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 4
jb 0x4047b8
mov edx, dword [edx]
mov dword [ebp + 0x5c], 0xd4c8d8db
xor ecx, ecx
mov dword [ebp + 0x60], 0x100d1d1
mov al, cl
sub al, 0x46
xor byte [ebp + ecx + 0x5c], al
inc ecx
cmp ecx, 6
jb 0x4047c8
push edx
lea eax, [ebp + 0x5c]
mov byte [ebp + 0x63], 0
push eax
lea ecx, [ebp + 0x44]
call fcn.0040be30
mov ecx, dword [ebp + 0x14]
mov byte [ebp - 4], 3
cmp ecx, 0x10
jb 0x40481b
mov edx, dword [ebp]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404811
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404857
push ecx
push edx
call fcn.00459a6a
add esp, 8
mov ecx, dword [ebp + 0x3c]
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 0xf
mov byte [ebp], 0
mov byte [ebp - 4], 1
cmp ecx, 0x10
jb 0x404867
mov edx, dword [ebp + 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40485d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40485d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00459a6a
add esp, 8
lea eax, [ebp + 0x28]
push 0x472540
push eax
call fcn.0040e010
add esp, 8
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 5
jb 0x404886
mov edx, dword [edx]
mov dword [ebp + 0x5c], 0xd5c8cedb
xor ecx, ecx
mov dword [ebp + 0x60], 0xa4d6e1
mov byte [ebp + 0x64], 1
nop word [eax + eax]
mov al, cl
sub al, 0x46
xor byte [ebp + ecx + 0x5c], al
inc ecx
cmp ecx, 7
jb 0x4048a0
push edx
lea eax, [ebp + 0x5c]
mov byte [ebp + 0x64], 0
push eax
lea ecx, [ebp + 0x44]
call fcn.0040be30
mov ecx, dword [ebp + 0x3c]
mov byte [ebp - 4], 1
cmp ecx, 0x10
jb 0x4048f9
mov edx, dword [ebp + 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4048ef
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4048ef
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00459a6a
add esp, 8
sub esp, 0x18
mov ecx, esp
push 0x472528
call fcn.00402320
lea eax, [ebp + 0x28]
push eax
lea ecx, [ebp - 0x15]
call fcn.004100c0
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 6
jb 0x404922
mov edx, dword [edx]
mov dword [ebp + 0x68], 0xd5c8cedb
xor ecx, ecx
mov dword [ebp + 0x6c], 0xa8b4d1db
mov dword [ebp + 0x70], 0xacb0a2a1
mov dword [ebp + 0x74], 0x100a9a9
mov al, cl
sub al, 0x46
xor byte [ebp + ecx + 0x68], al
inc ecx
cmp ecx, 0xe
jb 0x404940
push edx
lea eax, [ebp + 0x68]
mov byte [ebp + 0x77], 0
push eax
lea ecx, [ebp + 0x44]
call fcn.0040be30
mov ecx, dword [ebp + 0x3c]
mov byte [ebp - 4], 1
cmp ecx, 0x10
jb 0x404999
mov edx, dword [ebp + 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40498f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40498f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00459a6a
add esp, 8
mov dword [ebp + 0x6c], 0x92d5cbdb
xor ecx, ecx
mov dword [ebp + 0x70], 0xeeacd3da
mov word [ebp + 0x74], 0x100
nop
mov al, cl
sub al, 0x46
xor byte [ebp + ecx + 0x6c], al
inc ecx
cmp ecx, 8
jb 0x4049b0
movaps xmm0, xmmword [0x45d720]
xor ecx, ecx
mov byte [ebp + 0x75], 0
movups xmmword [ebp + 4], xmm0
mov byte [ebp + 0x14], 1
mov al, cl
sub al, 0x46
xor byte [ebp + ecx + 4], al
inc ecx
cmp ecx, 0xf
jb 0x4049d3
push 0
lea ecx, [ebp + 0x44]
mov byte [ebp + 0x14], 0
mov word [ebp - 0x14], 0
call fcn.0040bff0
mov esi, eax
sub esp, 0x18
mov edx, esp
mov ecx, esi
mov dword [edx], 0
lea edi, [ecx + 1]
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404a15
sub ecx, edi
push ecx
push esi
mov ecx, edx
call fcn.00402080
mov esi, dword [ebp - 0x1c]
lea eax, [ebp + 0x6c]
push esi
push eax
lea eax, [ebp + 4]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004098b0
add esp, 0x2c
test al, al
jne 0x404a9b
mov byte [0x47249d], 1
mov ecx, dword [ebp + 0x58]
cmp ecx, 0x10
jb 0x404a7e
mov edx, dword [ebp + 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404a74
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404b51
push ecx
push edx
call fcn.00459a6a
add esp, 8
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.00459a78
lea esp, [ebp + 0x7c]
pop ebp
ret
cmp dword [0x472590], 1
je 0x404ab4
mov ecx, ebx
call fcn.00406e90
mov ecx, ebx
call fcn.004046a0
jmp 0x404a4a
cmp dword [0x4725b4], 0xf1
je 0x404ad3
mov ecx, ebx
call fcn.00406e90
mov ecx, ebx
call fcn.004046a0
jmp 0x404a4a
cmp esi, str.Req_IDNF
je 0x404a43
push 0x1024
push 0
push dword [0x47258c]
call sub.VCRUNTIME140.dll_memset
mov edx, dword [0x47258c]
add esp, 0xc
mov ecx, esi
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x404b00
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov ecx, ebx
call fcn.004053d0
mov ecx, dword [ebp + 0x58]
cmp ecx, 0x10
jb 0x404a7e
mov edx, dword [ebp + 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404a74
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x404a74
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
movaps xmm0, xmmword [0x45d790]
xor ecx, ecx
movups xmmword [ebp + 0x18], xmm0
mov dword [ebp + 0x38], 0xf3ae95fa
movaps xmm0, xmmword [0x45d800]
movups xmmword [ebp + 0x28], xmm0
mov dword [ebp + 0x3c], 0xd2b5fe
mov byte [ebp + 0x40], 1
mov al, cl
sub al, 0x46
xor byte [ebp + ecx + 0x18], al
inc ecx
cmp ecx, 0x27
jb 0x404b81
lea eax, [ebp + 0x18]
mov byte [ebp + 0x40], 0
push 5
push eax
call fcn.0040d170
add esp, 8
mov byte [0x47249d], 1
mov eax, 0x404a7e
ret