joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180037640
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rsi, rcx
mov rcx, qword [rcx + 0x20]
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x180037689
lea rcx, [0x180038150]
mov qword [rbp - 0x69], rcx
mov qword [rbp - 0x61], rdx
lea rdx, [rbp - 0x69]
mov rcx, rsi
call rax
add rsp, 0xc0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r14, qword [rcx + 0x10]
mov rax, qword [rdx]
mov qword [rbp - 0x49], rax
movups xmm0, xmmword [rdx + 8]
movups xmmword [rbp - 0x41], xmm0
movsd xmm1, qword [rdx + 0x18]
movsd qword [rbp - 0x31], xmm1
mov eax, dword [rdx + 0x20]
mov dword [rbp - 0x29], eax
mov rax, qword [rdx + 0x28]
mov qword [rbp - 0x21], rax
movups xmm0, xmmword [rdx + 0x30]
movups xmmword [rbp - 0x19], xmm0
mov rax, qword [rdx + 0x40]
mov qword [rbp - 9], rax
mov rax, qword [rdx + 0x48]
mov qword [rbp - 1], rax
mov rax, qword [rdx + 0x50]
mov qword [rbp + 7], rax
xor ebx, ebx
mov qword [rdx + 0x48], rbx
mov qword [rdx + 0x50], rbx
mov rax, qword [rdx + 0x58]
mov qword [rbp + 0xf], rax
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [rbp + 0x17], xmm0
mov rax, qword [rdx + 0x70]
mov qword [rbp + 0x27], rax
lea rax, [rbp - 0x49]
mov qword [rbp + 0x7f], rax
lea rax, [rbp + 0x67]
mov qword [rbp - 0x69], rax
mov ecx, dword [0x1800a2b50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x18003771d
mov rdx, qword [rax + 8]
jmp 0x180037720
mov rdx, rbx
mov r8d, 0x88
call fcn.180012520
mov rdx, rax
mov qword [rbp - 0x59], rbx
mov rcx, qword [rbp - 0x49]
mov qword [rax + 8], rcx
movups xmm0, xmmword [rbp - 0x41]
movups xmmword [rax + 0x10], xmm0
movsd xmm1, qword [rbp - 0x31]
movsd qword [rax + 0x20], xmm1
mov ecx, dword [rbp - 0x29]
mov dword [rax + 0x28], ecx
mov rcx, qword [rbp - 0x21]
mov qword [rax + 0x30], rcx
movups xmm0, xmmword [rbp - 0x19]
movups xmmword [rax + 0x38], xmm0
mov rax, qword [rbp - 9]
mov qword [rdx + 0x48], rax
mov qword [rdx + 0x50], rbx
mov qword [rdx + 0x58], rbx
mov rax, qword [rbp - 1]
mov qword [rdx + 0x50], rax
mov rax, qword [rbp + 7]
mov qword [rdx + 0x58], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 1], xmm0
mov rax, qword [rbp + 0xf]
mov qword [rdx + 0x60], rax
movups xmm0, xmmword [rbp + 0x17]
movups xmmword [rdx + 0x68], xmm0
mov rax, qword [rbp + 0x27]
mov qword [rdx + 0x78], rax
lea rax, [0x180038170]
mov qword [rdx], rax
mov qword [rbp + 0x77], rdx
mov qword [rbp - 0x61], rbx
lea rcx, [rbp - 0x69]
call fcn.180038050
nop
mov rbx, qword [rbp + 7]
test rbx, rbx
je 0x1800377f4
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1800377f4
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1800377f4
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rdx, [rbp + 0x77]
mov rcx, rsi
call r14
nop
mov rcx, qword [rbp + 0x77]
test rcx, rcx
je 0x180037810
mov rax, qword [rcx]
xor edx, edx
call rax
nop
add rsp, 0xc0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x180037820
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rsi, rcx
mov rcx, qword [rcx + 0x20]
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x180037869
lea rcx, [0x180038160]
mov qword [rbp - 0x49], rcx
mov qword [rbp - 0x41], rdx
lea rdx, [rbp - 0x49]
mov rcx, rsi
call rax
add rsp, 0xa0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r14, qword [rcx + 0x10]
mov rax, qword [rdx]
mov qword [rbp - 0x29], rax
movups xmm0, xmmword [rdx + 8]
movups xmmword [rbp - 0x21], xmm0
movsd xmm1, qword [rdx + 0x18]
movsd qword [rbp - 0x11], xmm1
mov eax, dword [rdx + 0x20]
mov dword [rbp - 9], eax
movups xmm0, xmmword [rdx + 0x28]
movups xmmword [rbp - 1], xmm0
mov rax, qword [rdx + 0x38]
mov qword [rbp + 0xf], rax
mov rax, qword [rdx + 0x40]
mov qword [rbp + 0x17], rax
xor ebx, ebx
mov qword [rdx + 0x38], rbx
mov qword [rdx + 0x40], rbx
movups xmm0, xmmword [rdx + 0x48]
movups xmmword [rbp + 0x1f], xmm0
mov rax, qword [rdx + 0x58]
mov qword [rbp + 0x2f], rax
lea rax, [rbp - 0x29]
mov qword [rbp + 0x7f], rax
lea rax, [rbp + 0x67]
mov qword [rbp - 0x49], rax
mov ecx, dword [0x1800a2b50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1800378e5
mov rdx, qword [rax + 8]
jmp 0x1800378e8
mov rdx, rbx
mov r8d, reloc.WS2_32.dll_WSASetLastError
call fcn.180012520
mov rdx, rax
mov qword [rbp - 0x39], rbx
mov rcx, qword [rbp - 0x29]
mov qword [rax + 8], rcx
movups xmm0, xmmword [rbp - 0x21]
movups xmmword [rax + 0x10], xmm0
movsd xmm1, qword [rbp - 0x11]
movsd qword [rax + 0x20], xmm1
mov ecx, dword [rbp - 9]
mov dword [rax + 0x28], ecx
movups xmm0, xmmword [rbp - 1]
movups xmmword [rax + 0x30], xmm0
mov qword [rax + 0x40], rbx
mov qword [rax + 0x48], rbx
mov rax, qword [rbp + 0xf]
mov qword [rdx + 0x40], rax
mov rax, qword [rbp + 0x17]
mov qword [rdx + 0x48], rax
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xf], xmm0
movups xmm0, xmmword [rbp + 0x1f]
movups xmmword [rdx + 0x50], xmm0
mov rax, qword [rbp + 0x2f]
mov qword [rdx + 0x60], rax
lea rax, [0x180038280]
mov qword [rdx], rax
mov qword [rbp + 0x77], rdx
mov qword [rbp - 0x41], rbx
lea rcx, [rbp - 0x49]
call fcn.180037f90
nop
mov rbx, qword [rbp + 0x17]
test rbx, rbx
je 0x1800379a4
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1800379a4
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1800379a4
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rdx, [rbp + 0x77]
mov rcx, rsi
call r14
nop
mov rcx, qword [rbp + 0x77]
test rcx, rcx
je 0x1800379c0
mov rax, qword [rcx]
xor edx, edx
call rax
nop
add rsp, 0xa0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x180037cc0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xc0
mov r9, rdx
mov rdx, rcx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov r8, qword [r9 + 0x18]
test r8, r8
je 0x180037cf3
lock inc dword [r8 + 8]
mov r8, qword [r9 + 0x18]
mov rax, qword [r9 + 0x10]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], r8
movzx eax, byte [r9 + 0x20]
mov byte [rsp + 0x48], al
lea rcx, [rsp + 0x50]
call fcn.180035e50
movups xmm0, xmmword [rdx + 0x58]
movups xmmword [rsp + 0xa8], xmm0
mov rsi, qword [r9]
lea rdi, [r9 + 8]
mov rbx, qword [rdi]
mov ecx, dword [0x1800a2b60]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180037d52
nop dword [rax + rax]
cmp qword [rax], rbx
je 0x180037e55
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x180037d40
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x90]
mov ecx, 0xc0
call fcn.180005020
mov r9, rax
xor r10d, r10d
mov qword [rax + 0x20], r10
lea rax, [0x180038480]
mov qword [r9 + 0x28], rax
mov qword [r9], r10
mov qword [r9 + 8], r10
mov qword [r9 + 0x10], r10
mov qword [r9 + 0x18], r10
mov dword [r9 + 0x30], r10d
mov qword [r9 + 0x38], r10
mov qword [r9 + 0x40], r10
mov rax, qword [rsp + 0x38]
mov qword [r9 + 0x38], rax
mov rax, qword [rsp + 0x40]
mov qword [r9 + 0x40], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
movzx eax, byte [rsp + 0x48]
mov byte [r9 + 0x48], al
lea rcx, [r9 + 0x50]
lea rdx, [rsp + 0x50]
call fcn.180035e50
movups xmm0, xmmword [rsp + 0xa8]
movups xmmword [rcx + 0x58], xmm0
mov qword [rsp + 0x30], r10
mov qword [rsp + 0x28], r10
mov r8, r9
mov rdx, rdi
mov rcx, rsi
call fcn.180008740
nop
lea rcx, [rsp + 0x20]
call fcn.1800383f0
nop
lea rcx, [rsp + 0x50]
call fcn.180034ac0
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x180037e40
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x180037e40
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x180037e40
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
cmp qword [rax + 8], 0
je 0x180037d52
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.180038790
nop
jmp 0x180037e00
Function at 0x180037f90
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 0x10]
mov rdi, rcx
test rbx, rbx
je 0x180037fed
mov rbx, qword [rbx + 0x48]
test rbx, rbx
je 0x180037fe5
mov qword [rsp + 0x30], rsi
mov esi, 0xffffffff
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x180037fe0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x180037fe0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rsi, qword [rsp + 0x30]
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x180038044
mov ecx, dword [0x1800a2b50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180038034
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x180038034
cmp qword [rcx + 0x10], 0
jne 0x180038034
movzx eax, byte [rbx + 0x70]
mov byte [rbx], al
mov qword [rcx + 0x10], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call fcn.18004a660
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x180038050
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 0x10]
mov rdi, rcx
test rbx, rbx
je 0x1800380ad
mov rbx, qword [rbx + 0x58]
test rbx, rbx
je 0x1800380a5
mov qword [rsp + 0x30], rsi
mov esi, 0xffffffff
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1800380a0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x1800380a0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rsi, qword [rsp + 0x30]
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x180038107
mov ecx, dword [0x1800a2b50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1800380f7
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x1800380f7
cmp qword [rcx + 0x10], 0
jne 0x1800380f7
movzx eax, byte [rbx + 0x88]
mov byte [rbx], al
mov qword [rcx + 0x10], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call fcn.18004a660
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1800395e0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0xa0
mov rdi, rcx
lea rdx, str.Creating_capture_thread._FromThreadId:
lea rcx, [0x1800a1160]
call fcn.18000d1b0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, eax
mov rcx, rbx
call fcn.180023230
mov rcx, rax
call fcn.18000d4c0
movzx eax, byte [rdi + 0xf0]
mov ebx, 1
lea rbp, [0x1800391d0]
xor esi, esi
test al, al
jne 0x1800396f6
cmp dword [rdi + 0xd8], esi
je 0x180039685
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [rdi + 0xd8], eax
je 0x1800397dc
movups xmm0, xmmword [rdi + 0xd0]
movaps xmmword [rsp + 0x50], xmm0
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.18004f958
test eax, eax
jne 0x1800397fc
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rdi + 0xd0], xmm0
mov eax, ebx
xchg byte [rdi + 0xf0], al
mov ecx, select
call fcn.18004a198
mov qword [rax], rbx
mov qword [rax + 8], rbp
mov qword [rsp + 0xc0], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x18002e620]
xor edx, edx
xor ecx, ecx
call fcn.18005b33c
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1800397ed
cmp dword [rdi + 0xd8], 0
jne 0x1800397e7
movaps xmm0, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x80], xmm0
movups xmmword [rdi + 0xd0], xmm0
movzx eax, byte [rdi + 0xf1]
test al, al
jne 0x1800397b4
cmp dword [rdi + 0xe8], 0
je 0x180039751
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [rdi + 0xe8], eax
je 0x1800397dc
movups xmm0, xmmword [rdi + 0xe0]
movaps xmmword [rsp + 0x60], xmm0
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.18004f958
test eax, eax
jne 0x1800397fc
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rdi + 0xe0], xmm0
xchg byte [rdi + 0xf1], bl
mov ecx, select
call fcn.18004a198
mov qword [rax], 2
mov qword [rax + 8], rbp
mov qword [rsp + 0xc8], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x18002e620]
xor edx, edx
xor ecx, ecx
call fcn.18005b33c
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1800397cd
cmp dword [rdi + 0xe8], 0
jne 0x1800397c7
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [rdi + 0xe0], xmm0
mov rbx, qword [rsp + 0xd0]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret
call fcn.180018e60
nop
mov dword [rsp + 0x48], esi
mov ecx, 6
call fcn.18004db7c
nop
mov ecx, 5
call fcn.18004db7c
int3
call fcn.180018e60
nop
mov dword [rsp + 0x38], esi
mov ecx, 6
call fcn.18004db7c
nop
mov ecx, 2
call fcn.18004db7c
int3
Function at 0x180040de0
Capabilities:
Patch process command line

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x18009e010]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rdi, rcx
mov qword [rbp - 0x41], rcx
mov r8d, edx
mov ecx, 0x410
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
xor r15d, r15d
mov rsi, rax
test rax, rax
je 0x180040fc3
mov rax, qword [0x1800a2b38]
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
test rax, rax
jne 0x180040e6b
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
lea rdx, str.NtQueryInformationProcess
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800a2b38], rax
mov r9d, 0x30
mov qword [rsp + 0x20], r15
lea r8, [rbp - 0x29]
xor edx, edx
mov rcx, rsi
call rax
test eax, eax
js 0x180040fba
mov rdx, qword [rbp - 0x21]
test rdx, rdx
je 0x180040fba
lea rax, [rbp - 0x49]
mov qword [rbp - 0x49], r15
add rdx, 0x20
mov qword [rsp + 0x20], rax
mov r9d, 8
lea r8, [rbp - 0x41]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x180040fba
cmp qword [rbp - 0x49], 8
jne 0x180040fba
mov rdx, qword [rbp - 0x41]
lea rax, [rbp - 0x49]
add rdx, 0x70
mov qword [rsp + 0x20], rax
mov r9d, setsockopt
lea r8, [rbp - 0x39]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x180040fba
cmp qword [rbp - 0x49], 0x10
jne 0x180040fba
movzx ecx, word [rbp - 0x37]
mov eax, 2
mul rcx
mov rbx, 0xffffffffffffffff
cmovo rax, rbx
mov rcx, rax
call fcn.18004a668
movzx r8d, word [rbp - 0x37]
xor edx, edx
mov rcx, rax
mov r14, rax
call fcn.180051780
movzx r9d, word [rbp - 0x39]
lea rax, [rbp - 0x49]
mov rdx, qword [rbp - 0x31]
mov r8, r14
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x180040fb2
movzx eax, word [rbp - 0x39]
cmp qword [rbp - 0x49], rax
jne 0x180040fb2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 7], r15
mov qword [rbp + 0x17], r15
mov qword [rbp + 0x1f], 7
nop word [rax + rax]
inc rbx
cmp word [r14 + rbx*2], r15w
jne 0x180040f80
mov r8, rbx
lea rcx, [rbp + 7]
mov rdx, r14
call fcn.1800040b0
mov rcx, r14
call fcn.18004a624
movups xmm0, xmmword [rbp + 7]
movups xmm1, xmmword [rbp + 0x17]
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm1
jmp 0x180040fe8
mov rcx, r14
call fcn.18004a624
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], r15
lea rdx, [0x18008d4a8]
mov qword [rdi + 0x10], r15
xor r8d, r8d
mov qword [rdi + 0x18], 7
mov rcx, rdi
mov word [rdi], r15w
call fcn.1800040b0
mov rax, rdi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.180049ee0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xb0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180041010
Capabilities:
Create pipe

