Function at 0x406be0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xa4
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0x1000
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x1c], 0xc0000001
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov ecx, 0
mov eax, 0x18
and eax, 0xfffffffc
mov edx, eax
mov eax, 0
mov dword [ebp + eax - 0x60], ecx
add eax, 4
cmp eax, edx
jb 0x406c5f
mov ecx, 0
mov eax, 0x18
and eax, 0xfffffffc
mov edx, eax
mov eax, 0
mov dword [ebp + eax - 0x78], ecx
add eax, 4
cmp eax, edx
jb 0x406c7e
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [esp + 4], 1
mov dword [esp], 0x41b53a
call fcn.00403ba7
mov dword [esp + 8], 0
mov dword [esp + 4], 0x9a0697a4
mov dword [esp], eax
call fcn.00403a28
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4070c6
lea eax, [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [ebp - 0x20]
call eax
sub esp, 8
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4070c9
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x38]
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 8
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_HeapAlloc]
call eax
sub esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4070cc
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x38]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov dword [esp], 5
call fcn.004031d5
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jns 0x406dc2
cmp dword [ebp - 0x10], 0
je 0x406da6
mov eax, dword [ebp - 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call eax
mov edx, dword [ebp - 0x10]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_HeapFree]
call eax
sub esp, 0xc
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x1c], 0xc0000023
je 0x406cfc
cmp dword [ebp - 0x1c], 0xc0000004
je 0x406cfc
jmp 0x406dc3
nop
cmp dword [ebp - 0x1c], 0
js 0x4070cf
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x60], 0x18
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x78], 0x18
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x84], 0xc
mov dword [ebp - 0x80], 2
mov byte [ebp - 0x7c], 0
mov byte [ebp - 0x7b], 0
lea eax, [ebp - 0x84]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x44]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x60]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x400
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call fcn.00403028
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
js 0x407052
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x30]
mov dword [esp + 8], edx
mov dword [esp + 4], 0xa
mov dword [esp], eax
call fcn.004030ac
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
js 0x407040
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x34]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
lea edx, [ebp - 0x78]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x2000000
mov dword [esp], eax
call fcn.004032dd
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
js 0x40702e
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x3c]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004074ef
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x407016
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x40]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00407aa5
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x406fff
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00407869
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x406fa9
mov dword [ebp - 0x88], 0
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x88]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00407950
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x406fa9
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x406fa9
mov eax, dword [ebp - 0x34]
mov dword [esp + 0xc], 1
mov edx, dword [ebp + 0x10]
mov dword [esp + 8], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00403e24
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x406fa9
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x406fff
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call sub.msvcrt.dll_wcslen
lea edx, [eax + eax]
mov eax, dword [ebp - 0x40]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov ebx, dword [ebp - 0x40]
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_HeapFree]
call eax
sub esp, 0xc
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_LocalFree]
call eax
sub esp, 4
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 0xc], 0
jne 0x40702e
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call fcn.0040308b
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call fcn.0040308b
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call fcn.0040308b
mov dword [ebp - 0x2c], 0
cmp dword [ebp - 0xc], 0
jne 0x40706e
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
test eax, eax
je 0x407071
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
add dword [ebp - 0x14], eax
jmp 0x406e49
nop
jmp 0x407072
nop
cmp dword [ebp - 0xc], 0
jne 0x4070d2
mov dword [esp], 1
mov eax, dword [fcn.0040b0f0]
call eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x30
mov dword [esp + 4], 1
mov dword [esp], str.No_valid_process_token_to_impersonate_was_found.
call sub.msvcrt.dll_fwrite
mov dword [esp], 1
mov eax, dword [fcn.0040b0f0]
call eax
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sub.msvcrt.dll_fputc
jmp 0x4070d3
nop
jmp 0x4070d3
nop
jmp 0x4070d3
nop
jmp 0x4070d3
nop
jmp 0x4070d3
nop
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4070ea
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_LocalFree]
call eax
sub esp, 4
cmp dword [ebp - 0x10], 0
je 0x40713a
cmp dword [ebp - 0x10], 0
je 0x40713a
mov eax, dword [ebp - 0x38]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call eax
mov edx, dword [ebp - 0x10]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_HeapFree]
call eax
sub esp, 0xc
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
leave
ret