joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001b220
Capabilities:
Create pipe

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rbx, qword [rsp + 0xb8]
mov rax, qword [0x140040010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [rbx], 0xffffffffffffffff
mov esi, 5
cmp ecx, 3
jne 0x14001b303
mov eax, dword [rsp + 0xb0]
mov edi, dword [rsp + 0xa8]
mov ecx, dword [rsp + 0xa0]
mov r10d, dword [rsp + 0x98]
mov r11d, dword [rsp + 0x90]
cmp qword [r8 + 0x18], 7
jbe 0x14001b282
mov r8, qword [r8]
mov rsi, qword [rdx]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], ecx
mov qword [rsp + 0x38], 0
mov rcx, r8
mov edx, r9d
mov r8d, r11d
mov r9d, r10d
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp rax, 0xffffffffffffffff
je 0x14001b31a
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, rax
mov rdx, rdi
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
cmp eax, 1
sbb rcx, rcx
or rcx, qword [rsp + 0x40]
mov qword [rbx], rcx
xor eax, eax
cmp rcx, 0xffffffffffffffff
sete al
lea esi, [rax + rax*4]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140036e40
mov eax, esi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
mov rcx, 0xffffffffffffffff
jmp 0x14001b2f4
Function at 0x1400203c0
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xc0
mov rax, qword [0x140040010]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov ebx, 0xc000000d
test r9d, r9d
jne 0x140020408
mov rdi, r8
mov rsi, rdx
call fcn.14002e550
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
mov ebx, 0xc0000022
cmp dword [rax], 2
jge 0x140020429
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140036e40
mov eax, ebx
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140028610
test al, al
je 0x140020408
mov r15, qword [0x140041e98]
test r15, r15
je 0x140020408
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x1000
mov rcx, 0xffffffffffffffff
xor edx, edx
mov r8d, 0x8000004
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
lea rcx, [rsp + 0x50]
mov rdx, rax
call fcn.140006b50
mov r14, qword [rsp + 0x50]
lea rax, [r14 + 1]
cmp rax, 2
jb 0x1400204b2
mov qword [rsp + 0x20], 0x1000
mov rcx, r14
mov edx, 6
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x58], rax
mov r14, qword [rsp + 0x50]
mov ebx, 0xc000000d
lea rax, [r14 + 1]
cmp rax, 2
jae 0x1400204e0
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400204d1
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea rcx, [rsp + 0x50]
call fcn.140006be0
jmp 0x140020408
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400204c1
mov r8d, 0x1000
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
xorps xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0x40], r15
add r15, qword [r15 + 0x10]
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x40]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x38]
mov edx, 0x1e
call fcn.140020580
mov ebx, 0xc0000022
test eax, eax
jne 0x1400204c1
mov ebx, dword [rsp + 0x68]
jmp 0x1400204c1
Function at 0x140020640
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov rsi, r9
mov rbx, r8
mov rdi, rdx
mov rax, qword [0x140040010]
xor rax, rsp
mov qword [rsp + 0xc0], rax
call fcn.14002e550
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
mov ebp, 0xc0000022
cmp dword [rax], 2
jge 0x1400206a4
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140036e40
mov eax, ebp
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140028610
test al, al
je 0x140020682
mov r15, qword [0x140041e98]
test r15, r15
je 0x140020682
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x1010
mov rcx, 0xffffffffffffffff
xor edx, edx
mov r8d, 0x8000004
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
lea rcx, [rsp + 0x50]
mov rdx, rax
call fcn.140006b50
mov r14, qword [rsp + 0x50]
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14002072d
mov qword [rsp + 0x20], 0x1010
mov rcx, r14
mov edx, 6
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x58], rax
mov r14, qword [rsp + 0x50]
mov ebp, 0xc000000d
lea rax, [r14 + 1]
cmp rax, 2
jae 0x14002075b
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14002074c
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea rcx, [rsp + 0x50]
call fcn.140006be0
jmp 0x140020682
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14002073c
mov r8d, 0x1010
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
xorps xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0x40], r15
add r15, qword [r15 + 0x10]
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], rdi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x40]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x38]
mov edx, 0x1f
call fcn.140020580
mov ebp, 0xc0000022
test eax, eax
jne 0x14002073c
mov ebp, dword [rsp + 0x68]
test ebp, ebp
jne 0x14002073c
mov rdx, qword [rsp + 0x58]
mov r8d, 0x1000
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
xor ebp, ebp
jmp 0x14002073c
Function at 0x140024560
Capabilities:
Create process on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov edi, ecx
mov rax, qword [0x140040010]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea eax, [rdi - 5]
mov ebp, 5
cmp eax, 1
jbe 0x1400245ba
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140036e40
mov eax, ebp
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rsi, r8
mov r15, rdx
mov rbp, qword [rsp + 0x130]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0xb0], 0
mov dword [rsp + 0x50], 0x68
cmp qword [r9 + 0x18], 7
jbe 0x140024610
mov r9, qword [r9]
mov rcx, r9
call qword [sym.imp.mozglue.dll__wcsdup]
mov r14, rax
mov rax, qword [rbp + 0x10]
cmp qword [rbp + 0x18], 7
jbe 0x14002462b
mov rbp, qword [rbp]
mov rbx, qword [rsp + 0x138]
test rax, rax
cmove rbp, rax
cmp qword [rsi + 0x18], 7
jbe 0x140024644
mov rsi, qword [rsi]
mov r15, qword [r15]
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rsi
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebp, 5
test eax, eax
je 0x140024722
cmp edi, 6
mov r12d, 0x1fffff
mov esi, 0x101c01
cmove esi, r12d
mov r13, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x20], esi
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0
mov rcx, rax
mov rdx, r13
mov r8, r15
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rsi, qword [rbx + 8]
test eax, eax
je 0x140024739
add rbx, 8
cmp edi, 6
mov edi, 0x100c43
cmove edi, r12d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0
mov rcx, rax
mov rdx, rsi
mov r8, r15
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea ebp, [rcx + rcx*4]
test r14, r14
je 0x140024594
mov rcx, r14
call qword [sym.imp.mozglue.dll_free]
jmp 0x140024594
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14, r14
jne 0x14002472b
jmp 0x140024594
Function at 0x140024750
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rax, r8
mov r8, rdx
mov rdi, rcx
mov rsi, qword [rsp + 0x90]
mov edx, dword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
mov qword [rsi], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], r9
xor edx, edx
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
je 0x1400247e7
mov rbx, rax
mov rdi, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
mov rdx, rbx
mov r8, rdi
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea eax, [rcx + rcx*4]
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
add rsp, 0x40
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x140026630
Capabilities:
Compare security identifiers

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov rax, qword [0x140040010]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp byte [rcx + 0x54], 0
je 0x1400266a2
mov rsi, rdx
mov r12, rcx
lea rdx, [rcx + 0x48]
lea rcx, [rsp + 0x28]
lea r9, [rsp + 0x34]
mov r8d, 2
call fcn.1400267f0
mov r13, qword [rsp + 0x28]
test r13, r13
je 0x1400266ac
cmp dword [r13], 0
je 0x1400267b8
lea rbx, [r13 + 8]
xor r14d, r14d
lea rax, [r12 + 0x30]
mov qword [rsp + 0x20], rax
jmp 0x1400266e1
mov esi, 0x3f0
jmp 0x1400267c2
mov esi, dword [rsp + 0x34]
jmp 0x1400267c2
mov rcx, qword [rsp + 0x20]
lea r8, [rsp + 0x38]
call fcn.14000e970
nop word cs:[rax + rax]
nop
add r14, 1
mov eax, dword [r13]
cmp r14, rax
jae 0x1400267b8
mov rbp, r14
shl rbp, 4
test dword [rbx + rbp + 8], 0xc0000020
jne 0x1400266d0
add rbp, rbx
test rsi, rsi
je 0x140026703
mov rax, qword [rsi]
cmp qword [rsi + 8], rax
jne 0x140026755
mov rdx, qword [rbp]
lea rcx, [rsp + 0x38]
call fcn.14002be70
mov rax, qword [r12 + 0x38]
mov rdx, qword [r12 + 0x40]
cmp rdx, rax
je 0x1400266b5
mov ecx, dword [rsp + 0x78]
mov dword [rax + 0x40], ecx
movups xmm0, xmmword [rsp + 0x38]
movups xmm1, xmmword [rsp + 0x48]
movups xmm2, xmmword [rsp + 0x58]
movups xmm3, xmmword [rsp + 0x68]
movups xmmword [rax + 0x30], xmm3
movups xmmword [rax + 0x20], xmm2
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
add qword [r12 + 0x38], 0x44
jmp 0x1400266d0
mov r15d, 1
xor ecx, ecx
nop dword [rax]
mov rdi, qword [rbp]
mov rdx, rcx
shl rdx, 6
lea rcx, [rdx + rcx*4]
add rcx, rax
call fcn.14002c2a0
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1400266d0
mov ecx, r15d
mov rax, qword [rsi]
mov rdx, qword [rsi + 8]
sub rdx, rax
sar rdx, 2
movabs rdi, 0xf0f0f0f0f0f0f0f1
imul rdx, rdi
add r15d, 1
cmp rdx, rcx
ja 0x140026760
jmp 0x140026703
mov rcx, r13
call sub.mozglue.dll_void___cdecl_operator_delete___void____ptr64_
xor esi, esi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140036e40
mov eax, esi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14002ab10
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub rsp, 0x28
mov edx, 4
call sub.ADVAPI32.dll_SystemFunction036
test al, al
setne al
add rsp, 0x28
ret

