joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18004aaa0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
lea rbp, [rax - 0x1c8]
sub rsp, 0x2c0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rdi, rcx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov edx, 0x208
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x18004ab28
lea rcx, [rsp + 0x60]
call fcn.18004a680
movups xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x50], xmm0
lea r8, str.GetSystemDirectory___failed
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x80]
call fcn.180007cb0
nop
lea rax, [0x1800fa328]
mov qword [rbp - 0x80], rax
lea rdx, [0x180131288]
lea rcx, [rbp - 0x80]
call fcn.1800a8e80
nop
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], rbx
mov word [rsp + 0x28], bx
cmp word [rbp - 0x50], bx
je 0x18004ab5f
lea rcx, [rbp - 0x50]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bx
jne 0x18004ab53
mov rbx, rax
mov r8, rbx
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x28]
call fcn.18000a8a8
nop
lea rcx, [rsp + 0x60]
call fcn.18004d294
nop
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.18004a78c
mov dword [rsp + 0x20], 1
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x60]
call fcn.18000a738
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x28]
call fcn.18000a738
mov rax, rdi
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x18004ad68
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x180149b34]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor edx, edx
test rax, rax
je 0x18004ad96
mov rdx, qword [rax + 8]
mov r8, rbx
add rsp, 0x20
pop rbx
jmp fcn.18002a63c

