joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000bb00
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, [0x1400256a0]
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 0x14000bb57
cmp word [rdx], r13w
jne 0x14000bb57
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14000bb5c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14000bc81
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14000bca2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14000bb95
mov rdx, r9
mov word [rbx], cx
jmp 0x14000bbbc
cmp r9, r8
jae 0x14000bbcc
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 0x14000bb76
jmp 0x14000bc81
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 0x14000bc76
cmp dword [rsp + 0x80], esi
je 0x14000bc76
lea r8, [0x1400256a0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14000bc4e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14000bc1e
mov word [rbx], r13w
jmp 0x14000bc7e
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 0x14000bc2b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14000bc7e
cmp word [rsp + 0x70], r13w
jne 0x14000bc5b
cmp rbx, r14
je 0x14000bc18
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14000c8d0
cmp word [rsp + 0x70], r13w
je 0x14000bc81
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, [0x1400256a0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14000bc7b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14000bc81
Function at 0x14000fa60
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 0x14000fa90
xor eax, eax
jmp 0x14000fb53
mov rbp, rbx
cmp word [rax], si
je 0x14000fab5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000fa9c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000fa98
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.14000f980
movsxd r14, eax
test eax, eax
jne 0x14000faf3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000fa89
mov rcx, r14
call fcn.140009a5c
mov rdi, rax
test rax, rax
jne 0x14000fb0c
xor ecx, ecx
call fcn.140009a20
jmp 0x14000fae8
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.14000f980
test eax, eax
jne 0x14000fb3d
mov rcx, rdi
call fcn.140009a20
jmp 0x14000fb47
xor ecx, ecx
call fcn.140009a20
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 0x140014d0c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140014d22
mov al, 1
jmp 0x140014d82
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140014d33
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140014d80
mov ecx, dword [rcx + 0x18]
nop
call fcn.140010580
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140014d80
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140014d80
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140014d80
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140014d82
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140015d60
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.14000ea50
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140015dea
cmp byte [rbp - 0x21], r15b
je 0x140015de5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140015e20
call fcn.14000a228
test eax, eax
jne 0x140015e0c
cmp byte [rbp - 0x21], r15b
je 0x140015e04
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140015e20
cmp byte [rbp - 0x21], r15b
je 0x140015e1d
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.14000e030
test eax, eax
jne 0x140015ec0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000ea50
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140015e5f
cmp byte [rbp - 0x21], r15b
je 0x140015e94
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140015e94
call fcn.14000a228
test eax, eax
jne 0x140015e80
cmp byte [rbp - 0x21], r15b
je 0x140015e79
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140015e94
cmp byte [rbp - 0x21], r15b
je 0x140015e91
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.14000e030
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140015ec0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140015ec3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140015ed1
mov rcx, rdi
call fcn.140009a20
cmp byte [rbp + 0x3f], r15b
je 0x140015ee0
mov rcx, qword [rbp + 0x27]
call fcn.140009a20
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 0x14001608c
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.14000c8d0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14000c8d0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400161dc
cmp rax, 0xffffffffffffffff
je 0x1400161dc
xor edi, edi
test rbp, rbp
jle 0x140016187
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140009f9c
mov rbx, rax
test rax, rax
jne 0x140016114
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14001617d
mov edx, 0x8000
mov ecx, r14d
call fcn.140009064
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.140011f18
cmp eax, 0xffffffff
je 0x14001615d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140016124
mov edx, r15d
mov ecx, r14d
call fcn.140009064
jmp 0x14001617d
cmp byte [rsi + 0x38], dil
je 0x140016174
cmp dword [rsi + 0x34], 5
jne 0x140016174
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14001617d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140009a20
jmp 0x1400161f0
jns 0x1400161f0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14000c8d0
cmp rax, 0xffffffffffffffff
jne 0x1400161a8
cmp byte [rsi + 0x30], dil
je 0x1400161f0
mov edi, dword [rsi + 0x2c]
jmp 0x1400161f0
mov ecx, r14d
call fcn.140010580
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400161f0
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 0x1400161f0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400161e9
mov eax, dword [rsi + 0x2c]
jmp 0x1400161ee
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14000c8d0
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 0x140001450
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x10], rdx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov r15, rdx
mov rsi, rcx
sub r15, rcx
mov r9d, 4
mov qword [rsp + 0x38], r15
nop dword [rax]
mov r8d, 4
nop word [rax + rax]
movzx eax, byte [r15 + rcx]
xor byte [rcx], al
inc rcx
sub r8, 1
jne 0x140001490
sub r9, 1
jne 0x140001480
mov r15, qword [rsp + 0x40]
mov r12b, 1
lea r10, str.cw
mov r8, rsi
mov r9d, 4
nop
mov rcx, r8
mov edx, 4
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 4]
movzx eax, byte [rax + r10]
mov byte [rcx - 4], al
sub rdx, 1
jne 0x1400014d0
inc r8
sub r9, 1
jne 0x1400014c0
movzx eax, byte [rsi + 5]
movzx ecx, byte [rsi + 1]
mov byte [rsi + 1], al
movzx eax, byte [rsi + 9]
mov byte [rsi + 5], al
movzx eax, byte [rsi + 0xd]
mov byte [rsi + 9], al
movzx eax, byte [rsi + 0xa]
mov byte [rsi + 0xd], cl
movzx ecx, byte [rsi + 2]
mov byte [rsi + 2], al
movzx eax, byte [rsi + 0xe]
mov byte [rsi + 0xa], cl
movzx ecx, byte [rsi + 6]
mov byte [rsi + 6], al
movzx eax, byte [rsi + 0xf]
mov byte [rsi + 0xe], cl
movzx ecx, byte [rsi + 3]
mov byte [rsi + 3], al
movzx eax, byte [rsi + 0xb]
mov byte [rsi + 0xf], al
movzx eax, byte [rsi + 7]
mov byte [rsi + 0xb], al
mov byte [rsi + 7], cl
cmp r12b, 0xa
je 0x14000165e
lea r14, [rsi + 2]
lea ebp, [rdx + 4]
nop dword [rax]
nop word [rax + rax]
movzx edi, byte [r14 - 2]
movzx r8d, byte [r14 - 1]
movzx edx, dil
movzx ebx, byte [r14 + 1]
xor dl, r8b
movzx r10d, byte [r14]
lea r14, [r14 + 4]
movzx eax, dl
movzx r9d, bl
shr al, 7
add dl, dl
movzx eax, al
xor r9b, r10b
imul ecx, eax, 0x1b
movzx r11d, r9b
xor r11b, dil
xor r11b, r8b
xor cl, dl
movzx edx, r8b
xor cl, dil
xor dl, r10b
xor cl, r11b
movzx eax, dl
mov byte [r14 - 6], cl
xor dil, bl
shr al, 7
add dl, dl
movzx eax, al
imul ecx, eax, 0x1b
movzx eax, r9b
shr al, 7
add r9b, r9b
movzx eax, al
xor cl, dl
xor cl, r8b
xor cl, r11b
mov byte [r14 - 5], cl
imul ecx, eax, 0x1b
movzx eax, dil
shr al, 7
add dil, dil
movzx eax, al
xor cl, r9b
xor cl, r10b
xor cl, r11b
mov byte [r14 - 4], cl
imul ecx, eax, 0x1b
xor cl, dil
xor cl, bl
xor cl, r11b
mov byte [r14 - 3], cl
sub rbp, 1
jne 0x140001560
movzx r8d, r12b
lea r9d, [rbp + 4]
shl r8, 4
mov rax, rsi
sub r8, rsi
add r8, r15
nop word [rax + rax]
mov edx, 4
nop word [rax + rax]
movzx ecx, byte [r8 + rax]
xor byte [rax], cl
inc rax
sub rdx, 1
jne 0x140001640
sub r9, 1
jne 0x140001630
inc r12b
jmp 0x1400014ae
mov r15, qword [rsp + 0x38]
mov edx, 4
nop dword [rax + rax]
mov ecx, 4
nop word [rax + rax]
movzx eax, byte [r15 + rsi + 0xa0]
xor byte [rsi], al
inc rsi
sub rcx, 1
jne 0x140001680
sub rdx, 1
jne 0x140001670
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1400026d0
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rbx
sub rsp, 0xe0
xorps xmm1, xmm1
xor eax, eax
movups xmmword [rsp + 0x70], xmm1
mov qword [r11 - 0x18], rax
mov rcx, rdx
mov qword [rsp + 0x60], rax
xorps xmm0, xmm0
movups xmmword [r11 - 0x68], xmm1
lea rax, str.winsta0default
movups xmmword [r11 - 0x58], xmm1
movups xmmword [r11 - 0x48], xmm1
movups xmmword [r11 - 0x38], xmm1
movups xmmword [r11 - 0x28], xmm1
mov dword [rsp + 0x70], 0x68
mov qword [r11 - 0x68], rax
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.Qt5Core.dll_public:_unsigned_short_int_const____ptr64___cdecl_QString::utf16_void_const___ptr64]
mov rbx, rax
mov qword [rsp + 0xf0], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x100]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, 1
jne 0x140002778
mov rdx, qword [rsp + 0x100]
lea rcx, [rsp + 0xf0]
xor r8d, r8d
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x40], rax
mov rcx, rbx
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x628
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400027ea
mov rcx, qword [rsp + 0x50]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0xe0
pop rbx
ret
Function at 0x140004780
Capabilities:
Accept command line arguments

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x70
xor ebx, ebx
mov dword [rsp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x50], rax
mov rdi, rax
test rax, rax
jne 0x1400047bd
lea rax, [rbx - 1]
add rsp, 0x70
pop r15
pop rdi
pop rbx
ret
mov eax, dword [rsp + 0x40]
mov r15, 0xffffffffffffffff
inc eax
mov qword [rsp + 0x98], rsi
movsxd rcx, eax
mov eax, 8
mul rcx
mov qword [rsp + 0x60], r14
cmovo rax, r15
mov rcx, rax
call fcn.14000491c
mov r14, rax
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x1400048bc
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0xa0], r12
mov r12, r14
mov qword [rsp + 0x68], r13
mov r13, rdi
sub r13, r14
mov r14d, ebx
nop dword [rax]
nop word [rax + rax]
mov rbp, qword [r12 + r13]
mov r9d, r15d
mov qword [rsp + 0x38], rbx
mov r8, rbp
mov qword [rsp + 0x30], rbx
xor edx, edx
mov dword [rsp + 0x28], ebx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
mov rcx, rdi
call fcn.14000491c
mov qword [rsp + 0x38], rbx
mov r9d, r15d
mov qword [rsp + 0x30], rbx
mov r8, rbp
mov dword [rsp + 0x28], edi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [r12], rsi
lea r12, [r12 + 8]
mov eax, dword [rsp + 0x40]
inc r14d
cmp r14d, eax
jne 0x140004830
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0x90]
cdqe
mov rcx, rdi
mov qword [r14 + rax*8], rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rsp + 0x40]
mov rdx, r14
call fcn.1400035b0
mov esi, eax
cmp dword [rsp + 0x40], ebx
je 0x1400048fb
mov rdi, r14
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400048fb
call fcn.1400038fc
inc ebx
add rdi, 8
cmp ebx, dword [rsp + 0x40]
jne 0x1400048e2
mov rcx, r14
call fcn.1400038fc
mov r14, qword [rsp + 0x60]
mov eax, esi
mov rsi, qword [rsp + 0x98]
add rsp, 0x70
pop r15
pop rdi
pop rbx
ret
Function at 0x140010554
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
mov eax, 0x3e0
call fcn.14024eae0
sub rsp, rax
mov rax, qword [0x14035d028]
xor rax, rsp
mov qword [rsp + 0x3d0], rax
mov rdi, rcx
mov rbx, rdx
mov rcx, qword [rcx + 0x30]
test rcx, rcx
je 0x14001062d
cmp qword [rdx + 0x18], 8
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x34], 4
jb 0x1400105a6
mov rdx, qword [rdx]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400105d7
cmp eax, 2
je 0x1400105d3
cmp eax, 0xea
jne 0x140010600
xor al, al
jmp 0x1400105df
cmp dword [rsp + 0x30], 4
sete al
mov rcx, qword [rsp + 0x3d0]
xor rcx, rsp
call fcn.14024c6d0
mov rbx, qword [rsp + 0x408]
add rsp, 0x3e0
pop rdi
ret
lea rcx, [rdi + 0x10]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rcx
mov r8d, eax
lea rcx, [rsp + 0x40]
call fcn.1400107f8
lea rdx, [0x140325060]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea r8, str.ORegistryKey.GetValue_failure:_Cannot_get_DWORD_value._The_registry_key_is_closed_or_not_set
lea rcx, [rsp + 0x40]
call fcn.140012410
lea rdx, [0x140325060]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1400108e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x2e0]
mov eax, 0x3e0
call fcn.14024eae0
sub rsp, rax
mov rax, qword [0x14035d028]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
mov r14, rcx
xor r15d, r15d
mov rcx, qword [rcx + 0x30]
mov rbx, r8
mov rdi, rdx
test rcx, rcx
je 0x140010aaa
cmp qword [rdx + 0x18], 8
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x30], r15d
jb 0x140010942
mov rdx, qword [rdx]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r8d, eax
cmp eax, 2
je 0x140010a55
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
ja 0x140010a55
test r8d, r8d
jne 0x140010ac9
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x140010990
mov rcx, qword [rbx]
lea rsi, [rbx + 0x10]
mov qword [rsi], r15
mov word [rcx], r15w
cmp dword [rsp + 0x30], 2
ja 0x1400109a9
mov al, 1
jmp 0x140010a57
mov edx, dword [rsp + 0x30]
shr rdx, 1
dec rdx
cmp rdx, qword [rsi]
ja 0x1400109cf
cmp qword [rbx + 0x18], 8
mov rax, rbx
jb 0x1400109c5
mov rax, qword [rbx]
mov qword [rsi], rdx
mov word [rax + rdx*2], r15w
jmp 0x1400109dd
sub rdx, qword [rsi]
xor r8d, r8d
mov rcx, rbx
call fcn.14000aabc
cmp qword [rbx + 0x18], 8
mov rax, rbx
jb 0x1400109ea
mov rax, qword [rbx]
cmp qword [rdi + 0x18], 8
mov rdx, rdi
jb 0x1400109f7
mov rdx, qword [rdi]
lea rcx, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rcx
lea r9, [rsp + 0x34]
mov rcx, qword [r14 + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140010a7d
mov edx, dword [rsp + 0x30]
shr rdx, 1
dec rdx
cmp rdx, qword [rsi]
ja 0x140010a42
cmp qword [rbx + 0x18], 8
jb 0x140010a35
mov rbx, qword [rbx]
mov qword [rsi], rdx
mov word [rbx + rdx*2], r15w
jmp 0x1400109a2
sub rdx, qword [rsi]
xor r8d, r8d
mov rcx, rbx
call fcn.14000aabc
jmp 0x1400109a2
xor al, al
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.14024c6d0
mov rbx, qword [rsp + 0x428]
add rsp, 0x3e0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
lea rcx, [r14 + 0x10]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rcx
mov r8d, eax
lea rcx, [rsp + 0x40]
call fcn.1400107f8
lea rdx, [0x140325060]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov r9, rdi
lea rcx, [rsp + 0x40]
call fcn.140010650
lea rdx, [0x140325060]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rax, [r14 + 0x10]
mov qword [rsp + 0x28], rdi
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call fcn.1400107f8
lea rdx, [0x140325060]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1400121ec
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x350]
mov eax, 0x450
call fcn.14024eae0
sub rsp, rax
mov rax, qword [0x14035d028]
xor rax, rsp
mov qword [rbp + 0x340], rax
mov rdi, r8
mov rsi, rdx
mov r14, rcx
and dword [rsp + 0x40], 0
mov rdx, r8
test r9b, r9b
je 0x140012240
lea rcx, [rbp - 0x78]
call fcn.14001287c
nop
mov ebx, 1
jmp 0x14001224f
lea rcx, [rsp + 0x68]
call fcn.14000ad78
mov ebx, 2
mov dword [rsp + 0x40], ebx
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14000ad78
test bl, 2
je 0x140012273
and ebx, 0xfffffffd
lea rcx, [rsp + 0x68]
call fcn.14000ac30
nop
test bl, 1
je 0x140012281
lea rcx, [rbp - 0x78]
call fcn.14000ac30
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.1400112c4
movzx ebx, al
mov rcx, qword [r14 + 0x30]
test rcx, rcx
je 0x140012383
cmp qword [rsi + 0x10], 0x3fff
ja 0x1400123bb
mov rax, qword [rdi + 0x10]
mov edx, 0xffffffff
cmp rax, rdx
ja 0x1400123fc
lea r8d, [rax*2 + 2]
test rax, rax
jne 0x1400122d4
lea rax, [0x1402872d0]
jmp 0x1400122e1
mov rax, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400122e1
mov rax, qword [rdi]
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x1400122ee
mov rdx, qword [rsi]
lea r9d, [rbx + 1]
mov dword [rsp + 0x28], r8d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140012330
lea rcx, [rsp + 0x48]
call fcn.14000ac30
mov rcx, qword [rbp + 0x340]
xor rcx, rsp
call fcn.14024c6d0
add rsp, 0x450
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rdx, str.EXPAND_SZ
lea rcx, [0x1402872ec]
test bl, bl
cmovne rcx, rdx
mov qword [rsp + 0x40], rcx
lea rcx, [r14 + 0x10]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rsi
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov r8d, eax
lea rcx, [rbp - 0x50]
call fcn.140012070
lea rdx, [0x140325060]
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.EXPAND_SZ
lea rcx, [0x1402872ec]
test al, al
cmovne rcx, rdx
mov qword [rsp + 0x40], rcx
lea r9, [rsp + 0x40]
lea rcx, [rbp - 0x50]
call fcn.140011600
lea rdx, [0x140325060]
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.EXPAND_SZ
lea rcx, [0x1402872ec]
test al, al
cmovne rcx, rdx
mov qword [rsp + 0x40], rcx
lea rax, [r14 + 0x10]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
lea rcx, [rbp - 0x50]
call fcn.1400119b0
lea rdx, [0x140325060]
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call fcn.140009574
int3
Function at 0x14001287c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
mov eax, 0x103d0
call fcn.14024eae0
sub rsp, rax
mov rax, qword [0x14035d028]
xor rax, rsp
mov qword [rsp + 0x103c0], rax
xor edi, edi
mov qword [rsp + 0x28], rcx
cmp qword [rdx + 0x18], 8
mov rax, rdx
mov rbx, rcx
jb 0x1400128b8
mov rax, qword [rdx]
mov r8d, 0x7fff
lea rdx, [rsp + 0x3c0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x7ffe
ja 0x14001291e
mov qword [rbx], rdi
lea rdx, [rsp + 0x3c0]
mov qword [rbx + 0x10], rdi
mov rcx, rbx
mov qword [rbx + 0x18], 7
mov word [rbx], di
call fcn.14000ae4c
mov rax, rbx
mov rcx, qword [rsp + 0x103c0]
xor rcx, rsp
call fcn.14024c6d0
mov rbx, qword [rsp + 0x103f0]
add rsp, 0x103d0
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rcx, [rsp + 0x30]
call fcn.1400127d8
lea rdx, [0x140325060]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3