joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400048dc
Capabilities:
Create directory

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 r13
push r14
mov eax, 0x17a0
call fcn.14002d110
sub rsp, rax
mov rax, qword [0x14003b9c0]
xor rax, rsp
mov qword [rsp + 0x1790], rax
mov bl, cl
lea rcx, str.extracting_files
call fcn.14000ff78
mov ecx, 0x7d2
call fcn.140004654
lea rcx, [0x1400301a0]
mov edx, eax
mov edi, eax
call fcn.14000ff78
xor r14d, r14d
cmp edi, r14d
jne 0x14000495d
movzx eax, byte [0x14004a720]
cmp bl, r14b
cmovne eax, r14d
mov byte [0x14004a720], al
jmp 0x140004ad9
cmp bl, r14b
je 0x140004967
call fcn.140012334
call fcn.140001054
mov edx, dword [0x14003d2a4]
xor r9d, r9d
mov rcx, rax
xor r8d, r8d
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, 0x7d3
call fcn.14000458c
lea rdx, [0x14003019c]
mov r12d, r14d
mov rcx, rax
mov rbp, rax
call fcn.140014e2c
cmp edi, r14d
mov rbx, rax
jle 0x140004aa2
cmp rbx, r14
je 0x140004aa2
mov rcx, rbx
call fcn.140013bc0
cmp rax, r14
je 0x140004aa2
lea r8, [0x14004a720]
lea rdx, [0x140030194]
lea rcx, [rsp + 0x20]
mov r9, rbx
call fcn.140014fe8
mov edx, 0x5c
mov rcx, rbx
call fcn.140013b8c
mov r13, rax
cmp rax, r14
je 0x140004a52
lea rcx, [0x14004a720]
call fcn.140013bc0
sub r13, rbx
lea rdx, [rsp + 0x20]
lea rcx, [rsp + r13 + 0x21]
mov byte [rcx + rax], r14b
lea rcx, str.creating_directory__S
call fcn.14000ff78
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, r14d
jne 0x140004a52
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140004a52
lea rdx, [rsp + 0x20]
lea rcx, str.failed_to_create_directory__S
call fcn.14000fee4
lea r8, [0x14004a720]
lea rdx, [0x140030194]
lea rcx, [rsp + 0x20]
mov r9, rbx
call fcn.140014fe8
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140002c8c
mov ebx, eax
cmp eax, r14d
jne 0x140004b0d
lea rdx, [0x14003019c]
xor ecx, ecx
inc r12d
call fcn.140014e2c
cmp r12d, edi
mov rbx, rax
jl 0x1400049af
mov rcx, rbp
call fcn.140013f50
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, rsi
mov dword [0x14003d2a0], eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.extracting_files_done
call fcn.14000ff78
xor eax, eax
mov rcx, qword [rsp + 0x1790]
xor rcx, rsp
call fcn.1400142e0
lea r11, [rsp + 0x17a0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
lea rdx, [rsp + 0x20]
lea rcx, str.Failed_to_extract__S
call fcn.14000fee4
mov rcx, rbp
call fcn.140013f50
mov eax, ebx
jmp 0x140004adb

Function at 0x140004d5c
Capabilities:
Delete directory
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [0x14004beb0], 0
mov ebx, ecx
jne 0x140004d99
lea rcx, [0x14004a720]
call fcn.140013bc0
test rax, rax
je 0x140004d99
lea rcx, [0x14004a720]
mov dl, 1
call fcn.140004f10
lea rcx, [0x14004a720]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140004f10
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x3050
call fcn.14002d110
sub rsp, rax
mov rax, qword [0x14003b9c0]
xor rax, rsp
mov qword [rsp + 0x3040], rax
mov sil, dl
lea rdx, [0x140030370]
mov r8d, 1
mov rbx, rcx
call fcn.140014f30
test eax, eax
je 0x1400050f5
mov rcx, rbx
call fcn.140013bc0
test rax, rax
je 0x1400050f5
lea rcx, [0x140030358]
mov rdx, rbx
call fcn.14000ff78
mov rcx, rbx
call fcn.140013bc0
test rax, rax
je 0x1400050f5
lea rcx, [rsp + 0x18d0]
mov rdx, rbx
call fcn.140014190
lea rcx, [rsp + 0x18d0]
call fcn.140013bc0
cmp byte [rsp + rax + 0x18d0], 0x5c
je 0x140004fc6
lea rdx, [0x140030354]
lea rcx, [rsp + 0x18d0]
call fcn.1400140f0
lea rdx, [0x140030350]
lea rcx, [rsp + 0x18d0]
call fcn.1400140f0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x18d0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400050f5
lea rdx, [0x140030370]
lea rcx, [rsp + 0x4c]
call fcn.140015b60
test eax, eax
je 0x1400050d6
lea rdx, [0x14003034c]
lea rcx, [rsp + 0x4c]
call fcn.140015b60
test eax, eax
je 0x1400050d6
lea rcx, [rsp + 0x160]
mov rdx, rbx
call fcn.140014190
lea rcx, [rsp + 0x160]
call fcn.140013bc0
cmp byte [rsp + rax + 0x160], 0x5c
je 0x140005067
lea rdx, [0x140030354]
lea rcx, [rsp + 0x160]
call fcn.1400140f0
lea rdx, [rsp + 0x4c]
lea rcx, [rsp + 0x160]
call fcn.1400140f0
test byte [rsp + 0x20], 0x10
lea rdx, [rsp + 0x160]
jbe 0x1400050bc
lea rcx, str.attempting_to_remove__S___d_
movzx r8d, sil
call fcn.14000ff78
test sil, sil
je 0x1400050ac
lea rcx, [rsp + 0x160]
xor edx, edx
call fcn.140004f10
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x1400050d6
lea rcx, str.attempting_to_delete__S
call fcn.14000ff78
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140004ffa
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x3040]
xor rcx, rsp
call fcn.1400142e0
lea r11, [rsp + 0x3050]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140005218
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov r8d, 8
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140005243
cmp dword [rsp + 0x48], 8
jae 0x140005263
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.error__d_n
mov edx, eax
call fcn.14000ff78
lea rcx, [0x140030378]
call fcn.140004ed4
mov rax, qword [rsp + 0x50]
add rsp, 0x38
ret
Function at 0x140005270
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000529b
cmp dword [rsp + 0x48], 4
jae 0x1400052c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, dword [rsp + 0x48]
lea rcx, str.error__d__d_n
mov edx, eax
call fcn.14000ff78
lea rcx, str.Internal_Error:_readInt
call fcn.140004ed4
mov eax, dword [rsp + 0x50]
add rsp, 0x38
ret

Function at 0x1400052cc
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
lea rdx, [rsp + 0x48]
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400052f7
cmp dword [rsp + 0x50], 2
jae 0x140005317
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.error__d_n
mov edx, eax
call fcn.14000ff78
lea rcx, str.Internal_Error:_readShort
call fcn.140004ed4
mov ax, word [rsp + 0x48]
add rsp, 0x38
ret

Function at 0x140005324
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
call fcn.140005270
movsxd rdi, eax
lea edx, [rdi + 1]
movsxd rcx, edx
call fcn.140013a90
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov rdx, rax
mov r8d, edi
mov rcx, rbx
mov rsi, rax
mov byte [rdi + rax], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140005374
cmp dword [rsp + 0x48], edi
jae 0x140005380
lea rcx, str.Internal_Error:_readString
call fcn.140004ed4
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140005394
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
call fcn.140005270
mov rcx, 0xffffffffffffffff
mov ebp, eax
cdq
sub eax, edx
sar eax, 1
movsxd rbx, eax
mov eax, 2
lea edx, [rbx + 1]
movsxd r8, edx
mul r8
cmovo rax, rcx
mov rcx, rax
call fcn.140013a90
mov rcx, rbx
xor ebx, ebx
mov word [rax + rcx*2], bx
lea r9, [rsp + 0x48]
mov r8d, ebp
mov rcx, rdi
mov rdx, rax
mov rsi, rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x14000540a
cmp dword [rsp + 0x48], ebp
jae 0x140005416
lea rcx, str.Internal_Error:_readWString
call fcn.140004ed4
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400063d8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x17a0
call fcn.14002d110
sub rsp, rax
mov rax, qword [0x14003b9c0]
xor rax, rsp
mov qword [rsp + 0x1790], rax
mov rdi, rcx
lea rcx, [rsp + 0x20]
call fcn.140006308
lea rdx, [rsp + 0x20]
lea rcx, str.tempPath_is__S
call fcn.14000ff78
lea rdx, [0x1400306f0]
lea rcx, [rsp + 0x20]
mov r9, rdi
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x1400064b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.GetTempFileName_failed__last_error__d_
mov edx, eax
call fcn.14000ff78
lea rcx, [rsp + 0x20]
call fcn.140013bc0
test eax, eax
jle 0x14000647a
cdqe
cmp byte [rsp + rax + 0x1f], 0x5c
je 0x14000647a
cmp byte [rsp + rax + 0x1f], 0x2f
je 0x14000647a
lea rdx, [0x140030354]
lea rcx, [rsp + 0x20]
call fcn.1400140f0
xor ecx, ecx
call fcn.140015ac4
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
imul eax, ebx
mov ecx, eax
call fcn.140015fb8
call fcn.140015fd0
lea r8, [rsp + 0x20]
lea rdx, str._se4j_d
mov r9d, eax
mov rcx, rdi
call fcn.140014fe8
lea rcx, str.tempFile_is__S
mov rdx, rdi
call fcn.14000ff78
mov rcx, qword [rsp + 0x1790]
xor rcx, rsp
call fcn.1400142e0
mov rbx, qword [rsp + 0x17b8]
add rsp, 0x17a0
pop rdi
ret
Function at 0x140006e60
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rsi
push rdi
mov eax, 0x1960
call fcn.14002d110
sub rsp, rax
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x1998], rbx
mov rax, qword [0x14003b9c0]
xor rax, rsp
mov qword [rsp + 0x1950], rax
mov rbp, r8
mov rbx, rdx
mov rdx, rcx
lea rcx, [rsp + 0x1e0]
call fcn.140014190
lea rdx, [0x1400307d8]
lea rcx, [rsp + 0x1e0]
call fcn.1400140f0
cmp byte [rbx], 0x2e
je 0x140006ed7
lea rdx, [0x140030370]
lea rcx, [rsp + 0x1e0]
call fcn.1400140f0
mov rdx, rbx
lea rcx, [rsp + 0x1e0]
call fcn.1400140f0
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x1e0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140006f0d
xor eax, eax
jmp 0x1400070ba
mov ecx, 8
call fcn.1400144d8
test rax, rax
je 0x140006f26
lea rcx, [rsp + 0x20]
mov qword [rax], rcx
jmp 0x140006f28
xor eax, eax
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
call fcn.140006808
mov qword [rsp + 0x48], rax
and qword [rsp + 0x50], 0
mov ecx, 0x1770
call fcn.1400160f0
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0xcc]
mov rcx, rax
call fcn.140014190
mov rdi, qword [rsp + 0x48]
lea r9, [rsp + 0x60]
mov r8, qword [rdi + 8]
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.140006840
mov rbx, rax
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.140006cfc
mov qword [rdi + 8], rbx
mov rcx, qword [rbx + 8]
mov qword [rcx], rbx
lea rdx, [rsp + 0xa0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
sete al
test al, al
je 0x140006f42
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rsi, qword [rsp + 0x50]
movsxd rcx, esi
imul rcx, rcx, 0x1770
call fcn.1400160f0
mov qword [rbp], rax
cmp qword [rsp + 0x50], 0
jbe 0x140007067
xor ebx, ebx
mov rax, qword [rsp + 0x48]
mov rdi, qword [rax]
mov r11, qword [rsp + 0x20]
test r11, r11
jne 0x140006ffe
call fcn.1400144b8
xor r11d, r11d
jmp 0x140007001
mov r11, qword [r11]
cmp rdi, qword [r11 + 0x28]
jne 0x14000700c
call fcn.1400144b8
mov rcx, qword [rbp]
mov rax, qword [rdi + 0x10]
mov qword [rbx + rcx], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax]
mov qword [rsp + 0x68], rcx
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x60], rax
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x80], xmm0
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x20]
call fcn.140006c44
add rbx, 8
cmp qword [rsp + 0x50], 0
ja 0x140006fe2
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax]
mov qword [rax], rax
mov rax, qword [rsp + 0x48]
mov qword [rax + 8], rax
and qword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x48]
cmp rdx, rcx
je 0x1400070a3
mov rbx, qword [rdx]
mov rcx, rdx
call fcn.140013f50
mov rdx, rbx
mov rcx, qword [rsp + 0x48]
cmp rbx, rcx
jne 0x14000708b
call fcn.140013f50
and qword [rsp + 0x48], 0
mov rcx, qword [rsp + 0x20]
call fcn.140013f50
mov eax, esi
mov rcx, qword [rsp + 0x1950]
xor rcx, rsp
call fcn.1400142e0
mov rbx, qword [rsp + 0x1998]
add rsp, 0x1960
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000b248
Capabilities:
Set registry value

Disassembly:
push rbx
mov eax, 0x17e0
call fcn.14002d110
sub rsp, rax
mov rax, qword [0x14003b9c0]
xor rax, rsp
mov qword [rsp + 0x17d0], rax
mov qword [rsp + 0x58], rdx
mov rbx, r8
mov rdx, rcx
lea rcx, [rsp + 0x60]
lea r8, str.SOFTWAREej_technologiesexe4jjvms_
call fcn.14000b1dc
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 0xf003f
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x14000b328
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
lea rdx, str.LastWriteTime
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, rbx
call fcn.140013bc0
mov rcx, qword [rsp + 0x50]
lea rdx, str.Version
mov dword [rsp + 0x28], eax
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x17d0]
xor rcx, rsp
call fcn.1400142e0
add rsp, 0x17e0
pop rbx
ret
Function at 0x14000b344
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
mov eax, 0x17e0
call fcn.14002d110
sub rsp, rax
mov rax, qword [0x14003b9c0]
xor rax, rsp
mov qword [rsp + 0x17d0], rax
mov qword [rsp + 0x48], rdx
mov rbx, r8
mov rdx, rcx
lea rcx, [rsp + 0x60]
lea r8, str.SOFTWAREej_technologiesexe4jjvms_
xor dil, dil
call fcn.14000b1dc
lea r11, [rsp + 0x38]
lea rdx, [rsp + 0x60]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000b4b7
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea rdx, str.LastWriteTime
xor r8d, r8d
mov dword [rsp + 0x30], 8
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14000b4ac
cmp dword [rsp + 0x30], 8
jne 0x14000b4ac
lea r8d, [rax + 8]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x50]
call fcn.1400173f0
test eax, eax
jne 0x14000b4ac
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, str.Version
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x30], 0x1770
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
sete dil
test dil, dil
je 0x14000b4ac
cmp dword [rsp + 0x30], 1
jae 0x14000b461
mov byte [rbx], 0
jmp 0x14000b470
mov eax, dword [rsp + 0x30]
cmp byte [rax + rbx - 1], 0
je 0x14000b470
mov byte [rax + rbx], 0
lea rdx, str.1.7.
mov rcx, rbx
call fcn.140015b60
test eax, eax
je 0x14000b4a9
lea rdx, str.1.6.
mov rcx, rbx
call fcn.140015b60
test eax, eax
je 0x14000b4a9
lea rdx, str.1.5.
mov rcx, rbx
call fcn.140015b60
test eax, eax
jne 0x14000b4ac
xor dil, dil
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, dil
mov rcx, qword [rsp + 0x17d0]
xor rcx, rsp
call fcn.1400142e0
mov rbx, qword [rsp + 0x1808]
add rsp, 0x17e0
pop rdi
ret
Function at 0x14000b860
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x40
lea rax, [r11 - 0x10]
mov rdi, r9
mov rsi, r8
mov r9d, 0x20019
xor r8d, r8d
xor ebx, ebx
mov qword [r11 - 0x28], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x14000b8c8
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
cmp eax, ebx
sete bl
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x58]
mov al, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14000b994
Capabilities:
Query environment variable
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x100
mov rax, qword [0x14003b9c0]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rdi, rcx
mov ecx, 0x7d0
call fcn.140013a90
lea rsi, str.javaw.exe
mov rcx, rsi
mov r13, rax
call fcn.140013bc0
mov rbx, rdi
mov rcx, rdi
sub rbx, rax
call fcn.140013bc0
mov rdx, rsi
lea rcx, [rbx + rax]
call fcn.140015b60
mov rcx, rsi
test eax, eax
je 0x14000ba06
lea rcx, str.java.exe
call fcn.140013bc0
or ebx, 0xffffffff
mov rcx, rdi
sub ebx, eax
call fcn.140013bc0
mov rdx, rdi
add eax, ebx
mov rcx, r13
movsxd rbx, eax
mov r8, rbx
call fcn.140013f70
mov rcx, r13
mov byte [rbx + r13], 0
call fcn.140012484
mov ebx, 0x5dc0
mov rcx, rbx
mov r14, rax
call fcn.140013a90
mov rcx, rbx
mov r12, rax
call fcn.140013a90
lea rcx, str.PATH
mov rdx, rax
mov r8d, 0x2ee0
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov rdx, rdi
mov rcx, r12
call fcn.140014190
lea rdx, [0x14003019c]
mov rcx, r12
call fcn.1400140f0
mov rdx, r13
mov rcx, r12
call fcn.1400140f0
lea rcx, str.PATH
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x14000bab6
lea rcx, str.Setting_PATH__S
mov rdx, r12
call fcn.14000ff78
jmp 0x14000bace
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Setting_PATH__S_failed_with_error__d
mov rdx, r12
mov r8d, eax
call fcn.14000ff78
mov ecx, 0x5dc6
call fcn.140013a90
lea rdx, str.PATH_s
mov r8, r12
mov rcx, rax
mov rsi, rax
call fcn.140014fe8
mov rcx, rsi
call fcn.1400178d0
mov r8d, 0xc8
lea rdx, [rsp + 0x20]
lea ecx, [r8 - 0x30]
xor ebx, ebx
call fcn.140004500
lea rcx, [rsp + 0x20]
call fcn.140013bc0
test rax, rax
je 0x14000bb2a
lea rdx, [rsp + 0x20]
mov rcx, r13
call fcn.14000b8dc
mov rbx, rax
lea rbp, str.hotspot
test rbx, rbx
jne 0x14000bbbd
mov rdx, qword [rbp]
mov rcx, r13
call fcn.14000b8dc
add rbp, 8
mov rbx, rax
lea rax, str.i4j_jres
cmp rbp, rax
jl 0x14000bb31
test rbx, rbx
jne 0x14000bbbd
mov rcx, r14
call fcn.140012560
lea rcx, str.PATH
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x14000bb8b
lea rcx, str.Setting_PATH__S
mov rdx, rdi
call fcn.14000ff78
jmp 0x14000bba3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Setting_PATH__S_failed_with_error__d
mov rdx, rdi
mov r8d, eax
call fcn.14000ff78
lea rdx, str.PATH_s
mov r8, rdi
mov rcx, rsi
call fcn.140014fe8
mov rcx, rsi
call fcn.1400178d0
mov rcx, r12
call fcn.140013f50
mov rcx, rdi
call fcn.140013f50
mov rcx, rsi
call fcn.140013f50
mov rcx, r13
call fcn.140013f50
mov rax, rbx
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1400142e0
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x14000dbb8
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
mov eax, 0x46b8
call fcn.14002d110
sub rsp, rax
mov rax, qword [0x14003b9c0]
xor rax, rsp
mov qword [rsp + 0x46a0], rax
mov r12, qword [rsp + 0x4710]
mov r13, qword [rsp + 0x4718]
mov ebx, edx
mov rdi, r8
mov rsi, rcx
lea rdx, [rsp + 0x50]
mov r8d, 0x1770
mov ecx, 0xa0
mov rbp, r9
call fcn.140004500
lea rdx, [rsp + 0x50]
lea rcx, str.checking_app_id__S___d___p_
mov r9, rsi
mov r8d, ebx
call fcn.14000ff78
lea rcx, [rsp + 0x50]
call fcn.140013bc0
test rax, rax
je 0x14000dd91
lea rax, [rsp + 0x38]
or ebx, 0x20019
lea rdx, str.SOFTWAREej_technologiesinstall4jinstallations
xor r8d, r8d
mov rcx, rsi
mov r9d, ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000dd83
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x2f30]
lea rdx, [rsp + 0x50]
xor r8d, r8d
mov dword [rsp + 0x30], 0x1770
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14000dd68
cmp dword [rsp + 0x30], eax
jbe 0x14000dd68
lea rdx, [rsp + 0x2f30]
lea rcx, str.found_installations:__S
call fcn.14000ff78
lea rcx, [rsp + 0x2f30]
lea rdx, [0x14003019c]
call fcn.140014e2c
mov rbx, rax
test rax, rax
je 0x14000dd76
mov rcx, rax
call fcn.140013bc0
test rax, rax
je 0x14000dd76
lea rdx, str._sjre
lea rcx, [rsp + 0x17c0]
mov r8, rbx
call fcn.140014fe8
lea rdx, [rsp + 0x17c0]
mov rcx, rdi
call fcn.14000b11c
test al, al
je 0x14000dd49
mov r9, r13
mov r8, r12
mov rdx, rbp
mov rcx, rdi
mov byte [rsp + 0x28], 1
mov byte [rsp + 0x20], 0
call fcn.14000d9ec
test al, al
jne 0x14000dd64
lea rcx, str.java_version_did_not_match_in__S
jmp 0x14000dd50
lea rcx, str.did_not_find_java_in__S
lea rdx, [rsp + 0x17c0]
call fcn.14000ff78
xor ecx, ecx
jmp 0x14000dccd
mov al, 1
jmp 0x14000dd93
lea rcx, str.could_not_query_value_node__d
xor edx, edx
call fcn.14000ff78
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000dd91
lea rcx, str.could_not_open_installation_node__d
mov edx, eax
call fcn.14000ff78
xor al, al
mov rcx, qword [rsp + 0x46a0]
xor rcx, rsp
call fcn.1400142e0
add rsp, 0x46b8
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000e02c
Capabilities:
Query environment variable

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
mov eax, 0x17b0
call fcn.14002d110
sub rsp, rax
mov rax, qword [0x14003b9c0]
xor rax, rsp
mov qword [rsp + 0x17a0], rax
mov r14, qword [rsp + 0x1810]
mov rax, r8
mov r12, rdx
mov rbp, rcx
lea rdx, [rsp + 0x30]
mov r8d, 0x1770
mov rcx, rax
mov r13, r9
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x14000e0ef
lea rcx, [rsp + 0x30]
xor esi, esi
call fcn.140013bc0
lea ebx, [rsi + 1]
test rax, rax
je 0x14000e0ba
lea rdi, [rsp + 0x30]
cmp byte [rdi], 0x2f
jne 0x14000e0a3
mov byte [rdi], 0x5c
lea rcx, [rsp + 0x30]
add esi, ebx
add rdi, rbx
call fcn.140013bc0
movsxd rcx, esi
cmp rcx, rax
jb 0x14000e09b
lea rdx, [rsp + 0x30]
mov rcx, rbp
call fcn.14000b11c
test al, al
je 0x14000e0e9
mov r9, r14
mov r8, r13
mov rdx, r12
mov rcx, rbp
mov byte [rsp + 0x28], bl
mov byte [rsp + 0x20], 0
call fcn.14000d9ec
test al, al
jne 0x14000e0eb
xor ebx, ebx
mov al, bl
jmp 0x14000e0f1
xor al, al
mov rcx, qword [rsp + 0x17a0]
xor rcx, rsp
call fcn.1400142e0
add rsp, 0x17b0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret