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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000a7cf
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
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 - 0x3c], edi
mov esi, dword [edi + 0x2c]
mov dword [ebp - 0x40], esi
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp + 8], 1
xorps xmm0, xmm0
mov dword [ebp - 4], 0
jne 0x10004e37
movzx eax, word [edi + 4]
add ax, 3
mov dword [ebp - 0x38], 0
movzx eax, ax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x38]
push eax
push 0
push 8
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
push dword [edi + 0x50]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
movups xmmword [ebp - 0x34], xmm0
call edi
mov ecx, dword [ebp - 0x3c]
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x4c], 1
movzx eax, word [ecx + 4]
add ax, 4
movzx eax, ax
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x38]
push eax
push 0
push 8
lea eax, [ebp - 0x4c]
push eax
push dword [ecx + 0x50]
call edi
mov ecx, dword [ebp - 0x3c]
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x44], 1
movzx eax, word [ecx + 4]
add ax, 5
movzx eax, ax
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x38]
push eax
push 0
push 8
lea eax, [ebp - 0x44]
push eax
push dword [ecx + 0x50]
call edi
mov ecx, dword [ebp - 0x3c]
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x54], 1
movzx eax, word [ecx + 4]
add ax, 6
movzx eax, ax
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x38]
push eax
push 0
push 8
lea eax, [ebp - 0x54]
push eax
push dword [ecx + 0x50]
call edi
mov al, byte [ebp - 0x54]
and al, 0xf
movzx eax, al
cdq
mov ecx, eax
mov edi, edx
movzx eax, byte [ebp - 0x44]
shld edi, ecx, 8
cdq
shl ecx, 8
or edi, edx
or ecx, eax
shld edi, ecx, 8
shl ecx, 8
movzx eax, byte [ebp - 0x4c]
cdq
or ecx, eax
or edi, edx
movzx eax, byte [ebp - 0x18]
shld edi, ecx, 8
cdq
shl ecx, 8
or ecx, eax
or edi, edx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x40], edi
jmp 0x10005076
movzx eax, word [edi + 6]
mov ecx, dword [ebp - 0x3c]
add ax, 2
movzx edi, ax
mov dword [ebp - 0x24], 0
movups xmmword [ebp - 0x20], xmm0
movzx eax, word [ecx + 4]
add ax, 3
mov dword [ebp - 0x2c], 1
movzx eax, ax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x24]
push eax
push 0
push 8
lea eax, [ebp - 0x2c]
push eax
push dword [ecx + 0x50]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x3c]
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x78], 1
movzx eax, word [ecx + 4]
add ax, 4
movzx eax, ax
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x24]
push eax
push 0
push 8
lea eax, [ebp - 0x78]
push eax
push dword [ecx + 0x50]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x3c]
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x70], 1
movzx eax, word [ecx + 4]
add ax, 5
movzx eax, ax
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x24]
push eax
push 0
push 8
lea eax, [ebp - 0x70]
push eax
push dword [ecx + 0x50]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, edi
mov dword [ebp - 0x68], 0
mov edi, dword [ebp - 0x3c]
xorps xmm0, xmm0
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x68]
push eax
push 0
push 0xc
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 1
push eax
push dword [edi + 0x50]
movups xmmword [ebp - 0x64], xmm0
mov dword [ebp - 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [edi]
mov ecx, edi
push 0x64
call dword [eax + 0xc]
movzx eax, word [edi + 4]
xorps xmm0, xmm0
add ax, 3
mov dword [ebp - 0x68], 0
movzx eax, ax
movups xmmword [ebp - 0x64], xmm0
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x68]
push eax
push 0
push 8
lea eax, [ebp - 0x4c]
push eax
push dword [edi + 0x50]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
call edi
mov ecx, dword [ebp - 0x3c]
xorps xmm0, xmm0
mov dword [ebp - 0x68], 0
movups xmmword [ebp - 0x64], xmm0
mov dword [ebp - 0x44], 1
movzx eax, word [ecx + 4]
add ax, 4
movzx eax, ax
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x68]
push eax
push 0
push 8
lea eax, [ebp - 0x44]
push eax
push dword [ecx + 0x50]
call edi
mov ecx, dword [ebp - 0x3c]
xorps xmm0, xmm0
mov dword [ebp - 0x68], 0
movups xmmword [ebp - 0x64], xmm0
mov dword [ebp - 0x18], 1
movzx eax, word [ecx + 4]
add ax, 5
movzx eax, ax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x68]
push eax
push 0
push 8
lea eax, [ebp - 0x18]
push eax
push dword [ecx + 0x50]
call edi
movzx eax, byte [ebp - 0x18]
cdq
mov ecx, eax
mov dword [ebp - 0x68], 0
movzx eax, byte [ebp - 0x44]
mov edi, edx
shld edi, ecx, 8
cdq
shl ecx, 8
or edi, edx
or ecx, eax
movzx eax, byte [ebp - 0x4c]
shld edi, ecx, 8
cdq
shl ecx, 8
or edi, edx
or ecx, eax
movzx eax, byte [ebp - 0x70]
shld edi, ecx, 8
cdq
shl ecx, 8
or edi, edx
or ecx, eax
movzx eax, byte [ebp - 0x78]
shld edi, ecx, 8
cdq
shl ecx, 8
or edi, edx
or ecx, eax
movzx eax, byte [ebp - 0x2c]
shld edi, ecx, 8
cdq
shl ecx, 8
or ecx, eax
or edi, edx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x40], edi
mov eax, dword [ebp - 0x50]
xorps xmm0, xmm0
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x68]
push eax
push 0
push 0xc
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 1
push eax
push dword [ecx + 0x50]
movups xmmword [ebp - 0x64], xmm0
mov dword [ebp - 0x28], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], 1
mov ecx, esi
mov edi, dword [esi]
call dword [edi + 0x1c]
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x40]
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 4