Function at 0x405b30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48059e
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x7a9080]
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 [0x4a2da0]
lea ecx, [ebp - 0x114]
movups xmmword [ebp - 0x23c], xmm0
lea edx, [ecx + 1]
mov word [ebp - 0x20c], 0x100
movaps xmm0, xmmword [0x4a2e00]
movups xmmword [ebp - 0x22c], xmm0
mov dword [ebp - 0x1dc], 0
movaps xmm0, xmmword [0x4a2e30]
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 0x405be3
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x1ec]
call fcn.00408700
push 0x14
push str.certutil__hashfile__
push 0
lea ecx, [ebp - 0x1ec]
mov dword [ebp - 4], 0
call fcn.0040a990
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 0x405c68
xor ecx, ecx
lea eax, [ecx + 0x65]
xor byte [ebp + ecx - 0x23c], al
inc ecx
cmp ecx, 0x30
jb 0x405c51
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.00408100
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.0040a990
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 0x405d3a
mov edx, dword [ebp - 0x208]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405d30
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x405d30
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00435aee
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 0x4a1c84
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 0x405f07
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 0x405e12
lea eax, [ebp - 0x19c]
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405de0
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 0x405dd0
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 0x405e5d
mov edx, dword [ebp - 0x1b8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405e53
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405eda
push ecx
push edx
call fcn.00435aee
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 0x405eae
mov edx, dword [ebp - 0x1d4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405ea4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405eda
push ecx
push edx
call fcn.00435aee
add esp, 8
mov ecx, dword [ebp - 0x1d8]
cmp ecx, 0x10
jb 0x405eea
mov edx, dword [ebp - 0x1ec]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405ee0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x405ee0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00435aee
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.004365e1
mov esp, ebp
pop ebp
ret
push str.popen___failed_
lea ecx, [ebp - 0x1fc]
call fcn.00401600
push 0x4a7d7c
lea eax, [ebp - 0x1fc]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3