Function at 0x140002ae0
Capabilities:
Create process on windows
Query environment variable
Set environment variable

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x3f8]
sub rsp, 0x4d0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14001d3e0]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
mov r13, rdx
movsxd r12, ecx
mov dword [rsp + 0x58], 0
mov r8d, 0x104
lea rdx, [rbp + 0x2b0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov qword [rbp + 0x28], 0xf
mov qword [rbp + 0x20], 0
mov byte [rbp + 0x10], 0
or rsi, 0xffffffffffffffff
cmp byte [rbp + 0x2b0], 0
jne 0x140002b69
xor r8d, r8d
jmp 0x140002b7d
lea rax, [rbp + 0x2b0]
mov r8, rsi
inc r8
cmp byte [rax + r8], 0
jne 0x140002b73
lea rdx, [rbp + 0x2b0]
lea rcx, [rbp + 0x10]
call fcn.140001cc0
nop
mov qword [rbp + 0xe8], 0xf
mov qword [rbp + 0xe0], 0
mov byte [rbp + 0xd0], 0
mov r8d, 0x12
lea rdx, str.javafxpackager.exe
lea rcx, [rbp + 0xd0]
call fcn.140001cc0
nop
mov rdi, qword [rbp + 0x20]
mov rbx, qword [rbp + 0xe0]
cmp rdi, rbx
jb 0x140002c8e
mov rcx, rdi
sub rcx, rbx
cmp rbx, 0xffffffffffffffff
cmovb rsi, rbx
lea rdx, [rbp + 0xd0]
cmp qword [rbp + 0xe8], 0x10
cmovae rdx, qword [rbp + 0xd0]
cmp rdi, rcx
jae 0x140002c10
lea rcx, str.invalid_string_position
call fcn.1400036ac
int3
mov rax, rdi
sub rax, rcx
cmp rax, rbx
cmovb rbx, rax
lea rax, [rbp + 0x10]
mov r14, qword [rbp + 0x10]
mov r15, qword [rbp + 0x28]
cmp r15, 0x10
cmovae rax, r14
mov r8, rsi
cmp rbx, rsi
cmovb r8, rbx
test r8, r8
jne 0x140002c44
xor eax, eax
jmp 0x140002c4c
add rcx, rax
call fcn.140004c60
cdqe
test rax, rax
jne 0x140002c68
cmp rbx, rsi
jae 0x140002c60
or rsi, 0xffffffffffffffff
mov eax, esi
jmp 0x140002c6c
xor eax, eax
cmp rbx, rsi
setne al
or rsi, 0xffffffffffffffff
test eax, eax
sete al
test al, al
je 0x140002c96
call fcn.140003a04
lea rcx, [rax + 0x60]
lea rdx, str.javafxpackager.exe_has_been_renamed_javapackager.exe._nThe_original_file_may_be_removed_in_a_future_release_in_lieu_of_javapackager._nPlease_update_your_scripts._n_n
call fcn.140003b18
mov rdi, qword [rbp + 0x20]
mov r14, qword [rbp + 0x10]
mov r15, qword [rbp + 0x28]
cmp rdi, 1
jb 0x140002cf8
lea rcx, [rdi - 1]
cmp rcx, 0xffffffffffffffff
cmova rcx, rsi
lea rbx, [rbp + 0x10]
cmp r15, 0x10
cmovae rbx, r14
add rbx, rcx
cmp byte [rbx], 0x5c
jne 0x140002cd4
movzx eax, byte [rbx]
cmp al, byte [0x140013538]
jne 0x140002ccb
xor eax, eax
jmp 0x140002cd0
sbb eax, eax
or eax, 1
test eax, eax
je 0x140002ce7
lea rcx, [rbp + 0x10]
call fcn.140001900
cmp rbx, rax
je 0x140002cf8
dec rbx
jmp 0x140002cb7
lea rax, [rbp + 0x10]
cmp r15, 0x10
cmovae rax, r14
sub rbx, rax
jmp 0x140002cfb
mov rbx, rsi
cmp rdi, rbx
jae 0x140002d0d
lea rcx, str.invalid_string_position
call fcn.1400036ac
int3
mov qword [rbp + 0x20], rbx
lea rax, [rbp + 0x10]
cmp r15, 0x10
cmovae rax, r14
mov byte [rax + rbx], 0
lea r8, str...lib_
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0x130]
call fcn.1400010c0
nop
lea rcx, str.JAVA_HOME
call fcn.140003ce4
mov qword [rbp + 8], 0xf
xor r15d, r15d
mov qword [rbp], r15
mov byte [rbp - 0x10], r15b
mov qword [rbp + 0x88], 0xf
mov qword [rbp + 0x80], r15
mov byte [rbp + 0x70], r15b
lea r14d, [r15 + 1]
test rax, rax
je 0x140002fe1
cmp byte [rax], r15b
jne 0x140002d85
mov r8d, r15d
jmp 0x140002d9a
mov r8, rsi
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140002d90
mov rdx, rax
lea rcx, [rbp + 0x70]
call fcn.140001cc0
lea r8, str._binjava.exe
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0xb0]
call fcn.1400010c0
mov rbx, rax
lea rax, [rbp - 0x10]
cmp rax, rbx
je 0x140002df5
cmp qword [rbp + 8], 0x10
jb 0x140002dd9
mov rcx, qword [rbp - 0x10]
call fcn.1400037cc
mov qword [rbp + 8], 0xf
mov qword [rbp], r15
mov byte [rbp - 0x10], 0
mov rdx, rbx
lea rcx, [rbp - 0x10]
call fcn.1400016b0
cmp qword [rbp + 0xc8], 0x10
jb 0x140002e0b
mov rcx, qword [rbp + 0xb0]
call fcn.1400037cc
lea r8, str._binjavac.exe
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x110]
call fcn.1400010c0
nop
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 0x10
cmovae rdx, qword [rbp - 0x10]
mov qword [rbp + 0xa8], 0xf
mov qword [rbp + 0xa0], r15
mov byte [rbp + 0x90], 0
cmp byte [rdx], 0
jne 0x140002e54
mov r8, r15
jmp 0x140002e6a
mov r8, rsi
nop word [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140002e60
lea rcx, [rbp + 0x90]
call fcn.140001cc0
nop
mov ebx, r14d
mov dword [rsp + 0x58], ebx
lea rcx, [rbp + 0x90]
cmp qword [rbp + 0xa8], 0x10
cmovae rcx, qword [rbp + 0x90]
lea rdx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp rax, 0xffffffffffffffff
je 0x140002f57
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [rbp + 0x170]
shr eax, 4
not eax
and eax, ebx
je 0x140002f57
lea rdx, [rbp + 0x110]
cmp qword [rbp + 0x128], 0x10
cmovae rdx, qword [rbp + 0x110]
mov qword [rbp + 0x68], 0xf
mov qword [rbp + 0x60], r15
mov byte [rbp + 0x50], 0
cmp byte [rdx], 0
jne 0x140002ef9
mov r8, r15
jmp 0x140002f0a
mov r8, rsi
nop dword [rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140002f00
lea rcx, [rbp + 0x50]
call fcn.140001cc0
mov ebx, 3
lea rcx, [rbp + 0x50]
cmp qword [rbp + 0x68], 0x10
cmovae rcx, qword [rbp + 0x50]
lea rdx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp rax, 0xffffffffffffffff
je 0x140002f57
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [rbp + 0x170]
shr eax, 4
not eax
and eax, 1
je 0x140002f57
xor dil, dil
jmp 0x140002f5a
mov dil, 1
test bl, 2
je 0x140002f82
and ebx, 0xfffffffd
cmp qword [rbp + 0x68], 0x10
jb 0x140002f72
mov rcx, qword [rbp + 0x50]
call fcn.1400037cc
mov qword [rbp + 0x68], 0xf
mov qword [rbp + 0x60], r15
mov byte [rbp + 0x50], 0
test bl, 1
je 0x140002f9d
cmp qword [rbp + 0xa8], 0x10
jb 0x140002f9d
mov rcx, qword [rbp + 0x90]
call fcn.1400037cc
test dil, dil
je 0x140002fc9
xor r8d, r8d
lea rdx, [0x1400133f8]
lea rcx, [rbp - 0x10]
call fcn.140001cc0
xor r8d, r8d
lea rdx, [0x1400133f8]
lea rcx, [rbp + 0x70]
call fcn.140001cc0
nop
cmp qword [rbp + 0x128], 0x10
jb 0x140002ff4
mov rcx, qword [rbp + 0x110]
call fcn.1400037cc
jmp 0x140002ff4
xor r8d, r8d
lea rdx, [0x1400133f8]
lea rcx, [rbp - 0x10]
call fcn.140001cc0
cmp qword [rbp], 0
ja 0x140003066
lea rdx, str.SOFTWAREJavaSoftJava_Development_Kit
mov rcx, 0xffffffff80000002
call fcn.1400013f0
mov rbx, rax
test rax, rax
je 0x140003050
lea rdx, [rax + 0x30]
lea rax, [rbp - 0x10]
cmp rax, rdx
je 0x140003032
mov r9, rsi
xor r8d, r8d
lea rcx, [rbp - 0x10]
call fcn.140001b90
lea rdx, [rbx + 0x10]
lea rax, [rbp + 0x70]
cmp rax, rdx
je 0x140003066
mov r9, rsi
xor r8d, r8d
lea rcx, [rbp + 0x70]
call fcn.140001b90
jmp 0x140003066
mov r8d, 8
lea rdx, str.java.exe
lea rcx, [rbp - 0x10]
call fcn.140001cc0
lea r8, [rbp - 0x10]
lea rdx, [0x14001368c]
lea rcx, [rbp + 0x110]
call fcn.1400011a0
nop
lea r8, [0x14001368c]
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.140001070
nop
cmp qword [rbp + 0x128], 0x10
jb 0x1400030a8
mov rcx, qword [rbp + 0x110]
call fcn.1400037cc
mov qword [rbp + 0x128], 0xf
mov qword [rbp + 0x120], r15
mov byte [rbp + 0x110], 0
cmp qword [rbp + 0x80], 0
jbe 0x1400030e9
lea rdx, [rbp + 0x70]
cmp qword [rbp + 0x88], 0x10
cmovae rdx, qword [rbp + 0x70]
lea rcx, str.JAVA_HOME
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
lea r8, [rbp + 0x10]
lea rdx, str.__Xmx256M___Djavafx.home
lea rcx, [rbp + 0x150]
call fcn.1400011a0
nop
lea r8, str.___classpath__
mov rdx, rax
lea rcx, [rbp + 0xb0]
call fcn.140001070
nop
lea r8, [rbp + 0x130]
mov rdx, rax
lea rcx, [rbp + 0xf0]
call fcn.140001030
nop
lea r8, str.ant_javafx.jar_
mov rdx, rax
lea rcx, [rbp + 0x50]
call fcn.140001070
nop
lea r8, str.__com.sun.javafx.tools.packager.Main
mov rdx, rax
lea rcx, [rbp + 0x90]
call fcn.140001070
nop
mov r9, rsi
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.140001910
nop
cmp qword [rbp + 0xa8], 0x10
jb 0x140003183
mov rcx, qword [rbp + 0x90]
call fcn.1400037cc
mov qword [rbp + 0xa8], 0xf
mov qword [rbp + 0xa0], r15
mov byte [rbp + 0x90], 0
cmp qword [rbp + 0x68], 0x10
jb 0x1400031ac
mov rcx, qword [rbp + 0x50]
call fcn.1400037cc
mov qword [rbp + 0x68], 0xf
mov qword [rbp + 0x60], r15
mov byte [rbp + 0x50], 0
cmp qword [rbp + 0x108], 0x10
jb 0x1400031d2
mov rcx, qword [rbp + 0xf0]
call fcn.1400037cc
mov qword [rbp + 0x108], 0xf
mov qword [rbp + 0x100], r15
mov byte [rbp + 0xf0], 0
cmp qword [rbp + 0xc8], 0x10
jb 0x140003201
mov rcx, qword [rbp + 0xb0]
call fcn.1400037cc
mov qword [rbp + 0xc8], 0xf
mov qword [rbp + 0xc0], r15
mov byte [rbp + 0xb0], 0
cmp qword [rbp + 0x168], 0x10
jb 0x140003230
mov rcx, qword [rbp + 0x150]
call fcn.1400037cc
mov rdi, r14
cmp r14, r12
jge 0x140003376
nop dword [rax]
lea r8, [0x1400136f4]
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x150]
call fcn.1400010c0
nop
mov r8, qword [r13 + rdi*8]
mov rdx, rax
lea rcx, [rbp + 0xf0]
call fcn.140001070
nop
lea r8, [0x14001368c]
mov rdx, rax
lea rcx, [rbp + 0xb0]
call fcn.140001070
mov rbx, rax
lea rax, [rbp + 0x30]
cmp rax, rbx
je 0x1400032f6
cmp qword [rbp + 0x48], 0x10
jb 0x14000329f
mov rcx, qword [rbp + 0x30]
call fcn.1400037cc
mov qword [rbp + 0x48], 0xf
mov qword [rbp + 0x40], r15
mov byte [rbp + 0x30], 0
cmp qword [rbx + 0x18], 0x10
jae 0x1400032cd
mov r8, qword [rbx + 0x10]
inc r8
je 0x1400032d7
mov rdx, rbx
lea rcx, [rbp + 0x30]
call fcn.140003e60
jmp 0x1400032d7
mov rax, qword [rbx]
mov qword [rbp + 0x30], rax
mov qword [rbx], r15
mov rax, qword [rbx + 0x10]
mov qword [rbp + 0x40], rax
mov rax, qword [rbx + 0x18]
mov qword [rbp + 0x48], rax
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], r15
mov byte [rbx], 0
cmp qword [rbp + 0xc8], 0x10
jb 0x14000330c
mov rcx, qword [rbp + 0xb0]
call fcn.1400037cc
mov qword [rbp + 0xc8], 0xf
mov qword [rbp + 0xc0], r15
mov byte [rbp + 0xb0], 0
cmp qword [rbp + 0x108], 0x10
jb 0x14000333b
mov rcx, qword [rbp + 0xf0]
call fcn.1400037cc
mov qword [rbp + 0x108], 0xf
mov qword [rbp + 0x100], r15
mov byte [rbp + 0xf0], 0
cmp qword [rbp + 0x168], 0x10
jb 0x14000336a
mov rcx, qword [rbp + 0x150]
call fcn.1400037cc
inc rdi
cmp rdi, r12
jl 0x140003240
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rbp - 0x80]
call fcn.140004d40
mov dword [rbp - 0x80], 0x68
lea rdx, [rbp + 0x30]
cmp qword [rbp + 0x48], 0x10
cmovae rdx, qword [rbp + 0x30]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x14000340f
or edx, 0xffffffff
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14d, dword [rsp + 0x50]
cmp qword [rbp + 0x48], 0x10
jb 0x14000341f
mov rcx, qword [rbp + 0x30]
call fcn.1400037cc
mov qword [rbp + 0x48], 0xf
mov qword [rbp + 0x40], r15
mov byte [rbp + 0x30], 0
cmp qword [rbp + 0x88], 0x10
jb 0x140003442
mov rcx, qword [rbp + 0x70]
call fcn.1400037cc
mov qword [rbp + 0x88], 0xf
mov qword [rbp + 0x80], r15
mov byte [rbp + 0x70], 0
cmp qword [rbp + 8], 0x10
jb 0x140003468
mov rcx, qword [rbp - 0x10]
call fcn.1400037cc
mov qword [rbp + 8], 0xf
mov qword [rbp], r15
mov byte [rbp - 0x10], 0
cmp qword [rbp + 0x148], 0x10
jb 0x14000348e
mov rcx, qword [rbp + 0x130]
call fcn.1400037cc
mov qword [rbp + 0x148], 0xf
mov qword [rbp + 0x140], r15
mov byte [rbp + 0x130], 0
cmp qword [rbp + 0xe8], 0x10
jb 0x1400034bd
mov rcx, qword [rbp + 0xd0]
call fcn.1400037cc
mov qword [rbp + 0xe8], 0xf
mov qword [rbp + 0xe0], r15
mov byte [rbp + 0xd0], 0
cmp qword [rbp + 0x28], 0x10
jb 0x1400034e6
mov rcx, qword [rbp + 0x10]
call fcn.1400037cc
mov eax, r14d
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.140004c30
lea r11, [rsp + 0x4d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret