joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400da7d4
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x1400fa5a0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x218
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x46
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x238]
mov rax, qword [0x140307100]
xor rax, rbp
mov qword [rbp + 0x1c8], rax
mov dword [rbp + 0x1a4], 0
lea rcx, [0x1403291e8]
call fcn.1400df671
mov dword [rsp + 0x28], 0x20019
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, 1
mov rdx, qword [rbp + 0x200]
mov rcx, qword [rbp + 0x1f8]
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x1400fa673
mov eax, dword [0x140307028]
add eax, 0xd
cdqe
mov qword [rbp + 0x1b8], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x1c0], eax
mov r9, qword [rbp + 0x1b8]
lea r8, str.C:Users_nolesDocumentsGithubmullvadvpn_appwindowsdriverlogic_srcdevice.cpp
mov edx, dword [rbp + 0x1c0]
lea rcx, str.SetupDiOpenDevRegKey
call fcn.1400df653
mov edx, 0x20
lea rcx, [rbp + 0x28]
call fcn.1400d9e42
lea rcx, [rbp + 0x164]
call fcn.1400dc656
mov qword [rbp + 0x1b8], rax
xor eax, eax
mov word [rbp + 0x184], ax
mov r9, qword [rbp + 0x1b8]
lea r8, [rbp + 0x184]
mov edx, 0x80
lea rcx, [rbp + 0x28]
call fcn.1400de3f2
nop
lea rcx, [rbp + 0x28]
call fcn.1400de9bf
mov eax, eax
shl rax, 1
mov dword [rbp + 0x64], eax
xor edx, edx
lea rcx, [rbp + 0x28]
call fcn.1400db4d6
lea rcx, [rbp + 0x64]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov r9d, 2
lea r8, str.NetCfgInstanceId
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov dword [rbp + 0x84], eax
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rbp + 0x84], 0
je 0x1400fa746
mov eax, dword [0x140307028]
add eax, 0x23
cdqe
mov r9, rax
lea r8, str.C:Users_nolesDocumentsGithubmullvadvpn_appwindowsdriverlogic_srcdevice.cpp
mov edx, dword [rbp + 0x84]
lea rcx, str.RegGetValueW
call fcn.1400dd088
xor edx, edx
lea rcx, [rbp + 0x28]
call fcn.1400db4d6
mov rdx, rax
mov rcx, qword [rbp + 0x1f0]
call fcn.1400db21f
mov eax, dword [rbp + 0x1a4]
or eax, 1
mov dword [rbp + 0x1a4], eax
lea rcx, [rbp + 0x28]
call fcn.1400d9113
mov rax, qword [rbp + 0x1f0]
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x1402a85a0]
call fcn.1400de438
mov rax, rdi
mov rcx, qword [rbp + 0x1c8]
xor rcx, rbp
call fcn.1400dc098
lea rsp, [rbp + 0x1d8]
pop rdi
pop rbp
ret
Function at 0x1400dbd19
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1401c0a90
mov rax, rcx
neg rcx
test rax, 7
je 0x1401c0aad
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1401c0b08
test al, 7
jne 0x1401c0aa0
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x1401c0ac1
mov rdx, qword [rax - 8]
test dl, dl
je 0x1401c0b32
test dh, dh
je 0x1401c0b2c
shr rdx, 0x10
test dl, dl
je 0x1401c0b26
test dh, dh
je 0x1401c0b20
shr rdx, 0x10
test dl, dl
je 0x1401c0b1a
test dh, dh
je 0x1401c0b14
shr edx, 0x10
test dl, dl
je 0x1401c0b0e
test dh, dh
jne 0x1401c0ac1
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1400dbd55
Capabilities:
Query environment variable

