joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140040680
Capabilities:
Get thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x168
mov rdi, rdx
mov rsi, rcx
mov r14, qword [0x1400f74a8]
mov rax, qword [r14]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov ecx, dword [0x140134048]
cmp ecx, 0xffffffff
je 0x14004008c
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140040091
call fcn.140040240
movzx eax, byte [0x140135218]
test al, al
je 0x1400401f3
mov rbx, qword [0x140137300]
mov rcx, rbx
call fcn.140034e40
mov rcx, qword [0x140136ce8]
inc rcx
mov edx, 0x100
lea rax, [0x1401354e0]
nop word cs:[rax + rax]
movzx r8d, cl
lea r9, [r8 + r8*2]
cmp dword [rax + r9*8], 0
je 0x1400400fe
lea r8d, [rcx + 1]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rax + r9*8], 0
je 0x1400400fe
add rcx, 2
add rdx, 0xfffffffffffffffe
jne 0x1400400d0
jmp 0x140040122
lea rcx, [rax + r9*8]
mov dword [rcx], 1
lea rcx, [r8 + r8*2]
mov qword [rax + rcx*8 + 8], rdi
mov qword [0x140136ce8], r8
mov dword [rsi], r8d
mov eax, dword [rax + rcx*8 + 0x10]
mov dword [rsi + 4], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [rsi]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x24], 0xffffffff
cmp eax, 0xffffffff
jne 0x14004017e
lea r8, str.slot____kInvalidSlotValue
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x24]
call fcn.14001d5b0
test rax, rax
je 0x14004017e
lea rdx, str._var_tmp_build_firefox_d8b47d80163d_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x196
mov r9, rax
call fcn.14001e130
mov rcx, rdi
call fcn.14001e310
mov eax, dword [rsi]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x24], 0x100
cmp eax, 0xff
jle 0x1400401d3
lea r8, str.slot____kThreadLocalStorageSize
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x24]
call fcn.14001d5b0
test rax, rax
je 0x1400401d3
lea rdx, str._var_tmp_build_firefox_d8b47d80163d_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0x197
mov r9, rax
call fcn.14001e130
mov rcx, rsi
call fcn.14001e310
mov rax, qword [rsp + 0x160]
xor rax, rsp
mov rcx, qword [r14]
cmp rcx, rax
jne 0x140040234
add rsp, 0x168
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x140135218]
call fcn.1400c6e84
test eax, eax
je 0x1400400a0
mov ecx, 8
call fcn.1400c70b0
mov rbx, rax
mov rcx, rax
call fcn.140034e00
mov qword [0x140137300], rbx
lea rcx, [0x140135218]
call fcn.1400c6f5f
jmp 0x1400400a0
call fcn.1400c8850
int3
mov eax, 0xffffffff
mov qword [rcx], rax
jmp 0x140040050

Function at 0x1400406a0
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 0x1400406b5
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret
Function at 0x1400420a0
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov r14, qword [0x1400f74a8]
mov rax, qword [r14]
xor rax, rsp
mov qword [rsp + 0x28], rax
movsd xmm0, qword [0x140137370]
xorpd xmm1, xmm1
ucomisd xmm0, xmm1
jne 0x1400421e4
jp 0x1400421e4
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov esi, eax
call rdi
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
movzx eax, byte [0x140135248]
test al, al
je 0x140042205
movzx eax, byte [0x140135250]
test al, al
je 0x14004223a
rdtsc
mov rdi, rax
mov rbx, rdx
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r15, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, esi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub r15, qword [0x140137368]
movq xmm0, r15
punpckldq xmm0, xmmword [0x1400fc720]
subpd xmm0, xmmword [0x1400fc730]
movapd xmm1, xmm0
unpckhpd xmm1, xmm0
addsd xmm1, xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x20]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x1400fc740]
ucomisd xmm2, xmm1
ja 0x1400421e4
shl rbx, 0x20
or rdi, rbx
sub rdi, qword [0x140137360]
movq xmm2, rdi
punpckldq xmm2, xmmword [0x1400fc720]
subpd xmm2, xmmword [0x1400fc730]
movapd xmm0, xmm2
unpckhpd xmm0, xmm2
addsd xmm0, xmm2
divsd xmm0, xmm1
movsd qword [0x140137370], xmm0
mov rax, qword [rsp + 0x28]
xor rax, rsp
mov rcx, qword [r14]
cmp rcx, rax
jne 0x140042200
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400c8850
lea rcx, [0x140135248]
call fcn.1400c6e84
test eax, eax
je 0x14004210c
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x140137360], rdx
lea rcx, [0x140135248]
call fcn.1400c6f5f
jmp 0x14004210c
lea rcx, [0x140135250]
call fcn.1400c6e84
test eax, eax
je 0x14004211b
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x20]
mov qword [0x140137368], rax
lea rcx, [0x140135250]
call fcn.1400c6f5f
jmp 0x14004211b
Function at 0x140043d30
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 0x140043e40
mov rbx, rcx
mov rax, qword [rcx + 8]
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx + 0x84], 0
je 0x140043e40
cmp word [rax + rcx + 0x14], 0x78
jb 0x140043e40
mov rsi, r8
mov rdi, rdx
mov edx, dword [rax + rcx + 0x88]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
test rax, rax
je 0x140043e40
cmp rdi, 0xffff
jbe 0x140043e72
mov r14, rax
mov edx, dword [rax + 0x20]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
mov ecx, dword [r14 + 0x18]
test rcx, rcx
je 0x140043e40
lea r15, [rax + rcx*4]
lea r13, [rdi + 1]
mov qword [rsp + 0x20], rax
mov rbp, rax
nop word cs:[rax + rax]
mov r12, r15
sub r12, rbp
mov rax, r12
sar rax, 2
shr r12, 0x3f
add r12, rax
and r12, 0xfffffffffffffffe
mov edx, dword [rbp + r12*2]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
movzx ecx, byte [rdi]
test cl, cl
je 0x140043e11
mov rdx, r13
cmp cl, byte [rax]
jne 0x140043e13
inc rax
movzx ecx, byte [rdx]
inc rdx
test cl, cl
jne 0x140043e00
xor ecx, ecx
lea r12, [r12*2]
add r12, rbp
movzx eax, byte [rax]
cmp cl, al
je 0x140043e53
movzx ecx, cl
lea rdx, [r12 + 4]
cmp ecx, eax
cmovg rbp, rdx
cmovs r15, r12
xor eax, eax
cmp rbp, r15
jne 0x140043dd0
jmp 0x140043e42
xor eax, eax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov edx, dword [r14 + 0x24]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
sub r12, qword [rsp + 0x20]
sar r12, 1
movzx edi, word [rax + r12]
add di, word [r14 + 0x10]
mov word [rsi], di
mov al, 1
jmp 0x140043e42

Function at 0x1400447b0
Capabilities:
Parse pe header

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

Disassembly:
push rsi
push rdi
sub rsp, 0x188
mov rdi, qword [0x1400f74a8]
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.1400c70b0
mov rsi, rax
movzx eax, byte [0x1401352a0]
test al, al
je 0x1400466da
mov r9d, dword [rsp + 0x2c]
lea r8, [0x140137428]
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.1400468b0
mov rax, qword [rsp + 0x180]
xor rax, rsp
mov rcx, qword [rdi]
cmp rcx, rax
jne 0x14004673c
mov rax, rsi
add rsp, 0x188
pop rdi
pop rsi
ret
lea rcx, [0x1401352a0]
call fcn.1400c6e84
test eax, eax
je 0x1400466a1
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 [0x140137448], xmm2
movups xmmword [0x140137438], xmm1
movups xmmword [0x140137428], xmm0
lea rcx, [0x1401352a0]
call fcn.1400c6f5f
jmp 0x1400466a1
call fcn.1400c8850
int3

Function at 0x140050850
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.140022db0
Function at 0x1400533d0
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 rsi, rcx
mov r13, qword [0x1400f74a8]
mov rax, qword [r13]
xor rax, rsp
mov qword [rsp + 0x180], rax
test dl, dl
je 0x140053461
lea rax, [0x1400542c0]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0
lea rdi, [0x1400fd340]
lea r8, [0x1400fd354]
mov rcx, rsi
mov rdx, rdi
mov r9d, 1
call fcn.140052760
lea rax, [0x140054330]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 1
lea r8, [0x1400fd367]
mov rcx, rsi
mov rdx, rdi
mov r9d, 1
call fcn.140052760
jmp 0x14005346c
cmp qword [rsi + 0x18], 0
je 0x1400535cc
mov rax, qword [rsi]
mov rdi, qword [rax]
mov dword [rsp + 0x20], 1
mov rbp, qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r8d, 0x10000
mov rcx, rdi
xor edx, edx
mov r9d, 0x2000
call rbp
mov r14, rax
mov r12, qword [rsi + 0x18]
shl r12, 6
lea rbx, [r12 + 0x60]
mov rcx, rbx
call fcn.140052570
mov r15, rax
mov edx, r15d
and edx, 0xfffff000
add rdx, r14
and r15d, 0xfff
add r12, 0x105f
and r12, 0xfffffffffffff000
mov dword [rsp + 0x20], 0x40
mov rcx, rdi
mov r8, r12
mov r9d, 0x1000
call rbp
mov r14, rax
test rax, rax
jne 0x140053517
lea rdx, str._var_tmp_build_firefox_d8b47d80163d_security_sandbox_chromium_sandbox_win_src_interception.cc
lea r9, str.thunk_base
lea r12, [rsp + 0x48]
mov rcx, r12
mov r8d, 0x188
call fcn.14001e070
mov rcx, r12
call fcn.14001e310
add r14, r15
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x50], 0x20
lea rcx, [0x140138660]
mov r8d, 0x150
xor edx, edx
call sub.ntdll.dll_memset
lea r9, [rsp + 0x48]
mov rcx, rsi
mov rdx, r14
mov r8, rbx
call fcn.140053850
test eax, eax
jne 0x1400535ce
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x48]
mov r9d, 0x20
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, eax
mov eax, 0x2a
test ecx, ecx
je 0x1400535ce
cmp qword [rsp + 0x40], 0x20
jne 0x1400535ce
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov rdx, r14
mov r8, rbx
mov r9d, 0x20
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, qword [rsi]
lea rdx, str.g_originals
lea r8, [0x140138660]
mov r9d, 0x150
call fcn.14006ffa0
jmp 0x1400535ce
xor eax, eax
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
mov rdx, qword [r13]
cmp rdx, rcx
jne 0x1400535f6
add rsp, 0x188
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400c8850
int3
Function at 0x140055e20
Capabilities:
Create pipe

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov r14, qword [rsp + 0xc8]
mov rbx, qword [0x1400f74a8]
mov rax, qword [rbx]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov qword [r14], 0xffffffffffffffff
mov eax, 5
cmp ecx, 3
jne 0x140055f18
mov edi, dword [rsp + 0xc0]
mov r11d, dword [rsp + 0xb8]
mov ecx, dword [rsp + 0xb0]
mov eax, dword [rsp + 0xa8]
mov r10d, dword [rsp + 0xa0]
test byte [r8], 1
je 0x140055e89
mov r8, qword [r8 + 0x10]
jmp 0x140055e8d
add r8, 2
mov rsi, qword [rdx]
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], r11d
mov dword [rsp + 0x20], ecx
mov qword [rsp + 0x38], 0
mov rcx, r8
mov edx, r9d
mov r8d, r10d
mov r9d, eax
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp rax, 0xffffffffffffffff
je 0x140055f02
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]
xor ecx, ecx
cmp eax, 1
sbb rcx, rcx
or rcx, qword [rsp + 0x48]
jmp 0x140055f09
mov rcx, 0xffffffffffffffff
mov qword [r14], rcx
xor eax, eax
cmp rcx, 0xffffffffffffffff
sete al
lea eax, [rax + rax*4]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
mov rdx, qword [rbx]
cmp rdx, rcx
jne 0x140055f32
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400c8850
mov bh, 0xe3
add dword [rax], eax
invalid
Function at 0x14005b630
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xc0
mov r15, qword [0x1400f74a8]
mov rax, qword [r15]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov ebx, 0xc000000d
test r9d, r9d
jne 0x14005b808
mov rdi, r8
mov rsi, rdx
call fcn.140067be0
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
mov rcx, rax
call fcn.140070b70
mov ebx, 0xc0000022
test al, al
je 0x14005b808
call fcn.140067d00
test rax, rax
je 0x14005b808
mov r14, rax
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.140022db0
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x14005b707
mov qword [rsp + 0x20], 0x1000
mov edx, 6
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14005b7ca
mov rax, qword [rsp + 0x50]
mov ebx, 0xc000000d
inc rax
cmp rax, 2
jb 0x14005b7c2
mov r8d, 0x1000
mov rdx, rdi
call sub.ntdll.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
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, r14
call fcn.14006bc60
mov qword [rsp + 0x38], rsi
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x38]
lea r9, [rsp + 0x30]
mov rcx, rdi
mov edx, 0x1e
call fcn.14005b840
mov ebx, 0xc0000022
test eax, eax
jne 0x14005b7b8
mov ebx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14005b7cf
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x14005b7cf
mov ebx, 0xc000000d
mov rsi, qword [rsp + 0x50]
lea rax, [rsi + 1]
cmp rax, 2
jb 0x14005b808
mov rdi, qword [rsp + 0xe8]
call fcn.140022b40
lea rdx, [rsp + 0x50]
mov rcx, rsi
mov r8, rdi
mov r9, rax
call fcn.140044ce0
mov rcx, qword [rsp + 0x50]
call fcn.140044c70
mov rax, qword [rsp + 0xb8]
xor rax, rsp
mov rcx, qword [r15]
cmp rcx, rax
jne 0x14005b82c
mov eax, ebx
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400c8850
int3
Function at 0x14005f680
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x300
mov rdi, r9
mov r15, r8
mov rbx, rdx
mov r14, rcx
mov rsi, qword [rsp + 0x390]
mov r13, qword [rsp + 0x380]
mov r12, qword [0x1400f74a8]
mov rax, qword [r12]
xor rax, rsp
mov qword [rsp + 0x2f8], rax
mov qword [rsp + 0x88], rdx
mov qword [rsp + 0x80], r8
call fcn.140067be0
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
mov rcx, rax
call fcn.140070b90
test al, al
je 0x14005f74b
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], rsi
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], r8d
mov rcx, rbx
mov rdx, r15
mov r8, rdi
call r14
mov edi, 1
test eax, eax
jne 0x14005f886
lea rcx, [0x1400fe03e]
mov rdx, rbx
call fcn.14001f1c0
call fcn.140067be0
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
mov rcx, rax
call fcn.140070b70
xor edi, edi
test al, al
je 0x14005f886
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov edx, 0x18
mov rcx, rsi
mov r8d, 1
call fcn.140067fc0
test al, al
je 0x14005f87e
call fcn.140067d00
test rax, rax
je 0x14005f87e
mov r14, rax
mov qword [rsp + 0x78], 0
lea r15, [rsp + 0xf0]
mov ecx, 0x104
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
cmp eax, 0x102
ja 0x14005f7db
mov qword [rsp + 0x78], r15
lea r15, [rsp + 0x68]
mov rcx, r15
mov rdx, r14
call fcn.14006bc60
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], rsi
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.14005f8f0
test eax, eax
je 0x14005f8af
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 0x14005f8e3
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 0x14005f886
mov rdx, qword [rsp + 0x88]
lea rcx, [0x1400fe03e]
call fcn.14001f420
mov edi, 1
jmp 0x14005f886
call fcn.1400c8850
int3
Function at 0x140060c90
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 [0x1400f74a8]
mov rax, qword [r12]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea eax, [rdi - 7]
mov ebp, 5
cmp eax, 0xfffffffe
jb 0x140060e51
mov rbx, r8
mov r15, rdx
mov r13, 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 0x140060d24
mov r9, qword [r9 + 0x10]
jmp 0x140060d28
add r9, 2
mov rcx, r9
call qword [sym.imp.mozglue.dll__wcsdup]
mov rsi, rax
movzx eax, byte [r13]
test al, 1
je 0x140060d47
mov rax, qword [r13 + 8]
mov r13, qword [r13 + 0x10]
jmp 0x140060d4e
add r13, 2
shr rax, 1
mov r14, qword [rsp + 0x138]
test rax, rax
cmove r13, rax
test byte [rbx], 1
je 0x140060d68
mov rbx, qword [rbx + 0x10]
jmp 0x140060d6c
add rbx, 2
mov r15, qword [r15]
mov qword [rsp + 0x48], r14
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
mov rdx, rsi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebp, 5
test eax, eax
je 0x140060e44
cmp edi, 6
mov ebx, 0x1fffff
mov r13d, 0x101c01
cmove r13d, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [r14]
mov dword [rsp + 0x20], r13d
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0
mov rcx, rax
mov r8, r15
mov r9, r14
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x140060e7b
cmp edi, 6
mov edi, 0x100c43
cmove edi, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [r14 + 8]
add r14, 8
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0
mov rcx, rax
mov r8, r15
mov r9, r14
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea ebp, [rcx + rcx*4]
test rsi, rsi
je 0x140060e51
mov rcx, rsi
call sub.mozglue.dll_free
mov rax, qword [rsp + 0xc0]
xor rax, rsp
mov rcx, qword [r12]
cmp rcx, rax
jne 0x140060e8c
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 [r14 + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
jne 0x140060e49
jmp 0x140060e51
call fcn.1400c8850
int3
Function at 0x140060ea0
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 r10, qword [rsp + 0x88]
mov qword [rsi], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x30], r10
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 0x140060f34
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 0x14006b140
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 0x14006f930
Capabilities:
Terminate process

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
call fcn.1400461c0
test al, al
je 0x14006f961
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 0x14006f982
mov rcx, rdi
call fcn.14006bfb0
mov rcx, rdi
call fcn.1400c7190
mov rcx, qword [rsi + 0x58]
test rcx, rcx
je 0x14006f994
mov qword [rsi + 0x60], rcx
call fcn.1400c7190
mov rcx, qword [rsi + 0x50]
mov qword [rsi + 0x50], 0
test rcx, rcx
je 0x14006f9aa
call sub.mozglue.dll_free
mov rdi, qword [rsi + 0x38]
mov qword [rsi + 0x38], 0
test rdi, rdi
je 0x14006f9cb
mov rcx, rdi
call fcn.14006bfb0
mov rcx, rdi
call fcn.1400c7190
mov rdi, qword [rsi + 0x28]
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14006fa07
lea rbx, [rsi + 0x28]
mov r14, qword [rsp + 0x48]
call fcn.140022b40
mov rcx, rdi
mov rdx, rbx
mov r8, r14
mov r9, rax
call fcn.140044ce0
mov rcx, qword [rbx]
call fcn.140044c70
mov qword [rbx], 0
mov rdi, qword [rsi + 0x20]
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14006fa43
lea rbx, [rsi + 0x20]
mov r14, qword [rsp + 0x48]
call fcn.140022b40
mov rcx, rdi
mov rdx, rbx
mov r8, r14
mov r9, rax
call fcn.140044ce0
mov rcx, qword [rbx]
call fcn.140044c70
mov qword [rbx], 0
mov rdi, qword [rsi + 0x18]
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14006fa7f
lea rbx, [rsi + 0x18]
mov r14, qword [rsp + 0x48]
call fcn.140022b40
mov rcx, rdi
mov rdx, rbx
mov r8, r14
mov r9, rax
call fcn.140044ce0
mov rcx, qword [rbx]
call fcn.140044c70
mov qword [rbx], 0
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140046090