joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400113a0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
xorps xmm0, xmm0
mov rdi, rcx
lea rcx, [rbp + 7]
mov r15, rdx
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm0
movups xmmword [rbp + 0x27], xmm0
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
and qword [rdi + 0x10], 0
xorps xmm0, xmm0
movups xmmword [rbp - 0x59], xmm0
xor edx, edx
movups xmmword [rbp - 0x49], xmm0
movups xmmword [rbp - 0x39], xmm0
jmp 0x1400114e1
cmp dword [rbp - 0x39], 0x1000
jne 0x1400114d6
mov rsi, qword [rdi + 0x18]
movups xmm0, xmmword [rbp - 0x59]
mov rbx, rsi
mov rcx, rsi
movups xmm1, xmmword [rbp - 0x49]
movups xmm2, xmmword [rbp - 0x39]
movq rdx, xmm0
mov qword [rbp + 0x67], rdx
mov rax, qword [rsi + 8]
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm1
movups xmmword [rbp - 9], xmm2
jmp 0x140011442
cmp qword [rax + 0x20], rdx
jae 0x14001143c
mov rax, qword [rax + 0x10]
jmp 0x140011442
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140011430
cmp rbx, rcx
je 0x140011453
cmp rdx, qword [rbx + 0x20]
jae 0x1400114af
mov ecx, 0x58
call fcn.1400335f4
mov rcx, qword [rbp + 0x67]
lea rdx, [rbp + 0x77]
xorps xmm0, xmm0
mov qword [rsp + 0x20], rax
mov r8, rbx
lea r9, [rax + 0x20]
mov qword [r9], rcx
lea rcx, [rdi + 0x18]
movups xmmword [r9 + 8], xmm0
movups xmmword [r9 + 0x18], xmm0
movups xmmword [r9 + 0x28], xmm0
mov qword [rax], rsi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rsi
and word [rax + 0x18], 0
call fcn.140012594
movups xmm0, xmmword [rbp - 0x29]
mov rbx, qword [rbp + 0x77]
movups xmm1, xmmword [rbp - 0x19]
movups xmm2, xmmword [rbp - 9]
movups xmmword [rbx + 0x28], xmm0
movups xmmword [rbx + 0x38], xmm1
movups xmmword [rbx + 0x48], xmm2
test byte [rbp - 0x35], 0x70
je 0x1400114d6
mov r8, qword [rbp - 0x41]
xor edx, edx
mov ecx, dword [rbp + 0xb]
mov rax, r8
div rcx
add qword [rdi + 0x10], rax
jmp 0x1400114da
mov r8, qword [rbp - 0x41]
mov rdx, qword [rbp - 0x59]
add rdx, r8
mov r9d, 0x30
lea r8, [rbp - 0x59]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp rax, 0x30
je 0x1400113f2
mov rbx, qword [rsp + 0xf8]
add rsp, 0xc0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140015c64
Capabilities:
Create pipe