Disassembly:
jmp 0x140270090
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14026fc10
lea rcx, [rsp + 0x20]
call fcn.14026fc60
movzx eax, al
test eax, eax
jne 0x1402700d5
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.14026fc40
mov rax, qword [rsp + 0x40]
jmp 0x1402701cf
lea rcx, [rsp + 0x20]
call fcn.14026fd60
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.14026fd00
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r9d, 0x40
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, rax
call fcn.1400dc1bf
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400db567
lea rcx, [rsp + 0x28]
call fcn.1400dc804
movzx eax, al
test eax, eax
jne 0x14027016f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.1400de16d
lea rcx, [rsp + 0x20]
call fcn.14026fc40
mov rax, qword [rsp + 0x50]
jmp 0x1402701cf
lea rcx, [rsp + 0x20]
call fcn.14026fd60
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.1400df513
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.1400dc0ca
lea rcx, [rsp + 0x28]
call fcn.1400e00fd
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.1400de16d
lea rcx, [rsp + 0x20]
call fcn.14026fc40
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x1400dc3b3
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1401bd800
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1401bd180
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401bd83f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x14032a020]
jmp 0x1401bd849
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x1400dc705
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1401bd730
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1401bd100
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401bd771
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x14032a020]
jmp 0x1401bd777
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x1400dc813
Capabilities:
Get geographical location

Disassembly:
jmp 0x140259860
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.140258790
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1402598c7
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x14032a030]
jmp 0x1402598e9
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400db756
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x1400dc831
Capabilities:
Terminate process

Disassembly:
jmp 0x140199cc0
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 0x1400dcc87
Capabilities:
Print debug messages

Disassembly:
jmp 0x14027d240
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x140307100]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x14027d266
jmp 0x14027d2e3
mov rcx, qword [rbp + 0x30]
call fcn.1400dbd19
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14027d27f
jmp 0x14027d2e3
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14027d29c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400da24d
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.1400da9af
test eax, eax
jne 0x14027d2e3
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400dc098
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x1400dd1d2
Capabilities:
Set environment variable

Disassembly:
jmp 0x140271f40
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret

Function at 0x1400dd5a1
Capabilities:
Parse pe header

Disassembly:
jmp 0x14019b3c0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14019b3e0
xor al, al
jmp 0x14019b461
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14019b3f3
xor al, al
jmp 0x14019b461
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 0x14019b41d
xor al, al
jmp 0x14019b461
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14019b431
xor al, al
jmp 0x14019b461
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14019b443
xor al, al
jmp 0x14019b461
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14019b45f
xor al, al
jmp 0x14019b461
mov al, 1
add rsp, 0x38
ret
Function at 0x1400de014
Capabilities:
Terminate process

Disassembly:
jmp 0x1401bfc30
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1401bfc5e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.1400dee92
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400def46
Capabilities:
Print debug messages

Disassembly:
jmp 0x14024f640
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x1400df05e
Capabilities:
Query service status

Disassembly:
jmp 0x140127450
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x26
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1a8]
mov rax, qword [0x140307100]
xor rax, rbp
mov qword [rbp + 0x148], rax
lea rcx, [0x140329653]
call fcn.1400df671
lea rax, [rbp + 0x44]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
mov r8, qword [rbp + 0x170]
xor edx, edx
mov rcx, qword [rbp + 0x178]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0
je 0x1401274d5
mov rax, qword [rbp + 0x170]
jmp 0x140127513
mov eax, dword [0x1403070a0]
add eax, 0x13
cdqe
mov qword [rbp + 0x138], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x140], eax
mov r9, qword [rbp + 0x138]
lea r8, str.C:Users_nolesDocumentsGithubmullvadvpn_appwindowsdriverlogic_src_service.cpp
mov edx, dword [rbp + 0x140]
lea rcx, str.QueryServiceStatusEx
call fcn.1400dd088
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1402b0620]
call fcn.1400de438
mov rax, rdi
mov rcx, qword [rbp + 0x148]
xor rcx, rbp
call fcn.1400dc098
lea rsp, [rbp + 0x158]
pop rdi
pop rbp
ret

