Function at 0x10001190
Capabilities:
Copy file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000fa1c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb4
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x88], edx
push edi
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0xa8], 0
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x10], 7
mov dword [ebp - 0x14], 0
mov word [ebp - 0x24], ax
push eax
push 0x104
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.10002250
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmovae eax, dword [ebp - 0x24]
push 0x104
push eax
push 0x10000000
call esi
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
push 0
cmovae eax, dword [ebp - 0x24]
push 0x80
push 3
push 0
push 5
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x48], eax
cmp eax, 0xffffffff
jne 0x10001265
xor eax, eax
mov dword [ebx + 0x14], 7
push eax
mov dword [ebx + 0x10], 0
mov ecx, ebx
push 0x10014af8
mov word [ebx], ax
call fcn.10001cc0
jmp 0x100017aa
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
push 0x104
cmovae eax, dword [ebp - 0x24]
push eax
push 0
call esi
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0x24]
mov esi, dword [ebp - 0x24]
cmp edx, 8
cmovae ecx, esi
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10001290
mov eax, dword [ebp - 0x14]
sub ecx, edi
sar ecx, 1
cmp ecx, eax
ja 0x100012ba
cmp edx, 8
mov dword [ebp - 0x14], ecx
lea eax, [ebp - 0x24]
cmovae eax, esi
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x100012c7
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x24]
call fcn.10002250
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffffc
mov dword [ebp - 0x40], ecx
js 0x10001300
mov edi, 0x20
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x24]
mov esi, dword [ebp - 0x24]
cmp edx, 8
cmovae eax, esi
cmp di, word [eax + ecx*2]
jne 0x10001300
cmp edx, 8
lea eax, [ebp - 0x24]
cmovae eax, esi
xor edx, edx
mov word [eax + ecx*2], dx
sub ecx, 1
jns 0x100012d7
push ecx
push 0
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x24]
call fcn.10001a60
mov esi, eax
lea eax, [ebp - 0x24]
cmp eax, esi
je 0x10001347
mov eax, dword [ebp - 0x10]
cmp eax, 8
jb 0x1000132a
inc eax
push eax
push dword [ebp - 0x24]
call fcn.10002080
xor eax, eax
mov dword [ebp - 0x10], 7
push esi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], 0
mov word [ebp - 0x24], ax
call fcn.10002010
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x58]
cmp eax, 8
jb 0x1000135d
inc eax
push eax
push dword [ebp - 0x6c]
call fcn.10002080
mov esi, dword [ebp - 0x48]
push 2
push 0
push 0xfffffffffffffffc
push esi
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 4
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 8
mov dword [ebp - 0x4c], 0x5c
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x24]
push eax
call fcn.10001c20
push eax
push 0
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x24]
call fcn.10001a60
push 0
push 0x10014af8
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.10001cc0
xor edi, edi
cmp dword [ebp - 0x44], edi
jbe 0x10001763
mov ebx, esi
nop word [eax + eax]
lea eax, [ebp - 0x50]
mov edx, ebx
push eax
lea ecx, [ebp - 0x3c]
call section..text
add esp, 4
mov byte [ebp - 4], 4
cmp dword [ebp - 0x14], 0
jne 0x10001503
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x4c], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x1000142d
mov eax, dword [ecx]
jmp 0x1000142f
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x3c]
push edx
push eax
call fcn.10001dc0
sub esp, 0x18
mov byte [ebp - 4], 5
mov esi, esp
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x10001474
mov eax, dword [ecx]
jmp 0x10001476
mov eax, ecx
push 5
xor edx, edx
push str._tmp_
mov word [eax], dx
call fcn.10001cc0
mov ecx, esi
call fcn.10003570
add esp, 0x18
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x6c]
call fcn.10003650
add esp, 0x30
mov esi, eax
lea eax, [ebp - 0x3c]
cmp eax, esi
je 0x100014d8
mov eax, dword [ebp - 0x28]
cmp eax, 8
jb 0x100014bb
inc eax
push eax
push dword [ebp - 0x3c]
call fcn.10002080
xor eax, eax
mov dword [ebp - 0x28], 7
push esi
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], ax
call fcn.10002010
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x58]
cmp eax, 8
jb 0x100014ee
inc eax
push eax
push dword [ebp - 0x6c]
call fcn.10002080
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x24]
call fcn.10001dc0
jmp 0x100015a1
push ecx
lea edx, [ebp + 8]
lea ecx, [ebp - 0xc0]
call fcn.10002680
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 7
push ecx
mov edx, eax
lea ecx, [ebp - 0x6c]
call fcn.10002740
add esp, 8
mov esi, eax
lea eax, [ebp - 0x3c]
cmp eax, esi
je 0x1000155f
mov eax, dword [ebp - 0x28]
cmp eax, 8
jb 0x10001542
inc eax
push eax
push dword [ebp - 0x3c]
call fcn.10002080
xor eax, eax
mov dword [ebp - 0x28], 7
push esi
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], ax
call fcn.10002010
mov eax, dword [ebp - 0x58]
cmp eax, 8
jb 0x10001571
inc eax
push eax
push dword [ebp - 0x6c]
call fcn.10002080
xor eax, eax
mov byte [ebp - 4], 4
mov word [ebp - 0x6c], ax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x58], 7
mov dword [ebp - 0x5c], 0
cmp eax, 8
jb 0x100015a1
inc eax
push eax
push dword [ebp - 0xc0]
call fcn.10002080
lea eax, [ebp - 0x50]
mov edx, ebx
push eax
lea ecx, [ebp - 0x84]
call section..text
lea edx, [ebp - 0xa4]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xc0]
call fcn.10002680
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0xa
push ecx
mov edx, eax
lea ecx, [ebp - 0x6c]
call fcn.10002740
add esp, 8
mov esi, eax
lea eax, [ebp - 0x84]
cmp eax, esi
je 0x10001623
mov eax, dword [ebp - 0x70]
cmp eax, 8
jb 0x10001600
inc eax
push eax
push dword [ebp - 0x84]
call fcn.10002080
xor eax, eax
mov dword [ebp - 0x70], 7
push esi
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x74], 0
mov word [ebp - 0x84], ax
call fcn.10002010
mov eax, dword [ebp - 0x58]
cmp eax, 8
jb 0x10001635
inc eax
push eax
push dword [ebp - 0x6c]
call fcn.10002080
xor eax, eax
mov byte [ebp - 4], 9
mov word [ebp - 0x6c], ax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x58], 7
mov dword [ebp - 0x5c], 0
cmp eax, 8
jb 0x10001665
inc eax
push eax
push dword [ebp - 0xc0]
call fcn.10002080
cmp dword [ebp - 0x28], 8
lea ecx, [ebp - 0x3c]
push 0
cmovae ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x84]
cmp dword [ebp - 0x70], 8
push ecx
cmovae eax, dword [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, dword [ebp - 0x88]
cmp dword [esi + 0x10], 0
jne 0x1000170e
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x54], esp
push str..exe
call fcn.10001bb0
sub esp, 0x18
mov byte [ebp - 4], 0xc
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x100016d8
mov eax, dword [ecx]
jmp 0x100016da
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x3c]
push edx
push eax
call fcn.10001dc0
mov byte [ebp - 4], 9
call fcn.10003cf0
add esp, 0x30
test al, al
je 0x1000170e
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
mov ecx, esi
cmovae eax, dword [ebp - 0x3c]
push eax
call fcn.10001aa0
mov eax, dword [ebp - 0x70]
cmp eax, 8
jb 0x10001723
inc eax
push eax
push dword [ebp - 0x84]
call fcn.10002080
xor eax, eax
mov byte [ebp - 4], 3
mov word [ebp - 0x84], ax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x70], 7
mov dword [ebp - 0x74], 0
cmp eax, 8
jb 0x10001750
inc eax
push eax
push dword [ebp - 0x3c]
call fcn.10002080
inc edi
cmp edi, dword [ebp - 0x44]
jb 0x100013e0
mov ebx, dword [ebp - 0x8c]
mov esi, dword [ebp - 0x48]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x24]
mov ecx, ebx
push eax
call fcn.10001b30
mov eax, dword [ebp - 0x90]
cmp eax, 8
jb 0x1000178d
inc eax
push eax
push dword [ebp - 0xa4]
call fcn.10002080
xor eax, eax
mov dword [ebp - 0x90], 7
mov dword [ebp - 0x94], 0
mov word [ebp - 0xa4], ax
mov eax, dword [ebp - 0x10]
cmp eax, 8
jb 0x100017bc
inc eax
push eax
push dword [ebp - 0x24]
call fcn.10002080
xor eax, eax
mov dword [ebp - 0x14], 0
mov word [ebp - 0x24], ax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x10], 7
cmp eax, 8
jb 0x100017e2
inc eax
push eax
push dword [ebp + 8]
call fcn.10002080
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret