joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ac110
Capabilities:
Link many functions at runtime

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rcx, str.api_ms_win_core_synch_l1_2_0.dll
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x1400ac17c
mov rdi, rax
lea rdx, str.WaitOnAddress
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x1400ac17c
mov rsi, rax
lea rdx, str.WakeByAddressSingle
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x1400ac17c
mov rbx, rax
xor edi, edi
movzx eax, byte [0x1400f92c0]
mov rcx, qword [0x1400f91f8]
test rcx, rcx
jne 0x1400ac230
jmp 0x1400ac21b
lea rcx, [0x1400e1c08]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x1400ac293
mov rsi, rax
lea rdx, str.NtCreateKeyedEvent
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x1400ac293
mov rbx, rax
lea rdx, str.NtReleaseKeyedEvent
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x1400ac293
mov rdi, rax
lea rdx, str.NtWaitForKeyedEvent
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x1400ac293
mov rsi, rax
lea rcx, [rsp + 0x20]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rbx
test eax, eax
jne 0x1400ac293
mov rbx, qword [rsp + 0x20]
movzx eax, byte [0x1400f92c0]
mov rcx, qword [0x1400f91f8]
test rcx, rcx
jne 0x1400ac230
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1400ac29a
mov rcx, rax
mov qword [0x1400f91f8], rax
mov r8d, 0x18
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x1400ac29a
mov r14, rax
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rbx
xor eax, eax
lock cmpxchg qword [0x1400f9128], r14
je 0x1400ac286
mov rsi, rax
cmp qword [r14], 0
je 0x1400ac271
mov rcx, qword [r14 + 0x10]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, qword [0x1400f91f8]
xor edx, edx
mov r8, r14
call qword [sym.imp.kernel32.dll_HeapFree]
mov r14, rsi
mov rax, r14
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400ac2b0
ud2
mov ecx, 8
mov edx, 0x18
call fcn.1400a9bd0
ud2
Function at 0x140004fb8
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
movsxd r8, dword [0x14000003c]
lea rdi, [0x140000000]
add r8, rdi
mov r11, rdx
mov rbx, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x14000502b
mov r9d, dword [r8 + 0xf0]
xor edx, edx
test r9d, r9d
je 0x14000502b
movzx eax, word [r8 + 0x14]
lea rcx, [r8 + 0x18]
movzx r10d, word [r8 + 6]
add rcx, rax
mov r9d, dword [r9 + rdi + 0xc]
test r10d, r10d
je 0x14000502b
mov eax, dword [rcx + 0xc]
cmp r9d, eax
jb 0x140005020
mov r8d, dword [rcx + 8]
add eax, r8d
cmp r9d, eax
jb 0x140005038
inc edx
add rcx, 0x28
cmp edx, r10d
jb 0x14000500c
xor eax, eax
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
mov dword [rbx], r8d
mov eax, dword [rcx + 0x24]
mov dword [r11], eax
mov eax, dword [rcx + 0xc]
add rax, rdi
jmp 0x14000502d

Function at 0x14000944c
Capabilities:
Encode data using xor

Disassembly:
mov r8d, 8
test rcx, rcx
je 0x1400094bf
lea r9d, [r8 - 6]
movzx eax, word [rcx]
dec r9d
movzx edx, word [rcx + 2]
lea rcx, [rcx + 4]
add r8d, eax
shl edx, 0xb
mov eax, r8d
shl eax, 0x10
xor edx, eax
xor r8d, edx
mov eax, r8d
shr eax, 0xb
add r8d, eax
test r9d, r9d
jg 0x14000945b
mov eax, r8d
shl eax, 3
xor r8d, eax
mov eax, r8d
shr eax, 5
add r8d, eax
mov eax, r8d
shl eax, 4
xor r8d, eax
mov eax, r8d
shr eax, 0x11
add r8d, eax
mov eax, r8d
shl eax, 0x19
xor r8d, eax
mov eax, r8d
shr eax, 6
add eax, r8d
ret
xor eax, eax
ret

Function at 0x14000aa90
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov dword [0], 0x78
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 3
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x14000d210
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rdi, rcx
xor ebx, ebx
mov rcx, qword [rcx + 0x28]
mov rsi, r8
test rcx, rcx
je 0x14000d2ba
cmp r8, 0x7fffffff
ja 0x14000d2ba
cmp qword [rdi + 0x58], rbx
jne 0x14000d2ba
cmp byte [rdi], bl
je 0x14000d250
call fcn.14000d198
test al, al
je 0x14000d2ba
mov al, byte [rdi + 0x60]
mov rcx, qword [rdi + 0x28]
neg al
mov qword [rsp + 0x20], rsi
sbb edx, edx
xor r9d, r9d
and edx, 0xfffffffe
xor r8d, r8d
add edx, 6
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rdi + 0x58], rax
mov rsi, rax
test rax, rax
je 0x14000d2ba
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000d2a4
mov rbx, qword [rsp + 0x38]
sub rbx, rsi
add rbx, qword [rsp + 0x48]
movups xmm0, xmmword [rdi + 0x38]
mov qword [rdi + 0x50], rbx
movdqu xmmword [rdi + 0x70], xmm0
call fcn.14000d138
mov al, 1
jmp 0x14000d2bc
xor al, al
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x14000d36c
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x130
xor ebx, ebx
mov rsi, rcx
mov dword [rsp + 0x158], ebx
mov r14d, 0xffffffff
lea edi, [rbx + 0x10]
cmp rdi, r14
mov ebp, edi
mov rcx, rsi
cmova ebp, r14d
mov edx, ebp
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
setne al
test al, al
jne 0x14000d3cd
or ebx, 1
lea rdx, str.z:_build_build_src_security_sandbox_chromium_base_rand_util_win.cc
mov r8d, 0x27
lea rcx, [rsp + 0x20]
call fcn.140009bb8
test bl, 1
je 0x14000d3df
and ebx, 0xfffffffe
lea rcx, [rsp + 0x20]
call fcn.140009e04
mov eax, ebp
add rsi, rax
sub rdi, rax
jne 0x14000d396
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x14000f1c8
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov dword [0], 0x13
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 3
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x14000fb34
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x1350
call fcn.1400067d0
sub rsp, rax
mov rax, qword [0x14003a010]
xor rax, rsp
mov qword [rsp + 0x1340], rax
mov edi, dword [0x14003a044]
xor ebx, ebx
or esi, 0xffffffff
mov dword [rsp + 0x20], ebx
cmp edi, esi
jne 0x14000fc1a
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, esi
je 0x14000fb83
mov edi, eax
jmp 0x14000fb9f
mov r8d, 0x73
lea rdx, str.z:_build_build_src_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea rcx, [rsp + 0x28]
call fcn.140009bb8
mov ebx, 1
test bl, 1
je 0x14000fbb1
and ebx, 0xfffffffe
lea rcx, [rsp + 0x28]
call fcn.140009e04
cmp edi, esi
jne 0x14000fbfd
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, esi
je 0x14000fbc3
mov edi, eax
jmp 0x14000fbe0
or ebx, 2
lea rdx, str.z:_build_build_src_security_sandbox_chromium_base_threading_thread_local_storage.cc
mov r8d, 0x7d
lea rcx, [rsp + 0x130]
call fcn.140009bb8
test bl, 2
je 0x14000fbf5
and ebx, 0xfffffffd
lea rcx, [rsp + 0x130]
call fcn.140009e04
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsFree]
or eax, 0xffffffff
lock cmpxchg dword [0x14003a044], edi
cmp eax, esi
je 0x14000fc1a
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsFree]
mov edi, dword [0x14003a044]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14000fc44
or ebx, 4
lea rdx, str.z:_build_build_src_security_sandbox_chromium_base_threading_thread_local_storage.cc
mov r8d, 0x8f
lea rcx, [rsp + 0x238]
call fcn.140009bb8
test bl, 4
je 0x14000fc56
lea rcx, [rsp + 0x238]
call fcn.140009e04
mov esi, 0x1000
lea rcx, [rsp + 0x340]
mov r8d, esi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x340]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, esi
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov r8d, esi
lea rdx, [rsp + 0x340]
mov rcx, rax
mov rbx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rax, rbx
mov rcx, qword [rsp + 0x1340]
xor rcx, rsp
call fcn.1400057b0
lea r11, [rsp + 0x1350]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14000fd3c
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
mov eax, 0x2830
call fcn.1400067d0
sub rsp, rax
mov rax, qword [0x14003a010]
xor rax, rsp
mov qword [rsp + 0x2820], rax
mov rbx, rcx
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x1000
call sub.VCRUNTIME140.dll_memcpy
mov r14d, dword [0x14003a044]
lea rdx, [rsp + 0x20]
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, rbx
call qword [sym.imp.mozglue.dll_free]
call fcn.14000fcd0
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov r8d, 0x1800
lea rdx, [0x14003a960]
lea rcx, [rsp + 0x1020]
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov esi, 0x100
xor dl, dl
lea rdi, [rsp + 0x20]
lea rbx, [rsp + 0x1030]
mov ebp, 0x100
mov rcx, qword [rdi]
test rcx, rcx
je 0x14000fe0f
cmp dword [rbx - 0x10], 0
je 0x14000fe0f
mov eax, dword [rbx]
cmp dword [rdi + 8], eax
jne 0x14000fe0f
cmp qword [rbx - 8], 0
je 0x14000fe0f
and qword [rdi], 0
call qword [rbx - 8]
mov dl, 1
add rbx, 0x18
add rdi, 0x10
sub rbp, 1
jne 0x14000fdea
dec esi
test esi, esi
jle 0x14000fe27
test dl, dl
jne 0x14000fdd6
xor edx, edx
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [rsp + 0x2820]
xor rcx, rsp
call fcn.1400057b0
lea r11, [rsp + 0x2830]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x1400100e0
Capabilities:
Parse pe header

