Function at 0x111ff30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x114669d
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
mov eax, dword [0x115f604]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1161d94]
mov edx, dword [eax + 0xc]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov ecx, 0x1161d94
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x134], ebx
call edx
add eax, 0x10
mov dword [ebp - 0x128], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x138], ebx
cmp byte [ebp + 8], bl
mov byte [ebp - 4], 3
je 0x111ffe8
cmp dword [0x100320c], ebx
jne 0x111ffe8
lea eax, [ebp - 0x138]
push eax
push 1
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x111ffda
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x111ffe8
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov dword [ebp - 0x13c], eax
push ebx
push 0x1066df8
lea ecx, [ebp - 0x120]
push ecx
push 0x1066d78
lea edx, [ebp - 0x11c]
push 2
push edx
call fcn.01075110
add esp, 0x18
cmp byte [ebp + 8], bl
mov eax, dword [0x115f54c]
mov byte [ebp - 4], 4
jne 0x112001e
mov eax, dword [0x115f550]
push eax
lea ecx, [ebp - 0x130]
call fcn.0107f6b0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x12c]
push eax
push ecx
push 1
lea edx, [ebp - 0x130]
push edx
mov byte [ebp - 4], 5
call fcn.0111f5a0
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x130]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1120073
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x120], ebx
mov edi, dword [ebp - 0x12c]
jge 0x11200bd
call fcn.01127f00
test al, al
je 0x11201b0
cmp byte [ebp + 8], bl
mov eax, dword [0x115f54c]
jne 0x112009d
mov eax, dword [0x115f550]
mov ecx, dword [ebp - 0x120]
push eax
push ecx
push 0x1025db0
push 0x1066cf8
push ebx
call fcn.01128b70
add esp, 0x14
jmp 0x11201b0
mov eax, dword [esi]
mov edx, dword [eax]
mov edx, dword [edx + 0x88]
lea ecx, [ebp - 0x124]
push ecx
push eax
call edx
cmp eax, ebx
mov dword [ebp - 0x120], eax
jl 0x11201b0
mov ecx, dword [ebp - 0x124]
push 0xfde9
lea eax, [ebp - 0x1bc]
push ecx
lea ecx, [ebp - 0x1c0]
mov dword [ebp - 0x1c0], eax
call fcn.01097b60
mov edx, dword [ebp - 0x1c0]
push edx
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 6
call fcn.01133ee0
mov eax, dword [ebp - 0x1c0]
cmp eax, ebx
mov byte [ebp - 4], 4
je 0x1120139
lea ecx, [ebp - 0x1bc]
cmp eax, ecx
je 0x1120139
push eax
call fcn.01083cad
add esp, 4
mov eax, dword [ebp - 0x128]
mov esi, dword [eax - 0xc]
push ebx
lea edx, [ebp - 0x134]
push edx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x112019e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1120167
call esi
jmp 0x1120173
call esi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x120], eax
call fcn.01127f00
test al, al
je 0x11201b0
mov eax, dword [ebp - 0x120]
push eax
push 0x1026070
push 0x1066c78
push ebx
call fcn.01128b70
add esp, 0x10
jmp 0x11201b0
cmp dword [ebp - 0x134], esi
je 0x11201b0
mov dword [ebp - 0x120], 0x8000ffff
mov esi, dword [ebp - 0x120]
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 3
call fcn.01075230
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 2
call fcn.010b5490
cmp edi, ebx
je 0x11201df
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x124]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x128]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1120215
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.010840d6
mov esp, ebp
pop ebp
ret 8