Function at 0x75ad15ca
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x75bcca04]
sub esp, 0x20
push ebx
push esi
xor esi, esi
push edi
cmp eax, esi
je 0x75ad15e7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x75bcca3c]
cmp eax, esi
je 0x75ad15fd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x75bcca3c], esi
cmp dword [ebp + 8], esi
je 0x75ad1703
xor eax, eax
cmp byte [ebp + 0xc], al
push esi
setne al
mov ebx, 0x40100080
push ebx
mov edi, 0x40000000
lea eax, [eax + eax + 2]
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 3
push edi
push dword [ebp + 8]
mov dword [ebp - 8], eax
call esi
mov dword [0x75bcca04], eax
cmp eax, 0xffffffff
jne 0x75ad170c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x75ad16d3
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 4]
push ecx
push 1
push 0xe
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x75ad16e6
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
je 0x75ad16e6
push 0
push ebx
push dword [ebp - 8]
push 0
push 3
push edi
push dword [ebp + 8]
call esi
push dword [ebp - 4]
mov dword [0x75bcca04], eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
jne 0x75ad16c4
push dword [0x75bcca04]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
and dword [0x75bcca04], 0
cmp dword [ebp - 4], 0xffffffff
je 0x75ad16fc
push dword [ebp - 4]
call esi
jmp 0x75ad16fc
cmp dword [ebp - 4], 0xffffffff
je 0x75ad16d3
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
cmp dword [0x75bcca04], 0xffffffff
jne 0x75ad170e
mov dword [0x75bcca04], esi
jmp 0x75ad16fc
and dword [0x75bcca04], 0
cmp dword [ebp - 4], 0xffffffff
je 0x75ad16fc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x75ad1861
or dword [0x75bcca04], 0xffffffff
jmp 0x75ad16d5
xor esi, esi
cmp byte [ebp + 0xc], 0
je 0x75ad1743
push 0x75a09a38
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x75ad1743
push 2
push esi
push esi
push dword [0x75bcca04]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x75ad1815
cmp eax, esi
jne 0x75ad17b7
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [0x75bcca04]
mov byte [ebp - 4], 0xff
mov byte [ebp - 3], 0xfe
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x75ad17b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x75ad1815
mov edi, 0x103
jmp 0x75ad1799
push 0xffffffffffffffff
push dword [0x75bcca04]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x20], edi
je 0x75ad178b
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [0x75bcca04]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x75ad1815
push 0x75bcca3c
push dword [0x75bcca04]
push dword [ebp + 8]
call fcn.75afb476
add esp, 0xc
test eax, eax
jne 0x75ad17df
mov dword [0x75bcca40], esi
mov dword [0x75bcca44], esi
jmp 0x75ad17f3
mov dword [0x75bcca40], 3
mov dword [0x75bcca44], 1
cmp byte [0x75bcc900], 0
jne 0x75ad185f
cmp byte [ebp + 0x10], 0
jne 0x75ad185f
push 0x50
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x75bcca54], eax
cmp eax, esi
jne 0x75ad184a
mov eax, dword [0x75bcca04]
cmp eax, esi
je 0x75ad182b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x75bcca04], esi
mov eax, dword [0x75bcca3c]
cmp eax, esi
je 0x75ad16fc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x75bcca3c], esi
jmp 0x75ad16fc
movzx ecx, byte [0x75bcca58]
push ecx
push dword [0x75bcca04]
mov ecx, eax
call fcn.75acf946
mov al, 1
pop edi
pop esi
pop ebx
leave
ret