joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e7f8c
Capabilities:
Clear file content

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 r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400e5280
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400e5280
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400e80dc
cmp rax, 0xffffffffffffffff
je 0x1400e80dc
xor edi, edi
test rbp, rbp
jle 0x1400e8087
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400de318
mov rbx, rax
test rax, rax
jne 0x1400e8014
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400e807d
mov edx, 0x8000
mov ecx, r14d
call fcn.1400cecfc
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400df580
cmp eax, 0xffffffff
je 0x1400e805d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400e8024
mov edx, r15d
mov ecx, r14d
call fcn.1400cecfc
jmp 0x1400e807d
cmp byte [rsi + 0x38], dil
je 0x1400e8074
cmp dword [rsi + 0x34], 5
jne 0x1400e8074
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.Cabinet.dll_FCIFlushCabinet
cmp byte [rsi + 0x30], dil
je 0x1400e807d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400dbde4
jmp 0x1400e80f0
jns 0x1400e80f0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400e5280
cmp rax, 0xffffffffffffffff
jne 0x1400e80a8
cmp byte [rsi + 0x30], dil
je 0x1400e80f0
mov edi, dword [rsi + 0x2c]
jmp 0x1400e80f0
mov ecx, r14d
call fcn.1400e0140
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400e80f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.Cabinet.dll_FCIFlushCabinet
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.Cabinet.dll_FCIFlushCabinet
jmp 0x1400e80f0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400e80e9
mov eax, dword [rsi + 0x2c]
jmp 0x1400e80ee
mov eax, Ordinal_26
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400e5280
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1400e8e30
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400e8e58
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400e8e58
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001130
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
mov r9, rdx
mov r8d, ecx
call fcn.140001ae0
test eax, eax
jne 0x14000134c
mov rax, qword [0x1400097f8]
mov qword [rsp + 0x30], rbx
test rax, rax
jne 0x140001172
mov rcx, qword [0x1400098c8]
lea rdx, [0x140006d50]
call fcn.1400037f0
mov qword [0x1400097f8], rax
lea rcx, [0x140006660]
mov qword [rsp + 0x20], rdi
call rax
mov rbx, rax
test rax, rax
je 0x14000127a
mov rax, qword [0x1400097d0]
mov qword [rsp + 0x38], rsi
test rax, rax
jne 0x1400011b7
mov rcx, qword [0x1400098c8]
lea rdx, [0x140006ed8]
call fcn.1400037f0
mov qword [0x1400097d0], rax
xor r9d, r9d
lea rcx, str._MessageBox
xor r8d, r8d
xor edx, edx
call rax
mov rsi, qword [str._MessageBox]
mov rdi, rax
mov rax, qword [0x140009920]
test rax, rax
jne 0x1400011f8
mov rcx, qword [0x1400098c8]
lea rdx, [0x140006ec0]
call fcn.1400037f0
mov qword [0x140009920], rax
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call rax
mov rax, qword [0x1400097d0]
test rax, rax
jne 0x140001229
mov rcx, qword [0x1400098c8]
lea rdx, [0x140006ed8]
call fcn.1400037f0
mov qword [0x1400097d0], rax
xor r9d, r9d
lea rcx, str._SHGetSpecialFolderPath
xor r8d, r8d
xor edx, edx
call rax
mov rsi, qword [str._SHGetSpecialFolderPath]
mov rdi, rax
mov rax, qword [0x140009920]
test rax, rax
jne 0x14000126a
mov rcx, qword [0x1400098c8]
lea rdx, [0x140006ec0]
call fcn.1400037f0
mov qword [0x140009920], rax
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call rax
mov rsi, qword [rsp + 0x38]
call fcn.1400013c0
lea rcx, str.PYTHONINSPECT
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140001318
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdi, rax
mov rax, qword [0x140009878]
test rax, rax
jne 0x1400012c8
mov rcx, qword [0x1400098c8]
lea rdx, [0x1400069f8]
call fcn.1400037f0
mov qword [0x140009878], rax
lea rdx, str._stdin_
mov rcx, rdi
call rax
test eax, eax
je 0x140001318
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdi, rax
mov rax, qword [0x1400099b0]
test rax, rax
jne 0x140001309
mov rcx, qword [0x1400098c8]
lea rdx, [0x140006a10]
call fcn.1400037f0
mov qword [0x1400099b0], rax
xor r8d, r8d
lea rdx, str._stdin_
mov rcx, rdi
call rax
mov rax, qword [0x1400097b8]
mov rdi, qword [rsp + 0x20]
test rax, rax
jne 0x140001343
mov rcx, qword [0x1400098c8]
lea rdx, [0x140006a98]
call fcn.1400037f0
mov qword [0x1400097b8], rax
call rax
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
Function at 0x1800049f0
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x20], 0
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax]
cmp eax, 0xe
jne 0x180004a73
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 8]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
mov r9d, dword [rsp + 0x24]
lea r8, [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x38]
call fcn.180004ae0
mov dword [rsp + 0x20], eax
mov ecx, dword [rsp + 0x24]
mov rax, qword [rsp + 0x58]
mov qword [rax + 0x38], rcx
mov rcx, qword [rsp + 0x58]
mov eax, dword [rsp + 0x20]
mov dword [rcx + 0x30], eax
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov eax, dword [rsp + 0x20]
add rsp, 0x48
ret

Function at 0x18002af80
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x50]
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
add rsp, 0x38
ret

Function at 0x18002b390
Capabilities:
Create thread

Disassembly:
sub rsp, 0x58
movzx eax, byte [0x1800b3e84]
cmp eax, 1
jne 0x18002b3d4
mov qword [rsp + 0x30], 0
lea rax, [0x18002b420]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1fffff
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
add rsp, 0x58
ret
Function at 0x18029ffc6
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
rcr r10d, cl
mov r10b, 0x2c
mov qword [rsp + 0x10], rdi
cmp bp, cx
movsx r9w, sil
xor edi, edi
movzx ebx, r8b
movsx r10, ax
mov r11, rcx
setl r9b
mov r8, rdi
movsxd r10, r11d
movzx r9w, dil
nop
movsx r10w, spl
not r9b
movzx r9d, byte [r11]
mov r10, 0x379c74c1
movsx r10d, r11w
jmp 0x1802a0017
movzx r10d, byte [rdx]
inc r11
inc rdx
test r13w, 0x59ea
test bl, bl
jmp 0x1802a002e
je 0x1802a0048
mov ecx, r8d
stc
mov eax, 0x51637a6c
rol eax, cl
add al, r8b
xor r9b, al
inc r8
test r9b, r9b
jmp 0x1802a0050
je 0x1802a0064
cmp r9b, r10b
jmp 0x1802a005e
je 0x1802a0003
cmp r9b, r10b
jmp 0x1802a006c
jae 0x1802a008d
or eax, 0xffffffff
mov rbx, qword [rsp + 8]
mov di, 0x6a6f
movsx rdi, r13w
mov rdi, qword [rsp + 0x10]
jmp 0x1802a008c
ret
mov rbx, qword [rsp + 8]
seta dil
mov eax, edi
setbe dil
not dil
mov rdi, qword [rsp + 0x10]
jmp 0x1802a00a9
ret
Function at 0x140001b24
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1000036f8]
lea rdx, [0x100003700]
call qword [sym.imp.API_MS_WIN_Service_Core_L1_1_0.dll_SetServiceStatus]
test eax, eax
jne 0x1000012e6
mov dword [0x100003704], 1
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
cmp qword [0x1000036f8], 0
mov dword [0x10000370c], eax
je 0x1000012dd
call fcn.10000129c
xor ecx, ecx
call qword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_ExitProcess]
inc dword [0x100003714]
add rsp, 0x28
ret

Function at 0x1000014b0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r12
push r13
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor r12d, r12d
xor eax, eax
lock cmpxchg qword [0x100003740], rdi
je 0x1000014fe
cmp rax, rdi
jne 0x1000014f1
mov edi, 1
mov r12d, edi
jmp 0x100001503
mov ecx, 0x3e8
call qword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_Sleep]
jmp 0x1000014d5
mov edi, 1
mov eax, dword [0x100003738]
cmp eax, edi
jne 0x100001519
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x100001576
mov eax, dword [0x100003738]
test eax, eax
jne 0x100001570
mov dword [0x100003738], edi
lea r13, [0x1000011a0]
lea rsi, [0x100001188]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
cmp rsi, r13
jae 0x100001562
test eax, eax
jne 0x100001562
mov rcx, qword [rsi]
test rcx, rcx
je 0x100001557
call rcx
mov dword [rsp + 0x20], eax
add rsi, 8
mov qword [rsp + 0x28], rsi
jmp 0x100001540
test eax, eax
je 0x100001576
mov eax, 0xff
jmp 0x100001648
mov dword [0x100003164], edi
mov eax, dword [0x100003738]
cmp eax, edi
jne 0x10000159d
lea rdx, [0x100001180]
lea rcx, [0x100001170]
call sub.msvcrt.dll__initterm
mov dword [0x100003738], 2
test r12d, r12d
jne 0x1000015ab
xor eax, eax
xchg qword [0x100003740], rax
cmp qword [0x100003748], 0
je 0x1000015d4
lea rcx, [0x100003748]
call fcn.10000189c
test eax, eax
je 0x1000015d4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100003748]
mov r8, qword [0x100003148]
mov rdx, qword [0x100003150]
mov ecx, dword [0x100003140]
call fcn.100001440
mov dword [0x100003160], eax
cmp dword [0x100003144], 0
jne 0x100001604
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x100003164], 0
jne 0x100001619
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x100003160]
jmp 0x100001648
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
add rsp, 0x30
pop r13
ret
sub rsp, 0x28
call fcn.100133000
add rsp, 0x28
jmp 0x1000014b0

Function at 0x100001908
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100001955
cmp rcx, 0xffffffffffffffff
je 0x100001955
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10000194d
cmp dword [rcx + 0x3c], edx
jl 0x10000194d
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10000194d
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x100001955
mov rax, rdx
add rsp, 0x18
ret
Function at 0x1400034d0
Capabilities:
Execute command

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x14000c010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
mov qword [rsp + 0x48], rcx
mov rbp, qword [rcx + 0x10]
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, rbp
cmp rax, 0x10
jb 0x1400036c5
mov r15, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14000352a
mov r15, qword [rbx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
lea r14, [rbp + 0x10]
mov edi, 0xf
lea rsi, [rsp + 0x20]
cmp r14, rdi
jbe 0x1400035c8
mov rdi, r14
or rdi, 0xf
cmp rdi, rcx
jbe 0x14000355f
mov rdi, rcx
jmp 0x14000356b
mov eax, 0x16
cmp rdi, rax
cmovb rdi, rax
mov rcx, rdi
add rcx, 1
mov rax, 0xffffffffffffffff
cmovb rcx, rax
cmp rcx, 0x1000
jb 0x1400035b2
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400036bf
mov rcx, rax
call fcn.140006150
test rax, rax
je 0x14000363b
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x1400035c3
test rcx, rcx
je 0x1400035c1
call fcn.140006150
mov rsi, rax
jmp 0x1400035c3
xor esi, esi
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], rdi
movups xmm0, xmmword [str.taskkill__f__im]
movups xmmword [rsi], xmm0
lea rcx, [rsi + 0x10]
mov r8, rbp
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + r14], 0
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 0x10
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x140003648
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003642
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003642
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400064b4
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14000367e
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140003679
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400036b8
mov rcx, r8
call fcn.1400064b4
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140006130
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1400013c0
nop
call fcn.140001460
int3
Function at 0x14000565c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400056e0
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400083b0]
cmp byte [rcx + rax], 0
je 0x1400056e0
dec r8
sub rdx, 1
jne 0x1400056c6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140005dfc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.140005770
mov ebx, eax
test eax, eax
jne 0x140005e2c
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x140005e8f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140005e86
test al, 0x10
je 0x140005e86
bt eax, 0xa
jae 0x140005e7f
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.140005ea0
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x140005e7b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140005e7b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
test edi, edi
jne 0x140005e86
and dword [rsp + 0x3c], 0
jmp 0x140005e8b
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140006cb4
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov dl, 1
mov cl, dl
call sub.jli.dll_JLI_InitArgProcessing
lea rcx, str._JAVA_LAUNCHER_DEBUG
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140001072
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 0x140001072
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 [r8 + rdi]
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 0x140001047
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 0x1400010be
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 0x1400010ab
mov rcx, qword [str.java]
movsxd rax, r9d
and qword [rbx + rax*8], 0
test rcx, rcx
jne 0x1400010d5
mov rcx, qword [rbx]
mov rax, qword [section..data]
test rax, rax
jne 0x1400010e4
mov rax, qword [rbx]
and dword [rsp + 0x68], 0
lea r9, str._J_ms8m
mov byte [rsp + 0x60], 0
mov r8d, 3
mov byte [rsp + 0x58], 0
mov rdx, rbx
mov byte [rsp + 0x50], 1
mov qword [rsp + 0x48], rcx
mov ecx, edi
mov qword [rsp + 0x40], rax
lea rax, [0x1400022dc]
mov qword [rsp + 0x38], rax
lea rax, [0x1400022e0]
mov qword [rsp + 0x30], rax
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
call sub.jli.dll_JLI_Launch
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x140003ee0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003f14
cmp word [rcx], 0x5a4d
jne 0x140003f14
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003f14
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003f14
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003e20
test eax, eax
jne 0x140003f30
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140003e90
test rax, rax
je 0x140003f25
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.1400046d6
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x1400045e0
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140004580
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140004a34
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x1409ad998]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x1409ad994]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140004a82
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140004a7a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140004b69
inc ebx
add rax, 0x28
jmp 0x140004a5a
mov rcx, r12
call fcn.140005261
mov rbp, rax
test rax, rax
jne 0x140004aa1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1400049d0
movsxd rbx, ebx
mov rax, qword [0x1409ad998]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.14000530f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1409ad998]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140004b03
mov rax, qword [0x1409ad998]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400049d0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140004b63
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140004b63
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1409ad998]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140004b63
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400049d0
inc dword [0x1409ad994]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140004f90
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x1409ada00]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1409ad9e0]
test rbx, rbx
je 0x140004fdc
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140004fd6
test eax, eax
jne 0x140004fd6
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140004fae
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140005190
Capabilities:
Parse pe header

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

Function at 0x1400051b4
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x1400051ee
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x1400051e5
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400051f0
inc r8d
add rax, 0x28
jmp 0x1400051cc
xor eax, eax
ret

Function at 0x140005261
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1409a99f0]
mov r8, rcx
mov rcx, r9
call fcn.140005190
test eax, eax
je 0x14000528d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.1400051b4
xor eax, eax
add rsp, 0x28
ret