joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002e6e0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov rax, qword [0x140045028]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov rbx, rcx
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
movdqa xmm1, xmmword [0x140039ca0]
movdqu xmmword [rbp - 0x60], xmm1
mov byte [rbp - 0x70], 0
lea rax, [rsp + 0x48]
mov qword [rbp - 0x78], rax
movups xmmword [rsp + 0x48], xmm0
xor edi, edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rdi
xor r8d, r8d
lea rdx, [0x140034d50]
lea rcx, [rsp + 0x48]
call fcn.1400027e0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rdi
mov qword [rbp - 0x80], rdi
lea r8d, [rdi + 0x42]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsPowerShell.exe
lea rcx, [rsp + 0x68]
call fcn.1400027e0
nop
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x68]
call fcn.140024120
test al, al
jne 0x14002e7c3
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rdi
lea r8d, [rdi + 0x18]
lea rdx, str.Shell::GetPowershellPath
lea rcx, [rsp + 0x28]
call fcn.1400027e0
lea rdx, str.Failed_to_get_the_Powershell_path
jmp 0x14002e83f
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 0x10
cmovae rcx, qword [rbp - 0x70]
mov r8d, 0x104
lea rdx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
cmp eax, 0x103
ja 0x14002e80f
lea rax, [rbp - 0x50]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x14002e7f5
lea rdx, [rbp - 0x50]
mov rcx, rbx
call fcn.140003ff0
mov bl, 1
jmp 0x14002e84b
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rdi
mov r8d, 0x18
lea rdx, str.Shell::GetPowershellPath
lea rcx, [rsp + 0x28]
call fcn.1400027e0
lea rdx, str.Failed_to_resolve_the_Powershell_path
lea rcx, [rsp + 0x28]
call fcn.14001dc60
xor bl, bl
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x14002e889
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002e884
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002e884
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002ec3c
movzx eax, bl
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.14002eb10
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x14002f7bc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002f806
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002f806
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002f806
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002f806
cmp dword [rcx + 0x84], 0xe
jbe 0x14002f806
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14002f808
xor al, al
add rsp, 0x28
ret
Function at 0x140001a94
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x850
mov rax, qword [0x1400234e8]
xor rax, rsp
mov qword [rsp + 0x840], rax
mov rdi, rcx
mov esi, 0x800
mov r8d, esi
lea rcx, [rsp + 0x40]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
cmp dword [0x1400238b8], 0
jne 0x140001b69
lea rcx, str.DEPLOY_TRACE_NATIVE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140001b69
call fcn.140001a2c
mov rbx, rax
test rax, rax
je 0x140001b69
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x38], eax
lea r9, str._s_s_s__ld.trace
mov qword [rsp + 0x30], rdi
mov r8d, esi
lea rax, [0x14001368c]
mov edx, esi
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rbx
call fcn.140003804
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rdx, [0x1400136a4]
lea rcx, [rsp + 0x40]
call fcn.1400019f4
mov ecx, dword [0x1400238b8]
test rax, rax
mov edx, 1
mov qword [0x1400238c0], rax
cmovne ecx, edx
mov dword [0x1400238b8], ecx
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.14000fd10
lea r11, [rsp + 0x850]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140002238
Capabilities:
Get common file path
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1cd0]
mov eax, 0x1dd0
call fcn.14000fca0
sub rsp, rax
mov rax, qword [0x1400234e8]
xor rax, rsp
mov qword [rbp + 0x1cc0], rax
mov rdi, rdx
mov rbx, rcx
mov r14d, 0x1000
lea rcx, [rbp + 0xcc0]
mov r8d, r14d
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov esi, 0x800
lea rcx, [rbp + 0x4c0]
mov r8d, esi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov r8d, esi
lea rdx, [rbp + 0x4c0]
lea rcx, [0x1400137d8]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
dec eax
cmp eax, 0x7fe
ja 0x1400022d5
lea rdx, [rbp + 0x4c0]
lea rcx, [rbp + 0xcc0]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x1400022e7
mov r8, r14
lea rdx, [rbp + 0xcc0]
mov rcx, rbx
call fcn.140008428
lea rdx, [0x1400137e8]
lea rcx, [rbp + 0xcc0]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsstr]
test rax, rax
jne 0x140002491
mov esi, 0x104
lea rcx, [rbp + 0x3b0]
mov r8d, esi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov r8d, esi
lea rcx, [rbp + 0x190]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov edx, esi
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea r8, [rbp + 0x3b0]
lea rdx, [0x140013808]
lea rcx, [rbp + 0x190]
call fcn.140003860
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov r8d, esi
lea rcx, [rbp + 0x2a0]
xor edx, edx
mov r14, rax
call sub.VCRUNTIME140.dll_memset
mov r8d, esi
lea rcx, [rbp + 0x80]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov r8d, esi
lea rdx, [rbp + 0x2a0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, 0x5c
lea rcx, [rbp + 0x2a0]
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x1400023b6
mov byte [rax], 0
lea r8, [rbp + 0x2a0]
lea rdx, [0x1400137fc]
lea rcx, [rbp + 0x80]
call fcn.140003860
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x80]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rsi, rax
cmp r14, 0xffffffffffffffff
jne 0x140002419
cmp rax, r14
je 0x140002491
mov r8, rbx
lea r9, [rbp + 0x80]
lea rbx, [0x1400238e0]
mov rcx, rbx
lea rdx, [0x140013878]
call fcn.140003860
mov rcx, rsi
jmp 0x140002465
lea r9, [rbp + 0x190]
mov r8, rbx
lea rbx, [0x1400238e0]
mov rcx, rbx
cmp rsi, 0xffffffffffffffff
je 0x140002456
lea rax, [rbp + 0x80]
lea rdx, [0x140013830]
mov qword [rsp + 0x20], rax
call fcn.140003860
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x140002414
lea rdx, [0x140013858]
call fcn.140003860
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rdx, qword [rdi + 8]
mov qword [rsp + 0x30], rbx
cmp qword [rdi + 0x10], rdx
je 0x140002484
mov qword [rdx], rbx
add qword [rdi + 8], 8
jmp 0x140002491
lea r8, [rsp + 0x30]
mov rcx, rdi
call fcn.140003468
mov rcx, qword [rbp + 0x1cc0]
xor rcx, rsp
call fcn.14000fd10
lea r11, [rsp + 0x1dd0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400024c0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x1400234e8]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rbx, rdx
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x104
call sub.VCRUNTIME140.dll_memset
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14000211c
test eax, eax
jne 0x14000252d
mov rdx, rdi
lea rcx, str.Error_during_getting_jre_home..._jp2launcherpath__s_n
call fcn.140001bd4
xor eax, eax
jmp 0x140002650
lea rax, [rsp + 0x40]
mov edx, 0x410
mov qword [rsp + 0x28], rax
lea rdi, [0x140023bf0]
lea rax, [rsp + 0x40]
mov rcx, rdi
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r8, str._Xbootclasspath_a:__slibdeploy.jar____slibjavaws.jar____slibplugin.jar_
call fcn.1400037ac
mov rdx, qword [rbx + 8]
mov qword [rsp + 0x30], rdi
cmp qword [rbx + 0x10], rdx
je 0x14000257a
mov qword [rdx], rdi
add qword [rbx + 8], 8
jmp 0x140002587
lea r8, [rsp + 0x30]
mov rcx, rbx
call fcn.140003468
lea rdi, [0x140024000]
mov edx, 0x208
mov rcx, rdi
lea r9, [rsp + 0x40]
lea r8, str._Djava.class.path__sclasses_
call fcn.1400037ac
mov rdx, qword [rbx + 8]
mov qword [rsp + 0x30], rdi
cmp qword [rbx + 0x10], rdx
je 0x1400025c0
mov qword [rdx], rdi
add qword [rbx + 8], 8
jmp 0x1400025cd
lea r8, [rsp + 0x30]
mov rcx, rbx
call fcn.140003468
mov r8d, 0x104
lea rdx, [rbp + 0x50]
lea rcx, [0x140013940]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
dec eax
cmp eax, 0x102
ja 0x14000263e
lea rax, [rbp + 0x50]
mov edx, 0x208
lea rdi, [0x140024210]
mov qword [rsp + 0x20], rax
mov rcx, rdi
lea r9, [0x140013958]
lea r8, [0x140013970]
call fcn.1400037ac
mov rdx, qword [rbx + 8]
mov qword [rsp + 0x30], rdi
cmp qword [rbx + 0x10], rdx
je 0x140002631
mov qword [rdx], rdi
add qword [rbx + 8], 8
jmp 0x14000263e
lea r8, [rsp + 0x30]
mov rcx, rbx
call fcn.140003468
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140002238
mov eax, 1
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.14000fd10
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140002c9c
Capabilities:
Query environment variable
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
lea rcx, [0x140013a18]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbslen]
mov rdi, rax
lea rcx, [rax + 0x105]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
jne 0x140002cd7
xor eax, eax
jmp 0x140002d38
lea r8d, [rdi + 0x105]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, eax
test eax, eax
jne 0x140002d48
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x140002d2a
lea rcx, [rbx - 1]
inc rcx
cmp byte [rcx], 0
jne 0x140002d01
movsd xmm0, qword [str.JavaLow]
mov rdx, rbx
movsd qword [rcx], xmm0
mov al, byte [0x140013a40]
mov byte [rcx + 8], al
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp edi, 0x104
jbe 0x140002cfd
lea rcx, [0x140013a28]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbslen]
mov rcx, rbx
lea rdx, [rax + 1]
add rdx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov r8d, edi
xor edx, edx
mov rcx, rsi
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x140002cfd
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140002cd3
Function at 0x1400075b4
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0xd0
mov rax, qword [0x1400234e8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor bl, bl
cmp byte [0x140024430], bl
je 0x1400075e1
mov al, byte [0x140024431]
jmp 0x140007625
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x90
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], DllRegisterServer
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
jne 0x140007616
cmp dword [rsp + 0x24], 6
jb 0x140007616
mov bl, 1
mov byte [0x140024431], bl
mov al, bl
mov byte [0x140024430], 1
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14000fd10
add rsp, 0xd0
pop rbx
ret

Function at 0x140007750
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x20
xor r8d, r8d
mov byte [rax + 0x10], 0
lea rdx, [rax + 0x10]
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, eax
test eax, eax
jne 0x140007789
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x1400077d4
jmp 0x14000779f
mov rcx, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rbx, rax
test rax, rax
jne 0x1400077a3
xor al, al
jmp 0x1400077d6
mov r8d, edi
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x1400077cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400077cb
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000779f
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140007e88
Capabilities:
Query environment variable

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x60
mov qword [r11 - 0x30], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov rax, qword [0x1400234e8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, rdx
mov rsi, rcx
lea rdx, [r11 - 0x48]
mov rcx, rax
call fcn.140006988
nop
xor edi, edi
mov rbx, qword [rsp + 0x20]
jmp 0x140007f28
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140007ed8
mov rdx, qword [rbx]
lea rcx, str._Dsun.java2d.noddraw
call fcn.140009308
cmp eax, 1
je 0x140007f31
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140007ef6
mov rdx, qword [rbx]
lea rcx, str._Dsun.java2d.d3d
call fcn.140009308
test eax, eax
je 0x140007f31
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140007f13
mov rdx, qword [rbx]
lea rcx, str._Dsun.java2d.opengl
call fcn.140009308
cmp eax, 1
je 0x140007f31
add rbx, 0x20
cmp rbx, qword [rsp + 0x28]
jne 0x140007ecb
jmp 0x140007f37
mov dword [0x140022fd0], edi
cmp dword [0x140022fd0], edi
je 0x140007fe6
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
lea r8d, [rax + 0x10]
lea rdx, [rsp + 0x40]
lea rcx, str.J2D_D3D
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
dec eax
cmp eax, 0xe
ja 0x140007f88
lea rdx, [0x140014e98]
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
neg eax
sbb ecx, ecx
and dword [0x140022fd0], ecx
mov r8d, 0x10
lea rdx, [rsp + 0x40]
lea rcx, str.J2D_D3D_PRELOAD
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
dec eax
cmp eax, 0xe
ja 0x140007fcb
lea rdx, [0x140014eb0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
neg eax
sbb ecx, ecx
and ecx, dword [0x140022fd0]
mov dword [0x140022fd0], ecx
jmp 0x140007fd1
mov ecx, dword [0x140022fd0]
test ecx, ecx
je 0x140007fe6
mov rdx, rsi
lea rcx, str.preloadD3D
call fcn.14000935c
mov edi, eax
lea rcx, [rsp + 0x20]
call fcn.1400054cc
mov eax, edi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14000fd10
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400089f0
Capabilities:
Get common file path
Query environment variable

Disassembly:
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1cd0]
mov eax, 0x1dd0
call fcn.14000fca0
sub rsp, rax
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x1e00], rbx
mov qword [rsp + 0x1e08], rsi
mov rax, qword [0x1400234e8]
xor rax, rsp
mov qword [rbp + 0x1cc0], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x38], rdx
mov r14d, 0x1000
mov r8d, r14d
xor edx, edx
lea rcx, [rbp + 0xcc0]
call sub.VCRUNTIME140.dll_memset
mov edi, 0x800
mov r8d, edi
xor edx, edx
lea rcx, [rbp + 0x4c0]
call sub.VCRUNTIME140.dll_memset
mov r8d, edi
lea rdx, [rbp + 0x4c0]
lea rcx, [0x140014a88]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
dec eax
cmp eax, 0x7fe
ja 0x140008aa2
lea rdx, [rbp + 0x4c0]
lea rcx, [rbp + 0xcc0]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x140008ab4
mov r8, r14
lea rdx, [rbp + 0xcc0]
mov rcx, rsi
call fcn.140008428
lea rdx, str._Djava.ext.dirs
lea rcx, [rbp + 0xcc0]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsstr]
test rax, rax
jne 0x140008c67
mov edi, 0x104
mov r8d, edi
xor edx, edx
lea rcx, [rbp + 0x3b0]
call sub.VCRUNTIME140.dll_memset
mov r8d, edi
xor edx, edx
lea rcx, [rbp + 0x190]
call sub.VCRUNTIME140.dll_memset
mov edx, edi
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea r9, [rbp + 0x3b0]
lea r8, str._sSunJavaDeploymentLibTrusted
mov edx, edi
lea rcx, [rbp + 0x190]
call fcn.140008848
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov r14, rax
mov r8d, edi
xor edx, edx
lea rcx, [rbp + 0x2a0]
call sub.VCRUNTIME140.dll_memset
mov r8d, edi
xor edx, edx
lea rcx, [rbp + 0x80]
call sub.VCRUNTIME140.dll_memset
mov r8d, edi
lea rdx, [rbp + 0x2a0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, 0x5c
lea rcx, [rbp + 0x2a0]
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x140008b85
mov byte [rax], 0
lea r9, [rbp + 0x2a0]
lea r8, str._sjss
mov rdx, rdi
lea rcx, [rbp + 0x80]
call fcn.140008848
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x80]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
cmp r14, 0xffffffffffffffff
jne 0x140008bf2
cmp rax, r14
je 0x140008c67
lea rax, [rbp + 0x80]
mov qword [rsp + 0x20], rax
mov r9, rsi
lea r8, str._Djava.ext.dirs__slibext__s_
mov edx, 0x30c
lea rcx, [0x140024440]
call fcn.140008848
mov rcx, rdi
jmp 0x140008c51
mov r9, rsi
mov edx, 0x30c
lea rcx, [0x140024440]
cmp rdi, 0xffffffffffffffff
je 0x140008c36
lea rax, [rbp + 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x190]
mov qword [rsp + 0x20], rax
lea r8, str._Djava.ext.dirs__slibext__s__s_
call fcn.140008848
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x140008bed
lea rax, [rbp + 0x190]
mov qword [rsp + 0x20], rax
lea r8, [0x140014b00]
call fcn.140008848
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rdx, [0x140024440]
mov rcx, rbx
call fcn.140009944
nop
mov rcx, rbx
call fcn.140004fe4
mov rcx, qword [rbp + 0x1cc0]
xor rcx, rsp
call fcn.14000fd10
lea r11, [rsp + 0x1dd0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140008c9c
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x360
mov rax, qword [0x1400234e8]
xor rax, rsp
mov qword [rsp + 0x350], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x140]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x104
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0x30]
lea rcx, [0x140014b40]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
dec eax
cmp eax, 0x102
ja 0x140008d3c
lea rax, [rsp + 0x30]
mov edx, 0x208
lea r9, str.javaplugin.user.profile
mov qword [rsp + 0x20], rax
lea r8, str._D_s_s
lea rcx, [rsp + 0x140]
call fcn.1400037ac
lea rdx, [rsp + 0x140]
mov rcx, rbx
call fcn.140009944
mov rcx, qword [rsp + 0x350]
xor rcx, rsp
call fcn.14000fd10
add rsp, 0x360
pop rbx
ret

Function at 0x140008d5c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x160
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1400234e8]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rdx
mov rbx, rcx
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
dec eax
cmp eax, 0x102
ja 0x140008e1c
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.140008164
nop
mov rbx, qword [rsp + 0x20]
jmp 0x140008e0b
mov rax, qword [rdi + 0x28]
cmp qword [rdi + 0x30], rax
je 0x140008df8
and qword [rax + 0x10], 0
and qword [rax + 0x18], 0
mov rdx, rbx
mov rcx, rax
call fcn.1400053b4
add qword [rdi + 0x28], 0x20
jmp 0x140008e07
mov r8, rbx
mov rdx, rax
lea rcx, [rdi + 0x20]
call fcn.1400048a0
add rbx, 0x20
cmp rbx, qword [rsp + 0x28]
jne 0x140008dd2
lea rcx, [rsp + 0x20]
call fcn.1400054cc
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14000fd10
mov rbx, qword [rsp + 0x180]
add rsp, 0x160
pop rdi
ret
Function at 0x140009178
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x860
mov rax, qword [0x1400234e8]
xor rax, rsp
mov qword [rsp + 0x850], rax
movzx ebx, r8b
mov rsi, rdx
mov rdi, rcx
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x140014d68]
mov dword [rsp + 0x40], esi
lea r9, str.SOFTWAREJavaSoftJava_Plug_in
mov qword [rsp + 0x20], rax
lea r8, [0x140014d98]
mov edx, 0x800
lea rcx, [rsp + 0x50]
call fcn.140009a2c
mov r9d, ebx
lea rax, [rsp + 0x48]
shl r9d, 9
lea rdx, [rsp + 0x50]
add r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000928c
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea r8, [0x140014da0]
mov qword [rsp + 0x28], rdi
mov r9d, 2
and qword [rsp + 0x20], 0
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14000928c
or rax, 0xffffffffffffffff
inc rax
cmp byte [rdi + rax], 0
jne 0x14000925a
add rax, 5
cmp rax, rsi
ja 0x14000928c
dec rdi
inc rdi
cmp byte [rdi], 0
jne 0x14000926f
mov ecx, dword [str._bin]
mov al, 1
mov dword [rdi], ecx
mov cl, byte [0x140014db0]
mov byte [rdi + 4], cl
jmp 0x14000928e
xor al, al
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.14000fd10
lea r11, [rsp + 0x860]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14000a35c
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x270
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400234e8]
xor rax, rsp
mov qword [rsp + 0x260], rax
movsxd r15, edx
mov r14, rcx
xor ebx, ebx
mov byte [rcx], bl
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test eax, eax
js 0x14000a448
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.14000ca2c
nop
mov rsi, qword [rax]
test rsi, rsi
je 0x14000a3ec
mov rax, qword [rsi + 8]
test rax, rax
jne 0x14000a3ef
mov rcx, qword [rsi]
call fcn.140010a60
mov qword [rsi + 8], rax
jmp 0x14000a3ef
mov rax, rbx
mov rdx, r15
mov r9d, 0x104
mov r8, rax
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcpy_s]
nop
lea rcx, [rsp + 0x30]
call fcn.14000d03c
nop
jmp 0x14000a418
test edi, edi
setns bl
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14000fd10
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
mov edx, eax
lea rcx, str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__szPath_
call fcn.14000d380
xor edx, edx
mov ecx, edi
call fcn.140010e90
int3