Function at 0x1007f020
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100eef00
mov eax, dword fs:[0]
push eax
sub esp, 0xe38
mov eax, dword [0x1011dfc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0x604], 0
mov eax, dword [ebp + 0xa08]
mov dword [ebp - 0xe24], eax
jne 0x1007f236
mov eax, dword [ebp + 0x188]
and eax, 0x2000
or eax, 0
jne 0x1007f236
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0xe28], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x1007f21f
cmp esi, 0xffffffff
je 0x1007f21f
push 0x1c
lea eax, [ebp - 0xe44]
mov dword [ebp - 0xe2c], 0
push eax
push dword [ebp + 8]
xorps xmm0, xmm0
push esi
movups xmmword [ebp - 0xe44], xmm0
movq qword [ebp - 0xe34], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x1007f21f
push dword [ebp - 0xe40]
call fcn.10080fb0
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
add esp, 4
cmp dword [eax + 0x14], 7
mov edi, dword [eax + 0x10]
mov dword [ebp - 0xe20], eax
jbe 0x1007f11f
mov eax, dword [eax]
mov dword [ebp - 0xe20], eax
cmp edi, 0x7ffffffe
ja 0x1007f2bc
cmp edi, 7
ja 0x1007f144
mov ecx, 7
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
jmp 0x1007f1a3
mov eax, edi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x1007f157
mov eax, bind
jmp 0x1007f161
mov ecx, 0xa
cmp eax, ecx
cmovb eax, ecx
mov dword [ebp - 0xe1c], eax
lea eax, [ebp - 0xe1c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10010c30
mov ecx, dword [ebp - 0xe1c]
mov dword [ebp - 0x14], ecx
lea ecx, [edi*2 + 2]
push ecx
push dword [ebp - 0xe20]
mov dword [ebp - 0x28], eax
push eax
mov dword [ebp - 0x18], edi
call fcn.100c12a0
mov ecx, dword [ebp - 0x14]
add esp, 0x14
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x1007f1e8
mov eax, dword [ebp + 0x18c]
or dword [ebp + 0x188], 0x2000
mov dword [ebp + 0x18c], eax
mov eax, dword [ebp - 0xe40]
cdq
sub dword [ebp + 8], eax
lea eax, [ebp - 0x28]
push 0x77
sbb dword [ebp + 0xc], edx
cmp ecx, 7
cmova eax, dword [ebp - 0x28]
push eax
lea eax, [ebp + 0x20]
push 0x78
push eax
call fcn.100d0c62
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp ecx, 7
jbe 0x1007f21f
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1007f215
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007f2c1
push ecx
push edx
call fcn.100bf788
add esp, 8
mov dword [ebp - 4], 1
test esi, esi
je 0x1007f236
cmp esi, 0xffffffff
je 0x1007f236
push esi
call dword [0x100fe8d0]
push 0x3e8
lea eax, [ebp - 0x410]
mov dword [ebp - 0xe18], 2
mov ecx, 0x280
lea esi, [ebp + 8]
lea edi, [ebp - 0xe10]
push 0
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.100c0b00
push 0x1f3
push dword [ebp - 0xe24]
lea eax, [ebp - 0x410]
push 0x1f4
push eax
call fcn.100d0c62
add esp, 0x1c
lea eax, [ebp - 0xe18]
push 0
push 0x10123b88
push 0xdf0
push eax
push dword [0x1011db8c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
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.100bfabd
mov esp, ebp
pop ebp
ret
call fcn.10004d60
call fcn.100cb58f
int3