Function at 0x7ef63b27
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push 0
push 1
push dword [ebp + 8]
call fcn.7ef61631
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x7ef63d73
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x18], 1
jne 0x7ef63d73
mov ecx, dword [ebp - 0xc]
add ecx, 0x2c
call fcn.7ef856b8
call dword [0x7ef960ac]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x48], eax
cmp dword [ebp + 0x18], 0
je 0x7ef63b94
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx + 8]
mov dword [eax + 0x14], ecx
push 0
push 0
mov eax, dword [ebp + 0x18]
push dword [eax + 8]
push dword [ebp + 8]
call dword [0x7ef960e0]
jmp 0x7ef63ba7
push 0
push 0
mov eax, dword [ebp - 0xc]
push dword [eax + 0x14]
push dword [ebp + 8]
call dword [0x7ef960e0]
mov eax, dword [ebp - 0xc]
add eax, 0x1c
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
cmp dword [eax + 4], 0
jne 0x7ef63bbf
and dword [ebp - 0x68], 0
jmp 0x7ef63bce
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x3c]
mov eax, dword [eax + 8]
sub eax, dword [ecx + 4]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0x4000
jae 0x7ef63bef
and byte [ebp - 0x38], 0
lea eax, [ebp - 0x38]
push eax
push 0x4000
mov ecx, dword [ebp - 0xc]
add ecx, 0x1c
call fcn.7ef85327
and dword [ebp - 0x14], 0
and dword [ebp - 0x18], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x7ef63cec
cmp dword [ebp - 0x10], 0x4000
jbe 0x7ef63c19
mov dword [ebp - 0x6c], 0x4000
jmp 0x7ef63c1f
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x64], eax
push dword [ebp - 0x24]
push dword [ebp + 0xc]
push dword [ebp - 0x64]
call fcn.7ef89190
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
add eax, 0x38
mov dword [ebp - 0x2c], eax
and dword [ebp - 0x30], 0
jmp 0x7ef63c61
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x24]
jge 0x7ef63c9f
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x30]
movzx eax, byte [eax]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x30]
add edx, dword [ecx + 0x14]
and edx, 7
mov ecx, dword [ebp - 0x2c]
movzx ecx, byte [ecx + edx]
xor eax, ecx
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x30]
add edx, dword [ecx + 0x14]
movzx ecx, dl
xor eax, ecx
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x30]
mov byte [ecx], al
jmp 0x7ef63c5a
and dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
push dword [eax]
call dword [0x7ef962cc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x24]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
add eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x14], eax
jmp 0x7ef63bfd
cmp dword [ebp + 0x14], 0
je 0x7ef63cfa
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov eax, dword [0x7efa2154]
mov eax, dword [eax]
and eax, 2
neg eax
sbb eax, eax
neg eax
movzx eax, al
test eax, eax
je 0x7ef63d30
call dword [0x7ef960b0]
push eax
push dword [ebp - 0x14]
push 1
push dword [ebp + 0x10]
push dword [ebp + 8]
push str.WriteFile_h_x_sz_x__encyrpted______x___x_written__er_x__n
call fcn.7ef54190
add esp, 0x18
cmp dword [ebp + 0x18], 0
je 0x7ef63d54
call dword [0x7ef960b0]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x18]
push dword [eax + 0x10]
call dword [0x7ef961a0]
push dword [ebp - 0x34]
call dword [0x7ef96044]
push 0
call dword [0x7ef96044]
mov eax, dword [ebp - 0xc]
and dword [eax + 0x48], 0
mov ecx, dword [ebp - 0xc]
add ecx, 0x2c
call fcn.7ef856ec
push 1
pop eax
jmp 0x7ef63dd4
push dword [ebp + 0x18]
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x7ef962cc]
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 0
je 0x7ef63d9a
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [0x7efa2154]
mov eax, dword [eax]
and eax, 2
neg eax
sbb eax, eax
neg eax
movzx eax, al
test eax, eax
je 0x7ef63dd1
call dword [0x7ef960b0]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp + 0x10]
push dword [ebp + 8]
push str.WriteFile_h_x_sz_x__extern______x___x_written__er_x__n
call fcn.7ef54190
add esp, 0x18
mov eax, dword [ebp - 4]
leave
ret 0x14