joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001c8d0
Capabilities:
Execute anti-debugging instructions

Disassembly:
sub rsp, 0x88
call qword [0x1400464c8]
movsx eax, al
test eax, eax
jne 0x14001c8f2
rdtsc
shl rdx, 0x20
or rax, rdx
jmp 0x14001cacb
mov rax, qword gs:[0x188]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x28], 0
cmp dword [0x1400a63d4], 0x1db1
ja 0x14001c925
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x1f8]
mov dword [rsp + 0x28], eax
jmp 0x14001c934
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x80]
mov dword [rsp + 0x28], eax
mov rax, qword gs:[0x1a8]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
jmp 0x14001c969
mov rax, qword [rsp + 0x20]
sub rax, 8
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x20], rax
jbe 0x14001cac2
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call qword [0x140046278]
movzx eax, al
test eax, eax
jne 0x14001c99a
jmp 0x14001cac2
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x501802
je 0x14001c9a9
jmp 0x14001c95b
mov rax, qword [rsp + 0x20]
sub rax, 8
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call qword [0x140046278]
movzx eax, al
test eax, eax
jne 0x14001c9d8
jmp 0x14001cac2
mov rax, qword [rsp + 0x48]
movzx eax, word [rax]
cmp eax, 0xf33
je 0x14001c9ec
jmp 0x14001c95b
jmp 0x14001c9fc
mov rax, qword [rsp + 0x20]
add rax, 8
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x20], rax
jae 0x14001cabb
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call qword [0x140046278]
movzx eax, al
test eax, eax
jne 0x14001ca2d
jmp 0x14001cabb
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
and rax, 0xfffffffffffff000
cmp rax, qword [0x1400a6408]
jb 0x14001ca65
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
and rax, 0xfffffffffffff000
mov rcx, qword [0x1400a6408]
add rcx, 0x2000
cmp rax, rcx
jb 0x14001ca67
jmp 0x14001c9ee
mov eax, 8
imul rax, rax, 9
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
cmp qword [0x1400a63f0], 0
je 0x14001cab4
mov rax, qword [0x1400a63f0]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x68]
mov ecx, dword [rsp + 0x28]
mov rax, qword [rsp + 0x70]
call qword [0x1400465b8]
jmp 0x14001cabb
jmp 0x14001cac2
rdtsc
shl rdx, 0x20
or rax, rdx
add rsp, 0x88
ret
Function at 0x14003da60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
movzx edi, r9b
movzx esi, r8b
mov rbx, rdx
mov r10, rcx
test rdx, rdx
jns 0x14003db78
mov r11, qword [rcx + 0x18]
lea rax, [r11 + 1]
cmp rax, qword [rcx + 0x20]
jbe 0x14003daa9
mov eax, 0x80100009
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rdx, qword [r10 + 0x38]
lea r8, [0x140099ef0]
dec rdx
mov ecx, 2
add rdx, r11
nop
movzx eax, byte [r8]
lea r8, [r8 + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
sub rcx, 1
jne 0x14003dac0
inc qword [r10 + 0x18]
mov r9, qword [rsp + 0x80]
mov rdx, qword [r10 + 0x18]
test r9, r9
je 0x14003db3c
mov rcx, qword [r9 + 0x18]
lea rax, [rcx - 1]
add rax, rdx
cmp rax, qword [r10 + 0x20]
ja 0x14003da94
mov rax, qword [r10 + 0x38]
lea rdx, [rdx - 1]
mov r8, qword [r9 + 0x38]
lea rdx, [rdx + rax]
sub rcx, 1
je 0x14003db24
movzx eax, byte [r8]
lea r8, [r8 + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
sub rcx, 1
jne 0x14003db10
mov rax, qword [r9 + 0x18]
dec rax
add qword [r10 + 0x18], rax
mov rcx, qword [r10 + 0x18]
mov rax, qword [r10 + 0x38]
mov byte [rcx + rax - 1], 0
movabs rcx, 0x8000000000000000
cmp rbx, rcx
je 0x14003db59
mov rax, rbx
cqo
mov rcx, rax
xor rcx, rdx
sub rcx, rdx
mov rax, qword [rsp + 0x88]
movzx r9d, dil
mov qword [rsp + 0x30], rax
mov rdx, rcx
mov qword [rsp + 0x28], 0
jmp 0x14003dbe5
cmp byte [rsp + 0x78], 0
je 0x14003dbc8
mov rdx, qword [rcx + 0x18]
lea rax, [rdx + 1]
cmp rax, qword [rcx + 0x20]
ja 0x14003da94
dec rdx
lea r8, [0x140099370]
add rdx, qword [r10 + 0x38]
mov ecx, 2
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r8]
lea r8, [r8 + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
sub rcx, 1
jne 0x14003dbb0
inc qword [r10 + 0x18]
mov rax, qword [rsp + 0x88]
mov rdx, rbx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rax
movzx eax, byte [rsp + 0x70]
movzx r8d, sil
mov rcx, r10
mov byte [rsp + 0x20], al
call fcn.140041010
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140003840
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x48
mov qword [0x14000c0c0], rcx
xor ecx, ecx
call qword [sym.imp.TBoxRT.dll_RTR3InitExeNoArguments]
test eax, eax
jns 0x140003864
mov ecx, eax
call qword [sym.imp.TBoxRT.dll_RTMsgInitFailure]
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
test rax, rax
jne 0x140003884
lea rdx, str.GetCommandLineW_failed
lea ecx, [rax + 1]
call qword [sym.imp.TBoxRT.dll_RTMsgErrorExit]
add rsp, 0x48
ret
lea r8, str.E:_tbox5THypervBox_srcTBoxMain_src_helper_appsTBoxExtPackHelperApp.cpp
lea rdx, [rsp + 0x38]
mov rcx, rax
call qword [sym.imp.TBoxRT.dll_RTUtf16ToUtf8Tag]
test eax, eax
jns 0x1400038b7
lea rdx, str.Failed_to_convert_the_command_line:__Rrc
mov r8d, eax
mov ecx, 1
call qword [sym.imp.TBoxRT.dll_RTMsgErrorExit]
add rsp, 0x48
ret
mov r8, qword [rsp + 0x38]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.TBoxRT.dll_RTGetOptArgvFromString]
test eax, eax
js 0x1400038fe
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x50]
call fcn.140003460
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.TBoxRT.dll_RTGetOptArgvFree]
jmp 0x140003915
lea rdx, str.RTGetOptArgvFromString_failed:__Rrc
mov r8d, eax
mov ecx, 1
call qword [sym.imp.TBoxRT.dll_RTMsgErrorExit]
mov ebx, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.TBoxRT.dll_RTStrFree]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x48
ret
Function at 0x14000604b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14000c078]
jne 0x140005ada
rol rcx, 0x10
test cx, 0xffff
jne 0x140005ad6
repz ret
ror rcx, 0x10
jmp 0x140005fa4
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14000c190]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14000c288]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140006029
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14000c190]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14000604b
mov rax, qword [rsp + 0x88]
mov qword [0x14000c288], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14000c228], rax
mov rax, qword [0x14000c288]
mov qword [0x14000c100], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14000c210], rax
mov dword [0x14000c0f0], 0xc0000409
mov dword [0x14000c0f4], 1
mov rax, qword [0x14000c078]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14000c080]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14000c188], eax
mov ecx, 1
call sub.MSVCR100.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140009548]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14000c188], 0
jne 0x1400060d2
mov ecx, 1
call sub.MSVCR100.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140001070
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
xor ebx, ebx
mov ebp, edx
mov rdi, rcx
mov r8d, dword [rax + rcx + 0x88]
mov esi, dword [r8 + rcx + 0x1c]
mov r11d, dword [r8 + rcx + 0x20]
mov r15d, dword [r8 + rcx + 0x24]
add r11, rcx
add r15, rcx
lea r14, [rcx + rsi]
test esi, esi
je 0x140001116
nop dword [rax + rax]
mov r10d, dword [r11]
mov edx, 0x35
add r10, rdi
mov rax, 0xffffffffffffffff
inc rax
cmp byte [r10 + rax], 0
jne 0x1400010d2
xor r9d, r9d
test rax, rax
je 0x140001108
mov r8, r10
nop word [rax + rax]
movsx ecx, byte [r8]
lea edx, [rdx + rdx*2]
inc r9d
lea r8, [r8 + 1]
add edx, ecx
movsxd rcx, r9d
cmp rcx, rax
jb 0x1400010f0
cmp edx, ebp
je 0x140001131
inc ebx
add r11, 4
cmp ebx, esi
jb 0x1400010c0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
mov r8d, ebp
lea rcx, str.successfully_found___s____d_n
mov rdx, r10
call fcn.140001010
movzx ecx, word [r15 + rbx*2]
mov eax, dword [r14 + rcx*4]
add rax, rdi
jmp 0x140001118
Function at 0x140011163
Capabilities:
Manipulate console buffer

Disassembly:
jmp 0x1400117e0
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x128]
lea rcx, [0x1400220a4]
call fcn.140011384
movzx eax, word [rbp + 0x100]
mov word [rbp + 4], ax
movzx eax, word [rbp + 0x108]
mov word [rbp + 6], ax
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, dword [rbp + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
lea rcx, [rbp - 0x20]
lea rdx, [0x14001ac80]
call fcn.14001131b
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x1400111f9
Capabilities:
Terminate process

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

Function at 0x140011285
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400142d0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400142f0
xor al, al
jmp 0x140014371
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014303
xor al, al
jmp 0x140014371
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 0x14001432d
xor al, al
jmp 0x140014371
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014341
xor al, al
jmp 0x140014371
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014353
xor al, al
jmp 0x140014371
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001436f
xor al, al
jmp 0x140014371
mov al, 1
add rsp, 0x38
ret
Function at 0x140008188
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x14000d868], rdi
je 0x1400081e8
cmp rax, rdi
jne 0x1400081db
mov r12d, 1
jmp 0x1400081e8
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400081c1
mov eax, dword [0x14000d860]
cmp eax, 1
jne 0x1400081fd
lea ecx, [rax + 0x1e]
call fcn.1401b1000
jmp 0x140008264
mov eax, dword [0x14000d860]
cmp eax, ebx
jne 0x14000825a
mov dword [0x14000d860], 1
lea r13, [0x140001548]
lea rdi, [0x140001530]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x14000824c
cmp eax, ebx
jne 0x14000824c
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x140008241
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000822a
cmp eax, ebx
je 0x140008264
mov eax, 0xff
jmp 0x1400083ac
mov dword [0x14000b554], 1
mov eax, dword [0x14000d860]
cmp eax, 1
jne 0x14000828c
lea rdx, [0x140001528]
lea rcx, [0x1400014b8]
call sub.msvcrt.dll__initterm
mov dword [0x14000d860], 2
cmp r12d, ebx
jne 0x14000829b
mov rax, rbx
xchg qword [0x14000d868], rax
cmp qword [0x14000d870], rbx
je 0x1400082c3
lea rcx, [0x14000d870]
call fcn.14000862c
cmp eax, ebx
je 0x1400082c3
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x14000d870]
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
jne 0x1400082d9
mov eax, 0xff
jmp 0x1400083ac
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x14000835e
cmp word [rcx], bx
je 0x1400082f4
cmp edx, ebx
jne 0x14000835e
cmp word [rcx], bx
je 0x14000830a
cmp word [rcx], 0x20
ja 0x14000830a
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400082f4
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140003b3c
mov dword [0x14000b550], eax
cmp dword [0x14000b534], ebx
jne 0x140008348
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000b554], ebx
jne 0x14000835c
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000b550]
jmp 0x1400083ac
cmp word [rcx], 0x22
jne 0x140008371
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400082e5
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
sub rsp, 0x28
call fcn.1400087ec
add rsp, 0x28
jmp 0x140008188
Function at 0x140002c20
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.140003f60
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.140003f60
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 0x140002c90
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 0x140002dc0
mov rax, qword [0x1400090a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002cdb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002d65
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002cc0
mov rcx, rbx
call fcn.1400036e0
mov rdi, rax
test rax, rax
je 0x140002de2
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.140003820
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 0x140002dc7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002d5e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002d70
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 0x140002d5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002c20
nop dword [rax]
xor esi, esi
jmp 0x140002ce8
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.140002c20
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002c20
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003350
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 0x1400033ac
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 0x1400033a3
test rsi, rsi
je 0x1400033a3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003388
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 0x1400036e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400069f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003700
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003708
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003700
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000375d
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 0x140003754
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003700
add rax, 0x28
cmp rax, r9
jne 0x140003740
xor eax, eax
ret

Function at 0x140003760
Capabilities:
Parse pe header

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

Function at 0x140003820
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400069f0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000383f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003848
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x16490
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov ebx, 0x80
lea rcx, [0x00022220]
mov r8d, 0x120
mov edx, ebx
call fcn.00012414
lea r8d, [rbx + 0x60]
lea rcx, [0x000324a0]
mov edx, 0x200
call fcn.00012414
and qword [rsp + 0x30], 0
and dword [0x000207ac], 0
and qword [rsp + 0x50], 0
lea rax, [0x0001639c]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
test eax, eax
js 0x1653d
mov r8, qword [sym.imp.ntoskrnl.exe_PsThreadType]
and qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x50]
mov r8, qword [r8]
lea rax, [0x00021fc0]
xor r9d, r9d
mov edx, 0x80000000
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea rcx, [0x000324e0]
mov r8d, 0x160
mov edx, ebx
call fcn.00012414
lea rcx, [0x00032540]
mov r8d, 0x68
mov edx, ebx
call fcn.00012414
and qword [0x00032520], 0
lea rcx, [0x00022260]
xor edx, edx
mov r8d, 0x2000
call fcn.0001dc60
lea rcx, [0x00031ea0]
xor edx, edx
mov r8d, 0x5ea
call fcn.0001dc60
mov r11, qword [0x000201f0]
call qword [r11 + 0x10]
mov rbx, rax
test rax, rax
je 0x165df
xor edi, edi
cmp dword [rbx + 0x54], edi
jbe 0x165d7
lea rsi, [rbx + 0x14]
mov ecx, dword [rsi]
lea rdx, [rbx + 8]
xor r8d, r8d
call fcn.00012e3c
inc edi
add rsi, 4
cmp edi, dword [rbx + 0x54]
jb 0x165be
mov rbx, qword [rbx]
test rbx, rbx
jne 0x165b3
lea rdx, [0x00012f34]
xor r8d, r8d
mov ecx, 0x608
call fcn.00012d30
mov rax, qword [0x000201f0]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
lea r11, [0x0001320c]
mov qword [rax], r11
xor eax, eax
add rsp, 0x40
pop rdi
ret

