joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140061330
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x14009c688]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rcx + 0x20]
mov rsi, rcx
xor r9d, r9d
mov rdi, qword [rax + 0x5d0]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x80
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8d, dword [rdi + 0x144]
mov rdx, qword [rdi + 0x150]
add r8d, 4
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rdi + 0x138], 0
mov dword [rdi + 0x13c], eax
jne 0x1400613c7
movsxd r8, dword [rsp + 0x30]
lea rcx, [rdi + 0xb8]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x138], eax
mov r8d, dword [rdi + 0x13c]
mov qword [rsp + 0xe8], rbx
mov qword [rsp + 0xf0], rbp
cmp r8d, 4
jge 0x14006142d
lea rdx, str.Received_too_short_packet
mov rcx, rsi
call fcn.140038730
mov dword [rdi + 0xc], 7
xor eax, eax
mov rbp, qword [rsp + 0xf0]
mov rbx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14007c450
mov rsi, qword [rsp + 0xf8]
add rsp, 0xd0
pop rdi
ret
mov rax, qword [rdi + 0x150]
movzx ecx, byte [rax]
movzx edx, byte [rax + 1]
shl ecx, 8
or edx, ecx
mov dword [rdi + 0xc], edx
sub edx, 3
je 0x1400614dd
sub edx, 1
je 0x140061556
sub edx, 1
je 0x140061497
cmp edx, 1
je 0x14006147a
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rsi
lea rdx, [0x14007fac4]
call fcn.140038730
jmp 0x140061556
add r8d, 0xfffffffe
lea rdx, [rax + 2]
mov rcx, rdi
call fcn.140061070
test eax, eax
je 0x140061556
jmp 0x1400613fc
mov rdx, rax
lea rbp, [rax + 4]
lea eax, [r8 - 4]
movsxd rbx, eax
movzx ecx, byte [rdx + 2]
movzx eax, byte [rdx + 3]
mov rdx, rbx
shl ecx, 8
or ecx, eax
mov dword [rdi + 8], ecx
mov rcx, rbp
call fcn.140061fd0
cmp rax, rbx
jae 0x140061556
mov r8, rbp
lea rdx, str.TFTP_error:__s
mov rcx, rsi
call fcn.1400388c0
jmp 0x140061556
cmp r8d, 4
jle 0x140061556
movzx ecx, byte [rax + 2]
mov rdx, rax
movzx eax, byte [rax + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [rdi + 0x14c]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x140061556
lea eax, [r8 - 4]
mov rcx, rsi
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140038960
mov ebx, eax
test eax, eax
je 0x140061535
mov edx, 5
mov rcx, rdi
call fcn.140061f60
mov eax, ebx
jmp 0x1400613fc
mov eax, dword [rdi + 0x13c]
mov rcx, rsi
sub eax, 4
cdqe
add qword [rsi + 0x100], rax
mov rdx, qword [rsi + 0x100]
call fcn.140047850
mov rcx, rsi
call fcn.140047c90
test eax, eax
je 0x1400613fa
mov edx, 5
mov rcx, rdi
call fcn.140061f60
mov eax, Ordinal_46
jmp 0x1400613fc
Function at 0x140068a60
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x14009cf58]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x140068ac4
lea r9d, [rax + 2]
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea ecx, [rax + 6]
xor edx, edx
call fcn.14006d2f0
test al, al
je 0x140068ab8
mov dword [0x14009cf58], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x14009cf58], 1
jmp 0x140068ac9
cmp eax, 2
je 0x140068b1b
lea rax, [rsp + 0x58]
mov edx, 0xffff
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x140068afa
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x140068b1b
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rbx
ret
Function at 0x1400696a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
push rdi
sub rsp, 0x138
mov rax, qword [0x14009c688]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rax, qword [rcx]
mov rsi, rcx
mov rdi, r9
mov rcx, qword [rax + 0x10]
mov dword [r9], 0
xor r9d, r9d
mov rcx, qword [rcx + 0x98]
call qword [sym.imp.WS2_32.dll_recv]
cdqe
cmp rax, 0xffffffffffffffff
jne 0x14006974b
mov qword [rsp + 0x130], rbx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x140069707
mov dword [rdi], 0x51
jmp 0x14006973c
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, ebx
call fcn.14004ad50
mov rcx, qword [rsi + 8]
lea rdx, str.Recv_failure:__s
mov r8, rax
call fcn.140038730
mov rax, qword [rsi + 8]
mov dword [rax + 0xd7c], ebx
mov dword [rdi], gethostname
mov rbx, qword [rsp + 0x130]
mov rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.14007c450
add rsp, 0x138
pop rdi
pop rsi
ret

Function at 0x140069770
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x1c0
mov rax, qword [0x14009c688]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rax, qword [rdx + 0x20]
mov rsi, rdx
mov rbx, qword [rcx + 0x10]
mov rcx, qword [rax + 0x2e8]
test dword [rcx + 0x84], 0x800
jne 0x140069891
xor edx, edx
mov dword [rsp + 0x20], 0x80
mov r8d, 0x80
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rbx + 0x98]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14006981f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.14004ad50
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.140038730
mov eax, 2
jmp 0x140069893
mov edx, dword [rsp + 0x20]
lea r9, [rbx + 0x144]
lea r8, [rbx + 0x114]
lea rcx, [rsp + 0x30]
call fcn.1400395a0
test al, al
jne 0x140069891
mov qword [rsp + 0x1e0], rdi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.14004ad50
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.140038730
mov rdi, qword [rsp + 0x1e0]
mov eax, 2
jmp 0x140069893
xor eax, eax
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.14007c450
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1c0
pop rsi
ret
Function at 0x140078e20
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbp, r8
mov rdi, rdx
mov r8d, reloc.WS2_32.dll_recvfrom
lea rdx, str.WWW_Authenticate:
mov rcx, r9
mov rbx, r9
call fcn.14003cd20
test eax, eax
je 0x140078e64
mov esi, dword [rdi + 0x150]
cmp esi, 0x191
je 0x140078e8b
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.Proxy_authenticate:
mov rcx, rbx
call fcn.14003cd20
test eax, eax
je 0x140078ed1
mov esi, dword [rdi + 0x150]
cmp esi, 0x197
jne 0x140078ed1
mov rcx, rbx
call fcn.140042c20
mov rbx, rax
test rax, rax
jne 0x140078ea3
lea eax, [rbx + 0x1b]
jmp 0x1400790a0
cmp esi, 0x197
mov r8, rbx
mov rcx, rdi
sete dl
call fcn.1400448c0
mov rcx, rbx
mov edi, eax
call qword [fcn.14007d615]
test edi, edi
je 0x14007909e
mov eax, edi
jmp 0x1400790a0
mov r8d, reloc.WS2_32.dll_ntohs
lea rdx, str.Content_Length:
mov rcx, rbx
call fcn.14003cd20
test eax, eax
je 0x140078f2c
mov r8d, dword [rdi + 0x150]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x140078f11
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response
mov rcx, rdi
call fcn.1400388c0
jmp 0x14007909e
xor edx, edx
lea r9, [rbp + 0x2a8]
lea rcx, [rbx + 0xf]
lea r8d, [rdx + 0xa]
call fcn.14004bae0
jmp 0x14007909e
lea r9, str.close
mov qword [rsp + 0x20], 5
mov r8d, recv
lea rdx, str.Connection:
mov rcx, rbx
call fcn.140042b50
test al, al
jne 0x140079097
mov r8d, reloc.WS2_32.dll_select
lea rdx, str.Transfer_Encoding:
mov rcx, rbx
call fcn.14003cd20
test eax, eax
je 0x140078fe9
mov r8d, dword [rdi + 0x150]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x140078f99
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
mov rcx, rdi
call fcn.1400388c0
jmp 0x14007909e
lea r9, str.chunked
mov qword [rsp + 0x20], 7
mov r8d, reloc.WS2_32.dll_select
lea rdx, str.Transfer_Encoding:
mov rcx, rbx
call fcn.140042b50
test al, al
je 0x14007909e
lea rdx, str.CONNECT_responded_chunked
mov rcx, rdi
call fcn.1400388c0
mov rcx, rdi
mov byte [rbp + 0x2b4], 1
call fcn.14006d850
jmp 0x14007909e
lea r9, str.close
mov qword [rsp + 0x20], 5
mov r8d, reloc.WS2_32.dll_recvfrom
lea rdx, str.Proxy_Connection:
mov rcx, rbx
call fcn.140042b50
test al, al
jne 0x140079097
mov r8d, 7
lea rdx, str.HTTP_1.
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x14007909e
movzx eax, byte [rbx + 7]
sub al, 0x30
cmp al, 1
ja 0x14007909e
cmp byte [rbx + 8], 0x20
jne 0x14007909e
movzx ecx, byte [rbx + 9]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14007909e
movzx edx, byte [rbx + 0xa]
lea eax, [rdx - 0x30]
cmp al, 9
ja 0x14007909e
movzx r8d, byte [rbx + 0xb]
lea eax, [r8 - 0x30]
cmp al, 9
ja 0x14007909e
movzx eax, byte [rbx + 0xc]
sub al, 0x30
cmp al, 9
jbe 0x14007909e
movsx eax, cl
lea ecx, [rax + rax*4]
movsx eax, dl
lea ecx, [rax + rcx*2]
movsx eax, r8b
lea ecx, [rcx + rcx*4]
lea ecx, [rcx - 0xa68]
lea ecx, [rax + rcx*2]
mov dword [rdi + 0x150], ecx
mov dword [rdi + 0x1384], ecx
jmp 0x14007909e
mov byte [rbp + 0x2b5], 1
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14007a770
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [section..data]
mov rdi, rax
test rax, rax
jne 0x14007a7b2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x14007a7f9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x14007a852
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x14007a810
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14007a893
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14008e121]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14008e122]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14007a860
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140017870
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x140
mov rax, qword [0x1405c5108]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x100
xor edi, edi
call fcn.1403e0ed0
mov edx, 0x100
lea rcx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x1400178fe
mov qword [rbx], rdi
lea rax, [rsp + 0x30]
mov rcx, 0xffffffffffffffff
nop
inc rcx
cmp byte [rax + rcx], dil
jne 0x1400178d0
mov qword [rbx + 8], rcx
inc rcx
call fcn.1403de6d8
mov r8, qword [rbx + 8]
lea rdx, [rsp + 0x30]
inc r8
mov qword [rbx], rax
mov rcx, rax
call fcn.1403e0820
jmp 0x14001790b
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx], rdi
mov qword [rbx + 8], rdi
mov rax, rbx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1403de160
mov rbx, qword [rsp + 0x158]
add rsp, 0x140
pop rdi
ret

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

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

