joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140043fb0
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
push rbx
sub rsp, 0x480
mov rax, qword [0x1400cc010]
xor rax, rsp
mov qword [rsp + 0x470], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbx, rax
test rax, rax
je 0x1400440d3
xor edx, edx
mov qword [rsp + 0x490], rdi
mov r8d, 0x400
lea rcx, [rsp + 0x70]
call fcn.140062890
mov r8d, 0x400
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
lea r8, [0x1400b7160]
mov qword [rsp + 0x60], rax
lea rdx, str.ASUSSystemDiagnosis
mov qword [rsp + 0x58], rax
mov r9d, 0xf01ff
mov qword [rsp + 0x50], rax
mov rcx, rbx
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov rdi, rax
test rax, rax
jne 0x140044089
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x1400440cb
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x1400440b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x1400440cb
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
mov rdi, qword [rsp + 0x490]
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14005da30
add rsp, 0x480
pop rbx
ret

Function at 0x1400440f0
Capabilities:
Delete service
Stop service

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1400cc010]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbx, rax
test rax, rax
je 0x140044171
mov r8d, 0xf01ff
lea rdx, str.ASUSSystemDiagnosis
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
test rax, rax
je 0x140044171
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
jmp 0x140044173
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14005da30
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x140044190
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x1400cc010]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp ecx, 1
jle 0x14004429d
mov rdi, qword [rdx + 8]
lea rdx, [0x1400b7178]
mov rcx, rdi
call fcn.14008edd0
test eax, eax
je 0x1400441e2
lea rdx, str._install
mov rcx, rdi
call fcn.14008edd0
test eax, eax
jne 0x1400441f9
call fcn.140043fb0
test al, al
jne 0x140044392
mov eax, 0xffffffff
jmp 0x140044394
xor ebx, ebx
lea rdx, [0x1400b7198]
mov ecx, ebx
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdi + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x14004422d
cmp rcx, 8
jne 0x140044210
call fcn.1400440f0
jmp 0x140044392
lea rcx, str._remove
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdi + rbx]
inc rbx
cmp al, byte [rcx + rbx - 1]
jne 0x14004425d
cmp rbx, 8
jne 0x140044240
call fcn.1400440f0
jmp 0x140044392
lea rdx, [0x1400b71a8]
mov rcx, rdi
call fcn.14008edd0
test eax, eax
je 0x140044287
lea rdx, str._console
mov rcx, rdi
call fcn.14008edd0
test eax, eax
jne 0x140044392
lea rcx, str._AS_HW_Test_RPC_Server_Is_Running..._n
call fcn.140043960
call fcn.14002c810
jmp 0x140044392
xor ebx, ebx
mov qword [rsp + 0xa0], rbp
xor edx, edx
mov dword [rsp + 0x24], ebx
xor ecx, ecx
mov dword [rsp + 0x3c], ebx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
lea rbp, str.ASUSSystemDiagnosis
mov rdi, rax
test rax, rax
je 0x140044362
mov r8d, 0xf003f
mov qword [rsp + 0xa8], rsi
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rsi, rax
test rax, rax
je 0x14004435a
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rbx
lea r8, [rsp + 0x20]
mov qword [rsp + 0x40], rax
lea edx, [rbx + 2]
mov dword [rsp + 0x20], 0x15180
mov rcx, rsi
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x50], 1
mov qword [rsp + 0x58], 1
mov dword [rsp + 0x38], 3
mov qword [rsp + 0x30], rbx
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
test eax, eax
je 0x14004435a
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0xa8]
xor eax, eax
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x78], rax
lea rax, [0x140043e90]
mov qword [rsp + 0x68], rax
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
mov rbp, qword [rsp + 0xa0]
xor eax, eax
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14005da30
mov rbx, qword [rsp + 0xb0]
add rsp, 0x90
pop rdi
ret
Function at 0x14005b2e0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x60
mov qword [rax - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov rbp, rdx
mov rsi, rcx
call fcn.14005bbe0
test rbp, rbp
je 0x14005b476
mov qword [rsp + 0x20], rsi
lea r9, [0x140098d00]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x140098cd0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x14005b476
mov ecx, SafeArrayPutElement
call fcn.14005da5c
mov rbx, rax
mov qword [rsp + 0x88], rax
xor edi, edi
test rax, rax
je 0x14005b37d
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rdi
mov dword [rbx + 0x10], 1
mov rcx, rbp
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
je 0x14005b4a0
jmp 0x14005b380
mov rbx, rdi
mov qword [rsp + 0x88], rbx
test rbx, rbx
je 0x14005b495
mov rcx, qword [rsi]
lea r14, [rsi + 8]
mov rax, qword [rcx]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbx]
call qword [rax + SafeArrayPutElement]
mov ebp, eax
mov ecx, 0xffffffff
lock xadd dword [rbx + 0x10], ecx
cmp ecx, 1
jne 0x14005b400
mov rcx, qword [rbx]
test rcx, rcx
je 0x14005b3e1
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], rdi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14005b3f3
call fcn.14005da54
mov qword [rbx + 8], rdi
mov edx, SafeArrayPutElement
mov rcx, rbx
call fcn.14005da54
test ebp, ebp
js 0x14005b476
mov dword [rsp + 0x38], edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xa]
mov rcx, qword [r14]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x14005b476
lea rbx, [rsi + 0x28]
mov qword [rsp + 0x20], rbx
lea r9, [0x140098ce0]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x140098cf0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x14005b476
mov rcx, qword [rbx]
mov rax, qword [rcx]
lea r8, [rsi + 0x30]
lea rdx, [0x140098d10]
call qword [rax]
test eax, eax
js 0x14005b476
mov al, 1
jmp 0x14005b480
mov rcx, rsi
call fcn.14005bbe0
xor al, al
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov ecx, 0x8007000e
call fcn.140061820
nop
mov ecx, 0x8007000e
call fcn.140061820
int3
Function at 0x14005bed0
Capabilities:
Reference wmi statements

Disassembly:
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
mov qword [rcx], 0
mov ecx, 0x48
call fcn.14005da5c
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rcx
mov qword [rax + 0x20], rcx
mov qword [rax + 0x28], rcx
mov qword [rax + 0x30], rcx
mov qword [rax + 0x38], rcx
mov qword [rax + 0x40], rcx
mov rcx, rax
call fcn.14005b210
nop
mov qword [rbx], rax
lea rdx, str.ROOTcimv2
mov rcx, rax
call fcn.14005b2e0
lea rdx, str.SELECT__FROM_Win32_DiskDrive
mov rcx, qword [rbx]
call fcn.14005b4b0
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x14005cbe0
Capabilities:
Reference wmi statements

Disassembly:
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
mov qword [rcx], 0
mov ecx, 0x48
call fcn.14005da5c
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rcx
mov qword [rax + 0x20], rcx
mov qword [rax + 0x28], rcx
mov qword [rax + 0x30], rcx
mov qword [rax + 0x38], rcx
mov qword [rax + 0x40], rcx
mov rcx, rax
call fcn.14005b210
nop
mov qword [rbx], rax
lea rdx, str.ROOTcimv2
mov rcx, rax
call fcn.14005b2e0
lea rdx, str.SELECT__FROM_Win32_Battery
mov rcx, qword [rbx]
call fcn.14005b4b0
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x14005d220
Capabilities:
Reference wmi statements

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x80
mov qword [rax - 0x68], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400cc010]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov ebx, edx
mov rdi, rcx
xor esi, esi
mov qword [rcx], rsi
lea ecx, [rsi + 0x48]
call fcn.14005da5c
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rcx
mov qword [rax + 0x20], rcx
mov qword [rax + 0x28], rcx
mov qword [rax + 0x30], rcx
mov qword [rax + 0x38], rcx
mov qword [rax + 0x40], rcx
mov rcx, rax
call fcn.14005b210
nop
mov qword [rdi], rax
lea rdx, str.ROOTcimv2
mov rcx, rax
call fcn.14005b2e0
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov r9d, ebx
lea r8, [0x1400b9034]
lea edx, [rsi + 0x10]
lea rcx, [rsp + 0x50]
call fcn.140005150
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], si
lea r8d, [rsi + 0x1c]
lea rdx, str.SELECT__FROM_Win32_Process
lea rcx, [rsp + 0x30]
call fcn.140001a40
nop
lea r8d, [rsi + 0x10]
lea rdx, str.WHERE_Handle___
lea rcx, [rsp + 0x30]
call fcn.140002d30
lea rax, [rsp + 0x50]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14005d320
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140002d30
mov r8d, 1
lea rdx, [0x1400b8870]
lea rcx, [rsp + 0x30]
call fcn.140002d30
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
mov rcx, qword [rdi]
call fcn.14005b4b0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14005d3a9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005d3a4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005d3ce
call fcn.14005da54
mov rax, rdi
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14005da30
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140064eec
int3
Function at 0x14005d710
Capabilities:
Reference wmi statements

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x60
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400cc010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rdx
mov rdi, rcx
xor esi, esi
mov qword [rcx], rsi
lea ecx, [rsi + 0x48]
call fcn.14005da5c
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rcx
mov qword [rax + 0x20], rcx
mov qword [rax + 0x28], rcx
mov qword [rax + 0x30], rcx
mov qword [rax + 0x38], rcx
mov qword [rax + 0x40], rcx
mov rcx, rax
call fcn.14005b210
nop
mov qword [rdi], rax
lea rdx, str.ROOTcimv2
mov rcx, rax
call fcn.14005b2e0
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], si
lea r8d, [rsi + 0x30]
lea rdx, str.SELECT__FROM_Win32_NetworkAdapterConfiguration
lea rcx, [rsp + 0x30]
call fcn.140001a40
nop
lea r8d, [rsi + 0x13]
lea rdx, str.WHERE_SettingID___
lea rcx, [rsp + 0x30]
call fcn.140002d30
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14005d7da
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rsp + 0x30]
call fcn.140002d30
mov r8d, 1
lea rdx, [0x1400b8870]
lea rcx, [rsp + 0x30]
call fcn.140002d30
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
mov rcx, qword [rdi]
call fcn.14005b4b0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14005d857
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005d852
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005d879
call fcn.14005da54
mov rax, rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14005da30
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140064eec
int3

Function at 0x140075d80
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140075da0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400690c0
or eax, 0xffffffff
jmp 0x140075da2
xor eax, eax
add rsp, 0x28
ret

Function at 0x140078cd4
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140078cf4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400690c0
or eax, 0xffffffff
jmp 0x140078cf6
xor eax, eax
add rsp, 0x28
ret
Function at 0x140080008
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x14007ffe5
call fcn.140069130
mov dword [rax], SafeArrayPutElement
call fcn.140064ecc
or eax, 0xffffffff
jmp 0x140080002
sub dword [rcx + 0x10], 1
jns 0x14007fff4
add rsp, 0x28
jmp 0x14008a608
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x14007ffc4
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rdi, rcx
test rcx, rcx
jne 0x14008a63a
call fcn.140069130
mov dword [rax], SafeArrayPutElement
call fcn.140064ecc
jmp 0x14008a756
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14008a756
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14008a756
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14008a669
lock or dword [rcx + 0x14], 0x10
jmp 0x14008a756
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14008a67d
call fcn.14008a77c
mov rbx, qword [rdi + 8]
mov rcx, rdi
mov qword [rdi], rbx
call fcn.14007d978
mov r8d, dword [rdi + 0x20]
mov ecx, eax
mov rdx, rbx
call fcn.14008dfc4
mov dword [rdi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14008a744
mov eax, dword [rdi + 0x14]
or esi, 0xffffffff
test al, 6
jne 0x14008a70f
mov rcx, rdi
call fcn.14007d978
cmp eax, esi
je 0x14008a6fa
mov rcx, rdi
call fcn.14007d978
cmp eax, 0xfffffffe
je 0x14008a6fa
mov rcx, rdi
call fcn.14007d978
movsxd rbx, eax
lea r14, [0x1400cf430]
mov rcx, rdi
sar rbx, 6
call fcn.14007d978
mov rdx, qword [r14 + rbx*8]
and eax, 0x3f
shl rax, 6
add rdx, rax
jmp 0x14008a701
lea rdx, [0x1400cc430]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14008a70f
lock or dword [rdi + 0x14], 0x20
cmp dword [rdi + 0x20], 0x200
jne 0x14008a733
mov eax, dword [rdi + 0x14]
shr eax, 6
test al, 1
je 0x14008a733
mov eax, dword [rdi + 0x14]
shr eax, 8
test al, 1
jne 0x14008a733
mov dword [rdi + 0x20], 0x1000
add dword [rdi + 0x10], esi
mov rax, qword [rdi]
movzx esi, byte [rax]
inc rax
mov qword [rdi], rax
jmp 0x14008a759
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rdi + 0x14], eax
and dword [rdi + 0x10], 0
or esi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14008a774
Capabilities:
Read file on windows

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, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x14008a49a
call fcn.140069130
mov dword [rax], SafeArrayPutElement
call fcn.140064ecc
jmp 0x14008a5e5
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14008a5e5
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14008a5e5
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14008a4c9
lock or dword [rcx + 0x14], 0x10
jmp 0x14008a5e5
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14008a4dd
call fcn.14008a77c
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x14008a4ed
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x14008a4f0
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.14007d978
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.14008dfc4
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x14008a5d3
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x14008a581
mov rcx, rbx
call fcn.14007d978
cmp eax, 0xffffffff
je 0x14008a56c
mov rcx, rbx
call fcn.14007d978
cmp eax, 0xfffffffe
je 0x14008a56c
mov rcx, rbx
call fcn.14007d978
movsxd rdi, eax
lea r14, [0x1400cf430]
mov rcx, rbx
sar rdi, 6
call fcn.14007d978
mov rcx, qword [r14 + rdi*8]
and eax, 0x3f
shl rax, 6
lea rdx, [rax + rcx]
jmp 0x14008a573
lea rdx, [0x1400cc430]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14008a581
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x14008a5a5
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x14008a5a5
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x14008a5a5
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x14008a5c3
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x14008a5ce
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x14008a5ea
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x14008a464
Function at 0x1800011e0
Capabilities:
Enumerate processes

Disassembly:
push rsi
sub rsp, 0x270
mov rax, qword [0x180006040]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rsi, rdx
test rdx, rdx
jne 0x18000120a
xor eax, eax
jmp 0x1800012a5
mov qword [rsp + 0x280], rbx
xor edx, edx
mov qword [rsp + 0x290], rbp
mov ecx, 2
mov qword [rsp + 0x298], rdi
xor edi, edi
mov ebx, edi
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x180001282
mov rdx, rsi
lea rcx, [rsp + 0x4c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x180001270
mov eax, dword [rsp + 0x3c]
cmp eax, ebx
jbe 0x180001270
mov edi, dword [rsp + 0x28]
mov ebx, eax
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x180001250
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x290]
mov eax, edi
mov rdi, qword [rsp + 0x298]
mov rbx, qword [rsp + 0x280]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1800023e0
add rsp, 0x270
pop rsi
ret
Function at 0x180001dd0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x68
mov rax, qword [0x180006040]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp edx, 1
jne 0x180001e62
mov edx, 0x1f4
mov ecx, 0x190
call qword [sym.imp.KERNEL32.dll_Beep]
mov ecx, 8
call fcn.180002434
lea rcx, [0x180001dc0]
mov qword [rax], rcx
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1800023a0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x180001e85
cmp dword [rsp + 0x38], 0
je 0x180001e79
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x180001e79
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800023e0
add rsp, 0x68
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x38], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x14003cf40
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14003cf68
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14003cf68
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140001008
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
lea rcx, str._JAVA_LAUNCHER_DEBUG
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140001069
lea rcx, str.Windows_original_main_args:_n
call fcn.14000114c
xor ebx, ebx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
cmp dword [rax], ebx
jle 0x140001069
xor edi, edi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argv]
mov edx, ebx
lea rcx, str.wwwd_args__d____s_n
mov r8, qword [rax]
mov r8, qword [rdi + r8]
call fcn.14000114c
inc ebx
lea rdi, [rdi + 8]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
cmp ebx, dword [rax]
jl 0x14000103e
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rcx, rax
call sub.jli.dll_JLI_CmdToArgs
call sub.jli.dll_JLI_GetStdArgc
movsxd rdi, eax
lea ecx, [rdi + 1]
movsxd rcx, ecx
shl rcx, 3
call sub.jli.dll_JLI_MemAlloc
mov rbx, rax
call sub.jli.dll_JLI_GetStdArgs
xor r9d, r9d
test edi, edi
jle 0x1400010b5
xor edx, edx
mov r9d, edi
mov rcx, qword [rax]
lea rax, [rax + 0x10]
mov qword [rbx + rdx*8], rcx
inc rdx
cmp rdx, rdi
jl 0x1400010a2
mov rcx, qword [str.java]
movsxd rax, r9d
and qword [rbx + rax*8], 0
test rcx, rcx
jne 0x1400010cc
mov rcx, qword [rbx]
mov rax, qword [section..data]
test rax, rax
jne 0x1400010db
mov rax, qword [rbx]
mov dword [rsp + 0x68], 1
lea r9, str._J_ms8m
mov byte [rsp + 0x60], 0
mov r8d, 2
mov byte [rsp + 0x58], 1
mov rdx, rbx
mov byte [rsp + 0x50], 1
mov qword [rsp + 0x48], rcx
mov ecx, edi
mov qword [rsp + 0x40], rax
lea rax, [0x140002314]
mov qword [rsp + 0x38], rax
lea rax, [0x140002318]
mov qword [rsp + 0x30], rax
lea rax, str._lib_tools.jar
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r8d
call sub.jli.dll_JLI_Launch
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret

Function at 0x1400018f8
Capabilities:
Parse pe header

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