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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x4f8
test rcx, rcx
mov rsi, rcx
je 0x140019dc0
lea rdi, [0x14001e3d8]
mov rcx, rdi
call sym.pthread_mutex_lock
mov rcx, rsi
call sym.__pthread_get_pointer
mov rcx, rdi
mov rbx, rax
call sym.pthread_mutex_unlock
test rbx, rbx
je 0x140019dc0
mov rcx, qword [rbx + 0x28]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140019dc0
lea rdi, [rsp + 0x20]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x140019dc0
lea rbp, [rbx + 0x38]
mov rcx, rbp
call sym.pthread_mutex_lock
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x14001e3e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140019ed0
cmp rsi, qword [rax + 0x1d8]
movzx edx, byte [rbx + 0x40]
je 0x140019dd8
mov eax, dword [rbx + 0x44]
and eax, 3
cmp eax, 3
je 0x140019e30
test dl, 3
jne 0x140019db0
and edx, 0xfffffffc
or edx, 1
mov byte [rbx + 0x40], dl
lock add dword [0x140026d38], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140019da1
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rbp
call sym.pthread_mutex_unlock
xor eax, eax
jmp 0x140019dc5
mov rcx, rbp
call sym.pthread_mutex_unlock
test byte [rbx + 0x40], 0xc
je 0x140019da9
nop
mov eax, 3
add rsp, 0x4f8
pop rbx
pop rsi
pop rdi
pop rbp
ret
test dl, 3
jne 0x140019db0
and edx, 0xfffffffc
or edx, 1
mov byte [rbx + 0x40], dl
lock add dword [0x140026d38], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140019dfd
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [rbx + 0x44]
mov edx, eax
and edx, 3
cmp edx, 3
jne 0x140019da1
and eax, 0xfffffffe
mov rcx, rbp
mov dword [rbx + 0x44], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xfffffff3
or eax, 4
mov byte [rbx + 0x40], al
call sym.pthread_mutex_unlock
call sym._pthread_invoke_cancel
nop word [rax + rax]
test dl, 0xc
jne 0x140019db0
and edx, 0xf
jne 0x140019dc0
mov rcx, qword [rbx + 0x28]
mov dword [rsp + 0x50], 0x100001
call qword [sym.imp.KERNEL32.dll_SuspendThread]
xor edx, edx
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140019da1
mov rcx, qword [rbx + 0x28]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
lea rax, [sym._pthread_invoke_cancel]
mov rcx, qword [rbx + 0x28]
mov rdx, rdi
mov qword [rsp + 0x118], rax
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
movzx eax, byte [rbx + 0x40]
and dword [rbx + 0x44], 0xfffffffe
and eax, 0xfffffff0
or eax, 5
mov byte [rbx + 0x40], al
lock add dword [0x140026d38], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140019eb8
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rbp
call sym.pthread_mutex_unlock
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x140019da1
call sym.__pthread_self_lite.part.0
test rax, rax
jne 0x140019d60
movzx edx, byte [rbx + 0x40]
jmp 0x140019d6d
Function at 0x140019ef0
Capabilities:
Get thread local storage value
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x14001e3d8]
mov rbx, rcx
mov rcx, rdi
mov esi, edx
call sym.pthread_mutex_lock
mov rcx, rbx
call sym.__pthread_get_pointer
test rax, rax
je 0x140019f68
cmp qword [rax + 0x1d8], rbx
jne 0x140019f68
test byte [rax + 0x40], 0xc
jne 0x140019f68
mov edx, dword [rax + 0xbc]
test edx, edx
jne 0x140019f68
mov rax, qword [rax + 0x28]
sub rax, 1
cmp rax, 0xfffffffffffffffd
ja 0x140019f68
mov rcx, rdi
call sym.pthread_mutex_unlock
test esi, esi
je 0x140019f80
lea edx, [rsi - 2]
cmp edx, 0x15
ja 0x140019f88
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp sym.pthread_cancel
mov rcx, rdi
call sym.pthread_mutex_unlock
mov eax, 3
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor eax, eax
jmp 0x140019f75
mov eax, 0x16
jmp 0x140019f75

Function at 0x14001a150
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
mov rdi, rdx
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x14001e3e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001a1c0
cmp esi, 1
ja 0x14001a1cd
lea rbp, [rbx + 0x38]
mov rcx, rbp
call sym.pthread_mutex_lock
test rdi, rdi
je 0x14001a194
mov eax, dword [rbx + 0x44]
and eax, 1
mov dword [rdi], eax
mov eax, dword [rbx + 0x44]
mov rcx, qword [rbx + 0x1d8]
and eax, 0xfffffffe
or eax, esi
mov dword [rbx + 0x44], eax
call sym.test_cancel_locked
mov rcx, rbp
call sym.pthread_mutex_unlock
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sym.__pthread_self_lite.part.0
test rax, rax
mov rbx, rax
jne 0x14001a176
mov eax, 0x16
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x14001a1e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
mov rdi, rdx
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x14001e3e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001a258
mov ebp, esi
and ebp, 0xfffffffd
jne 0x14001a265
lea r12, [rbx + 0x38]
mov rcx, r12
call sym.pthread_mutex_lock
test rdi, rdi
je 0x14001a228
mov eax, dword [rbx + 0x44]
and eax, 2
mov dword [rdi], eax
mov eax, dword [rbx + 0x44]
mov rcx, qword [rbx + 0x1d8]
and eax, 0xfffffffd
or eax, esi
mov dword [rbx + 0x44], eax
call sym.test_cancel_locked
mov rcx, r12
call sym.pthread_mutex_unlock
mov eax, ebp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call sym.__pthread_self_lite.part.0
test rax, rax
mov rbx, rax
jne 0x14001a208
mov ebp, 0x16
mov eax, ebp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x14001a510
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
test rcx, rcx
mov rsi, rcx
mov rbp, rdx
je 0x14001a630
lea rdi, [0x14001e3d8]
mov rcx, rdi
call sym.pthread_mutex_lock
mov rcx, rsi
call sym.__pthread_get_pointer
mov rcx, rdi
mov rbx, rax
call sym.pthread_mutex_unlock
test rbx, rbx
je 0x14001a630
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x14001a630
lea rdx, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x14001a630
test byte [rbx + 0x44], 4
jne 0x14001a640
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x14001e3e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001a660
cmp rsi, qword [rax + 0x1d8]
je 0x14001a688
mov eax, dword [rbx + 0xbc]
mov rcx, qword [rbx + 0x28]
test eax, eax
je 0x14001a5bb
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14001a5ca
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x28]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001a5de
call rsi
mov qword [rbx + 0x30], 0
lea rcx, [rbx + 0x38]
test rbp, rbp
je 0x14001a678
mov rax, qword [rbx + 8]
mov qword [rbp], rax
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
call sym.pthread_spin_destroy
cmp eax, 1
je 0x14001a68f
cmp qword [rbx + 0x1d0], 0
mov qword [rbx + 0x68], 0xffffffffffffffff
je 0x14001a650
xor eax, eax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, 3
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, 0x16
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rbx
call sym.push_pthread_mem.part.0
xor eax, eax
jmp 0x14001a626
call sym.__pthread_self_lite.part.0
test rax, rax
jne 0x14001a596
jmp 0x14001a5a3
call sym.pthread_mutex_destroy
jmp 0x14001a600
mov eax, 0x24
jmp 0x14001a635
call sym.replace_spin_keys.part.0
nop
nop word cs:[rax + rax]
Function at 0x14001a6a0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rbp, [0x14001e3d8]
mov rsi, rcx
mov rcx, rbp
mov rdi, rdx
call sym.pthread_mutex_lock
mov rcx, rsi
call sym.__pthread_get_pointer
test rax, rax
mov rbx, rax
je 0x14001a7c0
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x14001a7c0
lea rdx, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x14001a7c0
test byte [rbx + 0x44], 4
jne 0x14001a7e0
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x14001e3e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001a820
mov rdx, qword [rax + 0x1d8]
cmp rsi, rdx
je 0x14001a858
mov edx, dword [rbx + 0xbc]
mov rcx, qword [rbx + 0x28]
test edx, edx
jne 0x14001a747
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14001a800
mov rcx, qword [rbx + 0x28]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001a75b
call rsi
mov qword [rbx + 0x30], 0
lea rcx, [rbx + 0x38]
test rdi, rdi
je 0x14001a838
mov rax, qword [rbx + 8]
mov qword [rdi], rax
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
call sym.pthread_spin_destroy
cmp eax, 1
je 0x14001a86a
cmp qword [rbx + 0x1d0], 0
mov qword [rbx + 0x68], 0xffffffffffffffff
je 0x14001a848
mov rcx, rbp
call sym.pthread_mutex_unlock
xor eax, eax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rbp
call sym.pthread_mutex_unlock
mov eax, 3
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rbp
call sym.pthread_mutex_unlock
mov eax, 0x16
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, dword [rbx + 0xbc]
test eax, eax
jne 0x14001a743
mov rcx, rbp
call sym.pthread_mutex_unlock
mov eax, 0x10
jmp 0x14001a7ae
call sym.__pthread_self_lite.part.0
xor edx, edx
test rax, rax
jne 0x14001a715
jmp 0x14001a71c
call sym.pthread_mutex_destroy
jmp 0x14001a77c
mov rcx, rbx
call sym.push_pthread_mem.part.0
jmp 0x14001a7a4
mov rcx, rbp
call sym.pthread_mutex_unlock
mov eax, 0x24
jmp 0x14001a7ae
call sym.replace_spin_keys.part.0
nop
Function at 0x1400014c0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x10], rdx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov r15, rdx
mov rsi, rcx
sub r15, rcx
mov r9d, 4
mov qword [rsp + 0x38], r15
nop dword [rax]
mov r8d, 4
nop word [rax + rax]
movzx eax, byte [r15 + rcx]
xor byte [rcx], al
inc rcx
sub r8, 1
jne 0x140001500
sub r9, 1
jne 0x1400014f0
mov r15, qword [rsp + 0x40]
mov r12b, 1
lea r10, str.cw
mov r8, rsi
mov r9d, 4
nop
mov rcx, r8
mov edx, 4
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 4]
movzx eax, byte [rax + r10]
mov byte [rcx - 4], al
sub rdx, 1
jne 0x140001540
inc r8
sub r9, 1
jne 0x140001530
movzx eax, byte [rsi + 5]
movzx ecx, byte [rsi + 1]
mov byte [rsi + 1], al
movzx eax, byte [rsi + 9]
mov byte [rsi + 5], al
movzx eax, byte [rsi + 0xd]
mov byte [rsi + 9], al
movzx eax, byte [rsi + 0xa]
mov byte [rsi + 0xd], cl
movzx ecx, byte [rsi + 2]
mov byte [rsi + 2], al
movzx eax, byte [rsi + 0xe]
mov byte [rsi + 0xa], cl
movzx ecx, byte [rsi + 6]
mov byte [rsi + 6], al
movzx eax, byte [rsi + 0xf]
mov byte [rsi + 0xe], cl
movzx ecx, byte [rsi + 3]
mov byte [rsi + 3], al
movzx eax, byte [rsi + 0xb]
mov byte [rsi + 0xf], al
movzx eax, byte [rsi + 7]
mov byte [rsi + 0xb], al
mov byte [rsi + 7], cl
cmp r12b, 0xa
je 0x1400016ce
lea r14, [rsi + 2]
lea ebp, [rdx + 4]
nop dword [rax]
nop word [rax + rax]
movzx edi, byte [r14 - 2]
movzx r8d, byte [r14 - 1]
movzx edx, dil
movzx ebx, byte [r14 + 1]
xor dl, r8b
movzx r10d, byte [r14]
lea r14, [r14 + 4]
movzx eax, dl
movzx r9d, bl
shr al, 7
add dl, dl
movzx eax, al
xor r9b, r10b
imul ecx, eax, 0x1b
movzx r11d, r9b
xor r11b, dil
xor r11b, r8b
xor cl, dl
movzx edx, r8b
xor cl, dil
xor dl, r10b
xor cl, r11b
movzx eax, dl
mov byte [r14 - 6], cl
xor dil, bl
shr al, 7
add dl, dl
movzx eax, al
imul ecx, eax, 0x1b
movzx eax, r9b
shr al, 7
add r9b, r9b
movzx eax, al
xor cl, dl
xor cl, r8b
xor cl, r11b
mov byte [r14 - 5], cl
imul ecx, eax, 0x1b
movzx eax, dil
shr al, 7
add dil, dil
movzx eax, al
xor cl, r9b
xor cl, r10b
xor cl, r11b
mov byte [r14 - 4], cl
imul ecx, eax, 0x1b
xor cl, dil
xor cl, bl
xor cl, r11b
mov byte [r14 - 3], cl
sub rbp, 1
jne 0x1400015d0
movzx r8d, r12b
lea r9d, [rbp + 4]
shl r8, 4
mov rax, rsi
sub r8, rsi
add r8, r15
nop word [rax + rax]
mov edx, 4
nop word [rax + rax]
movzx ecx, byte [r8 + rax]
xor byte [rax], cl
inc rax
sub rdx, 1
jne 0x1400016b0
sub r9, 1
jne 0x1400016a0
inc r12b
jmp 0x14000151e
mov r15, qword [rsp + 0x38]
mov edx, 4
nop dword [rax + rax]
mov ecx, 4
nop word [rax + rax]
movzx eax, byte [r15 + rsi + 0xa0]
xor byte [rsi], al
inc rsi
sub rcx, 1
jne 0x1400016f0
sub rdx, 1
jne 0x1400016e0
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140003940
Capabilities:
Accept command line arguments

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x70
xor ebx, ebx
mov dword [rsp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x50], rax
mov rdi, rax
test rax, rax
jne 0x14000397d
lea rax, [rbx - 1]
add rsp, 0x70
pop r15
pop rdi
pop rbx
ret
mov eax, dword [rsp + 0x40]
mov r15, 0xffffffffffffffff
inc eax
mov qword [rsp + 0x98], rsi
movsxd rcx, eax
mov eax, 8
mul rcx
mov qword [rsp + 0x60], r14
cmovo rax, r15
mov rcx, rax
call fcn.140003ae4
mov r14, rax
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x140003a7c
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0xa0], r12
mov r12, r14
mov qword [rsp + 0x68], r13
mov r13, rdi
sub r13, r14
mov r14d, ebx
nop dword [rax]
nop word [rax + rax]
mov rbp, qword [r12 + r13]
mov r9d, r15d
mov qword [rsp + 0x38], rbx
mov r8, rbp
mov qword [rsp + 0x30], rbx
xor edx, edx
mov dword [rsp + 0x28], ebx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
mov rcx, rdi
call fcn.140003ae4
mov qword [rsp + 0x38], rbx
mov r9d, r15d
mov qword [rsp + 0x30], rbx
mov r8, rbp
mov dword [rsp + 0x28], edi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [r12], rsi
lea r12, [r12 + 8]
mov eax, dword [rsp + 0x40]
inc r14d
cmp r14d, eax
jne 0x1400039f0
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0x90]
cdqe
mov rcx, rdi
mov qword [r14 + rax*8], rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rsp + 0x40]
mov rdx, r14
call fcn.1400020e0
mov esi, eax
cmp dword [rsp + 0x40], ebx
je 0x140003abb
mov rdi, r14
mov rcx, qword [rdi]
test rcx, rcx
je 0x140003abb
call fcn.140002c74
inc ebx
add rdi, 8
cmp ebx, dword [rsp + 0x40]
jne 0x140003aa2
mov rcx, r14
call fcn.140002c74
mov r14, qword [rsp + 0x60]
mov eax, esi
mov rsi, qword [rsp + 0x98]
add rsp, 0x70
pop r15
pop rdi
pop rbx
ret
Function at 0x1000147a4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
lea rax, [rsp + 0x30]
lea rdx, str.SystemCurrentControlSetControlPrint
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x10001492a
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
lea rdx, str.PipelineHostReuse
xor r8d, r8d
mov dword [rsp + 0x60], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100014829
mov eax, dword [rsp + 0x58]
neg eax
sbb cl, cl
and cl, byte [0x1000aae18]
mov byte [0x1000aae18], cl
mov rcx, qword [rsp + 0x30]
and dword [rsp + 0x58], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x68]
lea rdx, str.PipelineHostTimeout
xor r8d, r8d
mov dword [rsp + 0x60], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10001487d
mov eax, dword [rsp + 0x58]
mov ecx, dword [0x1000aae08]
test eax, eax
cmovne ecx, eax
mov dword [0x1000aae08], ecx
mov rcx, qword [rsp + 0x30]
and dword [rsp + 0x58], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x68]
lea rdx, str.PipelineDebugLog
xor r8d, r8d
mov dword [rsp + 0x60], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000148cb
mov eax, dword [rsp + 0x58]
test eax, eax
je 0x1000148cb
setne byte [0x1000aad38]
mov rcx, qword [rsp + 0x30]
and dword [rsp + 0x58], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x68]
lea rdx, str.PipelineBufferSize
xor r8d, r8d
mov dword [rsp + 0x60], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10001491f
mov eax, dword [rsp + 0x58]
mov ecx, dword [0x1000a987c]
test eax, eax
cmovne ecx, eax
mov dword [0x1000a987c], ecx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
add rsp, 0x40
pop rbx
ret
Function at 0x1000166d4
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1000a9120]
xor rax, rsp
mov qword [rsp + 0x270], rax
and qword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x60], 0
mov rdi, rcx
mov rcx, qword [rcx]
lea rax, [rsp + 0x60]
mov r9d, 0x2001f
xor r8d, r8d
mov rsi, rdx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x1000167d8
test rcx, rcx
je 0x10001674e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
test ebx, ebx
mov qword [rsp + 0x48], rcx
jmp 0x100016774
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1000166d4
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x1000167d8
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor edx, edx
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x10001675c
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1000167c6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x48], 0
mov rdx, rsi
mov rcx, rdi
call fcn.100016838
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test rcx, rcx
je 0x1000167e3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.100057810
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x10001755c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov r11, rsp
push rsi
push rdi
push r12
sub rsp, 0x520
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov rax, qword [0x1000a9120]
xor rax, rsp
mov qword [rsp + 0x510], rax
mov r12, r9
mov rdi, r8
mov rax, rdx
xor ebx, ebx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rbx
mov qword [r11 - 0x438], rbx
xor edx, edx
lea r8d, [rbx + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
cmp rax, rbx
jne 0x1000175d2
call fcn.100015aa4
mov ebx, eax
jmp 0x100017752
mov r8, r12
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
cmp rax, rbx
jne 0x1000175f5
call fcn.100015aa4
mov ebx, eax
jmp 0x100017748
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r12, rax
mov qword [rsp + 0x40], rax
cmp rax, rbx
jne 0x10001761a
call fcn.100015aa4
mov ebx, eax
jmp 0x100017748
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, edi
jae 0x10001765c
lea rax, [rsp + 0x108]
cmp qword [rsp + 0x100], rax
je 0x100017652
lea rcx, [rsp + 0x100]
call fcn.100015fd0
nop
mov eax, 0x8007000e
jmp 0x100017774
mov ecx, eax
cmp rcx, rbx
je 0x1000176c1
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x100017696
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x1000176c1
lea rcx, [rsp + 0x100]
call fcn.100015a4c
mov rax, qword [rsp + 0x100]
jmp 0x1000176d1
mov r9d, 0x80070057
xor r8d, r8d
lea rdx, [0x100007290]
lea rcx, [rsp + 0x68]
call fcn.1000547f4
lea rdx, [0x1000a6c78]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll__CxxThrowException
lea rax, [rsp + 0x108]
mov qword [rsp + 0x100], rax
jmp 0x1000176eb
cmp rax, rbx
jne 0x1000176f7
mov ebx, 0x8007000e
jmp 0x100017748
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8, r12
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x10001771e
call fcn.100015aa4
mov ebx, eax
jmp 0x100017748
mov ecx, eax
mov rax, qword [rsp + 0x100]
mov word [rax + rcx*2], bx
mov r8d, dword [rsp + 0x560]
mov rdx, qword [rsp + 0x100]
lea rcx, [rsp + 0x48]
call fcn.10001739c
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x108]
cmp qword [rsp + 0x100], rax
je 0x100017772
lea rcx, [rsp + 0x100]
call fcn.100015fd0
nop
mov eax, ebx
mov rcx, qword [rsp + 0x510]
xor rcx, rsp
call fcn.100057810
mov rbx, qword [rsp + 0x540]
add rsp, 0x520
pop r12
pop rdi
pop rsi
ret
Function at 0x100020098
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.10001f2bc
mov rcx, qword [rbx + 0xa0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1000200bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x20
pop rbx
ret

Function at 0x100031854
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x190
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x1000a9120]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rsi, r9
mov ebp, r8d
mov r12, rdx
mov rdi, rcx
test r8d, r8d
jne 0x100031896
and dword [r9], r8d
jmp 0x100031a16
cmp qword [rcx + 0x60], 0
jne 0x1000318c1
mov rcx, qword [rcx + 0x68]
mov rax, qword [rcx]
lea rdx, [rdi + 0x60]
call qword [rax + 0x20]
test eax, eax
jns 0x1000318c1
xor r8d, r8d
lea rdx, [0x100007290]
mov ecx, eax
call fcn.100054a08
int3
mov rcx, qword [rdi + 0x60]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rcx, rax
and qword [rsp + 0x20], 0
mov r9, rsi
mov r8d, ebp
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100031958
xor r8d, r8d
lea rdx, [0x100007290]
lea rcx, [rsp + 0xe0]
call fcn.1000547b8
nop
call fcn.100055030
mov edx, eax
lea rcx, [rsp + 0xe0]
call fcn.10005473c
lea rdx, [0x10000a5b8]
lea rcx, [rsp + 0xe0]
call fcn.100054680
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x40]
call fcn.100054614
nop
lea rax, [0x10000a428]
mov qword [rsp + 0x40], rax
lea rdx, [0x1000a6ce0]
lea rcx, [rsp + 0x40]
call sub.msvcrt.dll__CxxThrowException
nop
lea rdx, [rdi + 0x20]
lea rcx, [rsp + 0x30]
call fcn.1000554f8
nop
add qword [rdi + 0x70], rbp
lea rbx, [rdi + 0x80]
mov rsi, qword [rbx + 0x18]
mov rax, qword [rbx + 0x20]
add rax, qword [rbx + 0x18]
cmp rbx, rbx
jne 0x100031988
cmp rsi, rax
je 0x1000319b7
mov rcx, rsi
shr rcx, 1
mov r8, rsi
and r8d, 1
cmp qword [rbx + 0x10], rcx
ja 0x10003199f
sub rcx, qword [rbx + 0x10]
mov rax, qword [rbx + 8]
mov rcx, qword [rax + rcx*8]
xor edx, edx
mov rcx, qword [rcx + r8*8]
call fcn.100032794
inc rsi
jmp 0x100031976
mov rax, qword [rsp + 0x30]
add dword [rax + 0x34], 0xffffffff
mov eax, dword [rax + 0x34]
mov rcx, qword [rsp + 0x30]
jne 0x1000319ce
and dword [rcx + 0x30], 0
add rcx, 8
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rax, [0x1000a9e88]
mov rcx, qword [0x1000a9e88]
cmp rcx, rax
je 0x100031a16
test byte [rcx + 0x1c], 8
je 0x100031a16
cmp byte [rcx + 0x19], 3
jb 0x100031a16
mov edx, 0xd
mov eax, dword [rdi + 0x70]
mov dword [rsp + 0x20], eax
mov r9d, ebp
lea r8, [0x100006ec0]
mov rcx, qword [rcx + 0x10]
call fcn.1000208b4
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.100057810
add rsp, 0x190
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret