Function at 0x1000c370
Capabilities:
Read file on windows
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10044ebf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1074
call fcn.100365e0
mov eax, dword [0x100533e8]
push ebx
mov ebx, ecx
mov dword [esp + 0x1074], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [esp + 0x40], ecx
lea edx, [eax + 4]
mov ecx, dword [edx]
mov dword [esp + 0x54], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x58], ecx
mov ecx, dword [edx + 8]
push esi
mov esi, dword [eax]
mov dword [esp + 0x60], ecx
mov ecx, dword [edx + 0xc]
mov edx, dword [edx + 0x10]
push edi
push eax
mov dword [esp + 0x44], esi
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], edx
call fcn.100363ae
add esp, 4
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x50], eax
jmp 0x1000c3f5
mov esi, dword [esp + 0x40]
xor eax, eax
mov ecx, 0x400
lea edi, [esp + 0x78]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0x1000
lea edx, [esp + 0x84]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor edi, edi
cmp eax, edi
jne 0x1000c73d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
je 0x1000c731
cmp eax, 0x6d
je 0x1000cb44
cmp eax, 0x3e5
jne 0x1000c3f5
mov eax, dword [esp + 0x6c]
mov ecx, dword [ebx + 0x21c]
push 0xffffffffffffffff
push edi
lea edx, [esp + 0x78]
push edx
push 2
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x1000caa0
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x64]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x1000c3f5
xor ecx, ecx
mov dword [esp + 0x30], 0x10047c5c
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov eax, dword [ebx + 0x654]
cmp eax, ecx
mov dword [esp + 0x108c], ecx
je 0x1000c4bf
push eax
call fcn.100363b3
add esp, 4
mov edx, dword [esp + 0x14]
add edx, 2
push edx
call fcn.100377f5
mov ecx, dword [esp + 0x18]
add ecx, 2
mov edx, ecx
shr ecx, 2
mov edi, eax
mov dword [ebx + 0x654], edi
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x18]
mov edi, dword [ebx + 0x654]
mov eax, ecx
shr ecx, 2
lea esi, [esp + 0x7c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x654]
add esp, 4
push ecx
lea ecx, [esp + 0x34]
call fcn.10003880
push str._runas
lea ecx, [esp + 0x34]
call fcn.10003790
cmp eax, 0xffffffff
je 0x1000c6fc
mov edx, dword [0x10054f08]
mov ecx, 0x10054f08
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [0x10054f08]
mov ecx, 0x10054f08
mov byte [esp + 0x108c], 1
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x3c], eax
lea esi, [ebx + 0x220]
push esi
lea ecx, [esp + 0x58]
mov byte [esp + 0x1090], 2
call fcn.10009fb0
mov edx, dword [0x10054f08]
mov ecx, 0x10054f08
mov byte [esp + 0x108c], 3
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x20], edi
xor eax, eax
push 0x10048544
lea ecx, [esp + 0x34]
mov byte [esp + 0x1090], 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
call fcn.10003790
cmp eax, 0xffffffff
je 0x1000c5c4
mov dword [esp + 0x1c], 1
push 0x1004853c
lea ecx, [esp + 0x34]
call fcn.10003790
cmp eax, 0xffffffff
je 0x1000c5df
mov dword [esp + 0x18], 1
push 0x10048534
lea ecx, [esp + 0x34]
call fcn.10003790
cmp eax, 0xffffffff
je 0x1000c628
inc eax
test eax, eax
jg 0x1000c5fd
cmp eax, dword [esp + 0x34]
jg 0x1000c615
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx + eax*4 - 4]
test edx, edx
je 0x1000c615
push eax
lea ecx, [esp + 0x34]
call fcn.10003540
jmp 0x1000c61a
mov eax, 0x10047eac
push eax
lea ecx, [esp + 0x24]
call fcn.10008600
mov edi, dword [esp + 0x20]
mov edx, dword [ebx + 0x6b0]
push edi
push edx
push esi
lea eax, [esp + 0x1c]
push str.__s_s.exe___s
push eax
call fcn.10006640
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
add esp, 0x14
test eax, eax
push 0xffffffffffffffff
je 0x1000c662
mov ecx, dword [esp + 0x20]
push ecx
push esi
push 0
mov ecx, ebx
call fcn.10003f80
jmp 0x1000c66c
push esi
push 0
mov ecx, ebx
call fcn.10003c90
add edi, 0xfffffff0
mov byte [esp + 0x108c], 3
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x1000c68e
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
mov byte [esp + 0x108c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000c6b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0x108c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000c6da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esi - 0x10]
mov byte [esp + 0x108c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000c6fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x38]
test eax, eax
mov dword [esp + 0x108c], 0xffffffff
mov dword [esp + 0x30], 0x10047c5c
je 0x1000c3f1
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
jmp 0x1000c3f1
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1000c3f5
mov dword [esp + 0x24], 0x10047c5c
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov eax, dword [ebx + 0x654]
cmp eax, edi
mov dword [esp + 0x108c], 6
je 0x1000c76b
push eax
call fcn.100363b3
add esp, 4
mov eax, dword [esp + 0x14]
add eax, 2
push eax
call fcn.100377f5
mov ecx, dword [esp + 0x18]
add ecx, 2
mov edx, ecx
shr ecx, 2
mov edi, eax
mov dword [ebx + 0x654], edi
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x18]
mov edi, dword [ebx + 0x654]
mov eax, ecx
shr ecx, 2
lea esi, [esp + 0x7c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [0x10054f08]
add esp, 4
mov ecx, 0x10054f08
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x1090], 7
call fcn.10003880
push str._runas
lea ecx, [esp + 0x28]
call fcn.10003790
cmp eax, 0xffffffff
je 0x1000c9be
mov edx, dword [0x10054f08]
mov ecx, 0x10054f08
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [0x10054f08]
mov ecx, 0x10054f08
mov byte [esp + 0x108c], 8
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x3c], eax
lea esi, [ebx + 0x220]
push esi
lea ecx, [esp + 0x5c]
mov byte [esp + 0x1090], 9
call fcn.10009fb0
mov edx, dword [0x10054f08]
mov ecx, 0x10054f08
mov byte [esp + 0x108c], 0xa
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x1c], edi
xor eax, eax
push 0x10048544
lea ecx, [esp + 0x28]
mov byte [esp + 0x1090], 0xb
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
call fcn.10003790
cmp eax, 0xffffffff
je 0x1000c88b
mov dword [esp + 0x20], 1
push 0x1004853c
lea ecx, [esp + 0x28]
call fcn.10003790
cmp eax, 0xffffffff
je 0x1000c8a6
mov dword [esp + 0x18], 1
push 0x10048534
lea ecx, [esp + 0x28]
call fcn.10003790
cmp eax, 0xffffffff
je 0x1000c909
mov edx, dword [esp + 0x28]
inc eax
test eax, eax
jg 0x1000c8c6
cmp eax, edx
jg 0x1000c8ec
mov ecx, dword [esp + 0x2c]
mov edi, dword [ecx + eax*4 - 4]
test edi, edi
je 0x1000c8ec
test eax, eax
jg 0x1000c8e0
cmp eax, edx
jle 0x1000c8e0
xor edi, edi
xor eax, eax
jmp 0x1000c8fa
mov edi, dword [ecx + eax*4 - 4]
test edi, edi
jne 0x1000c8f1
xor eax, eax
jmp 0x1000c8fa
mov edi, 0x10047eac
push edi
call fcn.10036536
add esp, 4
push eax
push edi
lea ecx, [esp + 0x24]
call fcn.10005c00
mov edi, dword [esp + 0x1c]
mov eax, dword [ebx + 0x6b0]
push edi
push eax
push esi
lea ecx, [esp + 0x1c]
push str.__s_s.exe___s
push ecx
call fcn.10006640
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
add esp, 0x14
test eax, eax
mov ecx, ebx
push 0xffffffffffffffff
je 0x1000c943
mov edx, dword [esp + 0x24]
push edx
push esi
push 0
call fcn.10003f80
jmp 0x1000c94b
push esi
push 0
call fcn.10003c90
add edi, 0xfffffff0
mov byte [esp + 0x108c], 0xa
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1000c96d
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
mov byte [esp + 0x108c], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000c993
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0x108c], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000c9b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esi - 0x10]
jmp 0x1000ca26
push 0x10047e18
lea ecx, [esp + 0x28]
call fcn.10003790
cmp eax, 0xffffffff
je 0x1000ca45
mov ecx, dword [esp + 0x28]
inc eax
test eax, eax
jg 0x1000c9de
cmp eax, ecx
jg 0x1000c9fc
mov edx, dword [esp + 0x2c]
mov esi, dword [edx + eax*4 - 4]
test esi, esi
je 0x1000c9fc
test eax, eax
jg 0x1000c9f6
cmp eax, ecx
jle 0x1000c9f6
xor eax, eax
jmp 0x1000ca01
mov eax, dword [edx + eax*4 - 4]
jmp 0x1000ca01
mov eax, 0x10047eac
push eax
lea ecx, [esp + 0x48]
call fcn.10009fb0
mov eax, dword [esp + 0x44]
push eax
mov ecx, ebx
mov byte [esp + 0x1090], 0xc
call fcn.10009b10
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov byte [esp + 0x108c], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000ca45
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
mov byte [esp + 0x108c], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000ca6b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x2c]
test eax, eax
mov dword [esp + 0x108c], 0xffffffff
mov dword [esp + 0x24], 0x10047c5c
je 0x1000c3f1
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
jmp 0x1000c3f1
mov eax, dword [0x10054f08]
mov ecx, 0x10054f08
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov ecx, dword [ebx + 0x6b0]
push ecx
lea edx, [esp + 0x14]
push str._s_EXIT
push edx
mov dword [esp + 0x1098], 5
call fcn.10006640
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.10006580
mov edi, dword [esp + 0x10]
cmp dword [edi - 4], 1
mov ebx, dword [edi - 0xc]
jle 0x1000cafe
mov eax, ebx
push eax
lea ecx, [esp + 0x14]
call fcn.10004840
mov edi, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x54]
push ecx
lea edx, [ebx + ebx]
push edx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
add edi, 0xfffffff0
mov dword [esp + 0x108c], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1000cb44
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
cmp esi, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x1000cb52
push esi
call edi
mov eax, dword [esp + 0x48]
test eax, eax
je 0x1000cb5d
push eax
call edi
mov ecx, dword [esp + 0x1084]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x107c]
call fcn.10036133
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4