Function at 0x100064c0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1008ae3b
push eax
mov eax, 0x2858
mov dword fs:[0], esp
call fcn.10088f10
push ebp
mov ebp, ecx
mov ecx, dword [esp + 0x2870]
push esi
mov eax, dword [ebp + 8]
cmp ecx, dword [eax]
jbe 0x100064f8
xor al, al
jmp 0x10006706
mov eax, dword [ebp + 0x2858]
xor esi, esi
cmp eax, esi
jne 0x1000650b
xor al, al
jmp 0x10006706
mov edx, dword [esp + 0x2880]
push ebx
push edi
mov edi, dword [esp + 0x2880]
mov byte [edx], 0
cmp edi, esi
mov dword [esp + 0x18], esi
mov dword [ebp + 0x285c], esi
je 0x10006581
mov ebx, dword [esp + 0x2884]
cmp ebx, esi
je 0x10006581
mov eax, dword [ebp + 0x2858]
push 4
push 0x3000
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
cmp eax, esi
mov dword [esp + 0x18], eax
je 0x1000657a
mov edx, dword [ebp + 0x2858]
lea ecx, [esp + 0x14]
push ecx
push ebx
push edi
push eax
push edx
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x10006581
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10006581
mov dword [esp + 0x2884], esi
mov al, byte [esp + 0x13]
xor ebx, ebx
mov byte [esp + 0x1c], al
xor eax, eax
mov byte [esp + 0x12], 0
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], esi
mov edi, dword [esp + 0x287c]
mov dword [esp + 0x2870], esi
cmp edi, 0x2800
jbe 0x100065e9
add edi, 0x1c
mov byte [esp + 0x13], al
cmp edi, esi
jbe 0x100065d7
lea ecx, [esp + 0x13]
push ecx
push edi
push esi
lea ecx, [esp + 0x28]
call fcn.100604b0
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
cmp ebx, esi
jne 0x100065e1
mov dword [esp + 0x14], esi
jmp 0x100065f4
sub eax, ebx
mov dword [esp + 0x14], eax
jmp 0x100065f4
add edi, 0x1c
lea ebx, [esp + 0x4c]
mov dword [esp + 0x14], edi
mov edx, dword [esp + 0x287c]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], edx
cmp ebx, esi
cdq
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x2884]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], esi
je 0x10006669
cmp dword [esp + 0x14], 0x1c
jb 0x10006669
push ebx
lea ecx, [esp + 0x30]
call fcn.10005e30
mov eax, dword [esp + 0x2878]
cmp eax, esi
je 0x10006669
mov ecx, dword [esp + 0x287c]
cmp ecx, esi
je 0x10006669
cmp dword [esp + 0x14], edi
jne 0x10006669
mov edx, ecx
mov esi, eax
lea edi, [ebx + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [edx]
push esi
push ecx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100066ad
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x3e5
jne 0x100066b4
mov ecx, dword [esp + 0x2888]
mov eax, dword [esp + 0x18]
mov byte [ecx], 1
mov edx, dword [ebp + 0x18]
mov dword [ebp + 0x1c], edx
mov dword [ebp + 0x285c], eax
mov byte [esp + 0x12], 1
jmp 0x100066f3
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x100066dc
mov ecx, dword [ebp + 0x2858]
push 0x8000
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x100066d6
call edi
mov dword [ebp + 0x285c], esi
mov eax, dword [ebp + 0x2858]
cmp eax, esi
je 0x100066f3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 0x2858], esi
mov edx, dword [esp + 0x20]
push edx
call fcn.10088e50
mov al, byte [esp + 0x16]
add esp, 4
pop edi
pop ebx
mov ecx, dword [esp + 0x2860]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x2864
ret 0x14