joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ecb8c
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.1400c6fe4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400ecc16
cmp byte [rbp - 0x21], r15b
je 0x1400ecc11
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400ecc4c
call fcn.1400db0e4
test eax, eax
jne 0x1400ecc38
cmp byte [rbp - 0x21], r15b
je 0x1400ecc30
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400ecc4c
cmp byte [rbp - 0x21], r15b
je 0x1400ecc49
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.1400d0570
test eax, eax
jne 0x1400eccec
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400c6fe4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400ecc8b
cmp byte [rbp - 0x21], r15b
je 0x1400eccc0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400eccc0
call fcn.1400db0e4
test eax, eax
jne 0x1400eccac
cmp byte [rbp - 0x21], r15b
je 0x1400ecca5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400eccc0
cmp byte [rbp - 0x21], r15b
je 0x1400eccbd
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.1400d0570
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400eccec
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400eccef
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400eccfd
mov rcx, rdi
call fcn.1400dade0
cmp byte [rbp + 0x3f], r15b
je 0x1400ecd0c
mov rcx, qword [rbp + 0x27]
call fcn.1400dade0
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 0x1400eda70
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.1400e0020
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400e0020
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400edbc0
cmp rax, 0xffffffffffffffff
je 0x1400edbc0
xor edi, edi
test rbp, rbp
jle 0x1400edb6b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400dad68
mov rbx, rax
test rax, rax
jne 0x1400edaf8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400edb61
mov edx, 0x8000
mov ecx, r14d
call fcn.1400d8634
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.1400dc618
cmp eax, 0xffffffff
je 0x1400edb41
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400edb08
mov edx, r15d
mov ecx, r14d
call fcn.1400d8634
jmp 0x1400edb61
cmp byte [rsi + 0x38], dil
je 0x1400edb58
cmp dword [rsi + 0x34], 5
jne 0x1400edb58
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400edb61
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400dade0
jmp 0x1400edbd4
jns 0x1400edbd4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400e0020
cmp rax, 0xffffffffffffffff
jne 0x1400edb8c
cmp byte [rsi + 0x30], dil
je 0x1400edbd4
mov edi, dword [rsi + 0x2c]
jmp 0x1400edbd4
mov ecx, r14d
call fcn.1400e6394
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400edbd4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400edbd4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400edbcd
mov eax, dword [rsi + 0x2c]
jmp 0x1400edbd2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400e0020
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 0x140146050
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14014605d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14014606d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140146055
lea eax, [rcx + 1]
jmp 0x14014607b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14014608e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140146074
sub eax, 3
jb 0x1401460ae
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1401460fd
sar eax, 1
movsxd rbp, eax
jb 0x1401460e4
jmp 0x1401460bc
add ebx, ebx
jne 0x1401460ba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1401460e4
inc ecx
add ebx, ebx
jne 0x1401460ca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1401460e4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1401460dd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1401460cc
add ecx, 2
jmp 0x1401460e9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140146012
jmp 0x14014605d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xc9a00
mov dl, 0x1a
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140146149
cmp rsi, rcx
jae 0x140146151
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140146130
cmp al, 0x8f
ja 0x140146130
cmp byte [rsi - 2], 0xf
je 0x140146136
sub al, 0xe8
cmp al, 1
ja 0x14014611a
cmp rsi, rcx
jae 0x140146151
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140146120
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140146151
lodsb al, byte [rsi]
jmp 0x140146130
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x140000]
mov eax, dword [rdi]
or eax, eax
je 0x1401461ba
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x149ff0]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14014615e
jns 0x140146193
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14014619d
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1401461b4
mov qword [rbx], rax
add rbx, 8
jmp 0x14014617e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1401461f4
cmp al, 0xef
ja 0x1401461e6
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1401461c6
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1401461d5
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x257]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140146248
sub rsp, 0xffffffffffffff80
jmp 0x1400c3aec
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140009800]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140009810]
mov dword [rax], 1
mov rax, qword [0x140009820]
mov dword [rax], 1
mov rax, qword [0x1400097a0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400097f0]
mov dword [0x14000c020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400098c0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400098a0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140009750]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140005b70
Capabilities:
Parse pe header

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

Function at 0x140005ba0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x140005bed
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140005be4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140005bef
add rax, 0x28
cmp rax, r9
jne 0x140005bd0
xor eax, eax
ret

Function at 0x140005bf0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140005c80
mov rdx, qword [0x1400097a0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x140005c6e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140005c6e
cmp word [rax + 0x18], 0x20b
jne 0x140005c6e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140005c80
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140005c59
add rbx, 0x28
cmp rbx, rdi
je 0x140005c80
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140005c50
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140005c90
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400097a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140005cb0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140005cb8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140005cb0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140005d0d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140005d04
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140005cb0
add rax, 0x28
cmp rax, r9
jne 0x140005cf0
xor eax, eax
ret

Function at 0x140005d10
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400097a0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140005d2f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140005d38
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140005d2f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140005d50
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400097a0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140005d70
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140005d78
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140005d70
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140005dc0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140005db7
test rcx, rcx
je 0x140005d70
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140005da8
xor eax, eax
ret

Function at 0x140005dd0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400097a0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140005def
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140005df8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140005e10
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400097a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140005e30
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140005e38
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140005e30
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140005e30
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140005e84
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140005e90
add rdx, 0x28
cmp r9, rdx
jne 0x140005e70
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140005ea0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1400097a0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140005ec2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140005ed0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140005ec2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140005ec2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140005ec2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140005f25
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140005f38
add rdx, 0x28
cmp rdx, r10
jne 0x140005f10
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140005f47
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140005f57
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140005f2e
test ecx, ecx
jg 0x140005f40
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x100405ee0
Capabilities:
Encode data using xor

Disassembly:
movabs dword [0x9da090ad99a895a0], eax
xchg esi, eax
nop
stosb byte [rdi], al
popfq
cmpsd dword [rsi], dword [rdi]
test eax, 0xa8a7a095
test eax, 0x66a39d98
insd dword [rdi], dx
invalid
Function at 0x14000b9fc
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140016950], eax
call fcn.14000b77c
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140016950], 0
jne case.default.0x14000ba52
mov ecx, 1
call fcn.14000b77c
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
add edx, dword [rax]
xchg eax, esp
add ebp, dword [rbp + 0x1003e087]
xchg eax, esp
add edx, dword [rax]
xchg eax, esp
add edx, dword [rax]
xchg eax, esp
add ebp, ebx
xchg eax, esp
int1
outsb dx, byte [rsi]
xchg eax, esp
add edx, dword [rax]
xchg eax, esp
add edx, dword [rax]
xchg eax, esp
add edx, dword [rax]
xchg dword [rsi + 0x35871003], edx
add edx, dword [rax]
invalid
Function at 0x140018700
Capabilities:
Set console window title

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov rdi, rdx
mov r14, rcx
xor esi, esi
lea rax, vtable.xmrig::ConsoleLog.0
mov qword [rcx], rax
mov qword [rcx + 8], rsi
mov qword [rcx + 0x10], rsi
lea ecx, [rsi + 1]
call fcn.14009f180
cmp eax, 0xe
je 0x140018741
cmp eax, 7
jne 0x14001876d
mov ecx, 0x158
call fcn.1400b5090
mov rbx, rax
mov qword [r14 + 8], rax
call fcn.14009f860
mov rcx, rax
xor r9d, r9d
lea r8d, [r9 + 1]
mov rdx, rbx
call fcn.1400a3240
test eax, eax
jns 0x140018779
mov byte [0x140110d80], sil
jmp 0x1400188f1
xor edx, edx
mov rcx, qword [r14 + 8]
call fcn.1400a3750
mov rax, qword [r14 + 8]
mov qword [r14 + 0x10], rax
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400187ce
mov dword [rsp + 0x40], esi
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x1400187ce
mov edx, dword [rsp + 0x40]
and edx, 0xffffffbf
mov dword [rsp + 0x40], edx
bts edx, 7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
cmp byte [rdi], sil
je 0x1400188f1
cmp qword [rdi + 8], rsi
jne 0x14001880f
mov ecx, select
call fcn.1400b5470
mov rsi, rax
movsd xmm0, qword [str.Athing_7.18.1]
movsd qword [rax], xmm0
mov eax, dword [0x1400fc1d0]
mov dword [rsi + 8], eax
movzx eax, word [0x1400fc1d4]
mov word [rsi + 0xc], ax
jmp 0x1400188e0
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], rsi
mov ecx, 0x40
call fcn.1400b5090
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rsp + 0x20], rax
mov rdi, qword [rdi + 8]
test rdi, rdi
je 0x14001887a
mov rbx, 0xffffffffffffffff
nop dword [rax]
lea rbx, [rbx + 1]
cmp byte [rdi + rbx], 0
jne 0x140018850
lea rcx, [rbx + 1]
call fcn.1400b5470
mov rsi, rax
lea r8, [rbx + 1]
mov rdx, rdi
mov rcx, rax
call fcn.1400b7480
mov rax, qword [rsp + 0x20]
mov rdi, qword [rax + 8]
cmp byte [rdi + 0x19], 0
jne 0x1400188d3
nop dword [rax]
nop dword [rax + rax]
mov r8, qword [rdi + 0x10]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x20]
call fcn.140018d90
mov rbx, rdi
mov rdi, qword [rdi]
mov rcx, qword [rbx + 0x30]
call fcn.1400b50cc
mov rcx, qword [rbx + 0x20]
call fcn.1400b50cc
mov edx, 0x40
mov rcx, rbx
call fcn.1400b50cc
cmp byte [rdi + 0x19], 0
je 0x140018890
mov rax, qword [rsp + 0x20]
mov edx, 0x40
mov rcx, rax
call fcn.1400b50cc
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov rcx, rsi
call fcn.1400b50cc
mov rax, r14
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x14004b700
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x14004b731
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x14004b7ab
mov rdi, r14
mov rcx, rbx
call fcn.1400153b0
test rax, rax
jle 0x14004b783
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.1400b7480
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14004b79b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x14004b7a3
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x14004b745
sub r14, rdi
jmp 0x14004b88f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x14004b7c2
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14004b7c4
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14004b7f6
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1400b7480
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14004b88c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14004b831
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x14004b86d
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1400c5630
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14004b88c
cmp rbp, rax
ja 0x14004b840
test rbp, rbp
je 0x14004b88c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1400c5630
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400541a0
Capabilities:
Allocate or change rwx memory

Disassembly:
test r9, r9
je 0x140054256
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
xor r12d, r12d
mov qword [rsp + 0x40], rbx
mov edi, r12d
mov rbp, r9
mov r14, r8
mov rsi, rdx
mov r15, rcx
nop dword [rax]
mov edx, 0x1000
mov ecx, 0x1c0
call fcn.1400c5ab8
xor ecx, ecx
mov edx, 0x4000
mov r8d, 0x3000
mov rbx, rax
mov qword [rax + 0xe0], rsi
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [rbx + 0x120], r12d
add rsi, r14
mov qword [rbx + 0x118], rax
mov qword [rbx + 0x128], 0xffffffffffffffff
mov qword [r15 + rdi*8], rbx
inc rdi
cmp rdi, rbp
jb 0x1400541e0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14009e1e0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x10
mov r11, rcx
movaps xmmword [rsp], xmm6
movdqu xmm6, xmmword [rdx]
lea rdi, str.cw
pshufd xmm0, xmm6, 0x55
mov rbx, rdx
movd eax, xmm0
movdqu xmm5, xmmword [r11]
pshufd xmm0, xmm6, 0xff
mov r9d, eax
shr rax, 0x10
movzx r8d, al
mov eax, r9d
shr rax, 0x18
pslldq xmm5, 4
movdqa xmm4, xmm5
pslldq xmm5, 4
movzx r10d, byte [r8 + rdi]
movzx eax, byte [rax + rdi]
xorps xmm4, xmmword [r11]
shl eax, 8
or r10d, eax
mov eax, r9d
shr rax, 8
movzx ecx, al
shl r10d, 8
movzx eax, byte [rcx + rdi]
or r10d, eax
movzx eax, r9b
shl r10d, 8
movzx ecx, byte [rax + rdi]
or r10d, ecx
movd eax, xmm0
mov edx, eax
shr rax, 0x10
movzx ecx, al
mov eax, edx
shr rax, 0x18
movd xmm3, r10d
movzx r8d, byte [rcx + rdi]
movzx eax, byte [rax + rdi]
shl eax, 8
or r8d, eax
mov eax, edx
shr rax, 8
movzx ecx, al
shl r8d, 8
movzx eax, byte [rcx + rdi]
or r8d, eax
movzx eax, dl
shl r8d, 8
movzx ecx, byte [rax + rdi]
mov eax, r10d
or r8d, ecx
ror eax, 8
xor eax, 1
mov ecx, r8d
ror ecx, 8
xor ecx, 1
movd xmm2, r8d
movd xmm0, eax
punpckldq xmm3, xmm0
movdqa xmm0, xmm5
movd xmm1, ecx
xorps xmm0, xmm4
punpckldq xmm2, xmm1
punpcklqdq xmm3, xmm2
pslldq xmm5, 4
xorps xmm0, xmm5
pshufd xmm1, xmm3, 0xff
xorps xmm1, xmm0
pshufd xmm0, xmm1, 0x55
movd eax, xmm0
movdqu xmmword [r11], xmm1
mov edx, eax
shr rax, 0x10
movzx ecx, al
mov eax, edx
shr rax, 0x18
movzx r9d, byte [rcx + rdi]
movzx eax, byte [rax + rdi]
shl eax, 8
movdqa xmm5, xmm6
or r9d, eax
pshufd xmm0, xmm1, 0xff
shl r9d, 8
mov eax, edx
shr rax, 8
movzx ecx, al
pslldq xmm5, 4
movdqa xmm4, xmm5
pslldq xmm5, 4
xorps xmm4, xmm6
movaps xmm6, xmmword [rsp]
movzx eax, byte [rcx + rdi]
or r9d, eax
movzx eax, dl
shl r9d, 8
movzx ecx, byte [rax + rdi]
movd eax, xmm0
or r9d, ecx
mov edx, eax
shr rax, 0x10
movzx ecx, al
mov eax, edx
shr rax, 0x18
movd xmm3, r9d
movzx r8d, byte [rcx + rdi]
movzx eax, byte [rax + rdi]
shl eax, 8
or r8d, eax
mov eax, edx
shr rax, 8
movzx ecx, al
shl r8d, 8
movzx eax, byte [rcx + rdi]
or r8d, eax
movzx eax, dl
shl r8d, 8
movzx ecx, byte [rax + rdi]
or r8d, ecx
mov ecx, r9d
mov eax, r8d
ror eax, 8
ror ecx, 8
movd xmm2, r8d
movd xmm1, eax
punpckldq xmm2, xmm1
movd xmm0, ecx
punpckldq xmm3, xmm0
movdqa xmm0, xmm5
xorps xmm0, xmm4
punpcklqdq xmm3, xmm2
pslldq xmm5, 4
xorps xmm0, xmm5
pshufd xmm1, xmm3, 0xaa
xorps xmm1, xmm0
movdqu xmmword [rbx], xmm1
mov rbx, qword [rsp + 0x20]
add rsp, 0x10
pop rdi
ret