joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400f892c
Capabilities:
Query environment variable

Disassembly:
jmp 0x1400f892c
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400f895c
xor eax, eax
jmp 0x1400f8a1f
mov rbp, rbx
cmp word [rax], si
je 0x1400f8981
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400f8968
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400f8964
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400052e5
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x1400f89c2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400f8955
call fcn.140001069
mov rdi, rax
test rax, rax
jne 0x1400f89d8
xor ecx, ecx
call fcn.140001299
jmp 0x1400f89b7
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400052e5
test eax, eax
jne 0x1400f8a09
mov rcx, rdi
call fcn.140001299
jmp 0x1400f8a13
xor ecx, ecx
call fcn.140001299
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400f8a80
Capabilities:
Query environment variable

Disassembly:
jmp 0x1400f8a80
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400f8b07
mov rsi, rbx
cmp word [rax], bp
je 0x1400f8ac6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400f8ab0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400f8aac
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140001069
mov rdi, rax
test rax, rax
je 0x1400f8af4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140003aa3
mov rbp, rdi
xor ecx, ecx
call fcn.140001299
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400fd984
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov dword [rsp + 0x30], esi
mov rbx, rcx
test rcx, rcx
je 0x1400fd9f7
cmp word [rcx], si
je 0x1400fd9f7
lea rdx, [0x14012ab60]
call fcn.140003b11
test eax, eax
je 0x1400fd9f7
lea rdx, [0x14012ab80]
mov rcx, rbx
call fcn.140003b11
test eax, eax
jne 0x1400fd9ed
mov ecx, dword [rdi + 8]
lea r9d, [rsi + 2]
lea r8, [rsp + 0x30]
mov edx, 0x2000000b
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400fda14
mov eax, dword [rsp + 0x30]
jmp 0x1400fda26
mov rcx, rbx
call fcn.1400010e1
jmp 0x1400fda26
mov ecx, dword [rdi + 8]
lea r8, [rsp + 0x30]
mov r9d, 2
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1400fda18
xor eax, eax
jmp 0x1400fda26
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x1400fda26
call qword [sym.imp.KERNEL32.dll_GetACP]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400fda94
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov ebp, edx
mov dword [rax + 8], ebx
mov edi, ecx
call fcn.140002379
mov ecx, edi
lea r9d, [rbx + 2]
and ecx, 0x3ff
lea r8, [rsp + 0x30]
bts ecx, 0xa
mov edx, 0x20000001
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400fdb37
cmp edi, dword [rsp + 0x30]
je 0x1400fdb30
test ebp, ebp
je 0x1400fdb30
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x1400fdb0c
sub dx, 0x61
cmp dx, 0x19
ja 0x1400fdb18
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x1400fdaf9
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x1400fdb1c
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x1400fdb39
mov eax, 1
jmp 0x1400fdb39
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1401083a8
Capabilities:
Set environment variable