Function at 0x14002d900
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
call fcn.14000cf70
test al, al
je 0x14002d92e
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 0x14002d94f
mov rcx, rdi
call fcn.14002b580
mov rcx, rdi
call sub.mozglue.dll_void___cdecl_operator_delete_void____ptr64_
lea rcx, [rsi + 0x58]
call fcn.1400035d0
mov rcx, qword [rsi + 0x50]
test rcx, rcx
je 0x14002d967
call qword [sym.imp.mozglue.dll_free]
mov rdi, qword [rsi + 0x38]
test rdi, rdi
je 0x14002d980
mov rcx, rdi
call fcn.14002b580
mov rcx, rdi
call sub.mozglue.dll_void___cdecl_operator_delete_void____ptr64_
lea rcx, [rsi + 0x28]
call fcn.140006be0
lea rcx, [rsi + 0x20]
call fcn.140006be0
lea rcx, [rsi + 0x18]
call fcn.140006be0
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14000cf30
Function at 0x14002e1b0
Capabilities:
Terminate process

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.14000cf70
test al, al
je 0x14002e1d2
mov rcx, qword [rsi]
xor edx, edx
add rsp, 0x20
pop rsi
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x20
pop rsi
ret
Function at 0x14002f010
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x250
mov rdi, rcx
mov rax, qword [0x140040010]
xor rax, rsp
mov qword [rsp + 0x248], rax
call fcn.14002ecc0
mov ebx, 0x1126
test al, al
jne 0x14002f294
movaps xmm0, xmmword [0x140038140]
movups xmmword [rsp + 0x238], xmm0
mov word [rsp + 0x228], 0
lea rsi, [rsp + 0x228]
mov rcx, rdi
mov rdx, rsi
call fcn.14002f310
mov ebx, eax
cmp qword [rsp + 0x238], 3
jae 0x14002f10d
xor ebp, ebp
lea rdi, [rsp + 0x228]
mov rcx, rdi
mov rdx, rdi
call fcn.14002f400
mov esi, eax
mov eax, ebp
or al, sil
or bl, al
cmp bl, 1
jne 0x14002f2bc
test bpl, bpl
je 0x14002f2c3
cmp qword [rsp + 0x240], 7
jbe 0x14002f0c8
mov rdi, qword [rsp + 0x228]
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
je 0x14002f2f3
lea rdi, [rsp + 0x20]
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov rsi, rax
add rsi, 0xffffffffffffffff
cmp qword [rsp + 0x240], 7
jbe 0x14002f14c
mov rcx, qword [rsp + 0x228]
jmp 0x14002f154
cmp qword [rsp + 0x240], 7
jbe 0x14002f120
mov rsi, qword [rsp + 0x228]
cmp word [rsi + 2], 0x3a
jne 0x14002f085
cmp word [rsi + 4], 0x5c
jne 0x14002f085
movzx eax, word [rsi]
and eax, 0xffffffdf
add eax, 0xffffffbf
cmp ax, 0x1a
setb bpl
jmp 0x14002f087
lea rcx, [rsp + 0x228]
mov rdx, rdi
mov r8, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x14002f2bc
lea r12, [rsp + 0x228]
mov r14, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r15, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
cmp qword [rsp + 0x240], 7
mov rcx, r12
jbe 0x14002f196
mov rcx, qword [rsp + 0x228]
call r14
cmp eax, 0xffffffff
je 0x14002f220
test eax, 0x400
jne 0x14002f2b8
mov rcx, qword [rsp + 0x238]
cmp qword [rsp + 0x240], 7
mov rax, r12
jbe 0x14002f1cb
mov rax, qword [rsp + 0x228]
mov rbx, 0xffffffffffffffff
test rcx, rcx
je 0x14002f1f0
lea rdx, [rax + rcx*2]
add rdx, 0xfffffffffffffffe
cmp word [rax + rcx*2 - 2], 0x5c
jne 0x14002f240
sub rdx, rax
sar rdx, 1
mov rbx, rdx
mov rdx, rbx
sub rdx, rcx
ja 0x14002f269
mov qword [rsp + 0x238], rbx
mov word [rax + rbx*2], 0
cmp qword [rsp + 0x238], rsi
ja 0x14002f180
jmp 0x14002f282
call r15
mov ebx, eax
lea eax, [rbx - 1]
cmp eax, 3
jb 0x14002f1ad
cmp ebx, 0x7b
je 0x14002f1ad
jmp 0x14002f287
lea rdi, [rcx + rcx]
mov ebp, 2
sub rbp, rdi
nop dword [rax]
test rbp, rbp
je 0x14002f1f0
add rbp, 2
cmp word [rdx - 2], 0x5c
lea rdx, [rdx - 2]
jne 0x14002f250
jmp 0x14002f1e7
mov rcx, r12
xor r8d, r8d
call fcn.140008540
cmp qword [rsp + 0x238], rsi
ja 0x14002f180
mov ebx, 0x1126
lea rcx, [rsp + 0x228]
call fcn.140001520
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.140036e40
mov eax, ebx
add rsp, 0x250
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x14002f287
mov ebx, 0x7b
jmp 0x14002f287
lea r8, str.._
lea rcx, [rsp + 0x228]
mov r9d, 4
xor edx, edx
call fcn.140014f80
cmp qword [rsp + 0x240], 7
ja 0x14002f0c0
jmp 0x14002f0c8
test sil, sil
mov eax, 0x1126
mov ebx, 0x7b
cmovne ebx, eax
jmp 0x14002f287
Function at 0x140030e30
Capabilities:
Query environment variable

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x140040010]
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
je 0x140030f61
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 [0x140041f30], 0
jne 0x140030e98
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x140041f30], rax
mov qword [rsp + 0x28], 0
lea rax, [0x140041f78]
mov qword [rsp + 0x30], rax
lea rsi, [0x140041f18]
mov qword [rsp + 0x38], rsi
lea rax, [0x1400398e2]
mov qword [rsp + 0x40], rax
lea rax, [0x140030f90]
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x50], 0
lea rcx, [0x140041f80]
lea rdx, [0x140031030]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140030f61
cmp qword [rsp + 0x28], 0
je 0x140030f61
mov qword [rsp + 0x28], 0
lea rax, [0x140041f88]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rsi
lea rax, [0x1400398d2]
mov qword [rsp + 0x40], rax
lea rax, [0x140030fc0]
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x50], 0
lea rcx, [0x140041f90]
lea rdx, [0x140031030]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140030f61
cmp qword [rsp + 0x28], 0
jne 0x140030f6f
call sym.plugin_container.exe_GetHandleVerifier
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140036e40
nop
add rsp, 0x60
pop rsi
ret
Function at 0x140031310
Capabilities:
Allocate or change rwx memory

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xd8
mov rsi, r9
mov r14, r8
mov r8, rdx
mov rdi, rcx
mov rax, qword [0x140040010]
xor rax, rsp
mov qword [rsp + 0xd0], rax
lea rdx, [rsp + 0x68]
call fcn.140031500
mov r8d, dword [rdi + 0x10]
and r8d, 1
shl r8, 0x1e
lea rdx, [rsp + 0xb8]
mov rcx, rdi
mov r9d, r8d
call fcn.140033980
cmp byte [rsp + 0xc8], 0
je 0x1400314b9
call fcn.140033c00
lea rbx, [0x140041fd0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rsp + 0xc0]
lea rdx, [rsp + 0x80]
call fcn.1400347b0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [rsp + 0xb0], 0
je 0x1400314bd
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x40], eax
movups xmm0, xmmword [rsp + 0x90]
movups xmmword [rsp + 0x48], xmm0
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0xa4]
mov qword [rsp + 0x5c], rax
mov al, byte [rsp + 0xac]
mov byte [rsp + 0x64], al
mov dword [rsp + 0x88], 0
mov byte [rsp + 0xac], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r14
lea rdx, [rsp + 0x68]
lea r8, [rsp + 0xb8]
lea r9, [rsp + 0x38]
mov rcx, rdi
call fcn.140031610
cmp qword [rsi], 0
setne sil
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140031466
mov r8d, dword [rsp + 0x40]
test r8d, r8d
je 0x140031466
lea r9, [rsp + 0x40]
mov edx, dword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp byte [rsp + 0xb0], 0
je 0x140031488
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x140031480
mov r8d, dword [rsp + 0x88]
test r8d, r8d
jne 0x1400314cb
mov byte [rsp + 0xb0], 0
cmp byte [rsp + 0xc8], 0
je 0x14003149a
mov byte [rsp + 0xc8], 0
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140036e40
mov eax, esi
add rsp, 0xd8
pop rbx
pop rdi
pop rsi
pop r14
ret
xor esi, esi
jmp 0x14003149a
xor esi, esi
cmp byte [rsp + 0xc8], 0
jne 0x140031492
jmp 0x14003149a
lea rdi, [rsp + 0x88]
mov edx, dword [rsp + 0xa8]
mov r9, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [rsp + 0x88], 0
mov byte [rsp + 0xac], 0
xorps xmm0, xmm0
movups xmmword [rdi + 8], xmm0
jmp 0x140031480
Function at 0x140033880
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x140040010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [0x140041fa0]
mov ecx, dword [0x140040180]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400338d0
mov esi, dword [0x140041f9c]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140036e40
mov eax, esi
add rsp, 0x60
pop rsi
ret
lea rcx, [0x140041fa0]
call fcn.140035b60
cmp dword [0x140041fa0], 0xffffffff
jne 0x1400338b5
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x2c]
mov dword [0x140041f9c], eax
lea rcx, [0x140041fa0]
call fcn.140035bc8
jmp 0x1400338b5

Function at 0x140033a70
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x140040010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [0x140041fb4]
mov ecx, dword [0x140040180]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140033ac0
mov esi, dword [0x140041fb0]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140036e40
mov eax, esi
add rsp, 0x60
pop rsi
ret
lea rcx, [0x140041fb4]
call fcn.140035b60
cmp dword [0x140041fb4], 0xffffffff
jne 0x140033aa5
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x50]
mov dword [0x140041fb0], eax
lea rcx, [0x140041fb4]
call fcn.140035bc8
jmp 0x140033aa5

Function at 0x140033e90
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x140040010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [0x140041fc0]
mov ecx, dword [0x140040180]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x140033efd
lea rcx, [0x140041fc0]
call fcn.140035b60
cmp dword [0x140041fc0], 0xffffffff
jne 0x140033efd
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rax, qword [rsp + 0x38]
mov qword [0x140041fb8], rax
lea rcx, [0x140041fc0]
call fcn.140035bc8
mov rsi, qword [0x140041fb8]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140036e40
mov rax, rsi
add rsp, 0x60
pop rsi
ret