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

Disassembly:
push 0xffffffffffffffff
push 0x53ae53
mov eax, dword fs:[0]
push eax
sub esp, 0x498
mov eax, dword [0x58c950]
xor eax, esp
mov dword [esp + 0x490], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58c950]
xor eax, esp
push eax
lea eax, [esp + 0x4ac]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4bc]
xor esi, esi
mov edi, ecx
push 0x32
lea ecx, [esp + 0xdc]
push esi
push ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x5c], eax
mov ebx, edx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], 0x1330678
call fcn.00513690
add esp, 0xc
mov dword [esp + 0x10c], esi
mov dword [esp + 0x110], 3
mov dword [esp + 0xb8], 0xf
mov dword [esp + 0xb4], esi
mov byte [esp + 0xa4], 0
mov dword [esp + 0x4b4], esi
mov esi, dword [edi + 0x10]
cmp dword [edi + 0xc], esi
jbe 0x40eae7
call fcn.0050ef30
mov ebp, dword [edi]
mov edi, dword [edi + 0xc]
mov ecx, dword [esp + 0x2c]
cmp edi, dword [ecx + 0x10]
jbe 0x40eafe
call fcn.0050ef30
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
push esi
push ebp
push edi
push eax
lea edx, [esp + 0x48]
push edx
mov edi, ecx
call fcn.00408340
mov eax, dword [ebx + 0x14]
cmp eax, 1
jae 0x40ebc0
push 0x103
lea eax, [esp + 0x3a1]
push 0
push eax
mov byte [esp + 0x3a8], 0
call fcn.00513690
add esp, 0xc
push 0x104
lea ecx, [esp + 0x3a0]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40eb94
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MakeExtract_GetModuleFileNameA_Failed.ErrCode_u_r_n
call fcn.00408e70
add esp, 8
mov dword [esp + 0x4b4], 0xffffffff
cmp dword [esp + 0xb8], 0x10
jb 0x40eb8d
mov edx, dword [esp + 0xa4]
push edx
call fcn.00410507
add esp, 4
xor eax, eax
jmp 0x40ee74
lea eax, [esp + 0x39c]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40eba0
sub eax, edx
push eax
lea eax, [esp + 0x3a0]
push eax
lea ecx, [esp + 0xa8]
call fcn.00404b60
jmp 0x40ebd1
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [esp + 0xac]
call fcn.00404a40
mov eax, dword [esp + 0xa4]
mov esi, 0x10
cmp dword [esp + 0xb8], esi
jae 0x40ebed
lea eax, [esp + 0xa4]
lea ecx, [esp + 0x6c]
push ecx
push eax
call fcn.0051133e
mov edi, dword [esp + 0x88]
xor eax, eax
add esp, 8
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0xa4]
lea ebx, [edi - 0x10]
cmp dword [esp + 0xb8], esi
jae 0x40ec2a
lea eax, [esp + 0xa4]
push 0
push 0x80
push 3
lea edx, [esp + 0x60]
push edx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40ec8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MakeExtract_CreateFileA_Failed._u__r_n
call fcn.00408e70
add esp, 8
mov dword [esp + 0x4b4], ebp
cmp dword [esp + 0xb8], esi
jb 0x40eb8d
mov eax, dword [esp + 0xa4]
push eax
call fcn.00410507
add esp, 4
xor eax, eax
jmp 0x40ee74
xor eax, eax
mov dword [esp + 0x20], eax
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [edi - 4]
mov dword [esp + 0x28], ecx
push 4
lea ecx, [esp + 0x40]
push ecx
xor esi, esi
push ebp
mov dword [esp + 0x48], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40ed1c
nop
cmp dword [esp + 0x34], 0x12345678
je 0x40ed7c
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
inc esi
mov edx, edi
sub edx, esi
lea eax, [esp + 0x18]
push eax
sub edx, 4
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x28], edx
push 4
lea edx, [esp + 0x40]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40ecd0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xa4]
mov esi, 0x10
cmp dword [esp + 0xb8], esi
jae 0x40ed3f
lea eax, [esp + 0xa4]
push eax
push str.MakeExtract_:__s_Is_Invalid_Bind_File._r_n
call fcn.00408e70
add esp, 8
mov dword [esp + 0x4b4], 0xffffffff
cmp dword [esp + 0xb8], esi
jb 0x40eb8d
mov eax, dword [esp + 0xa4]
push eax
call fcn.00410507
add esp, 4
xor eax, eax
jmp 0x40ee74
xor eax, eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x28], eax
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
push 0x10
add esi, 4
lea eax, [esp + 0x4c]
sub ebx, esi
push eax
mov dword [esp + 0x30], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
call ebx
cmp dword [esp + 0x4c], 0x1330678
je 0x40ee0e
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0xb8], 0x10
mov eax, dword [esp + 0xa4]
jae 0x40ede2
lea eax, [esp + 0xa4]
push eax
push str.MakeExtract_:__s_Is_Invalid_Bind_File.Key_Checksum_Error._r_n
call fcn.00408e70
add esp, 8
mov dword [esp + 0x4b4], 0xffffffff
lea ecx, [esp + 0xa0]
call fcn.00403ff0
xor eax, eax
jmp 0x40ee92
mov edi, dword [esp + 0x40]
lea esi, [esp + 0x154]
call fcn.0040e960
mov esi, 1
mov dword [esp + 0x38], esi
cmp dword [esp + 0x44], esi
ja 0x40eecf
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
xor edx, edx
sar ecx, 6
cmp edx, ecx
sbb esi, esi
neg esi
mov dword [esp + 0x4b4], 0xffffffff
cmp dword [esp + 0xb8], 0x10
jb 0x40ee72
mov eax, dword [esp + 0xa4]
push eax
call fcn.00410507
add esp, 4
mov eax, esi
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0xf
mov byte [esp + 0xa4], 0
mov ecx, dword [esp + 0x4ac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x490]
xor ecx, esp
call fcn.0050e8a6
add esp, 0x4a4
ret 4
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [esp + 0x30]
mov esi, 1
lea ecx, [esp + 0x114]
push ecx
call fcn.0040e9a0
mov byte [esp + 0x4b4], 1
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], edi
cmp dword [esp + 0x38], esi
jne 0x40ef9e
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
push 0x248
lea ecx, [esp + 0x160]
push ecx
push ebp
call ebx
xor eax, eax
jmp 0x40ef30
mov cl, byte [esp + eax + 0x154]
mov byte [esp + eax + 0xd8], cl
add eax, esi
test cl, cl
jne 0x40ef30
mov eax, dword [esp + 0x390]
mov edx, dword [esp + 0x394]
mov dword [esp + 0x10c], eax
lea eax, [esp + 0x186]
mov dword [esp + 0x110], edx
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ef70
sub eax, edx
push eax
lea ecx, [esp + 0x18a]
push ecx
lea ecx, [esp + 0x138]
call fcn.00404b60
mov edx, dword [esp + 0x398]
mov dword [esp + 0x150], edx
jmp 0x40efb5
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0x3c
lea edx, [esp + 0xe4]
push edx
push ebp
call ebx
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0xd8], eax
mov byte [esp + 0xc8], al
mov eax, dword [esp + 0x58]
mov esi, 0xf
push eax
lea ecx, [esp + 0xc8]
mov dword [esp + 0xe0], esi
call fcn.00404a40
mov byte [esp + 0x4b4], 2
push 1
push 0x56a5dc
lea eax, [esp + 0xc4]
call fcn.0040a950
lea eax, [esp + 0xd8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f016
sub eax, edx
push eax
lea ecx, [esp + 0xdc]
push ecx
lea eax, [esp + 0xc4]
call fcn.0040a950
mov eax, dword [esp + 0xc0]
mov ebx, 0x10
cmp dword [esp + 0xd4], ebx
jae 0x40f050
lea eax, [esp + 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0xc0]
cmp dword [esp + 0xd4], ebx
jae 0x40f06e
lea eax, [esp + 0xc0]
push 0
push 0x80
push 1
lea edx, [esp + 0x6c]
push edx
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40f1b5
cmp dword [esp + 0x38], 1
jne 0x40f0a4
add edi, 0x248
jmp 0x40f0a7
add edi, 0x3c
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x10c]
push eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x24], edi
call fcn.004104fc
mov edi, eax
add esp, 4
test edi, edi
je 0x40f272
mov eax, dword [esp + 0x10c]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
push eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [esp + 0x10c]
cmp dword [esp + 0x14], esi
jne 0x40f2ac
mov ecx, edi
call fcn.0040f2f0
mov edx, dword [esp + 0x10c]
push 0
lea ecx, [esp + 0x18]
push ecx
push edx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call fcn.00410507
mov eax, dword [esp + 0x110]
add dword [esp + 0x34], eax
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0xc4]
push ecx
lea ecx, [esp + 0x120]
call fcn.00404a40
mov edx, dword [esp + 0x110]
mov edi, dword [esp + 0x2c]
lea ebx, [esp + 0x114]
mov dword [esp + 0x14c], edx
call fcn.0040f340
mov byte [esp + 0x4b4], 1
lea ecx, [esp + 0xbc]
call fcn.00403ff0
mov byte [esp + 0x4b4], 0
mov eax, ebx
push eax
call fcn.00405660
mov eax, dword [esp + 0x38]
inc eax
mov dword [esp + 0x38], eax
cmp eax, dword [esp + 0x44]
jb 0x40eec0
jmp 0x40ee31
mov eax, dword [esp + 0xc0]
mov edi, 0x10
cmp dword [esp + 0xd4], edi
jae 0x40f1d1
lea eax, [esp + 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MakeExtract_CreateFileA_Failed._u__s_r_n
call fcn.00408e70
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x4b4], 1
cmp dword [esp + 0xd4], edi
jb 0x40f20e
mov ecx, dword [esp + 0xc0]
push ecx
call fcn.00410507
add esp, 4
xor ebx, ebx
mov dword [esp + 0xd4], esi
mov dword [esp + 0xd0], ebx
mov byte [esp + 0xc0], bl
mov byte [esp + 0x4b4], bl
lea edx, [esp + 0x114]
push edx
call fcn.00405660
mov dword [esp + 0x4b4], 0xffffffff
cmp dword [esp + 0xb8], edi
jb 0x40f25d
mov eax, dword [esp + 0xa4]
push eax
call fcn.00410507
add esp, 4
mov dword [esp + 0xb8], esi
mov dword [esp + 0xb4], ebx
xor eax, eax
jmp 0x40ee8a
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push ebp
call esi
mov byte [esp + 0x4b4], 1
lea ecx, [esp + 0xbc]
call fcn.00403ff0
mov byte [esp + 0x4b4], 0
lea ecx, [esp + 0x114]
push ecx
call fcn.00405660
jmp 0x40edf0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push ebp
call esi
push edi
call fcn.00410507
add esp, 4
mov byte [esp + 0x4b4], 1
lea ecx, [esp + 0xbc]
call fcn.00403ff0
mov byte [esp + 0x4b4], 0
lea edx, [esp + 0x114]
push edx
call fcn.00405660
jmp 0x40edf0