joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140018ab0
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x30
mov rsi, rdx
mov byte [rbp + 0x28], 0
mov rdi, rcx
lea rdx, [rbp + 0x28]
lea rcx, [0x140018bbc]
mov rbx, r8
call qword [sym.imp.USER32.dll_EnumWindows]
call fcn.14000144c
mov rcx, rax
test rax, rax
je 0x140018baf
mov rax, qword [rax]
call qword [rax + 0x18]
mov r9, rbx
lea rdx, str._s_s.dmp
add rax, 0x18
lea rcx, [rbp - 0x10]
mov r8, rsi
mov qword [rbp - 0x10], rax
call fcn.14000baa8
lea rcx, [rbp - 0x10]
call fcn.14000c26c
mov dl, byte [rdi]
lea r8, [rbp - 0x10]
mov cl, byte [rbp + 0x28]
xor r9d, r9d
call fcn.1400198d4
cmp byte [rdi + 1], 0
je 0x140018b7c
mov r9, rbx
lea rdx, str._s_s_full.dmp
mov r8, rsi
lea rcx, [rbp - 0x10]
call fcn.14000baa8
lea rcx, [rbp - 0x10]
call fcn.14000c26c
mov rbx, qword [rbp - 0x10]
mov rcx, rbx
call fcn.1400065a4
test al, al
je 0x140018b80
mov dl, byte [rdi]
lea r8, [rbp - 0x10]
mov cl, byte [rbp + 0x28]
xor r9d, r9d
call fcn.1400198d4
jmp 0x140018b80
mov rbx, qword [rbp - 0x10]
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140018b9a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop rbp
ret
mov ecx, 0x80004005
call fcn.1400017a4
int3
Function at 0x140019180
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.14001acc4
call fcn.14000144c
test sil, sil
je 0x140019211
test rax, rax
je 0x14001937f
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.1400055c0
mov rdx, rax
lea r9, [rbp - 0x20]
mov r8b, 1
mov ecx, 0x26
call fcn.14001a228
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 0x140019206
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rdx, [rbp - 0x20]
mov ebx, 1
jmp 0x140019279
mov rcx, rax
test rax, rax
je 0x14001937f
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.1400055c0
mov rdx, rax
lea r9, [rbp + 0x48]
mov r8b, 1
mov ecx, 0x1c
call fcn.14001a228
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 0x140019270
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.14000564c
test bl, 2
je 0x1400192a8
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 0x1400192a8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test bl, 1
je 0x1400192cb
mov rdx, qword [rbp - 0x20]
mov eax, edi
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x1400192cb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test sil, sil
je 0x1400192f6
mov rbx, qword [rbp + 0x40]
cmp dword [rbx - 0x10], 0
je 0x140019300
lea rcx, [rbp + 0x40]
call fcn.140018f54
test eax, eax
jns 0x1400192f6
mov rbx, qword [rbp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1400192fa
mov rbx, qword [rbp + 0x40]
cmp dword [rbx - 0x10], 0
jne 0x140019344
lea rcx, [rbp - 8]
call fcn.1400061a8
mov rdx, rax
lea rcx, [rbp + 0x40]
call fcn.1400017c8
mov rdx, qword [rbp - 8]
mov eax, edi
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x140019333
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rbp + 0x40]
cmp dword [rbx - 0x10], 0
jne 0x140019344
mov esi, 0x8004fffc
jmp 0x140019357
test r14, r14
je 0x140019355
lea rdx, [rbp + 0x40]
mov rcx, r14
call fcn.1400017c8
xor esi, esi
lea rdx, [rbx - 0x18]
mov ecx, edi
lock xadd dword [rdx + 0x10], ecx
add ecx, edi
test ecx, ecx
jg 0x140019372
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.1400017a4
int3
Function at 0x140019508
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.1400055c0
call fcn.14000144c
xor edi, edi
mov rcx, rax
test rax, rax
je 0x140019673
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.14000baf0
mov rax, qword [rsi]
mov rbx, qword [rax]
cmp rbx, rax
je 0x1400195cf
mov r9, qword [rbx + 0x28]
lea rdx, str._s_s_r_n
mov r8, qword [rbx + 0x20]
lea rcx, [rsp + 0x78]
call fcn.14000baf0
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], dil
je 0x1400195af
mov rax, qword [rbx + 8]
jmp 0x1400195a4
cmp rbx, qword [rax + 0x10]
jne 0x1400195aa
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], dil
je 0x140019597
mov rbx, rax
jmp 0x1400195ca
mov rcx, qword [rax]
mov rbx, rax
cmp byte [rcx + 0x19], dil
jne 0x1400195ca
mov rax, qword [rcx]
mov rbx, rcx
mov rcx, rax
cmp byte [rax + 0x19], dil
je 0x1400195bb
cmp rbx, qword [rsi]
jne 0x14001956e
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 0x140019620
call fcn.14000c44c
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 0x14001963f
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
jmp 0x14001963f
lea rdx, [rbx - 0x18]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14001963d
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 0x14001965f
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.1400017a4
int3
Function at 0x14001bc38
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x140057010]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x200
call fcn.140021eb0
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x100
lea rdx, [rsp + 0x30]
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
xor ebx, ebx
test eax, eax
je 0x14001bc9e
lea rcx, [rsp + 0x30]
call fcn.140006850
test al, al
je 0x14001bc9e
mov al, 1
jmp 0x14001bce4
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 0x14001bcd9
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x14001bcd9
lea rdx, str.google
call fcn.140034ebc
test eax, eax
jne 0x14001bcd9
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.1400212a0
mov rbx, qword [rsp + 0x250]
add rsp, 0x240
pop rdi
ret
Function at 0x14001d740
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.14001d084
test eax, eax
js 0x14001d8e0
mov rax, qword [rbp - 0x28]
cmp qword [rbp - 0x30], rax
je 0x14001d8e0
call fcn.14001acc4
lea rax, str.HKCUSoftwareGoogleUpdate_
test r14b, r14b
lea rdx, str.HKLMSoftwareGoogleUpdate_
cmove rdx, rax
lea rcx, [rbp + 0x38]
call fcn.1400055c0
lea rdx, [0x140051a80]
lea rcx, [rbp + 0x40]
call fcn.1400055c0
lea r8, [rbp + 0x40]
lea rdx, [rbp + 0x38]
lea rcx, [rbp + 0x48]
call fcn.140004d08
mov rdx, rax
lea rcx, [rbp + 0x38]
call fcn.1400017c8
mov rdx, qword [rbp + 0x48]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001d7f0
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 0x14001d80e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rbp + 0x38]
mov rcx, rbx
call fcn.14000b118
test al, al
jne 0x14001d82f
mov dl, 1
mov cl, r14b
call fcn.14001d904
mov edi, eax
jmp 0x14001d8c0
and qword [rbp - 0x10], 0
lea rax, [0x14004e360]
mov r8d, 1
mov qword [rbp - 0x18], rax
mov rdx, rbx
mov dword [rbp - 8], 0x200
lea rcx, [rbp - 0x18]
call fcn.14000a97c
mov edi, eax
test eax, eax
js 0x14001d8ac
mov rdi, qword [rbp - 0x28]
xor esi, esi
mov r15, qword [rbp - 0x30]
sub rdi, r15
sar rdi, 3
test rdi, rdi
je 0x14001d8a0
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 0x14001d8dc
inc rsi
cmp rsi, rdi
jb 0x14001d874
xor edx, edx
mov cl, r14b
call fcn.14001d904
mov edi, eax
lea rax, [0x14004e360]
lea rcx, [rbp - 0x18]
mov qword [rbp - 0x18], rax
call fcn.14000a734
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001d8e5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x14001d8e5
xor edi, edi
jmp 0x14001d8ac
mov edi, 1
lea rcx, [rbp - 0x30]
call fcn.1400064f4
mov rbx, qword [rsp + 0x90]
mov eax, edi
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001d904
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, [0x14004f2c0]
mov sil, dl
mov qword [rbp - 0x28], rax
lea rdx, [rbp - 0x28]
mov dil, cl
call fcn.14001d420
mov rax, qword [rbp - 0x28]
lea rcx, [rbp - 0x28]
call qword [rax + 8]
and qword [rbp - 0x10], 0
lea r12, [0x14004e360]
mov qword [rbp - 0x18], r12
mov dword [rbp - 8], 0x200
call fcn.14001acc4
lea rax, str.HKCUSoftwareGoogleUpdate_
test dil, dil
lea rdx, str.HKLMSoftwareGoogleUpdate_
mov r8d, 0xf003f
cmove rdx, rax
lea rcx, [rbp - 0x18]
call fcn.14000a97c
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, [0x140051a80]
test eax, eax
jne 0x14001d9b9
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x14001dac1
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.14000abf8
test eax, eax
jns 0x14001d9eb
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x14001da2f
jmp 0x14001da2a
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.14000b0d0
test eax, eax
js 0x14001da22
mov rcx, qword [rbp - 0x10]
lea rdx, [0x140051a80]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test rbx, rbx
je 0x14001da2f
mov rcx, rbx
call fcn.14002154c
test sil, sil
je 0x14001dac1
call fcn.14000144c
mov rcx, rax
test rax, rax
je 0x14001daf9
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.14000ade4
lea rcx, str.__legacy
call fcn.140031a64
mov r8d, eax
lea rdx, str.__legacy
lea rcx, [rbp + 0x40]
call fcn.1400057dc
mov rbx, qword [rbp + 0x40]
lea rdx, str.old_uid
mov r8, rbx
lea rcx, [rbp - 0x18]
mov r9d, 1
call fcn.14000b060
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001dac1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov cl, dil
call fcn.14001db04
lea rcx, [rbp - 0x18]
mov qword [rbp - 0x18], r12
mov ebx, eax
call fcn.14000a734
mov rdx, qword [rbp - 0x28]
lea rcx, [rbp - 0x28]
call qword [rdx + 0x10]
lea rcx, [rbp - 0x28]
call fcn.14000a5ac
mov eax, ebx
add rsp, 0x60
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80004005
call fcn.1400017a4
int3
Function at 0x14001ddc4
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 0x14001dde9
call fcn.14000becc
test al, al
je 0x14001dea6
and qword [rbp - 0x28], 0
lea rax, [0x14004f2c0]
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x30], rax
mov cl, bl
call fcn.14001d420
mov rax, qword [rbp - 0x30]
lea rcx, [rbp - 0x30]
call qword [rax + 8]
and qword [rbp - 0x18], 0
lea rdi, [0x14004e360]
mov qword [rbp - 0x20], rdi
mov dword [rbp - 0x10], 0x200
call fcn.14001acc4
lea rax, str.HKCUSoftwareGoogleUpdate_
test bl, bl
lea rdx, str.HKLMSoftwareGoogleUpdate_
mov r8d, 0xf003f
cmove rdx, rax
lea rcx, [rbp - 0x20]
call fcn.14000a97c
test eax, eax
js 0x14001de85
mov rcx, qword [rbp - 0x18]
lea rdx, [0x140051a80]
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, [0x140051a80]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea rcx, [rbp - 0x20]
mov qword [rbp - 0x20], rdi
call fcn.14000a734
mov rax, qword [rbp - 0x30]
lea rcx, [rbp - 0x30]
call qword [rax + 0x10]
lea rcx, [rbp - 0x30]
call fcn.14000a5ac
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x50
pop rbp
ret

