joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001ba24
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1406c88e0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14001ba7b
cmp word [rdx], r13w
jne 0x14001ba7b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001ba80
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001bba5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001bbc6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001bab9
mov rdx, r9
mov word [rbx], cx
jmp 0x14001bae0
cmp r9, r8
jae 0x14001baf0
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14001ba9a
jmp 0x14001bba5
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001bb9a
cmp dword [rsp + 0x80], esi
je 0x14001bb9a
lea r8, [0x1406c88e0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001bb72
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001bb42
mov word [rbx], r13w
jmp 0x14001bba2
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14001bb4f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001bba2
cmp word [rsp + 0x70], r13w
jne 0x14001bb7f
cmp rbx, r14
je 0x14001bb3c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001b2a8
cmp word [rsp + 0x70], r13w
je 0x14001bba5
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1406c88e0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001bb9f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001bba5
Function at 0x14001ffbc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001ffd2
mov al, 1
jmp 0x140020032
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001ffe3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140020030
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001ddbc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140020030
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140020030
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140020030
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140020032
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140024074
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400240a4
xor eax, eax
jmp 0x140024167
mov rbp, rbx
cmp word [rax], si
je 0x1400240c9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400240b0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400240ac
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.14002264c
movsxd r14, eax
test eax, eax
jne 0x140024107
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002409d
mov rcx, r14
call fcn.14001eafc
mov rdi, rax
test rax, rax
jne 0x140024120
xor ecx, ecx
call fcn.14001cbc8
jmp 0x1400240fc
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.14002264c
test eax, eax
jne 0x140024151
mov rcx, rdi
call fcn.14001cbc8
jmp 0x14002415b
xor ecx, ecx
call fcn.14001cbc8
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 0x140026660
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14001b6c4
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140026701
cmp ebx, dword [rsp + 0x30]
je 0x1400266fa
test esi, esi
je 0x1400266fa
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400266d5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400266e2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400266bf
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400266e6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140026703
mov eax, 1
jmp 0x140026703
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14002a5a8
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001b2a8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001b2a8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002a6f8
cmp rax, 0xffffffffffffffff
je 0x14002a6f8
xor edi, edi
test rbp, rbp
jle 0x14002a6a3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001c690
mov rbx, rax
test rax, rax
jne 0x14002a630
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002a699
mov edx, 0x8000
mov ecx, r14d
call fcn.140018464
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001e7f4
cmp eax, 0xffffffff
je 0x14002a679
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14002a640
mov edx, r15d
mov ecx, r14d
call fcn.140018464
jmp 0x14002a699
cmp byte [rsi + 0x38], dil
je 0x14002a690
cmp dword [rsi + 0x34], 5
jne 0x14002a690
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002a699
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001cbc8
jmp 0x14002a70c
jns 0x14002a70c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001b2a8
cmp rax, 0xffffffffffffffff
jne 0x14002a6c4
cmp byte [rsi + 0x30], dil
je 0x14002a70c
mov edi, dword [rsi + 0x2c]
jmp 0x14002a70c
mov ecx, r14d
call fcn.14001ddbc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14002a70c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14002a70c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14002a705
mov eax, dword [rsi + 0x2c]
jmp 0x14002a70a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001b2a8
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14002ba80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002baa8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002baa8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140009878
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 8], rbx
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x140096940]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov esi, r8d
mov rbx, rdx
xor edi, edi
mov rcx, qword [str.___t_]
lea r14, str.___t_
cmp rcx, r14
je 0x1400098d6
test byte [rcx + 0x1c], 4
je 0x1400098d6
cmp byte [rcx + 0x19], 5
jb 0x1400098d6
mov rcx, qword [rcx + 0x10]
lea r8, [0x140082350]
mov edx, 0xea
call fcn.140001010
lea rcx, str.SentItems
test esi, esi
lea rax, str.Inbox
mov r9, rbx
cmovne rax, rcx
lea r8, [0x140081e40]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov edx, 0x104
call fcn.14000292c
mov ebx, eax
test eax, eax
jns 0x140009956
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x14000993e
test byte [rcx + 0x1c], 4
je 0x14000993e
cmp byte [rcx + 0x19], 2
jb 0x14000993e
mov rcx, qword [rcx + 0x10]
lea r8, [0x140082350]
mov edx, 0xeb
mov r9d, eax
call fcn.140001030
mov ecx, ebx
movzx eax, bx
and ecx, 0x1fff0000
cmp ecx, 0x70000
cmove ebx, eax
mov eax, ebx
jmp 0x1400099a5
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1400099a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x1400099a3
test byte [rcx + 0x1c], 4
je 0x1400099a3
cmp byte [rcx + 0x19], 2
jb 0x1400099a3
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x30]
mov edx, 0xec
mov dword [rsp + 0x20], eax
lea r8, [0x140082350]
call fcn.140001250
mov eax, edi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400786e0
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop r14
pop rdi
pop rsi
ret
Function at 0x1400099cc
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x250
mov rax, qword [0x140096940]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, qword [rsp + 0x2a0]
mov rsi, r9
mov ebp, r8d
mov rbx, rdx
mov rcx, qword [str.___t_]
lea r15, str.___t_
lea r12, [0x140082350]
cmp rcx, r15
je 0x140009a39
test byte [rcx + 0x1c], 4
je 0x140009a39
cmp byte [rcx + 0x19], 5
jb 0x140009a39
mov rcx, qword [rcx + 0x10]
mov edx, 0xed
mov r8, r12
call fcn.140001010
lea rcx, str.SentItems
test ebp, ebp
lea rax, str.Inbox
mov r9, rbx
cmovne rax, rcx
lea r8, [0x140081e40]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov edx, 0x104
call fcn.14000292c
mov ebx, eax
test eax, eax
jns 0x140009ab6
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x140009a9d
test byte [rcx + 0x1c], 4
je 0x140009a9d
cmp byte [rcx + 0x19], 2
jb 0x140009a9d
mov rcx, qword [rcx + 0x10]
mov edx, 0xee
mov r9d, eax
mov r8, r12
call fcn.140001030
mov ecx, ebx
movzx eax, bx
and ecx, 0x1fff0000
cmp ecx, 0x70000
cmove ebx, eax
jmp 0x140009b90
mov rdx, rsi
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140009b83
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xb7
jne 0x140009b4f
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x140009b07
test byte [rcx + 0x1c], 4
je 0x140009b07
cmp byte [rcx + 0x19], 5
jb 0x140009b07
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x38]
lea r9, [rsp + 0x30]
mov r8, r12
call fcn.1400011f0
lea rdx, [rsp + 0x30]
call fcn.1400097b8
test eax, eax
jne 0x140009b4b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x140009b90
test byte [rcx + 0x1c], 4
je 0x140009b90
cmp byte [rcx + 0x19], 2
jb 0x140009b90
mov rcx, qword [rcx + 0x10]
mov edx, 0xf0
mov r9d, eax
mov r8, r12
call fcn.140001030
jmp 0x140009b90
xor eax, eax
jmp 0x140009b88
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x140009b90
test byte [rcx + 0x1c], 4
je 0x140009b90
cmp byte [rcx + 0x19], 2
jb 0x140009b90
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x30]
mov edx, 0xf1
mov dword [rsp + 0x20], eax
mov r8, r12
call fcn.140001250
jmp 0x140009b90
mov eax, 1
xor ebx, ebx
cmp dword [rdi], ebx
je 0x140009b90
mov dword [rdi], eax
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400786e0
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140009ec0
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x290
mov rax, qword [0x140096940]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov r14, r8
mov rdi, rdx
xor ebp, ebp
mov rcx, qword [str.___t_]
lea r12, str.___t_
cmp rcx, r12
je 0x140009f21
test byte [rcx + 0x1c], 4
je 0x140009f21
cmp byte [rcx + 0x19], 5
jb 0x140009f21
mov rcx, qword [rcx + 0x10]
lea r8, [0x140082350]
mov edx, 0xfa
call fcn.140001010
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140009f9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x140009f75
test byte [rcx + 0x1c], 4
je 0x140009f75
cmp byte [rcx + 0x19], 3
jb 0x140009f75
mov rcx, qword [rcx + 0x10]
lea r8, [0x140082350]
mov edx, 0xfb
mov qword [rsp + 0x20], rdi
mov r9d, eax
call fcn.140001064
mov eax, ebx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400786e0
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x290
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, dword [rsp + 0x4c]
lea rdx, [rsp + 0x30]
mov eax, dword [rsp + 0x50]
shl rcx, 0x20
or rcx, rax
add rbp, rcx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140009f9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x12
je 0x14000a004
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14000a004
test byte [rcx + 0x1c], 4
je 0x14000a004
cmp byte [rcx + 0x19], 2
jb 0x14000a004
mov rcx, qword [rcx + 0x10]
lea r8, [0x140082350]
mov edx, 0xfc
mov qword [rsp + 0x20], rdi
mov r9d, eax
call fcn.140001064
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
jne 0x14000a046
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14000a046
test byte [rcx + 0x1c], 4
je 0x14000a046
cmp byte [rcx + 0x19], 2
jb 0x14000a046
mov rcx, qword [rcx + 0x10]
lea r8, [0x140082350]
mov edx, 0xfd
mov qword [rsp + 0x20], rdi
mov r9d, ebx
call fcn.140001064
cmp ebx, 0x12
jne 0x140009f75
mov qword [r14], rbp
xor eax, eax
jmp 0x140009f77
Function at 0x14000aa6c
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov rdi, rdx
mov rcx, qword [str.___t_]
lea r14, str.___t_
cmp rcx, r14
je 0x14000aab8
test byte [rcx + 0x1c], 4
je 0x14000aab8
cmp byte [rcx + 0x19], 5
jb 0x14000aab8
mov rcx, qword [rcx + 0x10]
lea r8, [0x140082420]
mov edx, 0x20
call fcn.140001010
mov r9d, 2
xor r8d, r8d
mov rdx, rdi
mov rcx, 0xffffffff80000002
call fcn.140065ce8
xor ebx, ebx
mov rsi, rax
test rax, rax
jne 0x14000ab23
mov rax, qword [str.___t_]
cmp rax, r14
je 0x14000ab78
test byte [rax + 0x1c], 4
je 0x14000ab78
cmp byte [rax + 0x19], 3
jb 0x14000ab78
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
lea edx, [rsi + 0x21]
mov r9, rdi
mov dword [rsp + 0x20], eax
lea r8, [0x140082420]
mov rcx, qword [rcx + 0x10]
call fcn.140001250
jmp 0x14000ab78
lea rdx, str.NTUserName
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x14000ab6f
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x14000ab6f
test byte [rcx + 0x1c], 4
je 0x14000ab6f
cmp byte [rcx + 0x19], 3
jb 0x14000ab6f
mov rcx, qword [rcx + 0x10]
lea r9, str.NTUserName
mov edx, 0x22
mov dword [rsp + 0x20], eax
lea r8, [0x140082420]
call fcn.140001250
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, 0xffffffff80000002
call fcn.1400664f4
test eax, eax
jne 0x14000abc7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x14000abc7
test byte [rcx + 0x1c], 4
je 0x14000abc7
cmp byte [rcx + 0x19], 2
jb 0x14000abc7
mov rcx, qword [rcx + 0x10]
lea r8, [0x140082420]
mov edx, 0x23
mov dword [rsp + 0x20], eax
mov r9, rdi
call fcn.140001250
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret

Function at 0x14000b5e4
Capabilities:
Compare security identifiers

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 rdi, r8
mov r14, rdx
mov rsi, rcx
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x14000b63a
test byte [rcx + 0x1c], 4
je 0x14000b63a
cmp byte [rcx + 0x19], 5
jb 0x14000b63a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140082420]
mov edx, 0x44
call fcn.140001010
mov rax, qword [rsi + 8]
mov rbx, qword [rax]
cmp rbx, rax
je 0x14000b664
mov rbp, qword [rbx + 0x10]
mov rcx, r14
mov rdx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x14000b681
mov rbx, qword [rbx]
cmp rbx, qword [rsi + 8]
jne 0x14000b646
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
test rdi, rdi
je 0x14000b689
mov qword [rdi], rbx
mov rax, rbp
jmp 0x14000b666
Function at 0x14000f14c
Capabilities:
Compare security identifiers

Disassembly:
push rbx
sub rsp, 0x20
mov r10d, dword [rcx + 0x24]
test edx, r10d
jne 0x14000f15f
xor eax, eax
jmp 0x14000f19c
lea eax, [r10 - 4]
test eax, 0xfffffffb
je 0x14000f197
xor ebx, ebx
test r8d, r8d
jne 0x14000f197
cmp r10d, 2
jne 0x14000f17e
mov rcx, qword [rcx + 0x248]
mov rdx, qword [rcx + 0x198]
mov rcx, r9
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne bl
mov eax, ebx
jmp 0x14000f19c
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x140021714
Capabilities:
Check os version

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, 0x60
xor ebp, ebp
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov esi, ebp
lea edx, [rbp + 1]
call qword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov rcx, qword [str.___t_]
lea r14, str.___t_
cmp rcx, r14
je 0x140021774
test byte [rcx + 0x1c], 4
je 0x140021774
cmp byte [rcx + 0x19], 5
jb 0x140021774
mov rcx, qword [rcx + 0x10]
lea edx, [rbp + 0x17]
lea r8, [0x1400828c0]
call fcn.140001010
call fcn.140068100
lea rax, [0x140081e30]
mov qword [0x14009a060], rbp
lea rbx, [0x14009a050]
mov qword [0x14009a078], rax
mov qword [str.___t_], rbx
lea rdi, [0x14009a078]
mov qword [0x14009a050], rbp
mov qword [0x14009a068], 1
mov r8, qword [rdi]
lea rax, [rbx + 8]
mov qword [rsp + 0x38], rax
lea rcx, [0x140020a30]
mov qword [rsp + 0x30], rbp
lea rax, [rsp + 0x48]
mov qword [rsp + 0x48], r8
lea rdi, [rdi + 8]
mov qword [rsp + 0x50], rbp
mov r9d, 1
mov qword [rsp + 0x28], rbp
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov qword [rbx + 0x20], r8
call qword [sym.imp.ADVAPI32.dll_RegisterTraceGuidsW]
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400217b5
mov rax, qword [str.___t_]
cmp rax, r14
je 0x140021840
test byte [rax + 0x1c], 4
je 0x140021840
cmp byte [rax + 0x19], 5
jb 0x140021840
call qword [sym.imp.KERNEL32.dll_GetVersion]
mov rcx, qword [str.___t_]
lea edx, [rbx + 0x18]
mov r9d, eax
lea r8, [0x1400828c0]
mov rcx, qword [rcx + 0x10]
call fcn.140001030
mov ecx, 1
call qword [sym.imp.GDI32.dll_EnableEUDC]
test eax, eax
je 0x14002189e
lea rcx, str.8_b_
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x1400218cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rbx, qword [str.___t_]
cmp rbx, r14
je 0x1400218fb
test byte [rbx + 0x1c], 4
je 0x1400218d2
cmp byte [rbx + 0x19], 2
jb 0x1400218d2
mov rcx, qword [rbx + 0x10]
lea r8, [0x1400828c0]
mov edx, 0x19
mov r9d, eax
call fcn.140001030
jmp 0x1400218cb
mov rbx, qword [str.___t_]
cmp rbx, r14
je 0x1400218fb
test byte [rbx + 0x1c], 4
je 0x1400218d2
cmp byte [rbx + 0x19], 2
jb 0x1400218d2
mov rcx, qword [rbx + 0x10]
lea r8, [0x1400828c0]
mov edx, 0x1a
call fcn.140001010
mov rbx, qword [str.___t_]
cmp rbx, r14
je 0x1400218fb
jmp 0x1400218ef
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400218ec
call qword [sym.imp.ADVAPI32.dll_UnregisterTraceGuids]
mov qword [rbx + 8], rbp
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400218d9
mov qword [str.___t_], r14
or rbx, 0xffffffffffffffff
mov eax, ebx
lock xadd dword [0x14009a524], eax
add eax, ebx
jne 0x140021926
mov rcx, qword [0x140096d40]
cmp rcx, rbx
je 0x140021926
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140096d40], rbx
lea r11, [rsp + 0x60]
mov eax, esi
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x140022184
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov rcx, qword [str.___t_]
lea r14, str.___t_
cmp rcx, r14
je 0x1400221cd
test byte [rcx + 0x1c], 4
je 0x1400221cd
cmp byte [rcx + 0x19], 5
jb 0x1400221cd
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400828c0]
mov edx, 0x2b
call fcn.140001010
mov r9d, 0x2001f
lea rdx, str.SoftwareMicrosoftFaxReceipts
xor r8d, r8d
mov rcx, 0xffffffff80000002
call fcn.140065ce8
xor esi, esi
mov rdi, rax
test rax, rax
jne 0x14002223f
mov rax, qword [str.___t_]
cmp rax, r14
je 0x140022334
test byte [rax + 0x1c], 4
je 0x140022334
cmp byte [rax + 0x19], 2
jb 0x140022334
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
lea edx, [rdi + 0x2c]
mov r9d, eax
lea r8, [0x1400828c0]
mov rcx, qword [rcx + 0x10]
call fcn.140001030
jmp 0x140022334
lea rax, [rsp + 0x40]
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.1400722e0
mov rbx, rax
mov eax, dword [rsp + 0x40]
cmp eax, 1
je 0x140022307
test eax, eax
je 0x1400222c3
test rbx, rbx
lea r8, [0x140081e18]
mov rcx, rdi
cmovne r8, rbx
call fcn.140071f1c
test eax, eax
jne 0x140022307
mov rax, qword [str.___t_]
cmp rax, r14
je 0x1400222c3
test byte [rax + 0x1c], 4
je 0x1400222c3
cmp byte [rax + 0x19], 2
jb 0x1400222c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
lea r8, [0x1400828c0]
mov r9d, eax
mov edx, 0x2d
mov rcx, qword [rcx + 0x10]
call fcn.140001030
lea rdx, str.Password
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x140022307
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x140022307
test byte [rcx + 0x1c], 4
je 0x140022307
cmp byte [rcx + 0x19], 2
jb 0x140022307
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400828c0]
mov edx, 0x2e
mov r9d, eax
call fcn.140001030
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rbx, rbx
je 0x140022334
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rbx + rcx*2], si
jne 0x140022319
add rcx, rcx
xor eax, eax
mov rdi, rbx
rep stosb byte [rdi], al
mov rcx, rbx
call fcn.14006264c
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret