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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
mov rax, qword [0x14005c018]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [0x14005cb64]
mov ecx, dword [0x14005c2c8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400136d8
mov rbx, qword [rsi + 0x10]
test rbx, rbx
jne 0x140013691
mov qword [rsi + 0x10], 0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001bc70
nop
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r15, qword [rsi + 8]
mov r14d, dword [0x14005cb60]
shl rbx, 4
xor edi, edi
lea r12, [rsp + 0x28]
mov r13, qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rax, qword [rsi]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400136cd
mov rdx, qword [r15 + rdi + 8]
mov r9d, dword [r15 + rdi]
mov qword [rsp + 0x20], r12
mov r8, r14
call r13
add rdi, 0x10
cmp rbx, rdi
je 0x14001366b
jmp 0x1400136ae
lea rcx, [0x14005cb64]
call fcn.14001aa20
cmp dword [0x14005cb64], 0xffffffff
jne 0x140013662
lea rdi, [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rdi + 4]
mov dword [0x14005cb60], eax
lea rcx, [0x14005cb64]
call fcn.14001a9c0
jmp 0x140013662
Function at 0x140017dd0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x168
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0xd0], xmm6
mov rsi, rcx
lea rcx, [0x14005cba0]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov rbx, qword [0x14005cb98]
test rbx, rbx
je 0x140017f7d
xorps xmm6, xmm6
lea rdi, [rbp - 0x40]
lea r13, [rbp + 0xc4]
mov r14, qword [sym.imp.KERNEL32.dll_WriteFile]
mov r15, qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ltoa]
movzx r9d, word [rbx]
shr r9d, 1
mov r8, qword [rbx + 8]
movups xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 0x104
mov ecx, 0xfde9
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x140017f70
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov rdx, rdi
mov r8d, eax
mov r9, r13
call r14
test eax, eax
je 0x140017f70
cmp qword [rbx + 0x10], 0xffffffffffffffff
je 0x140017f51
mov qword [rsp + 0x20], 0
mov rcx, rsi
lea rdx, [0x140052226]
mov r8d, 1
mov r9, r13
call r14
mov rax, qword [rbx + 0x10]
mov rcx, rax
shr rcx, 0x30
mov word [rbp + 0xc8], cx
mov rcx, rax
shr rcx, 0x20
mov word [rbp + 0xca], cx
mov rcx, rax
shr rcx, 0x10
mov word [rbp + 0xcc], cx
mov word [rbp + 0xce], ax
xor r12d, r12d
call fcn.140017dc0
cmp r12, 4
jae 0x140017f51
movzx ecx, word [rbp + r12*2 + 0xc8]
mov rdx, rdi
mov r8d, 0xa
call r15
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov rdx, rdi
mov r8d, eax
mov r9, r13
call r14
call fcn.140017dc0
cmp r12, 3
je 0x140017f4c
mov qword [rsp + 0x20], 0
mov rcx, rsi
lea rdx, [0x140052224]
mov r8d, 1
mov r9, r13
call r14
inc r12
jmp 0x140017ee2
mov qword [rsp + 0x20], 0
mov rcx, rsi
lea rdx, [0x140051c0e]
mov r8d, 1
mov r9, r13
call r14
mov rbx, qword [rbx + 0x18]
test rbx, rbx
jne 0x140017e2e
lea rcx, [0x14005cba0]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
movaps xmm6, xmmword [rbp + 0xd0]
add rsp, 0x168
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x140019d60
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov ebp, r9d
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
mov r15d, dword [rsp + 0x80]
mov eax, dword [0x14005cbe0]
mov rcx, qword gs:[0x30]
cmp eax, dword [rcx + 0x48]
je 0x140019db9
cmp byte [0x14005cbe4], 0
je 0x140019db9
mov eax, dword [0x14005c2c8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + 8]
jmp 0x140019dbe
call fcn.14001a720
mov qword [rsi], rax
lea r14, [rsi + 8]
xor eax, eax
mov qword [rsi + 8], rax
mov byte [rsi + 0x10], al
mov dword [rsi + 0x14], ebp
lea rcx, [rsi + 0x18]
mov qword [rsi + 0x20], rax
mov rdx, qword gs:[0x30]
mov edx, dword [rdx + 0x48]
mov dword [rsi + 0x28], edx
xorps xmm0, xmm0
movups xmmword [rsi + 0x30], xmm0
movups xmm1, xmmword [rdi]
movups xmmword [rsi + 0x40], xmm1
mov dword [rdi], 0
mov qword [rdi + 8], rax
mov qword [rsi + 0x50], rbx
movups xmmword [rsi + 0x60], xmm0
mov qword [rsi + 0x58], 8
mov dword [rsi + 0x70], r15d
mov byte [rsi + 0x74], al
call sub.ntdll.dll_RtlQueryPerformanceCounter
mov eax, dword [0x14005cbe0]
mov rcx, qword gs:[0x30]
cmp eax, dword [rcx + 0x48]
jne 0x140019e3a
mov rcx, rsi
call fcn.14001a730
jmp 0x140019e74
cmp byte [0x14005cbe4], 0
jne 0x140019e5a
mov rax, qword gs:[0x30]
cmp qword [rax + 0x58], 0
je 0x140019ea3
mov byte [0x14005cbe4], 1
mov eax, dword [0x14005c2c8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 8], rsi
lea r8, [rsi + 0x40]
lea rcx, [0x14005c050]
mov rax, qword [0x14005c050]
mov rax, qword [rax + 0x38]
mov rdx, r14
call qword [case.0x14001b2ee.0]
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x48]
mov dword [0x14005cbe0], eax
jmp 0x140019e30
Function at 0x14001a190
Capabilities:
Encode data using base64

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov r14, rcx
cmp rdx, 1
jne 0x14001a205
mov r8, qword [r14]
cmp r8, 8
je 0x14001a239
mov rax, qword [r14 + 8]
test rax, rax
je 0x14001a2a6
mov rcx, rax
shr rcx, 0x3b
jne 0x14001a1fe
mov rdx, rax
shl rdx, 4
lea rcx, [rdx - 1]
bsr rcx, rcx
xor ecx, 0x3f
neg cl
mov ebx, 1
shl rbx, cl
sub rbx, rdx
xor ecx, ecx
cmp rbx, 7
seta cl
lea rbx, [rcx + rax*2]
mov rax, rbx
shr rax, 0x3d
je 0x14001a2ab
xor edi, edi
jmp 0x14001a2dc
xor edi, edi
add rdx, qword [r14 + 8]
jb 0x14001a2dc
mov rax, rdx
shr rax, 0x3c
jne 0x14001a2dc
test rdx, rdx
je 0x14001a240
lea rax, [rdx*8 - 1]
bsr rcx, rax
xor rcx, 0xffffffffffffffc0
add rcx, 0x41
jmp 0x14001a242
mov ebx, 1
jmp 0x14001a257
xor ecx, ecx
mov ebx, 1
shl rbx, cl
shr rbx, 3
mov r8, qword [r14]
cmp r8, 8
jne 0x14001a2ab
lea r8, [rbx*8]
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rcx, qword [rax + 0x30]
xor edi, edi
xor edx, edx
call sub.ntdll.dll_RtlAllocateHeap
test rax, rax
je 0x14001a2dc
mov rdx, qword [r14 + 8]
test rdx, rdx
jle 0x14001a2d2
mov rcx, qword [r14]
lea rdx, [rcx + rdx*8]
mov rdi, rax
mov rsi, qword [rcx]
mov qword [rdi], rsi
add rcx, 8
add rdi, 8
cmp rcx, rdx
jb 0x14001a291
jmp 0x14001a2d2
mov ebx, 1
lea r9, [rbx*8]
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rcx, qword [rax + 0x30]
xor edi, edi
xor edx, edx
call sub.ntdll.dll_RtlReAllocateHeap
test rax, rax
je 0x14001a2dc
mov qword [r14], rax
mov qword [r14 + 0x10], rbx
mov dil, 1
mov eax, edi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14001c8a0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x14005c070]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14001c8de
movsxd rcx, dword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 4]
movsxd rdx, dword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
test rdi, rdi
je 0x14001c8d7
call fcn.140002740
jmp 0x14001c8be

Function at 0x14001ca90
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14001caa5
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret
Function at 0x14001da80
Capabilities:
Query environment variable

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x14005c018]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rcx, str.MOZ_ENABLE_HANDLE_VERIFIER
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x14001dabf
call fcn.14001dbd0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001bc70
nop
add rsp, 0x60
pop rsi
ret
movaps xmm0, xmmword [str.kernel32]
movaps xmmword [rsp + 0x30], xmm0
movabs rax, 0x6c006c0064002e
mov qword [rsp + 0x40], rax
mov word [rsp + 0x48], 0
cmp qword [0x14005e968], 0
jne 0x14001dafd
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x14005e968], rax
lea r9, [rsp + 0x28]
mov qword [r9], 0
lea rax, [0x14005e9b8]
lea r8, [rsp + 0x30]
mov qword [r8], rax
lea rsi, [0x14005e948]
mov qword [r8 + 8], rsi
lea rax, [0x14005143c]
mov qword [r8 + 0x10], rax
lea rax, [0x14004b350]
mov qword [r8 + 0x18], rax
mov byte [r8 + 0x20], 0
lea rcx, [0x14005e9c0]
lea rdx, [0x14004b3f0]
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14001daa6
cmp qword [rsp + 0x28], 0
je 0x14001daa6
lea r9, [rsp + 0x28]
mov qword [r9], 0
lea rax, [0x14005e9c8]
lea r8, [rsp + 0x30]
mov qword [r8], rax
mov qword [r8 + 8], rsi
lea rax, [0x14005142c]
mov qword [r8 + 0x10], rax
lea rax, [0x14004b380]
mov qword [r8 + 0x18], rax
mov byte [r8 + 0x20], 0
lea rcx, [0x14005e9d0]
lea rdx, [0x14004b3f0]
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14001daa6
cmp qword [rsp + 0x28], 0
jne 0x14001daab
jmp 0x14001daa6

Function at 0x14001e010
Capabilities:
Set registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rcx
mov rax, qword [0x14005c018]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x3c], r9d
cmp qword [r8 + 0x18], 7
jbe 0x14001e037
mov r8, qword [r8]
mov rcx, qword [rdx]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 4
xor edi, edi
mov rdx, r8
xor r8d, r8d
mov r9d, 4
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14001e07f
mov byte [rsi + 0x10], dil
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14001bc70
mov rax, rsi
add rsp, 0x48
pop rdi
pop rsi
ret
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
lea rax, str._builds_worker_checkouts_gecko_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0x4e
mov dword [rsi + 0xc], ecx
mov dil, 1
jmp 0x14001e064

Function at 0x14001e230
Capabilities:
Delete registry value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
cmp qword [r8 + 0x18], 7
jbe 0x14001e242
mov r8, qword [r8]
mov rcx, qword [rdx]
mov rdx, r8
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, 2
jne 0x14001e263
xor eax, eax
mov byte [rsi + 0x10], al
mov byte [rsi], al
mov rax, rsi
add rsp, 0x20
pop rsi
ret
test eax, eax
jne 0x14001e270
mov byte [rsi + 0x10], 0
mov byte [rsi], 1
jmp 0x14001e25a
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [rsi + 0x10], 1
lea rax, str._builds_worker_checkouts_gecko_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0x5c
mov dword [rsi + 0xc], ecx
jmp 0x14001e25a
Function at 0x14001f080
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rax, qword [0x14005c018]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rax, qword [r8 + 0x18]
lea r12, [rax + 0x90]
mov edi, dword [r8 + 0x10]
mov esi, r12d
sub esi, edi
xor edi, edi
cmp dword [rax + 0x84], 1
mov r14, rcx
cmova edi, esi
jbe 0x14001f248
mov rbx, r8
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
mov rcx, rdx
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x14001f267
xorps xmm0, xmm0
lea rax, [rsp + 0x40]
movaps xmmword [rax + 0x10], xmm0
movaps xmmword [rax], xmm0
mov dword [rax + 0x10], edi
lea rdx, [rsp + 0x68]
mov qword [rdx], 0
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
mov rcx, r15
mov r8d, 8
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001f217
cmp dword [rsp + 0x38], 8
jne 0x14001f217
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x38], rax
lea rdi, [rsp + 0x40]
mov r9d, 8
mov rcx, rbx
mov rdx, rdi
mov r8, r12
call fcn.14000ed00
mov eax, dword [rdi + 0x1c]
test eax, eax
js 0x14001f294
mov qword [rsp + 0x20], 8
lea rdi, [rsp + 0x68]
lea r9, [rsp + 0x38]
mov rcx, rbx
mov rdx, rdi
mov r8, r12
call fcn.14000ea00
mov bl, byte [rdi + 0x10]
test bl, bl
jne 0x14001f2b4
cmp dword [rsp + 0x5c], 0
js 0x14001f1d5
lea rax, [rsp + 0x58]
mov r9d, dword [rax]
mov rdx, qword [rax - 0x18]
mov r8, qword [rax - 0x10]
mov rcx, qword [rax - 8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test bl, bl
jne 0x14001f1de
mov byte [r14 + 0x10], 0
mov rax, r15
inc rax
cmp rax, 2
jb 0x14001f1f3
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14001bc70
mov rax, r14
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [r14 + 0x10], 1
lea rax, str._builds_worker_workspace_obj_build_dist_include_mozilla_ImportDir.h
mov qword [r14], rax
mov dword [r14 + 8], 0x16
mov dword [r14 + 0xc], ecx
jmp 0x14001f1de
mov byte [r14 + 0x10], 1
lea rax, str._builds_worker_workspace_obj_build_dist_include_mozilla_ImportDir.h
mov qword [r14], rax
movabs rax, 0x800700c100000035
mov qword [r14 + 8], rax
jmp 0x14001f1f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [r14 + 0x10], 1
lea rax, str._builds_worker_workspace_obj_build_dist_include_mozilla_ImportDir.h
mov qword [r14], rax
mov dword [r14 + 8], 0x3c
jmp 0x14001f242
mov byte [r14 + 0x10], 1
lea rcx, str._builds_worker_workspace_obj_build_dist_include_mozilla_ImportDir.h
mov qword [r14], rcx
mov dword [r14 + 8], 0x51
mov dword [r14 + 0xc], eax
jmp 0x14001f1de
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [r14], xmm0
mov byte [r14 + 0x10], 1
jmp 0x14001f1af
Function at 0x14001f870
Capabilities:
Read file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x10048
call fcn.14001bc00
sub rsp, rax
mov rsi, rcx
mov rax, qword [0x14005c018]
xor rax, rsp
mov qword [rsp + 0x10040], rax
lea r8, [rsp + 0x38]
xor edx, edx
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001f8fb
lea r14, [rsp + 0x40]
lea rbx, [rsp + 0x34]
mov rdi, qword [sym.imp.KERNEL32.dll_ReadFile]
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov rdx, r14
mov r8d, 0x10000
mov r9, rbx
call rdi
test eax, eax
je 0x14001f8e7
cmp dword [rsp + 0x34], 0x10000
je 0x14001f8bf
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov rcx, qword [rsp + 0x10040]
xor rcx, rsp
call fcn.14001bc70
nop
add rsp, 0x10048
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14001fb60
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1e8
mov rdi, rdx
mov r14, rcx
mov rax, qword [0x14005c018]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
lea rbx, [rsp + 0x38]
mov rcx, rbx
call fcn.14000d560
lea rdx, [rsp + 0x118]
mov rcx, rbx
call fcn.14001fce0
lea rbx, [rsp + 0x118]
mov rcx, rbx
call fcn.14000d560
lea rsi, [rsp + 0x100]
mov rcx, rbx
mov rdx, rsi
call fcn.14001fd70
cmp byte [rsi + 0x10], 0
jne 0x14001fc6b
cmp byte [rsp + 0x100], 0
je 0x14001fc6b
lea rcx, str.MOZ_DISABLE_POISON_IO_INTERPOSER1
call sub.api_ms_win_crt_environment_l1_1_0.dll__putenv
mov ecx, 0x38
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov rbx, rax
movups xmm0, xmmword [r14]
movups xmmword [rax], xmm0
xor esi, esi
mov ecx, 8
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbx + 0x10], rax
test rdi, rdi
lea rdx, [0x140052604]
cmovne rdx, rdi
lea rcx, [rbx + 0x18]
mov qword [rbx + 0x28], rsi
mov qword [rbx + 0x30], 0xf
mov byte [rbx + 0x18], 0
call fcn.140001f20
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0x10000
lea r8, [0x140021b90]
xor ecx, ecx
xor edx, edx
mov r9, rbx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
test rax, rax
jne 0x14001fca8
lea rcx, [rsp + 0x30]
call fcn.14001fe60
lea rcx, [rsp + 0x118]
call fcn.14000d900
mov rcx, r14
call fcn.14001feb0
lea rcx, [rsp + 0x38]
call fcn.14000d900
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.14001bc70
nop
add rsp, 0x1e8
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rsi, [rsp + 0x30]
mov qword [rsi], 0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.14001fe60
lea rcx, [rsp + 0x118]
call fcn.14000d900
cmp byte [0x14005cadc], 0
je 0x14001fc80
jmp 0x14001fc78
Function at 0x14001feb0
Capabilities:
Access the windows event log

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
mov rdi, rcx
lea rdx, [0x140052642]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test rax, rax
je 0x14001ff6f
mov r15, rax
mov rcx, qword [rdi]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r14, rax
lea rsi, [rax + 8]
mov rcx, rsi
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov rbx, rax
xor r12d, r12d
mov rcx, rax
xor edx, edx
mov r8, rsi
call sub.ntdll.dll_memset
mov ebp, dword [rdi + 0xc]
mov dword [rbx], ebp
mov eax, dword [rdi + 8]
mov dword [rbx + 4], eax
lea rcx, [rbx + 8]
mov rdx, qword [rdi]
mov r8, r14
call sub.ntdll.dll_memcpy
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x20], r12
mov word [rsp + 0x28], 0
mov rcx, r15
mov dx, 1
xor r8d, r8d
mov r9d, ebp
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.mozglue.dll_free]
mov rcx, r15
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
nop
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140020760
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rbx, r8
mov rdi, rdx
mov r12, rcx
mov rax, qword [0x14005c018]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea r15, [rsp + 0x4c]
mov dword [r15], 0
mov qword [rsp + 0x30], r15
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
mov rcx, rdi
mov r9d, 0x10002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x1400207d4
cmp eax, 2
jne 0x140020860
xor eax, eax
mov byte [r12 + 0x10], al
mov byte [r12], al
jmp 0x14002088d
mov esi, dword [rsp + 0x4c]
add rsi, rsi
mov rcx, rsi
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov r14, rax
mov rcx, rax
xor edx, edx
mov r8, rsi
call sub.ntdll.dll_memset
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], 0
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
mov rcx, rdi
mov r8, rbx
mov r9d, 0x10002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x1400208ae
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [r12 + 0x10], 1
lea rax, str._builds_worker_checkouts_gecko_browser_app_winlauncher_LaunchUnelevated.cpp
mov qword [r12], rax
mov dword [r12 + 8], 0x65
mov dword [r12 + 0xc], ecx
mov rcx, r14
call qword [sym.imp.mozglue.dll_free]
jmp 0x14002088d
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [r12 + 0x10], 1
lea rax, str._builds_worker_checkouts_gecko_browser_app_winlauncher_LaunchUnelevated.cpp
mov qword [r12], rax
mov dword [r12 + 8], 0x59
mov dword [r12 + 0xc], ecx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14001bc70
mov rax, r12
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x14004e73e]
mov qword [rsp + 0x5e], rax
movaps xmm0, xmmword [str.RUNASADMIN]
movaps xmmword [rsp + 0x50], xmm0
lea rdx, [rsp + 0x48]
mov dword [rdx], 0x20
lea r8, [rsp + 0x40]
mov qword [r8], 0
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
test rax, rax
je 0x14002092d
lea r15, [rsp + 0x50]
mov rsi, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
lea r13, [rsp + 0x48]
lea rdi, [rsp + 0x40]
mov rbx, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
mov r8d, 0xb
mov rcx, rax
mov rdx, r15
call rsi
test eax, eax
je 0x14002093e
xor ebp, ebp
xor ecx, ecx
mov rdx, r13
mov r8, rdi
call rbx
test rax, rax
jne 0x140020908
jmp 0x14002092f
xor ebp, ebp
mov byte [r12 + 0x10], 0
mov byte [r12], bpl
jmp 0x140020855
mov bpl, 1
jmp 0x14002092f
Function at 0x140020be0
Capabilities:
Print debug messages

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x860
mov qword [rsp + 0x888], rdx
mov qword [rsp + 0x890], r8
mov qword [rsp + 0x898], r9
mov rax, qword [0x14005c018]
xor rax, rsp
mov qword [rsp + 0x858], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140020c85
lea rsi, [rsp + 0x888]
mov qword [rsp + 0x28], rsi
lea rdi, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.mozglue.dll_protected:_void___cdecl_mozilla::PrintfTarget::constructor_void____ptr64]
lea rax, [0x14004e2b0]
mov qword [rdi], rax
lea rbx, [rsp + 0x50]
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], 0x800
lea rdx, str._n_nBROWSERBROWSERBROWSERBROWSER_n__debug_me____lu_n_n
mov rcx, rdi
mov r8, rsi
call qword [sym.imp.mozglue.dll_public:_bool___cdecl_mozilla::PrintfTarget::vprint_char_const____ptr64__char____ptr64____ptr64]
mov rax, qword [rdi + 8]
mov ecx, 0x7ff
cmp rax, rcx
cmovb rcx, rax
mov byte [rsp + rcx + 0x50], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
cmp eax, 0xfffffffe
je 0x140020cf3
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__dup]
lea rdx, [0x140051a25]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll__fdopen]
test rax, rax
je 0x140020cf3
mov rsi, rax
lea rdi, [rsp + 0x888]
mov qword [rsp + 0x50], rdi
call fcn.140003260
mov rcx, qword [rax]
mov qword [rsp + 0x20], rdi
lea r8, str._n_nBROWSERBROWSERBROWSERBROWSER_n__debug_me____lu_n_n
mov rdx, rsi
xor r9d, r9d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vfprintf]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [rsp + 0x858]
xor rcx, rsp
call fcn.14001bc70
nop
add rsp, 0x860
pop rbx
pop rdi
pop rsi
ret

Function at 0x140020d80
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [rcx]
lea rax, [rcx + 0x18]
cmp rdi, rax
je 0x140020de5
mov rax, qword [rsi + 8]
test rax, rax
je 0x140020e25
mov rcx, rax
shr rcx, 0x3b
jne 0x140020de1
mov rdx, rax
shl rdx, 4
lea rcx, [rdx - 1]
bsr rcx, rcx
xor ecx, 0x3f
neg cl
mov ebx, 1
shl rbx, cl
sub rbx, rdx
xor ecx, ecx
cmp rbx, 7
seta cl
lea rbx, [rcx + rax*2]
mov rax, rbx
shr rax, 0x3d
je 0x140020e2a
xor eax, eax
jmp 0x140020e49
mov ecx, 0x20
call qword [sym.imp.mozglue.dll_malloc]
test rax, rax
je 0x140020de1
mov rcx, qword [rsi + 8]
test rcx, rcx
jle 0x140020e18
lea rcx, [rdi + rcx*8]
mov rdx, rax
mov rbx, qword [rdi]
mov qword [rdx], rbx
add rdi, 8
add rdx, 8
cmp rdi, rcx
jb 0x140020e05
mov qword [rsi], rax
mov qword [rsi + 0x10], 4
jmp 0x140020e47
mov ebx, 1
lea rdx, [rbx*8]
mov rcx, rdi
call qword [sym.imp.mozglue.dll_realloc]
test rax, rax
je 0x140020de1
mov qword [rsi], rax
mov qword [rsi + 0x10], rbx
mov al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret