Function at 0x522000
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60c29b
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x6b000c]
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 ebx, ecx
mov dword [ebp - 0x24c], ebx
cmp dword [0x6b0c54], 4
ja 0x52246b
mov eax, dword [ebx + 0x920]
test eax, eax
je 0x52246b
cmp dword [eax + 4], 0
je 0x52246b
lea ecx, [ebp - 0x290]
call fcn.00465160
mov dword [ebp - 4], 0
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x22c], 0
call fcn.00588800
mov edx, dword [ebx + 0x914]
add esp, 0xc
mov ecx, dword [edx + 0x44]
mov dword [ebp - 0x23c], ecx
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x258], eax
mov eax, dword [edx + 0x34]
mov dword [ebp - 0x254], eax
cmp ecx, 1
jne 0x522114
mov esi, dword [edx + 0x64]
test esi, esi
je 0x522459
push ecx
mov ecx, esi
call fcn.004909c0
cmp ax, 0x7b
jne 0x5220f0
push dword [esi]
lea eax, [ebp - 0x218]
push str._Volume_s
push 0x30
push eax
call fcn.0046d0c0
add esp, 0x10
jmp 0x522157
push ecx
mov ecx, esi
call fcn.004909c0
movzx eax, ax
push eax
push str.._c:
lea eax, [ebp - 0x218]
push 6
push eax
call fcn.0046d0c0
add esp, 0x10
jmp 0x522157
mov ecx, dword [ebx + 0x910]
mov esi, dword [edx + 0x48]
add ecx, 0xa28
je 0x522459
push esi
call fcn.004fbe90
test eax, eax
je 0x522459
push esi
push str..PhysicalDrive_d
lea eax, [ebp - 0x218]
push 0x12
push eax
call fcn.0046d0c0
add esp, 0x10
xor eax, eax
mov word [ebp - 0x1f4], ax
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push dword [ebx + 0x918]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x220], eax
cmp eax, 0xffffffff
je 0x522417
mov edi, dword [ebx + 0x920]
lea ecx, [ebp - 0x21c]
push 0
push ecx
push 9
mov edi, dword [edi]
push str.bst000001
push eax
mov dword [ebp - 0x248], edi
mov esi, dword [edi]
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x21c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x21c]
push eax
push 4
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x21c]
push eax
push 0x208
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x21c]
push eax
push 8
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0xc62
call fcn.005a59ed
mov ecx, dword [ebx + 0x920]
add esp, 4
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x21c]
mov ecx, dword [ecx + 4]
push 0
push eax
push 4
lea eax, [ebp - 0x238]
mov dword [ebp - 0x238], ecx
push eax
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, edi
je 0x5223ce
cmp dword [ebx + 0x908], 0
jne 0x5223ce
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x290]
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x230]
mov word [ebp - 0x278], 0x101
mov dword [ebp - 0x264], 0x13d
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x25c], 0
call fcn.00465510
mov eax, dword [ebp - 0x25c]
push eax
mov dword [ebp - 0x224], eax
call fcn.005a59ed
add esp, 4
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x21c]
push 0
push eax
push 4
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x244], 0
test eax, eax
je 0x522373
mov eax, dword [ebp - 0x230]
mov ebx, dword [ebp - 0x228]
sub eax, ebx
mov esi, dword [ebp - 0x244]
mov edi, eax
mov dword [ebp - 0x240], eax
nop dword [eax]
mov ecx, 0x6b88a0
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x522330
mov eax, dword [ebp - 0x22c]
sub ecx, edx
sar ecx, 1
xor edx, edx
div ecx
mov cl, byte [edi + ebx]
inc esi
xor cl, byte [edx*2 + 0x6b88a0]
mov byte [ebx], cl
inc ebx
mov eax, dword [ebp - 0x224]
cmp esi, eax
jb 0x522320
mov esi, dword [ebp - 0x234]
mov edi, dword [ebp - 0x248]
mov ebx, dword [ebp - 0x24c]
push 0
lea ecx, [ebp - 0x21c]
push ecx
push eax
push dword [ebp - 0x228]
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x228]
call fcn.005a51fb
mov eax, dword [ebp - 0x22c]
add esp, 4
mov esi, dword [esi]
inc eax
mov ecx, ebx
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x234], esi
push dword [ebp - 0x238]
push eax
push 0x40d
call dword [sym.imp.ycomuiu.dll_public:_long_int___thiscall_DuiLib::CWindowWnd::PostMessageW_unsigned_int__unsigned_int__long_int_]
cmp esi, edi
jne 0x522260
mov esi, dword [ebp - 0x220]
lea eax, [ebp - 0x21c]
push 0
push eax
push 8
lea eax, [ebx + 0x928]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x230]
call fcn.005a51fb
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx + 0x908], 1
jne 0x522417
push dword [ebx + 0x918]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0xffffffff
push 1
push dword [ebp - 0x290]
call fcn.005603ff
push 4
push dword [ebp - 0x284]
call fcn.005603ff
push 4
push dword [ebp - 0x280]
call fcn.005603ff
push 4
push dword [ebp - 0x27c]
call fcn.005603ff
add esp, 0x20
mov al, 1
jmp 0x52246d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x290]
call fcn.004651a0
xor al, al
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.0055f9be
mov esp, ebp
pop ebp
ret