Function at 0x101818f0
Capabilities:
Enumerate pe sections
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x101b6050
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
mov ebp, ecx
push esi
push edi
push 1
lea esi, [ebp + 0x74]
lea ecx, [esp + 0x24]
push esi
call fcn.10187b00
xor ebx, ebx
push 1
push esi
lea ecx, [esp + 0x34]
mov dword [esp + 0x54], ebx
call fcn.10187b00
mov eax, dword [ebp + 0x68]
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x10], edi
jle 0x10181953
mov ecx, dword [ebp + 0x64]
mov edx, dword [esp + 0x54]
cmp edx, dword [ecx]
je 0x10181961
inc edi
add ecx, 0x30
cmp edi, eax
jl 0x10181943
mov dword [esp + 0x10], edi
mov byte [esp + 0x4c], 0
lea ecx, [esp + 0x2c]
jmp 0x10182022
lea ecx, [esp + 0x2c]
mov dword [esp + 0x10], edi
mov byte [esp + 0x4c], 0
call fcn.10187b60
cmp edi, 0xffffffff
je 0x10182027
mov ecx, dword [esp + 0x58]
cmp dword [ecx], ebx
jne 0x101819ee
cmp dword [ecx + 4], 0x6d
jne 0x101819ee
lea eax, [ebp + 0x74]
push 1
push eax
lea ecx, [esp + 0x40]
call fcn.10187b00
mov eax, dword [ebp + 0x64]
lea esi, [edi + edi*2]
shl esi, 4
add esi, eax
mov byte [esp + 0x4c], 2
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
test eax, eax
je 0x101819bb
mov dword [esi + 4], ebx
jmp 0x101819c2
mov dword [esi + 4], 0xffff
mov ecx, esi
call fcn.10182b50
push edi
mov ecx, ebp
mov dword [esi + 0x28], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
call fcn.10182300
mov byte [esp + 0x4c], 0
lea ecx, [esp + 0x38]
jmp 0x10182022
mov edx, dword [ebp + 0x64]
lea ebx, [edi + edi*2]
shl ebx, 4
mov esi, dword [edx + ebx + 0x20]
lea eax, [edx + ebx]
mov edx, dword [ecx + 0xc]
cmp esi, edx
je 0x10181a13
cmp dword [eax + 0x24], edx
je 0x10181dc8
jmp 0x10182027
mov edx, dword [eax + 4]
mov ecx, dword [ecx + 8]
test edx, edx
mov dword [esp + 0x58], ecx
je 0x10181a2a
cmp ecx, 0x20
jb case.0x10181a48.5
mov esi, dword [eax + 0x18]
cmp word [esi], 0xecec
je 0x10181a3f
cmp word [esi + 2], 0
jne case.0x10181a48.5
cmp edx, 7
ja case.0x10181a48.5
jmp dword [edx*4 + 0x10182050]
mov dword [eax + 4], 1
jmp case.0x10181a48.5
cmp word [esi + 6], 1
jne case.0x10181a48.5
mov ecx, dword [esi + 0x14]
mov dword [eax + 0xc], ecx
mov eax, dword [ebp + 0x64]
add eax, ebx
mov ecx, ebp
mov dword [esp + 0x54], eax
call fcn.10181880
mov edx, dword [esp + 0x54]
push 0x20
push esi
push edi
mov dword [edx + 8], eax
mov word [esi + 2], 1
mov eax, dword [ebp + 0x64]
mov ecx, dword [eax + ebx + 8]
mov dword [esi + 8], ecx
mov ecx, ebp
call fcn.10182070
mov edx, dword [ebp + 0x64]
mov dword [edx + ebx + 4], 2
jmp case.0x10181a48.5
cmp word [esi + 6], 2
jne case.0x10181a48.5
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
mov eax, dword [eax + 0xc]
push ecx
push edx
push eax
mov ecx, ebp
call fcn.10182590
test eax, eax
jne 0x10181aed
mov eax, 1
push 0x20
push esi
mov word [esi + 2], ax
mov word [esi + 4], ax
mov dword [esi + 0x14], 0
push edi
jmp 0x10181d19
mov ecx, dword [ebp + 0x64]
mov edx, dword [esi + 0x10]
push 0x20
push esi
mov dword [ecx + ebx + 0x10], edx
mov ecx, dword [ebp + 0x64]
push edi
mov dword [ecx + ebx + 0x14], eax
mov ecx, ebp
mov word [esi + 2], 1
mov word [esi + 4], 0
mov dword [esi + 0x14], eax
call fcn.10182070
mov edx, dword [ebp + 0x64]
mov ecx, dword [edx + ebx + 0xc]
lea eax, [edx + ebx]
cmp ecx, 1
jne 0x10181b33
mov dword [eax + 4], 3
jmp case.0x10181a48.5
cmp ecx, 2
jne case.0x10181a48.5
mov dword [eax + 4], 7
jmp case.0x10181a48.5
mov ax, word [esi + 6]
cmp ax, 3
jne 0x10181b79
push 0x20
push esi
push edi
mov ecx, ebp
mov word [esi + 2], 1
mov word [esi + 4], 0
call fcn.10182070
mov eax, dword [ebp + 0x64]
mov dword [eax + ebx + 4], 4
jmp case.0x10181a48.5
cmp ax, 5
jne case.0x10181a48.5
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
push ecx
push edx
mov ecx, ebp
call fcn.10182670
test eax, eax
mov dword [esp + 0x54], eax
jge 0x10181bb0
mov eax, 1
push 0x20
push esi
mov word [esi + 2], ax
mov word [esi + 4], ax
push edi
jmp 0x10181d19
mov word [esi + 2], 1
mov eax, dword [ebp + 0x64]
mov ecx, dword [eax + ebx + 0x10]
mov dword [esi + 0x10], ecx
mov edx, dword [ebp + 0x64]
mov ecx, ebp
mov eax, dword [edx + ebx + 0x14]
mov dword [esi + 0x14], eax
call fcn.10181880
mov dword [esi + 8], eax
mov ecx, dword [ebp + 0x64]
mov eax, dword [esp + 0x54]
push 0x20
mov edx, dword [ecx + ebx + 8]
push esi
push eax
mov ecx, ebp
mov dword [esi + 0xc], edx
call fcn.10182070
mov ecx, dword [ebp + 0x64]
mov dword [ecx + ebx + 4], 5
jmp case.0x10181a48.5
cmp word [esi + 6], 4
jne case.0x10181a48.5
mov edx, dword [esi + 0xc]
lea eax, [ebp + 0x74]
push 1
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x1c], edx
call fcn.10187b00
mov ecx, dword [ebp + 0x68]
mov dword [esp + 0x54], 0
test ecx, ecx
jle 0x10181c4b
mov eax, dword [ebp + 0x64]
add eax, 8
mov edx, dword [eax]
cmp edx, dword [esp + 0x14]
je 0x10181c5e
mov edx, dword [esp + 0x54]
add eax, 0x30
inc edx
cmp edx, ecx
mov dword [esp + 0x54], edx
jl 0x10181c33
lea ecx, [esp + 0x38]
mov byte [esp + 0x4c], 0
call fcn.10187b60
jmp case.0x10181a48.5
lea ecx, [esp + 0x38]
mov byte [esp + 0x4c], 0
call fcn.10187b60
mov eax, dword [esp + 0x54]
test eax, eax
jl case.0x10181a48.5
mov ecx, dword [ebp + 0x64]
lea eax, [eax + eax*2]
shl eax, 4
cmp dword [eax + ecx + 4], 5
jne case.0x10181a48.5
mov word [esi + 2], 1
mov word [esi + 6], 5
mov edx, dword [ebp + 0x64]
mov eax, dword [edx + ebx + 0x10]
mov dword [esi + 0x10], eax
mov ecx, dword [ebp + 0x64]
mov eax, dword [esi + 8]
mov edx, dword [ecx + ebx + 0x14]
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x14], edx
mov edx, dword [esp + 0x58]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x54]
push edx
mov dword [esi + 8], ecx
push esi
jmp 0x10181d18
cmp word [esi + 6], 6
jne case.0x10181a48.5
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
push ecx
push edx
mov ecx, ebp
call fcn.10182730
test eax, eax
jl case.0x10181a48.5
mov word [esi + 2], 1
mov ecx, dword [ebp + 0x64]
mov edx, dword [ecx + ebx + 0x10]
mov dword [esi + 0x10], edx
mov ecx, dword [ebp + 0x64]
mov edx, dword [ecx + ebx + 0x14]
lea ecx, [eax + eax*2]
mov dword [esi + 0x14], edx
mov edx, dword [ebp + 0x64]
shl ecx, 4
mov ecx, dword [ecx + edx + 8]
mov dword [esi + 0xc], ecx
mov edx, dword [ebp + 0x64]
mov ecx, dword [edx + ebx + 8]
mov edx, dword [esp + 0x58]
push edx
mov dword [esi + 8], ecx
push esi
push eax
mov ecx, ebp
call fcn.10182070
push edi
mov ecx, ebp
call fcn.10182220
test eax, eax
jne 0x10182027
lea eax, [ebp + 0x74]
push 1
push eax
lea ecx, [esp + 0x40]
call fcn.10187b00
mov esi, dword [ebp + 0x64]
mov byte [esp + 0x4c], 4
add ebx, esi
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
test eax, eax
je 0x10181d5d
xor edi, edi
mov dword [ebx + 4], edi
jmp 0x10181d66
mov dword [ebx + 4], 0xffff
xor edi, edi
mov eax, dword [ebx + 0x2c]
cmp eax, edi
je 0x10181d9f
cmp dword [eax + 0xc], edi
je 0x10181d9f
mov esi, dword [eax]
mov eax, dword [esi + 0xc]
add esi, 8
cmp eax, edi
je 0x10181d8a
push eax
call fcn.10197127
add esp, 4
mov dword [esi + 4], edi
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [ebx + 0x2c]
call fcn.10182c30
mov eax, dword [ebx + 0x2c]
cmp dword [eax + 0xc], edi
jne 0x10181d72
mov edx, dword [esp + 0x10]
mov ecx, ebp
push edx
mov dword [ebx + 0x28], edi
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], edi
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], edi
call fcn.10182300
mov byte [esp + 0x4c], 0
lea ecx, [esp + 0x38]
jmp 0x10182022
mov esi, dword [eax + 0x2c]
xor edx, edx
xor edi, edi
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0xc]
mov dword [esp + 0x18], edi
cmp eax, edx
je 0x10181e46
cmp edi, edx
jne 0x10181e56
mov eax, dword [esi]
mov ecx, dword [eax + 8]
mov dword [esp + 0x14], ecx
mov ecx, eax
mov edi, dword [eax + 0xc]
mov eax, dword [ecx]
mov dword [esp + 0x18], edi
cmp eax, edx
mov dword [esi], eax
je 0x10181e01
mov dword [eax + 4], edx
jmp 0x10181e04
mov dword [esi + 4], edx
mov eax, dword [esi + 0x10]
cmp eax, dword [esi + 0x14]
jge 0x10181e1d
mov eax, dword [esi + 8]
mov dword [ecx], eax
mov eax, dword [esi + 0x10]
inc eax
mov dword [esi + 8], ecx
mov dword [esi + 0x10], eax
jmp 0x10181e28
push ecx
call fcn.10197127
add esp, 4
xor edx, edx
mov eax, dword [esi + 0xc]
dec eax
mov dword [esi + 0xc], eax
jne 0x10181e3a
mov ecx, esi
call fcn.10182e20
xor edx, edx
mov ecx, dword [ebp + 0x64]
mov esi, dword [ecx + ebx + 0x2c]
cmp dword [esi + 0xc], edx
jne 0x10181dde
cmp edi, edx
jne 0x10181e56
mov eax, dword [ebp + 0x64]
mov dword [ebx + eax + 0x28], edx
jmp 0x10182027
mov ecx, dword [esp + 0x14]
mov eax, 0x640
cmp ecx, eax
jbe 0x10181e67
mov dword [esp + 0x14], eax
mov edx, dword [ebp + 0x64]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edi, dword [edx + ebx + 0x1c]
mov edx, ecx
mov esi, eax
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.10197127
mov eax, dword [ebp + 0x64]
xor esi, esi
mov dword [esp + 0x5c], esi
add esp, 4
mov ecx, dword [eax + ebx + 0x24]
mov dword [ecx], esi
mov edx, dword [ebp + 0x64]
mov eax, dword [edx + ebx + 0x24]
mov dword [eax + 4], esi
mov ecx, dword [ebp + 0x64]
mov edx, dword [ecx + ebx + 0x24]
mov dword [edx + 8], esi
mov eax, dword [ebp + 0x64]
mov ecx, dword [eax + ebx + 0x24]
mov dword [ecx + 0xc], esi
mov edx, dword [ebp + 0x64]
mov ecx, dword [edx + ebx + 0x24]
lea eax, [edx + ebx]
lea edx, [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [eax + 0x1c]
mov eax, dword [eax]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, esi
jne 0x10182027
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x10182027
lea eax, [ebp + 0x74]
push 1
push eax
lea ecx, [esp + 0x1c]
call fcn.10187b00
mov esi, dword [ebp + 0x64]
mov byte [esp + 0x4c], 5
add ebx, esi
mov edi, ebx
mov dword [esp + 0x54], edi
mov ecx, dword [edi]
push ecx
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
test eax, eax
je 0x10181f2a
xor ebx, ebx
mov dword [edi + 4], ebx
jmp 0x10181f33
mov dword [edi + 4], 0xffff
xor ebx, ebx
mov eax, dword [edi + 0x2c]
cmp eax, ebx
je 0x10181ffe
cmp dword [eax + 0xc], ebx
je 0x10181ffe
mov esi, dword [eax]
mov eax, dword [esi + 0xc]
add esi, 8
cmp eax, ebx
je 0x10181f5f
push eax
call fcn.10197127
add esp, 4
mov dword [esi + 4], ebx
mov esi, dword [edi + 0x2c]
mov ecx, dword [esi]
mov eax, dword [ecx]
cmp eax, ebx
mov dword [esi], eax
je 0x10181f71
mov dword [eax + 4], ebx
jmp 0x10181f74
mov dword [esi + 4], ebx
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
cmp edx, eax
jge 0x10181f8f
mov eax, dword [esi + 8]
mov dword [ecx], eax
mov eax, dword [esi + 0x10]
inc eax
mov dword [esi + 8], ecx
mov dword [esi + 0x10], eax
jmp 0x10181f98
push ecx
call fcn.10197127
add esp, 4
mov eax, dword [esi + 0xc]
dec eax
mov dword [esi + 0xc], eax
jne 0x10181ff2
mov eax, dword [esi]
mov ecx, eax
cmp ecx, ebx
je 0x10181faf
mov ecx, dword [ecx]
cmp ecx, ebx
jne 0x10181fa9
cmp eax, ebx
je 0x10181fc8
mov edi, dword [eax]
push eax
call fcn.10197127
add esp, 4
cmp edi, ebx
mov eax, edi
jne 0x10181fb3
mov edi, dword [esp + 0x54]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], ebx
cmp eax, ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
je 0x10181fec
mov edi, dword [eax]
push eax
call fcn.10197127
add esp, 4
cmp edi, ebx
mov eax, edi
jne 0x10181fd7
mov edi, dword [esp + 0x54]
mov dword [esi + 0x10], ebx
mov dword [esi + 8], ebx
mov eax, dword [edi + 0x2c]
cmp dword [eax + 0xc], ebx
jne 0x10181f47
mov ecx, dword [esp + 0x10]
mov dword [edi + 0x28], ebx
push ecx
mov ecx, ebp
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
call fcn.10182300
mov byte [esp + 0x4c], 0
lea ecx, [esp + 0x14]
call fcn.10187b60
lea ecx, [esp + 0x20]
mov dword [esp + 0x4c], 0xffffffff
call fcn.10187b60
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 8