Disassembly:
sub rsp, 0x78
mov eax, dword [0x18009edb8]
cmp eax, 0xffffffff
jne 0x1800410e1
mov qword [rsp + 0x80], rbx
lea r9d, [rax + 2]
xor ebx, ebx
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x38], rbx
lea edx, [rax + 4]
mov dword [rsp + 0x30], ebx
lea rcx, str..pipegpipe
mov dword [rsp + 0x28], 2
xor r8d, r8d
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800410ce
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call fcn.1800409a0
mov r8, rax
test rax, rax
je 0x1800410c5
mov rdx, qword [rax]
test rdx, rdx
je 0x1800410bd
lea rcx, [rax + 0x10]
nop dword [rax]
movups xmm0, xmmword [rcx + 0x10]
movups xmmword [rsp + 0x50], xmm0
cmp rdi, qword [rcx]
je 0x1800410ae
inc ebx
add rcx, 0x28
movsxd rax, ebx
cmp rax, rdx
jb 0x180041090
jmp 0x1800410bd
mov rax, qword [rsp + 0x58]
shr rax, 0x20
mov dword [0x18009edb8], eax
mov rcx, r8
call fcn.18005b8c4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x18009edb8]
mov rbx, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x70]
add rsp, 0x78
ret
Function at 0x1800479a0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x18009e010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbp, r9
movsxd rsi, r8d
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x30], rdx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea r9, [rsp + 0x20]
lea edx, [r14 + 8]
lea r8d, [r14 + 0x40]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180047a32
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x180047a2e
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x180047a29
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180047ace
mov rcx, r8
call fcn.18004a624
xor eax, eax
jmp 0x180047a9f
mov rdx, qword [rbx]
mov rbx, qword [rdx + rsi*8]
mov ecx, 0x40
call fcn.18004a198
mov rsi, rax
mov qword [rsp + 0x28], rax
mov qword [rax], r14
lea rcx, [rax + 8]
mov rdx, rdi
call fcn.180003fd0
mov qword [rsi + 0x28], rbx
mov qword [rsi + 0x30], rbp
mov byte [rsi + 0x38], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x180047a9c
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x180047a97
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180047ace
mov rcx, r8
call fcn.18004a624
mov rax, rsi
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], setsockopt
mov byte [rdi], 0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180049ee0
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
call fcn.180055d94
int3
Function at 0x1800485c0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x18009e010]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800486eb
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1800486e2
nop dword [rax]
cmp dword [rsp + 0x20], 0x10
jb 0x1800486c4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x1800486c4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x1800486c4
mov rdx, qword [rbx]
test rdx, rdx
jne 0x180048682
mov rcx, qword [0x1800a2860]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x1800486e2
jmp 0x1800486b7
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x1800486b7
mov rcx, qword [0x1800a2860]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x1800486e2
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180048630
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x180048743
cmp dword [rbx + 0xc], esi
jbe 0x180048743
nop word [rax + rax]
mov rax, qword [rbx]
xor edx, edx
mov ecx, esi
mov r8d, dword [rax + rcx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18004873c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.180048410
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x180048700
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180049ee0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180048ca0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor r15d, r15d
mov rdi, rcx
mov r14d, r15d
mov ebx, r15d
xor eax, eax
mov esi, 1
lock cmpxchg dword [0x1800a2858], esi
je 0x180048cf1
cmp rbx, 0x20
jae 0x180048cda
xor ecx, ecx
jmp 0x180048cdc
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1800a2858], esi
jne 0x180048cd0
cmp qword [0x1800a2860], r14
mov qword [rsp + 0x58], r13
je 0x180048e86
mov ecx, dword [0x1800a2f6c]
mov ebx, r15d
test ecx, ecx
je 0x180048d2f
mov rdx, qword [0x1800a2f60]
mov rax, rdx
nop word [rax + rax]
cmp rdi, qword [rax]
je 0x180048d3a
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180048d20
mov r14d, 4
jmp 0x180048e8c
cmp ebx, 0xffffffff
je 0x180048d2f
mov eax, ebx
imul r13, rax, 0x38
test byte [rdx + r13 + 0x20], 2
je 0x180048deb
xor r8d, r8d
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.1800485c0
xor edx, edx
mov ecx, ebx
call fcn.180048770
mov r14d, eax
cmp qword [rsp + 0x20], r15
je 0x180048ddb
mov ecx, dword [rsp + 0x2c]
test ecx, ecx
je 0x180048dc7
mov rdi, qword [rsp + 0x20]
mov qword [rsp + 0x50], rbp
mov ebp, ecx
nop word [rax + rax]
mov r8d, dword [rdi]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180048db8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rdi, 4
sub rbp, 1
jne 0x180048d90
mov rbp, qword [rsp + 0x50]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800a2860]
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r14d, r14d
jne 0x180048e8c
mov rdx, qword [0x1800a2f60]
mov rcx, qword [rdx + r13 + 0x10]
call fcn.1800496a0
mov edx, dword [0x1800a2f6c]
dec edx
cmp ebx, edx
jae 0x180048e3a
mov eax, edx
imul rcx, rax, 0x38
mov rax, qword [0x1800a2f60]
movups xmm0, xmmword [rcx + rax]
movups xmmword [rax + r13], xmm0
movups xmm1, xmmword [rcx + rax + 0x10]
movups xmmword [rax + r13 + 0x10], xmm1
movups xmm0, xmmword [rcx + rax + 0x20]
movups xmmword [rax + r13 + 0x20], xmm0
movsd xmm1, qword [rcx + rax + 0x30]
movsd qword [rax + r13 + 0x30], xmm1
mov ecx, dword [0x1800a2f68]
mov eax, ecx
mov dword [0x1800a2f6c], edx
shr eax, 1
cmp eax, 0x20
jb 0x180048e8c
cmp eax, edx
jb 0x180048e8c
mov r8, qword [0x1800a2f60]
mov eax, ecx
mov rcx, qword [0x1800a2860]
xor edx, edx
shr rax, 1
imul r9, rax, 0x38
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
test rax, rax
je 0x180048e8c
shr dword [0x1800a2f68], 1
mov qword [0x1800a2f60], rax
jmp 0x180048e8c
mov r14d, 2
xchg dword [0x1800a2858], r15d
mov r13, qword [rsp + 0x58]
mov eax, r14d
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret