joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180010174
Capabilities:
Get file attributes
Map section object

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov rax, qword [0x1800b2220]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor eax, eax
xorps xmm0, xmm0
and qword [rbp - 0x29], rax
xorps xmm1, xmm1
and qword [rbp - 0x21], rax
mov sil, dl
and qword [rbp - 0x19], rax
mov rdi, rcx
movups xmmword [rbp - 0x11], xmm0
mov qword [rbp + 0x3f], rax
movups xmmword [rbp - 1], xmm0
movups xmmword [rbp + 0xf], xmm0
movups xmmword [rbp + 0x1f], xmm0
movups xmmword [rbp + 0x2f], xmm1
cmp qword [rcx + 0x18], rax
jne 0x1800302c6
mov rcx, qword [rcx]
lea r9d, [rax + 0x18]
lea r8, [rbp + 0x2f]
mov dword [rsp + 0x20], 5
lea rdx, [rbp + 0x1f]
call qword [sym.imp.ntdll.dll_ZwQueryInformationFile]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x1800302d0
and qword [rbp - 9], 0
lea r8, [rbp - 0x11]
and dword [rbp + 7], 0
mov al, sil
and qword [rbp - 1], 0
xorps xmm0, xmm0
neg al
mov dword [rbp - 0x11], 0x30
mov rax, qword [rdi]
mov edx, 0xf0005
sbb ecx, ecx
mov qword [rsp + 0x30], rax
and ecx, 0x9000000
xor r9d, r9d
add ecx, 0x8000000
mov dword [rsp + 0x28], ecx
lea rcx, [rbp - 0x29]
movdqu xmmword [rbp + 0xf], xmm0
mov dword [rsp + 0x20], 2
call qword [sym.imp.ntdll.dll_ZwCreateSection]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x1800302d0
mov rcx, qword [rbp - 0x29]
lea rax, [rbp - 0x19]
mov dword [rsp + 0x48], 2
lea r8, [rbp - 0x21]
mov dword [rsp + 0x40], 0x500000
xor r9d, r9d
mov dword [rsp + 0x38], 2
or rdx, 0xffffffffffffffff
mov qword [rsp + 0x30], rax
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.ntdll.dll_ZwMapViewOfSection]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x1800302d0
mov rax, qword [rbp - 0x29]
xor ecx, ecx
mov qword [rdi + 8], rax
xor edx, edx
mov rax, qword [rbp - 0x21]
xor ebx, ebx
mov qword [rdi + 0x18], rax
mov rax, qword [rbp - 0x19]
mov qword [rdi + 0x20], rax
mov rax, qword [rbp + 0x37]
mov qword [rdi + 0x10], rax
mov word [rdi + 0x29], 0x101
mov byte [rdi + 0x2b], sil
mov qword [rbp - 0x29], rcx
mov qword [rbp - 0x21], rdx
test rcx, rcx
jne 0x1800302dd
test rdx, rdx
jne 0x1800302f2
mov eax, ebx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.180024680
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov ebx, 0xc000010e
jmp 0x18001030c
mov rcx, qword [rbp - 0x29]
mov rdx, qword [rbp - 0x21]
jmp 0x1800102fa
call qword [sym.imp.ntdll.dll_ZwClose]
nop dword [rax + rax]
mov rdx, qword [rbp - 0x21]
jmp 0x180010303
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_ZwUnmapViewOfSection]
nop dword [rax + rax]
nop
jmp 0x18001030c
Function at 0x180011b58
Capabilities:
Get system information on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1800b2220]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor eax, eax
mov rdi, rdx
mov qword [r11 - 0x38], rax
mov rsi, rcx
mov qword [r11 - 0x28], rax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x48], eax
test rcx, rcx
je 0x180011bc0
xor r9d, r9d
lea r8d, [rax + 0xc]
lea rdx, [r11 - 0x38]
lea ecx, [rax + 1]
call qword [sym.imp.ntdll.dll_RtlGetNativeSystemInformation]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x180030cdc
movzx eax, word [rsp + 0x30]
mov word [rsi], ax
test rdi, rdi
jne 0x180030d13
xor ebx, ebx
mov eax, ebx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180024680
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
lea r9, str.RtlGetNativeSystemInformation_failed___x_
mov r8d, 0x700
jmp 0x180030cf8
lea r9, str.ZwQuerySystemInformation_failed___x_
mov r8d, 0x722
lea rdx, str.AslEnvGetProcessWowInfo
mov dword [rsp + 0x20], eax
mov ecx, 1
call fcn.18001188c
nop
jmp 0x180011bcb
xor r9d, r9d
lea rdx, [rsp + 0x40]
lea r8d, [r9 + 0xc]
lea ecx, [r9 + 1]
call qword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x180030ceb
movzx eax, word [rsp + 0x40]
mov word [rdi], ax
jmp 0x180011bc9
Function at 0x180015700
Capabilities:
Get uefi variable

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x78
mov rax, qword [0x1800b2220]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbp, qword [rsp + 0xc0]
mov esi, r9d
mov rdi, r8
mov rbx, rdx
test rcx, rcx
je 0x180032176
test rdx, rdx
je 0x180032176
mov rdx, rcx
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
mov rdx, rbx
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_RtlGUIDFromString]
nop dword [rax + rax]
test eax, eax
js 0x1800157a8
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], esi
mov r8, rdi
mov qword [rsp + 0x20], rbp
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtQuerySystemEnvironmentValueEx]
nop dword [rax + rax]
test eax, eax
jns 0x1800157c8
mov ecx, eax
call sym.KERNEL32.dll_BaseSetLastNTError
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180024680
add rsp, 0x78
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov eax, dword [rsp + 0x30]
jmp 0x1800157b1
mov ecx, 0x57
call qword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
nop dword [rax + rax]
nop
jmp 0x1800157af

Function at 0x180015850
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x180026a60
cmp ecx, 0x40
mov ecx, ecx
jae 0x180026a80
cmp dword gs:[0x68], 0
mov rax, qword gs:[rcx*8 + 0x1480]
jne 0x180026aa9
ret
xor eax, eax
cmp ecx, 0x440
jae 0x180026ab6
or rax, qword gs:[0x1780]
je 0x180026a9d
mov rax, qword [rax + rcx*8 - 0x200]
cmp dword gs:[0x68], 0
jne 0x180026aa9
ret
mov dword gs:[0x68], 0
ret
sub rsp, 0x28
mov ecx, 0xc000000d
call sym.KERNEL32.dll_BaseSetLastNTError
xor eax, eax
add rsp, 0x28
ret
Function at 0x180015ca0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov r8d, 8
test r8b, cl
je 0x180015d7a
mov rcx, qword [0x1800b2a30]
call qword [sym.imp.ntdll.dll_RtlLockHeap]
nop dword [rax + rax]
nop
lea rdi, [rbx - 8]
mov rdx, rdi
mov rcx, qword [0x1800b2a20]
call qword [sym.imp.ntdll.dll_RtlIsValidHandle]
nop dword [rax + rax]
test al, al
je 0x180015d1c
mov rbx, qword [rbx]
mov qword [rsp + 0x20], rbx
test rbx, rbx
je 0x180015d36
movzx ecx, word [rdi + 2]
mov eax, 1
mov r8d, 0xff
add eax, ecx
mov word [rdi + 2], ax
cmp cx, r8w
jne 0x180015d47
mov word [rdi + 2], cx
jmp 0x180015d47
mov ecx, 6
call qword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
nop dword [rax + rax]
xor ebx, ebx
mov qword [rsp + 0x20], rbx
jmp 0x180015d47
mov ecx, 0x9d
call qword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
nop dword [rax + rax]
jmp 0x180015d58
mov rcx, qword [0x1800b2a30]
call qword [sym.imp.ntdll.dll_RtlUnlockHeap]
nop dword [rax + rax]
mov rax, rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rax, qword [0x1800b2a28]
test rax, rax
je 0x1800322f6
cmp rbx, rax
jae 0x18003231f
mov edx, 1
mov rcx, rbx
call sym.KERNEL32.dll_IsBadReadPtr
test eax, eax
je 0x180015d6b
jmp 0x18003231f
xor r9d, r9d
lea rdx, [rsp + 0x40]
lea ecx, [r9 + 0x32]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
nop dword [rax + rax]
mov rax, qword [rsp + 0x40]
mov qword [0x1800b2a28], rax
jmp 0x180015d8a
mov ecx, 6
call qword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
nop dword [rax + rax]
xor eax, eax
jmp 0x180015d6e
Function at 0x18001779c
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
test edx, edx
je 0x180017853
cmp edx, 1
jne 0x180017848
call qword [sym.imp.KERNELBASE.dll_KernelBaseGetGlobalData]
nop dword [rax + rax]
mov dword [rax + 0x28], ebx
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x98]
mov rax, qword gs:[0x60]
mov rdx, qword [rcx + 8]
sub rdx, qword [rax + 0x380]
mov rax, qword gs:[0x60]
add rdx, qword [rax + 0x88]
mov qword [0x1800b2bf8], rdx
call fcn.180017880
mov rcx, qword [0x1800b2bf8]
mov rax, qword [rcx + 0x170]
test rax, rax
je 0x180017875
sub rax, qword [rcx + 0x9e8]
add rax, rcx
xor r9d, r9d
mov qword [0x1800b2b30], rax
lea rdx, [0x1800b2a40]
xor ecx, ecx
lea r8d, [r9 + 0x40]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
nop dword [rax + rax]
test eax, eax
js 0x18001784a
mov bl, 1
mov al, bl
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.KERNELBASE.dll_KernelBaseGetGlobalData]
nop dword [rax + rax]
cmp dword [rax + 0x28], ebx
je 0x180017848
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call sym.KERNEL32.dll_WritePrivateProfileStringW
jmp 0x180017848
mov rax, rbx
jmp 0x180017821

Function at 0x1800178d8
Capabilities:
Access pe header

Disassembly:
sub rsp, 0x28
mov rcx, qword gs:[0x60]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
nop dword [rax + rax]
xor ecx, ecx
test rax, rax
je 0x18001790b
cmp word [rax + 0x5e], cx
jge 0x18001790b
lea eax, [rcx + 1]
add rsp, 0x28
ret
xor eax, eax
jmp 0x180017905
Function at 0x180017a60
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r15
mov rbp, rsp
sub rsp, 0x70
and qword [rbp + 0x30], 0
lea rdx, str.RegistryMachineSystemCurrentControlSetControlTerminal_Server
mov rsi, rcx
xor edi, edi
lea rcx, [rbp - 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
mov rcx, qword gs:[0x60]
mov r15d, 0x224
mov r8d, r15d
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rbx, rax
cmp qword [rbp - 0x38], rdi
je 0x180017bbc
test rax, rax
je 0x180017bec
and qword [rbp - 0x28], rdi
lea rax, [rbp - 0x40]
xorps xmm0, xmm0
mov qword [rbp - 0x20], rax
lea r8, [rbp - 0x30]
mov dword [rbp - 0x30], 0x30
mov edx, 0x20019
mov dword [rbp - 0x18], 0x40
lea rcx, [rbp + 0x30]
movdqu xmmword [rbp - 0x10], xmm0
call qword [sym.imp.ntdll.dll_NtOpenKey]
nop dword [rax + rax]
test eax, eax
js 0x180017bbc
lea rdx, str.TSAppCompat
lea rcx, [rbp - 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea r8d, [rdi + 2]
mov r9, rbx
mov dword [rsp + 0x20], r15d
lea rdx, [rbp - 0x40]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
test eax, eax
jns 0x18003280e
lea rdx, str.TSUserEnabled
lea rcx, [rbp - 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x40]
mov r9, rbx
mov dword [rsp + 0x20], r15d
mov r8d, 2
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
test eax, eax
js 0x180017c04
cmp dword [rbx + 4], 4
jne 0x180017c04
mov al, byte [rbx + 0xc]
mov byte [rsi], al
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
test rbx, rbx
je 0x180017bec
mov r8, r15
xor edx, edx
mov rcx, rbx
call sub.ntdll.dll_memset
mov rcx, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
lea r11, [rsp + 0x70]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret
xor al, al
jmp 0x180017baa
cmp dword [rbx + 4], 4
jne 0x180017b5b
cmp dword [rbx + 0xc], edi
mov eax, 1
cmovne edi, eax
jmp 0x180017b5b

Function at 0x180017fd0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
movsxd rcx, ecx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
nop dword [rax + rax]
or ecx, 0xffffffff
test eax, eax
cmovne ecx, dword [rsp + 0x40]
mov eax, ecx
add rsp, 0x38
ret
Function at 0x1800182a0
Capabilities:
Persist via appinit_dlls registry key
Query or enumerate registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
cmp byte [0x7ffe02ec], 0
jne 0x18001839b
mov rax, qword gs:[0x60]
test byte [rax + 3], 2
jne 0x18001839b
test byte [rax + 3], 0x10
jne 0x1800183a2
test byte [0x7ffe02f0], 0x80
jne 0x1800183a2
lea rcx, [rbp + 0x10]
call fcn.1800183b8
test eax, eax
je 0x1800182f9
cmp dword [rbp + 0x10], 0
jne 0x18001839b
lea rcx, [rbp + 0x10]
call fcn.1800186ac
test eax, eax
je 0x180018310
cmp dword [rbp + 0x10], 0
jne 0x18001839b
lea rax, [rbp + 0x28]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x18001839b
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x30], rax
lea r8, str.LoadAppInit_DLLs
lea rax, [rbp + 0x20]
mov dword [rbp + 0x18], 4
mov qword [rsp + 0x28], rax
mov r9d, 0x10
and qword [rsp + 0x20], 0
xor edx, edx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
jne 0x18001838b
cmp dword [rbp + 0x20], eax
jne 0x180032dae
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
add rsp, 0x40
pop rbp
ret
call fcn.180018708
test eax, eax
jne 0x1800182e2
jmp 0x18001839b
mov rcx, qword [rbp + 0x28]
call fcn.180036794
nop
jmp 0x18001838b

Function at 0x180018708
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rbx
xor r9d, r9d
lea r8d, [rbx + 8]
lea ecx, [rbx + 0x67]
mov dword [rsp + 0x30], r8d
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
nop dword [rax + rax]
test eax, eax
js 0x180018745
test byte [rsp + 0x34], 2
je 0x180018745
mov ebx, 1
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x180019ff0
Capabilities:
Parse pe header

Disassembly:
mov r8, rcx
xor eax, eax
mov rcx, qword [rcx + 8]
mov edx, 0x5a4d
cmp word [rcx], dx
jne 0x18001a022
cmp dword [rcx + 0x3c], eax
jle 0x18001a022
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18001a022
mov ecx, 0x14c
cmp word [rdx + 4], cx
je 0x18001a024
ret
mov qword [r8 + 0x48], rdx
mov eax, 1
mov ecx, dword [rdx + 0x50]
mov qword [r8 + 0x50], rcx
ret
Function at 0x18001a134
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rax, qword [rcx + 0x48]
mov r15, rdx
mov rcx, qword [rcx + 0x38]
lea rdx, [rsp + 0x50]
xor r12d, r12d
mov edi, 0xc0000089
mov ebx, r12d
mov r14d, r12d
movzx ebp, word [rax + 0x14]
movzx esi, word [rax + 6]
add rbp, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileSizeEx]
nop dword [rax + rax]
test eax, eax
je 0x18001a1b9
cmp r12w, si
jae 0x18001a1ab
lea rax, [rbp + 0x28]
mov edx, esi
mov ecx, ebx
cmp dword [rax + 4], ebx
jbe 0x18001a199
mov r14d, dword [rax]
mov ebx, dword [rax + 4]
cmp ebx, ecx
cmovbe ebx, ecx
add rax, 0x28
sub rdx, 1
jne 0x18001a18f
lea edx, [r14 + rbx]
lea ecx, [rdx + 0x40]
cmp rcx, qword [rsp + 0x50]
jl 0x18001a1d3
mov rbx, qword [rsp + 0x58]
mov eax, edi
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov dword [r15], edx
mov edi, r12d
jmp 0x18001a1b9

Function at 0x18001a1e4
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r10, qword [rcx + 0x48]
xor edi, edi
mov r12, r9
mov r13, r8
mov r15, rdx
mov rbp, rcx
mov esi, 0xc0000089
movzx eax, word [r10 + 0x14]
lea rbx, [r10 + 0x18]
movzx r14d, word [r10 + 6]
add rbx, rax
test r14d, r14d
je 0x18001a27f
or r8, 0xffffffffffffffff
inc r8
cmp byte [r15 + r8], 0
jne 0x18001a231
mov rdx, r15
mov rcx, rbx
call qword [sym.imp.ntdll.dll_strncmp]
nop dword [rax + rax]
test eax, eax
je 0x18001a25e
add rbx, 0x28
inc edi
cmp edi, r14d
jb 0x18001a22d
jmp 0x18001a27f
mov r9d, dword [rbx + 0xc]
mov r8, qword [rbp + 0x50]
cmp r9, r8
jae 0x18001a27f
mov rdx, qword [rbp + 8]
xor esi, esi
add rdx, r9
sub r8, r9
mov qword [r13], rdx
mov qword [r12], r8
mov rbx, qword [rsp + 0x50]
mov eax, esi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x18001a2b0
Capabilities:
Map section object

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x50
xor edi, edi
mov rbx, rdx
test rdx, rdx
je 0x180033410
cmp dword [rdx], 0x438
jne 0x180033410
mov dword [rsp + 0x48], 4
lea rax, [r11 + 0x20]
mov dword [rsp + 0x40], edi
lea r8, [r11 + 0x10]
mov dword [rsp + 0x38], 1
xor r9d, r9d
mov qword [r11 - 0x28], rax
or rdx, 0xffffffffffffffff
lea rax, [r11 + 0x18]
mov qword [r11 + 0x18], rdi
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x38], rdi
mov qword [r11 + 0x20], rdi
mov qword [r11 + 0x10], rdi
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
nop dword [rax + rax]
test eax, eax
js 0x18003340c
mov rdx, qword [rsp + 0x68]
mov r8d, dword [rdx + 0x38]
cmp r8d, dword [rdx + 8]
jae 0x18001a3e7
lea eax, [r8 + 1]
imul rcx, r8, 0x438
add rcx, qword [rdx + 0x20]
mov dword [rdx + 0x38], eax
add rcx, rdx
lea eax, [rdi + 8]
lea edx, [rax + 0x78]
movups xmm0, xmmword [rcx]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rbx + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rbx + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rbx + 0x30], xmm1
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rbx + 0x40], xmm0
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rbx + 0x50], xmm1
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rbx + 0x60], xmm0
add rbx, rdx
movups xmm1, xmmword [rcx + 0x70]
add rcx, rdx
movups xmmword [rbx - 0x10], xmm1
sub rax, 1
jne 0x18001a357
movups xmm0, xmmword [rcx]
mov edi, 1
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rbx + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rbx + 0x20], xmm0
mov rax, qword [rcx + 0x30]
mov qword [rbx + 0x30], rax
mov rdx, qword [rsp + 0x68]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
nop dword [rax + rax]
mov eax, edi
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
mov ecx, 0x12
call qword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
nop dword [rax + rax]
jmp 0x18001a3c4
mov ecx, eax
jmp 0x180033415
mov ecx, 0xc0000004
call sym.KERNEL32.dll_BaseSetLastNTError
xor eax, eax
jmp 0x18001a3db
Function at 0x18001aa90
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x18]
sub rsp, 0x118
mov rax, qword [0x1800b2220]
xor rax, rsp
mov qword [rbp], rax
mov rbx, rcx
mov r14, r9
lea rcx, [rsp + 0x40]
mov rsi, r8
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x60], 0x30
xorps xmm0, xmm0
mov qword [rsp + 0x70], rax
lea r8, [rsp + 0x60]
mov qword [rsp + 0x68], rbx
mov edx, 0x20019
mov dword [rsp + 0x78], 0x40
lea rcx, [rsp + 0x30]
movdqu xmmword [rbp - 0x80], xmm0
call qword [sym.imp.ntdll.dll_NtOpenKey]
nop dword [rax + rax]
xor r15d, r15d
mov edi, eax
test eax, eax
js 0x18001abeb
lea rdx, str.ComputerName
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x70]
lea r8d, [r15 + 1]
mov dword [rsp + 0x20], 0x6c
lea rdx, [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
mov edi, eax
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
test edi, edi
js 0x18001abeb
mov eax, dword [rbp - 0x64]
cmp eax, 2
jb 0x18003391e
mov edx, dword [rbp - 0x68]
and eax, 0xfffffffe
mov ecx, eax
add rax, rdx
mov dword [rbp - 0x64], ecx
movzx r8d, word [rbp + rax - 0x72]
test r8w, r8w
jne 0x18001aba7
lea eax, [rcx - 2]
mov dword [rbp - 0x64], eax
lea eax, [rcx - 2]
test r8w, r8w
cmovne eax, ecx
mov ecx, eax
shr rcx, 1
mov ebx, eax
inc rcx
mov eax, dword [r14]
cmp rax, rcx
jb 0x18001ac0a
lea rax, [rbp - 0x70]
mov r8d, ebx
add rdx, rax
mov rcx, rsi
call sub.ntdll.dll_memcpy
mov word [rbx + rsi], r15w
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rsi + rbx*2], r15w
jne 0x18001abde
mov dword [r14], ebx
mov eax, edi
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.180024680
add rsp, 0x118
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
shr ebx, 1
mov edi, 0x80000005
inc ebx
jmp 0x18001abe8
mov edi, 0xc0000034
jmp 0x18001abeb
Function at 0x18001b5b0
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x28
and dword [rsp + 0x38], 0
test edx, 0x60000000
jne 0x180033d31
cmp ecx, 0x409
jne 0x180033cde
mov eax, dword [0x1800b2cc4]
test eax, eax
jne 0x18001b600
mov ecx, 0x4e4
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_IsValidCodePage]
nop dword [rax + rax]
neg eax
sbb eax, eax
and eax, 0xffff06fb
add eax, 0xfde9
mov dword [0x1800b2cc4], eax
add rsp, 0x28
ret
cmp ecx, 0x800
je 0x180033d31
cmp ecx, 0x7f
je 0x18001b5d1
mov r9d, 2
lea r8, [rsp + 0x38]
mov edx, 0xa0001004
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
nop dword [rax + rax]
test eax, eax
jne 0x180033d25
lea ecx, [rax + 0x57]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x18001b600
mov eax, dword [rsp + 0x38]
test eax, eax
jne 0x18001b600
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetACP]
nop dword [rax + rax]
nop
jmp 0x18001b600

