Function at 0x10006ca0
Capabilities:
Get common file path
Get file size
Link many functions at runtime
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
lea eax, [ebp - 0x7c]
push eax
push 0x1001204c
call fcn.10001830
lea ecx, [ebp - 0x7c]
push ecx
push 0x1001f4ec
call fcn.1000ab10
add esp, 0x10
test eax, eax
je 0x10006cd1
call fcn.10005280
push esi
lea edx, [ebp - 0x7c]
push edi
push edx
push str.KERNEL32.DLL
call fcn.10001830
add esp, 8
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [ebp - 0x7c]
mov esi, eax
push ecx
push str.LoadLibraryExW
call fcn.10001830
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 8
lea edx, [ebp - 0x7c]
push edx
push esi
call edi
test eax, eax
je 0x10006d25
push 0x10006060
push fcn.10005ff0
push eax
call fcn.10007a40
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push str.OpenProcess
call fcn.10001830
add esp, 8
lea ecx, [ebp - 0x7c]
push ecx
push esi
call edi
test eax, eax
je 0x10006d54
push 0x10006410
push fcn.100063a0
push eax
call fcn.10007a40
add esp, 0xc
lea edx, [ebp - 0x7c]
push edx
push str.OpenThread
call fcn.10001830
add esp, 8
lea eax, [ebp - 0x7c]
push eax
push esi
call edi
test eax, eax
je 0x10006d83
push 0x100064f0
push fcn.10006480
push eax
call fcn.10007a40
add esp, 0xc
push ebx
lea ecx, [ebp - 0x284]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [ebp - 0x284]
lea eax, [ebp - 0x180]
push edx
push str._sKernel32.dll
push eax
call fcn.1000ab90
add esp, 0xc
lea ecx, [ebp - 0x180]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10007066
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov eax, dword [0x10021070]
test eax, eax
jne 0x10006e03
push 4
push 0x1000
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x10021070], eax
lea edx, [ebp - 0xc]
push 0
push edx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10007066
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x7c]
push ecx
push str.NTDLL.DLL
mov dword [ebp - 0x18], eax
call fcn.10001830
add esp, 8
lea edx, [ebp - 0x7c]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
lea eax, [ebp - 0x7c]
push eax
push str.NtCreateUserProcess
call fcn.10001830
add esp, 8
lea ecx, [ebp - 0x7c]
push ecx
push ebx
call edi
mov esi, eax
test esi, esi
je 0x10006e9e
lea edx, [ebp - 0x7c]
mov dword [0x100210a8], esi
push edx
push str.KERNEL32.DLL
mov dword [0x1001f74c], 0x10004340
call fcn.10001830
add esp, 8
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [0x10021070]
push 0x1001f74c
push esi
mov ebx, eax
push ecx
jmp 0x10006ef1
lea edx, [ebp - 0x7c]
push edx
push str.NtCreateThread
call fcn.10001830
add esp, 8
lea eax, [ebp - 0x7c]
push eax
push ebx
call edi
lea ecx, [ebp - 0x7c]
mov esi, eax
push ecx
push str.KERNEL32.DLL
mov dword [0x10021084], esi
mov dword [0x1001f74c], 0x100077f0
call fcn.10001830
add esp, 8
lea edx, [ebp - 0x7c]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
mov eax, dword [0x10021070]
push 0x1001f74c
push esi
push eax
push ebx
call fcn.10006620
mov ecx, dword [ebx + 0x3c]
mov edx, dword [0x10021070]
add esp, 0x10
mov esi, dword [ecx + ebx + 0x10c]
lea eax, [ecx + ebx + 0xf8]
add esi, edx
lea edx, [ebp - 0x7c]
push edx
push str.InterlockedCompareExchange
mov dword [ebp - 4], eax
mov dword [ebp - 8], esi
call fcn.10001830
add esp, 8
lea eax, [ebp - 0x7c]
push eax
push ebx
call edi
test eax, eax
je 0x10006f55
mov ecx, dword [ebp - 4]
mov edi, eax
mov edx, dword [ecx + 0xc]
mov ecx, 5
sub edi, edx
sub edi, ebx
add edi, esi
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp - 8]
lea edx, [ebp - 0x7c]
push edx
push str.LoadLibraryExW
call fcn.10001830
add esp, 8
lea eax, [ebp - 0x7c]
push eax
push ebx
call edi
test eax, eax
je 0x10006f91
mov ecx, dword [ebp - 4]
mov edi, eax
mov edx, dword [ecx + 0xc]
mov ecx, 5
sub edi, edx
sub edi, ebx
add edi, esi
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp - 8]
lea edx, [ebp - 0x7c]
push edx
push str.OpenProcess
call fcn.10001830
add esp, 8
lea eax, [ebp - 0x7c]
push eax
push ebx
call edi
test eax, eax
je 0x10006fcd
mov ecx, dword [ebp - 4]
mov edi, eax
mov edx, dword [ecx + 0xc]
mov ecx, 5
sub edi, edx
sub edi, ebx
add edi, esi
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp - 8]
lea edx, [ebp - 0x7c]
push edx
push str.OpenThread
call fcn.10001830
add esp, 8
lea eax, [ebp - 0x7c]
push eax
push ebx
call edi
test eax, eax
je 0x10007006
mov ecx, dword [ebp - 4]
mov edi, eax
mov edx, dword [ecx + 0xc]
mov ecx, 5
sub edi, edx
sub edi, ebx
add edi, esi
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edx, [ebp - 0x284]
lea eax, [ebp - 0x180]
push edx
push str._sXernel32.dll
push eax
call fcn.1000ab90
add esp, 0xc
lea ecx, [ebp - 0x180]
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10007066
mov eax, dword [ebp - 0x18]
mov ecx, dword [0x10021070]
lea edx, [ebp - 0xc]
push 0
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x7c]
push edx
push str.NTDLL.DLL
call fcn.10001830
add esp, 8
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [ebp - 0x7c]
mov ebx, eax
push ecx
push str.ZwQueryInformationThread
call fcn.10001830
add esp, 8
lea edx, [ebp - 0x7c]
push edx
push ebx
call edi
mov dword [0x10021088], eax
lea eax, [ebp - 0x7c]
push eax
push str.RtlUnicodeStringToAnsiString
call fcn.10001830
add esp, 8
lea ecx, [ebp - 0x7c]
push ecx
push ebx
call edi
lea edx, [ebp - 0x7c]
mov dword [0x1002108c], eax
push edx
push str.RtlAnsiStringToUnicodeString
call fcn.10001830
add esp, 8
lea eax, [ebp - 0x7c]
push eax
push ebx
call edi
lea ecx, [ebp - 0x7c]
mov dword [0x10021090], eax
push ecx
push str.RtlDosPathNameToNtPathName_U
call fcn.10001830
add esp, 8
lea edx, [ebp - 0x7c]
push edx
push ebx
call edi
mov dword [0x1002107c], eax
lea eax, [ebp - 0x7c]
push eax
push str.NtMapViewOfSection
call fcn.10001830
add esp, 8
lea ecx, [ebp - 0x7c]
push ecx
push ebx
call edi
test eax, eax
mov dword [ebp - 0x18], eax
je 0x100071a9
mov edx, eax
push 0x10002240
push fcn.10002280
push eax
mov ecx, dword [edx]
mov dword [ebp - 0x14], ecx
mov dl, byte [edx + 4]
mov byte [ebp - 0x10], dl
call fcn.10007810
mov ecx, 5
mov esi, fcn.10002280
mov edi, 0x10003b30
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp - 0xc]
lea ecx, [ebp - 4]
push eax
push 0x40
lea edx, [ebp - 8]
push ecx
push edx
mov dword [ebp - 8], esi
mov dword [ebp - 4], 0x100
call edi
push eax
call fcn.10007d70
mov ecx, dword [ebp - 0x14]
mov dl, byte [ebp - 0x10]
mov eax, esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], 0x100
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov byte [eax + 4], dl
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 4]
push ecx
lea eax, [ebp - 8]
push edx
push eax
call edi
push eax
call fcn.10007d70
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x7c]
push ecx
push str.NtQueryValueKey
call fcn.10001830
add esp, 8
lea edx, [ebp - 0x7c]
push edx
push ebx
call edi
lea eax, [ebp - 0x7c]
push eax
push str.NtDeviceIoControlFile
call fcn.10001830
add esp, 8
lea ecx, [ebp - 0x7c]
push ecx
push ebx
call edi
test eax, eax
je 0x100071f0
push 0x10004700
push fcn.10004510
push eax
call fcn.10007a40
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea edx, [ebp - 0x7c]
mov dword [0x10020060], eax
push edx
push str.NtOpenFile
call fcn.10001830
add esp, 8
lea eax, [ebp - 0x7c]
push eax
push ebx
call edi
test eax, eax
je 0x1000722a
push 0x10003e60
push fcn.10003de0
push eax
call fcn.10007a40
add esp, 0xc
lea ecx, [ebp - 0x7c]
push ecx
push str.ZwReadFile
call fcn.10001830
add esp, 8
lea edx, [ebp - 0x7c]
push edx
push ebx
call edi
test eax, eax
je 0x10007259
push 0x10004010
push fcn.10003f90
push eax
call fcn.10007a40
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push str.RtlLeaveCriticalSection
call fcn.10001830
add esp, 8
lea ecx, [ebp - 0x7c]
push ecx
push ebx
call edi
test eax, eax
je 0x10007288
push 0x10005f80
push fcn.10005f10
push eax
call fcn.10007a40
add esp, 0xc
lea edx, [ebp - 0x284]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x284]
lea ecx, [ebp - 0x180]
push eax
push str._s_ntdll.dll
push ecx
call fcn.1000ab90
add esp, 0xc
lea edx, [ebp - 0x180]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000757c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov eax, dword [0x10021074]
test eax, eax
mov dword [ebp - 0xc], ecx
jne 0x1000730d
push 4
push 0x1000
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp - 0xc]
mov dword [0x10021074], eax
lea edx, [ebp - 0x18]
push 0
push edx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000757c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebx + 0x3c]
mov edx, dword [0x10021074]
mov dword [ebp - 0xc], eax
mov esi, dword [ecx + ebx + 0x10c]
lea eax, [ecx + ebx + 0xf8]
add esi, edx
lea edx, [ebp - 0x7c]
push edx
push str.RtlLeaveCriticalSection
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], esi
call fcn.10001830
add esp, 8
lea eax, [ebp - 0x7c]
push eax
push ebx
call edi
test eax, eax
je 0x1000738c
mov ecx, dword [ebp - 0x14]
mov edi, eax
mov edx, dword [ecx + 0xc]
mov ecx, 5
sub edi, edx
sub edi, ebx
add edi, esi
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp - 8]
lea edx, [ebp - 0x7c]
push edx
push str.NtCreateThread
call fcn.10001830
add esp, 8
lea eax, [ebp - 0x7c]
push eax
push ebx
call edi
test eax, eax
je 0x100073c8
mov ecx, dword [ebp - 0x14]
mov edi, eax
mov edx, dword [ecx + 0xc]
mov ecx, 5
sub edi, edx
sub edi, ebx
add edi, esi
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp - 8]
lea edx, [ebp - 0x7c]
push edx
push str.NtQueryValueKey
call fcn.10001830
add esp, 8
lea eax, [ebp - 0x7c]
push eax
push ebx
call edi
test eax, eax
je 0x10007404
mov ecx, dword [ebp - 0x14]
mov edi, eax
mov edx, dword [ecx + 0xc]
mov ecx, 5
sub edi, edx
sub edi, ebx
add edi, esi
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp - 8]
lea edx, [ebp - 0x7c]
push edx
push str.NtDeviceIoControlFile
call fcn.10001830
add esp, 8
lea eax, [ebp - 0x7c]
push eax
push ebx
call edi
test eax, eax
je 0x10007440
mov ecx, dword [ebp - 0x14]
mov edi, eax
mov edx, dword [ecx + 0xc]
mov ecx, 5
sub edi, edx
sub edi, ebx
add edi, esi
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp - 8]
lea edx, [ebp - 0x7c]
push edx
push str.ZwCreateFile
call fcn.10001830
add esp, 8
lea eax, [ebp - 0x7c]
push eax
push ebx
call edi
test eax, eax
mov dword [ebp - 4], eax
je 0x10007494
push 0x10003c10
push fcn.10003ba0
push eax
call fcn.10007a40
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 4]
add esp, 0xc
mov edx, dword [ecx + 0xc]
mov ecx, 5
sub edi, edx
sub edi, ebx
add edi, esi
mov esi, dword [ebp - 4]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp - 8]
lea edx, [ebp - 0x7c]
push edx
push str.NtOpenFile
call fcn.10001830
add esp, 8
lea eax, [ebp - 0x7c]
push eax
push ebx
call edi
test eax, eax
je 0x100074d0
mov ecx, dword [ebp - 0x14]
mov edi, eax
mov edx, dword [ecx + 0xc]
mov ecx, 5
sub edi, edx
sub edi, ebx
add edi, esi
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp - 8]
lea edx, [ebp - 0x7c]
push edx
push str.ZwReadFile
call fcn.10001830
add esp, 8
lea eax, [ebp - 0x7c]
push eax
push ebx
call edi
test eax, eax
mov dword [ebp - 4], eax
je 0x1000750c
mov ecx, dword [ebp - 0x14]
mov edi, eax
mov edx, dword [ecx + 0xc]
mov ecx, 5
sub edi, edx
sub edi, ebx
add edi, esi
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [0x10021074]
push edx
push ebx
call fcn.100068e0
add esp, 8
lea eax, [ebp - 0x284]
lea ecx, [ebp - 0x180]
push eax
push str._sxtdll.dll
push ecx
call fcn.1000ab90
add esp, 0xc
lea edx, [ebp - 0x180]
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000757c
mov ecx, dword [ebp - 0xc]
mov edx, dword [0x10021074]
lea eax, [ebp - 0x18]
push 0
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x1001f4e0]
pop ebx
test eax, eax
jne 0x10007731
lea eax, [ebp - 0x7c]
push eax
push str.USER32.DLL
call fcn.10001830
add esp, 8
lea ecx, [ebp - 0x7c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
je 0x10007731
lea edx, [ebp - 0x7c]
push edx
push str.GetClassNameA
call fcn.10001830
add esp, 8
lea eax, [ebp - 0x7c]
push eax
push esi
call edi
lea ecx, [ebp - 0x7c]
mov dword [0x1001f4e0], eax
push ecx
push str.CLIENT.EXE
call fcn.10001830
lea edx, [ebp - 0x7c]
push edx
push 0x1001f4ec
call fcn.1000ab10
add esp, 0x10
test eax, eax
je 0x1000761e
lea eax, [ebp - 0x7c]
push eax
push str.CreateWindowExW
call fcn.10001830
add esp, 8
lea ecx, [ebp - 0x7c]
push ecx
push esi
call edi
test eax, eax
je 0x1000761e
push 0x10005a50
push fcn.10005d00
push eax
call fcn.10007a40
add esp, 0xc
lea edx, [ebp - 0x7c]
push edx
push 0x1001204c
call fcn.10001830
lea eax, [ebp - 0x7c]
push eax
push 0x1001f4ec
call fcn.1000ab10
add esp, 0x10
test eax, eax
je 0x10007731
lea ecx, [ebp - 0x7c]
push ecx
push str.GetForegroundWindow
call fcn.10001830
add esp, 8
lea edx, [ebp - 0x7c]
push edx
push esi
call edi
test eax, eax
je 0x10007674
push 0x100043d0
push fcn.10004360
push eax
call fcn.10007a40
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push str.IsIconic
call fcn.10001830
add esp, 8
lea ecx, [ebp - 0x7c]
push ecx
push esi
call edi
test eax, eax
je 0x100076a3
push 0x10004470
push fcn.10004400
push eax
call fcn.10007a40
add esp, 0xc
lea edx, [ebp - 0x7c]
push edx
push str.CreateWindowExW
call fcn.10001830
add esp, 8
lea eax, [ebp - 0x7c]
push eax
push esi
call edi
test eax, eax
je 0x100076d2
push 0x10005a50
push fcn.10005d00
push eax
call fcn.10007a40
add esp, 0xc
lea ecx, [ebp - 0x7c]
push ecx
push str.SetWindowLongW
call fcn.10001830
add esp, 8
lea edx, [ebp - 0x7c]
push edx
push esi
call edi
test eax, eax
je 0x10007701
push 0x10005030
push fcn.10005060
push eax
call fcn.10007a40
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push str.GetClientRect
call fcn.10001830
add esp, 8
push str.GetClientRect
push esi
call edi
test eax, eax
je 0x10007731
push 0x10005e70
push fcn.10005e00
push eax
call fcn.10007a40
add esp, 0xc
mov eax, dword [0x100210ec]
test eax, eax
jne 0x10007794
lea ecx, [ebp - 0x7c]
push ecx
push str.SHELL32.DLL
call fcn.10001830
add esp, 8
lea edx, [ebp - 0x7c]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
je 0x10007794
lea eax, [ebp - 0x7c]
mov dword [0x100210ec], 1
push eax
push str.Shell_NotifyIconW
call fcn.10001830
add esp, 8
lea ecx, [ebp - 0x7c]
push ecx
push esi
call edi
test eax, eax
je 0x10007794
push 0x10005df0
push 0x10005d70
push eax
call fcn.10007a40
add esp, 0xc
cmp dword [0x100210ec], 1
jne 0x100077ab
mov eax, dword [0x1001f4e0]
test eax, eax
je 0x100077ab
call fcn.10009cf0
mov ecx, 0x19
xor eax, eax
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov edx, 0x100077b7
mov dword [ebp - 4], edx
mov eax, 0x100077b7
sub eax, edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 4]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
pop esi
mov esp, ebp
pop ebp
ret