joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000e464
Capabilities:
Access peb ldr_data
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
xor edi, edi
mov rsi, r8
mov r14, rcx
mov r15d, edi
mov r9, qword [rax + 0x60]
mov rbp, qword [r9 + 0x20]
mov r9, qword [r8 + 0x28]
mov rax, r9
test r9, r9
jne 0x14000e4ad
mov r9d, edi
jmp 0x14000e4b9
add r9, 2
cmp word [r9], di
jne 0x14000e4a9
sub r9, rax
sar r9, 1
mov rax, qword [r8 + 0x30]
mov rcx, rax
test rax, rax
jne 0x14000e4ce
mov rax, rdi
jmp 0x14000e4d9
add rax, 2
cmp word [rax], di
jne 0x14000e4ca
sub rax, rcx
sar rax, 1
lea rcx, [rax + r9]
movzx eax, word [rbp + 0x38]
lea rbx, [rax + rcx*2]
test dl, dl
je 0x14000e5f3
mov rcx, r14
call fcn.14000b05c
test eax, eax
jne 0x14000e50b
mov ecx, 0x54f
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14000e69a
mov rax, qword gs:[0x30]
lea r8, [rbx + 0x40]
mov edx, 8
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x14000e68f
movzx edx, word [rbp + 0x38]
mov rcx, rax
mov r8, qword [rbp + 0x40]
shr rdx, 1
mov r9, rdx
call fcn.14000143c
lea rdx, [0x140032530]
call fcn.140001398
mov rdx, qword [rsi + 0x28]
mov rcx, rbx
mov rbp, rax
call fcn.140001398
mov r8d, dword [rsi + 0x38]
mov rdx, rbx
mov rcx, qword [r14 + 0x10]
call fcn.14000e7b8
test eax, eax
je 0x14000e5d2
mov word [rbp], di
mov rcx, rbx
mov rdx, qword [rsi + 0x30]
call fcn.140001398
mov r8d, dword [rsi + 0x3c]
mov rdx, rbx
mov rcx, qword [r14 + 0x10]
call fcn.14000e7b8
test eax, eax
je 0x14000e5d2
mov eax, dword [rsi + 0x4c]
lea rcx, [rsi + 8]
mov r8d, dword [rsi + 0x48]
mov r9, rsi
mov rdx, qword [rsi + 0x40]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, rbx
call fcn.14000e31c
mov r15d, eax
test eax, eax
jne 0x14000e5d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword gs:[0x30]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x14000e68f
mov rax, qword gs:[0x30]
lea r8, [rbx + 0x40]
mov edx, 8
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r14, rax
test rax, rax
je 0x14000e68f
movzx edx, word [rbp + 0x38]
mov rcx, rax
mov r8, qword [rbp + 0x40]
shr rdx, 1
mov r9, rdx
call fcn.14000143c
lea rdx, [0x140032530]
call fcn.140001398
mov rdx, qword [rsi + 0x28]
mov rcx, r14
mov rbx, rax
call fcn.140001398
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov word [rbx], di
mov rcx, r14
mov rdx, qword [rsi + 0x30]
call fcn.140001398
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rax, qword gs:[0x30]
mov r8, r14
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r15d, 1
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, r15d
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x14000e6b4
Capabilities:
Access pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov dword [rax + 0x20], r9d
push rdi
push r14
push r15
sub rsp, 0x20
mov r15d, edx
mov rbp, rcx
xor ebx, ebx
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov r14, rax
test rax, rax
je 0x14000e79a
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x58], ebx
mov rcx, rbp
call section..text
mov rsi, rax
test rax, rax
je 0x14000e79a
mov rcx, rax
call fcn.140001198
test rax, rax
je 0x14000e789
sub eax, esi
lea r8d, [r15 + 1]
shr r8d, 1
mov r9, rbp
mov dword [r14 + 0x28], eax
mov edx, ebx
je 0x14000e742
movzx eax, word [r9]
lea r9, [r9 + 2]
add edx, eax
mov ecx, edx
movzx edx, dx
shr ecx, 0x10
add edx, ecx
add r8d, 0xffffffff
jne 0x14000e728
mov edi, edx
mov rcx, rbp
shr edi, 0x10
add di, dx
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov rcx, rax
test rax, rax
je 0x14000e777
movzx eax, word [rax + 0x58]
cmp di, ax
adc ax, bx
sub di, ax
movzx eax, word [rcx + 0x5a]
cmp di, ax
adc ax, bx
sub di, ax
jmp 0x14000e77a
movzx edi, bx
movzx eax, di
mov ebx, 1
add eax, r15d
mov dword [r14 + 0x58], eax
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x14000e86c
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x440
mov rbx, rcx
mov qword [rsp + 0x20], r9
xor eax, eax
lea rdi, [rsp + 0x30]
mov esi, edx
mov r9, r8
mov ecx, 0x410
lea r8, [0x140032b68]
rep stosb byte [rdi], al
lea rcx, [rsp + 0x30]
mov edx, 0x208
call fcn.1400024e8
cmp dword [rsp + 0x470], 0
je 0x14000e8c6
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14000e8db
test rbx, rbx
je 0x14000e8db
mov r8d, esi
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14000e7b8
lea r11, [rsp + 0x440]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x14000e8f0
Capabilities:
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x40
xor ebx, ebx
xor r9d, r9d
mov qword [rax - 0x18], rbx
xor r8d, r8d
mov dword [rax - 0x20], 0x80
mov edx, 0x80000000
mov dword [rax - 0x28], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000e97f
mov qword [rsp + 0x28], rbx
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], ebx
mov r8d, 0x1000002
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rsi, rax
test rax, rax
je 0x14000e976
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
lea edx, [rbx + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x58]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14000ed64
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
mov rbp, rsp
sub rsp, 0x30
and dword [rbp + 0x10], 0
lea rax, [rbp + 0x20]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x18], 8
lea rdx, str.HARDWARERESOURCEMAPSystem_ResourcesPhysical_Memory
mov rcx, 0xffffffff80000002
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000ee32
mov rcx, qword [rbp + 0x20]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x18]
and qword [rsp + 0x20], rbx
lea rdx, str..Translated
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000ee28
cmp dword [rbp + 0x18], 8
jne 0x14000ee28
mov rax, qword gs:[0x30]
lea edx, [rbx + 8]
mov r8d, dword [rbp + 0x10]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x14000ee28
mov rcx, qword [rbp + 0x20]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x18]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, str..Translated
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret

Function at 0x14000efa8
Capabilities:
Get windows directory from kuser_shared_data
Load ntoskrnl

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 8], rcx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x470
xor ebx, ebx
lea r8, str._ws_system32_ws
and qword [rax + 8], rbx
lea rcx, [rsp + 0x60]
lea rax, str.ntoskrnl.exe
mov r9d, 0x7ffe0030
mov edx, 0x208
mov qword [rsp + 0x20], rax
xor r15d, r15d
call fcn.1400024e8
xor edx, edx
lea r8d, [rbx + 1]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
xor r12d, r12d
mov rsi, rax
test rax, rax
setne r12b
test rax, rax
je 0x14000f0b3
call fcn.14000dc90
mov rbp, rax
test rax, rax
je 0x14000f0b3
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.1400104a8
test eax, eax
je 0x14000f0b3
lea rdx, [rsp + 0x4a0]
lea rcx, str.MiFillPteHierarchy
call fcn.14001052c
test eax, eax
je 0x14000f0b3
mov r14, qword [rsp + 0x4a0]
lea rdi, [rsp + 0x30]
xor eax, eax
lea ecx, [rbx + 0x25]
rep stosb byte [rdi], al
mov edi, ebx
lea rdx, [rsp + 0x30]
add rdi, r14
mov rcx, rdi
call fcn.140003f74
test dword [rsp + 0x51], 0x1000
jne 0x14000f0b3
movzx eax, byte [rsp + 0x30]
cmp al, 0xa
jne 0x14000f09b
mov ecx, 0xb849
cmp word [rdi], cx
je 0x14000f0a4
add ebx, eax
cmp ebx, 0x40
jae 0x14000f0b3
jmp 0x14000f06c
mov eax, ebx
lea r15, [r14 + 2]
sub rax, rsi
add rax, rbp
add r15, rax
test r12d, r12d
je 0x14000f0c1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r11, [rsp + 0x470]
mov rax, r15
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400109a0
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor esi, esi
mov rbx, rcx
mov r8, rcx
test rcx, rcx
jne 0x1400109c1
mov r8d, esi
jmp 0x1400109d6
cmp word [rcx], si
je 0x1400109d0
add r8, 2
cmp word [r8], si
jne 0x1400109c6
sub r8, rbx
sar r8, 1
mov rax, qword gs:[0x30]
lea r8, [r8*2 + 0x208]
mov edx, 8
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
jne 0x140010a0d
lea ecx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140010a2c
mov r9d, 0x7ffe0030
mov qword [rsp + 0x20], rbx
lea r8, str._ws_system32drivers_ws.sys
mov edx, 0x208
mov rcx, rdi
call fcn.1400024e8
mov rbx, qword [rsp + 0x40]
mov rax, rdi
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14001a97c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001a76c
Function at 0x14001fc6c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14001fc9c
xor eax, eax
jmp 0x14001fd5f
mov rbp, rbx
cmp word [rax], si
je 0x14001fcc1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001fca8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001fca4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14001fbbc
movsxd r14, eax
test eax, eax
jne 0x14001fcff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001fc95
mov rcx, r14
call fcn.14001c46c
mov rdi, rax
test rax, rax
jne 0x14001fd18
xor ecx, ecx
call fcn.14001b7f8
jmp 0x14001fcf4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14001fbbc
test eax, eax
jne 0x14001fd49
mov rcx, rdi
call fcn.14001b7f8
jmp 0x14001fd53
xor ecx, ecx
call fcn.14001b7f8
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14002505c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14001ecc0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400250e6
cmp byte [rbp - 0x21], r15b
je 0x1400250e1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14002511c
call fcn.14001ba4c
test eax, eax
jne 0x140025108
cmp byte [rbp - 0x21], r15b
je 0x140025100
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14002511c
cmp byte [rbp - 0x21], r15b
je 0x140025119
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14001e29c
test eax, eax
jne 0x1400251bc
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14001ecc0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14002515b
cmp byte [rbp - 0x21], r15b
je 0x140025190
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140025190
call fcn.14001ba4c
test eax, eax
jne 0x14002517c
cmp byte [rbp - 0x21], r15b
je 0x140025175
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140025190
cmp byte [rbp - 0x21], r15b
je 0x14002518d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14001e29c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400251bc
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400251bf
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400251cd
mov rcx, rdi
call fcn.14001b7f8
cmp byte [rbp + 0x3f], r15b
je 0x1400251dc
mov rcx, qword [rbp + 0x27]
call fcn.14001b7f8
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140002c70
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400045e0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400045e0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002ce0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400090a4]
mov rbx, rcx
test esi, esi
jle 0x140002e10
mov rax, qword [0x1400090a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002d2b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002db5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002d10
mov rcx, rbx
call fcn.140003730
mov rdi, rax
test rax, rax
je 0x140002e32
mov rax, qword [0x1400090a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003870
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400090a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002e17
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002dae
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002dc0
add dword [0x1400090a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400090a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002dae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002c70
nop dword [rax]
xor esi, esi
jmp 0x140002d38
mov rax, qword [0x1400090a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002c70
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002c70
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400033a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140009100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400090e0]
test rbx, rbx
je 0x1400033fc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400033f3
test rsi, rsi
je 0x1400033f3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400033d8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140003730
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006a50]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003750
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003758
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003750
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400037ad
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400037a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003750
add rax, 0x28
cmp rax, r9
jne 0x140003790
xor eax, eax
ret

Function at 0x1400037b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006a50]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400037cf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400037d8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400037cf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003870
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006a50]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000388f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003898
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140002e00
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140003f10
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140003f10
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002e70
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400090a4]
mov rbx, rcx
test esi, esi
jle 0x140002fa0
mov rax, qword [0x1400090a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002ebb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002f45
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002ea0
mov rcx, rbx
call fcn.1400038c0
mov rdi, rax
test rax, rax
je 0x140002fc2
mov rax, qword [0x1400090a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003a00
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400090a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002fa7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002f3e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002f50
add dword [0x1400090a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400090a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002f3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002e00
nop dword [rax]
xor esi, esi
jmp 0x140002ec8
mov rax, qword [0x1400090a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002e00
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002e00
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003530
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140009100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400090e0]
test rbx, rbx
je 0x14000358c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140003583
test rsi, rsi
je 0x140003583
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003568
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400038c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400069b0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400038e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400038e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400038e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000393d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003934
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400038e0
add rax, 0x28
cmp rax, r9
jne 0x140003920
xor eax, eax
ret

Function at 0x140003940
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400069b0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000395f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003968
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000395f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003a00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400069b0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140003a1f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003a28
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001550
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x290
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
mov ecx, eax
xor edx, edx
call qword [sym.imp.USER32.dll_PostThreadMessageA]
call qword [sym.imp.USER32.dll_GetInputState]
xor r9d, r9d
lea rcx, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400015f5
xor edx, edx
mov dword [rsp + 0x50], 0x238
mov r8d, 0x234
lea rcx, [rsp + 0x54]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x50]
mov rcx, rdi
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1400015e9
nop
lea rdx, [rsp + 0x50]
mov rcx, rdi
inc ebx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400015d0
cmp ebx, 0x28
jg 0x1400015f5
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 8
call fcn.14000317c
lea rcx, vtable.B.0
mov qword [rax], rcx
mov rcx, rax
call qword [vtable.B.0]
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x290
pop rdi
ret