Function at 0x18004ada4
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0x28
mov rbx, rcx
mov rdi, rdx
mov ecx, dword [0x180149b34]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x18004add1
mov r8, qword [rax + 8]
jmp 0x18004add4
xor r8d, r8d
cmp rdi, 0x3fc
ja 0x18004adf8
test r8, r8
je 0x18004adf8
xor ecx, ecx
xor eax, eax
cmp qword [r8 + rax*8], 0
je 0x18004ae06
inc ecx
inc rax
cmp rax, 2
jl 0x18004ade6
mov rcx, rbx
add rsp, 0x28
pop rdi
pop rbx
jmp fcn.180059b58
mov al, byte [rbx + rdi]
mov byte [rbx], al
movsxd rax, ecx
mov qword [r8 + rax*8], rbx
add rsp, 0x28
pop rdi
pop rbx
ret
Function at 0x18004b5fc
Capabilities:
Create pipe

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push rdi
push r14
lea rbp, [rax - 0x48]
sub rsp, 0x130
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rsi
mov rbx, rdx
mov rsi, rcx
lea rcx, [rsp + 0x50]
call fcn.18004b494
mov rdi, rax
mov rdx, rbx
mov rcx, rsi
call fcn.18004d94c
nop
mov rdx, rbx
lea rcx, [rsi + 0x60]
call fcn.18004d94c
nop
cmp qword [rdi + 0x18], 0x10
jb 0x18004b65b
mov rcx, qword [rdi]
jmp 0x18004b65e
mov rcx, rdi
xor ebx, ebx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], ebx
mov eax, 0x2000
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
lea r9d, [rbx + 1]
xor r8d, r8d
mov edx, 0x40000001
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov qword [rbp + 0x60], rax
cmp rax, 0xffffffffffffffff
jne 0x18004b70b
mov r8, rdi
lea rdx, str.create_named_pipe_
lea rcx, [rbp - 0x18]
call fcn.180011b84
nop
lea r8, str.__failed
mov rdx, rax
lea rcx, [rbp + 8]
call fcn.1800110c4
mov rbx, rax
lea rcx, [rbp - 0x38]
call fcn.18004a680
movups xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x40], xmm0
mov r8, rbx
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x78]
call fcn.180007b28
nop
lea rax, [0x1800deec8]
mov qword [rsp + 0x78], rax
lea rax, [0x1800fa328]
mov qword [rsp + 0x78], rax
lea rdx, [0x180131288]
lea rcx, [rsp + 0x78]
call fcn.1800a8e80
nop
lea rdx, [rbp + 0x60]
mov rcx, rsi
call fcn.18004c850
cmp qword [rdi + 0x18], 0x10
jb 0x18004b721
mov rdi, qword [rdi]
mov qword [rsp + 0x30], rbx
mov edx, 0x40000000
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp + 0x60], rax
cmp rax, 0xffffffffffffffff
jne 0x18004b794
lea rcx, [rbp - 0x28]
call fcn.18004a680
movups xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x40], xmm0
lea r8, str.create_file___failed
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x60]
call fcn.180007cb0
nop
lea rax, [0x1800fa328]
mov qword [rbp - 0x60], rax
lea rdx, [0x180131288]
lea rcx, [rbp - 0x60]
call fcn.1800a8e80
int3
lea rdx, [rbp + 0x60]
lea rcx, [rsi + 0x60]
call fcn.18004c850
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x18004b7c0
inc rdx
mov r8d, 1
mov rcx, qword [rsp + 0x50]
call fcn.1800062ec
mov qword [rsp + 0x68], 0xf
mov qword [rsp + 0x60], rbx
mov byte [rsp + 0x50], bl
mov rax, rsi
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x18004b918
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x50
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rbx, rcx
and dword [rax - 0x30], 0
call fcn.18004a5a4
nop
mov qword [rsp + 0x30], rax
cmp byte [rbx + 0x28], 0
je 0x18004b9ec
cmp byte [rbx + 0x29], 0
jne 0x18004b9ec
mov rax, qword [rbx + 0x18]
mov ecx, dword [rax]
cmp ecx, 0x103
jne 0x18004b9ec
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.18004ba44
nop
test al, al
je 0x18004b9ec
mov rax, qword [rbx]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x18004b9e1
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.18004ba44
nop
test al, al
je 0x18004b9e1
cmp dword [rsp + 0x28], 0
jne 0x18004b9ec
mov edx, 1
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
test eax, eax
jne 0x18004b9c8
lea rcx, [rsp + 0x38]
call fcn.18004a680
nop
movups xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x28], xmm0
jmp 0x18004b9e1
and dword [rsp + 0x28], 0
call fcn.18004a5a4
nop
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
or qword [rbx], 0xffffffffffffffff
cmp dword [rsp + 0x28], 0
jne 0x18004b9ec
mov byte [rbx + 0x29], 1
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x18004ba22
or eax, 0xffffffff
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x18004ba22
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
nop
or eax, 0xffffffff
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x18004ba22
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
nop
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x18004bb2c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rax - 0x10], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rdi, rcx
and dword [rax - 0x18], 0
xor edx, edx
lea r8d, [rdx + 0x30]
call fcn.1800a8ae0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
lea rcx, [0x18004c82c]
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov rdx, qword [rdi + 8]
lea rcx, [rdi + 0x10]
call fcn.18004db4c
nop
mov rax, qword [rdi + 0x10]
mov qword [rdi + 0x28], rax
mov dword [rsp + 0x20], 1
mov rax, rdi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x18004d66c
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 0x18], r8d
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 8]
sub rsp, 0x108
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov rdi, rdx
mov rbx, rcx
lea rax, [rsp + 0x50]
mov qword [rbp + 0x30], rax
mov r8, qword [rcx + 0x18]
mov qword [rsp + 0x68], r8
mov rax, qword [rcx + 0x28]
mov qword [rsp + 0x78], rax
mov rdx, rcx
lea rcx, [rsp + 0x50]
call qword [r8 + 8]
nop
mov rax, qword [rbx + 0x30]
mov qword [rbp - 0x80], rax
lea r8, [rsp + 0x50]
lea rdx, [rbp - 0x38]
call fcn.18004f844
nop
mov r8, rax
lea rdx, [rbp - 0x70]
call fcn.18004f87c
mov rsi, rax
mov rbx, qword [rdi]
mov qword [rbp + 0x38], rbx
mov rcx, qword [rax + 0x28]
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x18004d720
lea rcx, [0x1800513c8]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp + 0x38]
mov qword [rsp + 0x38], rcx
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
mov rcx, rsi
call rax
jmp 0x18004d7a4
lea rax, [rbp + 0x40]
mov qword [rsp + 0x30], rax
mov ecx, dword [0x180149b34]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x18004d740
mov rdx, qword [rax + 8]
jmp 0x18004d742
xor edx, edx
mov r8d, 0x18
call fcn.180051588
mov qword [rsp + 0x38], rax
and qword [rsp + 0x40], 0
mov qword [rbp + 0x48], rax
test rax, rax
je 0x18004d76f
mov qword [rax + 8], rbx
lea rcx, [0x1800516fc]
mov qword [rax], rcx
mov qword [rbp + 0x30], rax
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x30]
call fcn.18005132c
nop
mov rax, qword [rsi + 0x28]
lea rdx, [rbp + 0x30]
mov rcx, rsi
call qword [rax + 0x10]
nop
mov rax, qword [rbp + 0x30]
test rax, rax
je 0x18004d7a4
xor edx, edx
mov rcx, rax
call qword [rax]
nop
lea rcx, [rbp - 0x70]
mov rax, qword [rbp - 0x58]
call qword [rax]
nop
lea rcx, [rbp - 0x38]
mov rax, qword [rbp - 0x20]
call qword [rax]
nop
lea rax, [rsp + 0x50]
mov qword [rbp + 0x30], rax
lea rcx, [rsp + 0x50]
mov rax, qword [rsp + 0x68]
call qword [rax]
add rsp, 0x108
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x18004d7dc
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 0x18], r8d
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 8]
sub rsp, 0x108
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov rdi, rdx
mov rbx, rcx
lea rax, [rsp + 0x50]
mov qword [rbp + 0x30], rax
mov r8, qword [rcx + 0x18]
mov qword [rsp + 0x68], r8
mov rax, qword [rcx + 0x28]
mov qword [rsp + 0x78], rax
mov rdx, rcx
lea rcx, [rsp + 0x50]
call qword [r8 + 8]
nop
mov rax, qword [rbx + 0x30]
mov qword [rbp - 0x80], rax
lea r8, [rsp + 0x50]
lea rdx, [rbp - 0x38]
call fcn.18004f844
nop
mov r8, rax
lea rdx, [rbp - 0x70]
call fcn.18004f87c
mov rsi, rax
mov rbx, qword [rdi]
mov qword [rbp + 0x38], rbx
mov rcx, qword [rax + 0x28]
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x18004d890
lea rcx, [0x180051408]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp + 0x38]
mov qword [rsp + 0x38], rcx
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
mov rcx, rsi
call rax
jmp 0x18004d914
lea rax, [rbp + 0x40]
mov qword [rsp + 0x30], rax
mov ecx, dword [0x180149b34]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x18004d8b0
mov rdx, qword [rax + 8]
jmp 0x18004d8b2
xor edx, edx
mov r8d, 0x18
call fcn.180051588
mov qword [rsp + 0x38], rax
and qword [rsp + 0x40], 0
mov qword [rbp + 0x48], rax
test rax, rax
je 0x18004d8df
mov qword [rax + 8], rbx
lea rcx, [0x1800517b4]
mov qword [rax], rcx
mov qword [rbp + 0x30], rax
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x30]
call fcn.18005132c
nop
mov rax, qword [rsi + 0x28]
lea rdx, [rbp + 0x30]
mov rcx, rsi
call qword [rax + 0x10]
nop
mov rax, qword [rbp + 0x30]
test rax, rax
je 0x18004d914
xor edx, edx
mov rcx, rax
call qword [rax]
nop
lea rcx, [rbp - 0x70]
mov rax, qword [rbp - 0x58]
call qword [rax]
nop
lea rcx, [rbp - 0x38]
mov rax, qword [rbp - 0x20]
call qword [rax]
nop
lea rax, [rsp + 0x50]
mov qword [rbp + 0x30], rax
lea rcx, [rsp + 0x50]
mov rax, qword [rsp + 0x68]
call qword [rax]
add rsp, 0x108
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x180050934
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov r14, r8
mov r15, rdx
mov rbx, rcx
mov rsi, qword [rcx + 0x60]
mov qword [rbp - 0x18], r8
lea rdx, [r8 + 0x30]
mov ecx, 0xb8
call fcn.18004ad68
mov rdi, rax
mov qword [rbp - 0x10], rax
xor ecx, ecx
mov qword [rbp - 8], rcx
mov qword [rbp + 0x40], rax
test rax, rax
je 0x1800509fb
mov qword [rax + 0x20], rcx
lea rax, [0x180051da8]
mov qword [rdi + 0x28], rax
mov qword [rdi], rcx
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], rcx
mov qword [rdi + 0x18], rcx
mov dword [rdi + 0x30], ecx
movups xmm0, xmmword [r15]
movdqu xmmword [rdi + 0x38], xmm0
mov rax, qword [r14 + 8]
mov qword [rdi + 0x50], rax
movups xmm0, xmmword [r14 + 0x10]
movups xmmword [rdi + 0x58], xmm0
movsd xmm1, qword [r14 + 0x20]
movsd qword [rdi + 0x68], xmm1
mov eax, dword [r14 + 0x28]
mov dword [rdi + 0x70], eax
mov rax, qword [r14 + 0x30]
mov qword [rdi + 0x78], rax
lea rcx, [rdi + 0x80]
mov qword [rbp + 0x48], rcx
lea r9, [rbx + 0x88]
call fcn.180052014
nop
xor ecx, ecx
jmp 0x1800509fe
mov rdi, rcx
mov qword [rbp - 8], rdi
movups xmm0, xmmword [r15]
movdqu xmmword [rbp - 0x28], xmm0
cmp dword [rbx + 0x70], ecx
jne 0x180050a1b
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rbx + 0x70], eax
jmp 0x180050a2a
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x70], eax
je 0x180050a2a
or dword [rbx + 0x70], 0xffffffff
mov rax, qword [rsi + 0x28]
lock inc dword [rax + 0x30]
cmp qword [rbx + 0x68], 0xffffffffffffffff
jne 0x180050a53
xor r9d, r9d
mov r8d, 0x2719
mov rdx, rdi
mov rcx, qword [rsi + 0x28]
call fcn.18004aebc
xor r14d, r14d
jmp 0x180050ac4
mov rax, qword [rbp - 0x20]
xor r14d, r14d
test rax, rax
jne 0x180050a67
xor r9d, r9d
xor r8d, r8d
jmp 0x180050aaa
mov dword [rbp + 0x40], r14d
mov qword [rdi + 0x10], r14
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x40]
mov r8d, eax
mov rdx, qword [rbp - 0x28]
mov rcx, qword [rbx + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x180050ab8
cmp eax, 0x3e5
je 0x180050ab8
cmp eax, 0xea
je 0x180050ab8
mov r9d, dword [rbp + 0x40]
mov r8d, eax
mov rdx, rdi
mov rcx, qword [rsi + 0x28]
call fcn.18004aebc
jmp 0x180050ac4
mov rdx, rdi
mov rcx, qword [rsi + 0x28]
call fcn.18004ae1c
mov qword [rbp - 8], r14
mov qword [rbp - 0x10], r14
mov rbx, qword [rsp + 0xb0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180050ae4
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov r15, r8
mov r14, rdx
mov rbx, rcx
mov rsi, qword [rcx]
mov qword [rbp - 0x18], r8
lea rdx, [r8 + 0x30]
mov ecx, 0xf0
call fcn.18004ad68
mov rdi, rax
mov qword [rbp - 0x10], rax
xor r13d, r13d
mov qword [rbp - 8], r13
mov qword [rbp + 0x40], rax
test rax, rax
je 0x180050b89
mov qword [rax + 0x20], r13
lea rax, [0x180051c00]
mov qword [rdi + 0x28], rax
mov qword [rdi], r13
mov qword [rdi + 8], r13
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], r13
mov dword [rdi + 0x30], r13d
movups xmm0, xmmword [r14]
movdqu xmmword [rdi + 0x38], xmm0
lea rcx, [rdi + 0x48]
mov rdx, r15
call fcn.180051f30
nop
lea rcx, [rdi + 0xb8]
mov qword [rbp + 0x48], rcx
lea r9, [rbx + 0x28]
call fcn.180052014
nop
jmp 0x180050b8c
mov rdi, r13
mov qword [rbp - 8], rdi
movups xmm0, xmmword [r14]
movdqu xmmword [rbp - 0x28], xmm0
cmp dword [rbx + 0x10], r13d
jne 0x180050baa
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rbx + 0x10], eax
jmp 0x180050bb9
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
je 0x180050bb9
or dword [rbx + 0x10], 0xffffffff
mov rax, qword [rsi + 0x28]
lock inc dword [rax + 0x30]
cmp qword [rbx + 8], 0xffffffffffffffff
jne 0x180050bd3
xor r9d, r9d
mov r8d, 0x2719
jmp 0x180050c27
mov rax, qword [rbp - 0x20]
test rax, rax
jne 0x180050be4
xor r9d, r9d
xor r8d, r8d
jmp 0x180050c27
mov dword [rbp + 0x40], r13d
mov qword [rdi + 0x10], r13
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x40]
mov r8d, eax
mov rdx, qword [rbp - 0x28]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x180050c35
cmp eax, 0x3e5
je 0x180050c35
cmp eax, 0xea
je 0x180050c35
mov r9d, dword [rbp + 0x40]
mov r8d, eax
mov rdx, rdi
mov rcx, qword [rsi + 0x28]
call fcn.18004aebc
jmp 0x180050c41
mov rdx, rdi
mov rcx, qword [rsi + 0x28]
call fcn.18004ae1c
mov qword [rbp - 8], r13
mov qword [rbp - 0x10], r13
lea rcx, [rbp - 0x18]
call fcn.180051b68
mov rbx, qword [rsp + 0xb0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x18005132c
Capabilities:
Get thread local storage value

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov rbx, rcx
cmp qword [rcx + 0x10], 0
je 0x18005134f
and qword [rcx + 0x10], 0
mov rdi, qword [rcx + 8]
test rdi, rdi
je 0x1800513ae
mov ecx, dword [0x180149b34]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
nop
test rax, rax
je 0x180051370
mov rcx, qword [rax + 8]
jmp 0x180051372
xor ecx, ecx
test rcx, rcx
je 0x1800513a0
mov edx, 4
mov eax, edx
cmp qword [rcx + rax*8], 0
je 0x180051392
inc edx
inc rax
cmp rax, 6
jl 0x18005137e
jmp 0x1800513a0
mov al, byte [rdi + 0x18]
mov byte [rdi], al
movsxd rax, edx
mov qword [rcx + rax*8], rdi
jmp 0x1800513a9
mov rcx, rdi
call fcn.180059b58
nop
and qword [rbx + 8], 0
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x18005231c
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp - 0x79], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm9
mov rdi, rdx
mov r8, rcx
lea rdx, [rbp - 0x49]
call fcn.180052490
mov rbx, rax
mov rcx, qword [rax + 0x28]
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x180052398
lea rcx, [0x1800527dc]
mov qword [rbp - 0x69], rcx
mov qword [rbp - 0x61], rdi
movaps xmm0, xmmword [rbp - 0x69]
movdqa xmmword [rbp - 0x69], xmm0
lea rdx, [rbp - 0x69]
mov rcx, rbx
call rax
jmp 0x18005245b
mov rsi, qword [rdi + 8]
movups xmm6, xmmword [rdi + 0x10]
movsd xmm7, qword [rdi + 0x20]
mov r14d, dword [rdi + 0x28]
mov r15, qword [rdi + 0x30]
movups xmm8, xmmword [rdi + 0x38]
movsd xmm9, qword [rdi + 0x48]
mov rdi, qword [rdi + 0x50]
lea rax, [rbp + 0x77]
mov qword [rbp - 0x69], rax
mov ecx, dword [0x180149b34]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1800523db
mov rdx, qword [rax + 8]
jmp 0x1800523dd
xor edx, edx
mov r8d, 0x68
call fcn.180051588
mov qword [rbp - 0x61], rax
and qword [rbp - 0x59], 0
mov qword [rbp + 0x7f], rax
test rax, rax
je 0x180052428
mov qword [rax + 0x10], rsi
movups xmmword [rax + 0x18], xmm6
movsd qword [rax + 0x28], xmm7
mov dword [rax + 0x30], r14d
mov qword [rax + 0x38], r15
movups xmmword [rax + 0x40], xmm8
movsd qword [rax + 0x50], xmm9
mov qword [rax + 0x58], rdi
lea rcx, [0x1800528d8]
mov qword [rax], rcx
mov qword [rbp + 0x67], rax
and qword [rbp - 0x61], 0
lea rcx, [rbp - 0x69]
call fcn.18005263c
nop
mov rax, qword [rbx + 0x28]
lea rdx, [rbp + 0x67]
mov rcx, rbx
call qword [rax + 0x10]
nop
mov rax, qword [rbp + 0x67]
test rax, rax
je 0x18005245b
xor edx, edx
mov rcx, rax
call qword [rax]
nop
lea rcx, [rbp - 0x49]
mov rax, qword [rbp - 0x31]
call qword [rax]
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
mov rsp, r11
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180052544
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rsi
push rdi
push r14
sub rsp, 0x40
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rsi, rdx
mov r14, rcx
mov qword [rax - 0x30], r8
mov ecx, dword [0x180149b34]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180052580
mov rdx, qword [rax + 8]
jmp 0x180052582
xor edx, edx
mov r8d, 0xa0
call fcn.180051588
mov rdi, rax
mov qword [rsp + 0x30], rax
and qword [rsp + 0x38], 0
mov qword [rsp + 0x60], rax
test rax, rax
je 0x1800525ec
lea rbx, [rax + 8]
mov qword [rsp + 0x70], rbx
mov rdx, rsi
mov rcx, rbx
call fcn.180051f30
nop
movups xmm0, xmmword [rsi + 0x70]
movups xmmword [rbx + 0x70], xmm0
movsd xmm1, qword [rsi + 0x80]
movsd qword [rbx + 0x80], xmm1
mov rax, qword [rsi + 0x88]
mov qword [rbx + 0x88], rax
lea rax, [0x18005280c]
mov qword [rdi], rax
jmp 0x1800525ee
xor edi, edi
mov qword [r14], rdi
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x28]
call fcn.1800526e4
nop
mov qword [rsp + 0x68], rsi
lea rbx, [rsi + 0x30]
mov qword [rsp + 0x68], rbx
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x18005262a
mov rax, qword [rcx]
cmp rcx, rbx
setne dl
call qword [rax + 0x20]
and qword [rbx + 0x38], 0
mov rax, r14
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x18005263c
Capabilities:
Get thread local storage value

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov rbx, rcx
cmp qword [rcx + 0x10], 0
je 0x18005265f
and qword [rcx + 0x10], 0
mov rdi, qword [rcx + 8]
test rdi, rdi
je 0x1800526be
mov ecx, dword [0x180149b34]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
nop
test rax, rax
je 0x180052680
mov rcx, qword [rax + 8]
jmp 0x180052682
xor ecx, ecx
test rcx, rcx
je 0x1800526b0
mov edx, 4
mov eax, edx
cmp qword [rcx + rax*8], 0
je 0x1800526a2
inc edx
inc rax
cmp rax, 6
jl 0x18005268e
jmp 0x1800526b0
mov al, byte [rdi + 0x68]
mov byte [rdi], al
movsxd rax, edx
mov qword [rcx + rax*8], rdi
jmp 0x1800526b9
mov rcx, rdi
call fcn.180059b58
nop
and qword [rbx + 8], 0
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1800526e4
Capabilities:
Get thread local storage value

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x30
mov qword [r11 - 0x18], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x18005273b
mov qword [r11 + 8], rcx
lea rax, [rcx + 8]
mov qword [r11 + 8], rax
mov qword [r11 + 8], rax
lea rbx, [rcx + 0x38]
mov qword [r11 + 8], rbx
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x180052736
mov rax, qword [rcx]
cmp rcx, rbx
setne dl
call qword [rax + 0x20]
and qword [rbx + 0x38], 0
and qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x18005279b
mov ecx, dword [0x180149b34]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x18005275b
mov rcx, qword [rax + 8]
jmp 0x18005275d
xor ecx, ecx
test rcx, rcx
je 0x18005278e
mov edx, 4
mov eax, edx
cmp qword [rcx + rax*8], 0
je 0x18005277d
inc edx
inc rax
cmp rax, 6
jl 0x180052769
jmp 0x18005278e
mov al, byte [rbx + 0xa0]
mov byte [rbx], al
movsxd rax, edx
mov qword [rcx + rax*8], rbx
jmp 0x180052796
mov rcx, rbx
call fcn.180059b58
and qword [rdi + 8], 0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1800579a8
Capabilities:
Listen for remote procedure calls

Disassembly:
push rbx
sub rsp, 0x60
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov r8, rcx
lea rdx, [0x1800fab68]
lea rcx, [rsp + 0x38]
call fcn.180011b84
nop
lea r8, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae r8, qword [rsp + 0x38]
xor r9d, r9d
mov ebx, 0x4d2
mov edx, ebx
lea rcx, str.ncacn_np
call qword [sym.imp.RPCRT4.dll_RpcServerUseProtseqEpA]
test eax, eax
je 0x1800579ff
cmp eax, 0x6cc
jne 0x180057a41
lea rax, [fcn.18000a1f0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
mov r9d, 0x10
xor r8d, r8d
xor edx, edx
lea rcx, [0x1800f3ca0]
call qword [sym.imp.RPCRT4.dll_RpcServerRegisterIfEx]
test eax, eax
jne 0x180057a41
xor r8d, r8d
mov edx, ebx
lea ecx, [rax + 1]
call qword [sym.imp.RPCRT4.dll_RpcServerListen]
test eax, eax
jne 0x180057a41
mov bl, 1
jmp 0x180057a43
xor bl, bl
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x180057a61
inc rdx
mov r8d, 1
mov rcx, qword [rsp + 0x38]
call fcn.1800062ec
mov qword [rsp + 0x50], 0xf
and qword [rsp + 0x48], 0
mov byte [rsp + 0x38], 0
mov al, bl
add rsp, 0x60
pop rbx
ret