Disassembly:
mov rdx, qword [rcx + 8]
mov eax, 0x5a4d
cmp word [rdx], ax
je 0x1400100f1
xor al, al
ret
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400100ee
mov ecx, 0xf0
cmp word [rax + 0x14], cx
jne 0x1400100ee
mov ecx, 0x20b
cmp word [rax + 0x18], cx
sete al
ret
Function at 0x140012248
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.140010c9c
test al, al
je 0x140012265
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test rbx, rbx
je 0x14001227b
mov rcx, rbx
call fcn.14002b400
mov rcx, rbx
call qword [sym.imp.mozglue.dll_free]
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x140019d60
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x130
mov edi, 0x10000
mov rbx, rcx
cmp rcx, rdi
jbe 0x140019db2
lea rcx, [rax + 8]
call fcn.140019704
test rax, rax
je 0x140019db2
mov r9, rax
lea rdx, str.z:_build_build_src_security_sandbox_chromium_sandbox_win_src_interception.cc
mov r8d, 0x2b
lea rcx, [rsp + 0x20]
call fcn.140009c58
lea rcx, [rsp + 0x20]
call fcn.140009e04
sub rdi, rbx
mov edx, 4
lea rcx, [rsp + 0x148]
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
movzx edx, word [rsp + 0x148]
mov dword [rsp + 0x148], edx
cmp rdx, rdi
ja 0x140019db5
mov ecx, 0x1000
mov eax, 0x800
jmp 0x140019dee
mov rcx, rax
shr rax, 1
cmp rax, rbx
jae 0x140019de8
mov rbx, qword [rsp + 0x150]
lea rax, [rcx - 1]
not rax
and rax, rdx
add rsp, 0x130
pop rdi
ret
Function at 0x14001a2a0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x1c0
mov rax, qword [0x14003a010]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
xor esi, esi
mov rdi, rcx
mov dword [rsp + 0x30], esi
lea r13d, [rsi + 1]
test dl, dl
jne 0x14001a2e9
cmp qword [rcx + 0x10], rsi
jne 0x14001a339
xor eax, eax
jmp 0x14001a497
and dword [rsp + 0x28], esi
lea rax, [0x140032518]
mov r9d, r13d
mov qword [rsp + 0x20], rax
lea r8, str.NtMapViewOfSection
lea rdx, [0x140032570]
call fcn.140019958
lea rax, [0x1400324e8]
mov dword [rsp + 0x28], r13d
mov r9d, r13d
mov qword [rsp + 0x20], rax
lea r8, str.NtUnmapViewOfSection
mov rcx, rdi
lea rdx, [0x140032570]
call fcn.140019958
mov rax, qword [rdi]
xor edx, edx
mov r9d, 0x2000
mov dword [rsp + 0x20], r13d
mov r8d, 0x10000
mov r14, qword [rax]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbp, qword [rdi + 0x10]
mov rbx, rax
shl rbp, 6
add rbp, 0x60
mov rcx, rbp
call fcn.140019d60
mov r15, rax
mov dword [rsp + 0x20], 0x40
mov rdx, rax
lea r8, [rbp + 0xfff]
mov rax, 0xfffffffffffff000
mov r9d, 0x1000
and rdx, rax
and r8, rax
add rdx, rbx
mov rcx, r14
and r15d, 0xfff
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbx, rax
test rax, rax
jne 0x14001a3cf
mov r8d, 0x1a8
lea rdx, str.z:_build_build_src_security_sandbox_chromium_sandbox_win_src_interception.cc
lea rcx, [rsp + 0x40]
call fcn.140009bb8
mov esi, r13d
test r13b, sil
je 0x14001a3de
lea rcx, [rsp + 0x40]
call fcn.140009e04
and dword [rsp + 0x168], 0
lea rcx, [sym.firefox.exe_g_originals]
add rbx, r15
mov qword [rsp + 0x150], rbp
mov r15d, 0x148
mov esi, 0x20
mov r8d, r15d
mov qword [rsp + 0x158], rsi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea r9, [rsp + 0x150]
mov r8, rbp
mov rdx, rbx
mov rcx, rdi
call fcn.140019fa0
test eax, eax
jne 0x14001a497
lea rax, [rsp + 0x38]
mov r9d, esi
lea r8, [rsp + 0x150]
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14001a492
cmp qword [rsp + 0x38], rsi
jne 0x14001a492
lea rax, [rsp + 0x30]
mov r9d, esi
mov r8, rbp
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, qword [rdi]
lea r8, [sym.firefox.exe_g_originals]
mov r9d, r15d
lea rdx, [0x140032538]
call fcn.14002bae8
jmp 0x14001a497
mov eax, 0x2a
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1400057b0
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
Function at 0x14001bdec
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
and qword [rsp + 0x38], 0
mov r10d, r9d
mov eax, dword [rsp + 0x88]
mov r11d, r8d
mov r9d, dword [rsp + 0x70]
mov rbx, rdx
mov dword [rsp + 0x30], eax
mov rdi, rcx
mov eax, dword [rsp + 0x80]
mov r8d, r10d
mov dword [rsp + 0x28], eax
mov edx, r11d
mov eax, dword [rsp + 0x78]
mov rcx, rbx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
or rsi, 0xffffffffffffffff
mov rbx, rax
cmp rax, rsi
jne 0x14001be50
mov rax, rsi
jmp 0x14001be90
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 3
lea r9, [rsp + 0x90]
and dword [rsp + 0x28], 0
mov rcx, rax
and dword [rsp + 0x20], 0
mov r8, rdi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rcx, qword [rsp + 0x90]
test eax, eax
cmove rcx, rsi
mov rax, rcx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x1400202c0
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor eax, eax
mov edi, edx
mov qword [rcx], rax
mov rbx, rcx
mov qword [rcx + 8], rax
xor r9d, r9d
mov qword [rsp + 0x28], rax
or rcx, 0xffffffffffffffff
xor edx, edx
mov dword [rsp + 0x20], edi
mov r8d, 0x8000004
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdx, rax
mov rcx, rbx
call fcn.14000d2cc
mov rcx, qword [rbx]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140020327
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
lea edx, [r9 + 6]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 8], rax
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140024038
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rsi, qword [rsp + 0xc8]
xor edi, edi
mov qword [rax - 0x20], rsi
mov r10, r9
mov rax, qword [rsp + 0xc0]
mov r11, r8
mov qword [rsp + 0x40], rax
mov ebp, edx
mov rax, qword [rsp + 0xb8]
mov r15, rcx
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov rdx, r10
mov rcx, r11
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1400240ad
xor eax, eax
jmp 0x14002413d
mov eax, ebp
neg eax
sbb ebx, ebx
and ebx, 0xfe3fe
add ebx, 0x101c01
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rsi]
mov r9, rsi
mov dword [rsp + 0x30], 1
mov rcx, rax
mov dword [rsp + 0x28], edi
mov r8, r15
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
lea r14, [rsi + 8]
mov rsi, qword [r14]
test eax, eax
jne 0x1400240fd
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400240a6
neg ebp
sbb ebx, ebx
and ebx, 0xff3bc
add ebx, 0x100c43
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 1
mov r9, r14
mov rcx, rax
mov dword [rsp + 0x28], edi
mov r8, r15
mov dword [rsp + 0x20], ebx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
setne dil
mov eax, edi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x140024254
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
and qword [rsp + 0x30], 0
mov rbx, rcx
mov eax, dword [rsp + 0x70]
mov rcx, qword [rcx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r9
mov r9, r8
mov r8, rdx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rdi, rax
test rax, rax
jne 0x140024295
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400242cd
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9, qword [rsp + 0x80]
mov rdx, rdi
mov r8, qword [rbx]
mov rcx, rax
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
neg eax
sbb eax, eax
not eax
and eax, 5
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140026038
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x14003a010]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor edi, edi
mov r13, rdx
mov r14, rcx
cmp byte [rcx + 0x54], dil
jne 0x140026079
mov eax, 0x3f0
jmp 0x140026150
lea rdx, [rcx + 0x48]
mov r8d, 2
lea rcx, [rsp + 0x28]
lea r9, [rsp + 0x20]
call fcn.140026a14
mov rbx, qword [rsp + 0x28]
test rbx, rbx
jne 0x1400260a5
mov edi, dword [rsp + 0x20]
jmp 0x14002614e
mov esi, edi
cmp dword [rbx], edi
jbe 0x140026145
mov ebp, esi
add rbp, rbp
test dword [rbx + rbp*8 + 0x10], 0xc0000020
jne 0x14002613b
mov r12b, dil
test r13, r13
je 0x140026113
mov r15d, edi
mov rcx, qword [r13 + 8]
movabs rax, 0x7878787878787879
sub rcx, qword [r13]
imul rcx
mov r8d, r15d
sar rdx, 5
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r8, rdx
jae 0x140026113
mov rdx, qword [rbx + rbp*8 + 8]
imul rcx, r8, 0x44
add rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x140026110
inc r15d
jmp 0x1400260c9
mov r12b, 1
test r12b, r12b
jne 0x14002613b
mov r8, qword [rbx + rbp*8 + 8]
lea rdx, [rsp + 0x30]
mov ecx, 0x44
call qword [sym.imp.ADVAPI32.dll_CopySid]
lea rcx, [r14 + 0x30]
lea rdx, [rsp + 0x30]
call fcn.140025d90
inc esi
cmp esi, dword [rbx]
jb 0x1400260af
mov rcx, rbx
call qword [sym.imp.mozglue.dll_free]
mov eax, edi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400057b0
mov rbx, qword [rsp + 0xe0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002b400
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140010c9c
test al, al
je 0x14002b437
mov rcx, qword [rcx]
mov edx, 0x32
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rdi]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rsi, qword [rdi + 0x38]
and qword [rdi + 0x38], 0
test rsi, rsi
je 0x14002b48d
mov rcx, qword [rsi + 0x18]
mov rdx, rsi
mov rax, qword [rcx]
call qword [rax + 8]
test al, al
je 0x14002b46d
lea rcx, [rsi + 8]
call fcn.140029f44
mov rcx, qword [rsi]
test rcx, rcx
je 0x14002b46d
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea rcx, [rsi + 8]
call fcn.140029f44
mov rcx, qword [rsi + 8]
mov edx, 0x18
call fcn.140005a90
mov rcx, rsi
call qword [sym.imp.mozglue.dll_free]
mov rcx, qword [rdi + 0x50]
test rcx, rcx
je 0x14002b49c
call qword [sym.imp.mozglue.dll_free]
mov rsi, qword [rdi + 0x38]
test rsi, rsi
je 0x14002b4ed
mov rcx, qword [rsi + 0x18]
mov rdx, rsi
mov rax, qword [rcx]
call qword [rax + 8]
test al, al
je 0x14002b4cd
lea rcx, [rsi + 8]
call fcn.140029f44
mov rcx, qword [rsi]
test rcx, rcx
je 0x14002b4cd
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea rcx, [rsi + 8]
call fcn.140029f44
mov rcx, qword [rsi + 8]
mov edx, 0x18
call fcn.140005a90
mov rcx, rsi
call qword [sym.imp.mozglue.dll_free]
lea rcx, [rdi + 0x28]
call fcn.140001760
lea rcx, [rdi + 0x20]
call fcn.140001760
lea rcx, [rdi + 0x18]
call fcn.140001760
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140010b74
Function at 0x14002cd24
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x178]
sub rsp, 0x260
mov rax, qword [0x14003a010]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov rbx, rcx
call fcn.14002cc84
xor r15d, r15d
test al, al
je 0x14002cd70
mov eax, 0x1126
jmp 0x14002cf07
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x30], r15
mov rcx, rbx
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], r15w
call fcn.14002cba4
lea rcx, [rsp + 0x20]
mov r14b, al
call fcn.14002d508
lea rdx, [rsp + 0x20]
mov bl, al
lea rcx, [rsp + 0x20]
call fcn.14002cac4
or rdi, 0xffffffffffffffff
mov sil, al
test bl, bl
jne 0x14002cde9
test al, al
jne 0x14002cdcb
test r14b, r14b
jne 0x14002cdcb
lea ebx, [rdi + 0x7c]
jmp 0x14002cefb
lea r8, str.._
mov r9, rdi
inc r9
cmp word [r8 + r9*2], r15w
jne 0x14002cdd5
lea rcx, [rsp + 0x20]
call fcn.140016894
cmp qword [rsp + 0x38], 8
lea rcx, [rsp + 0x20]
mov r8d, 0x104
lea rdx, [rsp + 0x40]
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
jne 0x14002ce25
neg sil
mov ebx, 0x7b
sbb eax, eax
and eax, 0x10ab
add ebx, eax
jmp 0x14002cefb
lea rax, [rsp + 0x40]
inc rdi
cmp word [rax + rdi*2], r15w
jne 0x14002ce2a
dec rdi
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
lea rdx, [rsp + 0x40]
mov r8, rdi
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
mov ebx, 0x7b
test eax, eax
jne 0x14002cefb
cmp qword [rsp + 0x38], 8
lea rcx, [rsp + 0x20]
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14002ce95
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 1]
cmp ecx, 2
jbe 0x14002ce9b
cmp eax, ebx
je 0x14002ce9b
mov ebx, eax
jmp 0x14002cefb
bt eax, 0xa
jb 0x14002cef8
cmp qword [rsp + 0x38], 8
lea rcx, [rsp + 0x20]
mov r9, qword [rsp + 0x30]
cmovae rcx, qword [rsp + 0x20]
mov rdx, r9
call fcn.14000b16c
lea rcx, [rsp + 0x20]
cmp rax, r9
ja 0x14002cedb
cmp qword [rsp + 0x38], 8
mov qword [rsp + 0x30], rax
cmovae rcx, qword [rsp + 0x20]
mov word [rcx + rax*2], r15w
jmp 0x14002cee6
sub rax, r9
mov rdx, rax
call fcn.14000e314
cmp qword [rsp + 0x30], rdi
ja 0x14002ce63
mov ebx, 0x1126
jmp 0x14002cefb
mov ebx, r15d
lea rcx, [rsp + 0x20]
call fcn.140004bb0
mov eax, ebx
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.1400057b0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret