joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140021db0
Capabilities:
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov r14, r9
mov rdi, r8
mov ebx, edx
mov rsi, rcx
call fcn.1400222d0
test rdi, rdi
je 0x140021e14
test al, al
je 0x140021e14
movsxd rax, ebx
mov rdx, rax
sar rdx, 0x3f
add rax, rdi
adc rdx, 0
mov ecx, edx
and ecx, 1
neg rcx
xor rdx, rcx
jne 0x140021e14
test rcx, rcx
js 0x140021e14
cmp qword [rsi + 0x10], rax
jb 0x140021e14
mov rcx, rsi
mov edx, ebx
mov r8, rdi
mov r9, r14
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp 0x140022730
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r14, r9
mov r15, r8
mov ebp, edx
mov rsi, rcx
mov r13, qword [0x1400f7448]
mov rax, qword [r13]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor eax, eax
cmp dword [rcx + 8], 0
setne al
lea r12d, [rax + rax]
add r12d, 4
mov edi, edx
sar edi, 0x1f
mov rcx, qword [rcx]
mov qword [rsp + 0x20], r8
mov edx, r12d
mov r8d, edi
mov r9d, ebp
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
mov qword [r14], rax
test rax, rax
jne 0x1400227b8
mov rcx, qword [rsi]
mov qword [rsp + 0x20], r15
mov edx, r12d
mov r8d, edi
mov r9d, ebp
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
mov qword [r14], rax
test rax, rax
je 0x14002280f
mov rsi, qword [rsp + 0xd0]
lea rdx, [rsp + 0x30]
mov r8d, 0x30
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rcx, qword [rsp + 0x48]
sub rcx, rbx
add rcx, qword [rsp + 0x38]
test rax, rax
cmove rcx, rax
mov qword [rsi], rcx
mov al, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
mov rdx, qword [r13]
cmp rdx, rcx
jne 0x140022813
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
jmp 0x1400227ed
call fcn.140076380
int3

Function at 0x140021e20
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x140021eb3
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rbx, qword [rsi]
lea rax, [rbx + 1]
cmp rax, 2
jb 0x140021e78
mov r14, qword [rsp + 0x48]
call fcn.140021bb0
mov rcx, rbx
mov rdx, rsi
mov r8, r14
mov r9, rax
call fcn.140045a40
mov rcx, qword [rsi]
call fcn.1400459d0
mov qword [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140021ea0
mov qword [rsi], rdi
mov rbx, qword [rsp + 0x48]
call fcn.140021bb0
mov rcx, rdi
mov rdx, rsi
mov r8, rbx
mov r9, rax
call fcn.140045a00
mov ecx, ebp
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x140022210
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov qword [rcx], 0
mov rdi, qword [rdx]
mov qword [rdx], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140022255
mov rbx, rdx
mov r14, qword [rsp + 0x48]
call fcn.140021bb0
mov rcx, rdi
mov rdx, rbx
mov r8, r14
mov r9, rax
call fcn.140045a40
mov rcx, rsi
mov rdx, rdi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140021e20
Function at 0x1400242d0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x168
mov r13, qword [0x1400f7448]
mov rax, qword [r13]
xor rax, rsp
mov qword [rsp + 0x160], rax
test rdx, rdx
je 0x140024360
mov rsi, rdx
mov rdi, rcx
mov ebp, 0xffffffff
lea r14, str._var_tmp_build_firefox_0553bfb9087f_security_sandbox_chromium_base_rand_util_win.cc
lea r15, str.success
lea r12, [rsp + 0x28]
jmp 0x140024328
add rdi, rbx
sub rsi, rbx
je 0x140024360
cmp rsi, rbp
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x140024320
mov rcx, r12
mov rdx, r14
mov r8d, 0x20
mov r9, r15
call fcn.14001a410
mov rcx, r12
call fcn.14001a690
jmp 0x140024320
mov rax, qword [rsp + 0x160]
xor rax, rsp
mov rcx, qword [r13]
cmp rcx, rax
jne 0x140024388
add rsp, 0x168
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140076380
int3
Function at 0x140041400
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x14014f040]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140041430
movsxd rcx, dword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 4]
jne 0x140041430
mov rax, qword [rax + rcx]
jmp 0x140041432
xor eax, eax
add rsp, 0x20
pop rsi
ret

