joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013c30
Capabilities:
Create thread
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rdi, rcx
mov rsi, rdx
mov rbx, r8
mov rbp, r9
call sym.pop_pthread_mem
mov r12, rax
test rax, rax
je 0x140013e99
test rdi, rdi
je 0x140013c6a
mov rax, qword [rax + 0x1d8]
mov qword [rdi], rax
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [r12 + 8], rbp
mov dword [r12 + 0x44], 1
mov rbp, qword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [r12 + 0xbc], 0
mov r14, r13
mov qword [r12 + 0x28], 0xffffffffffffffff
mov qword [r12 + 0x10], rbx
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call rbp
mov qword [r12 + 0x30], rax
test rax, rax
jne 0x140013cd7
add ebx, 1
cmp ebx, 1
je 0x140013de0
mov ecx, 0x14
call r14
cmp ebx, 5
jne 0x140013ca5
mov qword [r12 + 0x38], 0xffffffffffffffff
lea r14, [r12 + 0x68]
mov rcx, r14
call sym.pthread_spin_destroy
cmp eax, 1
je 0x140013edf
cmp qword [r12 + 0x30], 0
mov qword [r12 + 0x68], 0xffffffffffffffff
mov dword [r12], 0xbab1f00d
mov dword [r12 + 0xc0], 0
mov dword [r12 + 0xb8], 0
je 0x140013e82
xor edx, edx
test rsi, rsi
je 0x140013d4f
mov eax, dword [rsi]
mov edx, dword [rsi + 0x10]
mov dword [r12 + 0x44], eax
test al, 8
jne 0x140013eb0
mov eax, dword [rsi + 0x18]
mov dword [r12 + 0xc0], eax
lea r8, [sym.pthread_create_wrapper]
mov r9, r12
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov r13, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140013e40
mov eax, dword [r12 + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jge 0x140013e10
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [r12 + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test byte [r12 + 0x44], 4
jne 0x140013df0
mov qword [r12 + 0x28], r13
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
xor ecx, ecx
call r13
jmp 0x140013ca5
mov qword [r12 + 0x28], 0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140013dbf
mov edx, 0xfffffffe
cmp eax, 0xffffffff
jl 0x140013d95
mov edx, 0xf
cmp eax, 0xe
jg 0x140013d95
cmp eax, 2
mov edx, 2
cmovle edx, eax
jmp 0x140013d95
mov rcx, qword [r12 + 0x30]
test rcx, rcx
je 0x140013e50
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [r12 + 0x38]
call sym.pthread_mutex_destroy
mov rcx, r14
call sym.pthread_spin_destroy
cmp eax, 1
je 0x140013edf
mov qword [r12 + 0x68], 0xffffffffffffffff
mov qword [r12 + 0x30], 0
mov qword [r12 + 0x28], 0
test rdi, rdi
je 0x140013e8e
mov qword [rdi], 0
cmp qword [r12 + 0x1d0], 0
je 0x140013ed0
mov eax, 0xb
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov dword [rsp + 0x3c], edx
call sym.__pthread_self_lite
mov edx, dword [rsp + 0x3c]
mov eax, dword [rax + 0xc0]
mov dword [r12 + 0xc0], eax
jmp 0x140013d4f
mov rcx, r12
call sym.push_pthread_mem.part.0
mov eax, 0xb
jmp 0x140013e9e
call sym.replace_spin_keys.part.0
nop
nop word cs:[rax + rax]
Function at 0x140014cf0
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140014d10
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x140014d58
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140014d04
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140014d45

Function at 0x140014d80
Capabilities:
Check mutex on windows

Disassembly:
push r12
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
lea r8, [0x14041a400]
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140014e38
mov rdx, qword [0x14041a340]
lea rcx, [0x14041a340]
mov rax, qword [rdx + 8]
test rax, rax
je 0x140014e08
cmp rdx, rcx
jne 0x140014dea
mov qword [rdx], rax
cmp rax, rcx
je 0x140014def
nop dword [rax]
test rax, rax
je 0x140014e1a
mov rdx, qword [rdx]
mov qword [rax], rdx
mov rdx, rax
mov rax, qword [rdx + 8]
cmp rax, rcx
jne 0x140014dd8
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
test rax, rax
je 0x140014e1a
mov rdx, rax
jmp 0x140014de6
lea rcx, [0x14041a440]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x140014e56
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x20
pop r12
ret
lea rcx, str.failed_to_to_lock_cleanup_mutex_n
call sym.__shmem_get_error
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x20
pop r12
ret
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_DeleteAtom]
jmp 0x140014e1a
Function at 0x140021210
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r12
push rbx
sub rsp, 0x28
mov r12, rcx
lea rcx, str.msvcrt.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.rand_s
mov rcx, rax
call rbx
test rax, rax
je 0x140021258
mov rcx, r12
mov qword [dbg.init_rand_s], rax
add rsp, 0x28
pop rbx
pop r12
jmp rax
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.SystemFunction036
mov rcx, rax
call rbx
mov qword [0x14041afc0], rax
lea rax, [dbg.mingw_rand_s]
jmp 0x14002123f
Function at 0x140022490
Capabilities:
Enumerate processes

Disassembly:
push rbp
push rbx
sub rsp, 0x348
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x2e0], rcx
mov qword [rbp + 0x2e8], rdx
mov dword [rbp + 0x2bc], 0xffffffff
lea rax, [rbp + 0xf0]
mov rcx, rax
call fcn.1400af4a0
mov edx, 0
mov ecx, 2
call sym.CreateToolhelp32Snapshot
mov qword [rbp + 0x2b0], rax
cmp qword [rbp + 0x2b0], 0xffffffffffffffff
jne 0x1400224f2
mov ebx, 0xfffffffe
jmp 0x140022614
mov dword [rbp - 0x40], 0x130
lea rdx, [rbp - 0x40]
mov rax, qword [rbp + 0x2b0]
mov rcx, rax
call sym.Process32First
test eax, eax
sete al
test al, al
je 0x14002251f
mov ebx, 0xfffffffd
jmp 0x140022614
lea rax, [rbp - 0x40]
lea rdx, [rax + 0x2c]
lea rax, [rbp + 0xf0]
add rax, 0x10
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
lea rax, [rbp - 0x60]
lea rdx, [rbp + 0xf0]
mov rcx, rax
call method.std::__cxx11::basic_stringstream_char__std::char_traits_char___std::allocator_char___.str___const
mov rdx, qword [rbp + 0x2e8]
lea rax, [rbp - 0x60]
mov rcx, rax
call sym._ZSteqIcEN9__gnu_cxx11__enable_ifIXsrSt9__is_charIT_E7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS3_St11char_traitsIS3_ESaI
test al, al
je 0x140022574
mov eax, dword [rbp - 0x38]
mov dword [rbp + 0x2bc], eax
mov ebx, 0
jmp 0x1400225dc
lea rax, [rbp + 0x2af]
mov rcx, rax
call fcn.14006ec70
lea rdx, [rbp + 0x2af]
lea rax, [rbp + 0x280]
mov r8, rdx
lea rdx, [0x1403ec001]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const_
lea rdx, [rbp + 0x280]
lea rax, [rbp + 0xf0]
mov rcx, rax
call method.std::__cxx11::basic_stringstream_char__std::char_traits_char___std::allocator_char___.str_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
lea rax, [rbp + 0x280]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0x2af]
mov rcx, rax
call sym.std::allocator_char_::allocator__
mov ebx, 1
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
cmp ebx, 1
jne 0x14002260e
lea rdx, [rbp - 0x40]
mov rax, qword [rbp + 0x2b0]
mov rcx, rax
call sym.Process32Next
test eax, eax
setne al
test al, al
je 0x14002260e
jmp 0x14002251f
mov ebx, dword [rbp + 0x2bc]
lea rax, [rbp + 0xf0]
mov rcx, rax
call fcn.1400afed0
mov eax, ebx
jmp 0x140022678
add rsp, 0x348
pop rbx
pop rbp
ret

Function at 0x140023340
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sym.fread
mov edx, 0xffffffff
test rax, rax
jle 0x14002336c
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x140023fe0
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x30
cmp byte [0x1403ebc90], 0
jne 0x1400240ea
mov byte [0x1403ebc90], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x1400240c0
mov r12, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [r12], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add r12, rax
mov rcx, r12
call sym.__cxa_demangle
mov ecx, 2
mov rbx, qword [dbg.__acrt_iob_func]
mov r13, rax
call rbx
mov edx, 1
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x1400240b1
call rbx
mov rcx, r12
mov rdx, rax
call sym.fputs
mov ecx, 2
call rbx
mov r8d, 2
mov edx, 1
lea rcx, [0x1403ec0a1]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x1400240ac
mov rcx, r13
call sym.free
call sym.__cxa_rethrow
call rbx
mov rcx, r13
mov rdx, rax
call sym.fputs
jmp 0x14002407b
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
call sym.abort
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
call sym.abort
sub rdx, 1
mov rcx, rax
jne 0x14002417f
call sym.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov r12, rax
call rbx
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rbx
mov rdx, rax
mov rcx, r12
call sym.fputs
mov ecx, 2
call rbx
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
jmp 0x1400240e5
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x1400240e5

Function at 0x14007dd80
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x14007dda7
call rbp
cmp dword [rax], 4
jne 0x14007ddc4
mov rcx, rdi
call method.std::__basic_file_char_.fd__
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sym.read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x14007dda0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400912c0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
je 0x1400912e8
xor ecx, ecx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov ebx, 4
lea rsi, [rsp + 0x2c]
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sym.read
test eax, eax
jle 0x140091330
cdqe
add rsi, rax
sub rbx, rax
jne 0x140091300
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x14009133c
call rbp
cmp dword [rax], 4
je 0x140091300
lea rcx, str.random_device_could_not_be_read
call method.std.__throw_runtime_error_char_const_
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x142493058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1424931df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x142493089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14249306f
add dl, dl
jne 0x142493096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1424930f6
xor eax, eax
add dl, dl
jne 0x1424930a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1424931ad
add dl, dl
jne 0x1424930b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1424930c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1424930d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1424930dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1424930ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14249307e
mov eax, 1
add dl, dl
jne 0x142493106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x142493113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1424930fb
sub eax, ebx
mov ebx, 1
jne 0x14249314c
mov ecx, 1
add dl, dl
jne 0x14249312e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14249313b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x142493123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14249307e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x142493168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x142493175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14249315d
cmp eax, 0x7d00
jae 0x14249319b
cmp eax, 0x500
jb 0x142493196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14249307e
cmp eax, 0x7f
ja 0x14249319e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14249307e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1424931d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14249307e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001bb0
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, qword [rdx + 8]
test rsi, rsi
je 0x140001dca
mov r15, r8
mov r13, rdx
mov r12, rcx
lea rbx, [rdx + 0x10]
mov r14, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov rdi, rsi
movzx eax, byte [rdi]
or al, 2
cmp al, 0x2f
je 0x140001c00
mov rdi, qword [rbx]
add rbx, 8
test rdi, rdi
jne 0x140001be4
jmp 0x140001dca
cmp byte [rdi + 1], 0x2d
je 0x140001ddb
add rdi, 1
movsx ecx, byte [rdi]
test ecx, ecx
je 0x140001bed
call r14
cmp al, 0x6f
jne 0x140001bed
movsx ecx, byte [rdi + 1]
test ecx, ecx
je 0x140001bed
call r14
cmp al, 0x73
jne 0x140001bed
movsx ecx, byte [rdi + 2]
test ecx, ecx
je 0x140001bed
call r14
cmp al, 0x69
jne 0x140001bed
movsx ecx, byte [rdi + 3]
test ecx, ecx
je 0x140001bed
call r14
cmp al, 0x6e
jne 0x140001bed
movsx ecx, byte [rdi + 4]
test ecx, ecx
je 0x140001bed
call r14
cmp al, 0x74
jne 0x140001bed
cmp byte [rdi + 5], 0
jne 0x140001bed
cmp dword [r12], 4
jne 0x140001de4
mov al, byte [rsi]
or al, 2
cmp al, 0x2f
jne 0x140001de4
lea rdi, [rsi + 1]
lea rax, [rsi + 2]
xor ecx, ecx
cmp byte [rsi + 1], 0x2d
sete cl
cmove rdi, rax
movsx ecx, byte [rcx + rsi + 1]
test ecx, ecx
je 0x140001de4
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
cmp al, 0x6f
jne 0x140001de4
movsx ecx, byte [rdi + 1]
test ecx, ecx
je 0x140001de4
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
cmp al, 0x73
jne 0x140001de4
movsx ecx, byte [rdi + 2]
test ecx, ecx
je 0x140001de4
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
cmp al, 0x69
jne 0x140001de4
movsx ecx, byte [rdi + 3]
test ecx, ecx
je 0x140001de4
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
cmp al, 0x6e
jne 0x140001de4
movsx ecx, byte [rdi + 4]
test ecx, ecx
je 0x140001de4
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
cmp al, 0x74
jne 0x140001de4
cmp byte [rdi + 5], 0
jne 0x140001de4
lea rax, [r13 + 0x10]
mov rcx, qword [rax]
mov qword [rax - 8], rcx
add rax, 8
test rcx, rcx
jne 0x140001d1b
add dword [r12], 0xffffffff
mov rax, qword [r13 + 8]
mov cl, byte [rax]
or cl, 2
cmp cl, 0x2f
jne 0x140001de4
cmp byte [rax + 1], 0x2d
lea rsi, [rax + 1]
lea rax, [rax + 2]
cmove rsi, rax
mov rdi, qword [r15]
test rdi, rdi
je 0x140001de4
mov al, byte [rsi]
mov byte [rsp + 0x27], al
test al, al
setne r12b
jmp 0x140001d7d
test cl, cl
je 0x140001dbe
mov rdi, qword [r15 + 8]
add r15, 8
test rdi, rdi
je 0x140001de4
mov bl, byte [rdi]
mov ecx, r12d
test bl, bl
je 0x140001d6c
mov ebp, 1
mov ecx, r12d
mov al, byte [rsp + 0x27]
test cl, 1
je 0x140001d70
movsx ecx, al
call r14
movsx eax, al
movsx ecx, bl
cmp eax, ecx
jne 0x140001d70
movzx ebx, byte [rdi + rbp]
movzx eax, byte [rsi + rbp]
test al, al
setne cl
add rbp, 1
test bl, bl
jne 0x140001d92
jmp 0x140001d6c
mov rax, qword [r13 + 0x10]
mov al, byte [rax]
or al, 2
cmp al, 0x2f
je 0x140001de4
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
add rdi, 2
jmp 0x140001c0e
mov ecx, 0x7f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
ud2
Function at 0x140001e20
Capabilities:
Read file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x10048
call fcn.14004cdb0
sub rsp, rax
mov rsi, rcx
mov rax, qword [0x14005b018]
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 0x140001edb
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x40]
lea r9, [rsp + 0x34]
mov rcx, rsi
mov r8d, 0x10000
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140001ec7
cmp dword [rsp + 0x34], 0x10000
jne 0x140001ec7
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 0x140001ec7
cmp dword [rsp + 0x34], 0x10000
je 0x140001e9f
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.14004ce20
nop
add rsp, 0x10048
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400020b0
Capabilities:
Parse pe header

Disassembly:
mov rax, rcx
mov qword [rcx], rdx
xorps xmm0, xmm0
movups xmmword [rcx + 8], xmm0
mov byte [rcx + 0x18], 0
test rdx, rdx
je 0x140002124
movzx ecx, word [rdx]
cmp ecx, 0x5a4d
jne 0x140002124
lea r8, [rax + 8]
movsxd r9, dword [rdx + 0x3c]
lea r10, [rdx + r9]
mov qword [r8], r10
cmp dword [rdx + r9], 0x4550
jne 0x140002124
movzx ecx, word [r10 + 0x18]
cmp ecx, 0x20b
jne 0x140002124
mov r8d, dword [r10 + 0x50]
cmp r8d, 0x148
jb 0x140002124
lea ecx, [r8 - 1]
add rdx, rcx
mov qword [rax + 0x10], rdx
cmp dword [r10 + 0x84], 2
jb 0x140002124
cmp dword [r10 + 0x90], r8d
setae byte [rax + 0x18]
ret
Function at 0x140002f20
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
sub rsp, 0x1e8
mov rsi, rcx
mov rax, qword [0x14005b018]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
lea rdi, [rsp + 0x38]
mov rcx, rdi
call fcn.140003070
lea rdx, [rsp + 0x118]
mov rcx, rdi
call fcn.140003140
lea rdi, [rsp + 0x118]
mov rcx, rdi
call fcn.140003070
lea rdx, [rsp + 0x100]
mov rcx, rdi
call fcn.1400077b0
cmp byte [rsp + 0x110], 0
jne 0x140002ff8
cmp byte [rsp + 0x100], 0
je 0x140002ff8
lea rcx, str.MOZ_DISABLE_POISON_IO_INTERPOSER1
call sub.api_ms_win_crt_environment_l1_1_0.dll__putenv
mov ecx, 0x18
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov rdi, rax
movups xmm0, xmmword [rsi]
movups xmmword [rax], xmm0
mov ecx, 8
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rdi + 0x10], rax
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x14000e270]
xor ecx, ecx
xor edx, edx
mov r9, rdi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
test rax, rax
jne 0x140003032
lea rcx, [rsp + 0x30]
call int.140010000
lea rcx, [rsp + 0x118]
call fcn.140003290
mov rcx, rsi
call fcn.1400031c0
lea rcx, [rsp + 0x38]
call fcn.140003290
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.14004ce20
nop
add rsp, 0x1e8
pop rdi
pop rsi
ret
mov qword [rsp + 0x30], 0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x30]
call int.140010000
lea rcx, [rsp + 0x118]
call fcn.140003290
cmp byte [0x14005bad4], 0
je 0x14000300d
jmp 0x140003005

Function at 0x1400031c0
Capabilities:
Access the windows event log

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rdi, rcx
lea rdx, [0x1400523c0]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test rax, rax
je 0x140003280
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
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 dword [rsp + 0x30], esi
mov qword [rsp + 0x38], 0
mov word [rsp + 0x28], 0
mov qword [rsp + 0x20], 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, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
nop
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140004070
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 [0x14005b018]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x4c], 0
lea r15, [rsp + 0x4c]
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 0x1400040e5
cmp eax, 2
jne 0x140004171
mov byte [r12 + 0x10], 0
mov byte [r12], 0
jmp 0x14000419e
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 0x1400041bf
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], 0x63
mov dword [r12 + 0xc], ecx
mov rcx, r14
call qword [sym.imp.mozglue.dll_free]
jmp 0x14000419e
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], 0x57
mov dword [r12 + 0xc], ecx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14004ce20
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 [0x14004e6be]
mov qword [rsp + 0x5e], rax
movaps xmm0, xmmword [str.RUNASADMIN]
movaps xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x48], 0x20
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x48]
lea r8, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
test rax, rax
je 0x140004245
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]
nop dword [rax]
mov r8d, 0xb
mov rcx, rax
mov rdx, r15
call rsi
test eax, eax
je 0x140004256
xor ebp, ebp
xor ecx, ecx
mov rdx, r13
mov r8, rdi
call rbx
test rax, rax
jne 0x140004220
jmp 0x140004247
xor ebp, ebp
mov byte [r12 + 0x10], 0
mov byte [r12], bpl
jmp 0x140004166
mov bpl, 1
jmp 0x140004247