Function at 0x43c950
Capabilities:
Accept command line arguments
Delete file
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x1a8
mov eax, dword [0x4fe040]
xor eax, esp
mov dword [esp + 0x1a4], eax
push esi
push edi
push 0
mov dword [esp + 0x24], 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
add esp, 4
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [esp + 0x2c], 1
mov dword [esp + 0x10], eax
jle 0x43c9f5
push dword [eax + 4]
lea ecx, [esp + 0x34]
call fcn.004348c0
mov edi, eax
cmp dword [edi + 0x14], 7
mov esi, dword [edi + 0x10]
jbe 0x43c9bf
mov edi, dword [edi]
cmp esi, 0xb
jne 0x43c9ee
mov edx, str.__restarted
sub edi, edx
nop dword [eax + eax]
movzx ecx, word [edx + edi]
movzx eax, word [edx]
cmp cx, ax
jne 0x43c9ee
add edx, 2
sub esi, 1
jne 0x43c9d0
mov byte [esp + 0xf], 1
lea eax, [esi + 1]
jmp 0x43c9fe
mov eax, 1
jmp 0x43c9f9
mov eax, dword [esp + 0x20]
mov byte [esp + 0xf], 0
test al, 1
je 0x43ca40
mov ecx, dword [esp + 0x44]
cmp ecx, 7
jbe 0x43ca40
mov edx, dword [esp + 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x43ca36
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x43ca36
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0043e915
add esp, 8
cmp byte [esp + 0xf], 0
je 0x43caff
cmp dword [esp + 0x2c], 3
jne 0x43caff
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x30]
push dword [edi + 8]
call fcn.004348c0
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x44], 7
lea eax, [esp + 0x30]
cmova eax, dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x43cab8
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Falha_ao_excluir_o_executvel_antigo:
call fcn.0043d8c0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
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_]
push 0x439580
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 [esp + 0x44]
cmp ecx, 7
jbe 0x43cd2c
mov edx, dword [esp + 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x43caf0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x43caf0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0043e915
add esp, 8
jmp 0x43cd2c
push 0x104
lea eax, [esp + 0xa4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xorps xmm0, xmm0
mov dword [esp + 0x40], 0
lea ecx, [esp + 0xa0]
movaps xmmword [esp + 0x30], xmm0
mov dword [esp + 0x44], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43cb36
sub ecx, edx
lea eax, [esp + 0xa0]
push ecx
push eax
lea ecx, [esp + 0x38]
call fcn.00435a80
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.RPCRT4.dll_UuidCreate]
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
lea eax, [esp + 0x94]
push eax
call dword [sym.imp.RPCRT4.dll_UuidToStringA]
mov edx, dword [esp + 0x20]
xorps xmm0, xmm0
mov ecx, edx
movaps xmmword [esp + 0x50], xmm0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
lea esi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43cba0
sub ecx, esi
push ecx
push edx
lea ecx, [esp + 0x58]
call fcn.00435a80
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeA]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Generated_Unique_Identifier:
call fcn.0043d8c0
cmp dword [esp + 0x64], 0xf
lea edx, [esp + 0x50]
push dword [esp + 0x60]
cmova edx, dword [esp + 0x54]
mov ecx, eax
call fcn.00439cb0
add esp, 4
mov ecx, eax
push 0x439580
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_____]
xorps xmm0, xmm0
mov dword [esp + 0x80], 0
lea eax, [esp + 0x70]
movaps xmmword [esp + 0x70], xmm0
push eax
lea edx, [esp + 0x54]
mov dword [esp + 0x88], 0xf
lea ecx, [esp + 0x34]
mov byte [esp + 0x74], 0
call fcn.0043bfd0
add esp, 4
test al, al
jne 0x43d24b
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Failed_to_modify_executable
call fcn.0043d8c0
push 0x439580
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 [esp + 0x84]
cmp ecx, 0xf
jbe 0x43cc8e
mov edx, dword [esp + 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x43cc84
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43cd18
push ecx
push edx
call fcn.0043e915
add esp, 8
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0xf
mov byte [esp + 0x70], 0
cmp ecx, 0xf
jbe 0x43ccdb
mov edx, dword [esp + 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x43ccd1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43cd18
push ecx
push edx
call fcn.0043e915
add esp, 8
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0xf
mov byte [esp + 0x50], 0
cmp ecx, 0xf
jbe 0x43cd28
mov edx, dword [esp + 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x43cd1e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x43cd1e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0043e915
add esp, 8
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Executable_restarted._No_further_modifications_will_be_made.
call fcn.0043d8c0
push 0x439580
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_____]
call fcn.0043b4f0
call fcn.0043b800
push 0
mov dword [0x4febbc], 0x30
mov dword [0x4febc0], 0x40
mov dword [0x4febc4], 0x435d60
mov dword [0x4febc8], 0
mov dword [0x4febcc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xorps xmm0, xmm0
mov dword [0x4febd0], eax
push 0x4febbc
movups xmmword [0x4febd4], xmm0
mov dword [0x4febe4], 0x4f8f68
mov dword [0x4febe8], 0
call dword [sym.imp.USER32.dll_RegisterClassExA]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
push 1
mov edi, eax
call esi
push 0
push dword [0x4febd0]
add eax, 0xffffff10
push 0
push 0
cdq
push 0xf0
sub eax, edx
push 0x190
sar eax, 1
push eax
lea eax, [edi - 0x190]
cdq
sub eax, edx
sar eax, 1
push eax
push accept
push str.baston.dev
push str.potato
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0xa
push eax
mov dword [0x4febb4], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x4febb4]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x20
call dword [sym.imp.d3d9.dll_Direct3DCreate9]
mov ecx, eax
mov dword [0x4febb0], ecx
test ecx, ecx
je 0x43cecf
push 0x4febb8
push 0x4fec70
push 0x40
push dword [0x4febb4]
xorps xmm0, xmm0
mov dword [0x4fec84], 0
push 1
movlpd qword [0x4fec70], xmm0
movlpd qword [0x4fec7c], xmm0
mov dword [0x4fec8c], 0
movlpd qword [0x4fec9c], xmm0
mov dword [0x4fec90], 1
mov dword [0x4fec88], 1
mov dword [0x4fec78], 0
mov dword [0x4fec94], 1
mov dword [0x4fec98], 0x50
mov dword [0x4feca4], 1
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x40]
call fcn.00435f90
cmp byte [0x4fe268], 0
je 0x43d0a0
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
nop dword [eax]
push 1
push 0
push 0
push 0
lea eax, [esp + 0x40]
push eax
call esi
test eax, eax
je 0x43cf28
lea eax, [esp + 0x30]
push eax
call edi
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
push 0
lea eax, [esp + 0x40]
push eax
call esi
test eax, eax
jne 0x43cf03
mov eax, dword [0x4feb00]
test eax, eax
je 0x43cf36
mov ecx, dword [eax + 0x78]
jmp 0x43cf38
xor ecx, ecx
cmp dword [ecx + 0xc], 0
jne 0x43cf53
test eax, eax
je 0x43cf53
mov eax, dword [eax + 0x78]
test eax, eax
je 0x43cf53
cmp dword [eax], 0
je 0x43cf53
call fcn.00428260
call fcn.00428c10
call fcn.00407780
call fcn.00437640
call fcn.0040a150
mov eax, dword [0x4febb8]
push 0
push 7
push eax
mov ecx, dword [eax]
call dword [ecx + 0xe4]
mov eax, dword [0x4febb8]
push 0
push 0x1b
push eax
mov ecx, dword [eax]
call dword [ecx + 0xe4]
mov eax, dword [0x4febb8]
push 0
push 0xae
push eax
mov ecx, dword [eax]
call dword [ecx + 0xe4]
mov eax, dword [0x4febb8]
push 0
mov ecx, dword [eax]
push ecx
mov dword [esp], 0x3f800000
push 0xff000000
push 3
push 0
push 0
push eax
call dword [ecx + 0xac]
mov eax, dword [0x4febb8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa4]
test eax, eax
js 0x43d004
call fcn.0040a490
mov eax, dword [0x4feb00]
xor ecx, ecx
mov eax, dword [eax + 0x3fd8]
mov eax, dword [eax]
add eax, 0x38
cmp byte [eax], cl
cmovne ecx, eax
call fcn.00427d40
mov eax, dword [0x4febb8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa8]
mov ecx, dword [0x4febb8]
push 0
push 0
push 0
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x44]
cmp eax, 0x88760868
jne 0x43d036
mov eax, dword [0x4febb8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
cmp eax, 0x88760869
jne 0x43d036
call fcn.00435f00
lea ecx, [esp + 0x20]
call fcn.00435c10
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
cmp ecx, 0xfe363c7f
jne 0x43d056
cmp eax, 0x7fffffff
je 0x43d07a
cmp eax, 0x7fffffff
jg 0x43d07a
jl 0x43d067
cmp ecx, 0xfe363c7f
jae 0x43d07a
add ecx, 0x1c9c380
mov dword [esp + 0x10], ecx
adc eax, 0
mov dword [esp + 0x14], eax
jmp 0x43d08a
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], accept
lea ecx, [esp + 0x10]
call fcn.00439bb0
cmp byte [0x4fe268], 0
jne 0x43cef0
mov ecx, dword [0x4feb00]
test ecx, ecx
je 0x43d0af
mov edi, dword [ecx + 0x78]
jmp 0x43d0b1
xor edi, edi
lea esi, [ecx + 8]
mov dword [esp + 0x20], esi
test ecx, ecx
je 0x43d124
mov esi, dword [ecx + 0x78]
test esi, esi
je 0x43d120
cmp dword [esi], 0
je 0x43d120
mov edx, dword [esi + 4]
test edx, edx
je 0x43d0e2
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov ecx, dword [0x4feb00]
mov dword [esi + 4], 0
mov edx, dword [esi + 8]
test edx, edx
je 0x43d0fc
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov ecx, dword [0x4feb00]
mov dword [esi + 8], 0
mov edx, dword [esi + 0xc]
test edx, edx
je 0x43d120
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov ecx, dword [0x4feb00]
mov dword [esi + 0xc], 0
mov eax, dword [ecx + 0x48]
mov dword [eax + 4], 0
mov esi, dword [esp + 0x20]
mov edx, dword [edi]
test edx, edx
je 0x43d136
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov ecx, dword [0x4feb00]
mov dword [esi + 0x68], 0
mov dword [esi + 0x70], 0
test ecx, ecx
je 0x43d14e
dec dword [ecx + 0xb0]
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call edi
mov eax, dword [0x4feb00]
add esp, 4
test eax, eax
je 0x43d168
mov esi, dword [eax + 0x74]
jmp 0x43d16a
xor esi, esi
mov edx, dword [esi + 0x28]
lea ecx, [eax + 8]
mov dword [esp + 0x10], ecx
test edx, edx
je 0x43d188
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x4feb00]
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x64], 0
mov dword [ecx + 0x6c], 0
test eax, eax
je 0x43d1a0
dec dword [eax + 0xb0]
push esi
call edi
mov esi, dword [0x4feb00]
add esp, 4
mov dword [0x4feb00], esi
call fcn.00408ea0
mov dword [0x4feb00], 0
test esi, esi
je 0x43d1e1
mov ecx, esi
call fcn.004183e0
mov eax, dword [0x4feb00]
test eax, eax
je 0x43d1db
dec dword [eax + 0xb0]
push esi
call edi
add esp, 4
mov ecx, dword [0x4febb8]
test ecx, ecx
je 0x43d1fb
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x4febb8], 0
mov ecx, dword [0x4febb0]
test ecx, ecx
je 0x43d215
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x4febb0], 0
push dword [0x4febb4]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [0x4febd0]
push dword [0x4febe4]
call dword [sym.imp.USER32.dll_UnregisterClassA]
mov ecx, dword [esp + 0x1ac]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.0043e7f2
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Executable_modified_successfully:
call fcn.0043d8c0
lea edx, [esp + 0x70]
mov ecx, eax
call fcn.00439560
push 0x439580
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_____]
lea eax, [esp + 0x10]
push eax
call fcn.0043bf50
add esp, 4
lea edx, [esp + 0x90]
lea ecx, [esp + 0x70]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x90], xmm0
call fcn.0043c6d0
lea edx, [esp + 0x30]
lea ecx, [esp + 0x70]
call fcn.0043c7b0
int3