joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14022de64
Capabilities:
Reference sql statements

Disassembly:
sub rsp, 0x58
lea r8, str.DELETE_FROM_moz_favicons_WHERE_id_IN__SELECT_f.id_FROM_moz_favicons_f_LEFT_OUTER_JOIN_moz_places_h_ON_f.id__h.favicon_id_WHERE_h.favicon_id_IS_NULL_
lea rdx, [rsp + 0x20]
call fcn.1401aa200
lea rcx, [rsp + 0x20]
call fcn.1401a9f00
add rsp, 0x58
ret

Function at 0x14022df64
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
lea rdx, str.DELETE_FROM_moz_places_WHERE_id_IN__SELECT_h.id_FROM_moz_places_h_WHERE_h.id_IN__
lea rcx, [rbp + 0x30]
call fcn.14000cb18
nop
mov r8d, 1
lea rdx, [0x140352680]
lea rcx, [rbp + 0x30]
call fcn.14000c0c4
mov r8d, 6
lea rdx, str.__AND
lea rcx, [rbp + 0x30]
call fcn.14000c0c4
mov r8d, 0x40
lea rdx, str._NOT_EXISTS__SELECT_b.id_FROM_moz_bookmarks_b_WHERE_b.fk__h.id_
lea rcx, [rbp + 0x30]
call fcn.14000c0c4
mov r8d, 5
lea rdx, [0x140361c18]
lea rcx, [rbp + 0x30]
call fcn.14000c0c4
mov r8d, 0x42
lea rdx, str.NOT_EXISTS__SELECT_a.id_FROM_moz_annos_a_WHERE_a.place_id__h.id__
lea rcx, [rbp + 0x30]
call fcn.14000c0c4
mov r8, qword [rbp + 0x30]
lea rdx, [rbp - 0x18]
mov rcx, rbx
call fcn.1401aa060
nop
mov rdi, qword [rdi + 8]
mov rbx, qword [rdi]
mov qword [rbp + 0x38], rbx
cmp rbx, rdi
je 0x14022e091
mov rdx, qword [rbx + 0x18]
lea rcx, [rbp - 0x18]
call fcn.1401a9cc0
lea rcx, [rbp - 0x18]
call fcn.1401aa140
mov rcx, qword [rsi]
test rcx, rcx
je 0x14022e04b
mov rax, qword [rcx]
call qword [rax + 0x30]
jmp 0x14022e04d
mov al, 1
test al, al
je 0x14022e091
cmp byte [rbx + 0x21], 0
jne 0x14022e020
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x21], 0
jne 0x14022e06f
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x21], 0
je 0x14022e061
jmp 0x14022e01c
mov rax, qword [rbx + 8]
jmp 0x14022e082
cmp rbx, qword [rax + 0x10]
jne 0x14022e088
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x21], 0
je 0x14022e075
mov rbx, rax
mov qword [rbp + 0x38], rax
jmp 0x14022e020
lea rcx, [rbp - 0x18]
call fcn.1401a9fa0
nop
mov rdx, qword [rbp + 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14022e0ba
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x14022e7e4
Capabilities:
Gather firefox profile information

Disassembly:
push rbx
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rdx
mov byte [rsp + 0x88], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x30], 0
test rdx, rdx
je 0x14022e9a2
dec ecx
je 0x14022e97b
dec ecx
je 0x14022e924
dec ecx
je 0x14022e884
dec ecx
je 0x14022e83f
dec ecx
jne 0x14022e9a2
lea r8, str.select_id_host_type_permission_from_moz_hosts_
jmp 0x14022e903
lea r8, str.select_clientID_Key_Generation_DataSize_from_moz_cache_
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.1401aa200
lea rcx, [rsp + 0x38]
call fcn.1401a9f00
lea r8, str.select_ActiveClientID_from_moz_cache_groups_
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.1401aa200
lea rcx, [rsp + 0x38]
call fcn.1401a9f00
lea r8, str.select_ClientID_from_moz_cache_namespaces_
jmp 0x14022e903
lea r8, str.Select_id__place_id_from_moz_historyvisits
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.1401aa200
lea rcx, [rsp + 0x38]
call fcn.1401a9f00
lea r8, str.Select_place_id_from_moz_inputhistory
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.1401aa200
lea rcx, [rsp + 0x38]
call fcn.1401a9f00
lea r8, [0x140360cd0]
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.1401aa200
lea rcx, [rsp + 0x38]
call fcn.1401a9f00
lea r8, str.SELECT_b.id_FROM_moz_bookmarks_b
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.1401aa200
lea rcx, [rsp + 0x38]
call fcn.1401a9f00
lea r8, str.SELECT_a.id_FROM_moz_annos_a
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.1401aa200
lea rcx, [rsp + 0x38]
call fcn.1401a9f00
mov byte [rsp + 0x88], 1
jmp 0x14022e9a2
lea rdx, str.webappsstore2
mov rcx, rbx
call fcn.1401aa690
mov rcx, rbx
test al, al
je 0x14022e943
lea r8, str.SELECT_scope_FROM_webappsstore2_
jmp 0x14022e95d
lea rdx, str.webappsstore
call fcn.1401aa690
test al, al
je 0x14022e9a2
lea r8, str.SELECT_domain_FROM_webappsstore_
mov rcx, rbx
lea rdx, [rsp + 0x38]
call fcn.1401aa200
mov byte [rsp + 0x88], 1
lea rcx, [rsp + 0x38]
call fcn.1401a9f00
jmp 0x14022e9a2
lea r8, str.SELECT_id__name__value__host__path__expiry__isSecure__isHttpOnly_FROM_moz_cookies_
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.1401aa200
mov byte [rsp + 0x88], 1
lea rcx, [rsp + 0x38]
call fcn.1401a9f00
nop
mov al, byte [rsp + 0x88]
add rsp, 0x70
pop rbx
ret
Function at 0x14023507c
Capabilities:
Shutdown system

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14045cbf0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov dil, cl
mov ebx, 1
call fcn.1400046d0
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
xor esi, esi
cmp dword [rax + 0x10], ebx
jbe 0x140235134
mov qword [rsp + 0x30], rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
lea edx, [rbx + 0x27]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140235124
lea r8, [rsp + 0x3c]
lea rdx, str.SeShutdownPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x44], 2
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, bl
test eax, eax
cmovne ebx, esi
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140235134
call qword [sym.imp.KERNEL32.dll_CloseHandle]
neg dil
sbb ecx, ecx
and ecx, 0xfffffff9
add ecx, 9
test bl, bl
je 0x140235157
or ecx, 0x10
mov edx, 0x80020000
call qword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb cl, cl
and bl, cl
mov al, bl
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400be110
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x14023517c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov rbx, rcx
xor edi, edi
mov dword [rsp + 0x48], edi
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
lea r8d, [rdi + 1]
mov dword [rsp + 0x48], r8d
sub r8d, dword [rax - 8]
mov eax, dword [rax - 0xc]
mov edx, 0x106
sub eax, edx
or eax, r8d
jge 0x1402351d9
mov rcx, rbx
call fcn.14000c998
mov edx, 0x104
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1402351f3
mov eax, edi
jmp 0x140235200
movsxd rdx, dword [rcx - 0xc]
call fcn.1400beaac
test eax, eax
js 0x14023521a
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x14023521a
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], di
mov rax, rbx
jmp 0x140235225
mov ecx, 0x80070057
call fcn.14000cbb8
nop
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14023579c
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x14045cbf0]
xor rax, rsp
mov qword [rsp + 0x240], rax
and dword [rsp + 0x20], 0
mov rbx, rcx
lea rcx, [rsp + 0x30]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14000cb18
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400be110
add rsp, 0x250
pop rbx
ret
Function at 0x14023580c
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x14045cbf0]
xor rax, rsp
mov qword [rsp + 0x240], rax
and dword [rsp + 0x20], 0
mov rbx, rcx
lea rcx, [rsp + 0x30]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14000cb18
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400be110
add rsp, 0x250
pop rbx
ret

Function at 0x140235b50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rdi
sub rsp, 0x50
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov esi, r9d
mov rbp, r8
mov rdi, rdx
mov rbx, rcx
and dword [rax - 0x28], 0
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140235bba
mov r10, qword [rbx]
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9b, byte [rsp + 0x88]
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call qword [r10 + 0x50]
nop
jmp 0x140235c47
test esi, esi
je 0x140235bf1
mov r10, qword [rbx]
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov al, byte [rsp + 0x88]
mov byte [rsp + 0x20], al
mov r9, qword [rsp + 0x80]
mov r8d, esi
mov rdx, rdi
mov rcx, rbx
call qword [r10 + 0x48]
nop
jmp 0x140235c47
and qword [rdi], 0
and qword [rdi + 8], 0
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x48], rcx
and qword [rdi + 8], 0
mov dword [rsp + 0x30], 1
test rcx, rcx
je 0x140235c47
or esi, 0xffffffff
mov eax, esi
lock xadd dword [rcx + 8], eax
add eax, esi
jne 0x140235c47
mov rbx, qword [rsp + 0x48]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
add eax, esi
jne 0x140235c47
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, rdi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x140237398
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x48
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov rbx, rcx
xor esi, esi
mov dword [rbp + 0x30], esi
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
lea r9d, [rsi + 1]
mov dword [rbp + 0x30], r9d
mov r8d, 0x106
mov rdx, rbx
lea rcx, [rbp - 0x20]
call fcn.14000bd14
mov r8d, 0x104
mov rdx, qword [rax + 8]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [rbp - 0x10]
mov rdi, qword [rbp - 0x20]
cmp eax, 0xffffffff
jne 0x14023741d
mov rcx, qword [rdi]
test rcx, rcx
jne 0x140237414
mov eax, esi
jmp 0x140237425
movsxd rdx, dword [rcx - 0xc]
call fcn.1400beaac
test eax, eax
js 0x1402374e7
mov rcx, qword [rdi]
cmp eax, dword [rcx - 0xc]
jg 0x1402374e7
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rdi]
mov word [rax + rcx*2], si
lea rdx, [0x14034e5f0]
mov rcx, qword [rbx]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x1402374e2
mov rdx, rbx
lea rcx, [rbp + 0x40]
call fcn.14000c4d8
nop
lea r8, [0x14034e600]
lea rdx, [0x14034e608]
lea rcx, [rbp + 0x40]
call fcn.14000b658
mov rdx, qword [rbp + 0x40]
lea rcx, [rbp + 0x38]
call fcn.14000cb18
nop
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1402374a3
lea rdx, [rbp + 0x38]
mov rcx, rbx
call fcn.14000c244
nop
mov rdx, qword [rbp + 0x38]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1402374c3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1402374e2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rbx
jmp 0x1402374f2
mov ecx, 0x80070057
call fcn.14000cbb8
nop
add rsp, 0x48
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140239490
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
push r12
push r13
push r14
sub rsp, 0xa0
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x14045cbf0]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov r14d, 1
mov edi, r14d
call fcn.1400046d0
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
cmp dword [rax + 0x10], r14d
jbe 0x14023967f
xor ebx, ebx
mov edi, ebx
mov dword [rsp + 0x70], ebx
mov qword [rsp + 0x78], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
lea r9, [rsp + 0x78]
mov r8d, r14d
lea esi, [rbx + 8]
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x140239547
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x14023966f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x78]
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14023966f
mov dword [rsp + 0x60], ebx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea r12d, [r9 + 2]
mov edx, r12d
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov qword [rsp + 0x68], rbx
mov edx, dword [rsp + 0x60]
lea rcx, [rsp + 0x68]
call fcn.140063c00
lea r11, [rsp + 0x60]
mov qword [rsp + 0x20], r11
mov r9d, dword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov r8, rsi
mov edx, r12d
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140239660
test rsi, rsi
je 0x140239660
cmp dword [rsi], ebx
jbe 0x140239660
mov dword [rsp + 0x88], ebx
mov word [rsp + 0x8c], 0x500
mov qword [rsp + 0x68], rbx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov r9d, 0x220
lea r8d, [r12 + 0x1e]
mov dl, r12b
lea rcx, [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov r13d, eax
cmp eax, r14d
jne 0x140239660
mov r12d, ebx
cmp r12d, dword [rsi]
je 0x140239650
test edi, edi
jne 0x140239650
test r13d, r13d
je 0x14023964b
mov edx, r12d
add rdx, rdx
mov rdx, qword [rsi + rdx*8 + 8]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
cmovne edi, r14d
mov dword [rsp + 0x70], edi
add r12d, r14d
jmp 0x14023961d
test r13d, r13d
je 0x140239660
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, rsi
call fcn.1400bee7c
nop
jmp 0x14023966f
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14023967f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400be110
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r13
pop r12
ret
Function at 0x1402396c0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov rbx, rcx
xor edi, edi
mov dword [rsp + 0x48], edi
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
lea r8d, [rdi + 1]
mov dword [rsp + 0x48], r8d
sub r8d, dword [rax - 8]
mov eax, dword [rax - 0xc]
mov edx, 0x106
sub eax, edx
or eax, r8d
jge 0x14023971d
mov rcx, rbx
call fcn.14000c998
mov edx, 0x104
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140239737
mov eax, edi
jmp 0x140239744
movsxd rdx, dword [rcx - 0xc]
call fcn.1400beaac
test eax, eax
js 0x14023975e
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x14023975e
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], di
mov rax, rbx
jmp 0x140239769
mov ecx, 0x80070057
call fcn.14000cbb8
nop
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140239780
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov rbx, rcx
xor edi, edi
mov dword [rsp + 0x48], edi
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
lea r8d, [rdi + 1]
mov dword [rsp + 0x48], r8d
sub r8d, dword [rax - 8]
mov eax, dword [rax - 0xc]
mov edx, 0x106
sub eax, edx
or eax, r8d
jge 0x1402397dd
mov rcx, rbx
call fcn.14000c998
mov edx, 0x104
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1402397f7
mov eax, edi
jmp 0x140239804
movsxd rdx, dword [rcx - 0xc]
call fcn.1400beaac
test eax, eax
js 0x14023981e
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x14023981e
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], di
mov rax, rbx
jmp 0x140239829
mov ecx, 0x80070057
call fcn.14000cbb8
nop
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140239840
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
xor esi, esi
mov dword [rsp + 0x60], esi
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
mov dword [rsp + 0x60], 1
mov edx, 0x101
mov dword [rsp + 0x58], edx
mov edi, esi
test edx, edx
js 0x14023994e
mov rax, qword [rbx]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, edx
or eax, ecx
jge 0x1402398ad
mov rcx, rbx
call fcn.14000c998
lea rdx, [rsp + 0x58]
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x140239910
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140239910
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1402398d6
mov eax, esi
jmp 0x1402398e3
movsxd rdx, dword [rcx - 0xc]
call fcn.1400beaac
test eax, eax
js 0x140239905
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x140239905
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], si
inc edi
cmp edi, 5
jge 0x140239910
mov edx, dword [rsp + 0x58]
jmp 0x140239889
mov ecx, 0x80070057
call fcn.14000cbb8
int3
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14023991c
mov eax, esi
jmp 0x140239929
movsxd rdx, dword [rcx - 0xc]
call fcn.1400beaac
test eax, eax
js 0x140239943
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x140239943
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], si
mov rax, rbx
jmp 0x140239959
mov ecx, 0x80070057
call fcn.14000cbb8
int3
mov ecx, 0x80070057
call fcn.14000cbb8
nop
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x140239970
Capabilities:
Get user security identifier

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r12
push r13
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 8], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov rsi, rdx
mov r12, rcx
xor r13d, r13d
mov dword [rbp + 0x40], r13d
mov dword [rbp + 0x30], r13d
lea rax, [rbp + 0x48]
mov qword [r11 - 0x48], rax
lea rax, [rbp + 0x30]
mov qword [r11 - 0x50], rax
mov qword [r11 - 0x58], r13
lea r9, [rbp + 0x40]
xor r8d, r8d
mov rdx, qword [rcx]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test ebx, ebx
jne 0x140239ade
cmp eax, 0x7a
jne 0x140239ade
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x10], rbx
mov edx, dword [rbp + 0x40]
mov rcx, rsi
call fcn.140063c00
mov edx, dword [rbp + 0x30]
test edx, edx
jns 0x140239a15
mov ecx, 0x80070057
call fcn.14000cbb8
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edx
or eax, ecx
jge 0x140239a33
lea rcx, [rbp - 0x10]
call fcn.14000c998
mov rbx, qword [rbp - 0x10]
lea rax, [rbp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x40]
mov r8, qword [rsi]
mov rdx, qword [r12]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x140239ab0
mov edi, r13d
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.1400beaac
test eax, eax
js 0x140239aa5
cmp eax, dword [rbx - 0xc]
jg 0x140239aa5
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r13w
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x140239ac3
mov rcx, qword [rsi]
call fcn.1400bee7c
mov qword [rsi], r13
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x140239ac3
mov ecx, 0x80070057
call fcn.14000cbb8
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [rsi]
call fcn.1400bee7c
mov qword [rsi], r13
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140239ade
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, edi
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14023a5d0
Capabilities:
List user accounts for group

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
and qword [r11 - 0x40], 0
and qword [r11 - 0x38], 0
and dword [r11 + 0x18], 0
and dword [r11 + 0x20], 0
lea rax, [r11 + 0x20]
mov rbp, rdx
mov qword [r11 - 0x48], rax
lea rax, [r11 + 0x18]
mov rdx, rcx
mov qword [r11 - 0x50], rax
or dword [rsp + 0x20], 0xffffffff
lea r9, [r11 - 0x38]
mov r8d, 1
xor ecx, ecx
call qword [sym.imp.NETAPI32.dll_NetLocalGroupGetMembers]
mov esi, eax
test eax, eax
jne 0x14023a68b
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14023a68b
mov edx, dword [rsp + 0x90]
xor edi, edi
test edx, edx
je 0x14023a680
lea rbx, [rcx + 0x10]
lea rax, [rbx - 0x10]
test rax, rax
je 0x14023a67b
cmp dword [rbx - 8], 1
jne 0x14023a671
mov rdx, rbx
mov rcx, rbp
call fcn.14006ea84
lea rdx, [rsp + 0x48]
mov rcx, rbp
mov r8, rax
call fcn.140018e00
mov edx, dword [rsp + 0x90]
inc edi
add rbx, 0x18
cmp edi, edx
jb 0x14023a640
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14023a68b
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov eax, esi
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x14023ac10
Capabilities:
Persist via run registry key

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov rbx, rcx
mov r9, qword [rcx]
add r9, 0x20
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x20], 1
lea r8, str.SOFTWAREMicrosoftWindowsCurrentVersion
mov rdi, 0xffffffff80000002
mov rdx, rdi
call fcn.14023a9b0
call fcn.14023e03c
mov r9, qword [rbx]
mov byte [rsp + 0x28], 0
mov rdx, rdi
mov rcx, rbx
add r9, 0x20
mov byte [rsp + 0x20], 1
test al, al
je 0x14023ad16
lea r8, [0x14035d820]
call fcn.14023a9b0
lea r8, str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
mov rdx, qword [rbx]
lea rcx, [rsp + 0x50]
call fcn.14001c3e0
nop
mov r9, qword [rbx]
add r9, 0x20
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x20], 1
mov r8, qword [rax]
lea rdx, [rdi + 1]
mov rcx, rbx
call fcn.14023a9b0
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x14023acd6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, [0x14035d940]
mov rdx, qword [rbx]
lea rcx, [rsp + 0x58]
call fcn.14001c3e0
nop
mov r9, qword [rbx]
add r9, 0x20
mov byte [rsp + 0x28], 1
mov byte [rsp + 0x20], 1
mov r8, qword [rax]
mov rdx, 0xffffffff80000003
mov rcx, rbx
call fcn.14023a9b0
nop
mov rdx, qword [rsp + 0x58]
jmp 0x14023ad63
lea r8, str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
call fcn.14023a9b0
lea r8, [0x14035d940]
mov rdx, qword [rbx]
lea rcx, [rsp + 0x60]
call fcn.14001c3e0
nop
mov r9, qword [rbx]
add r9, 0x20
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x20], 1
mov r8, qword [rax]
mov rdx, 0xffffffff80000003
mov rcx, rbx
call fcn.14023a9b0
nop
mov rdx, qword [rsp + 0x60]
or edi, 0xffffffff
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x14023ad7d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret