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

Disassembly:
push 0xffffffffffffffff
push 0x439f51
mov eax, dword fs:[0]
push eax
sub esp, 0x848
mov eax, dword [0x448e28]
xor eax, esp
mov dword [esp + 0x840], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x448e28]
xor eax, esp
push eax
lea eax, [esp + 0x85c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x86c]
xor esi, esi
mov edi, ecx
push 0x208
lea ecx, [esp + 0x120]
push esi
push ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x64], eax
mov ebx, edx
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], 0x1330678
call fcn.004221b0
add esp, 0xc
mov dword [esp + 0x324], esi
mov dword [esp + 0x328], 3
mov dword [esp + 0xbc], 0xf
mov dword [esp + 0xb8], esi
mov byte [esp + 0xa8], 0
mov dword [esp + 0x864], esi
mov esi, dword [edi + 0x10]
mov dword [esp + 0x3c], 1
cmp dword [edi + 0xc], esi
jbe 0x408dc2
call fcn.004202bb
mov ebp, dword [edi]
mov edi, dword [edi + 0xc]
mov ecx, dword [esp + 0x34]
cmp edi, dword [ecx + 0x10]
jbe 0x408dd9
call fcn.004202bb
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx]
push esi
push ebp
push edi
push eax
lea edx, [esp + 0x50]
push edx
mov edi, ecx
call fcn.00409830
mov eax, dword [ebx + 0x14]
cmp eax, 1
jae 0x408e80
push 0x103
lea eax, [esp + 0x751]
push 0
push eax
mov byte [esp + 0x758], 0
call fcn.004221b0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x750]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x408e50
cmp dword [esp + 0xbc], 0x10
jb 0x408e49
mov edx, dword [esp + 0xa8]
push edx
call fcn.00412e16
add esp, 4
xor eax, eax
jmp 0x4090e0
lea eax, [esp + 0x74c]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408e60
sub eax, edx
push eax
lea eax, [esp + 0x750]
push eax
lea ecx, [esp + 0xac]
call fcn.00407f40
jmp 0x408e91
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [esp + 0xb0]
call fcn.00407c30
mov eax, dword [esp + 0xa8]
mov esi, 0x10
cmp dword [esp + 0xbc], esi
jae 0x408ead
lea eax, [esp + 0xa8]
lea ecx, [esp + 0x74]
push ecx
push eax
call fcn.004203c4
mov edi, dword [esp + 0x90]
xor eax, eax
add esp, 8
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0xa8]
lea ebx, [edi - 0x10]
cmp dword [esp + 0xbc], esi
jae 0x408eea
lea eax, [esp + 0xa8]
push 0
push 0x80
push 3
lea edx, [esp + 0x74]
push edx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
mov dword [esp + 0x30], ebp
cmp ebp, 0xffffffff
jne 0x408f35
cmp dword [esp + 0xbc], esi
jb 0x408e49
mov eax, dword [esp + 0xa8]
push eax
call fcn.00412e16
add esp, 4
xor eax, eax
jmp 0x4090e0
xor eax, eax
mov dword [esp + 0x24], eax
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [edi - 4]
mov dword [esp + 0x2c], ecx
push 4
lea ecx, [esp + 0x44]
push ecx
xor esi, esi
push ebp
mov dword [esp + 0x4c], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x408fc8
jmp 0x408f80
cmp dword [esp + 0x38], 0x12345678
je 0x408fdc
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
inc esi
mov edx, edi
sub edx, esi
lea eax, [esp + 0x1c]
push eax
sub edx, 4
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x2c], edx
push 4
lea edx, [esp + 0x44]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x408f80
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0xbc], 0x10
jmp 0x408f18
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
mov dword [esp + 0x24], eax
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
add esi, 4
mov ecx, ebx
sub ecx, esi
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x2c], ecx
push 0x10
lea ecx, [esp + 0x54]
push ecx
push ebp
call edi
cmp dword [esp + 0x54], 0x1330678
je 0x409085
xor eax, eax
mov dword [esp + 0x24], eax
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x1c]
push eax
push 0x10
lea ecx, [esp + 0x54]
sub esi, 4
push ecx
sub ebx, esi
push ebp
mov dword [esp + 0x38], ebx
call edi
cmp dword [esp + 0x54], 0x12345678
je 0x40907d
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xa4]
call fcn.00408700
xor eax, eax
jmp 0x4090e0
mov dword [esp + 0x3c], 0
mov ebp, dword [esp + 0x48]
lea esi, [esp + 0x32c]
call fcn.00408c30
mov ebx, 1
mov dword [esp + 0x40], ebx
cmp dword [esp + 0x4c], ebx
ja 0x409115
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x34]
mov edx, dword [eax + 0x10]
sub edx, dword [eax + 0xc]
xor eax, eax
sar edx, 6
cmp eax, edx
sbb esi, esi
neg esi
cmp dword [esp + 0xbc], 0x10
jb 0x4090de
mov ecx, dword [esp + 0xa8]
push ecx
call fcn.00412e16
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x85c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x840]
xor ecx, esp
call fcn.0041f350
add esp, 0x854
ret 4
mov ebx, 1
lea edx, [esp + 0xdc]
push edx
call fcn.00408c80
xor eax, eax
mov byte [esp + 0x864], 1
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], ebp
cmp dword [esp + 0x40], ebx
jne 0x4091de
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x1c]
push ecx
push 0x41c
lea edx, [esp + 0x338]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0x73c]
mov ecx, 0x82
lea esi, [esp + 0x32c]
lea edi, [esp + 0x11c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x740]
lea eax, [esp + 0x534]
mov dword [esp + 0x324], edx
mov dword [esp + 0x328], ecx
lea edx, [eax + 1]
jmp 0x4091b0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4091b0
sub eax, edx
push eax
lea eax, [esp + 0x538]
push eax
lea ecx, [esp + 0x100]
call fcn.00407f40
mov ecx, dword [esp + 0x744]
mov dword [esp + 0x118], ecx
jmp 0x409200
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x1c]
push eax
push 0x210
lea ecx, [esp + 0x128]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
lea eax, [esp + 0x11c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409218
sub eax, edx
cmp eax, 0x208
jb 0x40924f
mov al, 0x65
mov byte [esp + 0x323], cl
mov byte [esp + 0x322], al
mov byte [esp + 0x321], 0x78
mov byte [esp + 0x320], al
mov byte [esp + 0x31f], 0x2e
mov eax, dword [esp + 0x58]
push 0xffffffffffffffff
push 0
mov esi, 0xf
push eax
lea ecx, [esp + 0xcc]
mov dword [esp + 0xe4], esi
mov dword [esp + 0xe0], 0
mov byte [esp + 0xd0], 0
call fcn.00407c30
push ebx
push 0x4403fc
lea eax, [esp + 0xc8]
mov byte [esp + 0x86c], 2
call fcn.004063b0
lea eax, [esp + 0x11c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4092a7
sub eax, edx
push eax
lea ecx, [esp + 0x120]
push ecx
lea eax, [esp + 0xc8]
call fcn.004063b0
mov eax, dword [esp + 0xc4]
mov edi, 0x10
cmp dword [esp + 0xd8], edi
jae 0x4092e1
lea eax, [esp + 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0xc4]
cmp dword [esp + 0xd8], edi
jae 0x4092ff
lea eax, [esp + 0xc4]
push 0
push 0x80
push ebx
lea edx, [esp + 0x68]
push edx
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x409445
cmp dword [esp + 0x40], 1
jne 0x40933e
add ebp, 0x41c
cmp dword [esp + 0x3c], 0
jne 0x409344
sub ebp, 4
jmp 0x409344
add ebp, 0x210
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x324]
push eax
mov dword [esp + 0x28], ebp
call fcn.00412e0b
mov edi, eax
add esp, 4
test edi, edi
je 0x40949b
mov eax, dword [esp + 0x324]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x1c]
push edx
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [esp + 0x324]
cmp dword [esp + 0x18], esi
jne 0x4094b2
mov ecx, edi
call fcn.00409500
mov eax, dword [esp + 0x324]
push 0
lea edx, [esp + 0x1c]
push edx
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call fcn.00412e16
add ebp, dword [esp + 0x328]
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0xc8]
push ecx
lea ecx, [esp + 0xe8]
call fcn.00407c30
mov edx, dword [esp + 0x328]
mov edi, dword [esp + 0x34]
lea ebx, [esp + 0xdc]
mov dword [esp + 0x114], edx
call fcn.004095f0
lea ecx, [esp + 0xc0]
call fcn.00408700
mov esi, ebx
mov byte [esp + 0x864], 0
call fcn.004074e0
mov eax, dword [esp + 0x40]
inc eax
mov dword [esp + 0x40], eax
cmp eax, dword [esp + 0x4c]
jb 0x409110
jmp 0x4090a4
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0xd8], edi
jb 0x409469
mov ecx, dword [esp + 0xc4]
push ecx
call fcn.00412e16
add esp, 4
mov dword [esp + 0xd8], esi
lea esi, [esp + 0xdc]
mov dword [esp + 0xd4], 0
mov byte [esp + 0xc4], 0
call fcn.004074e0
cmp dword [esp + 0xbc], edi
jmp 0x408e37
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call edi
mov eax, dword [esp + 0x30]
push eax
call edi
mov edi, 0x10
jmp 0x409450
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
mov eax, dword [esp + 0x30]
push eax
call esi
push edi
call fcn.00412e16
add esp, 4
lea ecx, [esp + 0xc0]
call fcn.00408700
lea esi, [esp + 0xdc]
call fcn.004074e0
lea ecx, [esp + 0xa4]
call fcn.00408700
xor eax, eax
jmp 0x4090e0