Function at 0x405940
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46860f
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x47400c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov eax, ecx
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x48], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 4], 0
mov ecx, 0xf
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], ecx
mov byte [ebp - 0x44], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x2c], 0
xor al, al
mov byte [ebp - 4], 2
mov byte [ebp - 0x49], al
mov dword [ebp - 0x64], 0
nop dword [eax + eax]
mov edx, dword [edi]
lea eax, [edx + 1]
mov dword [edi], eax
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x48], eax
mov eax, esi
jb 0x4059e4
mov eax, dword [esi]
mov bl, byte [eax + edx]
mov byte [ebp - 0x60], bl
cmp bl, 0x2d
je 0x405a49
cmp bl, 0x30
jl 0x4059f9
cmp bl, 0x39
jle 0x405a49
cmp bl, 0x2e
jne 0x405a8b
mov edx, dword [ebp - 0x34]
cmp edx, ecx
jae 0x405a28
lea eax, [edx + 1]
mov byte [ebp - 0x49], 1
mov dword [ebp - 0x34], eax
cmp ecx, 0x10
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
mov word [eax + edx], 0x2e
mov ecx, dword [ebp - 0x30]
jmp 0x4059d0
push 0x2e
mov byte [ebp - 0xc0], 0
push dword [ebp - 0xc0]
push ecx
lea ecx, [ebp - 0x44]
call fcn.004033c0
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 0x49], 1
jmp 0x4059d0
mov edx, dword [ebp - 0x34]
cmp edx, ecx
jae 0x405a70
lea eax, [edx + 1]
cmp ecx, 0x10
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
mov byte [eax + edx], bl
mov byte [eax + edx + 1], 0
mov ecx, dword [ebp - 0x30]
jmp 0x4059d0
push dword [ebp - 0x60]
mov byte [ebp - 0x50], 0
push dword [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x44]
call fcn.004033c0
mov ecx, dword [ebp - 0x30]
jmp 0x4059d0
cmp bl, 0x45
je 0x405c4f
cmp bl, 0x65
je 0x405c4f
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
add esp, 4
test eax, eax
jne 0x405dfc
cmp bl, 0x2c
je 0x405dfc
cmp bl, 0x5d
je 0x405dfc
cmp bl, 0x7d
je 0x405dfc
movaps xmm0, xmmword [0x46f700]
xor ecx, ecx
movups xmmword [ebp - 0xa8], xmm0
mov dword [ebp - 0x88], 0x14031205
movaps xmm0, xmmword [0x46e910]
movups xmmword [ebp - 0x98], xmm0
mov word [ebp - 0x84], 0x4146
mov byte [ebp - 0x82], al
nop dword [eax]
nop dword [eax + eax]
mov al, byte [ebp - 0xa8]
xor byte [ebp + ecx - 0xa7], al
inc ecx
cmp ecx, 0x25
jb 0x405b10
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea edx, [ebp - 0xa7]
mov byte [ebp - 0x82], 0
call fcn.00402d70
mov dl, bl
mov ecx, eax
call fcn.00402fb0
mov edx, 0x46e064
mov ecx, eax
call fcn.00402d70
mov byte [ebp - 4], 4
mov dword [ebp - 0x80], 4
push 0
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x5c], 0
call fcn.00404a40
mov esi, dword [ebp - 0x68]
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x5c], 0
mov dword [esi], eax
mov eax, dword [ebp - 0x54]
mov dword [esi + 4], ecx
lea ecx, [ebp - 0x5c]
mov dword [esi + 8], eax
mov dword [ebp - 0x54], 0
call fcn.004043a0
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x405bd1
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405bc7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406013
push edx
push ecx
call fcn.00466a5c
add esp, 8
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp edx, 0x10
jb 0x405c17
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405c0d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406013
push edx
push ecx
call fcn.00466a5c
add esp, 8
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
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 ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00466a4b
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x48]
mov ecx, esi
lea edx, [eax + 1]
mov dword [edi], edx
cmp dword [esi + 0x14], 0x10
jb 0x405c61
mov ecx, dword [esi]
cmp byte [ecx + eax], 0x2d
jne 0x405ca0
mov ecx, dword [ebp - 0x1c]
lea eax, [edx + 1]
mov edx, dword [ebp - 0x18]
mov dword [edi], eax
cmp ecx, edx
jae 0x405c8e
lea eax, [ecx + 1]
cmp edx, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov word [eax + ecx], 0x2d
jmp 0x405ca0
push 0x2d
mov byte [ebp - 0x48], 0
push dword [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004033c0
mov ecx, dword [edi]
lea eax, [ecx + 1]
mov dword [edi], eax
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x405cb1
mov eax, dword [esi]
mov bl, byte [eax + ecx]
mov byte [ebp - 0x60], bl
lea eax, [ebx - 0x30]
cmp al, 9
ja 0x405ce7
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
cmp ecx, edx
jae 0x405ce2
lea eax, [ecx + 1]
cmp edx, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov byte [eax + ecx], bl
mov byte [eax + ecx + 1], 0
jmp 0x405ca0
push dword [ebp - 0x60]
jmp 0x405c90
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
add esp, 4
test eax, eax
jne 0x405db0
cmp bl, 0x2c
je 0x405db0
cmp bl, 0x5d
je 0x405db0
cmp bl, 0x7d
je 0x405db0
movaps xmm0, xmmword [0x46e930]
xor ecx, ecx
movups xmmword [ebp - 0xb8], xmm0
mov dword [ebp - 0x88], 0x465d474e
movaps xmm0, xmmword [0x46f7a0]
movups xmmword [ebp - 0xa8], xmm0
mov dword [ebp - 0x84], 0xf084c
movaps xmm0, xmmword [0x46e920]
movups xmmword [ebp - 0x98], xmm0
nop word [eax + eax]
mov al, byte [ebp - 0xb8]
xor byte [ebp + ecx - 0xb7], al
inc ecx
cmp ecx, 0x36
jb 0x405d60
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea edx, [ebp - 0xb7]
mov byte [ebp - 0x81], 0
call fcn.00402d70
mov dl, bl
mov ecx, eax
call fcn.00402fb0
mov edx, 0x46e064
mov ecx, eax
call fcn.00402d70
mov byte [ebp - 4], 3
mov dword [ebp - 0x80], 2
jmp 0x405b5b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [ebp - 0x18], 0x10
lea esi, [ebp - 0x2c]
mov ebx, eax
lea eax, [ebp - 0x48]
cmovae esi, dword [ebp - 0x2c]
push 0xa
push eax
push esi
mov dword [ebx], 0
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
add esp, 0xc
mov dword [ebp - 0x64], eax
cmp esi, dword [ebp - 0x48]
jne 0x405dec
push str.invalid_stol_argument
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const__]
cmp dword [ebx], 0x22
jne 0x405dfc
push str.stol_argument_out_of_range
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const__]
dec dword [edi]
cmp byte [ebp - 0x49], 0
je 0x405e97
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [ebp - 0x30], 0x10
lea esi, [ebp - 0x44]
mov edi, eax
lea eax, [ebp - 0x48]
cmovae esi, dword [ebp - 0x44]
push eax
push esi
mov dword [edi], 0
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtod]
add esp, 8
fstp qword [ebp - 0xc4]
cmp esi, dword [ebp - 0x48]
jne 0x405e45
push str.invalid_stod_argument
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const__]
cmp dword [edi], 0x22
jne 0x405e55
push str.stod_argument_out_of_range
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const__]
movd xmm1, dword [ebp - 0x64]
movsd xmm0, qword [0x46e4c8]
cvtdq2pd xmm1, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_pow_precise
lea ecx, [ebp - 0x7c]
movsd qword [ebp - 0x54], xmm0
call fcn.004043a0
movsd xmm0, qword [ebp - 0x54]
mov ecx, 4
mulsd xmm0, qword [ebp - 0xc4]
movsd qword [ebp - 0x7c], xmm0
mov edi, dword [ebp - 0x7c]
jmp 0x405f83
cmp dword [ebp - 0x1c], 0
je 0x405f2b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [ebp - 0x30], 0x10
lea esi, [ebp - 0x44]
mov edi, eax
lea eax, [ebp - 0x48]
cmovae esi, dword [ebp - 0x44]
push 0xa
push eax
push esi
mov dword [edi], 0
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
add esp, 0xc
mov ebx, eax
cmp esi, dword [ebp - 0x48]
jne 0x405edc
push str.invalid_stol_argument
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const__]
cmp dword [edi], 0x22
jne 0x405eec
push str.stol_argument_out_of_range
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const__]
movd xmm1, dword [ebp - 0x64]
movsd xmm0, qword [0x46e4c8]
cvtdq2pd xmm1, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_pow_precise
lea ecx, [ebp - 0x7c]
movsd qword [ebp - 0x54], xmm0
call fcn.004043a0
movd xmm1, ebx
mov ecx, 4
cvtdq2pd xmm1, xmm1
mulsd xmm1, qword [ebp - 0x54]
movsd qword [ebp - 0x7c], xmm1
mov edi, dword [ebp - 0x7c]
jmp 0x405f83
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [ebp - 0x30], 0x10
lea esi, [ebp - 0x44]
mov ebx, eax
lea eax, [ebp - 0x48]
cmovae esi, dword [ebp - 0x44]
push 0xa
push eax
push esi
mov dword [ebx], 0
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
add esp, 0xc
mov edi, eax
cmp esi, dword [ebp - 0x48]
jne 0x405f66
push str.invalid_stol_argument
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const__]
cmp dword [ebx], 0x22
jne 0x405f76
push str.stol_argument_out_of_range
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const__]
lea ecx, [ebp - 0x7c]
call fcn.004043a0
mov ecx, 5
mov esi, dword [ebp - 0x68]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x74], 0
mov dword [esi], edi
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [ebp - 0x7c], 0
cmp edx, 0x10
jb 0x405fcf
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405fc5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406013
push edx
push ecx
call fcn.00466a5c
add esp, 8
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp edx, 0x10
jb 0x405c17
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405c0d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x405c0d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3