Function at 0x405dd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x467e1e
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x7b2d00]
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 [0x4ae250]
lea ecx, [ebp - 0x114]
movups xmmword [ebp - 0x23c], xmm0
lea edx, [ecx + 1]
mov word [ebp - 0x20c], 0x100
movaps xmm0, xmmword [0x4ae2b0]
movups xmmword [ebp - 0x22c], xmm0
mov dword [ebp - 0x1dc], 0
movaps xmm0, xmmword [0x4ae2e0]
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 0x405e83
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x1ec]
call fcn.00408900
push 0x14
push str.certutil__hashfile__
push 0
lea ecx, [ebp - 0x1ec]
mov dword [ebp - 4], 0
call fcn.0040abf0
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 0x405f08
xor ecx, ecx
lea eax, [ecx + 0x65]
xor byte [ebp + ecx - 0x23c], al
inc ecx
cmp ecx, 0x30
jb 0x405ef1
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.00408330
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.0040abf0
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 0x405fda
mov edx, dword [ebp - 0x208]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405fd0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x405fd0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0041d132
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 0x4ad144
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 0x4061a7
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 0x4060b2
lea eax, [ebp - 0x19c]
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406080
sub eax, edx
mov ecx, esi
push eax
lea eax, [ebp - 0x19c]
push eax
call fcn.00407e70
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 0x406070
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 0x4060fd
mov edx, dword [ebp - 0x1b8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4060f3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40617a
push ecx
push edx
call fcn.0041d132
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 0x40614e
mov edx, dword [ebp - 0x1d4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406144
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40617a
push ecx
push edx
call fcn.0041d132
add esp, 8
mov ecx, dword [ebp - 0x1d8]
cmp ecx, 0x10
jb 0x40618a
mov edx, dword [ebp - 0x1ec]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406180
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406180
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0041d132
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.0041cef6
mov esp, ebp
pop ebp
ret
push str.popen___failed_
lea ecx, [ebp - 0x1fc]
call fcn.00401550
push 0x4b1314
lea eax, [ebp - 0x1fc]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3