joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140025ea0
Capabilities:
Get geographical location

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0xc0
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov rax, qword [0x1400cb0f0]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov edi, edx
mov rbx, rcx
mov qword [r11 - 0x50], rcx
xor esi, esi
mov qword [rcx], rsi
lea r9d, [rsi + 0xa]
lea r8, [r11 - 0x28]
lea edx, [rsi + 0x59]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x140026017
lea r9d, [rsi + 0xa]
lea r8, [rsp + 0x88]
lea edx, [rsi + 0x5a]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x140026012
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
or r9d, 0xffffffff
mov r8d, 0xfde9
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x58]
call fcn.140037d20
nop
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
or r9d, 0xffffffff
mov r8d, 0xfde9
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x40]
call fcn.140037d20
nop
lea rax, [0x1400a5780]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
xor r9d, r9d
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x70]
call fcn.1400220b0
mov rcx, qword [rax]
mov qword [rax], rsi
mov qword [rbx], rcx
mov rcx, qword [rsp + 0x70]
call fcn.140064550
nop
cmp byte [rsp + 0x50], sil
je 0x140025fcd
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140025fd2
movsxd rdx, dword [rsp + 0x40]
call fcn.140019030
mov rcx, qword [rsp + 0x48]
jmp 0x140025fd2
mov rcx, qword [rsp + 0x48]
call fcn.140064550
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x48], rsi
cmp byte [rsp + 0x68], 0
je 0x140026002
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140026007
movsxd rdx, dword [rsp + 0x58]
call fcn.140019030
mov rcx, qword [rsp + 0x60]
jmp 0x140026007
mov rcx, qword [rsp + 0x60]
call fcn.140064550
nop
mov rax, rbx
jmp 0x14002601a
mov rax, rbx
jmp 0x14002601a
mov rax, rbx
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140068be0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400398f0
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x3d0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov rax, qword [0x1400cb0f0]
xor rax, rsp
mov qword [rsp + 0x3c0], rax
mov r13, rcx
mov qword [rsp + 0x68], rcx
xor r14d, r14d
mov qword [rcx], r14
mov rdi, r14
mov qword [rsp + 0x58], r14
mov ebp, r14d
mov dword [rsp + 0x60], r14d
lea rsi, [r11 - 0x248]
lea rdx, [r11 - 0x248]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
or r15, 0xffffffffffffffff
cmp eax, 0x104
jbe 0x1400399e7
nop
lea ebx, [rax + 0xa]
test rdi, rdi
je 0x14003997c
cmp ebx, ebp
jle 0x1400399d5
mov ecx, ebx
call fcn.140018350
movsxd rbp, eax
mov dword [rsp + 0x60], ebp
mov eax, 2
mul rbp
cmovo rax, r15
mov rcx, rax
call fcn.140063af0
mov rsi, rax
test rdi, rdi
je 0x1400399c8
lea eax, [rbp - 1]
movsxd r8, eax
mov rdx, rdi
mov rcx, rsi
call fcn.140068ae0
mov word [rsi + rbp*2 - 2], 0
mov rcx, rdi
call fcn.140064550
jmp 0x1400399cd
mov word [rax], 0
mov rdi, rsi
mov qword [rsp + 0x58], rsi
mov rsi, rdi
mov rdx, rdi
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, ebx
ja 0x140039970
test eax, eax
jne 0x140039a7c
call fcn.14006a0a0
mov ebx, dword [rax]
lea rax, [0x1400a1850]
mov qword [rsp + 0x78], rax
mov byte [rsp + 0x80], 0
mov byte [rsp + 0x180], 0
mov r9d, r15d
lea r8, str.GetCurrentDirectory
mov edx, 0x100
lea rcx, [rsp + 0x80]
call fcn.140006c70
lea r11, [0x1400a2698]
mov qword [rsp + 0x78], r11
mov byte [rsp + 0x180], 0
mov r9d, r15d
lea r8, str.System
mov edx, 0x20
lea rcx, [rsp + 0x180]
call fcn.140006c70
mov edx, ebx
lea rcx, [rsp + 0x78]
call fcn.14001bad0
lea rdx, [0x1400c83b8]
lea rcx, [rsp + 0x78]
call fcn.1400649f0
int3
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r14d
mov r9d, r15d
mov r8d, 0xfde9
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.140037d20
mov rbx, qword [rsp + 0x48]
mov qword [rsp + 0x48], r14
mov dword [rsp + 0x40], r14d
mov rcx, qword [r13]
call fcn.140064550
mov qword [r13], rbx
cmp byte [rsp + 0x50], 0
je 0x140039adf
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140039ae4
movsxd rdx, dword [rsp + 0x40]
call fcn.140019030
mov rcx, qword [rsp + 0x48]
jmp 0x140039ae4
mov rcx, qword [rsp + 0x48]
call fcn.140064550
nop
mov rcx, rdi
call fcn.140064550
nop
mov rax, r13
mov rcx, qword [rsp + 0x3c0]
xor rcx, rsp
call fcn.140068be0
lea r11, [rsp + 0x3d0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140039e40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x50
xor eax, eax
mov rdx, rcx
lea rcx, [rsp + 0x30]
or r9d, 0xffffffff
mov r8d, 0xfde9
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], rax
mov byte [rsp + 0x40], al
mov dword [rsp + 0x20], eax
call fcn.1400195d0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rcx, qword [rsp + 0x38]
cmp eax, 0xffffffff
setne bl
cmp byte [rsp + 0x40], 0
je 0x140039ea4
test rcx, rcx
je 0x140039ea4
movsxd rdx, dword [rsp + 0x30]
add rdx, rdx
call fcn.140019030
mov rcx, qword [rsp + 0x38]
call fcn.140064550
test bl, bl
setne al
add rsp, 0x50
pop rbx
ret