Function at 0x169c4
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edi, 0x8000
mov rsi, rdx
mov rdx, rdi
jmp 0x16a0f
xor r9d, r9d
mov r8d, edi
mov rdx, rbx
lea ecx, [r9 + 5]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x16a2a
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
lea r11d, [rdi + rdi]
mov edi, r11d
mov edx, r11d
mov r8d, 0x686c706d
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
jne 0x169e0
jmp 0x16a6a
test eax, eax
js 0x16a5f
test rbx, rbx
je 0x16a6a
cmp dword [rbx], 0
mov rdi, rbx
je 0x16a5f
mov eax, dword [rdi]
lea rcx, [0x0001e5a0]
add rdi, rax
movzx r8d, word [rdi + 0x38]
mov rdx, qword [rdi + 0x40]
call qword [sym.imp.ntoskrnl.exe__wcsnicmp]
test eax, eax
je 0x16a7c
cmp dword [rdi], 0
jne 0x16a3b
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov qword [rsi], rdi
mov rax, rbx
jmp 0x16a6c
Function at 0x16b6c
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x20
xor r8d, r8d
mov r12, rdx
mov rbp, rcx
lea edi, [r8 + 0xb]
lea r9, [rax + 0x18]
lea rdx, [rax + 0x18]
mov ecx, edi
call qword [sym.imp.ntoskrnl.exe_NtQuerySystemInformation]
mov edx, dword [rsp + 0x50]
lea ecx, [rdi - 0xa]
mov r8d, 0x686c706d
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x16c2b
mov r8d, dword [rsp + 0x50]
xor r9d, r9d
mov rdx, rax
mov ecx, edi
call qword [sym.imp.ntoskrnl.exe_NtQuerySystemInformation]
xor esi, esi
cmp dword [rbx], esi
jbe 0x16c20
or rcx, 0xffffffffffffffff
mov eax, esi
imul rax, rax, 0x128
lea r8, [rax + rbx + 0x30]
xor eax, eax
mov rdi, r8
repne scasb al, byte [rdi]
mov rdi, rbp
not rcx
lea r9, [rcx - 1]
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
dec rcx
sub r9, rcx
add r9, r8
cmp r9, r8
jb 0x16c1a
mov rdx, rbp
mov rcx, r9
call qword [sym.imp.ntoskrnl.exe__stricmp]
test eax, eax
je 0x16c40
inc esi
cmp esi, dword [rbx]
jb 0x16bd0
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor al, al
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret
mov edx, esi
mov rcx, r12
mov r8d, 0x128
imul rdx, rdx, 0x128
lea rdx, [rdx + rbx + 8]
call fcn.0001dd60
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov al, 1
jmp 0x16c2d