joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400012bc
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rdi, rcx
mov ecx, dword [rcx + 0x18]
mov rax, qword [rdi + 0x10]
lea r8, [rax + rcx]
cmp r8, rax
jb 0x140001422
mov rax, qword [rdi + 8]
lea rdx, [rax + rcx]
cmp rdx, rax
jb 0x140001422
mov rax, qword [sym.imp.ntoskrnl.exe_MmHighestUserAddress]
mov rcx, qword [rax]
cmp r8, rcx
ja 0x140001422
cmp rdx, rcx
ja 0x140001422
and qword [rbp + 0x30], 0
cmp dword [rdi + 0x1c], 0
mov eax, dword [rdi]
je 0x1400013cc
test eax, eax
je 0x1400013c5
mov ecx, eax
lea rdx, [rbp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
jne 0x140001427
mov rcx, qword [rbp + 0x30]
call fcn.140001c48
mov rcx, qword [rbp + 0x30]
mov r15, rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov esi, dword [rdi + 0x18]
xor r14d, r14d
jmp 0x1400013bc
mov rdx, qword [rdi + 0x10]
mov rcx, r15
add rdx, r14
call fcn.140001cf4
test rax, rax
je 0x1400013c5
and qword [rbp + 0x38], 0
lea r9, [rbp + 0x38]
mov rcx, rax
mov edx, 0x1000
and ecx, 0xfff
mov r8, rsi
sub rdx, rcx
mov rcx, rax
cmp rdx, rsi
cmovb r8, rdx
mov rdx, qword [rdi + 8]
add rdx, r14
call fcn.140001cd0
mov ebx, eax
mov rax, qword [rbp + 0x38]
sub rsi, rax
add r14, rax
test ebx, ebx
jne 0x1400013c1
test rax, rax
je 0x1400013c1
test rsi, rsi
jne 0x140001360
mov eax, ebx
jmp 0x140001427
mov eax, 0xc0000001
jmp 0x140001427
mov rcx, rax
lea rdx, [rbp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
js 0x1400013c1
and qword [rbp + 0x38], 0
mov ebx, dword [rdi + 0x18]
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov r9, qword [rdi + 8]
mov r8, rax
mov rdx, qword [rdi + 0x10]
lea rax, [rbp + 0x38]
mov rcx, qword [rbp + 0x30]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], rbx
call sub.ntoskrnl.exe_MmCopyVirtualMemory
mov rcx, qword [rbp + 0x30]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x1400013c1
mov eax, 0xc0000005
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000143c
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rdi, rcx
mov ecx, dword [rcx + 0x18]
mov rax, qword [rdi + 0x10]
lea r8, [rax + rcx]
cmp r8, rax
jb 0x1400015a2
mov rax, qword [rdi + 8]
lea rdx, [rax + rcx]
cmp rdx, rax
jb 0x1400015a2
mov rax, qword [sym.imp.ntoskrnl.exe_MmHighestUserAddress]
mov rcx, qword [rax]
cmp r8, rcx
ja 0x1400015a2
cmp rdx, rcx
ja 0x1400015a2
and qword [rbp + 0x30], 0
cmp dword [rdi + 0x1c], 0
mov eax, dword [rdi]
je 0x14000154c
test eax, eax
je 0x140001545
mov ecx, eax
lea rdx, [rbp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
jne 0x1400015a7
mov rcx, qword [rbp + 0x30]
call fcn.140001c48
mov rcx, qword [rbp + 0x30]
mov r15, rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov esi, dword [rdi + 0x18]
xor r14d, r14d
jmp 0x14000153c
mov rdx, qword [rdi + 0x10]
mov rcx, r15
add rdx, r14
call fcn.140001cf4
test rax, rax
je 0x140001545
and qword [rbp + 0x38], 0
lea r9, [rbp + 0x38]
mov rcx, rax
mov edx, 0x1000
and ecx, 0xfff
mov r8, rsi
sub rdx, rcx
mov rcx, rax
cmp rdx, rsi
cmovb r8, rdx
mov rdx, qword [rdi + 8]
add rdx, r14
call fcn.140001e7c
mov ebx, eax
mov rax, qword [rbp + 0x38]
sub rsi, rax
add r14, rax
test ebx, ebx
jne 0x140001541
test rax, rax
je 0x140001541
test rsi, rsi
jne 0x1400014e0
mov eax, ebx
jmp 0x1400015a7
mov eax, 0xc0000001
jmp 0x1400015a7
mov rcx, rax
lea rdx, [rbp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
js 0x140001541
and qword [rbp + 0x38], 0
mov ebx, dword [rdi + 0x18]
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov r9, qword [rdi + 8]
mov rcx, rax
mov r8, qword [rbp + 0x30]
lea rax, [rbp + 0x38]
mov rdx, qword [rdi + 0x10]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], rbx
call sub.ntoskrnl.exe_MmCopyVirtualMemory
mov rcx, qword [rbp + 0x30]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x140001541
mov eax, 0xc0000005
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400015bc
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
and qword [rbp - 0x28], 0
lea r8, [rbp - 0x30]
mov r14, rdx
mov qword [rbp - 0x20], rcx
xorps xmm0, xmm0
mov dword [rbp - 0x30], 0x30
mov edx, 0xf003f
mov dword [rbp - 0x18], 0x240
lea rcx, [rbp + 0x30]
movdqu xmmword [rbp - 0x10], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x1400016a9
mov rcx, qword [rbp + 0x30]
mov rdx, r14
call fcn.140001ba4
mov esi, eax
test eax, eax
jne 0x14000162c
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x1400016a9
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r8, rsi
xor edx, edx
mov rcx, rax
mov rdi, rax
call fcn.1400020c0
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
mov r9, rdi
mov r8d, 1
mov dword [rsp + 0x20], esi
mov rdx, r14
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
js 0x140001694
cmp esi, dword [rbp + 0x20]
jne 0x140001694
lfence
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [rdi + 8]
mov rax, qword [rax + rdi]
jmp 0x1400016ab
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x140001ba4
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
xor r9d, r9d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
lea r8d, [r9 + 1]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
cmp eax, 0xc0000023
je 0x140001bd6
cmp eax, 0x80000005
je 0x140001bd6
xor eax, eax
jmp 0x140001bda
mov eax, dword [rsp + 0x50]
add rsp, 0x38
ret

Function at 0x140001ef0
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x60
mov rsi, r8
mov qword [rax - 0x28], rcx
mov rbp, rdx
mov dword [rax - 0x38], 0x30
xorps xmm0, xmm0
mov dword [rax - 0x20], 0x240
xor ebx, ebx
lea r8, [rax - 0x38]
mov edx, 0xf003f
mov qword [rax - 0x30], rbx
lea rcx, [rax + 8]
mov edi, r9d
movdqu xmmword [rax - 0x18], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x140001f7b
mov eax, dword [rsp + 0x90]
mov r9d, edi
mov rcx, qword [rsp + 0x70]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, rbp
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x70]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwClose]
shr ebx, 0x1f
xor bl, 1
lea r11, [rsp + 0x60]
mov al, bl
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x2fc4d96e0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4da7c0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4da0e2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fc108]
test eax, eax
je 0x2fc4da17a
lea rax, [0x2fc4fc0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fc110]
mov qword [rbp - 8], rax
jmp 0x2fc4da15e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4da152
cmp qword [rbp - 0x10], 0
je 0x2fc4da152
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4da118
lea rax, [0x2fc4fc0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4da17b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4da280
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4da2a8
mov eax, 0
jmp 0x2fc4da2f6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4da2d1
mov eax, 0
jmp 0x2fc4da2f6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4da2f1
mov eax, 0
jmp 0x2fc4da2f6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4da2fc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4da37a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4da371
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4da371
mov rax, qword [rbp - 8]
jmp 0x2fc4da38f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4da344
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d0d00
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d1de0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d1702
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f4108]
test eax, eax
je 0x2fc4d179a
lea rax, [0x2fc4f40e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f4110]
mov qword [rbp - 8], rax
jmp 0x2fc4d177e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d1772
cmp qword [rbp - 0x10], 0
je 0x2fc4d1772
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d1738
lea rax, [0x2fc4f40e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d179b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d18a0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d18c8
mov eax, 0
jmp 0x2fc4d1916
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d18f1
mov eax, 0
jmp 0x2fc4d1916
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d1911
mov eax, 0
jmp 0x2fc4d1916
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d191c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d199a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d1991
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d1991
mov rax, qword [rbp - 8]
jmp 0x2fc4d19af
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d1964
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d80d0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d91b0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d8ad2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fb108]
test eax, eax
je 0x2fc4d8b6a
lea rax, [0x2fc4fb0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fb110]
mov qword [rbp - 8], rax
jmp 0x2fc4d8b4e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d8b42
cmp qword [rbp - 0x10], 0
je 0x2fc4d8b42
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d8b08
lea rax, [0x2fc4fb0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d8b6b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d8c70
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d8c98
mov eax, 0
jmp 0x2fc4d8ce6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d8cc1
mov eax, 0
jmp 0x2fc4d8ce6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d8ce1
mov eax, 0
jmp 0x2fc4d8ce6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d8cec
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d8d6a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d8d61
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d8d61
mov rax, qword [rbp - 8]
jmp 0x2fc4d8d7f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d8d34
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140008ae0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x140008b70
cmp r11, r10
ja 0x140008be6
cmp r10, rdx
ja 0x140008bf8
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x140008b72
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140008b50
jmp 0x140008bd4
ja 0x140008b7a
mov r11, r10
cmp rax, r8
jne 0x140008b14
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x140008bb0
mov rdi, r8
sub ecx, edx
jns 0x140008bcb
jmp 0x140008bd6
cmp r8, rsi
je 0x140008c07
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140008bd6
xor al, 1
cmp rdi, rsi
jne 0x140008b90
jmp 0x140008bd6
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001e9e0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001e750
lea rcx, str.called__Option::unwrap____on_a__None__value__
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14001e7d0
int3
Function at 0x140009a81
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
cmp byte [rcx + 0x79], 0
je 0x140009a95
xor esi, esi
jmp 0x140009c3e
mov rdi, rcx
mov rsi, qword [rcx + 0x48]
cmp qword [rcx], 0
je 0x140009adc
lea rdx, [rdi + 8]
mov r9, qword [rdi + 0x50]
movups xmm0, xmmword [rdi + 0x58]
cmp qword [rdi + 0x38], 0xffffffffffffffff
sete byte [rsp + 0x30]
movups xmmword [rsp + 0x20], xmm0
lea rbx, [rsp + 0x38]
mov rcx, rbx
mov r8, rsi
call fcn.140009c8b
cmp qword [rbx], 0
jne 0x140009bea
jmp 0x140009c08
mov al, byte [rdi + 0x1a]
mov r8, qword [rdi + 8]
mov rdx, qword [rdi + 0x50]
mov cl, byte [rdi + 0x18]
test al, al
jne 0x140009c08
mov r9d, ecx
xor r9b, 1
mov byte [rdi + 0x18], r9b
mov r9, rdx
test r8, r8
je 0x140009b1f
mov r9, rdx
sub r9, r8
jbe 0x140009b19
cmp byte [rsi + r8], 0xbf
jg 0x140009b1f
jmp 0x140009c49
jne 0x140009c49
test r9, r9
je 0x140009bdc
mov r11b, byte [rsi + r8]
movzx r9d, r11b
test r9b, r9b
jns 0x140009b95
mov r10d, r9d
and r10d, 0x1f
movzx ebx, byte [rsi + r8 + 1]
and ebx, 0x3f
cmp r9b, 0xdf
jbe 0x140009b82
movzx r9d, byte [rsi + r8 + 2]
shl ebx, 6
and r9d, 0x3f
or r9d, ebx
cmp r11b, 0xf0
jb 0x140009b8e
movzx r11d, byte [rsi + r8 + 3]
and r10d, 7
shl r10d, 0x12
shl r9d, 6
and r11d, 0x3f
or r11d, r9d
or r11d, r10d
mov r9d, r11d
jmp 0x140009b95
shl r10d, 6
or r10d, ebx
mov r9d, r10d
jmp 0x140009b95
shl r10d, 0xc
or r9d, r10d
test cl, cl
jne 0x140009be0
cmp r9d, 0x110000
je 0x140009c04
mov ecx, 1
cmp r9d, 0x80
jb 0x140009bce
mov ecx, 2
cmp r9d, 0x800
jb 0x140009bce
cmp r9d, 0x10000
mov ecx, 4
sbb rcx, 0
add r8, rcx
mov qword [rdi + 8], r8
mov cl, 1
jmp 0x140009aea
test cl, cl
je 0x140009c04
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x48], r8
mov rdx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
mov rcx, qword [rdi + 0x68]
add rsi, rcx
sub rdx, rcx
mov qword [rdi + 0x68], rax
jmp 0x140009c3e
mov byte [rdi + 0x1a], 1
cmp byte [rdi + 0x79], 0
jne 0x140009a8e
mov byte [rdi + 0x79], 1
cmp byte [rdi + 0x78], 0
je 0x140009c26
mov rsi, qword [rdi + 0x68]
mov rdx, qword [rdi + 0x70]
jmp 0x140009c37
mov rsi, qword [rdi + 0x68]
mov rdx, qword [rdi + 0x70]
cmp rdx, rsi
je 0x140009a8e
sub rdx, rsi
add rsi, qword [rdi + 0x48]
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
lea rax, str._rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrarycore_src_strpattern.rs
mov qword [rsp + 0x20], rax
mov rcx, rsi
mov r9, rdx
call fcn.14001ecc0
int3

Function at 0x140009e57
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x140009e8a
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x140009e8f
call fcn.140019ee0
mov ecx, dword [0x14002f21c]
mov r8, qword gs:[0x58]
mov rcx, qword [r8 + rcx*8]
mov byte [rcx + 0x48], 1
mov qword [rcx + 0x50], rax
mov qword [rcx + 0x58], rdx
add rsp, 0x38
ret