joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140018754
Capabilities:
Delete directory

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
and dword [rbp + 0x30], 0
mov r14, rdx
mov sil, cl
call fcn.14001a438
call fcn.1400014bc
test sil, sil
je 0x1400187e5
test rax, rax
je 0x140018953
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
lea rdx, str.GoogleCrashReports
lea rcx, [rbp - 0x18]
mov qword [rbp - 0x20], rax
call fcn.140005328
mov rdx, rax
lea r9, [rbp - 0x20]
mov r8b, 1
mov ecx, 0x26
call fcn.1400199d8
mov rdx, qword [rbp - 0x18]
add rdx, 0xffffffffffffffe8
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x1400187da
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rdx, [rbp - 0x20]
mov ebx, 1
jmp 0x14001884d
mov rcx, rax
test rax, rax
je 0x140018953
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
lea rdx, str.GoogleCrashReports
lea rcx, [rbp - 0x10]
mov qword [rbp + 0x48], rax
call fcn.140005328
mov rdx, rax
lea r9, [rbp + 0x48]
mov r8b, 1
mov ecx, 0x1c
call fcn.1400199d8
mov rdx, qword [rbp - 0x10]
add rdx, 0xffffffffffffffe8
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x140018844
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rdx, [rbp + 0x48]
mov ebx, 2
lea rcx, [rbp + 0x40]
call fcn.1400053b4
test bl, 2
je 0x14001887c
mov rdx, qword [rbp + 0x48]
and ebx, 0xfffffffd
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x14001887c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test bl, 1
je 0x14001889f
mov rdx, qword [rbp - 0x20]
mov eax, edi
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x14001889f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test sil, sil
je 0x1400188ca
mov rbx, qword [rbp + 0x40]
cmp dword [rbx - 0x10], 0
je 0x1400188d4
lea rcx, [rbp + 0x40]
call fcn.140018528
test eax, eax
jns 0x1400188ca
mov rbx, qword [rbp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1400188ce
mov rbx, qword [rbp + 0x40]
cmp dword [rbx - 0x10], 0
jne 0x140018918
lea rcx, [rbp - 8]
call fcn.140005de4
mov rdx, rax
lea rcx, [rbp + 0x40]
call fcn.140001838
mov rdx, qword [rbp - 8]
mov eax, edi
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x140018907
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rbp + 0x40]
cmp dword [rbx - 0x10], 0
jne 0x140018918
mov esi, 0x8004fffc
jmp 0x14001892b
test r14, r14
je 0x140018929
lea rdx, [rbp + 0x40]
mov rcx, r14
call fcn.140001838
xor esi, esi
lea rdx, [rbx - 0x18]
mov ecx, edi
lock xadd dword [rdx + 0x10], ecx
add ecx, edi
test ecx, ecx
jg 0x140018946
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, esi
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80004005
call fcn.140001814
int3
Function at 0x140018fe0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rsi, rdx
mov rbp, rcx
lea rdx, str.ClientCustomData
lea rcx, [rsp + 0x30]
call fcn.140005328
call fcn.1400014bc
xor edi, edi
mov rcx, rax
test rax, rax
je 0x14001914b
mov rax, qword [rax]
call qword [rax + 0x18]
mov r8, qword [rsp + 0x30]
lea rdx, str.__s__r_n
add rax, 0x18
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x78], rax
call fcn.14000a9bc
mov rax, qword [rsi]
mov rbx, qword [rax]
cmp rbx, rax
je 0x1400190a7
mov r9, qword [rbx + 0x28]
lea rdx, str._s_s_r_n
mov r8, qword [rbx + 0x20]
lea rcx, [rsp + 0x78]
call fcn.14000a9bc
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], dil
je 0x140019087
mov rax, qword [rbx + 8]
jmp 0x14001907c
cmp rbx, qword [rax + 0x10]
jne 0x140019082
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], dil
je 0x14001906f
mov rbx, rax
jmp 0x1400190a2
mov rcx, qword [rax]
mov rbx, rax
cmp byte [rcx + 0x19], dil
jne 0x1400190a2
mov rax, qword [rcx]
mov rbx, rcx
mov rcx, rax
cmp byte [rax + 0x19], dil
je 0x140019093
cmp rbx, qword [rsi]
jne 0x140019046
mov rbx, qword [rsp + 0x78]
lea r9, [rsp + 0x70]
mov dword [rsp + 0x70], edi
mov rdx, rbx
mov rcx, rbp
mov qword [rsp + 0x20], rdi
mov r8d, dword [rbx - 0x10]
add r8d, r8d
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400190f8
call fcn.14000b1b0
lea rdx, [rbx - 0x18]
mov esi, eax
or ebx, 0xffffffff
mov ecx, ebx
lock xadd dword [rdx + 0x10], ecx
add ecx, ebx
test ecx, ecx
jg 0x140019117
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
jmp 0x140019117
lea rdx, [rbx - 0x18]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140019115
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov esi, edi
mov rdx, qword [rsp + 0x30]
mov ecx, ebx
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ecx
add ecx, ebx
test ecx, ecx
jg 0x140019137
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov rbx, qword [rsp + 0x60]
test esi, esi
cmovs edi, esi
mov eax, edi
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140001814
int3
Function at 0x14001aab0
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x140052010]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x200
call fcn.140020690
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], pe_nt_image_headers64
lea rdx, [rsp + 0x30]
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
xor ebx, ebx
test eax, eax
je 0x14001ab1d
lea rdx, str..google.com
lea rcx, [rsp + 0x30]
call fcn.140006498
test al, al
je 0x14001ab1d
mov al, 1
jmp 0x14001ab63
lea r8, [rsp + 0x28]
mov qword [rsp + 0x28], rbx
mov edx, 0x64
xor ecx, ecx
call qword [sym.imp.NETAPI32.dll_NetWkstaGetInfo]
mov rdi, qword [rsp + 0x28]
test eax, eax
jne 0x14001ab58
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x14001ab58
lea rdx, str.google
call fcn.14002eb54
test eax, eax
jne 0x14001ab58
mov bl, 1
mov rcx, rdi
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov al, bl
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14001fa80
mov rbx, qword [rsp + 0x250]
add rsp, 0x240
pop rdi
ret
Function at 0x14001bdc4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
and qword [rbp - 0x30], 0
mov r14b, cl
xorps xmm0, xmm0
lea rcx, [rbp - 0x30]
movdqu xmmword [rbp - 0x28], xmm0
call fcn.14001b708
test eax, eax
js 0x14001bf64
mov rax, qword [rbp - 0x28]
cmp qword [rbp - 0x30], rax
je 0x14001bf64
call fcn.14001a438
lea rax, str.HKCUSoftwareGoogleUpdate_
test r14b, r14b
lea rdx, str.HKLMSoftwareGoogleUpdate_
cmove rdx, rax
lea rcx, [rbp + 0x38]
call fcn.140005328
lea rdx, [0x14004c9f0]
lea rcx, [rbp + 0x40]
call fcn.140005328
lea r8, [rbp + 0x40]
lea rdx, [rbp + 0x38]
lea rcx, [rbp + 0x48]
call fcn.140004cf4
mov rdx, rax
lea rcx, [rbp + 0x38]
call fcn.140001838
mov rdx, qword [rbp + 0x48]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001be74
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rbp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001be92
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rbp + 0x38]
mov rcx, rbx
call fcn.14000a0d0
test al, al
jne 0x14001beb3
mov dl, 1
mov cl, r14b
call fcn.14001bf88
mov edi, eax
jmp 0x14001bf44
and qword [rbp - 0x10], 0
lea rax, [0x140049b10]
mov r8d, 1
mov qword [rbp - 0x18], rax
mov rdx, rbx
mov dword [rbp - 8], 0x200
lea rcx, [rbp - 0x18]
call fcn.140009934
mov edi, eax
test eax, eax
js 0x14001bf30
mov rdi, qword [rbp - 0x28]
xor esi, esi
mov r15, qword [rbp - 0x30]
sub rdi, r15
sar rdi, 3
test rdi, rdi
je 0x14001bf24
and qword [rsp + 0x28], 0
xor r9d, r9d
mov rdx, qword [r15 + rsi*8]
xor r8d, r8d
mov rcx, qword [rbp - 0x10]
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14001bf60
inc rsi
cmp rsi, rdi
jb 0x14001bef8
xor edx, edx
mov cl, r14b
call fcn.14001bf88
mov edi, eax
lea rax, [0x140049b10]
lea rcx, [rbp - 0x18]
mov qword [rbp - 0x18], rax
call fcn.1400096ec
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001bf69
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x14001bf69
xor edi, edi
jmp 0x14001bf30
mov edi, 1
lea rcx, [rbp - 0x30]
call fcn.1400061a0
mov rbx, qword [rsp + 0x90]
mov eax, edi
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001bf88
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
mov rbp, rsp
sub rsp, 0x60
and qword [rbp - 0x20], 0
lea rax, [0x14004a830]
mov sil, dl
mov qword [rbp - 0x28], rax
lea rdx, [rbp - 0x28]
mov dil, cl
call fcn.14001baa4
mov rax, qword [rbp - 0x28]
lea rcx, [rbp - 0x28]
call qword [rax + 8]
and qword [rbp - 0x10], 0
lea r12, [0x140049b10]
mov qword [rbp - 0x18], r12
mov dword [rbp - 8], 0x200
call fcn.14001a438
lea rax, str.HKCUSoftwareGoogleUpdate_
test dil, dil
lea rdx, str.HKLMSoftwareGoogleUpdate_
mov r8d, 0xf003f
cmove rdx, rax
lea rcx, [rbp - 0x18]
call fcn.140009934
mov rcx, qword [rbp - 0x10]
lea rdx, str.old_uid
and qword [rsp + 0x28], 0
xor r9d, r9d
and qword [rsp + 0x20], 0
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rdx, [0x14004c9f0]
test eax, eax
jne 0x14001c03d
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x14001c145
and qword [rbp + 0x48], 0
lea rax, [rbp + 0x48]
and dword [rbp + 0x30], 0
lea r9, [rbp - 0x30]
lea r8, [rbp + 0x30]
mov qword [rsp + 0x20], rax
lea rcx, [rbp - 0x18]
call fcn.140009bb0
test eax, eax
jns 0x14001c06f
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x14001c0b3
jmp 0x14001c0ae
mov eax, dword [rbp + 0x30]
lea rdx, str.old_uid
mov rbx, qword [rbp - 0x30]
lea rcx, [rbp - 0x18]
mov r9, qword [rbp + 0x48]
mov r8, rbx
mov dword [rsp + 0x20], eax
call fcn.14000a088
test eax, eax
js 0x14001c0a6
mov rcx, qword [rbp - 0x10]
lea rdx, [0x14004c9f0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test rbx, rbx
je 0x14001c0b3
mov rcx, rbx
call fcn.14001fd2c
test sil, sil
je 0x14001c145
call fcn.1400014bc
mov rcx, rax
test rax, rax
je 0x14001c17d
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
lea r8, [rbp + 0x40]
lea rdx, str.old_uid
mov qword [rbp + 0x40], rax
lea rcx, [rbp - 0x18]
call fcn.140009d9c
lea rcx, str.__legacy
call fcn.140033e74
mov r8d, eax
lea rdx, str.__legacy
lea rcx, [rbp + 0x40]
call fcn.140005544
mov rbx, qword [rbp + 0x40]
lea rdx, str.old_uid
mov r8, rbx
lea rcx, [rbp - 0x18]
mov r9d, 1
call fcn.14000a018
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001c145
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov cl, dil
call fcn.14001c188
lea rcx, [rbp - 0x18]
mov qword [rbp - 0x18], r12
mov ebx, eax
call fcn.1400096ec
mov rdx, qword [rbp - 0x28]
lea rcx, [rbp - 0x28]
call qword [rdx + 0x10]
lea rcx, [rbp - 0x28]
call fcn.14000953c
mov eax, ebx
add rsp, 0x60
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80004005
call fcn.140001814
int3
Function at 0x14001c448
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov bl, cl
test cl, cl
je 0x14001c46d
call fcn.14000b0fc
test al, al
je 0x14001c52a
and qword [rbp - 0x28], 0
lea rax, [0x14004a830]
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x30], rax
mov cl, bl
call fcn.14001baa4
mov rax, qword [rbp - 0x30]
lea rcx, [rbp - 0x30]
call qword [rax + 8]
and qword [rbp - 0x18], 0
lea rdi, [0x140049b10]
mov qword [rbp - 0x20], rdi
mov dword [rbp - 0x10], 0x200
call fcn.14001a438
lea rax, str.HKCUSoftwareGoogleUpdate_
test bl, bl
lea rdx, str.HKLMSoftwareGoogleUpdate_
mov r8d, 0xf003f
cmove rdx, rax
lea rcx, [rbp - 0x20]
call fcn.140009934
test eax, eax
js 0x14001c509
mov rcx, qword [rbp - 0x18]
lea rdx, [0x14004c9f0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rbp - 0x18]
lea rdx, str.old_uid
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rbp - 0x18]
lea rdx, [0x14004c9f0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea rcx, [rbp - 0x20]
mov qword [rbp - 0x20], rdi
call fcn.1400096ec
mov rax, qword [rbp - 0x30]
lea rcx, [rbp - 0x30]
call qword [rax + 0x10]
lea rcx, [rbp - 0x30]
call fcn.14000953c
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x50
pop rbp
ret

Function at 0x14001c740
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
test dl, dl
je 0x14001c75b
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
jmp 0x14001c761
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ecx, 0x409
lea r10, [0x140048630]
movzx edx, ax
mov r8, rdi
mov eax, ecx
cmp dx, ax
je 0x14001c78e
inc r8
imul rax, r8, 0x1a
movzx eax, word [rax + r10]
test ax, ax
jne 0x14001c775
movzx edx, cx
mov r9, rdi
mov r8d, edi
cmp cx, dx
je 0x14001c7b6
inc r9
inc r8d
imul rax, r9, 0x1a
movzx ecx, word [rax + r10]
test cx, cx
jne 0x14001c794
lea rdx, [0x140046b38]
jmp 0x14001c7c7
movsxd rax, r8d
imul rdx, rax, 0x1a
lea rax, [0x140048632]
add rdx, rax
mov rcx, rbx
call fcn.140005328
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14001df6c
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
mov rbx, rcx
mov rsi, rdx
lea rcx, [0x140052ca8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r14, qword [rsi + 0x28]
lea rcx, [0x140052ca8]
and qword [rsi + 0x28], 0
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test r14, r14
je 0x14001e075
lea rdi, [rbx + 0x38]
cmp qword [rdi], 0
jne 0x14001dfd1
mov rdx, qword [rbx + 0x20]
lea r8, str.Counts
mov rcx, rdi
call fcn.14001dcf4
test eax, eax
jne 0x14001e075
mov rdx, qword [rsi + 8]
lea rcx, [rbp - 0x10]
call fcn.140006a94
mov rbx, qword [rbp - 0x10]
lea rax, [rbp + 0x38]
mov rcx, qword [rdi]
lea r9, [rbp + 0x40]
and qword [rbp + 0x48], 0
mov esi, 8
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rbp + 0x48]
mov dword [rbp + 0x38], esi
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001e027
cmp dword [rbp + 0x40], 3
jne 0x14001e027
test eax, eax
jne 0x14001e027
cmp dword [rbp + 0x38], esi
je 0x14001e035
mov r8, rsi
lea rcx, [rbp + 0x48]
xor edx, edx
call fcn.140020690
mov rcx, qword [rdi]
lea rax, [rbp + 0x48]
add qword [rbp + 0x48], r14
mov r9d, 3
mov dword [rsp + 0x28], esi
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001e075
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x14001e21c
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rdi, rcx
mov rsi, rdx
lea rcx, [0x140052ca8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [rsi + 0x28]
lea rcx, [0x140052ca8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x58], rbx
test rbx, rbx
je 0x14001e2ce
lea rbx, [rdi + 0x68]
cmp qword [rbx], 0
jne 0x14001e27a
mov rdx, qword [rdi + 0x20]
lea r8, str.Integers
mov rcx, rbx
call fcn.14001dcf4
test eax, eax
jne 0x14001e2ce
mov rdx, qword [rsi + 8]
lea rcx, [rsp + 0x60]
call fcn.140006a94
lea rcx, [rsp + 0x58]
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rcx
mov r9d, 3
mov rcx, qword [rbx]
xor r8d, r8d
mov rdx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001e2ce
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x14001e2e0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rdi, rcx
mov rsi, rdx
lea rcx, [0x140052ca8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [rsi + 0x28]
lea rcx, [0x140052ca8]
or dword [rsi + 0x28], 0xffffffff
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [rsp + 0x58], ebx
cmp ebx, 0xffffffff
je 0x14001e397
lea rbx, [rdi + 0x80]
cmp qword [rbx], 0
jne 0x14001e343
mov rdx, qword [rdi + 0x20]
lea r8, str.Booleans
mov rcx, rbx
call fcn.14001dcf4
test eax, eax
jne 0x14001e397
mov rdx, qword [rsi + 8]
lea rcx, [rsp + 0x60]
call fcn.140006a94
lea rcx, [rsp + 0x58]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rcx
mov r9d, 3
mov rcx, qword [rbx]
xor r8d, r8d
mov rdx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001e397
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x14001f6f4
Capabilities:
Read pipe
Write file on windows
Write pipe

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x38]
sub rsp, 0x130
mov ebx, dword [rcx + 0x38]
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movups xmm0, xmmword [rdi + 0x28]
mov dword [rbp - 0x6c], eax
lea r9, [rsp + 0x40]
lea rax, [rdi + 0x5c]
mov dword [rbp - 0x68], ebx
xor ebx, ebx
mov qword [rbp - 0x60], rax
lea rax, [rdi + 0x60]
mov qword [rsp + 0x30], rbx
mov qword [rbp - 0x58], rax
lea rdx, [rbp - 0x70]
lea rax, [rdi + 0x68]
mov dword [rbp - 0x70], 1
mov qword [rbp - 0x50], rax
lea r8d, [rbx + 0x50]
lea rax, [rbp + 0x40]
mov qword [rbp - 0x38], rbx
movdqu xmmword [rbp - 0x48], xmm0
mov qword [rsp + 0x28], rax
mov rcx, rsi
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x50
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x30], xmm0
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], ebx
movdqa xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rbx
movups xmmword [rsp + 0x68], xmm1
mov qword [rsp + 0x78], rbx
movdqa xmmword [rbp - 0x80], xmm0
mov dword [rbp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
je 0x14001f846
cmp dword [rsp + 0x40], 2
jne 0x14001f846
cmp dword [rsp + 0x44], ebx
je 0x14001f846
cmp qword [rsp + 0x78], rbx
je 0x14001f846
cmp qword [rbp - 0x80], rbx
je 0x14001f846
cmp qword [rbp - 0x78], rbx
je 0x14001f846
xorps xmm0, xmm0
mov qword [rbp - 0x1c], rbx
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x10], xmm0
xor eax, eax
movaps xmmword [rbp], xmm1
lea r9, [rbp + 0x40]
mov qword [rbp + 0x10], rax
lea r8d, [rbx + 0x50]
movdqa xmmword [rbp + 0x20], xmm0
lea rdx, [rbp - 0x20]
mov qword [rbp + 0x18], rbx
mov rcx, rsi
mov dword [rbp - 0x20], 3
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14001f846
mov rcx, qword [rsp + 0x78]
mov al, 1
mov qword [rdi + 0x40], rcx
mov rcx, qword [rbp - 0x80]
mov qword [rdi + 0x48], rcx
mov rcx, qword [rbp - 0x78]
mov qword [rdi + 0x50], rcx
mov ecx, dword [rsp + 0x44]
mov dword [rdi + 0x58], ecx
jmp 0x14001f848
xor al, al
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140023d60
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140023b34
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140023b34
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140023b34
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140023b34
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140023b34
cmp dword [rcx + 0x84], 0xe
jbe 0x140023b34
cmp dword [rcx + 0xf8], esi
je 0x140023b34
mov ecx, r14d
call fcn.140023c7c
mov ecx, 2
call fcn.140029738
nop
cmp byte [0x140053700], 0
jne 0x140023bfe
mov r15d, 1
mov eax, r15d
xchg dword [0x1400536f0], eax
test ebx, ebx
jne 0x140023ba7
mov rdi, qword [0x140052010]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x1400536f8]
cmp rcx, rax
je 0x140023b9e
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.1400024b8]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140053940]
jmp 0x140023bb3
cmp ebx, r15d
jne 0x140023bb9
lea rcx, [0x140053958]
call fcn.1400246cc
nop
test ebx, ebx
jne 0x140023bd0
lea rdx, [0x140038930]
lea rcx, [0x140038910]
call fcn.140024a40
lea rdx, [0x140038940]
lea rcx, [0x140038938]
call fcn.140024a40
movzx eax, byte [0x140053700]
test esi, esi
cmove eax, r15d
mov byte [0x140053700], al
jmp 0x140023bfe
mov ecx, 2
call fcn.14002978c
test esi, esi
jne 0x140023c15
mov ecx, r14d
call fcn.140023c30
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140023ac4
Function at 0x1800021b0
Capabilities:
Create thread
Resume thread

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rcx + 0x10]
mov rbx, rcx
mov r9, rcx
mov qword [rsp + 0x28], rax
lea r8, [0x18000e740]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 4
call fcn.1800310a8
mov qword [rbx + 8], rax
test rax, rax
jne 0x1800021ec
add rsp, 0x30
pop rbx
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov al, 1
add rsp, 0x30
pop rbx
ret