Function at 0x140041440
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x14014f040]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
jne 0x140041468
test rdi, rdi
je 0x140041481
call fcn.140041040
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

Function at 0x140041490
Capabilities:
Get thread local storage value

Disassembly:
mov eax, 0xffffffff
mov qword [rcx], rax
jmp fcn.140040e40

Function at 0x1400414b0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1400414c5
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret

Function at 0x140044a80
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, 0x38
test r8, r8
je 0x140044ba5
mov rbx, rcx
mov rax, qword [rcx + 8]
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx + 0x84], 0
je 0x140044ba5
cmp word [rax + rcx + 0x14], 0x78
jb 0x140044ba5
mov r12, r8
mov r14, rdx
mov edx, dword [rax + rcx + 0x88]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
test rax, rax
je 0x140044ba5
cmp r14, 0xffff
jbe 0x140044bdb
mov rsi, rax
mov edx, dword [rax + 0x20]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
mov edx, dword [rsi + 0x18]
lea rcx, [rdx*4]
test rcx, rcx
je 0x140044ba5
mov qword [rsp + 0x30], rsi
lea r15, [rax + rdx*4]
lea r13, [r14 + 1]
mov qword [rsp + 0x28], rax
mov rbp, rax
nop word cs:[rax + rax]
nop dword [rax]
mov rsi, r15
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 rcx, rbx
call qword [rax + 0x10]
mov cl, byte [r14]
test cl, cl
je 0x140044b73
mov rdx, r13
nop
cmp cl, byte [rax]
jne 0x140044b75
add rax, 1
movzx ecx, byte [rdx]
add rdx, 1
test cl, cl
jne 0x140044b60
xor ecx, ecx
lea rsi, [rsi*2]
add rsi, rbp
movzx ecx, cl
movzx eax, byte [rax]
mov edx, ecx
sub edx, eax
lea rdi, [rsi + 4]
test edx, edx
cmovg rbp, rdi
cmp ecx, eax
cmovs r15, rsi
je 0x140044bb8
xor eax, eax
cmp rbp, r15
jne 0x140044b30
jmp 0x140044ba7
xor eax, eax
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rdi, qword [rsp + 0x30]
mov edx, dword [rdi + 0x24]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
sub rsi, qword [rsp + 0x28]
sar rsi, 1
movzx r14d, word [rax + rsi]
add r14w, word [rdi + 0x10]
mov word [r12], r14w
mov al, 1
jmp 0x140044ba7
Function at 0x1400454f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [rcx + 8]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x140045527
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x140045527
movzx edx, word [rax + rcx + 0x14]
cmp edx, 0xf0
jne 0x140045527
movzx eax, word [rax + rcx + 0x18]
cmp eax, 0x20b
sete al
ret
xor eax, eax
ret
Function at 0x1400473e0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x188
mov rdi, qword [0x1400f7448]
mov rax, qword [rdi]
xor rax, rsp
mov qword [rsp + 0x180], rax
lea rcx, [rsp + 0x64]
mov r8d, 0x118
xor edx, edx
call sub.ntdll.dll_memset
mov dword [rsp + 0x60], 0x11c
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [rsp + 0x2c], 0
mov ecx, dword [rsp + 0x64]
mov edx, dword [rsp + 0x68]
lea rax, [rsp + 0x2c]
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.1400c11a0
mov rsi, rax
mov al, byte [0x140150228]
test al, al
je 0x140047499
mov r9d, dword [rsp + 0x2c]
lea r8, [0x140152388]
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.140047670
mov rax, qword [rsp + 0x180]
xor rax, rsp
mov rcx, qword [rdi]
cmp rcx, rax
jne 0x1400474fb
mov rax, rsi
add rsp, 0x188
pop rdi
pop rsi
ret
lea rcx, [0x140150228]
call fcn.1400c0f74
test eax, eax
je 0x140047460
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movaps xmm0, xmmword [rsp + 0x30]
movaps xmm1, xmmword [rsp + 0x40]
movaps xmm2, xmmword [rsp + 0x50]
movups xmmword [0x1401523a8], xmm2
movups xmmword [0x140152398], xmm1
movups xmmword [0x140152388], xmm0
lea rcx, [0x140150228]
call fcn.1400c104b
jmp 0x140047460
call fcn.140076380
int3

Function at 0x140050e30
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
lea rax, [rcx + 8]
xorps xmm0, xmm0
movups xmmword [rcx + 8], xmm0
mov qword [rcx], rax
lea rdi, [rcx + 0x18]
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi + 0x18], 0
mov rcx, rdi
mov rdx, rax
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140021e20
Function at 0x140053480
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x188
mov r12, rcx
mov r13, qword [0x1400f7448]
mov rax, qword [r13]
xor rax, rsp
mov qword [rsp + 0x180], rax
test dl, dl
je 0x140053511
lea rax, [0x140054380]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0
lea rdi, [0x1400fcd40]
lea r8, [0x1400fcd54]
mov rcx, r12
mov rdx, rdi
mov r9d, 1
call fcn.1400528c0
lea rax, [0x1400543f0]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 1
lea r8, [0x1400fcd67]
mov rcx, r12
mov rdx, rdi
mov r9d, 1
call fcn.1400528c0
jmp 0x14005351d
cmp qword [r12 + 0x18], 0
je 0x14005367d
mov rax, qword [r12]
mov r14, qword [rax]
mov dword [rsp + 0x20], 1
mov rbp, qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r8d, 0x10000
mov rcx, r14
xor edx, edx
mov r9d, 0x2000
call rbp
mov rdi, rax
mov rsi, qword [r12 + 0x18]
shl rsi, 6
lea r15, [rsi + 0x60]
mov rcx, r15
call fcn.1400526d0
mov rbx, rax
mov edx, ebx
and edx, 0xfffff000
add rdx, rdi
and ebx, 0xfff
add rsi, 0x105f
and rsi, 0xfffffffffffff000
mov dword [rsp + 0x20], 0x40
mov rcx, r14
mov r8, rsi
mov r9d, 0x1000
call rbp
mov rdi, rax
test rax, rax
jne 0x1400535c7
lea rdx, str._var_tmp_build_firefox_0553bfb9087f_security_sandbox_chromium_sandbox_win_src_interception.cc
lea r9, str.thunk_base
lea rsi, [rsp + 0x48]
mov rcx, rsi
mov r8d, 0x188
call fcn.14001a410
mov rcx, rsi
call fcn.14001a690
add rdi, rbx
mov qword [rsp + 0x48], r15
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x50], 0x20
lea rcx, [0x1401535f0]
mov r8d, 0x150
xor edx, edx
call sub.ntdll.dll_memset
lea r9, [rsp + 0x48]
mov rcx, r12
mov rdx, rdi
mov r8, r15
call fcn.1400539a0
test eax, eax
jne 0x14005367f
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x48]
mov r9d, 0x20
mov rcx, r14
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, eax
mov eax, 0x2a
test ecx, ecx
je 0x14005367f
cmp qword [rsp + 0x40], 0x20
jne 0x14005367f
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
mov rcx, r14
mov rdx, rdi
mov r8, r15
mov r9d, 0x20
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, qword [r12]
lea rdx, str.g_originals
lea r8, [0x1401535f0]
mov r9d, 0x150
call fcn.14006d8f0
jmp 0x14005367f
xor eax, eax
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
mov rdx, qword [r13]
cmp rdx, rcx
jne 0x1400536a7
add rsp, 0x188
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140076380
int3
Function at 0x140055d80
Capabilities:
Create pipe

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov r14, qword [rsp + 0xc8]
mov rbx, qword [0x1400f7448]
mov rax, qword [rbx]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov qword [r14], 0xffffffffffffffff
mov eax, 5
cmp ecx, 3
jne 0x140055e75
mov eax, dword [rsp + 0xc0]
mov edi, dword [rsp + 0xb8]
mov ecx, dword [rsp + 0xb0]
mov r10d, dword [rsp + 0xa8]
mov r11d, dword [rsp + 0xa0]
test byte [r8], 1
je 0x140055de9
mov r8, qword [r8 + 0x10]
jmp 0x140055ded
add r8, 2
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 0x140055e5f
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 + 0x48]
mov rcx, rax
mov rdx, rdi
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
cmp eax, 1
sbb rax, rax
or rax, qword [rsp + 0x48]
jmp 0x140055e66
mov rax, 0xffffffffffffffff
mov qword [r14], rax
xor ecx, ecx
cmp rax, 0xffffffffffffffff
sete cl
lea eax, [rcx + rcx*4]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
mov rdx, qword [rbx]
cmp rdx, rcx
jne 0x140055e8f
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140076380
int3
Function at 0x14005e450
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x300
mov r15, r9
mov rdi, r8
mov rbx, rdx
mov r13, rcx
mov r14, qword [rsp + 0x390]
mov rsi, qword [rsp + 0x380]
mov r12, qword [0x1400f7448]
mov rax, qword [r12]
xor rax, rsp
mov qword [rsp + 0x2f8], rax
mov qword [rsp + 0x88], rdx
mov qword [rsp + 0x80], r8
call fcn.140065970
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
mov rcx, rax
call fcn.14006e4a0
test al, al
je 0x14005e51b
mov rax, qword [rsp + 0x388]
mov rcx, qword [rsp + 0x378]
mov edx, dword [rsp + 0x370]
mov r8d, dword [rsp + 0x368]
mov r9, qword [rsp + 0x360]
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], r8d
mov rcx, rbx
mov rdx, rdi
mov r8, r15
call r13
mov edi, 1
test eax, eax
jne 0x14005e657
lea rcx, [0x1400fda3e]
mov rdx, rbx
call fcn.14001e200
call fcn.140065970
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
mov rcx, rax
call fcn.14006e480
xor edi, edi
test al, al
je 0x14005e657
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov edx, 0x18
mov rcx, r14
mov r8d, 1
call fcn.140065d50
test al, al
je 0x14005e64f
call fcn.140065a90
test rax, rax
je 0x14005e64f
mov rsi, rax
mov qword [rsp + 0x78], 0
lea r15, [rsp + 0xf0]
mov ecx, 0x104
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xffffffff
cmp eax, 0x102
ja 0x14005e5ac
mov qword [rsp + 0x78], r15
lea r15, [rsp + 0x68]
mov rcx, r15
mov rdx, rsi
call fcn.1400699c0
xorps xmm0, xmm0
movaps xmmword [rsp + 0xd0], xmm0
movaps xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
mov qword [rsp + 0xe0], 0
mov dword [rsp + 0x58], 0x18
mov qword [rsp + 0x60], r14
lea rax, [rsp + 0x90]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x380]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x88]
lea r9, [rsp + 0x80]
mov rcx, r15
mov edx, 0xd
call fcn.14005e6c0
test eax, eax
je 0x14005e680
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsp + 0x2f8]
xor rax, rsp
mov rcx, qword [r12]
cmp rcx, rax
jne 0x14005e6b4
mov eax, edi
add rsp, 0x300
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, dword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
cmp dword [rsp + 0x98], 0
jne 0x14005e657
mov rdx, qword [rsp + 0x88]
lea rcx, [0x1400fda3e]
call fcn.14001e460
mov edi, 1
jmp 0x14005e657
call fcn.140076380
int3
Function at 0x14005fa00
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 r12, qword [0x1400f7448]
mov rax, qword [r12]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea eax, [rdi - 7]
mov ebp, 5
cmp eax, 0xfffffffe
jb 0x14005fbc0
mov rbx, 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
test byte [r9], 1
je 0x14005fa94
mov r9, qword [r9 + 0x10]
jmp 0x14005fa98
add r9, 2
mov rcx, r9
call qword [sym.imp.mozglue.dll__wcsdup]
mov r14, rax
movzx eax, byte [rbp]
test al, 1
je 0x14005fab6
mov rax, qword [rbp + 8]
mov rbp, qword [rbp + 0x10]
jmp 0x14005fabd
add rbp, 2
shr rax, 1
mov rsi, qword [rsp + 0x138]
test rax, rax
cmove rbp, rax
test byte [rbx], 1
je 0x14005fad7
mov rbx, qword [rbx + 0x10]
jmp 0x14005fadb
add rbx, 2
mov r15, qword [r15]
mov qword [rsp + 0x48], rsi
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, rbx
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebp, 5
test eax, eax
je 0x14005fbb3
cmp edi, 6
mov r13d, 0x1fffff
mov ebx, 0x101c01
cmove ebx, r13d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rsi]
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0
mov rcx, rax
mov r8, r15
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x14005fbea
cmp edi, 6
mov edi, 0x100c43
cmove edi, r13d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rsi + 8]
add rsi, 8
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0
mov rcx, rax
mov r8, r15
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea ebp, [rcx + rcx*4]
test r14, r14
je 0x14005fbc0
mov rcx, r14
call sub.mozglue.dll_free
mov rax, qword [rsp + 0xc0]
xor rax, rsp
mov rcx, qword [r12]
cmp rcx, rax
jne 0x14005fbfb
mov eax, ebp
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14, r14
jne 0x14005fbb8
jmp 0x14005fbc0
call fcn.140076380
int3
Function at 0x14005fc10
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 0x14005fca4
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, qword [rdi]
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
mov rdx, rbx
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 0x140068e60
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 0x14006d250
Capabilities:
Terminate process

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
call fcn.140046f80
test al, al
je 0x14006d281
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 0x14006d2a2
mov rcx, rdi
call fcn.140069d00
mov rcx, rdi
call fcn.1400c1280
mov rcx, qword [rsi + 0x58]
test rcx, rcx
je 0x14006d2b4
mov qword [rsi + 0x60], rcx
call fcn.1400c1280
mov rcx, qword [rsi + 0x50]
mov qword [rsi + 0x50], 0
test rcx, rcx
je 0x14006d2ca
call sub.mozglue.dll_free
mov rdi, qword [rsi + 0x38]
mov qword [rsi + 0x38], 0
test rdi, rdi
je 0x14006d2eb
mov rcx, rdi
call fcn.140069d00
mov rcx, rdi
call fcn.1400c1280
mov rdi, qword [rsi + 0x28]
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14006d327
lea rbx, [rsi + 0x28]
mov r14, qword [rsp + 0x48]
call fcn.140021bb0
mov rcx, rdi
mov rdx, rbx
mov r8, r14
mov r9, rax
call fcn.140045a40
mov rcx, qword [rbx]
call fcn.1400459d0
mov qword [rbx], 0
mov rdi, qword [rsi + 0x20]
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14006d363
lea rbx, [rsi + 0x20]
mov r14, qword [rsp + 0x48]
call fcn.140021bb0
mov rcx, rdi
mov rdx, rbx
mov r8, r14
mov r9, rax
call fcn.140045a40
mov rcx, qword [rbx]
call fcn.1400459d0
mov qword [rbx], 0
mov rdi, qword [rsi + 0x18]
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14006d39f
lea rbx, [rsi + 0x18]
mov r14, qword [rsp + 0x48]
call fcn.140021bb0
mov rcx, rdi
mov rdx, rbx
mov r8, r14
mov r9, rax
call fcn.140045a40
mov rcx, qword [rbx]
call fcn.1400459d0
mov qword [rbx], 0
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140046e50
Function at 0x14006dce0
Capabilities:
Terminate process

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.140046f80
test al, al
je 0x14006dd02
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 0x140070700
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 r15, qword [0x1400f7448]
mov rax, qword [r15]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rbp, [rsp + 0x34]
mov qword [rsp + 0x20], rbp
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x14007079c
lea rax, [rsp + 0x28]
mov qword [rsp + 0x20], rax
mov rcx, rbx
mov rdx, rdi
mov r8, r14
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r14d, eax
mov r12, qword [rsp + 0x28]
mov r9d, dword [rsp + 0x34]
mov qword [rsp + 0x20], rbp
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x14007079c
test r14d, r14d
setne cl
cmp r12, rsi
sete al
and al, cl
jmp 0x14007079e
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
mov rdx, qword [r15]
cmp rdx, rcx
jne 0x1400707bd
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.140076380
int3