joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001c80
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000e0b4]
mov rbx, rcx
test esi, esi
jle 0x140001db0
mov rax, qword [0x14000e0b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001ccb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001d55
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001cb0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001dd2
mov rax, qword [0x14000e0b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000e0b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001db7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001d4e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001d60
add dword [0x14000e0b4], 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 [0x14000e0b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001d4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001cd8
mov rax, qword [0x14000e0b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140002480
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp edx, 2
je 0x1400025b0
ja 0x1400024c8
test edx, edx
je 0x140002548
mov eax, dword [0x14000e108]
test eax, eax
je 0x140002630
mov dword [0x14000e108], 1
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp edx, 3
jne 0x1400024b5
mov eax, dword [0x14000e108]
test eax, eax
je 0x1400024b5
lea r12, [0x14000e120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000e100]
test rbx, rbx
je 0x140002534
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 rsi, rsi
je 0x140002658
test eax, eax
jne 0x140002658
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002508
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1400024b5
mov eax, dword [0x14000e108]
test eax, eax
jne 0x1400025c8
mov eax, dword [0x14000e108]
cmp eax, 1
jne 0x1400024b5
mov rbx, qword [0x14000e100]
test rbx, rbx
je 0x140002581
nop dword [rax]
mov rcx, rbx
mov rbx, qword [rbx + 0x10]
call sym.free
test rbx, rbx
jne 0x140002570
lea rcx, [0x14000e120]
mov qword [0x14000e100], 0
mov dword [0x14000e108], 0
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp 0x1400024b5
call sym._fpreset
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea r12, [0x14000e120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000e100]
test rbx, rbx
je 0x14000261c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word [rax + rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140002648
test rsi, rsi
je 0x140002648
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400025f8
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140002552
lea rcx, [0x14000e120]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x1400024ab
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400025f8
jmp 0x14000261c
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002508
jmp 0x140002534

Function at 0x140002670
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002688
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002690
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400026a0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400026ed
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400026e4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400026ef
add rax, 0x28
cmp rax, r9
jne 0x1400026d0
xor eax, eax
ret
Function at 0x1400026f0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002780
mov rdx, qword [0x14000b840]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000276e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000276e
cmp word [rax + 0x18], 0x20b
jne 0x14000276e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002780
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002759
add rbx, 0x28
cmp rbx, rdi
je 0x140002780
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002750
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002790
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r8, qword [0x14000b840]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400027b0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400027b8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400027b0
movzx eax, word [rdx + 0x14]
sub rcx, r8
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002805
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400027fc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400027b0
add rax, 0x28
cmp rax, r9
jne 0x1400027e8
xor eax, eax
ret

Function at 0x140002810
Capabilities:
Parse pe header

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

Function at 0x140002850
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000b840]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002870
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002878
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002870
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400028c0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400028b7
test rcx, rcx
je 0x140002870
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x1400028a8
xor eax, eax
ret

Function at 0x1400028d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000b840]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400028ef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400028f8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140002910
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000b840]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002930
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002938
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002930
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002930
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002984
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002990
add rdx, 0x28
cmp r9, rdx
jne 0x140002970
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x1400029a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14000b840]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x1400029c4
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
cmp dword [rcx], 0x4550
je 0x1400029d0
mov rax, r9
ret
cmp word [rcx + 0x18], 0x20b
jne 0x1400029c4
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x1400029c4
movzx edx, word [rcx + 0x14]
movzx r10d, word [rcx + 6]
lea rdx, [rcx + rdx + 0x18]
test r10w, r10w
je 0x1400029c4
lea ecx, [r10 - 1]
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x140002a1c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x140002a30
add rdx, 0x28
cmp rdx, r10
jne 0x140002a08
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002a40
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x140002a4e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002a25
test r8d, r8d
jg 0x140002a38
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1400111f9
Capabilities:
Terminate process

Disassembly:
jmp 0x140012f70
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 0x14001127b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
jmp 0x140015c40
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x20]
lea rcx, [0x1400220a3]
call fcn.140011384
mov qword [rbp + 8], 0
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x68], 0
mov r8d, 0xa
mov edx, 0x65
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140015cb7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____FindResourceW_Failed_With_Error_:__d__n
call fcn.14001119a
mov eax, 0xffffffff
jmp 0x140015e2a
mov rdx, qword [rbp + 8]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x140015cec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____LoadResource_Failed_With_Error_:__d__n
call fcn.14001119a
mov eax, 0xffffffff
jmp 0x140015e2a
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x140015d1f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____LockResource_Failed_With_Error_:__d__n
call fcn.14001119a
mov eax, 0xffffffff
jmp 0x140015e2a
mov rdx, qword [rbp + 8]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov eax, eax
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x140015d56
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____SizeofResource_Failed_With_Error_:__d__n
call fcn.14001119a
mov eax, 0xffffffff
jmp 0x140015e2a
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
je 0x140015d85
mov r8, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x88]
call fcn.1400111b8
mov rdx, qword [rbp + 0x88]
lea rcx, str._i__pTmpBuffer_var_:_0x_p__n
call fcn.14001119a
mov qword [rbp + 0xa8], 0
jmp 0x140015db6
mov rax, qword [rbp + 0xa8]
inc rax
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x68]
cmp qword [rbp + 0xa8], rax
jae 0x140015dea
mov rax, qword [rbp + 0xa8]
mov rcx, qword [rbp + 0x88]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov edx, eax
lea rcx, str.x_02x
call fcn.14001119a
jmp 0x140015da5
lea rcx, [0x14001ac18]
call fcn.14001119a
mov rdx, qword [rbp + 0x48]
lea rcx, str._i__pPayloadAddress_var_:_0x_p__n
call fcn.14001119a
mov rdx, qword [rbp + 0x68]
lea rcx, str._i__sPayloadSize_var_:__ld__n
call fcn.14001119a
lea rcx, str.___Press__Enter__To_Quit_...
call fcn.14001119a
call qword [sym.imp.ucrtbased.dll_getchar]
xor eax, eax
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x140011285
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400142c0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400142e0
xor al, al
jmp 0x140014361
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400142f3
xor al, al
jmp 0x140014361
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 0x14001431d
xor al, al
jmp 0x140014361
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014331
xor al, al
jmp 0x140014361
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014343
xor al, al
jmp 0x140014361
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001435f
xor al, al
jmp 0x140014361
mov al, 1
add rsp, 0x38
ret
Function at 0x7ff713e4eca0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
push r15
mov eax, 0x5a4d
mov rdi, rdx
mov r11, rcx
cmp word [rcx], ax
jne 0x7ff713e4ed73
movsxd r8, dword [rcx + 0x3c]
add r8, rcx
cmp dword [r8], 0x4550
jne 0x7ff713e4ed73
mov edx, 0x20b
mov eax, 0x88
cmp word [r8 + 0x18], dx
mov ecx, 0x78
cmovne eax, ecx
xor r10d, r10d
mov ebp, dword [rax + r8]
mov r15d, dword [r11 + rbp + 0x1c]
lea r14, [r11 + rbp]
mov r12d, dword [r14 + 0x24]
add r15, r11
mov esi, dword [r14 + 0x20]
add r12, r11
mov r9d, dword [r14 + 0x18]
add rsi, r11
sub r9d, 1
mov r13d, dword [rax + r8 + 4]
js 0x7ff713e4ed73
nop dword [rax + rax]
lea r8d, [r9 + r10]
mov rax, rdi
sar r8d, 1
movsxd rbx, r8d
mov edx, dword [rsi + rbx*4]
add rdx, r11
sub rdx, rdi
movzx ecx, byte [rax]
cmp cl, byte [rax + rdx]
jne 0x7ff713e4ed59
inc rax
test cl, cl
jne 0x7ff713e4ed46
xor eax, eax
jmp 0x7ff713e4ed5e
sbb eax, eax
or eax, 1
test eax, eax
jns 0x7ff713e4ed68
lea r9d, [r8 - 1]
jmp 0x7ff713e4ed6e
jle 0x7ff713e4ed92
lea r10d, [r8 + 1]
cmp r9d, r10d
jge 0x7ff713e4ed30
xor eax, eax
mov rbx, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
pop r15
pop r14
pop r13
pop r12
ret
cmp r9d, r10d
jl 0x7ff713e4ed73
cmp r8d, dword [r14 + 0x14]
jge 0x7ff713e4ed73
movzx eax, word [r12 + rbx*2]
mov ecx, dword [r15 + rax*4]
cmp ecx, ebp
jb 0x7ff713e4edb3
mov eax, r13d
add eax, ebp
cmp ecx, eax
jb 0x7ff713e4ed73
lea rax, [r11 + rcx]
jmp 0x7ff713e4ed75
Function at 0x7ff713e4edc0
Capabilities:
Access pe header
Map section object
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push r12
push r14
push r15
lea rbp, [rsp - 0x418]
sub rsp, 0x518
mov rax, qword [0x7ff71438e600]
xor rax, rsp
mov qword [rbp + 0x400], rax
xor r12d, r12d
mov r15, r9
mov qword [r8], r12
mov rsi, r8
mov qword [r9], r12
movzx r14d, dl
lea r9, [rbp - 0x78]
mov qword [rsp + 0x60], r12
xor r8d, r8d
lea rdx, [rsp + 0x78]
call qword [sym.imp.ntdll.dll_RtlDosPathNameToRelativeNtPathName_U_WithStatus]
mov ebx, eax
test eax, eax
js 0x7ff713e4f057
movzx ecx, word [rbp - 0x78]
lea rdx, [rsp + 0x78]
mov dword [rsp + 0x50], r12d
lea r9, [rbp - 0x28]
mov qword [rsp + 0x48], r12
lea r8, [rbp - 0x58]
test cx, cx
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x38], 1
lea rcx, [rsp + 0x60]
xorps xmm0, xmm0
mov dword [rsp + 0x30], 1
mov eax, r12d
mov dword [rsp + 0x28], 0x80
cmovne rax, qword [rbp - 0x68]
mov qword [rbp - 0x50], rax
lea rax, [rbp - 0x78]
cmove rax, rdx
mov dword [rbp - 0x58], 0x30
mov edx, 0x120089
mov qword [rbp - 0x48], rax
mov dword [rbp - 0x40], 0x40
movdqu xmmword [rbp - 0x38], xmm0
mov qword [rsp + 0x20], r12
call qword [sym.imp.ntdll.dll_NtCreateFile]
mov ebx, eax
xor edx, edx
mov rax, qword gs:[0x30]
mov r8, qword [rbp - 0x80]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea rcx, [rbp - 0x78]
call qword [sym.imp.ntdll.dll_RtlReleaseRelativeName]
test ebx, ebx
js 0x7ff713e4f057
mov qword [rsp + 0x510], rdi
mov edi, r12d
mov qword [rsp + 0x68], r12
test r14b, r14b
je 0x7ff713e4ef6a
mov rcx, qword [rsp + 0x60]
lea rax, [rbp]
mov qword [rsp + 0x40], r12
xor r9d, r9d
mov qword [rsp + 0x38], r12
mov edx, ebx
lea rcx, [0x7ff713f754e0]
call fcn.7ff713e4f080
mov eax, ebx
jmp 0x7ff713e4f037
Function at 0x7ff713e4f3c0
Capabilities:
Access peb ldr_data
Get windows directory from kuser_shared_data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x7ff71438e600]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov qword [rcx], 0
lea rdx, [rsp + 0x58]
mov eax, dword [0x7ff713f75648]
lea r8, [0x7ff713f75658]
movsd xmm0, qword [0x7ff713f75640]
mov rdi, rcx
mov dword [rsp + 0x60], eax
mov esi, 0x23f0
movzx eax, byte [0x7ff713f7564c]
mov r9d, 0x7ffe0030
mov byte [rsp + 0x64], al
mov eax, dword [0x7ff713f75650]
mov dword [rsp + 0x50], eax
movzx eax, word [0x7ff713f75654]
mov word [rsp + 0x54], ax
movzx eax, byte [0x7ff713f75656]
mov byte [rsp + 0x56], al
movsd qword [rsp + 0x58], xmm0
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
lea rax, [rsp + 0x50]
cmp word [rcx + 0x120], si
lea rcx, [rsp + 0x70]
cmovb rax, rdx
mov edx, 0x82
mov qword [rsp + 0x20], rax
call fcn.7ff713e50270
lea r9, [rsp + 0x48]
xor edx, edx
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.7ff713e4edc0
mov ebx, eax
test eax, eax
jns 0x7ff713e4f4bb
mov r8d, eax
lea rdx, [rsp + 0x70]
lea rcx, [0x7ff713f75680]
call fcn.7ff713e4f080
jmp 0x7ff713e4f5f0
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
cmp word [rcx + 0x120], si
jb 0x7ff713e4f524
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x50]
call fcn.7ff713e4f7d0
mov ebx, eax
test eax, eax
jns 0x7ff713e4f4f9
mov edx, eax
lea rcx, [0x7ff713f756a0]
call fcn.7ff713e4f080
jmp 0x7ff713e4f5de
mov rdx, qword [rsp + 0x38]
lea r8, [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
call fcn.7ff713e4fa80
test eax, eax
je 0x7ff713e4f5d9
mov rax, qword [rsp + 0x30]
xor ebx, ebx
mov qword [rdi], rax
jmp 0x7ff713e4f5de
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x58]
call fcn.7ff713e4f7d0
mov ebx, eax
test eax, eax
js 0x7ff713e4f5de
mov r11, qword [rsp + 0x48]
xor r10d, r10d
xor r9d, r9d
test r11, r11
je 0x7ff713e4f5cd
mov rbx, qword [rsp + 0x40]
lea rsi, [0x7ff713f75584]
nop dword [rax]
mov r8, r9
xor edx, edx
sub r8, rsi
mov rax, rsi
add r8, rbx
nop
movzx ecx, byte [rax]
cmp byte [r8 + rax], cl
je 0x7ff713e4f57d
test cl, cl
jne 0x7ff713e4f5c9
inc edx
inc rax
cmp edx, 4
jb 0x7ff713e4f570
mov cl, 1
test cl, cl
mov rax, r9
cmove rax, r10
inc r9
mov r10, rax
cmp r9, r11
jb 0x7ff713e4f560
test rax, rax
je 0x7ff713e4f5cd
movsxd rcx, dword [rax + rbx + 4]
mov rbx, qword [rsp + 0x30]
add rcx, rax
add rbx, 8
add rbx, rcx
lea rcx, [0x7ff713f755b0]
call fcn.7ff713e4f080
mov qword [rdi], rbx
xor ebx, ebx
jmp 0x7ff713e4f5de
xor cl, cl
jmp 0x7ff713e4f589
lea rcx, [0x7ff713f75590]
call fcn.7ff713e4f080
mov ebx, 0xc0000225
mov rdx, qword [rsp + 0x40]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
mov eax, ebx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.7ff713f6da60
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x7ff713e4f620
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x7ff71438e600]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rdx
mov rbx, rcx
call fcn.7ff713e4f730
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlCreateRegistryKey]
test eax, eax
js 0x7ff713e4f707
lea r8, [0x7ff713f756c8]
mov dword [rsp + 0x30], 1
mov edx, 5
lea rcx, [rsp + 0x40]
call qword [sym.imp.ucrtbase.dll_wcscpy_s]
mov r8, rdi
lea rcx, [rsp + 0x40]
mov edx, 0x87
call qword [sym.imp.ucrtbase.dll_wcscat_s]
lea rcx, [rsp + 0x40]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x7ff713e4f6a0
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea r8, [0x7ff713f75750]
lea rax, [rsp + 0x40]
mov rdx, rbx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
test eax, eax
js 0x7ff713e4f707
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, [0x7ff713f75768]
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.7ff713f6da60
mov rbx, qword [rsp + 0x280]
add rsp, 0x260
pop rdi
ret
Function at 0x7ff713e4f7d0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov r11, rsp
push rbp
push r14
sub rsp, 0x168
mov rax, qword [0x7ff71438e600]
xor rax, rsp
mov qword [rsp + 0x158], rax
mov r14, rdx
mov qword [rdx], 0
xor edx, edx
mov dword [r11 - 0x28], 0
mov rbp, rcx
lea r9, [r11 - 0x28]
xor r8d, r8d
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x7ff713e4f97f
mov rax, qword gs:[0x30]
mov r8d, dword [rsp + 0x150]
mov qword [rsp + 0x198], rsi
add r8, r8
mov qword [rsp + 0x160], rdi
mov rdx, qword [rax + 0x60]
mov rcx, qword [rdx + 0x30]
mov edx, 8
call qword [sym.imp.kernel32.dll_HeapAlloc_1]
mov r8d, dword [rsp + 0x150]
xor r9d, r9d
add r8d, r8d
mov rdx, rax
mov rdi, rax
lea ecx, [r9 + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
test eax, eax
js 0x7ff713e4f951
mov qword [rsp + 0x190], rbx
xor ebx, ebx
cmp dword [rdi], ebx
jbe 0x7ff713e4f949
mov ecx, ebx
lea rax, [rsp + 0x20]
imul rcx, rcx, 0x128
mov edx, 2
add rcx, 8
add rcx, rdi
nop dword [rax]
lea rax, [rax + 0x80]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x30], xmm1
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
sub rdx, 1
jne 0x7ff713e4f8b0
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x48]
movups xmm1, xmmword [rcx + 0x10]
mov rcx, qword [rcx + 0x20]
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm1
mov qword [rax + 0x20], rcx
mov rcx, rbp
movzx eax, word [rsp + 0x46]
add rdx, rax
call qword [sym.imp.ucrtbase.dll__stricmp]
test eax, eax
je 0x7ff713e4f93f
inc ebx
cmp ebx, dword [rdi]
jb 0x7ff713e4f892
jmp 0x7ff713e4f949
mov rax, qword [rsp + 0x30]
xor esi, esi
mov qword [r14], rax
mov rbx, qword [rsp + 0x190]
mov rax, qword gs:[0x30]
mov r8, rdi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rdi, qword [rsp + 0x160]
mov eax, esi
mov rsi, qword [rsp + 0x198]
mov rcx, qword [rsp + 0x158]
xor rcx, rsp
call fcn.7ff713f6da60
add rsp, 0x168
pop r14
pop rbp
ret