joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400365c0
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 [0x140055018]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea eax, [rdi - 5]
mov ebp, 5
cmp eax, 1
jbe 0x14003661a
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400477a0
mov eax, ebp
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rsi, r8
mov r15, rdx
mov rbp, qword [rsp + 0x130]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0xb0], 0
mov dword [rsp + 0x50], 0x68
cmp qword [r9 + 0x18], 7
jbe 0x140036670
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 0x14003668b
mov rbp, qword [rbp]
mov rbx, qword [rsp + 0x138]
test rax, rax
cmove rbp, rax
cmp qword [rsi + 0x18], 7
jbe 0x1400366a4
mov rsi, qword [rsi]
mov r15, qword [r15]
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rsi
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebp, 5
test eax, eax
je 0x140036782
cmp edi, 6
mov r12d, 0x1fffff
mov esi, 0x101c01
cmove esi, r12d
mov r13, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x20], esi
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0
mov rcx, rax
mov rdx, r13
mov r8, r15
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rsi, qword [rbx + 8]
test eax, eax
je 0x140036799
add rbx, 8
cmp edi, 6
mov edi, 0x100c43
cmove edi, r12d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0
mov rcx, rax
mov rdx, rsi
mov r8, r15
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea ebp, [rcx + rcx*4]
test r14, r14
je 0x1400365f4
mov rcx, r14
call qword [sym.imp.mozglue.dll_free]
jmp 0x1400365f4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14, r14
jne 0x14003678b
jmp 0x1400365f4
Function at 0x1400367b0
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 0x140036847
mov rbx, rax
mov rdi, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
mov rdx, rbx
mov r8, rdi
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea eax, [rcx + rcx*4]
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
add rsp, 0x40
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x140038690
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 [0x140055018]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp byte [rcx + 0x54], 0
je 0x140038702
mov rsi, rdx
mov r12, rcx
lea rdx, [rcx + 0x48]
lea rcx, [rsp + 0x28]
lea r9, [rsp + 0x34]
mov r8d, 2
call fcn.140038850
mov r13, qword [rsp + 0x28]
test r13, r13
je 0x14003870c
cmp dword [r13], 0
je 0x140038818
lea rbx, [r13 + 8]
xor r14d, r14d
lea rax, [r12 + 0x30]
mov qword [rsp + 0x20], rax
jmp 0x140038741
mov esi, 0x3f0
jmp 0x140038822
mov esi, dword [rsp + 0x34]
jmp 0x140038822
mov rcx, qword [rsp + 0x20]
lea r8, [rsp + 0x38]
call fcn.1400209e0
nop word cs:[rax + rax]
nop
add r14, 1
mov eax, dword [r13]
cmp r14, rax
jae 0x140038818
mov rbp, r14
shl rbp, 4
test dword [rbx + rbp + 8], 0xc0000020
jne 0x140038730
add rbp, rbx
test rsi, rsi
je 0x140038763
mov rax, qword [rsi]
cmp qword [rsi + 8], rax
jne 0x1400387b5
mov rdx, qword [rbp]
lea rcx, [rsp + 0x38]
call fcn.14003ded0
mov rax, qword [r12 + 0x38]
mov rdx, qword [r12 + 0x40]
cmp rdx, rax
je 0x140038715
mov ecx, dword [rsp + 0x78]
mov dword [rax + 0x40], ecx
movups xmm0, xmmword [rsp + 0x38]
movups xmm1, xmmword [rsp + 0x48]
movups xmm2, xmmword [rsp + 0x58]
movups xmm3, xmmword [rsp + 0x68]
movups xmmword [rax + 0x30], xmm3
movups xmmword [rax + 0x20], xmm2
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
add qword [r12 + 0x38], 0x44
jmp 0x140038730
mov r15d, 1
xor ecx, ecx
nop dword [rax]
mov rdi, qword [rbp]
mov rdx, rcx
shl rdx, 6
lea rcx, [rdx + rcx*4]
add rcx, rax
call fcn.14003e300
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x140038730
mov ecx, r15d
mov rax, qword [rsi]
mov rdx, qword [rsi + 8]
sub rdx, rax
sar rdx, 2
movabs rdi, 0xf0f0f0f0f0f0f0f1
imul rdx, rdi
add r15d, 1
cmp rdx, rcx
ja 0x1400387c0
jmp 0x140038763
mov rcx, r13
call sub.mozglue.dll_void___cdecl_operator_delete___void____ptr64_
xor esi, esi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400477a0
mov eax, esi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14003cb70
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 0x14003f960
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
call fcn.14001efe0
test al, al
je 0x14003f98e
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 0x14003f9af
mov rcx, rdi
call fcn.14003d5e0
mov rcx, rdi
call sub.mozglue.dll_void___cdecl_operator_delete_void____ptr64_
lea rcx, [rsi + 0x58]
call fcn.140015920
mov rcx, qword [rsi + 0x50]
test rcx, rcx
je 0x14003f9c7
call qword [sym.imp.mozglue.dll_free]
mov rdi, qword [rsi + 0x38]
test rdi, rdi
je 0x14003f9e0
mov rcx, rdi
call fcn.14003d5e0
mov rcx, rdi
call sub.mozglue.dll_void___cdecl_operator_delete_void____ptr64_
lea rcx, [rsi + 0x28]
call fcn.140018cd0
lea rcx, [rsi + 0x20]
call fcn.140018cd0
lea rcx, [rsi + 0x18]
call fcn.140018cd0
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14001efa0
Function at 0x140040210
Capabilities:
Terminate process

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.14001efe0
test al, al
je 0x140040232
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 0x140041070
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x250
mov rdi, rcx
mov rax, qword [0x140055018]
xor rax, rsp
mov qword [rsp + 0x248], rax
call fcn.140040d20
mov ebx, 0x1126
test al, al
jne 0x1400412f4
movaps xmm0, xmmword [0x140049280]
movups xmmword [rsp + 0x238], xmm0
mov word [rsp + 0x228], 0
lea rsi, [rsp + 0x228]
mov rcx, rdi
mov rdx, rsi
call fcn.140041370
mov ebx, eax
cmp qword [rsp + 0x238], 3
jae 0x14004116d
xor ebp, ebp
lea rdi, [rsp + 0x228]
mov rcx, rdi
mov rdx, rdi
call fcn.140041460
mov esi, eax
mov eax, ebp
or al, sil
or bl, al
cmp bl, 1
jne 0x14004131c
test bpl, bpl
je 0x140041323
cmp qword [rsp + 0x240], 7
jbe 0x140041128
mov rdi, qword [rsp + 0x228]
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
je 0x140041353
lea rdi, [rsp + 0x20]
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov rsi, rax
add rsi, 0xffffffffffffffff
cmp qword [rsp + 0x240], 7
jbe 0x1400411ac
mov rcx, qword [rsp + 0x228]
jmp 0x1400411b4
cmp qword [rsp + 0x240], 7
jbe 0x140041180
mov rsi, qword [rsp + 0x228]
cmp word [rsi + 2], 0x3a
jne 0x1400410e5
cmp word [rsi + 4], 0x5c
jne 0x1400410e5
movzx eax, word [rsi]
and eax, 0xffffffdf
add eax, 0xffffffbf
cmp ax, 0x1a
setb bpl
jmp 0x1400410e7
lea rcx, [rsp + 0x228]
mov rdx, rdi
mov r8, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x14004131c
lea r12, [rsp + 0x228]
mov r14, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r15, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
cmp qword [rsp + 0x240], 7
mov rcx, r12
jbe 0x1400411f6
mov rcx, qword [rsp + 0x228]
call r14
cmp eax, 0xffffffff
je 0x140041280
test eax, 0x400
jne 0x140041318
mov rcx, qword [rsp + 0x238]
cmp qword [rsp + 0x240], 7
mov rax, r12
jbe 0x14004122b
mov rax, qword [rsp + 0x228]
mov rbx, 0xffffffffffffffff
test rcx, rcx
je 0x140041250
lea rdx, [rax + rcx*2]
add rdx, 0xfffffffffffffffe
cmp word [rax + rcx*2 - 2], 0x5c
jne 0x1400412a0
sub rdx, rax
sar rdx, 1
mov rbx, rdx
mov rdx, rbx
sub rdx, rcx
ja 0x1400412c9
mov qword [rsp + 0x238], rbx
mov word [rax + rbx*2], 0
cmp qword [rsp + 0x238], rsi
ja 0x1400411e0
jmp 0x1400412e2
call r15
mov ebx, eax
lea eax, [rbx - 1]
cmp eax, 3
jb 0x14004120d
cmp ebx, 0x7b
je 0x14004120d
jmp 0x1400412e7
lea rdi, [rcx + rcx]
mov ebp, 2
sub rbp, rdi
nop dword [rax]
test rbp, rbp
je 0x140041250
add rbp, 2
cmp word [rdx - 2], 0x5c
lea rdx, [rdx - 2]
jne 0x1400412b0
jmp 0x140041247
mov rcx, r12
xor r8d, r8d
call fcn.14001a5b0
cmp qword [rsp + 0x238], rsi
ja 0x1400411e0
mov ebx, 0x1126
lea rcx, [rsp + 0x228]
call fcn.1400115c0
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.1400477a0
mov eax, ebx
add rsp, 0x250
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x1400412e7
mov ebx, 0x7b
jmp 0x1400412e7
lea r8, [0x14004aff0]
lea rcx, [rsp + 0x228]
mov r9d, 4
xor edx, edx
call fcn.140026ff0
cmp qword [rsp + 0x240], 7
ja 0x140041120
jmp 0x140041128
test sil, sil
mov eax, 0x1126
mov ebx, 0x7b
cmovne ebx, eax
jmp 0x1400412e7
Function at 0x140042e90
Capabilities:
Query environment variable

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x140055018]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rcx, str.MOZ_ENABLE_HANDLE_VERIFIER
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140042fc1
movaps xmm0, xmmword [str.kernel32ext_ms_win_ntuser_windowstation_l1_1_0]
movaps xmmword [rsp + 0x30], xmm0
movabs rax, 0x6c006c0064002e
mov qword [rsp + 0x40], rax
mov word [rsp + 0x48], 0
cmp qword [0x140057880], 0
jne 0x140042ef8
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x140057880], rax
mov qword [rsp + 0x28], 0
lea rax, [0x1400578c8]
mov qword [rsp + 0x30], rax
lea rsi, [0x140057868]
mov qword [rsp + 0x38], rsi
lea rax, [0x14004be92]
mov qword [rsp + 0x40], rax
lea rax, [0x140042ff0]
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x50], 0
lea rcx, [0x1400578d0]
lea rdx, [0x140043090]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140042fc1
cmp qword [rsp + 0x28], 0
je 0x140042fc1
mov qword [rsp + 0x28], 0
lea rax, [0x1400578d8]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rsi
lea rax, [0x14004be82]
mov qword [rsp + 0x40], rax
lea rax, [0x140043020]
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x50], 0
lea rcx, [0x1400578e0]
lea rdx, [0x140043090]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140042fc1
cmp qword [rsp + 0x28], 0
jne 0x140042fcf
call sym.firefox.exe_GetHandleVerifier
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400477a0
nop
add rsp, 0x60
pop rsi
ret
Function at 0x140043370
Capabilities:
Allocate or change rwx memory

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xd8
mov rsi, r9
mov r14, r8
mov r8, rdx
mov rdi, rcx
mov rax, qword [0x140055018]
xor rax, rsp
mov qword [rsp + 0xd0], rax
lea rdx, [rsp + 0x68]
call fcn.140043560
mov r8d, dword [rdi + 0x10]
and r8d, 1
shl r8, 0x1e
lea rdx, [rsp + 0xb8]
mov rcx, rdi
mov r9d, r8d
call fcn.140045950
cmp byte [rsp + 0xc8], 0
je 0x140043519
call fcn.140045a20
lea rbx, [0x1400578f8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rsp + 0xc0]
lea rdx, [rsp + 0x80]
call fcn.1400463b0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [rsp + 0xb0], 0
je 0x14004351d
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x40], eax
movups xmm0, xmmword [rsp + 0x90]
movups xmmword [rsp + 0x48], xmm0
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0xa4]
mov qword [rsp + 0x5c], rax
mov al, byte [rsp + 0xac]
mov byte [rsp + 0x64], al
mov dword [rsp + 0x88], 0
mov byte [rsp + 0xac], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r14
lea rdx, [rsp + 0x68]
lea r8, [rsp + 0xb8]
lea r9, [rsp + 0x38]
mov rcx, rdi
call fcn.140043670
cmp qword [rsi], 0
setne sil
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400434c6
mov r8d, dword [rsp + 0x40]
test r8d, r8d
je 0x1400434c6
lea r9, [rsp + 0x40]
mov edx, dword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp byte [rsp + 0xb0], 0
je 0x1400434e8
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x1400434e0
mov r8d, dword [rsp + 0x88]
test r8d, r8d
jne 0x14004352b
mov byte [rsp + 0xb0], 0
cmp byte [rsp + 0xc8], 0
je 0x1400434fa
mov byte [rsp + 0xc8], 0
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1400477a0
mov eax, esi
add rsp, 0xd8
pop rbx
pop rdi
pop rsi
pop r14
ret
xor esi, esi
jmp 0x1400434fa
xor esi, esi
cmp byte [rsp + 0xc8], 0
jne 0x1400434f2
jmp 0x1400434fa
lea rdi, [rsp + 0x88]
mov edx, dword [rsp + 0xa8]
mov r9, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [rsp + 0x88], 0
mov byte [rsp + 0xac], 0
xorps xmm0, xmm0
movups xmmword [rdi + 8], xmm0
jmp 0x1400434e0
Function at 0x1400463b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140055018]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov ebx, dword [rcx + 0x10]
shl ebx, 7
mov edx, ebx
call fcn.1400464d0
test al, al
je 0x1400464a1
mov ecx, ebx
add rcx, qword [rdi]
mov qword [rsp + 0x28], rdi
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x50], 0x80
mov byte [rsp + 0x54], 1
mov edx, 0x80
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400464a7
mov r8, qword [rsp + 0x28]
test r8, r8
je 0x1400464b4
mov rdx, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov eax, dword [rsp + 0x30]
mov cl, byte [rsp + 0x54]
test cl, cl
je 0x14004645f
test rdx, rdx
je 0x14004645f
test rbx, rbx
je 0x14004645f
test eax, eax
je 0x14004645f
add dword [rdi + 0x10], 1
mov qword [rsi], r8
mov dword [rsi + 8], eax
mov qword [rsi + 0x10], rdx
mov qword [rsi + 0x18], rbx
mov eax, dword [rsp + 0x48]
mov dword [rsi + 0x20], eax
mov eax, dword [rsp + 0x4c]
mov dword [rsi + 0x24], eax
mov eax, dword [rsp + 0x50]
mov dword [rsi + 0x28], eax
mov byte [rsi + 0x2c], cl
mov byte [rsi + 0x30], 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400477a0
mov rax, rsi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov byte [rsi + 0x30], 0
jmp 0x140046489
mov dword [rsp + 0x30], 0
jmp 0x14004642d
mov eax, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov cl, byte [rsp + 0x54]
jmp 0x14004645b

Function at 0x1400468c0
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, 0x38
mov rbx, r9
mov rdi, r8
mov rsi, rcx
mov rax, qword [0x140055018]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov qword [rcx], rdx
movaps xmm0, xmmword [0x1400492c0]
movups xmmword [rcx + 0x10], xmm0
lea rax, [rcx + 0x20]
mov qword [rcx + 8], rax
call fcn.140008f40
lea rcx, [rdi + rbx]
add rcx, 0xffffffffffffffff
mov r14d, eax
mov rax, rcx
xor edx, edx
div r14
mov r13, rax
mov rax, rdi
xor edx, edx
div r14
sub r13, rax
inc r13
je 0x14004698d
mov rdi, rax
imul rdi, r14
xor ebx, ebx
lea r15, [rsp + 0x2c]
mov rbp, qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rax, [rsi + 8]
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov rdx, r14
mov r8d, 0x40
mov r9, r15
call rbp
test eax, eax
je 0x1400469ae
mov r12d, dword [rsp + 0x2c]
mov rax, qword [rsi + 0x10]
cmp rax, qword [rsi + 0x18]
je 0x1400469c0
mov rcx, qword [rsi + 8]
shl rax, 4
mov dword [rcx + rax], r12d
mov qword [rcx + rax + 8], rdi
add qword [rsi + 0x10], 1
add rbx, 1
add rdi, r14
cmp rbx, r13
jb 0x140046947
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400477a0
mov rax, rsi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov dword [rsp + 0x2c], 0
mov rcx, rsi
call fcn.1400469e0
jmp 0x14004698d
mov edx, 1
mov rcx, qword [rsp + 0x20]
call fcn.14000d670
test al, al
je 0x1400469b6
mov rax, qword [rsi + 0x10]
jmp 0x14004696b
Function at 0x14003173c
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x1400317b4
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x1400317b4
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x1400317b4
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x1400317a8
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x1400317c6
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140031796
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x1400317b6

Function at 0x140033300
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003334a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003334a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003334a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003334a
cmp dword [rcx + 0x84], 0xe
jbe 0x14003334a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14003334c
xor al, al
add rsp, 0x28
ret

Function at 0x14003c094
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14003bdf8

Function at 0x140045fb0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140045fd8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140045fd8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x100001738
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100001785
cmp rcx, 0xffffffffffffffff
je 0x100001785
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10000177d
cmp dword [rcx + 0x3c], edx
jl 0x10000177d
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10000177d
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x100001785
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140001430
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor ecx, ecx
lea rdx, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
xor esi, esi
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
test eax, eax
je 0x1400015aa
mov qword [rsp + 0x168], rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x170], rbp
mov rbx, 0xffffffffffffffff
mov qword [rdi + 0x18], rsi
nop
inc rbx
cmp byte [rax + rbx], sil
jne 0x1400014a0
movabs rbp, 0x7fffffffffffffff
cmp rbx, rbp
ja 0x1400015ba
cmp rbx, 0xf
ja 0x1400014e7
mov r8, rbx
mov qword [rdi + 0x10], rbx
lea rdx, [rsp + 0x30]
mov qword [rdi + 0x18], 0xf
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + rdi], sil
jmp 0x140001576
mov rax, rbx
or rax, 0xf
cmp rax, rbp
jbe 0x14000151c
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.1400048f0
test rax, rax
je 0x140001548
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140001557
mov ecx, 0x16
mov rbp, rax
cmp rax, rcx
cmovb rbp, rcx
lea rcx, [rbp + 1]
test rcx, rcx
je 0x140001557
cmp rcx, 0x1000
jb 0x14000154f
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400015c0
jmp 0x140001501
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400048f0
mov rsi, rax
mov r8, rbx
mov qword [rdi], rsi
lea rdx, [rsp + 0x30]
mov qword [rdi + 0x10], rbx
mov rcx, rsi
mov qword [rdi + 0x18], rbp
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + rbx], 0
mov rbx, qword [rsp + 0x168]
mov rax, rdi
mov rbp, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400048d0
mov rsi, qword [rsp + 0x178]
add rsp, 0x150
pop rdi
ret
mov qword [rdi + 0x18], 0xf
mov rax, rdi
mov byte [rdi], sil
jmp 0x140001589
call fcn.140001290
int3
call fcn.1400011f0
int3
Function at 0x1400015d0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x13f0
call fcn.140005870
sub rsp, rax
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x13e0], rax
mov edi, edx
mov rbx, rcx
mov qword [rsp + 0x40], rcx
xor esi, esi
mov dword [rsp + 0x20], esi
movups xmm0, xmmword [0x1400065c8]
movups xmmword [rsp + 0x28], xmm0
movzx eax, byte [0x1400065d8]
mov byte [rsp + 0x38], al
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov dword [rsp + 0x13d4], 0xffffffff
mov dword [rsp + 0x54], eax
mov ecx, 1
nop dword [rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rsp + rcx*4 + 0x54], edx
inc rcx
cmp rcx, 0x270
jb 0x140001640
mov dword [rsp + 0x50], 0x270
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], sil
mov dword [rsp + 0x20], 1
test edi, edi
jle 0x1400016e9
mov esi, 0x80000000
nop dword [rax]
lea rcx, [rsp + 0x50]
call fcn.1400046e0
mov eax, eax
shr rax, 0x1c
sub rax, rsi
xor rax, 0xffffffff80000000
movzx r9d, byte [rsp + rax + 0x28]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1400016db
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x1400016d0
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400016e3
mov rcx, rbx
call fcn.1400040c0
sub rdi, 1
jne 0x140001690
mov rax, rbx
mov rcx, qword [rsp + 0x13e0]
xor rcx, rsp
call fcn.1400048d0
lea r11, [rsp + 0x13f0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret