joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005d9a0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x14005da4f
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [0x14005daa0]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.1400665e0
xorps xmm15, xmm15
mov r14, qword [0x1402735d8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.140066700
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp fcn.14005d9a0
Function at 0x140068500
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x1400045c3
push rbp
mov rbp, rsp
sub rsp, 0x18
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
call fcn.14000afa0
add rsp, 0x18
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.140066700
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x1400045a0
cmp byte [0x1402733ab], 0
je 0x140068515
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x140065740
jmp 0x1400045a0

Function at 0x140068520
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov eax, dword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x1402736e0]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x1402733ab], 0
je 0x140068555
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x140273a00]
aesenc xmm0, xmmword [0x140273a10]
aesenc xmm0, xmmword [0x140273a20]
movq rax, xmm0
ret
jmp 0x14000b1c0

Function at 0x140068560
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x1402736e0]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x1402733ab], 0
je 0x140068596
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x140273a00]
aesenc xmm0, xmmword [0x140273a10]
aesenc xmm0, xmmword [0x140273a20]
movq rax, xmm0
ret
jmp 0x14000b220
Function at 0x140087ba0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x140087c6a
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call fcn.140003ae0
xorps xmm15, xmm15
mov r14, qword [0x1402735d8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x140087c4f
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x14010a4e0]
xor ebx, ebx
mov rcx, rdx
call fcn.14004d540
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call fcn.140088540
inc rbx
cmp rcx, rbx
jae 0x140087c3e
mov edi, 1
lea rsi, [0x14010a4e0]
call fcn.14004d620
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x140153f48]
lea rsi, [0x140153600]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.140066700
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.140087ba0

Function at 0x1400a1f60
Capabilities:
Hash data using fnv

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x1400a269f
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
movabs rcx, 0xcbf29ce484222325
jmp 0x1400a1f8d
lea rax, [rdx + 0x10]
dec rbx
mov rcx, rsi
test rbx, rbx
jle 0x1400a2211
mov rdx, rax
mov rsi, qword [rax]
nop dword [rax]
test rsi, rsi
je 0x1400a223d
mov edi, dword [rsi + 0x10]
shr edi, 1
mov r8, qword [rax + 8]
and edi, 0x3f
lea rax, [0x140155900]
jmp qword [rax + rdi*8]
mov rax, rcx
add rsp, 0x10
pop rbp
ret
lea rax, [0x14010a3e0]
lea rbx, [0x140153e00]
call fcn.140037ee0
inc rax
cmp rax, r8
jge 0x1400a2262
mov r9, qword [rsi + rax*8]
xor r10d, r10d
nop
jmp 0x1400a2297
lea rdi, [0x14010a460]
mov rsi, rcx
movabs rcx, 0x100000001b3
jmp 0x1400a1f83
movzx r11d, r9b
xor rcx, r11
inc r10
shr r9, 8
movabs r11, 0x100000001b3
imul rcx, r11
cmp r10, 8
jl 0x1400a227b
jmp 0x1400a2250
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call fcn.140066700
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp fcn.1400a1f60

Function at 0x1400a2840
Capabilities:
Hash data using fnv

Disassembly:
test byte [rax], al
mov rcx, rbx
and ebx, 0x7f
shl rbx, 5
lea rdx, [rax + rbx]
xor eax, eax
jmp 0x1400a2857
inc rax
cmp rax, 4
jge 0x1400a286f
lea rbx, [rdx + rax*8]
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x1400a2854
mov eax, 1
ret
xor eax, eax
movabs rbx, 0xcbf29ce484222325
jmp 0x1400a2880
inc rax
cmp rax, 4
jge 0x1400a288e
mov rsi, qword [rdx + rax*8]
xor edi, edi
jmp 0x1400a28b7
and ebx, 3
lea rdx, [rdx + rbx*8]
xchg qword [rdx], rcx
xor eax, eax
ret
movzx r8d, sil
xor rbx, r8
inc rdi
shr rsi, 8
movabs r8, 0x100000001b3
imul rbx, r8
cmp rdi, 8
jl 0x1400a289b
jmp 0x1400a287d
Function at 0x1400ab0e0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x1400ab1e1
push rbp
mov rbp, rsp
sub rsp, 0x48
movq qword [rsp + 0x40], xmm15
mov qword [rsp + 0x60], rcx
mov byte [rsp + 0x17], 0
movups xmmword [rsp + 0x18], xmm15
mov word [rsp], ax
mov word [rsp + 2], bx
call fcn.1400aa9c0
xorps xmm15, xmm15
mov r14, qword [0x1402735d8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
nop
movups xmmword [rsp + 0x30], xmm15
lea rcx, [0x1400ab220]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x40], rcx
mov byte [rsp + 0x17], 1
jmp 0x1400ab160
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx + 0x38]
test rax, rax
je 0x1400ab1a7
mov qword [rsp + 0x28], rax
call fcn.1400aaf40
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rdx]
call rcx
test rax, rax
je 0x1400ab157
mov qword [rsp + 0x18], rax
mov qword [rsp + 0x20], rbx
mov byte [rsp + 0x17], 0
mov rdx, qword [rsp + 0x40]
mov rax, qword [rdx]
call rax
mov rax, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x20]
add rsp, 0x48
pop rbp
ret
movups xmmword [rsp + 0x18], xmm15
mov byte [rsp + 0x17], 0
mov rdx, qword [rsp + 0x40]
mov rax, qword [rdx]
call rax
mov rbx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x18]
add rsp, 0x48
pop rbp
ret
mov word [rsp + 8], ax
mov word [rsp + 0xa], bx
mov qword [rsp + 0x10], rcx
call fcn.140066700
movzx eax, word [rsp + 8]
movzx ebx, word [rsp + 0xa]
mov rcx, qword [rsp + 0x10]
jmp fcn.1400ab0e0
Function at 0x1400cb420
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, str.hid.dll
call rbx
mov qword [0x140277058], rax
test rax, rax
je 0x1400cb6c2
lea rcx, str.cfgmgr32.dll
call rbx
mov rcx, qword [0x140277058]
mov qword [0x140277050], rax
test rax, rax
je 0x1400cb6b7
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.HidD_GetHidGuid
call rbx
mov rcx, qword [0x140277058]
mov qword [0x1402770e0], rax
test rax, rax
je 0x1400cb6b7
lea rdx, str.HidD_GetAttributes
call rbx
mov rcx, qword [0x140277058]
mov qword [0x1402770d8], rax
test rax, rax
je 0x1400cb6b7
lea rdx, str.HidD_GetSerialNumberString
call rbx
mov rcx, qword [0x140277058]
mov qword [0x1402770d0], rax
test rax, rax
je 0x1400cb6b7
lea rdx, str.HidD_GetManufacturerString
call rbx
mov rcx, qword [0x140277058]
mov qword [0x1402770c8], rax
test rax, rax
je 0x1400cb6b7
lea rdx, str.HidD_GetProductString
call rbx
mov rcx, qword [0x140277058]
mov qword [0x1402770c0], rax
test rax, rax
je 0x1400cb6b7
lea rdx, [0x1401e4949]
call rbx
mov rcx, qword [0x140277058]
mov qword [0x1402770b8], rax
test rax, rax
je 0x1400cb6b7
lea rdx, str.HidD_GetFeature
call rbx
mov rcx, qword [0x140277058]
test rax, rax
je 0x1400cb6b7
lea rdx, str.HidD_GetInputReport
call rbx
mov rcx, qword [0x140277058]
test rax, rax
je 0x1400cb6b7
lea rdx, [0x1401e497d]
call rbx
mov rcx, qword [0x140277058]
mov qword [0x1402770b0], rax
test rax, rax
je 0x1400cb6b7
lea rdx, [0x1401e4993]
call rbx
mov rcx, qword [0x140277058]
mov qword [0x1402770a8], rax
test rax, rax
je 0x1400cb6b7
lea rdx, str.HidD_FreePreparsedData
call rbx
mov rcx, qword [0x140277058]
mov qword [0x1402770a0], rax
test rax, rax
je 0x1400cb6b7
lea rdx, [0x1401e49c0]
call rbx
mov rcx, qword [0x140277058]
mov qword [0x140277098], rax
test rax, rax
je 0x1400cb6b7
lea rdx, str.HidD_SetNumInputBuffers
call rbx
mov qword [0x140277090], rax
test rax, rax
je 0x1400cb6b0
mov rcx, qword [0x140277050]
lea rdx, str.CM_Locate_DevNodeW
call rbx
mov qword [0x140277088], rax
test rax, rax
je 0x1400cb6b0
mov rcx, qword [0x140277050]
lea rdx, str.CM_Get_Parent
call rbx
mov qword [0x140277080], rax
test rax, rax
je 0x1400cb6b0
mov rcx, qword [0x140277050]
lea rdx, str.CM_Get_DevNode_PropertyW
call rbx
mov qword [0x140277078], rax
test rax, rax
je 0x1400cb6b0
mov rcx, qword [0x140277050]
lea rdx, str.CM_Get_Device_Interface_PropertyW
call rbx
mov qword [0x140277070], rax
test rax, rax
je 0x1400cb6b0
mov rcx, qword [0x140277050]
lea rdx, str.CM_Get_Device_Interface_List_SizeW
call rbx
mov qword [0x140277068], rax
test rax, rax
je 0x1400cb6b0
mov rcx, qword [0x140277050]
lea rdx, str.CM_Get_Device_Interface_ListW
call rbx
mov qword [0x140277060], rax
test rax, rax
je 0x1400cb6b0
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rcx, qword [0x140277058]
test rcx, rcx
je 0x1400cb6c2
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [0x140277050]
mov qword [0x140277058], 0
test rcx, rcx
je 0x1400cb6df
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x140277050], 0
mov eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
Function at 0x1400ccde0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x30]
mov rsi, r8
mov dword [rsp + 0x3c], 0
test rdx, rdx
je 0x1400ccf10
test r8, r8
je 0x1400ccf10
call fcn.1400d9a78
movzx ecx, word [rbx + 0xc]
mov qword [rbx + 0x30], 0
lea r12, [rbx + 0x30]
cmp rsi, rcx
jb 0x1400ccea8
lea rbp, [rbx + 0x68]
mov rcx, qword [rbx]
xor r9d, r9d
mov r8d, esi
mov qword [rsp + 0x20], rbp
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400cceff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1400ccef0
mov rcx, qword [rbx + 0x80]
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400ccf30
xor r9d, r9d
mov rcx, qword [rbx]
lea r8, [rsp + 0x3c]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x1400ccf41
mov eax, dword [rsp + 0x3c]
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rbp, qword [rbx + 0x10]
test rbp, rbp
je 0x1400ccee0
mov r8, rsi
mov rdx, rdi
mov rcx, rbp
mov rdi, rbp
call sub.msvcrt.dll_memcpy
movzx r8d, word [rbx + 0xc]
lea rcx, [rbp + rsi]
xor edx, edx
sub r8, rsi
call sub.msvcrt.dll_memset
movzx esi, word [rbx + 0xc]
jmp 0x1400cce2b
call sub.msvcrt.dll_malloc
mov qword [rbx + 0x10], rax
mov rbp, rax
jmp 0x1400cceb1
lea rdx, str.WriteFile
mov rcx, r12
call fcn.1400cb960
mov eax, 0xffffffff
jmp 0x1400cce99
call fcn.1400d9a78
mov qword [rbx + 0x30], 0
lea rcx, str.Zero_buffer_length
call qword [sym.imp.msvcrt.dll__wcsdup]
mov qword [rbx + 0x30], rax
jmp 0x1400cceff
lea rdx, str.hid_write_WaitForSingleObject
mov rcx, r12
call fcn.1400cb960
jmp 0x1400cceff
lea rdx, str.hid_write_GetOverlappedResult
mov rcx, r12
call fcn.1400cb960
jmp 0x1400cceff
Function at 0x1400ccf60
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x30]
mov rsi, r8
mov dword [rsp + 0x3c], 0
mov ebp, r9d
test rdx, rdx
je 0x1400cd0f0
test r8, r8
je 0x1400cd0f0
call fcn.1400d9a78
mov edx, dword [rbx + 0x38]
mov r12, qword [rbx + 0x60]
lea r13, [rbx + 0x30]
mov qword [rbx + 0x30], 0
test edx, edx
je 0x1400cd030
test ebp, ebp
js 0x1400ccfc9
mov edx, ebp
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, eax
xor eax, eax
test edx, edx
jne 0x1400cd022
mov rcx, qword [rbx]
lea rdx, [rbx + 0x48]
mov r9d, 1
lea r8, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov dword [rbx + 0x38], 0
test eax, eax
je 0x1400cd110
mov ecx, dword [rsp + 0x3c]
xor eax, eax
test ecx, ecx
je 0x1400cd022
mov rdx, qword [rbx + 0x40]
cmp byte [rdx], 0
jne 0x1400cd080
sub ecx, 1
cmp rcx, rsi
mov dword [rsp + 0x3c], ecx
cmovbe rsi, rcx
add rdx, 1
mov rcx, rdi
mov r8, rsi
call sub.msvcrt.dll_memcpy
mov eax, esi
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov dword [rbx + 0x38], 1
mov r8, qword [rbx + 0x18]
xor edx, edx
mov rcx, qword [rbx + 0x40]
call sub.msvcrt.dll_memset
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea rax, [rbx + 0x48]
mov rdx, qword [rbx + 0x40]
mov rcx, qword [rbx]
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
mov r8d, dword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400cd0a8
mov dword [rbx + 0x38], 0
jmp 0x1400ccff0
cmp rcx, rsi
cmovbe rsi, rcx
mov rcx, rdi
mov r8, rsi
call sub.msvcrt.dll_memcpy
mov eax, esi
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1400ccfb2
lea rdx, str.ReadFile
mov rcx, r13
call fcn.1400cb960
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CancelIo]
xor eax, eax
mov dword [rbx + 0x38], eax
nop word cs:[rax + rax]
mov eax, 0xffffffff
jmp 0x1400cd022
call fcn.1400d9a78
mov qword [rbx + 0x30], 0
lea rcx, str.Zero_buffer_length
call qword [sym.imp.msvcrt.dll__wcsdup]
mov qword [rbx + 0x30], rax
jmp 0x1400cd0e0
lea rdx, str.hid_read_timeout_GetOverlappedResult
mov rcx, r13
call fcn.1400cb960
jmp 0x1400cd0e0

