joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400181c0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x1400181f0
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140018208
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x14001ed90
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
lea rcx, str.msvcrt.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rsi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.rand_s
mov rcx, rax
call rsi
test rax, rax
je 0x14001edd8
mov rcx, rbx
mov qword [sym.init_rand_s], rax
add rsp, 0x28
pop rbx
pop rsi
jmp rax
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.SystemFunction036
mov rcx, rax
call rsi
mov qword [0x140045b80], rax
lea rax, [sym.mingw_rand_s]
jmp 0x14001edbe

Function at 0x140020fa0
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x1400391e0], 0
jne 0x1400210a6
mov byte [0x1400391e0], 1
call dbg.__cxa_current_exception_type
test rax, rax
je 0x14002107c
mov rbx, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [rbx], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add rbx, rax
mov rcx, rbx
call dbg.__cxa_demangle
mov ecx, 2
mov rsi, qword [sym.__acrt_iob_func]
mov rdi, rax
call rsi
mov edx, 1
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x14002106d
call rsi
mov rcx, rbx
mov rdx, rax
call sym.fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x14003a701]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x140021068
mov rcx, rdi
call sym.free
call dbg.__cxa_rethrow
call rsi
mov rcx, rdi
mov rdx, rax
call sym.fputs
jmp 0x140021037
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
call sym.abort
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
call sym.abort
sub rdx, 1
mov rcx, rax
jne 0x14002113b
call dbg.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sym.fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call dbg.__cxa_end_catch
jmp 0x1400210a1
call dbg.__cxa_begin_catch
call dbg.__cxa_end_catch
jmp 0x1400210a1
Function at 0x14002f890
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
je 0x14002f8b8
mov rcx, qword [rcx]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov ebx, 4
lea rsi, [rsp + 0x2c]
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sym.read
test eax, eax
jle 0x14002f900
cdqe
add rsi, rax
sub rbx, rax
jne 0x14002f8d0
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x14002f90c
call rbp
cmp dword [rax], 4
je 0x14002f8d0
lea rcx, str.random_device_could_not_be_read
call dbg.std::__throw_runtime_error(char const*)
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x14002fc30
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
je 0x14002fc58
mov rcx, qword [rcx]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov ebx, 4
lea rsi, [rsp + 0x2c]
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sym.read
test eax, eax
jle 0x14002fca0
cdqe
add rsi, rax
sub rbx, rax
jne 0x14002fc70
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x14002fcac
call rbp
cmp dword [rax], 4
je 0x14002fc70
lea rcx, str.random_device_could_not_be_read
call dbg.std::__throw_runtime_error(char const*)
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140038bb0
Capabilities:
Query environment variable

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov rax, qword [0x14003cf10]
mov r8d, dword [rax]
test r8d, r8d
jne 0x140038d4d
pxor xmm0, xmm0
lea rcx, str.GLIBCXX_TUNABLES
mov qword [0x140039198], 0
lea rbp, str.obj_count
movups xmmword [0x140039188], xmm0
movabs rsi, 0x2e78786362696c67
movabs rdi, 0x6c6f6f705f68652e
call sym.getenv
mov dword [rsp + 0x40], 0
mov rbx, rax
lea rax, str.obj_size
mov qword [rsp + 0x30], 8
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], 9
mov qword [rsp + 0x50], rbp
mov dword [rsp + 0x58], 0x100
test rbx, rbx
jne 0x140038c65
jmp 0x140038d17
mov rcx, rbx
mov edx, 0x3a
call sym.strchr
mov rbx, rax
test rax, rax
je 0x140038cc8
xor eax, eax
cmp byte [rbx], 0x3a
sete al
add rbx, rax
cmp qword [rbx], rsi
jne 0x140038c50
cmp qword [rbx + 7], rdi
jne 0x140038c50
cmp byte [rbx + 0xf], 0x2e
jne 0x140038c50
movabs rax, 0x657a69735f6a626f
lea r12, [rbx + 0x10]
cmp qword [rbx + 0x10], rax
jne 0x140038c9f
cmp byte [rbx + 0x18], 0x3d
je 0x140038d5e
mov r8d, 9
mov rdx, r12
mov rcx, rbp
call sym.memcmp
test eax, eax
jne 0x140038cbe
cmp byte [rbx + 0x19], 0x3d
je 0x140038da0
mov rbx, r12
jmp 0x140038c50
mov eax, dword [rsp + 0x58]
mov edx, 0x1000
mov ecx, 6
cmp eax, edx
cmovle edx, eax
mov eax, dword [rsp + 0x40]
test eax, eax
cmove eax, ecx
movsxd rbx, eax
movsxd rax, edx
add rbx, 0x26
imul rbx, rax
shl rbx, 3
mov qword [0x140039198], rbx
jne 0x140038d27
lea rcx, [sym.__tcf_0]
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.atexit
mov qword [0x140039198], 0x16000
mov ebx, 0x16000
mov rcx, rbx
call sym.malloc
mov qword [0x140039190], rax
test rax, rax
je 0x140038dac
xor edx, edx
mov qword [0x140039188], rax
mov qword [rax], rbx
mov qword [rax + 8], rdx
jmp 0x140038cff
lea rcx, [0x140039160]
call dbg.__gthr_win32_mutex_init_function
jmp 0x140038bcf
mov eax, 8
lea r13, [rsp + 0x30]
lea rdx, [rsp + 0x28]
lea rcx, [r12 + rax + 1]
xor r8d, r8d
call sym.strtoul
mov rbx, qword [rsp + 0x28]
movzx edx, byte [rbx]
cmp dl, 0x3a
je 0x140038d8f
test dl, dl
jne 0x140038c50
test eax, eax
js 0x140038c50
mov dword [r13 + 0x10], eax
jmp 0x140038c50
mov eax, 9
lea r13, [rsp + 0x48]
jmp 0x140038d68
xor ecx, ecx
mov qword [0x140039198], rcx
jmp 0x140038cff
Function at 0x140001630
Capabilities:
Access peb ldr_data

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x140006040]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov r13d, edx
mov qword [rsp + 0x60], rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x6c], xmm0
movups xmmword [rsp + 0x7c], xmm0
mov qword [r11 - 0x3c], rax
mov dword [rsp + 0x68], 0x28
mov ebx, dword [0x1400067c0]
mov dword [rsp + 0x6c], ebx
mov esi, dword [0x1400067c4]
mov eax, esi
neg eax
mov dword [rsp + 0x70], eax
mov qword [r11 - 0x54], 0x200001
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140007b60], eax
jle 0x14000171f
lea rcx, [0x140007b60]
call fcn.140002418
cmp dword [0x140007b60], 0xffffffff
jne 0x140001713
mov eax, dword [0x1400067c4]
imul eax, dword [0x1400067c0]
movsxd rcx, eax
mov eax, 4
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400027e4
mov qword [0x140007b68], rax
lea rcx, [0x140007b60]
call fcn.1400023ac
mov esi, dword [0x1400067c4]
mov ebx, dword [0x1400067c0]
xor r11d, r11d
test esi, esi
jle 0x1400017cc
movsxd r12, ebx
shl r12, 2
mov rbp, qword [0x140007b68]
inc rbp
nop dword [rax + rax]
test ebx, ebx
jle 0x1400017bd
mov edi, esi
imul edi, ebx
xor r14d, r14d
mov rcx, rbp
mov r15d, ebx
mov eax, r14d
cdq
idiv edi
lea r9d, [rdx + r13]
mov r10d, r9d
shr r10d, 4
movzx eax, r9b
shl al, 3
lea r8d, [rax + r9]
and r10b, r8b
mov r8d, r9d
shr r8d, 7
movzx eax, r9b
shl al, 2
lea edx, [rax + r9]
and r8b, dl
or r10b, r8b
mov edx, r9d
shr edx, 0xa
movzx eax, r9b
add r9b, r9b
add al, r9b
and dl, al
or r10b, dl
dec r10b
mov byte [rcx + 1], r10b
mov byte [rcx], r10b
mov byte [rcx - 1], r10b
mov byte [rcx + 2], 0xff
add r14d, r11d
lea rcx, [rcx + 4]
sub r15, 1
jne 0x140001752
inc r11d
add rbp, r12
cmp r11d, esi
jl 0x140001740
mov dword [rsp + 0x58], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
mov rax, qword [0x140007b68]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], esi
mov r9d, ebx
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.GDI32.dll_SetDIBitsToDevice]
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140002350
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140002030
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140006040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, r8
mov rdi, rcx
mov ecx, 0x10
call fcn.140002490
mov r9, rax
mov rax, qword [rbx]
mov qword [r9], rax
lea rax, [0x140001a40]
mov qword [r9 + 8], rax
mov qword [rsp + 0x30], r9
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0
lea r8, [0x1400022d0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x1400020b7
mov rax, rdi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140002350
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov dword [rbx], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x1400020d0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140006040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, r9
mov rdi, r8
mov rsi, rcx
mov ecx, 0x18
call fcn.140002490
mov r9, rax
mov eax, dword [rbx]
mov dword [r9], eax
mov rax, qword [rdi]
mov qword [r9 + 8], rax
lea rax, [0x140001850]
mov qword [r9 + 0x10], rax
mov qword [rsp + 0x30], r9
lea rbx, [rsi + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0
lea r8, [0x140002300]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsi], rax
test rax, rax
je 0x14000216a
mov rax, rsi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140002350
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov dword [rbx], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x140002f68
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x140
mov rax, qword [0x1404f2618]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbx, rcx
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x100
call fcn.140349d10
mov edx, 0x100
lea rcx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x140017aae
xor eax, eax
mov rcx, 0xffffffffffffffff
mov qword [rbx], rax
lea rax, [rsp + 0x30]
nop word [rax + rax]
inc rcx
cmp byte [rax + rcx], 0
jne 0x140017a80
mov qword [rbx + 8], rcx
inc rcx
call fcn.140347548
mov r8, qword [rbx + 8]
lea rdx, [rsp + 0x30]
inc r8
mov qword [rbx], rax
mov rcx, rax
call fcn.140349660
jmp 0x140017abd
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov rax, rbx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140346fd0
add rsp, 0x140
pop rbx
ret

Function at 0x140019100
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140019134
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140019120
ret
Function at 0x14001f2e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rcx, qword [rcx + 8]
jmp 0x14001fa90
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x40
mov rax, qword [0x1404f2618]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp word [rcx + 0xe], 3
movzx esi, r8b
mov rbx, rcx
jne 0x14001fb51
cmp dword [rcx], 0
je 0x14001fb51
mov eax, 0x405
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov word [rsp + 0x36], ax
movabs rcx, 0xffff000000000000
mov rax, qword [rsp + 0x30]
and rax, rcx
or rax, rdx
mov qword [rsp + 0x30], rax
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], 0
jne 0x14001faf7
lea r8, [rsp + 0x28]
mov dword [rsp + 0x28], eax
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140020da0
mov ecx, dword [rbx]
movabs rdx, 0xffffffffffff
mov rax, qword [rbx + 8]
and rax, rdx
shl rcx, 5
add rcx, rax
mov rax, qword [rsp + 0x20]
cmp rax, rcx
je 0x14001fb51
movzx ecx, word [rax + 0x1e]
movzx eax, cl
shr al, 3
test al, 1
je 0x14001fb51
cmp cx, 0xa
sete al
jmp 0x14001fb55
movzx eax, sil
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140346fd0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rsi
ret
Function at 0x140022570
Capabilities:
Encrypt data using rc4 prga

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, 0x90
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
movaps xmmword [rax - 0x48], xmm8
movaps xmmword [rax - 0x58], xmm9
movaps xmmword [rax - 0x68], xmm10
mov rax, qword [0x1404f2618]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [rcx + 0x10]
movaps xmm10, xmm2
mov rbx, rdx
mov rsi, rcx
cmp rdi, qword [rcx + 8]
je 0x140022763
movsd xmm7, qword [0x1404b7e08]
movabs rbp, 0x8000000000000000
movsd xmm6, qword [0x1404b7e00]
mov r14d, 0x405
movsd xmm9, qword [0x1404b7e20]
movabs r15, 0xffff000000000000
movabs r12, 0xffffffffffff
xorps xmm8, xmm8
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov word [rsp + 0x36], r14w
mov rax, qword [rsp + 0x30]
and rax, r15
or rax, rbx
mov qword [rsp + 0x30], rax
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], 0
jne 0x140022635
add rdi, 0xffffffffffffffa0
mov dword [rsp + 0x28], eax
mov rcx, rdi
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x20]
call fcn.140020da0
mov edx, dword [rdi]
mov rax, qword [rdi + 8]
mov rcx, qword [rsp + 0x20]
and rax, r12
shl rdx, 5
add rdx, rax
cmp rcx, rdx
je 0x140022759
movzx eax, word [rcx + 0x1e]
shr ax, 9
test al, 1
jne 0x1400227b4
movzx edx, word [rcx + 0x1e]
movzx eax, dl
shr al, 4
test al, 1
je 0x140022759
movzx eax, dx
shr ax, 8
test al, 1
je 0x140022712
mov rdx, qword [rcx + 0x10]
xorps xmm0, xmm0
test rdx, rdx
js 0x1400226b6
cvtsi2sd xmm0, rdx
jmp 0x1400226ce
mov rax, rdx
mov rcx, rdx
shr rcx, 1
and eax, 1
or rcx, rax
cvtsi2sd xmm0, rcx
addsd xmm0, xmm0
movsd qword [rsp + 0x28], xmm0
movsd xmm0, qword [rsp + 0x28]
comisd xmm0, xmm8
jb 0x140022759
movsd xmm0, qword [rsp + 0x28]
comisd xmm7, xmm0
jbe 0x140022759
movsd xmm0, qword [rsp + 0x28]
xor ecx, ecx
comisd xmm0, xmm6
jb 0x140022708
subsd xmm0, xmm6
comisd xmm0, xmm6
jae 0x140022708
mov rcx, rbp
cvttsd2si rax, xmm0
add rax, rcx
jmp 0x140022754
shr dl, 7
test dl, 1
je 0x1400227b4
mov rdx, qword [rcx + 0x10]
xorps xmm0, xmm0
cvtsi2sd xmm0, rdx
movsd qword [rsp + 0x28], xmm0
movsd xmm1, qword [rsp + 0x28]
comisd xmm1, xmm9
jb 0x140022759
movsd xmm0, qword [rsp + 0x28]
comisd xmm6, xmm0
jbe 0x140022759
movsd xmm0, qword [rsp + 0x28]
cvttsd2si rax, xmm0
cmp rdx, rax
je 0x1400227af
cmp rdi, qword [rsi + 8]
jne 0x140022610
movaps xmm0, xmm10
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140346fd0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [rsp + 0x70]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
mov rsp, r11
pop r15
pop r14
pop r12
ret
mov rcx, qword [rsp + 0x20]
add rcx, 0x10
call fcn.1400208a0
jmp 0x140022767
Function at 0x140025b10
Capabilities:
Set console window title

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rdi, rdx
mov rsi, rcx
lea rax, vtable.xmrig::ConsoleLog.0
mov qword [rcx], rax
xor ebp, ebp
mov qword [rcx + 8], rbp
mov qword [rcx + 0x10], rbp
lea ecx, [rbp + 1]
call fcn.14030e2a0
cmp eax, 0xe
je 0x140025b50
cmp eax, 7
jne 0x140025b7c
mov ecx, 0x158
call fcn.140346ff0
mov rbx, rax
mov qword [rsi + 8], rax
call fcn.14030e980
mov rcx, rax
xor r9d, r9d
lea r8d, [r9 + 1]
mov rdx, rbx
call fcn.1403109e0
test eax, eax
jns 0x140025b88
mov byte [0x1404f3210], bpl
jmp 0x140025cd3
xor edx, edx
mov rcx, qword [rsi + 8]
call fcn.1403118a0
mov rax, qword [rsi + 8]
mov qword [rsi + 0x10], rax
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140025bdd
mov dword [rsp + 0x50], ebp
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x140025bdd
mov edx, dword [rsp + 0x50]
and edx, 0xffffffbf
mov dword [rsp + 0x50], edx
bts edx, 7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
cmp byte [rdi], bpl
je 0x140025cd3
cmp qword [rdi + 8], rbp
jne 0x140025c1d
mov ecx, reloc.WS2_32.dll_listen
call fcn.140347548
mov rbx, rax
movsd xmm0, qword [str.XMRig_6.16.2]
movsd qword [rax], xmm0
mov eax, dword [0x1404ab490]
mov dword [rbx + 8], eax
movzx eax, byte [0x1404ab494]
mov byte [rbx + 0xc], al
jmp 0x140025cc2
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x28], rbp
mov ecx, 0x40
call fcn.140346ff0
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x20]
mov rdx, qword [rdi + 8]
lea rcx, [rsp + 0x30]
call fcn.140016aa0
nop
mov rcx, qword [rsp + 0x20]
mov rdi, qword [rcx + 8]
cmp byte [rdi + 0x19], 0
jne 0x140025cb3
nop word [rax + rax]
mov r8, qword [rdi + 0x10]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x20]
call fcn.140019f10
mov rbx, rdi
mov rdi, qword [rdi]
mov rcx, qword [rbx + 0x30]
call fcn.14034702c
mov rcx, qword [rbx + 0x20]
call fcn.14034702c
mov edx, 0x40
mov rcx, rbx
call fcn.14034702c
cmp byte [rdi + 0x19], 0
je 0x140025c70
mov rcx, qword [rsp + 0x20]
mov edx, 0x40
call fcn.14034702c
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov rcx, rbx
call fcn.14034702c
mov rax, rsi
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140049640
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
movzx eax, byte [rcx + 6]
mov rdx, rcx
movzx r8d, byte [rcx + 7]
movzx esi, byte [rcx + 0xb]
movzx ebp, byte [rcx + 0xf]
movzx r11d, byte [rcx + 0x13]
movzx ebx, byte [rcx + 0x17]
movzx edi, byte [rcx + 0x1b]
movzx r14d, byte [rcx + 0x1f]
shl r8, 8
or r8, rax
shl rsi, 8
movzx eax, byte [rcx + 5]
shl rbp, 8
shl r11, 8
shl rbx, 8
shl rdi, 8
shl r14, 8
shl r8, 8
or r8, rax
movzx eax, byte [rcx + 4]
shl r8, 8
or r8, rax
movzx eax, byte [rcx + 0xa]
or rsi, rax
movzx eax, byte [rcx + 9]
shl rsi, 8
or rsi, rax
movzx eax, byte [rcx + 8]
shl rsi, 8
or rsi, rax
movzx eax, byte [rcx + 0xe]
or rbp, rax
movzx eax, byte [rcx + 0xd]
shl rbp, 8
or rbp, rax
movzx eax, byte [rcx + 0xc]
shl rbp, 8
or rbp, rax
movzx eax, byte [rcx + 0x12]
or r11, rax
movzx eax, byte [rcx + 0x11]
shl r11, 8
or r11, rax
movzx eax, byte [rcx + 0x10]
shl r11, 8
or r11, rax
movzx eax, byte [rcx + 0x16]
or rbx, rax
movzx eax, byte [rcx + 0x15]
shl rbx, 8
or rbx, rax
movzx eax, byte [rcx + 0x14]
shl rbx, 8
or rbx, rax
movzx eax, byte [rcx + 0x1a]
or rdi, rax
movzx eax, byte [rcx + 0x19]
shl rdi, 8
or rdi, rax
movzx eax, byte [rcx + 0x18]
shl rdi, 8
or rdi, rax
movzx eax, byte [rcx + 0x1e]
or r14, rax
movzx eax, byte [rcx + 0x1d]
shl r14, 8
or r14, rax
movzx eax, byte [rcx + 0x1c]
movzx ecx, byte [rcx + 3]
shl rcx, 8
shl r14, 8
or r14, rax
movzx eax, byte [rdx + 2]
or rcx, rax
movzx eax, byte [rdx + 1]
shl rcx, 8
or rcx, rax
movzx eax, byte [rdx]
shl rcx, 8
or rcx, rax
mov edx, 0x5cf5d3ec
mov eax, 1
sub rdx, rcx
test rdx, rdx
jle 0x14004979a
mov r10d, eax
jmp 0x1400497a7
xor r10d, r10d
test rdx, rdx
setns r10b
dec r10d
mov ecx, 0x5812631a
sub rcx, r8
test rcx, rcx
jle 0x1400497b9
mov r9d, eax
jmp 0x1400497c6
xor r9d, r9d
test rcx, rcx
setns r9b
dec r9d
mov ecx, 0xa2f79cd6
sub rcx, rsi
test rcx, rcx
jle 0x1400497d8
mov r8d, eax
jmp 0x1400497e5
xor r8d, r8d
test rcx, rcx
setns r8b
dec r8d
mov ecx, 0x14def9de
sub rcx, rbp
test rcx, rcx
jle 0x1400497f6
mov edx, eax
jmp 0x140049800
xor edx, edx
test rcx, rcx
setns dl
dec edx
mov ecx, 0x10000000
neg r11
sub rcx, r14
neg rbx
neg rdi
test rcx, rcx
jg 0x140049820
xor eax, eax
test rcx, rcx
setns al
dec eax
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
cdqe
sar rdi, 0x3f
sar rbx, 0x3f
sar r11, 0x3f
lea rcx, [rdi + rax*2]
mov rdi, qword [rsp + 0x28]
lea rax, [rbx + rcx*2]
mov rbx, qword [rsp + 0x10]
lea rcx, [r11 + rax*2]
movsxd rax, edx
lea rdx, [rax + rcx*2]
movsxd rax, r8d
lea rcx, [rax + rdx*2]
movsxd rax, r9d
lea rdx, [rax + rcx*2]
movsxd rax, r10d
lea rax, [rax + rdx*2]
sar rax, 8
pop r14
ret