Function at 0x40fc40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4686be
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x47400c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x38], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0
mov ecx, dword [eax]
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp eax, ecx
jb 0x40fe9e
sub eax, ecx
mov ebx, 4
cmp eax, ebx
mov edx, ebx
cmovb edx, eax
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x40fccb
mov eax, dword [edi]
add eax, ecx
lea ecx, [ebp - 0x2c]
push edx
push eax
call fcn.00402bd0
mov edx, str.null
lea ecx, [ebp - 0x2c]
call fcn.004031d0
mov edx, dword [ebp - 0x18]
mov byte [ebp - 0x11], al
cmp edx, 0x10
jb 0x40fd20
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fd13
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40fd13
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00466a5c
mov al, byte [ebp - 0x11]
add esp, 8
mov edx, dword [ebp - 0x30]
mov ecx, dword [edx]
test al, al
jne 0x40fe5c
mov byte [ebp - 0x2c], al
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
cmp eax, ecx
jb 0x40fea3
sub eax, ecx
cmp eax, 4
cmovb ebx, eax
cmp dword [edi + 0x14], 0x10
jb 0x40fd59
mov edi, dword [edi]
lea eax, [edi + ecx]
push ebx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402bd0
mov byte [ebp - 4], 1
xor ecx, ecx
movaps xmm0, xmmword [0x46f020]
movups xmmword [ebp - 0x74], xmm0
mov dword [ebp - 0x54], 0x28223923
movaps xmm0, xmmword [0x46ee70]
movups xmmword [ebp - 0x64], xmm0
mov word [ebp - 0x50], 0x6b6c
mov byte [ebp - 0x4e], 0
mov al, byte [ebp - 0x74]
xor byte [ebp + ecx - 0x73], al
inc ecx
cmp ecx, 0x25
jb 0x40fd93
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea edx, [ebp - 0x73]
mov byte [ebp - 0x4e], 0
call fcn.00402d70
cmp dword [ebp - 0x18], 0x10
lea edx, [ebp - 0x2c]
push dword [ebp - 0x1c]
cmovae edx, dword [ebp - 0x2c]
mov ecx, eax
call fcn.004035d0
add esp, 4
mov edx, 0x46e064
mov ecx, eax
call fcn.00402d70
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x40fe10
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fe06
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40fe06
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00466a5c
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
push 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x34], 0xe
call fcn.00404a40
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [esi + 8], ecx
lea ecx, [ebp - 0x24]
mov dword [esi], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0
call fcn.004043a0
jmp 0x40fe82
lea eax, [ecx + 4]
mov dword [ebp - 0x44], 0
mov dword [edx], eax
mov eax, dword [ebp - 0x48]
mov dword [esi], 0
mov dword [esi + 4], eax
mov dword [esi + 8], 0
mov dword [ebp - 0x4c], 0
lea ecx, [ebp - 0x4c]
call fcn.004043a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00402d60
call fcn.00402d60
int3