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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14000bc70
sub rsp, rax
mov rax, qword [0x14003e018]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001a924
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140018df3
mov rax, rbp
jmp 0x140018efb
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x40970]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001c74c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x40970]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140018ef7
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140018ef7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001c74c
test rax, rax
js 0x140018ef7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140018ef7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140018ee9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140018ee9
cmp byte [rcx], 0xd
jne 0x140018ecf
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140018ede
cmp byte [rcx + 1], 0xa
jne 0x140018ede
inc rcx
jmp 0x140018ede
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3e2e0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140018eb1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140018efb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000bcd0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x14001a00c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140019e08
Function at 0x14001b984
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, [0x140040970]
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 0x14001b9db
cmp word [rdx], r13w
jne 0x14001b9db
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001b9e0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001bb05
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001bb26
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001ba19
mov rdx, r9
mov word [rbx], cx
jmp 0x14001ba40
cmp r9, r8
jae 0x14001ba50
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 0x14001b9fa
jmp 0x14001bb05
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 0x14001bafa
cmp dword [rsp + 0x80], esi
je 0x14001bafa
lea r8, [0x140040970]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001bad2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001baa2
mov word [rbx], r13w
jmp 0x14001bb02
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 0x14001baaf
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001bb02
cmp word [rsp + 0x70], r13w
jne 0x14001badf
cmp rbx, r14
je 0x14001ba9c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001c754
cmp word [rsp + 0x70], r13w
je 0x14001bb05
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, [0x140040970]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001baff
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001bb05
Function at 0x14001d830
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001d846
mov al, 1
jmp 0x14001d8a6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001d857
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001d8a4
mov ecx, dword [rcx + 0x18]
nop
call fcn.140018540
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001d8a4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001d8a4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001d8a4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001d8a6
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14002032c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14003e018]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x140020376
call fcn.140015314
mov dword [rax], 0xf
call fcn.140015334
mov dword [rax], 0xd
call fcn.14001adb4
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14000bcd0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x140020381
lea eax, [rbx + 1]
jmp 0x140020363
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x140020361
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x140020363
Function at 0x140022eac
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 0x140022edc
xor eax, eax
jmp 0x140022f9f
mov rbp, rbx
cmp word [rax], si
je 0x140022f01
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140022ee8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140022ee4
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.1400203d8
movsxd r14, eax
test eax, eax
jne 0x140022f3f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140022ed5
mov rcx, r14
call fcn.14001dacc
mov rdi, rax
test rax, rax
jne 0x140022f58
xor ecx, ecx
call fcn.14001ae1c
jmp 0x140022f34
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.1400203d8
test eax, eax
jne 0x140022f89
mov rcx, rdi
call fcn.14001ae1c
jmp 0x140022f93
xor ecx, ecx
call fcn.14001ae1c
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 0x140022fbc
Capabilities:
Query environment variable

Disassembly:
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 0x140023043
mov rsi, rbx
cmp word [rax], bp
je 0x140023002
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140022fec
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140022fe8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001dacc
mov rdi, rax
test rax, rax
je 0x140023030
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000ca50
mov rbp, rdi
xor ecx, ecx
call fcn.14001ae1c
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 0x140027a24
Capabilities:
Set environment variable

Disassembly:
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.14001590c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140027aae
cmp byte [rbp - 0x21], r15b
je 0x140027aa9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140027ae4
call fcn.14001f2f4
test eax, eax
jne 0x140027ad0
cmp byte [rbp - 0x21], r15b
je 0x140027ac8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140027ae4
cmp byte [rbp - 0x21], r15b
je 0x140027ae1
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.1400153f4
test eax, eax
jne 0x140027b84
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14001590c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140027b23
cmp byte [rbp - 0x21], r15b
je 0x140027b58
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140027b58
call fcn.14001f2f4
test eax, eax
jne 0x140027b44
cmp byte [rbp - 0x21], r15b
je 0x140027b3d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140027b58
cmp byte [rbp - 0x21], r15b
je 0x140027b55
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.1400153f4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140027b84
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140027b87
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140027b95
mov rcx, rdi
call fcn.14001ae1c
cmp byte [rbp + 0x3f], r15b
je 0x140027ba4
mov rcx, qword [rbp + 0x27]
call fcn.14001ae1c
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 0x14002915c
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.14001c754
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c754
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400292ac
cmp rax, 0xffffffffffffffff
je 0x1400292ac
xor edi, edi
test rbp, rbp
jle 0x140029257
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f068
mov rbx, rax
test rax, rax
jne 0x1400291e4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002924d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a088
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.14001d430
cmp eax, 0xffffffff
je 0x14002922d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400291f4
mov edx, r15d
mov ecx, r14d
call fcn.14001a088
jmp 0x14002924d
cmp byte [rsi + 0x38], dil
je 0x140029244
cmp dword [rsi + 0x34], 5
jne 0x140029244
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002924d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001ae1c
jmp 0x1400292c0
jns 0x1400292c0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c754
cmp rax, 0xffffffffffffffff
jne 0x140029278
cmp byte [rsi + 0x30], dil
je 0x1400292c0
mov edi, dword [rsi + 0x2c]
jmp 0x1400292c0
mov ecx, r14d
call fcn.140018540
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400292c0
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 0x1400292c0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400292b9
mov eax, dword [rsi + 0x2c]
jmp 0x1400292be
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c754
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 0x1400236f0
Capabilities:
Get token membership

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xd0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rax, qword [0x1400bc288]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, rcx
mov dword [rsp + 0x20], 0x220
mov r9d, 0x20
lea r8d, [r9 - 0x1e]
lea rdx, [0x140085300]
lea rcx, [rsp + 0x40]
call fcn.1400040f4
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x48]
mov rcx, qword [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x140023765
cmp dword [rsp + 0x34], 0
setne bl
xor dil, dil
jmp 0x14002376c
mov dil, 1
mov bl, byte [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.1400042b0
test dil, dil
je 0x14002377f
xor al, al
jmp 0x140023785
mov al, bl
jmp 0x140023785
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140060290
mov rbx, qword [rsp + 0xe8]
add rsp, 0xd0
pop rdi
ret
Function at 0x140024fc8
Capabilities:
Check if file exists

Disassembly:
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 - 0x168]
sub rsp, 0x250
mov rax, qword [0x1400bc288]
xor rax, rsp
mov qword [rbp + 0x140], rax
xor r15d, r15d
lea rax, [rsp + 0x30]
mov qword [r8], r15
lea rdx, [rsp + 0x30]
sub rcx, rax
mov r14, r8
mov r9d, 0x104
lea rax, [r9 + 0x7ffffefa]
test rax, rax
je 0x140025039
movzx eax, word [rcx + rdx]
test ax, ax
je 0x140025039
mov word [rdx], ax
add rdx, 2
sub r9, 1
jne 0x140025017
test r9, r9
lea rax, [rdx - 2]
lea r8, [0x140086910]
cmovne rax, rdx
lea rcx, [rsp + 0x30]
mov word [rax], r15w
call fcn.14002399c
mov ebx, 0x1f0003
lea r8, [rsp + 0x30]
mov ecx, ebx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rdi, rax
test rax, rax
jne 0x1400250a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14002515f
mov edx, 0xc8
mov rcx, qword [rbp + 0x168]
lea r8, [0x1400868c0]
call fcn.140024de0
mov esi, eax
jmp 0x140025162
lea rdx, [rsp + 0x24]
mov dword [rsp + 0x24], r15d
mov rcx, rdi
mov dword [rsp + 0x20], r15d
call fcn.140024e84
mov esi, eax
test eax, eax
jns 0x1400250d9
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xce
call fcn.140024da8
jmp 0x140025162
lea r8, [0x140086918]
lea rcx, [rsp + 0x30]
call fcn.14002399c
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rbx, rax
test rax, rax
jne 0x140025108
mov edx, 0xd4
jmp 0x140025089
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140024e84
mov esi, eax
test eax, eax
jns 0x14002513e
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xd6
call fcn.140024da8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1400251a2
jmp 0x140025162
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1400251b4
movsxd rcx, dword [rsp + 0x20]
movsxd rax, dword [rsp + 0x24]
shl rcx, 0x1f
or rax, rcx
mov qword [r14], rax
mov esi, r15d
test rdi, rdi
je 0x140025174
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1400251c6
mov eax, esi
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140060290
lea r11, [rsp + 0x250]
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
mov rcx, qword [rbp + 0x168]
mov edx, 0x879
call fcn.140024df8
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x879
call fcn.140024df8
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x879
call fcn.140024df8
int3
Function at 0x140025820
Capabilities:
Get common file path

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rdi
mov rdi, rcx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
xor ebx, ebx
mov qword [rbp - 8], rbx
mov edx, 0x104
lea rcx, [rbp - 0x18]
call fcn.1400348f4
mov rdx, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x18]
sub rdx, rcx
sar rdx, 1
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r8d, eax
test eax, eax
je 0x1400258d6
mov rcx, qword [rbp - 0x10]
mov rax, rcx
mov rdx, qword [rbp - 0x18]
sub rax, rdx
sar rax, 1
cmp r8, rax
jbe 0x1400258b6
mov edx, r8d
lea rcx, [rbp - 0x18]
call fcn.1400348f4
mov rdx, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x18]
sub rdx, rcx
sar rdx, 1
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r8d, eax
mov rcx, qword [rbp - 0x10]
mov rdx, qword [rbp - 0x18]
test r8d, r8d
je 0x1400258d6
sub rcx, rdx
sar rcx, 1
mov eax, r8d
cmp rax, rcx
ja 0x1400258d6
mov rcx, rdi
call fcn.1400033fc
nop
mov bl, 1
jmp 0x1400258d6
lea rcx, [rbp - 0x18]
call fcn.1400174fc
mov al, bl
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x40
pop rbp
ret
Function at 0x14003bc3c
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x198
mov rax, qword [0x1400bc288]
xor rax, rsp
mov qword [rsp + 0x180], rax
cmp dword [0x1400bd304], 0
je 0x14003bc69
mov eax, dword [0x1400bd300]
jmp 0x14003bcea
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x11c
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x60], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
xor edx, edx
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 0x30]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [rsp + 0x30]
mov r9b, byte [rsp + 0x17a]
mov edx, dword [rsp + 0x68]
mov ecx, dword [rsp + 0x64]
mov r8d, dword [rsp + 0x70]
mov word [rsp + 0x28], ax
movzx eax, word [rsp + 0x178]
mov word [rsp + 0x20], ax
call fcn.14003bd04
mov dword [0x1400bd300], eax
mov dword [0x1400bd304], 1
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140060290
add rsp, 0x198
ret

Function at 0x14003caec
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov r14, r8
mov rdi, rdx
mov rsi, rcx
and dword [rbp - 0x30], 0
and dword [rbp + 0x38], 0
cmp qword [rdx + 0x18], 8
jb 0x14003cb25
mov rdx, qword [rdx]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x30]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14003cc03
mov ecx, dword [rbp + 0x38]
test ecx, ecx
je 0x14003cbfe
mov eax, dword [rbp - 0x30]
dec eax
cmp eax, 1
ja 0x14003cbfe
mov byte [rbp + 0x28], 0
lea rdx, [rcx + 2]
lea r8, [rbp + 0x28]
lea rcx, [rbp - 0x20]
call fcn.14003cd50
nop
cmp qword [rdi + 0x18], 8
jb 0x14003cb82
mov rdi, qword [rdi]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
mov rbx, qword [rbp - 0x20]
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x30]
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x14003cbb9
mov rdx, rbx
mov rcx, r14
call fcn.1400033fc
nop
test rbx, rbx
je 0x14003cbfa
mov rcx, rbx
mov rax, qword [rbp - 0x10]
sub rax, rbx
cmp rax, 0x1000
jb 0x14003cbf2
test cl, 0x1f
jne 0x14003cbeb
mov rbx, qword [rbx - 8]
cmp rbx, rcx
jae 0x14003cbeb
sub rcx, rbx
sub rcx, 8
cmp rcx, 0x1f
jbe 0x14003cbf2
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.140060274
mov eax, edi
jmp 0x14003cc03
mov eax, 0x65e
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14003cc18
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
and dword [r9], 0
mov rdi, r9
cmp qword [rdx + 0x18], 8
mov rbx, r8
jb 0x14003cc3b
mov rdx, qword [rdx]
lea rax, [rsp + 0x50]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14003cce4
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElement
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x38], rax
call fcn.1400602b4
movups xmm0, xmmword [rsp + 0x30]
lea rcx, vtable.appv::utility::scope_guard_func_impl_class_std::_Binder_struct_std::_Unforced__long_int____cdecl___struct_HKEY______ptr64___struct_HKEY______ptr64____ptr64__.0
mov qword [rsp + 0x68], rax
movdqu xmmword [rax + 8], xmm0
mov qword [rax], rcx
cmp qword [rbx + 0x18], 8
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x70], 4
jb 0x14003ccb3
mov rbx, qword [rbx]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rcx, [rsp + 0x58]
mov ebx, eax
call fcn.140005b9c
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14003e1b0
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x40
mov qword [rax - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rdi, rdx
mov rbx, rcx
mov rcx, rdx
cmp qword [rdx + 0x18], 8
jb 0x14003e1df
mov rcx, qword [rdx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea esi, [rax + 1]
xor ebp, ebp
mov word [rsp + 0x58], bp
mov edx, esi
lea r8, [rsp + 0x58]
lea rcx, [rsp + 0x28]
call fcn.14003ce1c
nop
cmp qword [rdi + 0x18], 8
jb 0x14003e210
mov rdi, qword [rdi]
mov r8d, esi
mov rsi, qword [rsp + 0x28]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], 7
mov word [rbx], bp
test eax, eax
je 0x14003e24e
lea rdx, [0x14008644c]
test rsi, rsi
cmovne rdx, rsi
mov rcx, rbx
call fcn.1400033fc
nop
lea rcx, [rsp + 0x28]
call fcn.1400174fc
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x140041070
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
and dword [rsp + 0x58], 0
mov ebx, edx
lea rdx, [rcx + 0x40]
mov dword [rsp + 0x40], r9d
cmp qword [rdx + 0x18], 8
jb 0x140041094
mov rdx, qword [rdx]
mov rcx, qword [rcx + 0x60]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
je 0x140041103
mov edx, 0x5c
lea rcx, str.admin_appman_appv_sharedclientconfiguration_registryvalue.h
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
test rax, rax
je 0x1400410d7
inc rax
jmp 0x1400410de
lea rax, str.admin_appman_appv_sharedclientconfiguration_registryvalue.h
mov rdx, rax
lea rcx, [0x1400bd678]
call fcn.14000e7dc
shl rax, 0x34
movabs rcx, 0x342500000000
or rax, rdi
or rax, rcx
jmp 0x140041155
cmp ebx, dword [rsp + 0x58]
je 0x14004114b
mov edx, 0x5c
lea rcx, str.admin_appman_appv_sharedclientconfiguration_registryvalue.h
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
test rax, rax
je 0x140041125
inc rax
jmp 0x14004112c
lea rax, str.admin_appman_appv_sharedclientconfiguration_registryvalue.h
mov rdx, rax
lea rcx, [0x1400bd678]
call fcn.14000e7dc
shl rax, 0x34
movabs rcx, 0x350500040002
jmp 0x1400410fe
movabs rax, 0x8000000000
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret