Function at 0x406020
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46866e
mov eax, dword fs:[0]
push eax
sub esp, 0x70
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 esi, edx
mov edi, ecx
mov dword [ebp - 0x44], edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebx]
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp eax, ecx
jb 0x406329
sub eax, ecx
mov edx, 4
cmp eax, edx
cmovb edx, eax
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x4060a6
mov eax, dword [esi]
add eax, ecx
lea ecx, [ebp - 0x2c]
push edx
push eax
call fcn.00402bd0
mov edx, str.true
lea ecx, [ebp - 0x2c]
call fcn.004031d0
mov edx, dword [ebp - 0x18]
mov byte [ebp - 0x11], al
cmp edx, 0x10
jb 0x4060f9
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4060ec
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406183
push edx
push ecx
call fcn.00466a5c
mov al, byte [ebp - 0x11]
add esp, 8
test al, al
je 0x40610c
lea ecx, [ebp - 0x3c]
call fcn.004043a0
mov cl, 1
jmp 0x4061a4
mov ecx, dword [ebx]
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp eax, ecx
jb 0x406329
sub eax, ecx
mov edx, 5
cmp eax, edx
cmovb edx, eax
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x406141
mov eax, dword [esi]
add eax, ecx
lea ecx, [ebp - 0x2c]
push edx
push eax
call fcn.00402bd0
mov edx, str.false
lea ecx, [ebp - 0x2c]
call fcn.004031d0
mov edx, dword [ebp - 0x18]
mov byte [ebp - 0x11], al
cmp edx, 0x10
jb 0x406196
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406189
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406189
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
test al, al
je 0x4061d8
lea ecx, [ebp - 0x3c]
call fcn.004043a0
xor cl, cl
mov edx, dword [ebp - 0x38]
xor eax, eax
test cl, cl
mov byte [ebp - 0x3c], cl
mov ecx, dword [ebp - 0x3c]
sete al
mov dword [ebp - 0x34], 0
add eax, 4
mov dword [ebp - 0x3c], 0
add dword [ebx], eax
mov dword [edi], ecx
mov dword [edi + 4], edx
mov dword [edi + 8], 6
jmp 0x40630d
mov ecx, dword [ebx]
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp eax, ecx
jb 0x406329
sub eax, ecx
mov edx, 5
cmp eax, 5
cmovb edx, eax
cmp dword [esi + 0x14], 0x10
jb 0x40620c
mov esi, dword [esi]
lea eax, [esi + ecx]
push edx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402bd0
mov byte [ebp - 4], 5
xor ecx, ecx
movaps xmm0, xmmword [0x46f900]
movups xmmword [ebp - 0x78], xmm0
mov word [ebp - 0x48], 0xa
movaps xmm0, xmmword [0x46fa40]
movups xmmword [ebp - 0x68], xmm0
movaps xmm0, xmmword [0x46e9c0]
movups xmmword [ebp - 0x58], xmm0
mov al, byte [ebp - 0x78]
xor byte [ebp + ecx - 0x77], al
inc ecx
cmp ecx, 0x30
jb 0x406246
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea edx, [ebp - 0x77]
mov byte [ebp - 0x47], 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 0x4062c3
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4062b9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4062b9
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], 6
lea ecx, [ebp - 0x24]
push 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x40], 0x1e
call fcn.00404a40
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov dword [edi], eax
mov eax, dword [ebp - 0x1c]
mov dword [edi + 4], ecx
lea ecx, [ebp - 0x24]
mov dword [edi + 8], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0
call fcn.004043a0
lea ecx, [ebp - 0x3c]
call fcn.004043a0
mov eax, edi
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
int3