Function at 0x14003a1e0
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
xor esi, esi
mov rdi, rcx
lea rcx, [rsp + 0x30]
or r9d, 0xffffffff
mov r8d, 0xfde9
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x38], rsi
mov byte [rsp + 0x40], sil
mov dword [rsp + 0x20], esi
call fcn.1400195d0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14003a27b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14003a27b
cmp byte [rsp + 0x40], sil
je 0x14003a264
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14003a269
movsxd rdx, dword [rsp + 0x30]
add rdx, rdx
call fcn.140019030
mov rcx, qword [rsp + 0x38]
call fcn.140064550
xor al, al
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov rcx, qword [rsp + 0x38]
call fcn.140064550
xor al, al
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
lea rcx, [rsp + 0x48]
or r9d, 0xffffffff
mov r8d, 0xfde9
mov rdx, rdi
mov qword [rsp + 0x70], rbx
mov rbx, qword [rsp + 0x38]
mov dword [rsp + 0x48], esi
mov qword [rsp + 0x50], rsi
mov byte [rsp + 0x58], sil
mov dword [rsp + 0x20], esi
call fcn.1400195d0
mov rcx, qword [rsp + 0x50]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
cmp byte [rsp + 0x58], sil
je 0x14003a2e6
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14003a2eb
movsxd rdx, dword [rsp + 0x48]
add rdx, rdx
call fcn.140019030
mov rcx, qword [rsp + 0x50]
jmp 0x14003a2eb
mov rcx, qword [rsp + 0x50]
call fcn.140064550
cmp byte [rsp + 0x40], sil
mov dword [rsp + 0x48], esi
mov qword [rsp + 0x50], rsi
je 0x14003a317
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14003a31c
movsxd rdx, dword [rsp + 0x30]
add rdx, rdx
call fcn.140019030
mov rcx, qword [rsp + 0x38]
call fcn.140064550
mov rsi, qword [rsp + 0x78]
mov al, bl
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x14003b360
Capabilities:
Create directory
Get file attributes

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0x180
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
movzx ebp, r8b
movzx r12d, dl
mov rdi, rcx
xor r13d, r13d
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x38], r13
mov byte [rsp + 0x40], r13b
mov dword [rsp + 0x20], r13d
or r9d, 0xffffffff
mov r8d, 0xfde9
mov rdx, rcx
lea rcx, [rsp + 0x30]
call fcn.1400195d0
nop
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
cmp byte [rsp + 0x40], r13b
je 0x14003b3f2
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14003b3f7
movsxd rdx, dword [rsp + 0x30]
add rdx, rdx
call fcn.140019030
mov rcx, qword [rsp + 0x38]
jmp 0x14003b3f7
mov rcx, qword [rsp + 0x38]
call fcn.140064550
test ebx, ebx
je 0x14003b407
mov al, 1
jmp 0x14003b4bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x38], r13
mov byte [rsp + 0x40], 0
mov dword [rsp + 0x20], r13d
or r9d, 0xffffffff
mov r8d, 0xfde9
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.1400195d0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp byte [rsp + 0x40], 0
je 0x14003b46c
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14003b471
movsxd rdx, dword [rsp + 0x30]
add rdx, rdx
call fcn.140019030
mov rcx, qword [rsp + 0x38]
jmp 0x14003b471
mov rcx, qword [rsp + 0x38]
call fcn.140064550
cmp ebx, 0xffffffff
je 0x14003b496
test bl, 0x10
je 0x14003b496
test r12b, r12b
je 0x14003b492
test bpl, bpl
je 0x14003b492
mov rcx, rdi
call fcn.14003ac00
xor al, al
jmp 0x14003b4bf
mov r9, rdi
mov r8d, esi
lea rdx, str.mkDir__s_
lea rcx, [rsp + 0x50]
call fcn.140005420
lea rdx, [0x1400c8398]
lea rcx, [rsp + 0x50]
call fcn.1400649f0
int3
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x14003b5e0
Capabilities:
Delete directory
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x410
mov rax, qword [0x1400cb0f0]
xor rax, rsp
mov qword [rsp + 0x400], rax
xor ebp, ebp
test dl, dl
mov rsi, rcx
je 0x14003b703
mov rdx, rcx
lea r8, [0x1400a8318]
lea rcx, [rsp + 0x180]
call fcn.14005e060
lea rcx, [rsp + 0x180]
call fcn.14005e2b0
test rax, rax
je 0x14003b6f6
nop
nop
nop
nop
mov eax, dword [rsp + 0x180]
shr eax, 4
test al, 1
je 0x14003b66f
mov rcx, qword [rsp + 0x3e8]
mov dl, 1
call fcn.14003b5e0
jmp 0x14003b6e0
mov rdi, qword [rsp + 0x3e8]
lea rcx, [rsp + 0x30]
or r9d, 0xffffffff
mov r8d, 0xfde9
mov rdx, rdi
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x38], rbp
mov byte [rsp + 0x40], bpl
mov dword [rsp + 0x20], ebp
call fcn.1400195d0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x38]
test eax, eax
setne bl
cmp byte [rsp + 0x40], bpl
je 0x14003b6d3
test rcx, rcx
je 0x14003b6d3
movsxd rdx, dword [rsp + 0x30]
add rdx, rdx
call fcn.140019030
mov rcx, qword [rsp + 0x38]
call fcn.140064550
test bl, bl
je 0x14003b78f
lea rcx, [rsp + 0x180]
call fcn.14005e2b0
test rax, rax
jne 0x14003b650
lea rcx, [rsp + 0x180]
call fcn.14005e020
lea rcx, [rsp + 0x30]
or r9d, 0xffffffff
mov r8d, 0xfde9
mov rdx, rsi
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x38], rbp
mov byte [rsp + 0x40], bpl
mov dword [rsp + 0x20], ebp
call fcn.1400195d0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov rcx, qword [rsp + 0x38]
test eax, eax
setne bl
cmp byte [rsp + 0x40], bpl
je 0x14003b75f
test rcx, rcx
je 0x14003b75f
movsxd rdx, dword [rsp + 0x30]
add rdx, rdx
call fcn.140019030
mov rcx, qword [rsp + 0x38]
call fcn.140064550
mov al, bl
mov rcx, qword [rsp + 0x400]
xor rcx, rsp
call fcn.140068be0
lea r11, [rsp + 0x410]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.fileRemove__s_
lea rcx, [rsp + 0x48]
mov r8d, eax
mov r9, rdi
call fcn.140005420
lea rdx, [0x1400c8398]
lea rcx, [rsp + 0x48]
call fcn.1400649f0
int3

Function at 0x14003e340
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x158
mov ecx, dword [0x1400ccbd0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x14003e39d
lea rax, [0x1400a1850]
lea r8, str.No_EventManager
lea rcx, [rsp + 0x28]
or r9d, 0xffffffff
mov edx, 0x100
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x128], 0
call fcn.140006c70
lea rdx, [0x1400c8340]
lea rcx, [rsp + 0x20]
call fcn.1400649f0
int3
mov ecx, dword [0x1400ccbd0]
add rsp, 0x158
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x140042500
Capabilities:
Compare security identifiers

Disassembly:
sub rsp, 0x28
test rdx, rdx
je 0x140042522
mov rcx, qword [rcx]
test rcx, rcx
je 0x140042522
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x140042522
mov al, 1
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret

Function at 0x1400430e0
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x170
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov rbp, r8
mov rdi, rdx
mov r12, rcx
lea rax, [rax + 0x20]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 2]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1400431bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rax, [0x1400a1850]
mov qword [rsp + 0x40], rax
mov byte [rsp + 0x48], 0
mov byte [rsp + 0x148], 0
or r9d, 0xffffffff
lea r8, str.GetTokenInformation_length_
mov edx, 0x100
lea rcx, [rsp + 0x48]
call fcn.140006c70
lea r11, [0x1400a2698]
mov qword [rsp + 0x40], r11
mov byte [rsp + 0x148], 0
or r9d, 0xffffffff
lea r8, str.System
lea edx, [r9 + 0x21]
lea rcx, [rsp + 0x148]
call fcn.140006c70
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.14001bad0
lea rdx, [0x1400c83b8]
lea rcx, [rsp + 0x40]
call fcn.1400649f0
int3
xor ebx, ebx
movsxd rax, dword [rsp + 0x1a8]
test eax, eax
je 0x1400431d7
mov rcx, rax
call fcn.140063af0
mov rsi, rax
jmp 0x1400431da
mov rsi, rbx
xor ecx, ecx
call fcn.140064550
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0x1a8]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x1a8]
mov r8, rsi
mov edx, 2
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x14004329d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rax, [0x1400a1850]
mov qword [rsp + 0x40], rax
mov byte [rsp + 0x48], 0
mov byte [rsp + 0x148], 0
or r9d, 0xffffffff
lea r8, str.GetTokenInformation_data_
mov edx, 0x100
lea rcx, [rsp + 0x48]
call fcn.140006c70
lea r11, [0x1400a2698]
mov qword [rsp + 0x40], r11
mov byte [rsp + 0x148], 0
or r9d, 0xffffffff
lea r8, str.System
lea edx, [r9 + 0x21]
lea rcx, [rsp + 0x148]
call fcn.140006c70
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.14001bad0
lea rdx, [0x1400c83b8]
lea rcx, [rsp + 0x40]
call fcn.1400649f0
int3
cmp dword [rsi], 0
jbe 0x1400432f5
lea rdi, [rsi + 8]
nop
nop
nop
mov rdx, qword [r12]
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1400432ce
add ebx, 1
add rdi, 0x10
cmp ebx, dword [rsi]
jb 0x1400432b0
jmp 0x1400432f5
test rbp, rbp
je 0x1400432e9
mov eax, ebx
add rax, 1
shl rax, 4
mov ecx, dword [rax + rsi]
shr ecx, 2
and cl, 1
mov byte [rbp], cl
mov rcx, rsi
call fcn.140064550
mov al, 1
jmp 0x140043308
test rbp, rbp
je 0x1400432fe
mov byte [rbp], 0
mov rcx, rsi
call fcn.140064550
xor al, al
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x14005e670
Capabilities:
Get hostname

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0xa0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x1400cb0f0]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rdi, rcx
mov qword [r11 - 0x48], rcx
xor esi, esi
mov qword [rcx], rsi
mov dword [rsp + 0x40], 0x10
lea rdx, [r11 - 0x68]
lea rcx, [r11 - 0x38]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
movzx ecx, word [rsp + 0x70]
test eax, eax
cmove cx, si
mov word [rsp + 0x70], cx
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
or r9d, 0xffffffff
mov r8d, 0xfde9
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140037d20
mov rbx, qword [rsp + 0x50]
mov qword [rsp + 0x50], rsi
mov dword [rsp + 0x48], esi
mov rcx, qword [rdi]
call fcn.140064550
mov qword [rdi], rbx
cmp byte [rsp + 0x58], sil
je 0x14005e732
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14005e737
movsxd rdx, dword [rsp + 0x48]
call fcn.140019030
mov rcx, qword [rsp + 0x50]
jmp 0x14005e737
mov rcx, qword [rsp + 0x50]
call fcn.140064550
nop
mov rax, rdi
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140068be0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14005f920
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
mov r14, r9
mov rbx, r8
mov r15, rcx
mov eax, dword [r8]
mov dword [r11 + 0x18], eax
mov dword [rsp + 0x38], 0
mov qword [r11 - 0x38], 0
mov byte [rsp + 0x48], 0
mov dword [rsp + 0x20], 0
or r9d, 0xffffffff
mov r8d, 0xfde9
lea rcx, [r11 - 0x40]
call fcn.1400195d0
nop
mov edi, 0xea
nop
nop
mov rax, qword [rbx + 8]
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r9, r14
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp eax, edi
je 0x14005f9c8
test eax, eax
jne 0x14005fabd
mov rbp, qword [rbx + 8]
mov edx, dword [rsp + 0x90]
test rbp, rbp
jne 0x14005f9dd
test edx, edx
cmovne esi, edi
mov r8d, dword [rbx]
mov eax, r8d
cmp edx, r8d
cmovl eax, edx
xor r13d, r13d
test eax, eax
cmovg r13d, eax
mov ecx, r13d
cmp edx, r13d
cmovg ecx, edx
xor edi, edi
test ecx, ecx
cmovg edi, ecx
cmp edi, r8d
jg 0x14005fa58
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
cmp edi, eax
jge 0x14005fa1b
cmp edi, 0x80
jge 0x14005fa58
cmp rbp, rbp
je 0x14005fa33
movsxd r8, r13d
test r13d, r13d
jle 0x14005fa33
mov rdx, rbp
mov rcx, rbp
call fcn.140065520
cmp byte [rbx + 0x10], 0
je 0x14005fa54
mov r8, qword [rbx + 8]
test r8, r8
je 0x14005fa54
mov eax, dword [rbx]
sub eax, edi
movsxd rdx, eax
movsxd rcx, edi
add rcx, r8
call fcn.140019030
mov dword [rbx], edi
jmp 0x14005faaf
test edi, edi
je 0x14005fa69
movsxd rcx, edi
call fcn.140063af0
mov r12, rax
jmp 0x14005fa6c
xor r12d, r12d
movsxd r8, r13d
test r13d, r13d
jle 0x14005fa7f
mov rdx, rbp
mov rcx, r12
call fcn.140065520
cmp byte [rbx + 0x10], 0
je 0x14005fa96
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14005fa96
movsxd rdx, dword [rbx]
call fcn.140019030
mov rcx, qword [rbx + 8]
call fcn.140064550
xor r11d, r11d
test edi, edi
cmovg r11d, edi
mov dword [rbx], r11d
mov qword [rbx + 8], r12
mov edi, 0xea
cmp esi, edi
jne 0x14005faf0
jmp 0x14005f990
cmp byte [rsp + 0x48], 0
je 0x14005fae2
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14005fae7
movsxd rdx, dword [rsp + 0x38]
add rdx, rdx
call fcn.140019030
mov rcx, qword [rsp + 0x40]
jmp 0x14005fae7
mov rcx, qword [rsp + 0x40]
call fcn.140064550
mov eax, esi
jmp 0x14005fb21
cmp byte [rsp + 0x48], 0
je 0x14005fb15
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14005fb1a
movsxd rdx, dword [rsp + 0x38]
add rdx, rdx
call fcn.140019030
mov rcx, qword [rsp + 0x40]
jmp 0x14005fb1a
mov rcx, qword [rsp + 0x40]
call fcn.140064550
mov eax, esi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14005ff60
Capabilities:
Delete registry value

Disassembly:
push rbx
sub rsp, 0x190
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rbx, rcx
xor eax, eax
mov dword [rsp + 0x1b0], eax
cmp byte [0x1400cac11], al
je 0x140060078
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], rax
mov byte [rsp + 0x40], al
mov dword [rsp + 0x20], eax
or r9d, 0xffffffff
mov r8d, 0xfde9
lea rcx, [rsp + 0x30]
call fcn.1400195d0
nop
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, eax
cmp byte [rsp + 0x40], 0
je 0x14005ffe5
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14005ffea
movsxd rdx, dword [rsp + 0x30]
add rdx, rdx
call fcn.140019030
mov rcx, qword [rsp + 0x38]
jmp 0x14005ffea
mov rcx, qword [rsp + 0x38]
call fcn.140064550
test ebx, ebx
je 0x14006009f
lea rax, [0x1400a1850]
mov qword [rsp + 0x50], rax
mov byte [rsp + 0x58], 0
mov byte [rsp + 0x158], 0
or r9d, 0xffffffff
lea r8, str.RegDeleteValue
mov edx, 0x100
lea rcx, [rsp + 0x58]
call fcn.140006c70
lea r11, [0x1400a2698]
mov qword [rsp + 0x50], r11
mov byte [rsp + 0x158], 0
or r9d, 0xffffffff
lea r8, str.System
lea edx, [r9 + 0x21]
lea rcx, [rsp + 0x158]
call fcn.140006c70
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.14001bad0
lea rdx, [0x1400c83b8]
lea rcx, [rsp + 0x50]
call fcn.1400649f0
int3
mov r9d, 0x10a
lea r8, str.....lib1oswinRegistry.cxx
lea rdx, str.writeAllowed
lea rcx, [rsp + 0x50]
call fcn.14001b760
mov rcx, rax
call fcn.14001b660
int3
add rsp, 0x190
pop rbx
ret
Function at 0x1400600d0
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x1a0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rbx, r9
mov edi, r8d
mov rsi, rcx
xor eax, eax
mov dword [rsp + 0x48], eax
cmp byte [0x1400cac11], al
je 0x14006020b
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], rax
mov byte [rsp + 0x40], al
mov dword [rsp + 0x20], eax
or r9d, 0xffffffff
mov r8d, 0xfde9
lea rcx, [rsp + 0x30]
call fcn.1400195d0
nop
mov eax, dword [rsp + 0x1d0]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, edi
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
cmp byte [rsp + 0x40], 0
je 0x140060178
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14006017d
movsxd rdx, dword [rsp + 0x30]
add rdx, rdx
call fcn.140019030
mov rcx, qword [rsp + 0x38]
jmp 0x14006017d
mov rcx, qword [rsp + 0x38]
call fcn.140064550
test ebx, ebx
je 0x140060232
lea rax, [0x1400a1850]
mov qword [rsp + 0x58], rax
mov byte [rsp + 0x60], 0
mov byte [rsp + 0x160], 0
or r9d, 0xffffffff
lea r8, str.RegSetValueEx
mov edx, 0x100
lea rcx, [rsp + 0x60]
call fcn.140006c70
lea r11, [0x1400a2698]
mov qword [rsp + 0x58], r11
mov byte [rsp + 0x160], 0
or r9d, 0xffffffff
lea r8, str.System
lea edx, [r9 + 0x21]
lea rcx, [rsp + 0x160]
call fcn.140006c70
mov edx, ebx
lea rcx, [rsp + 0x58]
call fcn.14001bad0
lea rdx, [0x1400c83b8]
lea rcx, [rsp + 0x58]
call fcn.1400649f0
int3
mov r9d, 0x122
lea r8, str.....lib1oswinRegistry.cxx
lea rdx, str.writeAllowed
lea rcx, [rsp + 0x58]
call fcn.14001b760
mov rcx, rax
call fcn.14001b660
int3
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret