Function at 0x40b1c0
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff48
push ebx
xor ecx, ecx
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40b55a
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x56]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0040b154
test al, al
je 0x40b522
mov byte [ebp - 5], 1
lea eax, [ebp - 0x5c]
lea edx, [ebp - 0x52]
call fcn.00404570
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
lea eax, [ebp - 0x1c]
call fcn.00404618
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
lea eax, [ebp - 0x20]
mov ecx, 0x40b570
call fcn.00404618
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0040b628
test al, al
je 0x40b281
mov eax, dword [ebp - 4]
cmp word [eax + 0x32], 0
je 0x40b281
lea eax, [ebp - 5]
push eax
lea ecx, [ebp - 0x56]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0040b678
mov ecx, eax
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebx + 0x34]
call dword [ebx + 0x30]
cmp byte [ebp - 5], 0
je 0x40b405
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0040b044
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40b2c3
lea eax, [ebp - 0x60]
mov ecx, dword [ebp - 0x1c]
mov edx, 0x40b584
call fcn.00404618
mov ecx, dword [ebp - 0x60]
mov dl, 1
mov eax, dword [0x4069e0]
call fcn.00406f20
call fcn.00403cf0
xor eax, eax
push ebp
push 0x40b3fe
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x20]
call fcn.004047c4
push eax
call sub.kernel32.dll_DeleteFileA
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x10]
call fcn.00408060
mov eax, dword [ebp - 0x2c]
call fcn.004026d8
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x40b3e0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
push eax
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x24]
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
push eax
call sub.kernel32.dll_ReadFile_1
mov eax, dword [ebp - 0x18]
xor edx, edx
cmp edx, dword [ebp - 0x28]
jne 0x40b33e
cmp eax, dword [ebp - 0x2c]
je 0x40b384
mov edx, 0x40b5a8
lea eax, [ebp - 0xac]
call fcn.00402e18
lea edx, [ebp - 0x52]
lea eax, [ebp - 0xac]
mov cl, 0x46
call fcn.00402de8
lea edx, [ebp - 0xac]
lea eax, [ebp - 0x64]
call fcn.00404570
mov ecx, dword [ebp - 0x64]
mov dl, 1
mov eax, dword [0x4069e0]
call fcn.00406f20
call fcn.00403cf0
jmp 0x40b3ca
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x18]
push eax
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_WriteFile_1
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x18]
je 0x40b3ca
lea eax, [ebp - 0xb0]
mov ecx, dword [ebp - 0x1c]
mov edx, 0x40b5e0
call fcn.00404618
mov ecx, dword [ebp - 0xb0]
mov dl, 1
mov eax, dword [0x4069e0]
call fcn.00406f20
call fcn.00403cf0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b3e7
mov eax, dword [ebp - 0x24]
call fcn.004026f8
ret
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.0040b044
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40b443
lea eax, [ebp - 0xb4]
mov ecx, dword [ebp - 0x20]
mov edx, 0x40b60c
call fcn.00404618
mov ecx, dword [ebp - 0xb4]
mov dl, 1
mov eax, dword [0x4069e0]
call fcn.00406f20
call fcn.00403cf0
xor ecx, ecx
push ebp
push 0x40b51b
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [ebp - 0x1c]
call fcn.004045cc
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
call fcn.004026d8
mov dword [ebp - 0x24], eax
xor ecx, ecx
push ebp
push 0x40b4fd
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov edx, dword [ebp - 0x18]
sub edx, 2
test edx, edx
jl 0x40b493
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov cl, byte [ecx + eax]
mov ebx, dword [ebp - 0x24]
mov byte [ebx + eax], cl
inc eax
dec edx
jne 0x40b483
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x18]
mov byte [eax + edx - 1], 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_WriteFile_1
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x18]
je 0x40b4e7
lea eax, [ebp - 0xb8]
mov ecx, dword [ebp - 0x20]
mov edx, 0x40b5e0
call fcn.00404618
mov ecx, dword [ebp - 0xb8]
mov dl, 1
mov eax, dword [0x4069e0]
call fcn.00406f20
call fcn.00403cf0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b504
mov eax, dword [ebp - 0x24]
call fcn.004026f8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b561
lea eax, [ebp - 0xb8]
mov edx, 3
call fcn.00404338
lea eax, [ebp - 0x64]
mov edx, 3
call fcn.00404338
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00404338
ret