Function at 0x1400cd130
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [rcx + 8]
neg eax
sbb r9d, r9d
jmp sym.a.out.exe_hid_read_timeout

Function at 0x1400d82a0
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.1400d99b0
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.1400d99b0
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 0x1400d8310
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140277be4]
mov rbx, rcx
test esi, esi
jle 0x1400d8440
mov rax, qword [0x140277be8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400d835b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400d83e5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400d8340
mov rcx, rbx
call fcn.1400d8dc0
mov rdi, rax
test rax, rax
je 0x1400d8462
mov rax, qword [0x140277be8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400d8f00
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140277be8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400d8447
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400d83de
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400d83f0
add dword [0x140277be4], 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 [0x140277be8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400d83de
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400d82a0
nop dword [rax]
xor esi, esi
jmp 0x1400d8368
mov rax, qword [0x140277be8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400d82a0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400d82a0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400d8a00
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140277c40]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140277c20]
test rbx, rbx
je 0x1400d8a64
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word cs:[rax + rax]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400d8a5b
test eax, eax
jne 0x1400d8a5b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400d8a40
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 0x1400d8dc0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x1400d8e40
Capabilities:
Parse pe header

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

Function at 0x1400d8f00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1401e5c80]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400d8f1f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400d8f28
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140041d10
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140041d1d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140041d2d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140041d15
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140041d45
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140041d32
sub eax, 3
jb 0x140041d5f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140041d96
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140041d86
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140041d84
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140041d73
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.140041cd2
jmp 0x140041d1d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x13600
mov dl, 5
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140041de2
cmp rsi, rcx
jae 0x140041dea
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140041dc9
cmp al, 0x8f
ja 0x140041dc9
cmp byte [rsi - 2], 0xf
je 0x140041dcf
sub al, 0xe8
cmp al, 1
ja 0x140041db3
cmp rsi, rcx
jae 0x140041dea
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140041db9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140041dea
lodsb al, byte [rsi]
jmp 0x140041dc9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x3f000]
mov eax, dword [rdi]
or eax, eax
je 0x140041e47
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x421dc]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140041df7
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140041e41
mov qword [rbx], rax
add rbx, 8
jmp 0x140041e17
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140041e81
cmp al, 0xef
ja 0x140041e73
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140041e53
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140041e62
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x237]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140041ed5
sub rsp, 0xffffffffffffff80
jmp 0x140013918