Function at 0x14001dfc8
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 0x14001dfe3
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
jmp 0x14001dfe9
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ecx, 0x409
lea r10, [0x14004d090]
movzx edx, ax
mov r8, rdi
mov eax, ecx
cmp dx, ax
je 0x14001e016
inc r8
imul rax, r8, 0x1a
movzx eax, word [rax + r10]
test ax, ax
jne 0x14001dffd
movzx edx, cx
mov r9, rdi
mov r8d, edi
cmp cx, dx
je 0x14001e03e
inc r9
inc r8d
imul rax, r9, 0x1a
movzx ecx, word [rax + r10]
test cx, cx
jne 0x14001e01c
lea rdx, [0x14004b548]
jmp 0x14001e04f
movsxd rax, r8d
imul rdx, rax, 0x1a
lea rax, [0x14004d092]
add rdx, rax
mov rcx, rbx
call fcn.1400055c0
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14001f78c
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, [0x140057eb8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r14, qword [rsi + 0x28]
lea rcx, [0x140057eb8]
and qword [rsi + 0x28], 0
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test r14, r14
je 0x14001f895
lea rdi, [rbx + 0x38]
cmp qword [rdi], 0
jne 0x14001f7f1
mov rdx, qword [rbx + 0x20]
lea r8, str.Counts
mov rcx, rdi
call fcn.14001f514
test eax, eax
jne 0x14001f895
mov rdx, qword [rsi + 8]
lea rcx, [rbp - 0x10]
call fcn.140006eec
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 0x14001f847
cmp dword [rbp + 0x40], 3
jne 0x14001f847
test eax, eax
jne 0x14001f847
cmp dword [rbp + 0x38], esi
je 0x14001f855
mov r8, rsi
lea rcx, [rbp + 0x48]
xor edx, edx
call fcn.140021eb0
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 0x14001f895
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 0x14001fa3c
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, [0x140057eb8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [rsi + 0x28]
lea rcx, [0x140057eb8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x58], rbx
test rbx, rbx
je 0x14001faee
lea rbx, [rdi + 0x68]
cmp qword [rbx], 0
jne 0x14001fa9a
mov rdx, qword [rdi + 0x20]
lea r8, str.Integers
mov rcx, rbx
call fcn.14001f514
test eax, eax
jne 0x14001faee
mov rdx, qword [rsi + 8]
lea rcx, [rsp + 0x60]
call fcn.140006eec
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 0x14001faee
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 0x14001fb00
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, [0x140057eb8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [rsi + 0x28]
lea rcx, [0x140057eb8]
or dword [rsi + 0x28], 0xffffffff
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [rsp + 0x58], ebx
cmp ebx, 0xffffffff
je 0x14001fbb7
lea rbx, [rdi + 0x80]
cmp qword [rbx], 0
jne 0x14001fb63
mov rdx, qword [rdi + 0x20]
lea r8, str.Booleans
mov rcx, rbx
call fcn.14001f514
test eax, eax
jne 0x14001fbb7
mov rdx, qword [rsi + 8]
lea rcx, [rsp + 0x60]
call fcn.140006eec
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 0x14001fbb7
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 0x140020f14
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 0x140021066
cmp dword [rsp + 0x40], 2
jne 0x140021066
cmp dword [rsp + 0x44], ebx
je 0x140021066
cmp qword [rsp + 0x78], rbx
je 0x140021066
cmp qword [rbp - 0x80], rbx
je 0x140021066
cmp qword [rbp - 0x78], rbx
je 0x140021066
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 0x140021066
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 0x140021068
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 0x14002579c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400255fb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400255fb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400255fb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400255fb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400255fb
cmp dword [rcx + 0x84], 0xe
jbe 0x1400255fb
cmp dword [rcx + 0xf8], 0
je 0x1400255fb
mov ecx, ebx
call fcn.1400256b8
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140025488
nop
cmp dword [rbp + 0x20], 0
je 0x140025649
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140025654
int3
xor r8d, r8d
xor edx, edx
jmp 0x14002558c
Function at 0x14002ff40
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14002ffc7
mov rsi, rbx
cmp word [rax], bp
je 0x14002ff86
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14002ff70
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14002ff6c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400318b4
mov rdi, rax
test rax, rax
je 0x14002ffb4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140022070
mov rbp, rdi
xor ecx, ecx
call fcn.14002e300
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret