joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401570
Capabilities:
Get common file path
Get startup folder
Read file on windows
Write file on windows
Write file to startup folder

Disassembly:
push rdi
mov eax, 0x1250
push rsi
push rbx
call fcn.004036e0
sub rsp, rax
xor r9d, r9d
xor r8d, r8d
mov edx, 7
lea rbx, [rsp + 0x30]
mov rsi, rcx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jns 0x4015b0
add rsp, 0x1250
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x140]
mov r8, rbx
lea rdx, str._sMicrosoft.exe
mov rcx, rdi
call sub.msvcrt.dll_sprintf
lea rdx, [0x0040c011]
mov rcx, rsi
call sub.msvcrt.dll_fopen
lea rdx, [0x0040c014]
mov rcx, rdi
mov rsi, rax
call sub.msvcrt.dll_fopen
test rsi, rsi
mov rdi, rax
je 0x4015a4
lea rbx, [rsp + 0x250]
test rax, rax
jne 0x401612
jmp 0x4015a4
mov r9, rdi
mov edx, 1
mov rcx, rbx
call sub.msvcrt.dll_fwrite
mov r8d, 0x1000
mov r9, rsi
mov edx, 1
mov rcx, rbx
call sub.msvcrt.dll_fread
test rax, rax
mov r8, rax
jne 0x401602
mov rcx, rsi
call sub.msvcrt.dll_fclose
mov rcx, rdi
call sub.msvcrt.dll_fclose
nop
add rsp, 0x1250
pop rbx
pop rsi
pop rdi
ret
Function at 0x401720
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
test r8d, r8d
mov ebp, r9d
jle 0x4018f8
lea ebx, [r9 - 1]
mov dword [rsp + 0x20], 0x7fffffff
mov r14, rdx
movsxd rax, ebx
mov r15d, ebx
mov dword [rsp + 0x24], ebx
mov qword [rsp + 0x28], rax
add rax, rcx
mov qword [rsp + 0x30], rax
lea eax, [r8 - 1]
mov qword [rsp + 0x38], 0
lea r13, [rdx + rax*8 + 8]
mov rax, r15
mov r15, rcx
mov r12, rax
jmp 0x4017ce
cmp al, 0x33
jne 0x40178d
cmp byte [rbx], 0x33
je 0x401820
lea rdi, [0x0040c01b]
mov ecx, 2
mov rsi, r15
repe cmpsb byte [rsi], byte [rdi]
seta al
sbb al, 0
test al, al
jne 0x4017c1
lea rdi, [0x0040c01b]
mov ecx, 2
mov rsi, rbx
repe cmpsb byte [rsi], byte [rdi]
seta al
sbb al, 0
test al, al
je 0x401820
add r14, 8
cmp r14, r13
je 0x4018c2
mov ecx, 3
mov rsi, r15
mov rbx, qword [r14]
lea rdi, [0x0040c017]
repe cmpsb byte [rsi], byte [rdi]
seta al
sbb al, 0
test al, al
jne 0x401805
lea rdi, [0x0040c017]
mov ecx, 3
mov rsi, rbx
repe cmpsb byte [rsi], byte [rdi]
seta al
sbb al, 0
test al, al
je 0x401820
movzx eax, byte [r15]
cmp al, 0x31
jne 0x401780
cmp byte [rbx], 0x31
jne 0x40178d
nop word [rax + rax]
mov rcx, rbx
mov esi, ebp
call sub.msvcrt.dll_strlen
sub esi, eax
mov eax, esi
sar eax, 0x1f
xor esi, eax
sub esi, eax
test ebp, ebp
jle 0x4018e0
xor eax, eax
jmp 0x401844
mov rax, rdx
xor edx, edx
movzx edi, byte [rbx + rax]
cmp byte [r15 + rax], dil
setne dl
add esi, edx
cmp rax, r12
lea rdx, [rax + 1]
jne 0x401841
mov rax, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
movzx edi, byte [rdi]
cmp byte [rbx + rax], dil
jne 0x40189a
sub rax, 1
mov ecx, dword [rsp + 0x24]
jmp 0x40188f
movzx edx, byte [r15 + rax]
sub rax, 1
cmp dl, byte [rbx + rax + 1]
jne 0x40189a
sub ecx, 1
sub esi, 0xa
cmp ecx, 0xffffffff
jne 0x401880
cmp dword [rsp + 0x20], esi
jle 0x4017c1
mov rcx, rbx
add r14, 8
call sub.msvcrt.dll__strdup
cmp r14, r13
mov dword [rsp + 0x20], esi
mov qword [rsp + 0x38], rax
jne 0x4017ce
mov rax, qword [rsp + 0x38]
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov eax, dword [rsp + 0x24]
test eax, eax
jns 0x40185c
cmp dword [rsp + 0x20], esi
jle 0x4017c1
jmp 0x4018a4
mov qword [rsp + 0x38], 0
jmp 0x4018c2
Function at 0x402780
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x0043a624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x402908
mov rax, qword [0x0043a628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x4027cc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x402855
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x4027b0
mov rcx, rbx
call fcn.00403420
test rax, rax
mov r12, rax
je 0x40293d
mov rax, qword [0x0043a628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00403550
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0043a628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x402920
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40284e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x4028b0
add dword [0x0043a624], 1
cmp edi, 8
jae 0x402883
test dil, 4
jne 0x4028f4
test edi, edi
je 0x402878
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x40290f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x402878
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x40289c
jmp 0x402878
add rsi, qword [0x0043a628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40284e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00403a50
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x402878
xor esi, esi
jmp 0x4027d7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x402878
mov rax, qword [0x0043a628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.00403a50
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00403a50
nop
nop dword [rax]

Function at 0x403090
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0043a900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0043a8e0]
test rbx, rbx
je 0x4030e4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x4030db
test rsi, rsi
je 0x4030db
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4030c0
lea rcx, [0x0043a900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x403420
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00437410]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x40348d
mov rcx, r8
call fcn.00403300
test eax, eax
je 0x40348d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x40348d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x403484
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40348f
add rax, 0x28
cmp rax, r9
jne 0x403470
xor eax, eax
add rsp, 0x28
ret
Function at 0x403a50
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp 0x401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.00403870
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.00403870
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x1800025c4
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp - 0x19], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x18002a5a0]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov esi, edx
mov rdi, rcx
or ebx, 0xffffffff
cmp edx, ebx
jne 0x180002606
xor eax, eax
jmp 0x1800027c5
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x180002640
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
mov rcx, r8
add rcx, qword [rax]
cmp qword [rax], rcx
jae 0x180002640
lea ecx, [r8 - 1]
mov dword [rdx], ecx
mov rdx, qword [rdi + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], sil
mov eax, esi
jmp 0x1800027c5
cmp qword [rdi + 0x90], 0
je 0x1800027c3
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x80]
cmp qword [r8], rax
jne 0x180002678
mov rdx, qword [rdi + 0x70]
mov rcx, qword [rdi + 0x68]
mov qword [r8], rcx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
cmp qword [rdi + 0x78], 0
jne 0x180002699
movsx ecx, sil
mov rdx, qword [rdi + 0x90]
call fcn.180005190
cmp eax, ebx
cmovne ebx, esi
jmp 0x1800027c3
mov byte [rbp - 1], sil
mov qword [rbp + 0x1f], 0xf
and qword [rbp + 0x17], 0
mov byte [rbp + 7], 0
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp + 7]
call fcn.180003a00
nop
lea rdx, [rbp + 7]
cmp qword [rbp + 0x1f], 0x10
cmovae rdx, qword [rbp + 7]
lea r8, [rbp + 7]
cmovae r8, qword [rbp + 7]
mov rcx, qword [rdi + 0x78]
mov r10, qword [rcx]
add rdx, qword [rbp + 0x17]
lea rax, [rbp - 9]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], r8
lea rax, [rbp - 0x11]
mov qword [rsp + 0x20], rax
lea r9, [rbp]
lea r8, [rbp - 1]
lea rdx, [rdi + 0x84]
call qword [r10 + 0x38]
test eax, eax
js 0x1800027b3
cmp eax, 1
jg 0x180002799
lea rax, [rbp + 7]
mov r9, qword [rbp + 7]
mov r10, qword [rbp + 0x1f]
cmp r10, 0x10
cmovae rax, r9
mov r14, qword [rbp - 9]
sub r14, rax
je 0x18000275f
lea rcx, [rbp + 7]
cmp r10, 0x10
cmovae rcx, r9
mov r9, qword [rdi + 0x90]
mov r8, r14
mov edx, 1
call fcn.180006784
cmp r14, rax
jne 0x1800027b3
mov byte [rdi + 0x81], 1
lea rax, [rbp - 1]
cmp qword [rbp - 0x11], rax
jne 0x180002795
test r14, r14
jne 0x1800026bf
cmp qword [rbp + 0x17], 0x20
jae 0x1800027b3
xor r8d, r8d
lea edx, [r14 + 8]
lea rcx, [rbp + 7]
call fcn.1800031ec
jmp 0x1800026bf
mov ebx, esi
jmp 0x1800027b3
cmp eax, 3
jne 0x1800027b3
movsx ecx, byte [rbp - 1]
mov rdx, qword [rdi + 0x90]
call fcn.180005190
cmp eax, ebx
cmovne ebx, esi
cmp qword [rbp + 0x1f], 0x10
jb 0x1800027c3
mov rcx, qword [rbp + 7]
call fcn.180006564
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.180005170
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800035f8
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x18002a5a0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
xor ebx, ebx
cmp qword [rcx + 0x78], rbx
je 0x180003753
cmp byte [rcx + 0x81], bl
je 0x180003753
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x180003659
xor al, al
jmp 0x180003758
mov qword [rbp - 0x18], 0xf
mov qword [rbp - 0x20], rbx
mov byte [rbp - 0x30], bl
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp - 0x30]
call fcn.180003a00
nop
mov esi, 1
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rdx, qword [rbp - 0x30]
lea r8, [rbp - 0x30]
cmovae r8, qword [rbp - 0x30]
mov rcx, qword [rdi + 0x78]
mov r10, qword [rcx]
mov r9, qword [rbp - 0x20]
add r9, rdx
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x84]
call qword [r10 + 0x40]
mov ecx, eax
test eax, eax
je 0x1800036c3
dec ecx
jne 0x18000372f
jmp 0x1800036c9
mov byte [rdi + 0x81], bl
lea rax, [rbp - 0x30]
mov r9, qword [rbp - 0x30]
mov r10, qword [rbp - 0x18]
cmp r10, 0x10
cmovae rax, r9
mov r14, qword [rbp - 0x38]
sub r14, rax
je 0x180003709
lea rcx, [rbp - 0x30]
cmp r10, 0x10
cmovae rcx, r9
mov r9, qword [rdi + 0x90]
mov r8, r14
mov rdx, rsi
call fcn.180006784
cmp r14, rax
jne 0x180003739
cmp byte [rdi + 0x81], bl
je 0x180003736
test r14, r14
jne 0x18000367e
xor r8d, r8d
lea edx, [r14 + 8]
lea rcx, [rbp - 0x30]
call fcn.1800031ec
jmp 0x18000367e
cmp ecx, 2
jne 0x18000373f
jmp 0x18000373c
mov bl, sil
mov sil, bl
mov bl, sil
cmp qword [rbp - 0x18], 0x10
jb 0x18000374f
mov rcx, qword [rbp - 0x30]
call fcn.180006564
mov al, bl
jmp 0x180003758
mov eax, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.180005170
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x18000d434
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x18000d44a
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18000d44c
xor eax, eax
test eax, eax
je 0x18000d45c
mov ecx, eax
call fcn.18000a72c
or eax, 0xffffffff
jmp 0x18000d45e
xor eax, eax
add rsp, 0x28
ret
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
push rcx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
push rsi
mov rdx, qword [rdx + 0x20]
xor r9, r9
movzx rcx, word [rdx + 0x4a]
mov rsi, qword [rdx + 0x50]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov ecx, dword [rax + 0x18]
mov r8d, dword [rax + 0x20]
push rax
add r8, rdx
jrcxz 0x1400040ca
dec rcx
mov esi, dword [r8 + rcx*4]
xor r9, r9
add rsi, rdx
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x180001134
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
or r9d, 0xffffffff
mov r10d, 0x800
movzx edx, byte [rcx]
lea rax, [0x18001b850]
movzx r8d, r9b
inc rcx
xor r8, rdx
shr r9d, 8
xor r9d, dword [rax + r8*4]
sub r10, 1
jne 0x18000113e
not r9d
mov eax, r9d
ret
Function at 0x140001420
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x80
mov rsi, rcx
xor edi, edi
lea rdx, str.REGISTRYMACHINESYSTEMCurrentControlSet_services
lea rcx, [rax - 0x48]
mov ebx, 0xc0000001
mov qword [rax + 0x18], rdi
mov dword [rax + 8], edi
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x40]
lea rdx, str.YZZDev
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x50], 0x30
mov qword [rsp + 0x58], rdi
mov dword [rsp + 0x68], 0x240
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], rdi
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
test rsi, rsi
je 0x1400015a4
lea r8, [rsp + 0x50]
lea rcx, [rsp + 0xa0]
mov edx, 0xf003f
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov ebx, eax
test eax, eax
js 0x1400015a4
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x1400015b9
lea rax, [rsp + 0x90]
lea r8d, [rdi + 2]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov dword [rsp + 0x20], edi
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov ebx, eax
cmp eax, 0xc0000034
je 0x1400015a4
mov eax, dword [rsp + 0x90]
test eax, eax
je 0x1400015a4
lea ecx, [rdi + 1]
mov rdx, rax
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rdi, rax
test rax, rax
je 0x1400015a4
mov ecx, dword [rsp + 0x90]
lea rax, [rsp + 0x90]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
mov rcx, qword [rsp + 0xa0]
mov r9, rdi
mov r8d, 2
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov ebx, eax
test eax, eax
js 0x1400015a4
cmp dword [rdi + 4], 1
jne 0x1400015a4
xor edx, edx
mov r8d, pe_nt_image_headers64
mov rcx, rsi
call fcn.140001950
mov r9d, dword [rdi + 8]
cmp r9, 0xc6
jae 0x1400015a4
lea r8, [rdi + 0xc]
mov edx, pe_nt_image_headers64
mov rcx, rsi
call sub.ntoskrnl.exe_memcpy_s
mov rcx, qword [rsp + 0xa0]
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteValueKey]
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x1400015b7
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400015d0
Capabilities:
Create device object

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x450
mov rbx, rcx
xor esi, esi
lea rcx, [rsp + 0x62]
xor edx, edx
mov r8d, 0xc6
mov qword [rsp + 0x470], rsi
mov word [rsp + 0x60], si
call fcn.140001950
lea edx, [rsi + 0x64]
lea rcx, [rsp + 0x60]
call fcn.140001420
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x60]
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
jne 0x140001634
mov eax, 0xc0000001
jmp 0x14000179f
lea r9, [rsp + 0x60]
lea r8, str.Device_s
lea rcx, [rsp + 0x130]
mov edx, pe_nt_image_headers64
call fcn.1400018b0
lea r9, [rsp + 0x60]
lea r8, str.DosDevices_s
lea rcx, [rsp + 0x2c0]
mov edx, pe_nt_image_headers64
call fcn.1400018b0
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0x2c0]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdi, [0x140001830]
lea rax, [rbx + 0x70]
mov ecx, 3
nop word [rax + rax]
mov qword [rax], rdi
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rdi
add rax, 0x40
dec rcx
mov qword [rax - 0x28], rdi
mov qword [rax - 0x20], rdi
mov qword [rax - 0x18], rdi
mov qword [rax - 0x10], rdi
mov qword [rax - 8], rdi
jne 0x1400016b0
mov qword [rax], rdi
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], rdi
lea rax, [0x140001800]
lea r9d, [rcx + 0x22]
mov qword [rbx + 0x70], rax
mov qword [rbx + 0x80], rax
lea rax, [0x1400017c0]
mov qword [rbx + 0x68], rax
lea rax, [rsp + 0x470]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x30], rax
xor edx, edx
mov rcx, rbx
mov byte [rsp + 0x28], sil
mov dword [rsp + 0x20], esi
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
test eax, eax
js 0x14000179f
mov rax, qword [rsp + 0x470]
test rax, rax
jne 0x140001746
mov eax, 0xc00000e9
jmp 0x14000179f
and dword [rax + 0x30], 0xffffffef
mov rax, qword [rsp + 0x470]
lea rdx, [rsp + 0x40]
or dword [rax + 0x30], 4
mov rax, qword [rsp + 0x470]
lea rcx, [rsp + 0x50]
mov dword [rax + 0x98], 1
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov rdx, qword [rsp + 0x470]
and dword [rdx + 0x30], 0xffffff7f
mov rax, qword [rbx + 0x28]
mov cl, 1
or dword [rax + 0x68], 0x20
call fcn.1400011e0
mov cl, 1
call fcn.1400012e0
xor eax, eax
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x180006da0
Capabilities:
Get hostname

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x180059098]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x28], 0x10
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x50]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x180006e5f
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.180012bd0
nop
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x40]
lea r8, [rdx + rax*2]
lea rdx, [rsp + 0x30]
cmovae rdx, qword [rsp + 0x30]
mov rcx, rbx
call fcn.180015f90
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x180006e87
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180006e58
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180006ea0
call fcn.18001cdac
jmp 0x180006e87
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
xor r8d, r8d
lea rdx, [0x1800503f8]
mov rcx, rbx
call fcn.180005a00
mov rax, rbx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.18001cd50
add rsp, 0x80
pop rbx
ret
call fcn.180023a40
int3
Function at 0x1800075d0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x180059098]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, rcx
mov qword [rsp + 0x28], rcx
xor r15d, r15d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebp, eax
xorps xmm0, xmm0
test eax, eax
jne 0x180007637
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r15
xor r8d, r8d
lea rdx, [0x1800503f8]
mov rcx, rsi
call fcn.180005a00
jmp 0x180007723
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r15
lea r14, [rbp*2]
cmp r14, 0x1000
jb 0x18000767c
lea rcx, [r14 + 0x27]
cmp rcx, r14
jbe 0x180007823
call fcn.18001cd70
test rax, rax
je 0x18000781d
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x180007691
test r14, r14
je 0x18000768e
mov rcx, r14
call fcn.18001cd70
mov rdi, rax
jmp 0x180007691
mov rdi, r15
mov qword [rsp + 0x50], rdi
lea rbx, [r14 + rdi]
mov qword [rsp + 0x60], rbx
mov r8, r14
xor edx, edx
mov rcx, rdi
call fcn.18001f470
mov qword [rsp + 0x58], rbx
mov rdx, rdi
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x18000774d
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r15
xor r8d, r8d
lea rdx, [0x1800503f8]
mov rcx, rsi
call fcn.180005a00
nop
test rdi, rdi
je 0x180007723
sub rbx, rdi
sar rbx, 1
add rbx, rbx
mov rax, rdi
cmp rbx, 0x1000
jb 0x180007718
add rbx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000781d
mov rdx, rbx
mov rcx, rdi
call fcn.18001cdac
mov rax, rsi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.18001cd50
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.180012bd0
nop
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x40]
lea r8, [rdx + rax*2]
lea rdx, [rsp + 0x30]
cmovae rdx, qword [rsp + 0x30]
mov rcx, rsi
call fcn.180015f90
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x1800077c7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800077c2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180007817
call fcn.18001cdac
movdqa xmm0, xmmword [0x180050d80]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], r15w
test rdi, rdi
je 0x180007723
sub rbx, rdi
sar rbx, 1
add rbx, rbx
mov rax, rdi
cmp rbx, 0x1000
jb 0x180007718
add rbx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000781d
jmp 0x180007718
call fcn.180023a40
nop
call fcn.180023a40
int3
call fcn.1800011a0
int3