Function at 0x1400b50d8
Capabilities:
Check for time delay via gettickcount
Check mutex on windows
Connect pipe
Create mailslot
Create pipe
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x298
lea rcx, [rax + 0x20]
call fcn.1400504b8
lea rcx, [rsp + 0x2f8]
call fcn.1400504a8
xor esi, esi
cmp eax, esi
jne 0x1400b511e
lea eax, [rsi + 1]
jmp 0x1400b6c25
lea rcx, [rsp + 0x2f8]
call fcn.14005078c
lea rcx, [rsp + 0xb8]
call fcn.140055fcc
lea rcx, [rsp + 0x118]
call fcn.140055fcc
lea rcx, [rsp + 0x128]
call fcn.140055fcc
lea rcx, [rsp + 0x110]
call fcn.140055fcc
mov r12d, 2
lea rcx, [rsp + 0x2e8]
lea r15d, [r12 - 1]
mov rbx, rsi
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x88], 6
mov r14b, sil
mov byte [rsp + 0x41], sil
mov ebp, r15d
mov dword [rsp + 0x80], r15d
mov dword [rsp + 0x68], r15d
mov byte [rsp + 0x60], sil
call fcn.14004ea3c
mov rdi, qword [rsp + 0x2e8]
lea ecx, [r12 + 0x2b]
mov r13b, sil
mov byte [rsp + 0x2f8], sil
mov dword [rsp + 0x70], 3
lea r8d, [r12 + 2]
lea eax, [rcx - 3]
cmp cx, word [rdi]
jne 0x1400b5488
lea r11d, [r12 + 7]
cmp cx, word [rdi + 2]
jne 0x1400b5477
lea rcx, str.__gethostbyname
mov r8d, 0xf
mov rdx, rdi
call fcn.14004fdfc
cmp al, sil
je 0x1400b5296
add rdi, 0x1e
mov qword [rsp + 0x2e8], rdi
movzx eax, word [rdi]
cmp ax, si
je 0x1400b5231
cmp r11w, ax
ja 0x1400b5225
cmp ax, 0xd
jbe 0x1400b5231
mov edx, 0x20
cmp dx, ax
jne 0x1400b5239
jmp 0x1400b5236
mov edx, 0x20
mov r13b, r15b
cmp ax, si
je 0x1400b5454
mov ecx, 0x2a
lea ebp, [rcx - 0x26]
lea r14d, [rcx - 7]
cmp r11w, ax
ja 0x1400b525a
cmp ax, 0xd
jbe 0x1400b5285
cmp dx, ax
je 0x1400b5285
cmp cx, ax
jne 0x1400b5269
or r13b, r12b
jmp 0x1400b5272
cmp r14w, ax
jne 0x1400b5272
or r13b, bpl
add rdi, r12
mov qword [rsp + 0x2e8], rdi
mov ax, word [rdi]
cmp ax, si
jne 0x1400b524e
mov ebp, dword [rsp + 0x80]
mov r14b, byte [rsp + 0x41]
jmp 0x1400b5454
or rdi, 0xffffffffffffffff
lea rdx, [rsp + 0x2e8]
lea rcx, str.__file
mov r8d, edi
call fcn.140058710
cmp al, sil
je 0x1400b52c8
mov ebp, edi
mov dword [rsp + 0x80], edi
mov dword [rsp + 0x68], edi
jmp 0x1400b540e
lea rdx, [rsp + 0x2e8]
lea rcx, str.__shm
mov r8d, edi
call fcn.140058710
cmp al, sil
je 0x1400b52ee
mov ebp, 0xfffffffe
jmp 0x1400b53ba
lea rdx, [rsp + 0x2e8]
lea rcx, str.__event
mov r8d, edi
call fcn.140058710
cmp al, sil
je 0x1400b5314
mov ebp, 0xfffffffc
jmp 0x1400b53ba
lea rdx, [rsp + 0x2e8]
lea rcx, str.__semaphore
mov r8d, edi
call fcn.140058710
cmp al, sil
jne 0x1400b534c
lea rdx, [rsp + 0x2e8]
lea rcx, str.__sem
mov r8d, edi
call fcn.140058710
cmp al, sil
je 0x1400b5353
mov ebp, 0xffffffe0
jmp 0x1400b53ba
lea rdx, [rsp + 0x2e8]
lea rcx, str.__mutex
mov r8d, edi
call fcn.140058710
cmp al, sil
je 0x1400b5376
mov ebp, 0xffffffc0
jmp 0x1400b53ba
lea rdx, [rsp + 0x2e8]
lea rcx, str.__mailslot
mov r8d, edi
call fcn.140058710
cmp al, sil
je 0x1400b5399
mov ebp, 0xfffffff8
jmp 0x1400b53ba
lea rdx, [rsp + 0x2e8]
lea rcx, str.__pipe
mov r8d, edi
call fcn.140058710
cmp al, sil
je 0x1400b53c7
mov ebp, 0xfffffff0
mov dword [rsp + 0x80], ebp
mov dword [rsp + 0x68], ebp
jmp 0x1400b540e
lea rdx, [rsp + 0x2e8]
lea rcx, str.__exist
mov r8d, edi
call fcn.140058710
cmp al, sil
je 0x1400b53ed
mov r14b, r15b
mov byte [rsp + 0x41], r15b
jmp 0x1400b540e
lea rdx, [rsp + 0x2e8]
lea rcx, str.__only
mov r8d, edi
call fcn.140058710
cmp al, sil
je 0x1400b5416
mov byte [rsp + 0x60], r15b
mov r11d, 9
jmp 0x1400b5461
mov rcx, qword [rsp + 0x2e8]
mov r11d, 9
movzx eax, word [rcx]
cmp ax, si
je 0x1400b5454
lea edx, [r11 + 0x17]
cmp r11w, ax
ja 0x1400b543c
cmp ax, 0xd
jbe 0x1400b5454
cmp dx, ax
je 0x1400b5454
add rcx, r12
mov qword [rsp + 0x2e8], rcx
mov ax, word [rcx]
cmp ax, si
jne 0x1400b5430
lea rcx, [rsp + 0x2e8]
call fcn.14004ea3c
mov rdi, qword [rsp + 0x2e8]
mov ecx, 0x2d
cmp cx, word [rdi]
je 0x1400b51dd
mov eax, 0x2a
mov byte [rsp + 0x2f8], r13b
lea r8d, [rax - 0x26]
mov byte [rsp + 0x62], sil
cmp ax, word [rdi]
jne 0x1400b54b7
add rdi, r12
lea rcx, [rsp + 0x2e8]
mov byte [rsp + 0x62], r15b
mov qword [rsp + 0x2e8], rdi
call fcn.14004ea3c
mov rdi, qword [rsp + 0x2e8]
mov rax, qword [rsp + 0x2e0]
or dword [rsp + 0xa8], 0xffffffff
mov byte [rsp + 0x40], sil
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0x2f0]
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0xd0], rax
mov eax, 0x3a
mov dword [rsp + 0xa0], 0x100000
mov dword [rsp + 0x78], 0x80000001
cmp ax, word [rdi]
jne 0x1400b553a
cmp ax, word [rdi + 2]
jne 0x1400b553a
lea rax, [0x140106ec0]
add rdi, r8
mov byte [rsp + 0x40], r15b
mov qword [rsp + 0xc0], rax
mov rax, qword [0x140106f00]
mov qword [rsp + 0x2e8], rdi
mov qword [rsp + 0xd0], rax
mov rdi, qword [rsp + 0x2e0]
mov eax, 0x3b
lea r8, [rsp + 0xb8]
lea rdx, [rsp + 0x2e8]
lea r9d, [rax - 0xf]
mov rcx, rdi
mov word [rsp + 0x20], ax
call fcn.140048864
mov dl, sil
mov byte [rsp + 0x50], dl
mov r10d, 0xffdf
mov r11d, 0x57
cmp ebp, 0xfffffffe
jne 0x1400b55d6
mov rcx, qword [rsp + 0x2e8]
movzx eax, word [rcx]
and ax, r10w
cmp r11w, ax
jne 0x1400b55a5
add rcx, r12
mov byte [rsp + 0x50], r15b
mov qword [rsp + 0x2e8], rcx
movzx eax, word [rcx]
cmp ax, si
je 0x1400b55ed
mov edx, 0x3b
lea r8d, [rdx - 0xf]
add rcx, r12
mov qword [rsp + 0x2e8], rcx
cmp r8w, ax
je 0x1400b55ed
cmp dx, ax
je 0x1400b55ed
mov ax, word [rcx]
cmp ax, si
jne 0x1400b55b6
jmp 0x1400b55ed
cmp ebp, 0xfffffffc
je 0x1400b55e5
cmp ebp, 0xffffffe0
je 0x1400b55e5
cmp ebp, 0xffffffc0
jne 0x1400b564b
mov rcx, qword [rsp + 0x2e8]
mov eax, 0x2e
cmp ax, word [rcx]
jne 0x1400b560b
add rcx, r12
lea rdx, str.Local_
mov qword [rsp + 0x2e8], rcx
jmp 0x1400b5627
mov eax, 0x23
cmp ax, word [rcx]
jne 0x1400b5620
add rcx, r12
mov qword [rsp + 0x2e8], rcx
lea rdx, [0x1400f58d0]
or rax, 0xffffffffffffffff
lea rcx, [rsp + 0x58]
mov r9, rax
mov r8, rax
call fcn.140056188
mov dl, byte [rsp + 0x50]
mov r11d, 0x57
mov r10d, 0xffdf
cmp r13b, sil
je 0x1400b58f9
lea rcx, [rsp + 0x98]
call fcn.140055fcc
mov eax, 0x3b
lea r8, [rsp + 0x98]
lea rdx, [rsp + 0x2e8]
lea r9d, [rax - 0xf]
mov rcx, rdi
mov word [rsp + 0x20], ax
call fcn.140048864
mov rdx, qword [rsp + 0x98]
mov eax, 4
lea rcx, [rsp + 0x90]
mov r14d, esi
movzx ebx, ax
mov word [rsp + 0x60], ax
or rax, 0xffffffffffffffff
mov r9, rax
mov r8, rax
mov qword [rsp + 0x90], rsi
call fcn.140055f08
lea rcx, [rsp + 0x48]
call fcn.140055fcc
mov rdi, qword [rsp + 0x90]
mov dword [rsp + 0x88], esi
lea r13, [rsp + 0x88]
mov byte [rsp + 0x40], r15b
mov rbp, rsi
cmp rdi, rsi
je 0x1400b5743
cmp byte [rdi], sil
je 0x1400b570d
mov rcx, rdi
call qword [0x1401072c0]
mov dword [rsp + 0x88], eax
cmp eax, 0xffffffff
jne 0x1400b5743
mov dword [rsp + 0x88], esi
mov rcx, rdi
call qword [0x1401072c8]
cmp rax, rsi
je 0x1400b5743
mov rbp, qword [rax + 0x18]
mov bx, word [rax + 0x12]
mov word [rsp + 0x60], bx
cmp qword [rbp], rsi
je 0x1400b5743
mov al, byte [rsp + 0x2f8]
mov rdi, qword [rsp + 0x48]
mov byte [rsp + 0x40], al
jmp 0x1400b58ab
mov eax, 4
test byte [rsp + 0x2f8], al
je 0x1400b5802
lea eax, [r14 + 0x3e]
lea rcx, [rsp + 0x48]
movsxd rdx, eax
call fcn.1400560cc
mov rdi, qword [rsp + 0x48]
xor eax, eax
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0xf0], rax
movsx eax, bx
mov ecx, 0x20
movsxd r11, r14d
cmp eax, ecx
lea r15, [rdi + r11*2]
mov rdx, r13
cmova eax, ecx
lea rcx, [rsp + 0xd8]
mov qword [rsp + 0x2e8], r15
movsxd r8, eax
mov qword [rsp + 0xd8], rsi
call fcn.14001a4c0
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x2e8]
lea r8, str.0x_08I64X
call fcn.1400bc0c4
mov rcx, qword [rsp + 0x2e8]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
mov rax, qword [rsp + 0x2e8]
lea rdx, [rax + rcx*2]
mov qword [rsp + 0x2e8], rdx
jmp 0x1400b588a
movsx ebx, bx
lea eax, [rbx + rbx*2]
lea ecx, [r14 + rax*2]
movsxd rdx, ecx
lea rcx, [rsp + 0x48]
call fcn.1400560cc
mov rdi, qword [rsp + 0x48]
movsxd r11, r14d
lea rax, [rdi + r11*2]
dec ebx
cmp ebx, esi
lea rdx, [rax + 2]
mov qword [rsp + 0x2e8], rax
mov r15, rax
jl 0x1400b587f
movzx r8d, byte [r13]
lea rdx, [0x1400f5df8]
mov rcx, rax
call qword [sym.imp.USER32.dll_wsprintfW]
mov rcx, qword [rsp + 0x2e8]
inc r13
call qword [sym.imp.KERNEL32.dll_lstrlenW]
sub ebx, 1
movsxd rcx, eax
mov rax, qword [rsp + 0x2e8]
lea rax, [rax + rcx*2]
mov qword [rsp + 0x2e8], rax
mov rdx, rax
jns 0x1400b583a
mov bx, word [rsp + 0x60]
sub rdx, r12
mov word [rdx], si
test byte [rsp + 0x40], r12b
je 0x1400b58bd
cmp qword [rbp], rsi
je 0x1400b58bd
mov eax, 0x20
mov word [rdx], ax
sub rdx, r15
add rdx, r12
sar rdx, 1
add r14d, edx
mov r13, qword [rbp]
cmp r13, rsi
je 0x1400b58bd
add rbp, 8
jmp 0x1400b5743
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x2e0]
mov r8, rdi
call fcn.140055710
lea rcx, [rsp + 0x48]
call fcn.14004ea6c
lea rcx, [rsp + 0x90]
call fcn.14004ea6c
lea rcx, [rsp + 0x98]
jmp 0x1400b5b45
or r13, 0xffffffffffffffff
mov qword [rsp + 0xc8], rsi
cmp ebp, r13d
jne 0x1400b5bb9
mov rcx, qword [rsp + 0x2e8]
mov r13d, 0x80000000
mov r14d, 7
movzx eax, word [rcx]
mov edx, esi
and ax, r10w
cmp r11w, ax
jne 0x1400b594a
add rcx, r12
mov r13d, 0xc0000000
mov dword [rsp + 0x70], 4
mov qword [rsp + 0x2e8], rcx
mov eax, 0x2d
cmp ax, word [rcx]
jne 0x1400b5965
add rcx, r12
mov r14d, esi
mov edx, r15d
mov qword [rsp + 0x2e8], rcx
movzx eax, word [rcx]
movsxd rdx, edx
cmp ax, si
je 0x1400b59dd
mov ebp, 4
lea r9d, [rbp + 0x37]
lea r8d, [rbp + 0x28]
add rcx, r12
mov qword [rsp + 0x2e8], rcx
cmp r8w, ax
je 0x1400b59d6
cmp r9w, ax
je 0x1400b59d6
and ax, r10w
cmp rdx, rsi
je 0x1400b59ce
mov r8d, 0x52
cmp r8w, ax
jne 0x1400b59ae
or r14d, r15d
jmp 0x1400b59c8
cmp r11w, ax
jne 0x1400b59b9
or r14d, r12d
jmp 0x1400b59c8
mov r8d, 0x44
cmp r8w, ax
jne 0x1400b59c8
or r14d, ebp
mov r8d, 0x2c
mov ax, word [rcx]
cmp ax, si
jne 0x1400b597d
mov ebp, dword [rsp + 0x80]
lea rcx, [rsp + 0x2f8]
call fcn.140055fcc
mov eax, 0x3b
lea r8, [rsp + 0x2f8]
lea rdx, [rsp + 0x2e8]
lea r9d, [rax - 0xf]
mov rcx, rdi
mov word [rsp + 0x20], ax
call fcn.140048864
mov rcx, qword [rsp + 0x2f8]
call fcn.1400188a8
mov rdi, rax
cmp word [rax], si
jne 0x1400b5a49
lea rcx, [rsp + 0x2f8]
call fcn.14004ea6c
cmp byte [rsp + 0x41], sil
jne 0x1400b6991
mov rsi, 0xffffffff80070057
jmp 0x1400b6be4
cmp dword [rsp + 0x70], 3
jne 0x1400b5ae0
cmp r14d, esi
je 0x1400b5ae0
mov eax, 0x5c
cmp ax, word [rdi]
jne 0x1400b5abc
cmp ax, word [rdi + 2]
jne 0x1400b5abc
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], esi
lea rcx, [rsp + 0xb0]
xor r9d, r9d
mov r8d, r13d
mov rdx, rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0x20], rsi
call fcn.140003590
mov rcx, qword [rsp + 0xb0]
cmp rcx, rsi
je 0x1400b5b17
cmp rcx, 0xffffffffffffffff
je 0x1400b5ae0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400b5ae0
mov rcx, rdi
call fcn.1400cbe58
movabs rcx, 0x100000010
and rax, rcx
movabs rcx, 0x100000000
cmp rax, rcx
jne 0x1400b5b17
mov ebx, dword [rsp + 0x70]
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], esi
lea rcx, [rsp + 0xb0]
mov r9d, r14d
mov r8d, r13d
mov rdx, rdi
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0x20], rsi
call fcn.140003590
mov rbx, rax
cmp byte [rsp + 0x41], sil
je 0x1400b5b30
lea rcx, [rsp + 0x2f8]
call fcn.14004ea6c
jmp 0x1400b697e
cmp rbx, rsi
jne 0x1400b5b4f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x2f8]
mov esi, eax
call fcn.14004ea6c
jmp 0x1400b6be4
lea rcx, [rsp + 0x2f8]
call fcn.14004ea6c
mov r15, rsi
mov r13, qword [rsp + 0xd0]
mov dil, byte [rsp + 0x40]
mov r14, qword [rsp + 0xc0]
cmp r13, rsi
jne 0x1400b6b29
mov al, dil
mov rcx, r14
neg al
sbb rdx, rdx
and rdx, qword [rsp + 0x2e0]
call fcn.140017ef4
mov r13, qword [r14 + 0x40]
cmp r13, rsi
jne 0x1400b6b29
cmp rbx, rsi
je 0x1400b5a3d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400b5a3d
cmp ebp, 0xfffffffe
jne 0x1400b6113
lea eax, [rbp + 6]
mov r15d, r12d
mov dword [rsp + 0x2f8], 0x80000000
mov dword [rsp + 0x78], esi
mov rdi, rsi
mov qword [rsp + 0xb0], rsi
mov r14d, eax
mov qword [rsp + 0x98], rsi
mov r13, rsi
mov qword [rsp + 0x90], rsi
mov rbp, rsi
cmp dl, sil
je 0x1400b5c1a
mov r14d, dword [rsp + 0x88]
mov r15d, eax
mov dword [rsp + 0x2f8], 0xc0000000
mov dword [rsp + 0x70], eax
lea rcx, [rsp + 0x48]
call fcn.140055fcc
lea rcx, [rsp + 0xa8]
call fcn.140055fcc
mov rbx, qword [rsp + 0x2e0]
mov eax, 0x3b
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x2e8]
lea r9d, [rax - 0xf]
mov rcx, rbx
mov word [rsp + 0x20], ax
call fcn.140048864
mov rdx, qword [rsp + 0x2e8]
cmp word [rdx], si
je 0x1400b5d06
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x2e8]
call fcn.140063ef4
mov rdx, qword [rsp + 0x2e8]
cmp word [rdx], si
je 0x1400b5cfc
add rdx, r12
mov eax, 0x3b
lea r8, [rsp + 0xa8]
mov qword [rsp + 0x2e8], rdx
lea r9d, [rax - 0xf]
lea rdx, [rsp + 0x2e8]
mov rcx, rbx
mov word [rsp + 0x20], ax
call fcn.140048864
mov rdx, qword [rsp + 0x2e8]
cmp word [rdx], si
je 0x1400b5cfc
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x2e8]
call fcn.140063ef4
mov rdx, qword [rsp + 0x2e8]
mov rbx, qword [rsp + 0x98]
mov rdi, qword [rsp + 0xb0]
jmp 0x1400b5d09
mov rbx, qword [rsp + 0x98]
jmp 0x1400b5d09
mov rbx, rsi
mov rax, qword [rsp + 0x48]
cmp word [rax], si
je 0x1400b60f7
cmp rbx, rsi
jl 0x1400b60f7
cmp rdi, rsi
jl 0x1400b60f7
cmp word [rdx], si
je 0x1400b5d92
add rdx, r12
lea rcx, [rsp + 0x2e8]
mov qword [rsp + 0x2e8], rdx
lea rdx, [rsp + 0x90]
call fcn.14008a3ec
mov rcx, qword [rsp + 0x2e8]
cmp eax, esi
mov dword [rsp + 0x78], eax
cmovg rbp, rbx
mov qword [rsp + 0x98], rbp
cmp word [rcx], si
je 0x1400b5d8a
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x2e8]
call fcn.14008a3ec
mov rbp, qword [rsp + 0x98]
mov r13, qword [rsp + 0x90]
or qword [rsp + 0x98], 0xffffffffffffffff
lea rdx, str.pecmd2012.shm.
lea rcx, [rsp + 0x58]
mov r12, rsi
call fcn.140056108
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x58]
call fcn.140056108
mov rdx, qword [rsp + 0xa8]
movzx edx, word [rdx]
movzx eax, dx
neg ax
sbb eax, eax
not eax
and eax, 8
neg dx
sbb ecx, ecx
mov dword [rsp + 0x68], eax
xor edx, edx
not ecx
and ecx, 4
add eax, ecx
mov dword [rsp + 0xa0], ecx
mov ecx, r14d
cdqe
add rbx, rax
mov qword [rsp + 0x120], rax
lea rax, [rbx + rdi]
mov rdi, qword [rsp + 0x58]
mov qword [rsp + 0x90], rbx
mov r8, rdi
mov qword [rsp + 0x130], rax
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, esi
cmp byte [rsp + 0x41], sil
je 0x1400b5e56
lea rcx, [rsp + 0xa8]
call fcn.14004ea6c
lea rcx, [rsp + 0x48]
call fcn.14004ea6c
mov r15d, 1
jmp 0x1400b697e
cmp rbx, rsi
jne 0x1400b5f7c
mov rcx, qword [rsp + 0xa8]
cmp word [rcx], si
je 0x1400b5ed9
call fcn.1400188a8
mov ecx, dword [rsp + 0x70]
mov r8d, dword [rsp + 0x2f8]
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], ecx
lea rcx, [rsp + 0x98]
mov r9d, 7
mov rdx, rax
mov qword [rsp + 0x98], rsi
mov qword [rsp + 0x20], rsi
call fcn.140003590
mov qword [rsp + 0x98], rax
cmp rax, rsi
jne 0x1400b5ed9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0xa8]
mov esi, eax
call fcn.14004ea6c
lea rcx, [rsp + 0x48]
jmp 0x1400b5b45
xor edx, edx
lea rcx, [rsp + 0x1e9]
mov byte [rsp + 0x1e8], sil
lea r8d, [rdx + 0x27]
call fcn.1400cc8d0
lea rax, [rsp + 0x1e8]
lea rcx, [rsp + 0x188]
mov qword [rsp + 0x188], rax
mov dword [rsp + 0x180], 0x18
mov dword [rsp + 0x190], esi
call fcn.140051bbc
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x28], rdi
mov rdi, qword [rsp + 0x98]
mov r9, rax
lea rdx, [rsp + 0x180]
shr r9, 0x20
mov r8d, r15d
mov rcx, rdi
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsp + 0x90]
cmp rbp, rsi
mov r14d, 1
cmovle rbp, r8
cmp rbx, rsi
je 0x1400b5fc0
jmp 0x1400b5f8c
mov rdi, qword [rsp + 0x98]
mov r8, qword [rsp + 0x90]
mov rcx, qword [rsp + 0xb0]
and r15d, 4
mov qword [rsp + 0x20], r8
mov rax, rcx
or r15d, 8
mov r9d, ecx
sar rax, 0x20
shr r15d, 1
mov rcx, rbx
mov r8d, eax
mov edx, r15d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r12, rax
cmp rdi, 0xffffffffffffffff
je 0x1400b5fcf
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp r12, rsi
jne 0x1400b5ff5
cmp rbx, rsi
je 0x1400b5eba
cmp rbx, 0xffffffffffffffff
je 0x1400b5eba
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400b5eba
mov r15, qword [rsp + 0x90]
mov eax, dword [rsp + 0x68]
sub r15, qword [rsp + 0x120]
cmp r14d, esi
je 0x1400b6016
cmp eax, esi
je 0x1400b6016
mov qword [r12], r15
cdqe
add r12, rax
cmp r14d, esi
je 0x1400b60d4
movsxd rax, dword [rsp + 0xa0]
cmp eax, esi
je 0x1400b603e
lea rcx, [r15 + r12]
mov r8, rax
xor edx, edx
call fcn.1400cc8d0
cmp r14d, esi
je 0x1400b60d4
cmp dword [rsp + 0x78], esi
jle 0x1400b60d4
cmp rbp, rsi
jle 0x1400b60d4
cmp r12, rsi
je 0x1400b60d4
movabs rcx, 0x100000000
cmp r13, rcx
jb 0x1400b6083
shr rbp, 3
sub rbp, 1
js 0x1400b60d4
lea rcx, [rbp + 1]
mov rdi, r12
mov rax, r13
rep stosq qword [rdi], rax
jmp 0x1400b60d4
cmp r13, 0x10000
jb 0x1400b60a4
shr rbp, 2
sub rbp, 1
js 0x1400b60d4
lea rcx, [rbp + 1]
mov eax, r13d
mov rdi, r12
rep stosd dword [rdi], eax
jmp 0x1400b60d4
cmp r13, 0x100
jb 0x1400b60c6
shr rbp, 1
sub rbp, 1
js 0x1400b60d4
lea rcx, [rbp + 1]
movzx eax, r13w
mov rdi, r12
rep stosw word [rdi], ax
jmp 0x1400b60d4
mov r8, rbp
mov edx, r13d
mov rcx, r12
call fcn.1400cc8d0
lea rcx, [rsp + 0xa8]
call fcn.14004ea6c
lea rcx, [rsp + 0x48]
call fcn.14004ea6c
mov ebp, dword [rsp + 0x80]
jmp 0x1400b5b5f
lea rcx, [rsp + 0xa8]
call fcn.14004ea6c
lea rcx, [rsp + 0x48]
call fcn.14004ea6c
jmp 0x1400b5a3d
cmp ebp, 0xfffffffc
jne 0x1400b62df
lea rcx, [rsp + 0xa0]
call fcn.140055fcc
lea rcx, [rsp + 0x48]
call fcn.140055fcc
lea eax, [rbp + 0x3f]
lea r9d, [rbp + 0x30]
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0x2e8]
mov rcx, rdi
mov word [rsp + 0x20], ax
call fcn.140048864
mov rdx, qword [rsp + 0xa0]
cmp word [rdx], si
jne 0x1400b6178
lea rcx, [rsp + 0x48]
call fcn.14004ea6c
lea rcx, [rsp + 0xa0]
jmp 0x1400b6109
lea rdx, [rsp + 0x2f8]
lea rcx, [rsp + 0x2e8]
mov dword [rsp + 0x2f8], esi
mov dword [rsp + 0x70], esi
mov dword [rsp + 0x78], esi
call fcn.1400068e8
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x2e8]
call fcn.1400068e8
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x2e8]
call fcn.1400068e8
lea rdx, str.pecmd2012.event.
lea rcx, [rsp + 0x58]
call fcn.140056108
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x58]
call fcn.140056108
cmp r14b, sil
jne 0x1400b61f1
cmp dword [rsp + 0x2f8], esi
jne 0x1400b622d
mov r8, qword [rsp + 0x58]
mov edx, dword [rsp + 0x78]
mov ecx, 0x100002
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov rbx, rax
cmp r14b, sil
je 0x1400b6224
lea rcx, [rsp + 0x48]
call fcn.14004ea6c
lea rcx, [rsp + 0xa0]
jmp 0x1400b5b26
cmp rax, rsi
jne 0x1400b62c8
xor edx, edx
lea rcx, [rsp + 0x199]
mov byte [rsp + 0x198], sil
lea r8d, [rdx + 0x27]
call fcn.1400cc8d0
lea rax, [rsp + 0x198]
lea rcx, [rsp + 0x140]
mov qword [rsp + 0x140], rax
mov dword [rsp + 0x138], 0x18
mov dword [rsp + 0x148], esi
call fcn.140051bbc
cmp dword [rsp + 0x2f8], esi
mov r9, qword [rsp + 0x58]
mov r8d, esi
setne r8b
cmp dword [rsp + 0x70], esi
mov edx, esi
lea rcx, [rsp + 0x138]
setne dl
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rbx, rax
cmp rax, rsi
jne 0x1400b62c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x48]
mov esi, eax
call fcn.14004ea6c
lea rcx, [rsp + 0xa0]
jmp 0x1400b5b45
lea rcx, [rsp + 0x48]
call fcn.14004ea6c
lea rcx, [rsp + 0xa0]
jmp 0x1400b5b57
cmp ebp, 0xffffffe0
jne 0x1400b64cc
lea rcx, [rsp + 0x70]
call fcn.140055fcc
lea rcx, [rsp + 0x48]
call fcn.140055fcc
lea eax, [rbp + 0x5b]
lea r9d, [rbp + 0x4c]
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x2e8]
mov rcx, rdi
mov word [rsp + 0x20], ax
call fcn.140048864
mov rdx, qword [rsp + 0x70]
cmp word [rdx], si
jne 0x1400b633b
lea rcx, [rsp + 0x48]
call fcn.14004ea6c
lea rcx, [rsp + 0x70]
jmp 0x1400b6109
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x2e8]
mov dword [rsp + 0x78], r15d
mov dword [rsp + 0x2f8], r15d
mov dword [rsp + 0xa0], esi
call fcn.1400068e8
lea rdx, [rsp + 0x2f8]
lea rcx, [rsp + 0x2e8]
call fcn.1400068e8
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x2e8]
call fcn.1400068e8
mov ebp, dword [rsp + 0x2f8]
mov edi, dword [rsp + 0x78]
cmp ebp, r15d
lea rdx, str.pecmd2012.semaphore.
lea rcx, [rsp + 0x58]
cmovl ebp, r15d
cmp edi, ebp
cmovg edi, ebp
call fcn.140056108
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x58]
call fcn.140056108
mov r8, qword [rsp + 0x58]
xor edx, edx
mov ecx, 0x100002
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rbx, rax
cmp r14b, sil
je 0x1400b63f0
lea rcx, [rsp + 0x48]
call fcn.14004ea6c
lea rcx, [rsp + 0x70]
jmp 0x1400b5b26
cmp rax, rsi
jne 0x1400b64ac
xor edx, edx
lea rcx, [rsp + 0x239]
mov byte [rsp + 0x238], sil
lea r8d, [rdx + 0x27]
call fcn.1400cc8d0
lea rax, [rsp + 0x238]
lea rcx, [rsp + 0x170]
mov qword [rsp + 0x170], rax
mov dword [rsp + 0x168], 0x18
mov dword [rsp + 0x178], esi
call fcn.140051bbc
mov r9, qword [rsp + 0x58]
cmp edi, esi
cmovl edi, esi
mov edx, r15d
lea rcx, [rsp + 0x168]
cmp edi, esi
mov r8d, ebp
cmovg edx, edi
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13d, eax
mov qword [rsp + 0xc8], r13
cmp rbx, rsi
jne 0x1400b649b
lea rcx, [rsp + 0x48]
call fcn.14004ea6c
lea rcx, [rsp + 0x70]
call fcn.14004ea6c
mov rsi, r13
jmp 0x1400b6be4
cmp edi, r15d
jge 0x1400b64ac
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, [rsp + 0x48]
call fcn.14004ea6c
lea rcx, [rsp + 0x70]
call fcn.14004ea6c
mov ebp, dword [rsp + 0x80]
jmp 0x1400b5b5c
cmp ebp, 0xffffffc0
jne 0x1400b664c
lea rcx, [rsp + 0x78]
call fcn.140055fcc
lea rcx, [rsp + 0x48]
call fcn.140055fcc
lea eax, [rbp + 0x7b]
lea r9d, [rbp + 0x6c]
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x2e8]
mov rcx, rdi
mov word [rsp + 0x20], ax
call fcn.140048864
mov rdx, qword [rsp + 0x78]
cmp word [rdx], si
jne 0x1400b6528
lea rcx, [rsp + 0x48]
call fcn.14004ea6c
lea rcx, [rsp + 0x78]
jmp 0x1400b6109
lea rdx, [rsp + 0x2f8]
lea rcx, [rsp + 0x2e8]
mov dword [rsp + 0x2f8], esi
call fcn.1400068e8
lea rdx, str.pecmd2012.mutex.
lea rcx, [rsp + 0x58]
call fcn.140056108
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x58]
call fcn.140056108
mov r8, qword [rsp + 0x58]
xor edx, edx
mov ecx, 0x100002
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
mov rbx, rax
cmp r14b, sil
je 0x1400b6592
lea rcx, [rsp + 0x48]
call fcn.14004ea6c
lea rcx, [rsp + 0x78]
jmp 0x1400b5b26
cmp rax, rsi
jne 0x1400b6638
xor edx, edx
lea rcx, [rsp + 0x1c1]
mov byte [rsp + 0x1c0], sil
lea r8d, [rdx + 0x27]
call fcn.1400cc8d0
lea rax, [rsp + 0x1c0]
lea rcx, [rsp + 0x158]
mov qword [rsp + 0x158], rax
mov dword [rsp + 0x150], 0x18
mov dword [rsp + 0x160], esi
call fcn.140051bbc
mov ecx, dword [rsp + 0x2f8]
mov r8, qword [rsp + 0x58]
cmp ecx, esi
mov edx, esi
cmovl ecx, esi
cmp ecx, esi
lea rcx, [rsp + 0x150]
setg dl
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13d, eax
mov qword [rsp + 0xc8], r13
cmp rbx, rsi
jne 0x1400b6638
lea rcx, [rsp + 0x48]
call fcn.14004ea6c
lea rcx, [rsp + 0x78]
jmp 0x1400b648e
lea rcx, [rsp + 0x48]
call fcn.14004ea6c
lea rcx, [rsp + 0x78]
jmp 0x1400b5b57
cmp ebp, 0xfffffff8
jne 0x1400b6844
lea rcx, [rsp + 0x68]
call fcn.140055fcc
lea eax, [rbp + 0x43]
lea r9d, [rbp + 0x34]
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x2e8]
mov rcx, rdi
mov word [rsp + 0x20], ax
call fcn.140048864
mov rdx, qword [rsp + 0x68]
cmp word [rdx], si
jne 0x1400b6694
lea rcx, [rsp + 0x68]
jmp 0x1400b6109
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x2e8]
mov dword [rsp + 0x70], esi
call fcn.1400068e8
mov eax, dword [rsp + 0x70]
lea rdx, [rsp + 0x2f8]
neg eax
sbb ecx, ecx
and ecx, r13d
mov dword [rsp + 0x2f8], ecx
lea rcx, [rsp + 0x2e8]
call fcn.1400068e8
lea rdx, str..mailslotpecmd2012.mailslot.
lea rcx, [rsp + 0x58]
mov r9, r13
mov r8, r13
call fcn.140056188
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x58]
call fcn.140056108
xor edx, edx
lea rcx, [rsp + 0x211]
lea r8d, [rdx + 0x27]
mov byte [rsp + 0x210], sil
call fcn.1400cc8d0
lea rax, [rsp + 0x210]
lea rcx, [rsp + 0x100]
mov qword [rsp + 0x100], rax
mov dword [rsp + 0xf8], 0x18
mov dword [rsp + 0x108], esi
call fcn.140051bbc
cmp r14b, sil
jne 0x1400b678d
cmp dword [rsp + 0x70], esi
je 0x1400b678d
mov r8d, dword [rsp + 0x2f8]
mov rcx, qword [rsp + 0x58]
lea r9, [rsp + 0xf8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateMailslotW]
mov rbx, rax
cmp rax, r13
jne 0x1400b6774
mov rbx, rsi
cmp rbx, rsi
jne 0x1400b682b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x68]
jmp 0x1400b5b43
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x30], rsi
lea r9, [rsp + 0xf8]
mov r8d, r15d
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov edi, eax
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp r14b, sil
jne 0x1400b6835
cmp rbx, r13
jne 0x1400b6774
cmp dword [rsp + 0x2f8], 0xffffffff
je 0x1400b67ed
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, dword [rsp + 0x2f8]
jae 0x1400b6771
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x30], rsi
lea r9, [rsp + 0xf8]
mov r8d, r15d
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
jmp 0x1400b67cd
lea rcx, [rsp + 0x68]
jmp 0x1400b5b57
lea rcx, [rsp + 0x68]
call fcn.14004ea6c
jmp 0x1400b6977
cmp ebp, 0xfffffff0
jne 0x1400b6a83
lea rcx, [rsp + 0x80]
call fcn.140055fcc
lea rcx, [rsp + 0x2f8]
call fcn.140055fcc
lea eax, [rbp + 0x4b]
lea r9d, [rbp + 0x3c]
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x2e8]
mov rcx, rdi
mov word [rsp + 0x20], ax
call fcn.140048864
mov rdx, qword [rsp + 0x80]
cmp word [rdx], si
jne 0x1400b68b2
lea rcx, [rsp + 0x2f8]
call fcn.14004ea6c
lea rcx, [rsp + 0x80]
jmp 0x1400b6109
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x2e8]
call fcn.1400068e8
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x2e8]
call fcn.1400068e8
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x2e8]
call fcn.1400068e8
lea rdx, str..pipepecmd2012.pipe.
lea rcx, [rsp + 0x58]
mov r9, r13
mov r8, r13
call fcn.140056188
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x58]
call fcn.140056108
mov edi, dword [rsp + 0x78]
lea rcx, [rsp + 0x2f8]
cmp r14b, sil
mov rbx, r13
cmovne edi, esi
call fcn.14004ea6c
lea rcx, [rsp + 0x80]
call fcn.14004ea6c
mov r13d, dword [rsp + 0xa8]
mov eax, 4
test al, dil
jne 0x1400b69a4
mov rcx, qword [rsp + 0x58]
mov eax, edi
mov r8d, esi
and eax, 3
mov edx, r13d
cmp al, 3
sete r8b
call fcn.140051bec
mov rbx, rax
cmp r14b, sil
je 0x1400b69a4
or r13, 0xffffffffffffffff
cmp rbx, r13
cmove rbx, rsi
cmp rbx, rsi
je 0x1400b6991
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400b6be4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
cmove eax, r15d
mov esi, eax
jmp 0x1400b6be4
xor edx, edx
lea rcx, [rsp + 0x261]
mov byte [rsp + 0x260], sil
lea r8d, [rdx + 0x27]
call fcn.1400cc8d0
lea rax, [rsp + 0x260]
lea rcx, [rsp + 0xe0]
mov qword [rsp + 0xe0], rax
mov dword [rsp + 0xd8], 0x18
mov dword [rsp + 0xe8], esi
call fcn.140051bbc
test r12b, dil
jne 0x1400b6a5d
cmp rbx, 0xffffffffffffffff
jne 0x1400b5b5c
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0xd8]
lea edx, [rbx + 4]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], eax
mov r9d, 0xff
xor r8d, r8d
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rbx, rax
test r15b, dil
je 0x1400b6a52
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
cmp eax, esi
jne 0x1400b6a52
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp rbx, 0xffffffffffffffff
je 0x1400b6a63
mov ebp, 0xffffffef
cmp rbx, 0xffffffffffffffff
jne 0x1400b6a66
mov rbx, rsi
cmp ebp, 0xfffffff0
je 0x1400b5b5c
cmp rbx, rsi
jne 0x1400b5b5c
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400b699d
mov rax, qword [rsp + 0x2e8]
cmp word [rax], si
je 0x1400b6b02
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x2e8]
call fcn.140063ef4
mov rdx, qword [rsp + 0x2e8]
cmp word [rdx], si
je 0x1400b6afd
add rdx, r12
lea rcx, [rsp + 0x2e8]
mov qword [rsp + 0x2e8], rdx
lea rdx, [rsp + 0x68]
call fcn.1400640cc
mov rdx, qword [rsp + 0x2e8]
cmp word [rdx], si
je 0x1400b6af9
add rdx, r12
lea rcx, [rsp + 0x2e8]
mov qword [rsp + 0x2e8], rdx
lea rdx, [rsp + 0x88]
call fcn.1400640cc
mov ebp, dword [rsp + 0x68]
mov r12, qword [rsp + 0x48]
mov r8d, dword [rsp + 0x88]
mov edx, ebp
mov ecx, r12d
call qword [0x140107230]
cmp rax, rsi
mov rbx, rax
jg 0x1400b5b5c
mov rsi, r15
jmp 0x1400b6be4
cmp dil, sil
jne 0x1400b6b3e
cmp byte [rsp + 0x62], sil
jne 0x1400b6b3e
mov rdi, qword [r13 + 0x210]
jmp 0x1400b6b41
mov rdi, r14
cmp byte [rsp + 0x60], sil
je 0x1400b6bad
lea rdx, [0x1400f5d50]
lea rcx, [rsp + 0x90]
call fcn.14006016c
mov rdx, qword [rsp + 0xb8]
lea rcx, [rsp + 0x90]
call fcn.140056108
lea rdx, str..del
lea rcx, [rsp + 0x90]
call fcn.140056108
mov r9, qword [rsp + 0x2f0]
mov rdx, qword [rsp + 0x90]
xor r8d, r8d
mov rcx, r14
call fcn.1400abb4c
lea rcx, [rsp + 0x90]
call fcn.14004ea6c
mov eax, dword [rsp + 0x88]
mov qword [rsp + 0x38], r15
lea r8, [rsp + 0xb8]
mov dword [rsp + 0x30], eax
mov r9, rbx
mov rdx, rdi
mov rcx, r13
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], r12
call fcn.140056a28
mov rsi, qword [rsp + 0xc8]
lea rcx, [rsp + 0x58]
call fcn.14004ea6c
lea rcx, [rsp + 0x110]
call fcn.14004ea6c
lea rcx, [rsp + 0x128]
call fcn.14004ea6c
lea rcx, [rsp + 0x118]
call fcn.14004ea6c
lea rcx, [rsp + 0xb8]
call fcn.14004ea6c
mov rax, rsi
add rsp, 0x298
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret