Function at 0x10005270
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000a80f
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x1000f014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x28], edi
mov eax, dword [ebp + 8]
mov esi, dword [edi + 0x2c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x7c], eax
lea eax, [esi + 8]
push eax
mov dword [ebp - 0x2c], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x28]
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movzx eax, word [edi + 6]
add ax, 2
mov dword [ebp - 0x24], 0
movzx edi, ax
movzx eax, word [ecx + 4]
inc ax
mov dword [ebp - 0x60], edi
movzx eax, ax
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x24]
push eax
push 0
push 8
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x8c], 1
push eax
push dword [ecx + 0x50]
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x28]
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x5c], 1
movzx eax, word [ecx + 4]
add ax, 2
movzx eax, ax
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x24]
push eax
push 0
push 8
lea eax, [ebp - 0x5c]
push eax
push dword [ecx + 0x50]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x28]
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x54], 1
movzx eax, word [ecx + 4]
add ax, 3
movzx eax, ax
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x24]
push eax
push 0
push 8
lea eax, [ebp - 0x54]
push eax
push dword [ecx + 0x50]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x28]
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
movups xmmword [ebp - 0x20], xmm0
movzx eax, word [ecx + 4]
add ax, 4
movzx eax, ax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x24]
push eax
push 0
push 8
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 1
push eax
push dword [ecx + 0x50]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x28]
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x84], 1
movzx eax, word [ecx + 4]
add ax, 5
movzx eax, ax
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x24]
push eax
push 0
push 8
lea eax, [ebp - 0x84]
push eax
push dword [ecx + 0x50]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x28]
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x94], 1
movzx eax, word [ecx + 4]
add ax, 6
movzx eax, ax
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x24]
push eax
push 0
push 8
lea eax, [ebp - 0x94]
push eax
push dword [ecx + 0x50]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x28]
xorps xmm0, xmm0
movzx eax, di
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0xc
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x4c], 0
push eax
push dword [ecx + 0x50]
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x14], 0x80
call edi
mov ecx, dword [ebp - 0x28]
push 0x64
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x28]
xorps xmm0, xmm0
mov dword [ebp - 0x4c], 0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x30], 1
movzx eax, word [ecx + 4]
add ax, 2
movzx eax, ax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 8
lea eax, [ebp - 0x30]
push eax
push dword [ecx + 0x50]
call dword [sym.imp.KERNEL32.dll_ReadFile]
movzx ecx, byte [ebp - 0x30]
xorps xmm0, xmm0
movzx eax, byte [ebp - 0x5c]
shl cx, 8
or cx, ax
mov dword [ebp - 0x4c], 0
movzx eax, cx
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x6c], eax
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x30], 1
movzx eax, word [ecx + 4]
add ax, 3
movzx eax, ax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 8
lea eax, [ebp - 0x30]
push eax
push dword [ecx + 0x50]
call dword [sym.imp.KERNEL32.dll_ReadFile]
movzx ecx, byte [ebp - 0x30]
xorps xmm0, xmm0
movzx eax, byte [ebp - 0x54]
shl cx, 8
or cx, ax
mov dword [ebp - 0x4c], 0
movzx eax, cx
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x50], eax
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x30], 1
movzx eax, word [ecx + 4]
add ax, 4
movzx eax, ax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 8
lea eax, [ebp - 0x30]
push eax
push dword [ecx + 0x50]
call dword [sym.imp.KERNEL32.dll_ReadFile]
movzx ecx, byte [ebp - 0x30]
xorps xmm0, xmm0
movzx eax, byte [ebp - 0x38]
shl cx, 8
or cx, ax
mov dword [ebp - 0x4c], 0
movzx eax, cx
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x58], eax
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x38], 1
movzx eax, word [ecx + 4]
add ax, 5
movzx eax, ax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 8
lea eax, [ebp - 0x38]
push eax
push dword [ecx + 0x50]
call dword [sym.imp.KERNEL32.dll_ReadFile]
movzx ecx, byte [ebp - 0x38]
xorps xmm0, xmm0
movzx eax, byte [ebp - 0x84]
shl ecx, 8
or cx, ax
mov dword [ebp - 0x4c], 0
movzx eax, cx
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x2c], eax
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x1c], 1
movzx eax, cx
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0xc
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], 0
push eax
push dword [ecx + 0x50]
call edi
mov ecx, dword [ebp - 0x64]
test ecx, ecx
je 0x10005633
mov al, byte [ebp - 0x8c]
mov byte [ecx], al
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x10005640
mov ecx, dword [ebp - 0x6c]
mov word [eax], cx
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x1000564d
mov ecx, dword [ebp - 0x50]
mov word [eax], cx
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x1000565a
mov ecx, dword [ebp - 0x58]
mov word [eax], cx
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x10005667
mov ecx, dword [ebp - 0x2c]
mov word [eax], cx
mov ecx, dword [ebp - 0x7c]
test ecx, ecx
je 0x10005676
mov al, byte [ebp - 0x94]
mov byte [ecx], al
mov dword [ebp - 4], 1
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100091f8
mov esp, ebp
pop ebp
ret 0x18