Function at 0x4012f0
Capabilities:
Copy file
Execute command
Hide graphical window
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402f16
mov eax, dword fs:[0]
push eax
mov eax, 0x1c50
call fcn.00402eb0
mov eax, dword [0x405008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c40], 0
mov dword [ebp - 0x1c30], 0
mov dword [ebp - 0x1c2c], 0xf
mov byte [ebp - 0x1c40], 0
cmp dword [ebp + 8], 1
mov dword [ebp - 4], 0
jle 0x401471
push dword [eax + 4]
lea ecx, [ebp - 0x1c40]
call fcn.00401be0
mov ecx, dword [ebp - 0x1c2c]
lea eax, [ebp - 0x1c40]
mov edx, dword [ebp - 0x1c40]
lea edi, [ebp - 0x1c40]
mov ebx, dword [ebp - 0x1c30]
lea esi, [ebp - 0x1c40]
cmp ecx, 0x10
cmovae eax, edx
cmovae edi, edx
add ebx, eax
cmp ecx, 0x10
cmovae esi, edx
cmp esi, ebx
je 0x4013c5
sub edi, esi
movsx eax, byte [esi]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov byte [edi + esi], al
add esp, 4
inc esi
cmp esi, ebx
jne 0x4013a4
mov ecx, dword [ebp - 0x1c2c]
mov edx, dword [ebp - 0x1c40]
mov eax, dword [ebp - 0x1c30]
lea ebx, [ebp - 0x1c40]
cmp ecx, 0x10
cmovae ebx, edx
cmp eax, 6
jb 0x401471
add eax, 0xfffffffb
add eax, ebx
sub eax, ebx
push eax
push 0x73
push ebx
call sub.VCRUNTIME140.dll_memchr
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x401471
nop dword [eax]
mov edx, ecx
mov esi, str.silent
mov edi, 2
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x40141d
add edx, 4
mov edi, 0xfffffffe
add esi, 4
mov al, byte [edx]
cmp al, byte [esi]
jne 0x401444
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x401444
cmp edi, 0xfffffffe
je 0x401440
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x401444
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
jne 0x401444
xor eax, eax
jmp 0x401449
sbb eax, eax
or eax, 1
test eax, eax
je 0x401575
mov eax, dword [ebp - 0x1c30]
inc ecx
add eax, 0xfffffffb
add eax, ebx
sub eax, ecx
push eax
push 0x73
push ecx
call sub.VCRUNTIME140.dll_memchr
mov ecx, eax
add esp, 0xc
test ecx, ecx
jne 0x401400
mov byte [ebp - 0x1c41], 1
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Procurando_por_alguma_instalacao_do_Excel_e_identificando_se_e_32_bit_ou_64_bit.
push 0x401fb0
call fcn.00401d70
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0x400
lea eax, [ebp - 0x428]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov dword [ebp - 0x1c58], 0
mov dword [ebp - 0x1c54], 0
mov dword [ebp - 0x1c50], 0
add esp, 8
mov byte [ebp - 4], 1
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Pathsexcel.exe
push ecx
lea ecx, [ebp - 0x1c58]
call fcn.004010c0
test eax, eax
je 0x40159b
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x40338c
push 0x401fb0
push eax
call fcn.00401d70
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int_]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov eax, dword [ebp - 0x1c58]
test eax, eax
je 0x40151d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x1c2c]
cmp edx, 0x10
jb 0x401557
mov ecx, dword [ebp - 0x1c40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40154d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401737
push edx
push ecx
call fcn.00402519
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040208d
mov esp, ebp
pop ebp
ret
sub ecx, ebx
cmp ecx, 0xffffffff
je 0x401471
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [ebp - 0x1c41], 0
jmp 0x401478
mov esi, dword [ebp - 0x1c58]
lea eax, [ebp - 0x1c48]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0x428]
mov dword [ebp - 0x1c48], 0x400
push eax
lea eax, [ebp - 0x1c4c]
push eax
push 0
push str.Path
push esi
call ebx
test eax, eax
jne 0x4015fd
mov eax, dword [ebp - 0x1c4c]
cmp eax, 1
je 0x4015e4
cmp eax, 2
jne 0x4015f8
mov eax, dword [ebp - 0x1c48]
test eax, eax
je 0x401631
cmp byte [ebp + eax - 0x429], 0
je 0x401638
mov eax, 0xd
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Falha_ao_procurar_caminho_do_Excel.__d
push 0x401fb0
push eax
call fcn.00401d70
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int_]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
test esi, esi
je 0x40151d
push esi
jmp 0x401517
mov byte [ebp - 0x428], 0
lea ecx, [ebp - 0x428]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401641
sub ecx, edx
je 0x401672
cmp byte [ebp + ecx - 0x429], 0x5c
je 0x401672
mov byte [ebp + ecx - 0x428], 0x5c
inc ecx
cmp ecx, 0x400
jae 0x401b19
mov byte [ebp + ecx - 0x428], al
mov byte [ebp - 4], 0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x401683
push esi
call edi
push 0x400
lea eax, [ebp - 0x1c28]
mov dword [ebp - 0x1c5c], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x1c28]
push str._sExcel.exe
push eax
call fcn.00401030
add esp, 0x18
lea eax, [ebp - 0x1c5c]
push eax
lea eax, [ebp - 0x1c28]
push eax
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
test eax, eax
jne 0x40173d
push 0x401fb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Falha_ao_detectar_tipo_binario_do_Excel.__d
push eax
call fcn.00401d70
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov edx, dword [ebp - 0x1c2c]
cmp edx, 0x10
jb 0x401557
mov ecx, dword [ebp - 0x1c40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40154d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40154d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push 0x400
lea eax, [ebp - 0x828]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov dword [ebp - 0x1c58], 0
mov dword [ebp - 0x1c54], 0
mov dword [ebp - 0x1c50], 0
add esp, 8
mov byte [ebp - 4], 2
push str.SOFTWAREWK_SistemasRadar_Empresarial
push ecx
lea ecx, [ebp - 0x1c58]
call fcn.004010c0
test eax, eax
je 0x4017c6
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Falha_ao_localizar_chave_Radar_Empresarial_no_registry.__d
push 0x401fb0
push eax
call fcn.00401d70
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int_]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov eax, dword [ebp - 0x1c58]
test eax, eax
je 0x40151d
push eax
call edi
jmp 0x40151d
cmp dword [ebp - 0x1c5c], 6
lea eax, [ebp - 0x1c48]
mov esi, dword [ebp - 0x1c58]
push eax
lea eax, [ebp - 0x828]
mov dword [ebp - 0x1c48], 0x400
push eax
lea eax, [ebp - 0x1c4c]
push eax
push 0
jne 0x401861
push str.Path_x64
push esi
call ebx
test eax, eax
jne 0x40182b
mov eax, dword [ebp - 0x1c4c]
cmp eax, 1
je 0x401812
cmp eax, 2
jne 0x401826
mov eax, dword [ebp - 0x1c48]
test eax, eax
je 0x401868
cmp byte [ebp + eax - 0x829], 0
je 0x40186f
mov eax, 0xd
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Falha_ao_ler_chave_Path_x64_no_registry.__d
push 0x401fb0
push eax
call fcn.00401d70
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int_]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
test esi, esi
je 0x40151d
push esi
call edi
jmp 0x40151d
push str.Path
jmp 0x4017fb
mov byte [ebp - 0x828], 0
mov byte [ebp - 4], 0
test esi, esi
je 0x40187a
push esi
call edi
mov ax, word [0x4034c4]
movq xmm0, qword [str.cnger.dll]
mov word [ebp - 0x14], ax
mov eax, dword [0x4034d0]
push 0x800
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1028]
movq qword [ebp - 0x1c], xmm0
movq xmm0, qword [str.EXExcel.dll]
push 0
push eax
movq qword [ebp - 0x28], xmm0
call sub.VCRUNTIME140.dll_memset
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
lea eax, [ebp - 0x828]
push 0x400
push eax
lea eax, [ebp - 0x1028]
push eax
call esi
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
lea eax, [ebp - 0x1c]
push 0xa
push eax
lea eax, [ebp - 0x1028]
push eax
call edi
push 0x800
lea eax, [ebp - 0x1828]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x400
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x1828]
push eax
call esi
push 0xa
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x1828]
push eax
call edi
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea edx, [ebp - 0x1028]
add esp, 0x48
push 0x401fb0
call fcn.00401d70
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea edx, [ebp - 0x1828]
push 0x401fb0
call fcn.00401d70
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0x1828]
push 0
push eax
lea eax, [ebp - 0x1028]
push eax
call ebx
test eax, eax
jne 0x4019ca
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Falha_ao_efetuar_copia.__
push 0x401fb0
call fcn.00401d70
lea edx, [ebp - 0x1028]
mov ecx, eax
call fcn.00401d70
mov edx, str._____
mov ecx, eax
call fcn.00401d70
lea edx, [ebp - 0x1828]
mov ecx, eax
call fcn.00401d70
mov edx, 0x4034d4
mov ecx, eax
call fcn.00401d70
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0x800
lea eax, [ebp - 0x1028]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x800
lea eax, [ebp - 0x1828]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x400
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x1028]
push eax
call esi
push 0xc
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1028]
push eax
call edi
push 0x400
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x1828]
push eax
call esi
push 0xc
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1828]
push eax
call edi
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea edx, [ebp - 0x1028]
add esp, 0x48
push 0x401fb0
call fcn.00401d70
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea edx, [ebp - 0x1828]
push 0x401fb0
call fcn.00401d70
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0
lea eax, [ebp - 0x1828]
push eax
lea eax, [ebp - 0x1028]
push eax
call ebx
test eax, eax
jne 0x401adc
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Falha_ao_efetuar_copia.__
push 0x401fb0
call fcn.00401d70
lea edx, [ebp - 0x1028]
mov ecx, eax
call fcn.00401d70
mov edx, str._____
mov ecx, eax
call fcn.00401d70
lea edx, [ebp - 0x1828]
mov ecx, eax
call fcn.00401d70
mov edx, 0x4034d4
mov ecx, eax
call fcn.00401d70
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Operacao_realizada_com_sucesso
push 0x401fb0
call fcn.00401d70
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
cmp byte [ebp - 0x1c41], 0
je 0x4016ff
push str.pause
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
jmp 0x4016ff
call fcn.004021bd
int3