Disassembly:
push rbx
sub rsp, 0x40
cmp dword [rcx + 0xe0], 0
mov rbx, rcx
jne 0x140015d4b
xor r8d, r8d
mov dword [rcx + 0xe0], 2
xor ecx, ecx
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx + 0x70], rax
test rax, rax
je 0x140015d4b
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x100], rax
test rax, rax
je 0x140015d4b
lea rcx, [rbx + 0x68]
mov dword [rsp + 0x28], 4
or dword [rsp + 0x20], 0xffffffff
lea r8, [0x140016578]
mov r9, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
je 0x140015d4b
mov rax, qword [rbx + 0x58]
lea rcx, [rbx + 0x38]
cmp qword [rcx + 0x18], 8
jb 0x140015cfc
mov rcx, qword [rcx]
mov qword [rsp + 0x38], rax
mov edx, 0x40080003
and dword [rsp + 0x30], 0
mov eax, 0x40
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
lea r9d, [rax - 0x3f]
lea r8d, [rax - 0x3a]
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [rbx + 0x60], rax
cmp rax, 0xffffffffffffffff
je 0x140015d4b
mov rcx, qword [rbx + 0x100]
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x140015d53
mov dword [rbx + 0xe0], 1
xor al, al
add rsp, 0x40
pop rbx
ret
mov al, 1
jmp 0x140015d4d
Function at 0x140015eec
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0x90
xor r15d, r15d
mov dword [rbp - 9], 2
xorps xmm0, xmm0
mov dword [rbp - 1], r15d
xorps xmm1, xmm1
movdqa xmmword [rbp + 7], xmm0
mov qword [rbp + 0x17], r15
mov rbx, rdx
movups xmmword [rbp + 0x1f], xmm1
mov qword [rbp + 0x2f], r15
mov rdi, rcx
movdqa xmmword [rbp + 0x37], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbp - 5], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, qword [rbx + 0x40]
lea r9, [rbp + 0x2f]
mov rdx, qword [rbx + 0x48]
mov rcx, rax
mov dword [rsp + 0x30], r15d
mov rsi, rax
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x14001602c
mov r8, qword [rbx + 0x40]
lea r9, [rbp + 0x37]
mov rdx, qword [rbx + 0x50]
mov rcx, rsi
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 0x100002
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x14001602c
mov r8, qword [rbx + 0x40]
lea r9, [rbp + 0x3f]
mov rdx, qword [rdi + 0x70]
mov rcx, rsi
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 0x100000
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x14001602c
mov rcx, qword [rdi + 0x60]
lea rax, [rdi + 0xe8]
lea r9, [rbp + 0x6f]
mov qword [rsp + 0x20], rax
lea r8d, [r15 + 0x50]
mov dword [rbp + 0x6f], r15d
lea rdx, [rbp - 9]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne sil
test eax, eax
je 0x140016006
mov eax, r15d
jmp 0x14001600c
call qword [sym.imp.KERNEL32.dll_GetLastError]
test sil, sil
jne 0x14001601c
cmp eax, 0x3e5
jne 0x1400160ae
mov rdx, rbx
mov rcx, rdi
call fcn.140016478
jmp 0x1400160b0
mov rdx, qword [rbp + 0x2f]
mov edi, 1
test rdx, rdx
je 0x14001605c
mov rcx, qword [rbx + 0x40]
xor r9d, r9d
mov dword [rsp + 0x30], edi
xor r8d, r8d
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov qword [rbp + 0x2f], r15
mov rdx, qword [rbp + 0x37]
test rdx, rdx
je 0x140016087
mov rcx, qword [rbx + 0x40]
xor r9d, r9d
mov dword [rsp + 0x30], edi
xor r8d, r8d
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov qword [rbp + 0x37], r15
mov rdx, qword [rbp + 0x3f]
test rdx, rdx
je 0x1400160ae
mov rcx, qword [rbx + 0x40]
xor r9d, r9d
mov dword [rsp + 0x30], edi
xor r8d, r8d
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor al, al
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret
Function at 0x140018418
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, [0x140018524]
mov rbx, r8
call qword [sym.imp.USER32.dll_EnumWindows]
call fcn.14000144c
mov rcx, rax
test rax, rax
je 0x140018517
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.14000b0c0
lea rcx, [rbp - 0x10]
call fcn.14000b884
mov dl, byte [rdi]
lea r8, [rbp - 0x10]
mov cl, byte [rbp + 0x28]
xor r9d, r9d
call fcn.140019238
cmp byte [rdi + 1], 0
je 0x1400184e4
mov r9, rbx
lea rdx, str._s_s_full.dmp
mov r8, rsi
lea rcx, [rbp - 0x10]
call fcn.14000b0c0
lea rcx, [rbp - 0x10]
call fcn.14000b884
mov rbx, qword [rbp - 0x10]
mov rcx, rbx
call fcn.1400065a4
test al, al
je 0x1400184e8
mov dl, byte [rdi]
lea r8, [rbp - 0x10]
mov cl, byte [rbp + 0x28]
xor r9d, r9d
call fcn.140019238
jmp 0x1400184e8
mov rbx, qword [rbp - 0x10]
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140018502
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 0x140018ae8
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.14001a818
call fcn.14000144c
test sil, sil
je 0x140018b79
test rax, rax
je 0x140018ce7
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.140019860
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 0x140018b6e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rdx, [rbp - 0x20]
mov ebx, 1
jmp 0x140018be1
mov rcx, rax
test rax, rax
je 0x140018ce7
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.140019860
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 0x140018bd8
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 0x140018c10
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 0x140018c10
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test bl, 1
je 0x140018c33
mov rdx, qword [rbp - 0x20]
mov eax, edi
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x140018c33
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test sil, sil
je 0x140018c5e
mov rbx, qword [rbp + 0x40]
cmp dword [rbx - 0x10], 0
je 0x140018c68
lea rcx, [rbp + 0x40]
call fcn.1400188bc
test eax, eax
jns 0x140018c5e
mov rbx, qword [rbp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140018c62
mov rbx, qword [rbp + 0x40]
cmp dword [rbx - 0x10], 0
jne 0x140018cac
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 0x140018c9b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rbp + 0x40]
cmp dword [rbx - 0x10], 0
jne 0x140018cac
mov esi, 0x8004fffc
jmp 0x140018cbf
test r14, r14
je 0x140018cbd
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 0x140018cda
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 0x140018e6c
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 0x140018fd7
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.14000b108
mov rax, qword [rsi]
mov rbx, qword [rax]
cmp rbx, rax
je 0x140018f33
mov r9, qword [rbx + 0x28]
lea rdx, str._s_s_r_n
mov r8, qword [rbx + 0x20]
lea rcx, [rsp + 0x78]
call fcn.14000b108
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], dil
je 0x140018f13
mov rax, qword [rbx + 8]
jmp 0x140018f08
cmp rbx, qword [rax + 0x10]
jne 0x140018f0e
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], dil
je 0x140018efb
mov rbx, rax
jmp 0x140018f2e
mov rcx, qword [rax]
mov rbx, rax
cmp byte [rcx + 0x19], dil
jne 0x140018f2e
mov rax, qword [rcx]
mov rbx, rcx
mov rcx, rax
cmp byte [rax + 0x19], dil
je 0x140018f1f
cmp rbx, qword [rsi]
jne 0x140018ed2
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 0x140018f84
call fcn.14000ba64
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 0x140018fa3
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
jmp 0x140018fa3
lea rdx, [rbx - 0x18]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140018fa1
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 0x140018fc3
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 0x14001ae90
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.140020a20
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 0x14001aef6
lea rcx, [rsp + 0x30]
call fcn.1400067ec
test al, al
je 0x14001aef6
mov al, 1
jmp 0x14001af3c
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 0x14001af31
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x14001af31
lea rdx, str.google
call fcn.14002eee4
test eax, eax
jne 0x14001af31
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.14001fe10
mov rbx, qword [rsp + 0x250]
add rsp, 0x240
pop rdi
ret
Function at 0x14001c2b4
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.14001bbf8
test eax, eax
js 0x14001c454
mov rax, qword [rbp - 0x28]
cmp qword [rbp - 0x30], rax
je 0x14001c454
call fcn.14001a818
lea rax, str.HKCUSoftwareGoogleUpdate_
test r14b, r14b
lea rdx, str.HKLMSoftwareGoogleUpdate_
cmove rdx, rax
lea rcx, [rbp + 0x38]
call fcn.1400055c0
lea rdx, [0x14004c740]
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 0x14001c364
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 0x14001c382
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rbp + 0x38]
mov rcx, rbx
call fcn.14000a730
test al, al
jne 0x14001c3a3
mov dl, 1
mov cl, r14b
call fcn.14001c478
mov edi, eax
jmp 0x14001c434
and qword [rbp - 0x10], 0
lea rax, [0x140049920]
mov r8d, 1
mov qword [rbp - 0x18], rax
mov rdx, rbx
mov dword [rbp - 8], 0x200
lea rcx, [rbp - 0x18]
call fcn.140009f94
mov edi, eax
test eax, eax
js 0x14001c420
mov rdi, qword [rbp - 0x28]
xor esi, esi
mov r15, qword [rbp - 0x30]
sub rdi, r15
sar rdi, 3
test rdi, rdi
je 0x14001c414
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 0x14001c450
inc rsi
cmp rsi, rdi
jb 0x14001c3e8
xor edx, edx
mov cl, r14b
call fcn.14001c478
mov edi, eax
lea rax, [0x140049920]
lea rcx, [rbp - 0x18]
mov qword [rbp - 0x18], rax
call fcn.140009d4c
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001c459
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x14001c459
xor edi, edi
jmp 0x14001c420
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 0x14001c478
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, [0x14004a658]
mov sil, dl
mov qword [rbp - 0x28], rax
lea rdx, [rbp - 0x28]
mov dil, cl
call fcn.14001bf94
mov rax, qword [rbp - 0x28]
lea rcx, [rbp - 0x28]
call qword [rax + 8]
and qword [rbp - 0x10], 0
lea r12, [0x140049920]
mov qword [rbp - 0x18], r12
mov dword [rbp - 8], 0x200
call fcn.14001a818
lea rax, str.HKCUSoftwareGoogleUpdate_
test dil, dil
lea rdx, str.HKLMSoftwareGoogleUpdate_
mov r8d, 0xf003f
cmove rdx, rax
lea rcx, [rbp - 0x18]
call fcn.140009f94
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, [0x14004c740]
test eax, eax
jne 0x14001c52d
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x14001c635
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.14000a210
test eax, eax
jns 0x14001c55f
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x14001c5a3
jmp 0x14001c59e
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.14000a6e8
test eax, eax
js 0x14001c596
mov rcx, qword [rbp - 0x10]
lea rdx, [0x14004c740]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test rbx, rbx
je 0x14001c5a3
mov rcx, rbx
call fcn.1400200bc
test sil, sil
je 0x14001c635
call fcn.14000144c
mov rcx, rax
test rax, rax
je 0x14001c66d
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.14000a3fc
lea rcx, str.__legacy
call fcn.140034204
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.14000a678
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001c635
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov cl, dil
call fcn.14001c678
lea rcx, [rbp - 0x18]
mov qword [rbp - 0x18], r12
mov ebx, eax
call fcn.140009d4c
mov rdx, qword [rbp - 0x28]
lea rcx, [rbp - 0x28]
call qword [rdx + 0x10]
lea rcx, [rbp - 0x28]
call fcn.140009bc4
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 0x14001c938
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 0x14001c95d
call fcn.14000b4e4
test al, al
je 0x14001ca1a
and qword [rbp - 0x28], 0
lea rax, [0x14004a658]
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x30], rax
mov cl, bl
call fcn.14001bf94
mov rax, qword [rbp - 0x30]
lea rcx, [rbp - 0x30]
call qword [rax + 8]
and qword [rbp - 0x18], 0
lea rdi, [0x140049920]
mov qword [rbp - 0x20], rdi
mov dword [rbp - 0x10], 0x200
call fcn.14001a818
lea rax, str.HKCUSoftwareGoogleUpdate_
test bl, bl
lea rdx, str.HKLMSoftwareGoogleUpdate_
mov r8d, 0xf003f
cmove rdx, rax
lea rcx, [rbp - 0x20]
call fcn.140009f94
test eax, eax
js 0x14001c9f9
mov rcx, qword [rbp - 0x18]
lea rdx, [0x14004c740]
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, [0x14004c740]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea rcx, [rbp - 0x20]
mov qword [rbp - 0x20], rdi
call fcn.140009d4c
mov rax, qword [rbp - 0x30]
lea rcx, [rbp - 0x30]
call qword [rax + 0x10]
lea rcx, [rbp - 0x30]
call fcn.140009bc4
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x50
pop rbp
ret

Function at 0x14001cb3c
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 0x14001cb57
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
jmp 0x14001cb5d
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ecx, 0x409
lea r10, [0x140048640]
movzx edx, ax
mov r8, rdi
mov eax, ecx
cmp dx, ax
je 0x14001cb8a
inc r8
imul rax, r8, 0x1a
movzx eax, word [rax + r10]
test ax, ax
jne 0x14001cb71
movzx edx, cx
mov r9, rdi
mov r8d, edi
cmp cx, dx
je 0x14001cbb2
inc r9
inc r8d
imul rax, r9, 0x1a
movzx ecx, word [rax + r10]
test cx, cx
jne 0x14001cb90
lea rdx, [0x140046b28]
jmp 0x14001cbc3
movsxd rax, r8d
imul rdx, rax, 0x1a
lea rax, [0x140048642]
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 0x14001e300
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, [0x140052cb8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r14, qword [rsi + 0x28]
lea rcx, [0x140052cb8]
and qword [rsi + 0x28], 0
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test r14, r14
je 0x14001e409
lea rdi, [rbx + 0x38]
cmp qword [rdi], 0
jne 0x14001e365
mov rdx, qword [rbx + 0x20]
lea r8, str.Counts
mov rcx, rdi
call fcn.14001e088
test eax, eax
jne 0x14001e409
mov rdx, qword [rsi + 8]
lea rcx, [rbp - 0x10]
call fcn.140006f14
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 0x14001e3bb
cmp dword [rbp + 0x40], 3
jne 0x14001e3bb
test eax, eax
jne 0x14001e3bb
cmp dword [rbp + 0x38], esi
je 0x14001e3c9
mov r8, rsi
lea rcx, [rbp + 0x48]
xor edx, edx
call fcn.140020a20
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 0x14001e409
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 0x14001e5b0
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, [0x140052cb8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [rsi + 0x28]
lea rcx, [0x140052cb8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x58], rbx
test rbx, rbx
je 0x14001e662
lea rbx, [rdi + 0x68]
cmp qword [rbx], 0
jne 0x14001e60e
mov rdx, qword [rdi + 0x20]
lea r8, str.Integers
mov rcx, rbx
call fcn.14001e088
test eax, eax
jne 0x14001e662
mov rdx, qword [rsi + 8]
lea rcx, [rsp + 0x60]
call fcn.140006f14
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 0x14001e662
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