Function at 0x1400df117
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1401bd870
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1401bd1c0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401bd8b9
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x14032a020]
jmp 0x1401bd8c8
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret
Function at 0x140264080
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400da24d
sub rsp, rax
mov rax, qword [0x140307100]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14030d4e0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140264272
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x1402641c6
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1402641c6
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x1402641ab
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x140264148
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140264232
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140264291
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x14026426d
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140264291
jmp 0x14026411e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400dc098
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140264340
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400da24d
sub rsp, rax
mov rax, qword [0x140307100]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14030d4e0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14026454d
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x140264499
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x140264499
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x140264479
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x140264408
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14026450d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14026456c
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x140264548
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14026456c
jmp 0x1402643de
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400dc098
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x180001c00
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 [0x1800c2840]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov qword [rcx], 0
lea rdx, [rsp + 0x58]
mov eax, dword [0x18003d768]
lea r8, str._lsSystem32_hs
movsd xmm0, qword [0x18003d760]
mov rdi, rcx
mov dword [rsp + 0x60], eax
mov esi, 0x23f0
movzx eax, byte [0x18003d76c]
mov r9d, 0x7ffe0030
mov byte [rsp + 0x64], al
mov eax, dword [str.CI.dll]
mov dword [rsp + 0x50], eax
movzx eax, word [0x18003d774]
mov word [rsp + 0x54], ax
movzx eax, byte [0x18003d776]
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.180002a30
lea r9, [rsp + 0x48]
xor edx, edx
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.1800018f0
mov ebx, eax
test eax, eax
jns 0x180001cfb
mov r8d, eax
lea rdx, [rsp + 0x70]
lea rcx, str.Failed_to_map__ls:__08X_n
call fcn.180001bb0
jmp 0x180001e30
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
cmp word [rcx + 0x120], si
jb 0x180001d64
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x50]
call fcn.180002010
mov ebx, eax
test eax, eax
jns 0x180001d39
mov edx, eax
lea rcx, str.Failed_to_FindKernelModule__08X_n
call fcn.180001bb0
jmp 0x180001e1e
mov rdx, qword [rsp + 0x38]
lea r8, [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
call fcn.1800022c0
test eax, eax
je 0x180001e19
mov rax, qword [rsp + 0x30]
xor ebx, ebx
mov qword [rdi], rax
jmp 0x180001e1e
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x58]
call fcn.180002010
mov ebx, eax
test eax, eax
js 0x180001e1e
mov r11, qword [rsp + 0x48]
xor r10d, r10d
xor r9d, r9d
test r11, r11
je 0x180001e0d
mov rbx, qword [rsp + 0x40]
lea rsi, [0x18003d6a4]
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 0x180001dbd
test cl, cl
jne 0x180001e09
inc edx
inc rax
cmp edx, 4
jb 0x180001db0
mov cl, 1
test cl, cl
mov rax, r9
cmove rax, r10
inc r9
mov r10, rax
cmp r9, r11
jb 0x180001da0
test rax, rax
je 0x180001e0d
movsxd rcx, dword [rax + rbx + 4]
mov rbx, qword [rsp + 0x30]
add rcx, rax
add rbx, 8
add rbx, rcx
lea rcx, str.i_:_0x_llx_n_gCiEnabled_:__llx_n_gCiEnabledAddress_:__llx_n
call fcn.180001bb0
mov qword [rdi], rbx
xor ebx, ebx
jmp 0x180001e1e
xor cl, cl
jmp 0x180001dc9
lea rcx, str.failed_to_find_CiEnabled_n
call fcn.180001bb0
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.1800101f0
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 0x180001e60
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1800c2840]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rdx
mov rbx, rcx
call fcn.180001f70
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlCreateRegistryKey]
test eax, eax
js 0x180001f47
lea r8, [0x18003d7e8]
mov dword [rsp + 0x30], 1
mov edx, 5
lea rcx, [rsp + 0x40]
call fcn.18001b570
mov r8, rdi
lea rcx, [rsp + 0x40]
mov edx, 0x87
call fcn.18001b4f8
lea rcx, [rsp + 0x40]
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x180001ee0
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea r8, str.ImagePath
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 0x180001f47
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, str.Type
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1800101f0
mov rbx, qword [rsp + 0x280]
add rsp, 0x260
pop rdi
ret