joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140015820
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 0x14001593b
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 0x14001591a
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 0x14001597c
mov ebp, dword [rsp + 0x20]
mov rax, qword [rsi + 0x10]
cmp rax, qword [rsi + 0x18]
je 0x14001598e
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 0x1400158d2
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14001d580
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.14001c1e0
cmp dword [0x140044f50], 0xffffffff
jne 0x140015888
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.14001c180
jmp 0x140015888
mov dword [rsp + 0x20], 0
mov rcx, rsi
call fcn.140039510
jmp 0x14001591a
mov rcx, r14
call fcn.140039600
test al, al
je 0x140015984
mov rax, qword [rsi + 0x10]
jmp 0x1400158fe
Function at 0x140015b90
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 0x140015dab
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 0x140015c58
cmp ecx, dword [rdi + 0x10]
jae 0x140015dab
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 0x140015d29
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 0x140015dab
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 0x140015d6a
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 0x140015dc2
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x140015dcf
mov rdx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov ebx, dword [rsp + 0x30]
mov al, byte [rsp + 0x5c]
test rdx, rdx
je 0x140015cd8
test rbp, rbp
je 0x140015cd8
test ebx, ebx
je 0x140015cd8
test al, al
je 0x140015cd8
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.14001d580
mov rax, rsi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x140044f50]
call fcn.14001c1e0
cmp dword [0x140044f50], 0xffffffff
jne 0x140015bfe
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.14001c180
jmp 0x140015bfe
lea rcx, [0x140044f50]
call fcn.14001c1e0
cmp dword [0x140044f50], 0xffffffff
jne 0x140015c4b
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.14001c180
jmp 0x140015c4b
xorps xmm0, xmm0
movups xmmword [rsi + 0x30], xmm0
movups xmmword [rsi + 0x20], xmm0
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi], xmm0
jmp 0x140015d10
mov dword [rsp + 0x30], 0
jmp 0x140015ca3
mov ebx, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov al, byte [rsp + 0x5c]
jmp 0x140015cd5
Function at 0x140015df0
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov r15, r9
mov rbp, r8
mov r13, rdx
mov rbx, rcx
mov rax, qword [0x140043010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov eax, dword [0x140044f64]
mov ecx, dword [0x1400431a8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140015f60
xor esi, esi
test r13, r13
je 0x140015f39
cmp r15, rbp
jbe 0x140015f39
mov r12d, dword [0x140044f60]
lea rsi, [rsp + 0x44]
mov dword [rsi], 0
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand_s]
mov rax, r15
sub rax, rbp
sub rax, r13
xor edx, edx
div r12
mov rcx, rax
mov eax, dword [rsi]
inc rcx
xor edx, edx
div rcx
mov rdi, rdx
imul rdi, r12
mov qword [rsp + 0x30], rbp
add rdi, rbp
sub r15, r13
cmp rdi, r15
mov qword [rsp + 0x38], rbx
ja 0x140015fc2
lea rsi, [rsp + 0x48]
lea rbp, [rsp + 0x50]
lea r14, [r12 - 1]
mov rdx, rdi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], 0x30
mov rcx, rbx
xor r8d, r8d
mov r9, rbp
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
js 0x14001606b
cmp qword [rsp + 0x48], 0x30
jne 0x140016079
mov r9, rbp
mov r8, rsi
cmp dword [rsp + 0x70], 0x10000
jne 0x140015fa1
mov rdx, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x68]
mov rcx, rdx
neg rcx
and rcx, r14
lea rbp, [rcx + rdx]
mov rax, rbx
sub rax, rcx
cmp rax, r13
mov esi, 0
cmovae rsi, rbp
cmp rbx, rcx
jb 0x140015fab
test rsi, rsi
je 0x140015fab
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14001d580
mov rax, rsi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x140044f64]
call fcn.14001c1e0
cmp dword [0x140044f64], 0xffffffff
jne 0x140015e46
lea rsi, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsi + 0x28]
mov dword [0x140044f60], eax
lea rcx, [0x140044f64]
call fcn.14001c180
jmp 0x140015e46
mov rdx, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x68]
add rdx, rbx
cmp rdx, r15
mov rbx, qword [rsp + 0x38]
mov rsi, r8
mov rbp, r9
jbe 0x140015ec2
cmp rdi, qword [rsp + 0x30]
jbe 0x140016079
dec r12
lea r14, [rsp + 0x48]
lea r15, [rsp + 0x50]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], 0x30
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
xor r8d, r8d
mov r9, r15
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
js 0x14001606b
cmp qword [rsp + 0x48], 0x30
jne 0x140016079
cmp dword [rsp + 0x70], 0x10000
jne 0x14001604e
mov rax, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x68]
mov rcx, rax
neg rcx
and rcx, r12
mov rbx, rax
lea rdx, [rcx + rax]
mov rax, rbp
sub rax, rcx
cmp rax, r13
mov esi, 0
cmovae rsi, rdx
cmp rbp, rcx
jb 0x140016058
test rsi, rsi
je 0x140016058
jmp 0x140015f39
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x68]
add rbx, rbp
mov qword [rsp + 0x30], rbx
cmp rbx, rdi
jb 0x140015fda
jmp 0x140016079
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov ecx, eax
call sub.ntdll.dll_RtlSetLastWin32Error
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
jmp 0x140015f39
Function at 0x1400191a0
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x140043010]
xor rax, rsp
mov qword [rsp + 0x58], 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 0x1400191f0
mov esi, dword [0x140044f4c]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001d580
mov eax, esi
add rsp, 0x60
pop rsi
ret
lea rcx, [0x140044f50]
call fcn.14001c1e0
cmp dword [0x140044f50], 0xffffffff
jne 0x1400191d5
lea rsi, [rsp + 0x28]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsi + 4]
mov dword [0x140044f4c], eax
lea rcx, [0x140044f50]
call fcn.14001c180
jmp 0x1400191d5
Function at 0x14001ec00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [rcx + 8]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x14001ec37
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x14001ec37
movzx edx, word [rax + rcx + 0x14]
cmp edx, 0xf0
jne 0x14001ec37
movzx eax, word [rax + rcx + 0x18]
cmp eax, 0x20b
sete al
ret
xor eax, eax
jmp 0x14001ec36

Function at 0x14001f980
Capabilities:
Query environment variable

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x140043010]
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
jne 0x14001f9bf
call fcn.14001fad0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001d580
nop
add rsp, 0x60
pop rsi
ret
movaps xmm0, xmmword [0x14003b070]
movaps xmmword [rsp + 0x30], xmm0
movabs rax, 0x6c006c0064002e
mov qword [rsp + 0x40], rax
mov word [rsp + 0x48], 0
cmp qword [0x140044ed8], 0
jne 0x14001f9fd
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x140044ed8], rax
lea r9, [rsp + 0x28]
mov qword [r9], 0
lea rax, [0x140044f28]
lea r8, [rsp + 0x30]
mov qword [r8], rax
lea rsi, [0x140044eb8]
mov qword [r8 + 8], rsi
lea rax, [0x14003b9b1]
mov qword [r8 + 0x10], rax
lea rax, [0x1400387c0]
mov qword [r8 + 0x18], rax
mov byte [r8 + 0x20], 0
lea rcx, [0x140044f30]
lea rdx, [0x140038860]
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14001f9a6
cmp qword [rsp + 0x28], 0
je 0x14001f9a6
lea r9, [rsp + 0x28]
mov qword [r9], 0
lea rax, [0x140044f38]
lea r8, [rsp + 0x30]
mov qword [r8], rax
mov qword [r8 + 8], rsi
lea rax, [0x14003b9a1]
mov qword [r8 + 0x10], rax
lea rax, [0x1400387f0]
mov qword [r8 + 0x18], rax
mov byte [r8 + 0x20], 0
lea rcx, [0x140044f40]
lea rdx, [0x140038860]
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14001f9a6
cmp qword [rsp + 0x28], 0
jne 0x14001f9ab
jmp 0x14001f9a6
Function at 0x1400224b0
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.140022770
test rdi, rdi
je 0x140022514
test al, al
je 0x140022514
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 0x140022514
test rcx, rcx
js 0x140022514
cmp qword [rsi + 0x10], rax
jb 0x140022514
mov rcx, rsi
mov edx, ebx
mov r8, rdi
mov r9, r14
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140022780
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140022780
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov r14, r9
mov r15, r8
mov edi, edx
mov rsi, rcx
mov rax, qword [0x140043010]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor eax, eax
cmp dword [rcx + 8], 0
setne al
mov ebp, edx
sar ebp, 0x1f
lea r12d, [rax + rax]
add r12d, 4
mov rcx, qword [rcx]
mov qword [rsp + 0x20], r8
mov edx, r12d
mov r8d, ebp
mov r9d, edi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
mov qword [r14], rax
test rax, rax
je 0x140022835
mov rdi, qword [rsp + 0xc0]
lea rsi, [rsp + 0x28]
mov r8d, 0x30
mov rcx, rbx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rcx, qword [rsi + 0x18]
sub rcx, rbx
add rcx, qword [rsi + 8]
test rax, rax
cmove rcx, rax
mov qword [rdi], rcx
mov sil, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001d580
mov eax, esi
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, qword [rsi]
mov qword [rsp + 0x20], r15
mov edx, r12d
mov r8d, ebp
mov r9d, edi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
mov qword [r14], rax
test rax, rax
jne 0x1400227e0
xor esi, esi
jmp 0x140022817

Function at 0x140025060
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x140043038]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140025090
movsxd rcx, dword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 4]
jne 0x140025090
mov rax, qword [rax + rcx]
jmp 0x140025092
xor eax, eax
add rsp, 0x20
pop rsi
ret
Function at 0x14002d1e0
Capabilities:
Create pipe

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r15, qword [rsp + 0xc8]
mov rax, qword [0x140043010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [r15], 0xffffffffffffffff
mov esi, 5
cmp ecx, 3
jne 0x14002d2bf
mov edi, dword [rsp + 0xc0]
mov ebx, dword [rsp + 0xb8]
mov ecx, dword [rsp + 0xb0]
mov r10d, dword [rsp + 0xa8]
mov eax, dword [rsp + 0xa0]
cmp qword [r8 + 0x18], 8
jb 0x14002d245
mov r8, qword [r8]
mov rsi, qword [rdx]
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ecx
mov qword [rsp + 0x38], 0
mov rcx, r8
mov edx, r9d
mov r8d, eax
mov r9d, r10d
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp rax, 0xffffffffffffffff
je 0x14002d2da
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor ebx, ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0x30], 3
lea r14, [rsp + 0x40]
mov rcx, rax
mov rdx, rdi
mov r8, rsi
mov r9, r14
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
cmp eax, 1
sbb rbx, rbx
or rbx, qword [r14]
mov qword [r15], rbx
xor eax, eax
cmp rbx, 0xffffffffffffffff
sete al
lea esi, [rax + rax*4]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14001d580
mov eax, esi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rbx, 0xffffffffffffffff
jmp 0x14002d2b0

Function at 0x14002f890
Capabilities:
Read file via mapping

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov edi, edx
mov rsi, rcx
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov dword [rsp + 0x20], edx
mov qword [rsp + 0x28], 0
mov rcx, 0xffffffffffffffff
xor edx, edx
mov r8d, 0x8000004
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, rsi
mov rdx, rax
call fcn.1400098a0
mov rcx, qword [rsi]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x14002f8fa
mov eax, edi
mov qword [rsp + 0x20], rax
mov edx, 6
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi + 8], rax
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x140031fc0
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 [0x140043010]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea eax, [rdi - 7]
mov ebp, 5
cmp eax, 0xfffffffe
jae 0x14003201a
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14001d580
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
xor r12d, r12d
mov qword [rsp + 0xb0], r12
mov dword [rsp + 0x50], 0x68
cmp qword [r9 + 0x18], 8
jb 0x14003206f
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], 8
jb 0x14003208a
mov rbp, qword [rbp]
mov rbx, qword [rsp + 0x138]
test rax, rax
cmove rbp, rax
cmp qword [rsi + 0x18], 8
jb 0x1400320a3
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], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
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 0x140032177
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]
test eax, eax
je 0x14003218e
cmp edi, 6
mov edi, 0x100c43
cmove edi, r12d
mov rsi, qword [rbx + 8]
add rbx, 8
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 0x140031ff4
mov rcx, r14
call qword [sym.imp.mozglue.dll_free]
jmp 0x140031ff4
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140032177
Function at 0x1400321a0
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
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 r14d, r14d
xor edx, edx
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
je 0x140032238
mov rbx, rax
mov rdi, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
mov dword [rsp + 0x30], 3
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, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x140037cc0
Capabilities:
Terminate process

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.140008980
test al, al
je 0x140037ce2
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 0x140039510
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov rax, qword [0x140043010]
xor rax, rsp
mov qword [rsp + 0x50], 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 0x1400395b4
mov rbx, qword [rsi + 0x10]
test rbx, rbx
je 0x140039590
mov rdi, qword [rsi + 8]
shl rbx, 4
add rbx, rdi
mov r15d, dword [0x140044f4c]
lea r14, [rsp + 0x20]
mov r12, qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, dword [rdi]
mov rcx, qword [rdi + 8]
mov rdx, r15
mov r9, r14
call r12
add rdi, 0x10
cmp rdi, rbx
jne 0x140039577
mov qword [rsi + 0x10], 0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14001d580
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [0x140044f50]
call fcn.14001c1e0
cmp dword [0x140044f50], 0xffffffff
jne 0x140039550
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.14001c180
jmp 0x140039550
Function at 0x140007b3c
Capabilities:
Encode data using xor

Disassembly:
sub al, 0xa7
push rbp
test cl, dl
in eax, 0xd7
rcr byte [rcx + 0x10585953], cl
xchg r12, rax
add dword [rbp + 0x20], esp
xchg r11, rax
test byte [rdi - 0x37], dh
movabs eax, dword [0x573d8cd1636fbe48]
push rax
mov bh, 4
xor cl, dh
sub eax, 0x73fd9523
out 0xfa, al
jbe 0x140007b0a
mov dword [rcx + 0x14], esp
and dword [rax + 0x1d], esp
iretd

Function at 0x140020064
Capabilities:
Encode data using xor

Disassembly:
push rbx
pop rcx
pop rax
adc byte [rdi - 0x63], bh
add dword [rbp - 0x40], esp
mov ecx, 0x11762603
in al, dx
xchg dh, ah
push 0xffffffffffffffd1
invalid

Function at 0x1400204e0
Capabilities:
Encode data using xor

Disassembly:
sub al, 0x86
adc dword [rdx - 0x666a1b3d], 0x1e
or ecx, esp
xor dh, byte [rbp - 5]
mov bh, 0x61
test byte [r15 + 3], r11b
and al, 0xbe
push rsp
xor eax, 0x6029a284
ror dword [rdi + rdi + 0xb9f504f], 1
xor cl, dh
int 0xa9
adc bl, dl
or edx, dword [rcx + rbx*2]
js 0x1400204c4
ror dword [riz*2 + 0x4cc8aad8], cl
js 0x1400204bb
jmp 0x18044f3e4

Function at 0x14002061c
Capabilities:
Encode data using xor

Disassembly:
xchg ecx, eax
movabs rdi, 0xcccdcfde31c6091a
xor al, 0x40
pop rcx
and al, 0xe6
xor cl, byte [rsi + rdi*2]
lea esp, [rdx - 0x571e14a0]
mov cl, byte [rbx + 0x36]
imul byte [rdx]
cmp eax, 0x2d6ca645
pop rbp
int 0xfd
jae 0x14002061d
int3

Function at 0x140029548
Capabilities:
Encode data using xor

Disassembly:
movabs dword [0x3fcea0f500f3f8c], eax
out 0x96, al
xchg ecx, eax
invalid
xchg ebx, eax
add dword [rbp - 0x40], esp
leave
wait
and eax, 0xec2e1176
xchg byte [rsi - 0x65bb2ea0], bl
mov ebp, 0x1b02c0c4
jecxz 0x140029483
shl qword [rbx - 0x13321a], 0x4c
in eax, dx
movsd dword [rdi], dword [rsi]
xchg ebx, eax
cmp cl, byte [rsi - 0x22]
invalid
or edx, dword [rdx + rcx*2 - 0x644ebe53]
xchg ebp, eax
invalid
js 0x140029538
jb 0x1400294d5
pop rbp
mov bl, 0xcc
in al, dx
jmp 0xf81c6009

Function at 0x1400388bc
Capabilities:
Encode data using xor

Disassembly:
cmp dl, byte [rdi]
push 0xffffffff9622415c
xor al, 0xec
je 0x1400388c3
xchg ebx, eax
popfq
or ecx, dword [rbx + 0x2412968c]
pop rsi
push 0xffffffffffffff93
xchg ecx, eax
sbb edi, ecx
stc
retf

Function at 0x140041b4c
Capabilities:
Encode data using xor

Disassembly:
clc
movabs byte [0x16e6980147d8e2b8], al
sub al, 0x87
scasb al, byte [rdi]
cmpsd dword [rsi], dword [rdi]
sbb eax, 0xa9ab9ccd
mov edi, 0x6a163202
push rsi
mov ebp, 0x93555336
xor al, 0x3a
push rbx
add ebp, dword [rbp - 0x52b17c9f]
invalid
out dx, al
shr dword [rdx - 0x378ade5c], 1
or esp, dword [rdx - 0x44]
jmp 0x140041b76
loop 0x140041b08
adc ah, byte [rbx + 0x1c6d21f3]
mov gs, word [0x10ad6fe2d]
sahf
adc eax, 0x193bdb3
fadd dword gs:[rbx]
leave
push 0x7e
leave
movabs eax, dword [0xaeb244e18e066260]
loop 0x140041b9e
push rsi
jae 0x140041bc4
in al, dx
xchg ecx, eax
pop rsp
imul esp
adc eax, 0x86db8d75
xor qword cs:[rdi - 0x57], r9
insb byte [rdi], dx
cmp eax, 0xd571a50b
mov ss, word [rsi]
leave
lahf
cmp byte [rcx], dh
invalid
nop
or al, 0x11
push rcx
lodsb al, byte [rsi]
sub esp, esi
out dx, al
ret 0x43ad