Disassembly:
mov rcx, qword [rcx + 8]
jmp 0x14001f5d0
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1405c5108]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp word [rcx + 0xe], 3
movzx edi, r8b
mov rbx, rcx
jne 0x14001f691
cmp dword [rcx], 0
je 0x14001f691
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 0x14001f637
lea r8, [rsp + 0x28]
mov dword [rsp + 0x28], eax
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140020600
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 0x14001f691
movzx ecx, word [rax + 0x1e]
movzx eax, cl
shr al, 3
test al, 1
je 0x14001f691
cmp cx, 0xa
sete al
jmp 0x14001f695
movzx eax, dil
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1403de160
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140022040
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 [0x1405c5108]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, qword [rcx + 0x10]
movaps xmm10, xmm2
mov rdi, rdx
mov rsi, rcx
cmp rbx, qword [rcx + 8]
je 0x140022244
movsd xmm7, qword [0x140581410]
mov rcx, rbx
movsd xmm6, qword [0x140581408]
movabs rbp, 0x8000000000000000
movsd xmm9, qword [0x140581428]
mov r14d, 0x405
movabs r15, 0xffff000000000000
movabs r12, 0xffffffffffff
xorps xmm8, xmm8
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov word [rsp + 0x36], r14w
mov rax, qword [rsp + 0x30]
and rax, r15
or rax, rdi
mov qword [rsp + 0x30], rax
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdi + rax], 0
jne 0x140022107
add rcx, 0xffffffffffffffa0
mov dword [rsp + 0x28], eax
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x20]
call fcn.140020600
mov ecx, dword [rbx - 0x60]
lea rax, [rbx - 0x60]
mov rbx, rax
shl rcx, 5
mov rax, qword [rax + 8]
and rax, r12
add rcx, rax
mov rax, qword [rsp + 0x20]
cmp rax, rcx
je 0x140022237
movzx ecx, word [rax + 0x1e]
lea r8, [rax + 0x10]
shr cx, 9
test cl, 1
jne 0x140022290
movzx ecx, word [r8 + 0xe]
movzx eax, cl
shr al, 4
test al, 1
je 0x140022237
movzx eax, cx
shr ax, 8
test al, 1
je 0x1400221f1
mov rdx, qword [r8]
xorps xmm0, xmm0
test rdx, rdx
js 0x140022192
cvtsi2sd xmm0, rdx
jmp 0x1400221aa
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 0x140022237
movsd xmm0, qword [rsp + 0x28]
comisd xmm7, xmm0
jbe 0x140022237
movsd xmm0, qword [rsp + 0x28]
xor ecx, ecx
comisd xmm0, xmm6
jb 0x1400221e4
subsd xmm0, xmm6
comisd xmm0, xmm6
jae 0x1400221e4
mov rcx, rbp
cvttsd2si rax, xmm0
add rax, rcx
cmp rdx, rax
jmp 0x140022235
shr cl, 7
test cl, 1
je 0x140022290
mov rcx, qword [r8]
xorps xmm0, xmm0
cvtsi2sd xmm0, rcx
movsd qword [rsp + 0x28], xmm0
movsd xmm1, qword [rsp + 0x28]
comisd xmm1, xmm9
jb 0x140022237
movsd xmm0, qword [rsp + 0x28]
comisd xmm6, xmm0
jbe 0x140022237
movsd xmm0, qword [rsp + 0x28]
cvttsd2si rax, xmm0
cmp rcx, rax
je 0x140022290
mov rcx, rbx
cmp rbx, qword [rsi + 8]
jne 0x1400220e2
movaps xmm0, xmm10
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1403de160
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, r8
call fcn.1400202f0
jmp 0x140022248
Function at 0x140025290
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
xor ebp, ebp
lea rax, vtable.xmrig::ConsoleLog.0
mov qword [rcx], rax
mov qword [rcx + 8], rbp
mov qword [rcx + 0x10], rbp
lea ecx, [rbp + 1]
call fcn.1403a3520
cmp eax, 0xe
je 0x1400252d0
cmp eax, 7
jne 0x1400252fc
mov ecx, 0x158
call fcn.1403de180
mov rbx, rax
mov qword [rsi + 8], rax
call fcn.1403a3c30
mov rcx, rax
xor r9d, r9d
lea r8d, [r9 + 1]
mov rdx, rbx
call fcn.1403a7780
test eax, eax
jns 0x140025308
mov byte [0x1405c5e18], bpl
jmp 0x140025463
xor edx, edx
mov rcx, qword [rsi + 8]
call fcn.1403a7c80
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 0x14002535d
mov dword [rsp + 0x50], ebp
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x14002535d
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 0x140025463
cmp qword [rdi + 8], rbp
jne 0x1400253a8
mov ecx, reloc.WS2_32.dll_ntohs
call fcn.1403de6d8
mov rbx, rax
movsd xmm0, qword [str.XMRigCM_6.21.3]
movsd qword [rax], xmm0
mov eax, dword [0x1405748e8]
mov dword [rbx + 8], eax
movzx eax, word [0x1405748ec]
mov word [rbx + 0xc], ax
movzx eax, byte [0x1405748ee]
mov byte [rbx + 0xe], al
jmp 0x140025452
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x28], rbp
mov ecx, 0x40
call fcn.1403de180
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.1400168f0
nop
mov rcx, qword [rsp + 0x20]
mov rdi, qword [rcx + 8]
cmp byte [rdi + 0x19], 0
jne 0x140025443
nop word [rax + rax]
mov r8, qword [rdi + 0x10]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x20]
call fcn.140019700
mov rbx, rdi
mov rdi, qword [rdi]
mov rcx, qword [rbx + 0x30]
call fcn.1403de1bc
mov rcx, qword [rbx + 0x20]
call fcn.1403de1bc
mov edx, 0x40
mov rcx, rbx
call fcn.1403de1bc
cmp byte [rdi + 0x19], 0
je 0x140025400
mov rcx, qword [rsp + 0x20]
mov edx, 0x40
call fcn.1403de1bc
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov rcx, rbx
call fcn.1403de1bc
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 0x140049a00
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 0x140049b5a
mov r10d, eax
jmp 0x140049b67
xor r10d, r10d
test rdx, rdx
setns r10b
dec r10d
mov ecx, 0x5812631a
sub rcx, r8
test rcx, rcx
jle 0x140049b79
mov r9d, eax
jmp 0x140049b86
xor r9d, r9d
test rcx, rcx
setns r9b
dec r9d
mov ecx, 0xa2f79cd6
sub rcx, rsi
test rcx, rcx
jle 0x140049b98
mov r8d, eax
jmp 0x140049ba5
xor r8d, r8d
test rcx, rcx
setns r8b
dec r8d
mov ecx, 0x14def9de
sub rcx, rbp
test rcx, rcx
jle 0x140049bb6
mov edx, eax
jmp 0x140049bc0
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 0x140049be0
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