Function at 0x110b7ba0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x111e15ef
mov eax, dword fs:[0]
push eax
mov eax, 0x2288
call fcn.111d92c0
mov eax, dword [0x11279148]
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 edi, dword [ebp + 0x10]
xor eax, eax
mov esi, ecx
mov ecx, dword [ebp + 8]
mov edx, 0xa0
mov dword [ebp - 0x2220], eax
mov dword [ebp - 0x2228], ecx
mov word [ebp - 0x210], ax
mov dword [ebp - 0x2224], eax
lea ebx, [eax + 1]
mov dword [ebp - 0x221c], eax
mov dword [ebp - 0x2218], eax
mov dword [ebp - 0x2214], eax
mov dword [ebp - 0x2210], eax
mov dword [ebp - 0x220c], eax
mov dword [ebp - 0x2208], eax
mov dword [ebp - 0x2204], eax
mov dword [ebp - 0x2200], eax
mov byte [ebp - 0x21fc], al
mov word [ebp - 0x2220], dx
cmp edi, eax
je 0x110b7cbb
push 0x100
lea eax, [ebp - 0x210]
push eax
mov ecx, edi
call fcn.1108d080
mov dword [ebp - 0x2224], eax
test eax, eax
jne 0x110b7c78
push 0xff
mov ecx, edi
call fcn.1108d0b0
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.MSVCR100.dll_wcsncat]
add esp, 0xc
lea ecx, [ebp - 0x210]
mov eax, 0x1127bbc0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x110b7ca9
test dx, dx
je 0x110b7ca5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x110b7ca9
add eax, 4
add ecx, 4
test dx, dx
jne 0x110b7c83
xor eax, eax
jmp 0x110b7cae
sbb eax, eax
sbb eax, 0xffffffff
mov ecx, dword [ebp - 0x2228]
xor ebx, ebx
test eax, eax
sete bl
movzx eax, byte [ecx + 2]
dec eax
cmp eax, 5
ja case.0x110b7cc9.3
jmp dword [eax*4 + 0x110b81f0]
cmp dword [ebp - 0x2224], 0
jne 0x110b7dde
mov ecx, dword [edi + 0x30]
push 0
push 0
push str.UseNTSecurityForRemoteCmd
push str.Client
call fcn.110bbc00
test eax, eax
je 0x110b7d1c
mov eax, dword [edi]
push 0
mov edx, 0xb
push 0xf
lea ecx, [ebp - 0x2220]
mov word [ebp - 0x2220], dx
mov edx, dword [eax + 0x48]
push ecx
mov ecx, edi
call edx
jmp case.0x110b7cc9.3
mov ecx, dword [0x1127b21c]
mov eax, dword [ecx]
mov edx, dword [eax + 0xd8]
call edx
push eax
lea ecx, [ebp - 0x223c]
call fcn.1113ccd0
lea ecx, [ebp - 0x223c]
mov dword [ebp - 4], 0
call fcn.1102f630
cmp word [eax], 0
jne 0x110b7dcc
push 0x474
mov byte [ebp - 0x221e], 3
call fcn.111bccb0
push 3
mov esi, eax
push 0x11206d7c
push esi
call dword [sym.imp.MSVCR100.dll_wcsncmp]
add esp, 0x10
test eax, eax
jne 0x110b7d7b
add esi, 6
mov ecx, edi
call fcn.110c7040
push eax
push 0x2000
lea eax, [ebp - 0x2212]
push eax
push esi
call fcn.111b7fb0
mov edx, dword [edi]
mov edx, dword [edx + 0x48]
add esp, 0x10
mov word [ebp - 0x2214], ax
push 0
add eax, 0xe
push eax
lea eax, [ebp - 0x2220]
push eax
mov ecx, edi
call edx
lea ecx, [ebp - 0x223c]
mov dword [ebp - 4], 0xffffffff
call fcn.1113cd80
jmp case.0x110b7cc9.3
lea ecx, [ebp - 0x223c]
mov dword [ebp - 4], 0xffffffff
call fcn.1113cd80
mov eax, dword [0x1127bdf8]
test eax, eax
je 0x110b7e10
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
mov eax, dword [0x1127bdf8]
jne 0x110b7e10
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
xor ecx, ecx
mov dword [0x1127bdf8], eax
mov word [0x1127bbc0], cx
cmp dword [esi + 4], 0
je 0x110b7f94
test eax, eax
je 0x110b7f94
mov ecx, edi
test ebx, ebx
je 0x110b7f40
mov edx, dword [edi]
mov edx, dword [edx + 0x48]
push 0
push 0xf
lea eax, [ebp - 0x2220]
push eax
mov byte [ebp - 0x221e], 0xa
call edx
push edi
mov ecx, esi
mov byte [ebp - 0x221e], 3
call fcn.110b74a0
mov ecx, edi
call fcn.110c7040
mov esi, dword [esi + 0x28]
push eax
push esi
lea ecx, [ebp - 0x2228]
call fcn.111bb8e0
mov esi, dword [ebp - 0x2228]
mov eax, esi
mov dword [ebp - 4], 2
mov ebx, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x110b7e80
sub eax, edx
mov dword [ebp - 0x2224], eax
je 0x110b7f32
jmp 0x110b7ea6
mov eax, dword [ebp - 0x2224]
cmp eax, 0x2000
ja 0x110b7eb1
mov esi, eax
jmp 0x110b7eef
mov esi, 0x2000
cmp byte [ebx + esi - 1], 0x20
jl 0x110b7ee6
cmp byte [esi + ebx - 2], 0x20
jl 0x110b7edb
cmp byte [esi + ebx - 3], 0x20
jl 0x110b7ede
cmp byte [esi + ebx - 4], 0x20
jl 0x110b7ee3
sub esi, 4
test esi, esi
jg 0x110b7eb6
jmp 0x110b7ee6
dec esi
jmp 0x110b7ee6
sub esi, 2
jmp 0x110b7ee6
sub esi, 3
test esi, esi
jne 0x110b7eef
mov esi, 0x2000
push esi
lea eax, [ebp - 0x2212]
push ebx
push eax
call sub.MSVCR100.dll_memcpy
mov edx, dword [edi]
mov edx, dword [edx + 0x48]
add esp, 0xc
push 0
lea eax, [esi + 0xe]
push eax
lea ecx, [ebp - 0x2220]
push ecx
mov ecx, edi
mov byte [ebp + esi - 0x2212], 0
call edx
add ebx, esi
sub dword [ebp - 0x2224], esi
jne 0x110b7ea0
mov esi, dword [ebp - 0x2228]
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp case.0x110b7cc9.3
mov byte [ebp - 0x221e], 8
call fcn.110c7040
push eax
push 0x40
lea eax, [ebp - 0x2212]
push eax
push 0x1127bbc0
call fcn.111b7fb0
lea eax, [ebp - 0x2212]
add esp, 0x10
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x110b7f70
sub eax, edx
mov edx, dword [edi]
mov edx, dword [edx + 0x48]
push 0
add eax, 0xf
push eax
lea eax, [ebp - 0x2220]
push eax
mov ecx, edi
call edx
jmp case.0x110b7cc9.3
mov eax, dword [esi + 0x28]
mov edx, dword [ebp - 0x2224]
xor ecx, ecx
mov word [eax], cx
push edx
lea eax, [ebp - 0x2224]
push eax
push esi
mov dword [esi + 0x30], ecx
call fcn.110b79d0
mov ebx, dword [ebp - 0x2224]
add esp, 0xc
push edi
mov ecx, esi
mov dword [esi + 8], ebx
call fcn.110b74a0
mov edx, dword [edi]
mov edx, dword [edx + 0x48]
push 0
push 0xf
lea eax, [ebp - 0x2220]
push eax
mov ecx, edi
mov byte [ebp - 0x221e], 9
call edx
push 0x28
call fcn.111709c0
add esp, 4
mov dword [ebp - 0x222c], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x110b8008
push esi
push ebx
mov ecx, eax
call fcn.110b7300
jmp 0x110b800a
xor eax, eax
push 0
push 1
push 0x110b77a0
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 4], eax
call fcn.11170830
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [ebp + eax - 0x210]
mov word [eax + 0x1127bbc0], cx
add eax, 2
test cx, cx
jne 0x110b8030
push 0
push edi
push 0x400
call fcn.11067670
add esp, 0xc
jmp case.0x110b7cc9.3
test ebx, ebx
je case.0x110b7cc9.3
mov eax, dword [0x1127bbbc]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp case.0x110b7cc9.3
test ebx, ebx
je case.0x110b7cc9.3
mov ecx, dword [0x1127bbb8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp case.0x110b7cc9.3
test ebx, ebx
je case.0x110b7cc9.3
mov edx, dword [ebp + 0xc]
push edi
push edx
push ecx
mov ecx, esi
call fcn.110b7500
test eax, eax
jne case.0x110b7cc9.3
mov esi, dword [esi]
test esi, esi
je case.0x110b7cc9.3
push eax
mov dword [ebp - 0x222c], eax
lea eax, [ebp - 0x222c]
push eax
mov eax, dword [ebp - 0x2228]
movzx ecx, word [eax + 0xc]
push ecx
add eax, 0xe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne case.0x110b7cc9.3
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp case.0x110b7cc9.3
test ebx, ebx
je case.0x110b7cc9.3
mov edx, dword [0x1127bbb0]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
test eax, eax
jne 0x110b811e
push str.Close_Write_Pipe
call fcn.110b72b0
add esp, 4
lea ecx, [ebp - 0x2294]
mov dword [esi], 0
call fcn.11030fd0
mov ecx, dword [esi + 8]
push 0
push ecx
lea ecx, [ebp - 0x2294]
mov dword [ebp - 4], 3
call fcn.110b7260
mov edx, dword [esi + 8]
push edx
call ebx
test eax, eax
jne 0x110b815e
push str.Close_Read_Pipe
call fcn.110b72b0
add esp, 4
mov dword [esi + 8], 0
mov eax, dword [0x1127bdf8]
test eax, eax
je 0x110b8199
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x110b8199
mov eax, dword [0x1127bdf8]
push eax
call ebx
xor ecx, ecx
mov dword [0x1127bdf8], 0
mov word [0x1127bbc0], cx
push 0
push edi
push 0x401
call fcn.11067670
mov eax, dword [esi + 4]
add esp, 0xc
test eax, eax
je 0x110b81b7
mov dword [eax + 0x18], 1
mov eax, dword [ebp - 0x2294]
mov dword [esi + 4], 0
test eax, eax
je case.0x110b7cc9.3
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
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.111d9022
mov esp, ebp
pop ebp
ret 0xc