joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013b40
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400c86c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140013b60
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140013b68
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140013b60
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140013bbd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140013bb4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140013b60
add rax, 0x28
cmp rax, r9
jne 0x140013ba0
xor eax, eax
ret

Function at 0x140013bc0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c86c0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140013bdf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140013be8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140013bdf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140013c80
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c86c0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140013c9f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140013ca8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140081550
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x140081598
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14008156a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400bc050
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400c11a0]
jmp 0x140014990

Function at 0x1400bc060
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400c11a0]
jmp 0x140014990
Function at 0x14000631c
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140010960], rbx
je 0x140006383
cmp rax, rbx
jne 0x140006376
mov ebx, 1
mov esi, ebx
jmp 0x140006388
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14000635b
mov ebx, 1
mov eax, dword [0x140010968]
cmp eax, ebx
jne 0x1400063a0
mov edi, 0x1f
mov ecx, edi
call fcn.140164000
jmp 0x14000640c
mov eax, dword [0x140010968]
test eax, eax
jne 0x140006401
mov dword [0x140010968], ebx
lea r15, [0x1400089c8]
lea rdi, [0x1400089b0]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x1400063f3
test eax, eax
jne 0x1400063f7
cmp qword [rdi], r14
je 0x1400063e8
mov rax, qword [rdi]
mov rcx, qword [0x140008930]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x1400063ca
test eax, eax
je 0x140006407
mov eax, 0xff
jmp 0x140006562
mov dword [0x14000e3e4], ebx
mov edi, 0x1f
mov eax, dword [0x140010968]
cmp eax, ebx
jne 0x140006433
lea rdx, [0x1400089a8]
lea rcx, [0x140008938]
call sub.msvcrt.dll__initterm
mov dword [0x140010968], 2
test esi, esi
jne 0x140006441
mov rax, r14
xchg qword [0x140010960], rax
cmp qword [0x140010970], r14
je 0x140006474
lea rcx, [0x140010970]
call fcn.140006730
test eax, eax
je 0x140006474
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140010970]
mov r9, qword [0x140008930]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14000648d
mov eax, 0xff
jmp 0x140006562
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x140006513
test ax, ax
je 0x1400064a8
test edx, edx
jne 0x140006513
sub ax, bx
cmp ax, di
ja 0x1400064be
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x1400064a8
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140001394
mov dword [0x14000e3e0], eax
cmp dword [0x14000e400], r14d
jne 0x1400064fc
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000e3e4], r14d
jne 0x140006511
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000e3e0]
jmp 0x140006562
cmp ax, 0x22
jne 0x140006527
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x140006496
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.1400067b0
add rsp, 0x28
jmp 0x14000631c
Function at 0x140001520
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
test r8, r8
je 0x140001552
mov rbx, rcx
mov rax, qword [rcx + 8]
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx + 0x84], 0
je 0x140001552
cmp word [rax + rcx + 0x14], 0x78
jae 0x140001559
xor eax, eax
jmp 0x14000165e
mov rsi, r8
mov rdi, rdx
mov edx, dword [rax + rcx + 0x88]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [case.0x14001c9ee.0]
test rax, rax
je 0x140001552
cmp rdi, 0xffff
mov qword [rsp + 0x20], rsi
jbe 0x140001654
mov r12, rax
mov edx, dword [rax + 0x20]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [case.0x14001c9ee.0]
mov r15, rax
mov eax, dword [r12 + 0x18]
test rax, rax
je 0x140001552
lea r14, [r15 + rax*4]
lea r13, [rdi + 1]
mov rbp, r15
mov rsi, r14
sub rsi, rbp
mov rax, rsi
sar rax, 2
shr rsi, 0x3f
add rsi, rax
and rsi, 0xfffffffffffffffe
mov edx, dword [rbp + rsi*2]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [case.0x14001c9ee.0]
mov cl, byte [rdi]
test cl, cl
je 0x140001600
mov rdx, r13
cmp cl, byte [rax]
jne 0x140001602
inc rax
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x1400015f0
xor ecx, ecx
lea rsi, [rsi*2]
add rsi, rbp
movzx eax, byte [rax]
cmp cl, al
je 0x14000162f
movzx ecx, cl
lea rdx, [rsi + 4]
cmp ecx, eax
cmovg rbp, rdx
cmovs r14, rsi
cmp rbp, r14
jne 0x1400015bb
jmp 0x140001552
mov edx, dword [r12 + 0x24]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [case.0x14001c9ee.0]
sub rsi, r15
sar rsi, 1
movzx edi, word [rax + rsi]
add di, word [r12 + 0x10]
mov rax, qword [rsp + 0x20]
mov word [rax], di
mov al, 1
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140002990
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
call fcn.140008820
test al, al
je 0x1400029c5
mov rcx, qword [rsi]
mov edx, 0x32
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsi]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rdi, qword [rsi + 0x38]
mov qword [rsi + 0x38], 0
test rdi, rdi
je 0x1400029e6
mov rcx, rdi
call fcn.140002bf0
mov rcx, rdi
call fcn.140039970
mov rcx, qword [rsi + 0x58]
test rcx, rcx
jne 0x140002a4f
mov rcx, qword [rsi + 0x50]
test rcx, rcx
je 0x1400029fe
call qword [sym.imp.mozglue.dll_free]
mov rdi, qword [rsi + 0x38]
test rdi, rdi
jne 0x140002ba8
mov rax, qword [rsi + 0x28]
inc rax
cmp rax, 2
jae 0x140002a7f
mov rax, qword [rsi + 0x20]
inc rax
cmp rax, 2
jae 0x140002ae2
mov rax, qword [rsi + 0x18]
inc rax
cmp rax, 2
jae 0x140002b45
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp fcn.140006f10
mov rdx, qword [rsi + 0x68]
sub rdx, rcx
cmp rdx, 0x1000
jae 0x140002bbd
lea rdi, [rsi + 0x58]
call sub.mozglue.dll_void___cdecl_operator_delete_void____ptr64__unsigned_long_long_unsigned___int64__
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
jmp 0x1400029ef
lea rdi, [rsi + 0x28]
call fcn.140009840
mov r12, rax
mov r14, qword [rsp + 0x58]
mov r15, qword [rdi]
call fcn.140009850
mov rcx, qword [rax]
mov rbx, qword [rcx + 0x10]
mov qword [rsp + 0x20], r12
mov rcx, rax
mov rdx, r15
mov r8, rdi
mov r9, r14
mov rax, rbx
call qword [case.0x14001c9ee.0]
mov r14, qword [rdi]
call fcn.140009850
mov rcx, qword [rax]
mov rbx, qword [rcx]
mov rcx, rax
mov rdx, r14
mov rax, rbx
call qword [case.0x14001c9ee.0]
mov qword [rdi], 0
jmp 0x140002a18
lea rdi, [rsi + 0x20]
call fcn.140009840
mov r12, rax
mov r14, qword [rsp + 0x58]
mov r15, qword [rdi]
call fcn.140009850
mov rcx, qword [rax]
mov rbx, qword [rcx + 0x10]
mov qword [rsp + 0x20], r12
mov rcx, rax
mov rdx, r15
mov r8, rdi
mov r9, r14
mov rax, rbx
call qword [case.0x14001c9ee.0]
mov r14, qword [rdi]
call fcn.140009850
mov rcx, qword [rax]
mov rbx, qword [rcx]
mov rcx, rax
mov rdx, r14
mov rax, rbx
call qword [case.0x14001c9ee.0]
mov qword [rdi], 0
jmp 0x140002a29
lea rdi, [rsi + 0x18]
call fcn.140009840
mov r12, rax
mov r14, qword [rsp + 0x58]
mov r15, qword [rdi]
call fcn.140009850
mov rcx, qword [rax]
mov rbx, qword [rcx + 0x10]
mov qword [rsp + 0x20], r12
mov rcx, rax
mov rdx, r15
mov r8, rdi
mov r9, r14
mov rax, rbx
call qword [case.0x14001c9ee.0]
mov r14, qword [rdi]
call fcn.140009850
mov rcx, qword [rax]
mov rbx, qword [rcx]
mov rcx, rax
mov rdx, r14
mov rax, rbx
call qword [case.0x14001c9ee.0]
mov qword [rdi], 0
jmp 0x140002a3a
mov rcx, rdi
call fcn.140002bf0
mov rcx, rdi
call fcn.140039970
jmp 0x140002a0b
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
jae 0x140002bda
add rdx, 0x27
mov rcx, rax
jmp 0x140002a63
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140003040
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x150
mov r14, rdx
mov r15, rcx
mov rax, qword [0x140043010]
xor rax, rsp
mov qword [rsp + 0x148], rax
mov ecx, dword [0x140043038]
cmp ecx, 0xffffffff
je 0x14000307b
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140003080
call fcn.1400032b0
mov eax, dword [0x140044a88]
mov ecx, dword [0x1400431a8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x1400030da
lea rcx, [0x140044a88]
call fcn.14001c180
cmp dword [0x140044a88], 0xffffffff
jne 0x1400030da
mov ecx, 8
call sub.mozglue.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov qword [rax], 0
mov qword [0x140044a80], rax
lea rcx, [0x140044a88]
call fcn.14001c120
mov rbx, qword [0x140044a80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov rax, qword [0x140043270]
inc rax
xor ecx, ecx
lea rdx, [0x140043280]
lea edi, [rax + rcx]
movzx edi, dil
lea rsi, [rdi + rdi*2]
cmp dword [rdx + rsi*8], 0
jne 0x140003180
lea rax, [rdx + rsi*8]
mov dword [rax], 1
mov qword [rax + 8], r14
mov qword [0x140043270], rdi
mov dword [r15], edi
mov eax, dword [rax + 0x10]
mov dword [r15 + 4], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [r15]
mov dword [rsp + 0x30], 0xffffffff
mov dword [rsp + 0x2c], eax
cmp eax, 0xffffffff
je 0x140003192
mov eax, dword [r15]
mov dword [rsp + 0x30], 0x100
mov dword [rsp + 0x2c], eax
cmp eax, 0xff
jg 0x1400031d7
mov rcx, qword [rsp + 0x148]
xor rcx, rsp
call fcn.14001d520
nop
add rsp, 0x150
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
inc rcx
cmp rcx, 0x100
jne 0x1400030fd
jmp 0x14000312d
lea r8, str.slot____kInvalidSlotValue
lea rcx, [rsp + 0x2c]
lea rdx, [rsp + 0x30]
call fcn.140020ad0
test rax, rax
je 0x14000314a
lea rdx, str._builds_worker_checkouts_gecko_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 0x196
mov r9, rax
call fcn.140020870
mov rcx, rdi
call fcn.1400208e0
jmp 0x14000314a
lea r8, str.slot____kThreadLocalStorageSize
lea rcx, [rsp + 0x2c]
lea rdx, [rsp + 0x30]
call fcn.140020ad0
test rax, rax
je 0x140003160
lea rdx, str._builds_worker_checkouts_gecko_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x197
mov r9, rax
call fcn.140020870
mov rcx, rsi
call fcn.1400208e0
jmp 0x140003160
Function at 0x140007e40
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x140
mov rax, qword [0x140043010]
xor rax, rsp
mov qword [rsp + 0x138], rax
test rdx, rdx
je 0x140007e93
mov rsi, rdx
mov rdi, rcx
mov r15d, 0xffffffff
cmp rsi, r15
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x140007eb3
add rdi, rbx
sub rsi, rbx
jne 0x140007e71
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.14001d520
nop
add rsp, 0x140
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rdx, str._builds_worker_checkouts_gecko_security_sandbox_chromium_base_rand_util_win.cc
lea r9, str.success
lea r14, [rsp + 0x20]
mov rcx, r14
mov r8d, 0x20
call fcn.140020820
mov rcx, r14
call fcn.1400208e0
jmp 0x140007e8b
Function at 0x140009740
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
cmp qword [rcx], rdx
je 0x14000982d
mov r15, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13d, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400097ce
lea rax, [r15 + 1]
cmp rax, 2
jb case.default.0x1400097c7
mov qword [rsi], r15
call fcn.140009840
mov rbx, rax
mov rbp, qword [rsp + 0x68]
call fcn.140009850
mov rcx, qword [rax]
mov rdi, qword [rcx + 8]
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov rdx, r15
mov r8, rsi
mov r9, rbp
mov rax, rdi
call qword [case.0x14001c9ee.0]
mov ecx, r13d
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.140009840
mov r14, rax
mov rdi, qword [rsp + 0x68]
mov r12, qword [rsi]
call fcn.140009850
mov rcx, qword [rax]
mov r10, qword [rcx + 0x10]
mov qword [rsp + 0x20], r14
mov rcx, rax
mov rdx, r12
mov r8, rsi
mov r9, rdi
mov rax, r10
call qword [case.0x14001c9ee.0]
mov r14, qword [rsi]
call fcn.140009850
mov rcx, qword [rax]
mov r8, qword [rcx]
mov rcx, rax
mov rdx, r14
mov rax, r8
call qword [case.0x14001c9ee.0]
mov qword [rsi], 0
jmp 0x140009774
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
not bl
xor dl, byte [rcx]
and eax, 0x16e674c8
rcl byte [rax]
insb byte [rdi], dx
invalid
out 0x4c, eax
invalid
sub eax, 0xd6266738
sti
jge 0x14007f830
invalid
lea edx, [rax + 0x17c1abe6]
invalid
Function at 0x14000cb00
Capabilities:
Compare security identifiers

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
movaps xmmword [rsp + 0x80], xmm6
mov rax, qword [0x140043010]
xor rax, rsp
mov qword [rsp + 0x78], rax
cmp byte [rcx + 0x6c], 0
je 0x14000cc6c
mov rdi, rdx
mov rbx, rcx
lea rsi, [rsp + 0x30]
mov qword [rsi], 0
mov rcx, qword [rcx + 0x60]
mov edx, 2
mov r8, rsi
call fcn.14000cef0
mov rsi, qword [rsi]
test eax, eax
jne 0x14000cc76
mov dword [rsp + 0x24], 0
test rsi, rsi
je 0x14000cc87
cmp dword [rsi], 0
je 0x14000cc7f
lea rax, [rbx + 0x30]
mov qword [rsp + 0x28], rax
xor ebp, ebp
xorps xmm6, xmm6
lea r12, [rsp + 0x30]
mov r14, qword [sym.imp.ADVAPI32.dll_EqualSid]
mov rax, rbp
shl rax, 4
test dword [rsi + rax + 0x10], 0xc0000020
jne 0x14000cc47
lea r15, [rsi + rax]
add r15, 8
test rdi, rdi
je 0x14000cc00
mov rax, qword [rdi]
cmp qword [rdi + 8], rax
je 0x14000cc00
xor r13d, r13d
mov rdx, qword [r15]
mov rcx, r13
shl rcx, 6
lea rcx, [rcx + r13*4]
add rcx, rax
call r14
test eax, eax
jne 0x14000cc47
inc r13d
mov rax, qword [rdi]
mov rcx, qword [rdi + 8]
sub rcx, rax
sar rcx, 2
movabs rdx, 0xf0f0f0f0f0f0f0f1
imul rcx, rdx
cmp rcx, r13
ja 0x14000cbc4
mov r8, qword [r15]
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x70], 0
mov ecx, 0x44
mov rdx, r12
call qword [sym.imp.ADVAPI32.dll_CopySid]
mov rcx, qword [rbx + 0x38]
mov rdx, qword [rbx + 0x40]
cmp rdx, rcx
jne 0x14000cc57
mov rcx, qword [rsp + 0x28]
mov r8, r12
call fcn.14000ccc0
inc rbp
mov eax, dword [rsi]
cmp rbp, rax
jb 0x14000cb96
jmp 0x14000cc7f
mov r8d, 0x44
mov rdx, r12
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx + 0x38], 0x44
jmp 0x14000cc47
mov dword [rsp + 0x24], 0x3f0
jmp 0x14000cc87
mov dword [rsp + 0x24], eax
test rsi, rsi
je 0x14000cc87
mov rcx, rsi
call sub.mozglue.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14001d520
mov eax, dword [rsp + 0x24]
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14000ecc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rsi, r9
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov r9d, dword [rsp + 0xa0]
mov rax, qword [0x140043010]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea r15, [rsp + 0x34]
mov qword [rsp + 0x20], r15
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x14000ed74
lea r12, [rsp + 0x28]
mov qword [rsp + 0x20], r12
mov rcx, rbx
mov rdx, rdi
mov r8, r14
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ebp, eax
mov r14, qword [r12]
mov r9d, dword [rsp + 0x34]
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x14000ed74
test ebp, ebp
setne al
cmp r14, rsi
sete sil
and sil, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14001d520
mov eax, esi
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor esi, esi
jmp 0x14000ed56

Function at 0x1400110f0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x140043038]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14001112e
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 0x140011127
call fcn.1400032b0
jmp 0x14001110e
Function at 0x1400157c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov r14, r9
mov rbx, r8
mov rsi, rcx
mov rax, qword [0x140043010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov qword [rcx], rdx
mov qword [rcx + 0x10], 0
mov qword [rcx + 0x18], 2
lea rax, [rcx + 0x20]
mov qword [rcx + 8], rax
mov eax, dword [0x140044f50]
mov ecx, dword [0x1400431a8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400158db
mov r12d, dword [0x140044f4c]
lea rax, [rbx + r14]
dec rax
xor edx, edx
div r12
mov rcx, rax
mov rax, rbx
xor edx, edx
div r12
inc rcx
sub rcx, rax
je 0x1400158ba
mov rbx, rax
lea r14, [rsi + 8]
imul rbx, r12
cmp rcx, 2
mov edi, 1
cmovae rdi, rcx
lea r15, [rsp + 0x20]
mov r13, qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, rbx
mov rdx, r12
mov r8d, 0x40
mov r9, r15
call r13
test eax, eax
je 0x14001591c
mov ebp, dword [rsp + 0x20]
mov rax, qword [rsi + 0x10]
cmp rax, qword [rsi + 0x18]
je 0x14001592e
mov rcx, qword [rsi + 8]
shl rax, 4
mov dword [rcx + rax], ebp
mov qword [rcx + rax + 8], rbx
inc qword [rsi + 0x10]
add rbx, r12
dec rdi
jne 0x140015872
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14001d520
mov rax, rsi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x140044f50]
call fcn.14001c180
cmp dword [0x140044f50], 0xffffffff
jne 0x140015828
lea rdi, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rdi + 4]
mov dword [0x140044f4c], eax
lea rcx, [0x140044f50]
call fcn.14001c120
jmp 0x140015828
mov dword [rsp + 0x20], 0
mov rcx, rsi
call fcn.140039530
jmp 0x1400158ba
mov rcx, r14
call fcn.140039620
test al, al
je 0x140015924
mov rax, qword [rsi + 0x10]
jmp 0x14001589e
Function at 0x140015b30
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rsi, rdx
mov rax, qword [0x140043010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword [rcx + 8]
test rax, rax
je 0x140015d4b
mov rdi, rcx
mov ebp, dword [rcx + 0x18]
shl ebp, 7
mov edx, ebp
or edx, 0x7f
mov ecx, dword [rcx + 0x14]
cmp edx, ecx
jb 0x140015bf8
cmp ecx, dword [rdi + 0x10]
jae 0x140015d4b
mov eax, dword [0x140044f50]
mov ecx, dword [0x1400431a8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140015cc9
mov edx, dword [0x140044f4c]
mov ecx, dword [rdi + 0x14]
add rcx, qword [rdi + 8]
mov r8d, 0x1000
mov r9d, 0x20
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x140015d4b
mov eax, dword [0x140044f50]
mov ecx, dword [0x1400431a8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140015d0a
mov eax, dword [0x140044f4c]
add dword [rdi + 0x14], eax
mov rax, qword [rdi + 8]
mov ecx, ebp
add rcx, rax
lea r9, [rsp + 0x30]
mov qword [r9 - 8], rdi
mov dword [r9], 0
mov qword [r9 + 8], rcx
mov qword [r9 + 0x10], rcx
xorps xmm0, xmm0
movups xmmword [r9 + 0x18], xmm0
mov dword [r9 + 0x28], 0x80
mov byte [r9 + 0x2c], 1
mov edx, 0x80
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140015d62
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x140015d6f
mov rdx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov ebx, dword [rsp + 0x30]
mov al, byte [rsp + 0x5c]
test rdx, rdx
je 0x140015c78
test rbp, rbp
je 0x140015c78
test ebx, ebx
je 0x140015c78
test al, al
je 0x140015c78
inc dword [rdi + 0x18]
mov qword [rsi], rcx
mov dword [rsi + 8], ebx
mov qword [rsi + 0x10], rdx
mov qword [rsi + 0x18], rbp
mov ecx, dword [rsp + 0x48]
mov dword [rsi + 0x20], ecx
mov ecx, dword [rsp + 0x4c]
mov dword [rsi + 0x24], ecx
mov ecx, dword [rsp + 0x50]
mov dword [rsi + 0x28], ecx
mov ecx, dword [rsp + 0x54]
mov dword [rsi + 0x2c], ecx
mov ecx, dword [rsp + 0x58]
mov dword [rsi + 0x30], ecx
mov byte [rsi + 0x34], al
mov byte [rsi + 0x38], 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14001d520
mov rax, rsi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x140044f50]
call fcn.14001c180
cmp dword [0x140044f50], 0xffffffff
jne 0x140015b9e
lea rbx, [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbx + 4]
mov dword [0x140044f4c], eax
lea rcx, [0x140044f50]
call fcn.14001c120
jmp 0x140015b9e
lea rcx, [0x140044f50]
call fcn.14001c180
cmp dword [0x140044f50], 0xffffffff
jne 0x140015beb
lea rbx, [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbx + 4]
mov dword [0x140044f4c], eax
lea rcx, [0x140044f50]
call fcn.14001c120
jmp 0x140015beb
xorps xmm0, xmm0
movups xmmword [rsi + 0x30], xmm0
movups xmmword [rsi + 0x20], xmm0
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi], xmm0
jmp 0x140015cb0
mov dword [rsp + 0x30], 0
jmp 0x140015c43
mov ebx, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov al, byte [rsp + 0x5c]
jmp 0x140015c75