Function at 0x405ca0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46567e
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x47e048]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x118], esi
push 0x104
lea eax, [ebp - 0x114]
mov dword [ebp - 0x1f0], esi
push eax
push 0
mov dword [ebp - 0x1bc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
movaps xmm0, xmmword [0x4778e0]
lea ecx, [ebp - 0x114]
movups xmmword [ebp - 0x23c], xmm0
lea edx, [ecx + 1]
mov word [ebp - 0x20c], 0x100
movaps xmm0, xmmword [0x477940]
movups xmmword [ebp - 0x22c], xmm0
mov dword [ebp - 0x1dc], 0
movaps xmm0, xmmword [0x477970]
movups xmmword [ebp - 0x21c], xmm0
mov dword [ebp - 0x1d8], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x1ec], xmm0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405d53
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x1ec]
call fcn.00408640
push 0x14
push str.certutil__hashfile__
push 0
lea ecx, [ebp - 0x1ec]
mov dword [ebp - 4], 0
call fcn.0040a8c0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x1d4], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1c4], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 1
cmp byte [ebp - 0x20b], 0
je 0x405dd8
xor ecx, ecx
lea eax, [ecx + 0x65]
xor byte [ebp + ecx - 0x23c], al
inc ecx
cmp ecx, 0x30
jb 0x405dc1
mov byte [ebp - 0x20b], 0
lea eax, [ebp - 0x19d]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x208]
call fcn.00408070
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1d4]
cmp dword [ebp - 0x1c0], 0x10
lea ecx, [ebp - 0x208]
push dword [ebp - 0x1c4]
cmovae eax, dword [ebp - 0x1d4]
push eax
push 0
call fcn.0040a8c0
mov dword [ebp - 0x1a8], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x1b8], xmm0
mov dword [ebp - 0x1a4], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x1b8], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1a8], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1f4]
cmp ecx, 0x10
jb 0x405eaa
mov edx, dword [ebp - 0x208]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405ea0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x405ea0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0041abdb
add esp, 8
cmp dword [ebp - 0x1a4], 0x10
lea eax, [ebp - 0x1b8]
cmovae eax, dword [ebp - 0x1b8]
xorps xmm0, xmm0
mov dword [ebp - 0x1bc], 0x3e
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
push 0x4767ec
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
push eax
mov byte [esi], 0
movlpd qword [ebp - 0x11c], xmm0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__popen]
mov edi, eax
add esp, 8
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__pclose]
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x118], edi
mov dword [ebp - 4], 5
test edi, edi
je 0x406077
push edi
lea eax, [ebp - 0x19c]
push 0x80
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
add esp, 0xc
test eax, eax
je 0x405f82
lea eax, [ebp - 0x19c]
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405f50
sub eax, edx
mov ecx, esi
push eax
lea eax, [ebp - 0x19c]
push eax
call fcn.00407bf0
push edi
lea eax, [ebp - 0x19c]
push 0x80
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
add esp, 0xc
test eax, eax
jne 0x405f40
push edi
mov dword [ebp - 4], 6
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__pclose]
mov ecx, dword [ebp - 0x1a4]
add esp, 4
cmp ecx, 0x10
jb 0x405fcd
mov edx, dword [ebp - 0x1b8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405fc3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40604a
push ecx
push edx
call fcn.0041abdb
add esp, 8
mov ecx, dword [ebp - 0x1c0]
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 0x1a4], 0xf
mov byte [ebp - 0x1b8], 0
cmp ecx, 0x10
jb 0x40601e
mov edx, dword [ebp - 0x1d4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406014
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40604a
push ecx
push edx
call fcn.0041abdb
add esp, 8
mov ecx, dword [ebp - 0x1d8]
cmp ecx, 0x10
jb 0x40605a
mov edx, dword [ebp - 0x1ec]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406050
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406050
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0041abdb
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041abe9
mov esp, ebp
pop ebp
ret
push str.popen___failed_
lea ecx, [ebp - 0x1fc]
call fcn.004013f0
push 0x47a484
lea eax, [ebp - 0x1fc]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3