Disassembly:
jmp 0x1401083a8
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140003102
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140108432
cmp byte [rbp - 0x21], r15b
je 0x14010842d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140108468
call fcn.140006c71
test eax, eax
jne 0x140108454
cmp byte [rbp - 0x21], r15b
je 0x14010844c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140108468
cmp byte [rbp - 0x21], r15b
je 0x140108465
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140007059
test eax, eax
jne 0x140108508
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140003102
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1401084a7
cmp byte [rbp - 0x21], r15b
je 0x1401084dc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1401084dc
call fcn.140006c71
test eax, eax
jne 0x1401084c8
cmp byte [rbp - 0x21], r15b
je 0x1401084c1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1401084dc
cmp byte [rbp - 0x21], r15b
je 0x1401084d9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140007059
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140108508
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14010850b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140108519
mov rcx, rdi
call fcn.140001299
cmp byte [rbp + 0x3f], r15b
je 0x140108528
mov rcx, qword [rbp + 0x27]
call fcn.140001299
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x180002180
Capabilities:
Access pe header
Check for peb beingdebugged flag

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]
mov rcx, qword gs:[0x60]
mov rdx, rax
cmp byte [rcx + 2], 0
jne 0x180002236
test rax, rax
je 0x180002236
mov rcx, qword [rax + 0x68]
mov rax, qword [rax + 0x60]
sub rax, rcx
cmp rax, 0x3000
jb 0x180002236
mov qword [0x18008b2d8], rcx
test rdx, rdx
je 0x18000c6a4
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1748]
mov qword [0x18008b2e8], rax
test rax, rax
jne 0x180002206
mov qword [0x18008b2e8], 0x3000
mov eax, 0x3000
add rax, 8
cmp rax, 8
lea rax, [0x180063f30]
mov qword [0x18008b2e0], rax
lea rax, [0x180063f60]
mov qword [0x18008b2f0], rax
jb 0x18000c6b7
add rsp, 0x28
ret
xor ecx, ecx
jmp 0x1800021cb
mov rax, 0xffffffffffffffff
mov qword [0x18008b2e8], rax
jmp 0x180002206
mov qword [0x18008b2e8], 0xfffffffffffffff7
jmp 0x180002230
Function at 0x18000908c
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rax, qword [0x18008ab58]
xor rax, rsp
mov qword [rbp + 0x150], rax
xor ebx, ebx
mov r14, r8
mov qword [r8], rbx
mov edi, 0x104
mov r8, rcx
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.180017538
mov ecx, edi
lea rax, [rsp + 0x40]
cmp word [rax], bx
je 0x1800090ec
add rax, 2
sub rcx, 1
jne 0x1800090dd
test rcx, rcx
je 0x1800090f9
mov rax, rdi
sub rax, rcx
jmp 0x1800090fc
mov rax, rbx
test rcx, rcx
je 0x180009155
mov rdx, rdi
lea rcx, [rsp + 0x40]
lea rcx, [rcx + rax*2]
sub rdx, rax
je 0x180009147
lea r8, [rax + 0x7ffffefa]
add r8, rdx
lea rax, [0x1800737e0]
sub rax, rcx
test r8, r8
je 0x180009147
movzx r9d, word [rax + rcx]
test r9w, r9w
je 0x180009147
mov word [rcx], r9w
dec r8
add rcx, 2
sub rdx, 1
jne 0x180009126
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], bx
lea r8, [rsp + 0x40]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x1800091a4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x1800092e1
mov rcx, qword [rbp + 0x178]
mov edx, 0xc9
call fcn.180008624
mov ebx, eax
jmp 0x1800092e1
lea rdx, [rsp + 0x24]
mov dword [rsp + 0x24], ebx
mov rcx, rax
mov dword [rsp + 0x20], ebx
call fcn.1800065c0
mov esi, eax
test eax, eax
jns 0x1800091da
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov edx, 0xcf
call fcn.180008644
mov ebx, esi
jmp 0x1800092e1
mov rcx, rdi
lea rax, [rsp + 0x40]
cmp word [rax], bx
je 0x1800091f1
add rax, 2
sub rcx, 1
jne 0x1800091e2
test rcx, rcx
je 0x1800091fe
mov rax, rdi
sub rax, rcx
jmp 0x180009201
mov rax, rbx
test rcx, rcx
je 0x180009257
lea rdx, [rsp + 0x40]
lea rdx, [rdx + rax*2]
sub rdi, rax
je 0x180009249
lea rcx, [rax + 0x7ffffefa]
add rcx, rdi
lea rax, [0x1800737e8]
sub rax, rdx
test rcx, rcx
je 0x180009249
movzx r8d, word [rax + rdx]
test r8w, r8w
je 0x180009249
mov word [rdx], r8w
dec rcx
add rdx, 2
sub rdi, 1
jne 0x180009228
test rdi, rdi
lea rax, [rdx - 2]
cmovne rax, rdx
mov word [rax], bx
lea r8, [rsp + 0x40]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov qword [rsp + 0x28], rax
test rax, rax
jne 0x18000928e
mov rcx, qword [rbp + 0x178]
mov edx, 0xd5
call fcn.180008624
mov edi, eax
jmp 0x1800092b5
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.1800065c0
mov edi, eax
test eax, eax
jns 0x1800092c3
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov edx, 0xd7
call fcn.180008644
lea rcx, [rsp + 0x28]
call fcn.180004b34
mov ebx, edi
jmp 0x1800092e1
lea rcx, [rsp + 0x28]
call fcn.180004b34
movsxd rcx, dword [rsp + 0x20]
movsxd rax, dword [rsp + 0x24]
shl rcx, 0x1f
or rax, rcx
mov qword [r14], rax
lea rcx, [rsp + 0x30]
call fcn.180004b34
mov eax, ebx
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.180002a90
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x18000ea94
Capabilities:
Create directory

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, 0x40
xor ebx, ebx
mov rbp, r8
mov r12d, edx
mov rdi, rcx
test rcx, rcx
je 0x18000ec65
cmp word [rcx], bx
je 0x18000ec65
lea r8d, [rbx + 4]
lea rdx, str.__
call qword [sym.imp.msvcrt.dll_wcsncmp]
nop dword [rax + rax]
lea rsi, [rdi + 8]
test eax, eax
je 0x18000eaef
mov rsi, rdi
mov rcx, rdi
call fcn.180010658
test eax, eax
je 0x18000ec65
mov r13d, 0x5c
mov rcx, rsi
mov edx, r13d
call qword [sym.imp.msvcrt.dll_wcschr]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x18000eb2f
cmp word [rdi + 2], 0x3a
jne 0x18000ec65
jmp 0x18000ec6a
cmp word [rax + 2], r13w
jne 0x18000eb71
mov edx, r13d
lea rcx, [rax + 4]
call qword [sym.imp.msvcrt.dll_wcschr]
nop dword [rax + rax]
test rax, rax
je 0x18000ec65
mov edx, r13d
lea rcx, [rax + 2]
call qword [sym.imp.msvcrt.dll_wcschr]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x18000ec65
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], bx
jne 0x18000eb75
inc eax
xor ecx, ecx
mov r15d, eax
lea rdx, [rax + rax]
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
nop dword [rax + rax]
mov r14, rax
test rax, rax
jne 0x18000eba6
lea eax, [r14 + 8]
jmp 0x18000ec6a
mov r8, rdi
mov rdx, r15
mov rcx, r14
call qword [sym.imp.msvcrt.dll_wcscpy_s]
nop dword [rax + rax]
mov dword [rsp + 0x20], 0x18
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x30], ebx
mov edx, r13d
lea rcx, [rsi + 2]
call qword [sym.imp.msvcrt.dll_wcschr]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x18000ebf9
mov rbp, rax
sub rbp, rdi
sar rbp, 1
mov eax, ebp
mov word [r14 + rax*2], bx
jmp 0x18000ec00
test r12d, r12d
je 0x18000ec52
mov ebp, ebx
lea rdx, [rsp + 0x20]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x18000ec2b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xb7
jne 0x18000ec3d
test ebp, ebp
je 0x18000ec36
mov eax, ebp
mov word [r14 + rax*2], r13w
test rsi, rsi
jne 0x18000ebcc
jmp 0x18000ec52
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
call fcn.18000ec90
mov ebx, eax
mov rcx, r14
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
mov eax, ebx
jmp 0x18000ec6a
mov eax, 1
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x18000ef24
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push r14
mov rbp, rsp
sub rsp, 0x48
and qword [rbp + 0x40], 0
mov esi, 4
and qword [rbp - 0x18], 0
and dword [rbp + 0x28], 0
mov dword [rbp + 0x30], esi
mov rcx, qword [section..data]
lea r14, section..data
cmp rcx, r14
je 0x18000ef73
test byte [rcx + 0x1c], 8
je 0x18000ef73
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 9]
lea r8, [0x18007ad68]
call fcn.18001171c
lea rax, [rbp - 0x18]
mov r9d, 0x2001f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionWinlogonGPExtensions827D319E_6EAC_11D2_A4EA_00C04F79F83A
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x18000f0bb
lea rax, [rbp + 0x40]
mov r9d, 0x2001f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionSeCEdit
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x18000f0bb
mov rcx, qword [rbp + 0x40]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x38]
lea rax, [rbp + 0x28]
xor r8d, r8d
lea rdx, str.GPOSavedInterval
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
je 0x18000f088
mov rcx, qword [rbp - 0x18]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x38]
lea rax, [rbp + 0x28]
mov dword [rbp + 0x30], esi
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.MaxNoGPOListChangesInterval
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ecx, dword [rbp + 0x28]
lea rdx, str.GPOSavedInterval
test eax, eax
mov dword [rsp + 0x28], esi
mov r8d, 0x3c0
lea rax, [rbp + 0x28]
cmovne ecx, r8d
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x28], ecx
mov r9d, esi
mov rcx, qword [rbp + 0x40]
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x18000f0bb
mov rcx, qword [rbp - 0x18]
lea rax, [rbp + 0x28]
mov dword [rsp + 0x28], esi
lea rdx, str.MaxNoGPOListChangesInterval
mov r9d, esi
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x28], 1
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x18000f0d0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x18000f0e5
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [section..data]
cmp rcx, r14
je 0x18000f10f
test byte [rcx + 0x1c], 8
je 0x18000f10f
mov rcx, qword [rcx + 0x10]
lea r8, [0x18007ad68]
mov edx, 0xe
mov r9d, ebx
call fcn.180011748
mov eax, ebx
add rsp, 0x48
pop r14
pop rsi
pop rbx
pop rbp
ret
Function at 0x18000f250
Capabilities:
Compare security identifiers

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
test rcx, rcx
jne 0x18000f267
test rdx, rdx
jne 0x18000f281
lea eax, [rbx + 1]
jmp 0x18000f283
test rdx, rdx
je 0x18000f281
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_EqualSid]
nop dword [rax + rax]
test eax, eax
setne bl
mov eax, ebx
jmp 0x18000f283
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1800109d4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov ebx, edx
xor edi, edi
movzx edx, dx
mov r14, r8
shr edx, 4
mov rsi, rcx
mov qword [r8], rdi
inc edx
lea r8d, [rdi + 6]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_1.dll_FindResourceW]
nop dword [rax + rax]
test rax, rax
je 0x180010aa5
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
nop dword [rax + rax]
test rax, rax
je 0x180010aa5
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LockResource]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x180010aa5
and ebx, 0xf
mov ebp, edi
mov eax, ebp
lea rsi, [rsi + rax*2]
mov eax, ebx
movzx ebp, word [rsi]
dec ebx
add rsi, 2
test eax, eax
jne 0x180010a4e
test ebp, ebp
je 0x180010aa5
lea edx, [rbp + 1]
xor ecx, ecx
add rdx, rdx
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
nop dword [rax + rax]
mov qword [r14], rax
test rax, rax
je 0x180010aa5
lea rbx, [rbp*2]
mov rdx, rsi
mov r8, rbx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, qword [r14]
mov word [rbx + rcx], di
mov edi, 1
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret

Function at 0x180010acc
Capabilities:
Delete registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], r8
push rbx
sub rsp, 0x30
and qword [r11 + 0x18], 0
lea rax, [r11 + 0x18]
mov r9d, 0x2001f
mov qword [r11 - 0x18], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionSeCEdit
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x180010b28
mov rcx, qword [rsp + 0x50]
lea rdx, str.FatNtfsConvertedDrives
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x180010b3e
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x180010b50
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x40
and dword [rax - 0x18], 0
mov rdi, r9
and qword [rax - 0x10], 0
lea rax, [rax - 0x10]
mov rsi, r8
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x180010c11
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
and qword [rsp + 0x20], 0
xor r8d, r8d
mov rdx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x180010c11
mov eax, dword [rsp + 0x34]
add eax, 0xfffffffc
cmp eax, 1
ja 0x180010c0c
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x180010c11
test rdi, rdi
je 0x180010c11
and dword [rdi], 0
jmp 0x180010c11
mov ebx, 0x70c
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x180010c27
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x180010c40
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
and dword [rax + 0x10], 0
xor ebp, ebp
and qword [rax - 0x28], 0
mov rdi, r9
mov r15, r8
test rdx, rdx
je 0x180010dc2
test r8, r8
je 0x180010dc2
test r9, r9
je 0x180010dc2
mov r14, qword [rsp + 0x80]
test r14, r14
je 0x180010dc2
mov rsi, qword [rsp + 0x88]
test rsi, rsi
je 0x180010ca4
and dword [rsi], ebp
lea rax, [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x180010d99
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov r9, r14
and qword [rsp + 0x20], rbp
xor r8d, r8d
mov rdx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x180010d99
cmp dword [r14], ebp
jbe 0x180010d94
cmp dword [r14], 2
jbe 0x180010d15
cmp dword [r14], 7
jne 0x180010d94
mov rax, qword [rdi]
test rax, rax
jne 0x180010d47
mov edx, dword [rsp + 0x68]
lea ecx, [rax + 0x40]
inc edx
add rdx, rdx
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
nop dword [rax + rax]
mov qword [rdi], rax
mov ebp, 1
test rax, rax
jne 0x180010d47
lea ebx, [rax + 8]
jmp 0x180010d99
lea rcx, [rsp + 0x68]
mov r9, r14
mov qword [rsp + 0x28], rcx
xor r8d, r8d
mov rcx, qword [rsp + 0x30]
mov rdx, r15
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x180010d99
test ebp, ebp
je 0x180010d99
mov rcx, qword [rdi]
test rcx, rcx
je 0x180010d8e
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
and qword [rdi], 0
jmp 0x180010d99
mov ebx, 0x70c
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x180010daf
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
jne 0x180010dbe
test rsi, rsi
je 0x180010dbe
mov eax, dword [rsp + 0x68]
mov dword [rsi], eax
mov eax, ebx
jmp 0x180010dc7
mov eax, 1
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret