joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140034130
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x258
mov rdi, rcx
mov rax, qword [0x14005c018]
xor rax, rsp
mov qword [rsp + 0x250], rax
call fcn.140034b10
mov ebx, 0x1126
test al, al
je 0x14003418c
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14001bc70
mov eax, ebx
add rsp, 0x258
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rsi, [rsp + 0x230]
mov qword [rsi + 0x10], 0
mov qword [rsi + 0x18], 7
mov word [rsi], 0
mov rcx, rdi
mov rdx, rsi
call fcn.14004b040
mov ebx, eax
mov rcx, rsi
call fcn.14004b130
mov ebp, eax
mov rcx, rsi
mov rdx, rsi
call fcn.14004b170
mov edi, eax
test bl, bl
jne 0x1400341f2
test bpl, bpl
jne 0x1400341f2
mov ebx, 0x7b
test dil, dil
jne 0x1400341f2
lea rcx, [rsp + 0x230]
call fcn.140002c90
jmp 0x140034166
test bpl, bpl
je 0x1400343a5
cmp qword [rsp + 0x248], 7
jbe 0x14003420e
mov rsi, qword [rsp + 0x230]
lea rdx, [rsp + 0x20]
mov rcx, rsi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
je 0x14003424e
lea rdi, [rsp + 0x20]
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov rsi, rax
dec rsi
cmp qword [rsp + 0x248], 7
jbe 0x140034260
mov rcx, qword [rsp + 0x230]
jmp 0x140034268
test dil, dil
mov eax, 0x1126
mov ebx, 0x7b
cmovne ebx, eax
jmp 0x1400341e0
lea rcx, [rsp + 0x230]
mov rdx, rdi
mov r8, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
mov ebx, 0x7b
test eax, eax
jne 0x1400341e0
lea r13, [rsp + 0x230]
mov r15, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14, qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rsp + 0x248], 7
mov rcx, r13
jbe 0x1400342ad
mov rcx, qword [rsp + 0x230]
call r15
cmp eax, 0xffffffff
je 0x14003433a
bt eax, 0xa
jb 0x14003439e
cmp qword [rsp + 0x248], 7
mov rax, r13
jbe 0x1400342d9
mov rax, qword [rsp + 0x230]
mov rcx, qword [rsp + 0x240]
mov rdi, 0xffffffffffffffff
test rcx, rcx
je 0x140034307
lea rdx, [rax + rcx*2]
add rdx, 0xfffffffffffffffe
cmp word [rdx], 0x5c
jne 0x140034355
mov rbx, rdx
sub rbx, rax
sar rbx, 1
mov rdi, rbx
mov rdx, rdi
sub rdx, rcx
jbe 0x14003431c
mov rcx, r13
xor r8d, r8d
call fcn.140003270
jmp 0x14003432a
mov qword [rsp + 0x240], rdi
mov word [rax + rdi*2], 0
cmp qword [rsp + 0x240], rsi
ja 0x140034297
jmp 0x140034394
call r14
lea ecx, [rax - 1]
cmp ecx, 3
jae 0x14003437a
mov ebx, r12d
cmp ecx, 3
jae 0x140034383
mov r12d, ebx
jmp 0x1400342c3
lea rbx, [rcx + rcx]
mov ebp, 2
sub rbp, rbx
test rbp, rbp
je 0x140034307
lea rbx, [rdx - 2]
add rbp, 2
cmp word [rdx - 2], 0x5c
mov rdx, rbx
jne 0x140034361
jmp 0x1400342fe
mov ebx, eax
cmp eax, 0x7b
je 0x140034345
jmp 0x140034348
mov r12d, ebx
cmp eax, 0x7b
je 0x1400342c3
jmp 0x1400341e0
mov ebx, 0x1126
jmp 0x1400341e0
xor ebx, ebx
jmp 0x1400341e0
lea r8, str.._
lea rcx, [rsp + 0x230]
mov r9d, 4
xor edx, edx
call fcn.140034820
jmp 0x1400341fb

Function at 0x140038800
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 0x140038ed0
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 rbx
sub rsp, 0x160
mov rsi, rcx
mov rax, qword [0x14005c018]
xor rax, rsp
mov qword [rsp + 0x158], rax
test dl, dl
jne 0x140038f2d
xor ebx, ebx
cmp qword [rsi + 0x10], 0
jne 0x140038f8c
mov rcx, qword [rsp + 0x158]
xor rcx, rsp
call fcn.14001bc70
mov eax, ebx
add rsp, 0x160
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, str.TargetNtMapViewOfSection64
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0
lea rdi, [0x14004f940]
lea r8, [0x140050cbf]
mov rcx, rsi
mov rdx, rdi
mov r9d, 1
call fcn.140031930
lea rax, str.TargetNtUnmapViewOfSection64
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 1
lea r8, [0x140050caa]
mov rcx, rsi
mov rdx, rdi
mov r9d, 1
call fcn.140031930
mov rax, qword [rsi]
mov r14, qword [rax]
mov dword [rsp + 0x20], 1
mov r13, qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r8d, 0x10000
mov rcx, r14
xor edx, edx
mov r9d, 0x2000
call r13
mov r12, rax
mov rdi, qword [rsi + 0x10]
shl rdi, 6
lea r15, [rdi + 0x60]
mov rcx, r15
call fcn.140038720
mov rbx, rax
mov rax, 0xfffffffffffff000
mov rcx, rbx
and rcx, rax
lea rdx, [rcx + r12]
and ebx, 0xfff
add rdi, 0x105f
and rdi, rax
mov dword [rsp + 0x20], 0x40
mov rcx, r14
mov r8, rdi
mov r9d, 0x1000
call r13
mov rdi, rax
test rax, rax
jne 0x140039038
lea rdx, str._builds_worker_checkouts_gecko_security_sandbox_chromium_sandbox_win_src_interception.cc
lea r9, str.thunk_base
lea r12, [rsp + 0x40]
mov rcx, r12
mov r8d, 0x188
call fcn.140024d10
mov rcx, r12
call fcn.140024d60
add rdi, rbx
lea rbx, [rsp + 0x40]
mov qword [rbx], r15
mov dword [rbx + 0x18], 0
mov qword [rbx + 8], 0x20
lea rcx, [sym.firefox.exe_g_originals]
mov r8d, 0x150
xor edx, edx
call sub.ntdll.dll_memset
mov rcx, rsi
mov rdx, rdi
mov r8, r15
mov r9, rbx
call fcn.140039350
mov ebx, eax
test eax, eax
jne 0x140038f08
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
mov r9d, 0x20
mov rcx, r14
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ebx, 0x2a
test eax, eax
je 0x140038f08
cmp qword [rsp + 0x38], 0x20
jne 0x140038f08
lea rax, [rsp + 0x34]
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 [rsi]
lea rdx, str.g_originals
lea r8, [sym.firefox.exe_g_originals]
mov r9d, 0x150
call fcn.140036050
mov ebx, eax
jmp 0x140038f08
Function at 0x14003c9a0
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 [0x14005c018]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [r15], 0xffffffffffffffff
cmp ecx, 3
jne 0x14003ca8b
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], 7
jbe 0x14003ca00
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 0x14003caa9
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.14001bc70
mov eax, esi
jmp 0x14003ca9d
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14001bc70
mov eax, 5
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rbx, 0xffffffffffffffff
jmp 0x14003ca6b

Function at 0x140041080
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.1400039a0
mov rcx, qword [rsi]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x1400410ea
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 0x140042970
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 [0x14005c018]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea eax, [rdi - 5]
mov ebp, 5
cmp eax, 1
jbe 0x1400429ca
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14001bc70
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], 7
jbe 0x140042a1f
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 0x140042a3a
mov rbp, qword [rbp]
mov rbx, qword [rsp + 0x138]
test rax, rax
cmove rbp, rax
cmp qword [rsi + 0x18], 7
jbe 0x140042a53
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 0x140042b27
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 0x140042b3e
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 0x1400429a4
mov rcx, r14
call qword [sym.imp.mozglue.dll_free]
jmp 0x1400429a4
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140042b27
Function at 0x140042bd0
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 0x140042c68
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 0x140044ac0
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 [0x14005c018]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov ebx, 0x3f0
cmp byte [rcx + 0x6c], 0
jne 0x140044b16
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14001bc70
mov eax, ebx
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rsi, rdx
mov rdi, rcx
lea rdx, [rcx + 0x60]
lea rbx, [rsp + 0x28]
lea r9, [rsp + 0x34]
mov rcx, rbx
mov r8d, 2
call fcn.140044c50
mov r15, qword [rbx]
test r15, r15
je 0x140044c3e
cmp dword [r15], 0
je 0x140044c2f
lea r13, [r15 + 8]
xor r12d, r12d
lea rax, [rdi + 0x30]
mov qword [rsp + 0x20], rax
mov rbp, r12
shl rbp, 4
test dword [r13 + rbp + 8], 0xc0000020
je 0x140044b80
inc r12
mov eax, dword [r15]
cmp r12, rax
jb 0x140044b5e
jmp 0x140044c2f
add rbp, r13
test rsi, rsi
je 0x140044be7
mov rax, qword [rsi]
cmp qword [rsi + 8], rax
je 0x140044be7
mov r14d, 1
xor ecx, ecx
mov rbx, qword [rbp]
mov rdx, rcx
shl rdx, 6
lea rcx, [rdx + rcx*4]
add rcx, rax
call fcn.14001d1c0
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x140044b70
mov ecx, r14d
mov rax, qword [rsi]
mov rdx, qword [rsi + 8]
sub rdx, rax
sar rdx, 2
movabs rbx, 0xf0f0f0f0f0f0f0f1
imul rdx, rbx
inc r14d
cmp rdx, rcx
ja 0x140044b99
mov rdx, qword [rbp]
lea rbx, [rsp + 0x38]
mov rcx, rbx
call fcn.14002c5a0
mov rcx, qword [rdi + 0x38]
mov rdx, qword [rdi + 0x40]
cmp rdx, rcx
je 0x140044c1d
mov r8d, 0x44
mov rdx, rbx
call sub.ntdll.dll_memcpy
add qword [rdi + 0x38], 0x44
jmp 0x140044b70
mov rcx, qword [rsp + 0x20]
mov r8, rbx
call fcn.14002d4a0
jmp 0x140044b70
mov rcx, r15
call sub.mozglue.dll_void___cdecl_operator_delete___void____ptr64_
xor ebx, ebx
jmp 0x140044af0
mov ebx, dword [rsp + 0x34]
jmp 0x140044af0
Function at 0x140048d40
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 [0x14005c018]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea r12, [rsp + 0x34]
mov qword [rsp + 0x20], r12
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x140048dda
lea rbp, [rsp + 0x28]
mov qword [rsp + 0x20], rbp
mov rcx, rbx
mov rdx, rdi
mov r8, r14
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r14d, eax
mov r15, qword [rbp]
mov r9d, dword [rsp + 0x34]
mov qword [rsp + 0x20], r12
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x140048dda
test r14d, r14d
setne al
cmp r15, rsi
sete sil
and sil, al
jmp 0x140048ddc
xor esi, esi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14001bc70
mov eax, esi
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x14004be30
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 [0x14005c018]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov eax, dword [0x14005cb64]
mov ecx, dword [0x14005c2c8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004bed6
mov rbx, qword [rsi + 0x10]
test rbx, rbx
jne 0x14004be9d
mov qword [rsi + 0x10], 0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14001bc70
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rdi, qword [rsi + 8]
shl rbx, 4
add rbx, rdi
mov r15d, dword [0x14005cb60]
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
je 0x14004be79
jmp 0x14004bebb
lea rcx, [0x14005cb64]
call fcn.14001aa20
cmp dword [0x14005cb64], 0xffffffff
jne 0x14004be70
lea rdi, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rdi + 4]
mov dword [0x14005cb60], eax
lea rcx, [0x14005cb64]
call fcn.14001a9c0
jmp 0x14004be70
Function at 0x1400110a0
Capabilities:
Create thread
Inject thread

Disassembly:
jmp 0x140011a90
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x40]
lea rcx, [0x14002316e]
call fcn.14001139d
mov r8d, dword [rbp + 0x160]
xor edx, edx
mov ecx, 0x2a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140011adc
mov eax, 0xffffffff
jmp 0x140011b8a
mov rcx, qword [rbp + 0x168]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax + rax + 2]
mov dword [rbp + 0x44], eax
mov eax, dword [rbp + 0x44]
mov dword [rsp + 0x20], 4
mov r9d, 0x1000
mov r8d, eax
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x140011b22
mov eax, 0xffffffff
jmp 0x140011b8a
mov eax, dword [rbp + 0x44]
mov qword [rsp + 0x20], 0
mov r9d, eax
mov r8, qword [rbp + 0x168]
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rbp + 0x28]
mov qword [rsp + 0x20], rax
mov r9, qword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x140011b88
mov eax, 0xffffffff
jmp 0x140011b8a
xor eax, eax
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret

Function at 0x140011217
Capabilities:
Terminate process

Disassembly:
jmp 0x140013000
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011299
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014390
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400143b0
xor al, al
jmp 0x140014431
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400143c3
xor al, al
jmp 0x140014431
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400143ed
xor al, al
jmp 0x140014431
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014401
xor al, al
jmp 0x140014431
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014413
xor al, al
jmp 0x140014431
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001442f
xor al, al
jmp 0x140014431
mov al, 1
add rsp, 0x38
ret
Function at 0x14000e4a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x14000e501
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x14000e4c0
mov ecx, dword [r9]
jmp 0x14000e5eb
cmp ecx, 0x4e0
jb 0x14000e5eb
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x14000e520
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x14000e570
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x14000ec40
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
sub rsp, 0x180
lea rbp, [rsp + 0x70]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x1400ab0c0]
xor rax, rsp
mov qword [rbp + 0x100], rax
xorps xmm0, xmm0
mov dword [rbp + 0x60], 0x68
xor eax, eax
cmp qword [rcx + 0x18], 0xf
movups xmmword [rbp + 0x64], xmm0
mov dword [rbp + 0xc4], eax
movups xmmword [rbp + 0x74], xmm0
mov qword [rbp + 0x50], rax
movups xmmword [rbp + 0x84], xmm0
movups xmmword [rbp + 0x94], xmm0
movups xmmword [rbp + 0xa4], xmm0
movups xmmword [rbp + 0xb4], xmm0
movups xmmword [rbp + 0x40], xmm0
jbe 0x14000ecaf
mov rcx, qword [rcx]
lea rax, [rbp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rbp + 0x60]
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x14000edea
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
movabs rdx, 0xa6b2c0d318406af6
movabs rax, 0xd261ecc0d5105b2c
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x20], rax
movabs rax, 0x8fc38686d11716ab
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x28], rax
movabs rax, 0x5b06dbd0baae78b0
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x30], rax
mov qword [rbp], rdx
mov rax, qword [rbp]
mov qword [rbp + 0x38], rax
movabs rax, 0xa03189b4b475296f
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0xe0], rax
movabs rax, 0xeea5a6f5a27275c4
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0xe8], rax
movabs rax, 0x5b06fbeadecb14d9
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0xf0], rax
mov qword [rbp], rdx
lea rdx, [rbp + 0x20]
mov rax, qword [rbp]
mov qword [rbp + 0xf8], rax
vmovdqu ymm0, ymmword [rbp + 0xe0]
vpxor ymm1, ymm0, ymmword [rbp + 0x20]
vmovdqa ymmword [rbp + 0x20], ymm1
vzeroupper
call fcn.140001e50
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140006f30]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor al, al
jmp 0x14000ee00
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.1400858a0
mov rbx, qword [rsp + 0x198]
add rsp, 0x180
pop rbp
ret