Function at 0x18001b8b0
Capabilities:
Create thread

Disassembly:
mov r11, rsp
sub rsp, 0x48
mov r10d, dword [rsp + 0x70]
mov rax, qword [rsp + 0x78]
and r10d, 0x10004
mov qword [r11 - 0x10], rax
and qword [r11 - 0x18], 0
mov dword [r11 - 0x20], r10d
mov qword [r11 - 0x28], r9
mov r9, r8
mov r8, rdx
mov rdx, rcx
or rcx, 0xffffffffffffffff
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateRemoteThreadEx]
nop dword [rax + rax]
add rsp, 0x48
ret

Function at 0x18001bba4
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [0x1800b2cf8]
test rbx, rbx
je 0x18001bbc9
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
xor edx, edx
lea rcx, [0x180086110]
mov r8d, 0x800
mov ebx, 0x7ffe0030
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x18001bc24
lea rdx, [0x1800860f8]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
test rax, rax
je 0x18001bc15
call qword [case.0x1800532bc.0]
mov rbx, rax
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
nop dword [rax + rax]
mov qword [0x1800b2cf8], rbx
jmp 0x18001bbba

Function at 0x18001c420
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x90
xor ebx, ebx
mov rdi, r8
mov rsi, rdx
mov qword [rax - 0x78], rbx
lea r8, [rax - 0x68]
xor edx, edx
lea r9d, [rbx + 0x30]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
nop dword [rax + rax]
test eax, eax
js 0x18001c49d
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemInfo]
nop dword [rax + rax]
mov rax, qword [rsp + 0x40]
mov ebx, 1
mov qword [rsi], rax
neg rax
sbb rax, rax
and rax, qword [rsp + 0x78]
mov qword [rdi], rax
lea r11, [rsp + 0x90]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov ecx, eax
call sym.KERNEL32.dll_BaseSetLastNTError
jmp 0x18001c485