joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003a4f0
Capabilities:
Connect pipe

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
test r9d, r9d
jne 0x14003a593
call fcn.14003a300
test eax, eax
jne 0x14003a593
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x14003a52c
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14003a53a
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x68], 0
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x14003a578
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rbx
mov qword [rsi + 0x48], rbx
inc dword [rdi + 0x78]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
inc dword [rdi + 0x78]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xorps xmm0, xmm0
mov qword [rsp + 0x30], r14
movups xmmword [rbx + 0x40], xmm0
lea rdx, [rbx + 0x40]
movups xmmword [rbx + 0x50], xmm0
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x14003a63a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14003a63a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x14003a5d7
xor eax, eax
jmp 0x14003a60b
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x70], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x14003a5fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14003a609
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x68], 0
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x14003a632
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rbx
jmp 0x14003a636
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
mov r14, qword [rsp + 0x30]
inc dword [rdi + 0x78]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14003a890
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
test dword [rdx + 0x58], 0x1000000
lea rdi, [rdx + 0x80]
mov rbx, rdx
mov rsi, rcx
je 0x14003a8db
mov qword [rdx + 0x238], 0
lea rcx, [0x14003a660]
mov rdx, rdi
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
jmp 0x14003a96a
lea rcx, [rdi + 0x40]
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm0
test dword [rdx + 0x58], 0x80000
je 0x14003a8fe
mov rax, qword [rdi + 0x70]
or rax, 1
mov qword [rdi + 0x58], rax
mov qword [rsp + 0x20], rcx
lea rdx, [0x14047ef20]
mov rcx, qword [rbx + 0x118]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14003a92e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14003a96e
test dword [rbx + 0x58], 0x80000
je 0x14003a9c5
cmp qword [rdi + 0x78], 0xffffffffffffffff
lea rcx, [rdi + 0x78]
jne 0x14003a9c5
mov rdx, qword [rdi + 0x70]
lea r8, [0x140036400]
mov dword [rsp + 0x28], 4
mov r9, rdi
mov dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x14003a9c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x14003a980
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14003a98e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rdi + 0x40], rax
mov qword [rdi + 0x68], 0
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x14003a9bb
mov rax, qword [rax + 0x68]
mov qword [rdi + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rdi
mov qword [rsi + 0x48], rdi
jmp 0x14003a9cd
mov qword [rdi + 0x68], rdi
mov qword [rsi + 0x48], rdi
jmp 0x14003a9cd
mov rcx, rbx
call fcn.14003a1a0
or dword [rbx + 0x58], 0x10000
inc dword [rbx + 0x78]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14003b3f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
xor r14d, r14d
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
mov ebx, r14d
test r8d, r8d
je 0x14003b44a
nop word [rax + rax]
mov r8d, edi
mov edx, ebx
sub r8d, ebx
mov qword [rsp + 0x20], r14
add rdx, rsi
lea r9, [rsp + 0x60]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003b45f
add ebx, dword [rsp + 0x60]
cmp ebx, edi
jb 0x14003b420
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14003b44c

Function at 0x14003b470
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov ebx, r8d
mov rdi, rdx
mov rbp, rcx
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x40]
mov esi, r9d
call fcn.140010ed0
mov edx, ebx
lea r8, [rsp + 0x30]
mov rcx, rdi
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call qword [rdi + 0x68]
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x14003b528
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x14003b528
mov rcx, qword [rdi + 0x118]
lea r9, [rsp + 0x70]
cmp esi, eax
mov qword [rsp + 0x20], 0
cmova esi, eax
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14003b513
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, [rsp + 0x40]
mov rdx, rdi
mov r8d, eax
mov rcx, rbp
call fcn.14003b280
jmp 0x14003b53a
mov edx, dword [rsp + 0x70]
lea r8, [rsp + 0x30]
mov rcx, rdi
call qword [rdi + reloc.WS2_32.dll_WSASetLastError]
mov eax, dword [rsp + 0x70]
jmp 0x14003b53c
lea r8, [rsp + 0x30]
mov rdx, 0xfffffffffffff024
mov rcx, rdi
call qword [rdi + reloc.WS2_32.dll_WSASetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x14003bbe0
Capabilities:
Manipulate console buffer

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14046e3c8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
mov ecx, dword [rcx + 0x58]
btr ecx, 0xc
mov eax, ecx
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], ecx
jne 0x14003bc28
test cl, 1
jne 0x14003bc28
test cl, 4
je 0x14003bc28
and eax, 0xfffffffb
mov dword [rbx + 0x58], eax
test al, 8
je 0x14003bc28
mov rax, qword [rbx + 8]
dec dword [rax + 8]
mov eax, dword [rbx + 0x58]
bt eax, 0x10
jae 0x14003bc9d
bt eax, 0x19
jae 0x14003bc84
mov rcx, qword [rbx + 0x110]
lea r9, [rsp + 0x20]
xor eax, eax
lea rdx, [rsp + 0x28]
mov dword [rsp + 0x38], eax
xorps xmm0, xmm0
mov eax, reloc.WS2_32.dll_recv
movups xmmword [rsp + 0x28], xmm0
mov word [rsp + 0x28], ax
lea r8d, [rax - 0xf]
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
jne 0x14003bc9d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400106c0
add rsp, 0x50
pop rbx
ret
bt eax, 0x15
jb 0x14003bc9d
mov rcx, rbx
call fcn.14003c200
test eax, eax
jne 0x14003bc9f
or dword [rbx + 0x58], 0x200000
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400106c0
add rsp, 0x50
pop rbx
ret

Function at 0x14003c200
Capabilities:
Log keystrokes
Manipulate console buffer

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov rax, qword [0x14046e3c8]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rcx
xor edi, edi
lea rcx, [0x14047ef78]
call fcn.140038a90
mov eax, 2
xchg dword [0x14047ef30], eax
cmp eax, 1
je 0x14003c24a
lea rcx, [0x14047ef78]
call fcn.140038a60
xor eax, eax
jmp 0x14003c334
xor r9d, r9d
mov qword [rsp + 0x98], rbx
mov qword [rsp + 0x30], rdi
lea rcx, str.conout_
mov qword [rsp + 0xa0], rbp
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
lea r8d, [r9 + 3]
mov qword [rsp + 0x70], r14
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003c2b2
lea rdx, [0x14047ef38]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x14003c2b2
lock or dword [0x14047ef34], 1
mov r14d, 1
mov dword [rsp + 0x50], 0xd0001
mov ebp, reloc.WS2_32.dll_listen
mov word [rsp + 0x48], r14w
mov ecx, ebp
mov dword [rsp + 0x4c], r14d
xor edx, edx
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov rcx, qword [rsi + 0x110]
lea r9, [rsp + 0x40]
mov r8d, r14d
mov word [rsp + 0x54], ax
lea rdx, [rsp + 0x48]
mov word [rsp + 0x56], bp
mov dword [rsp + 0x58], edi
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov r14, qword [rsp + 0x70]
mov rbp, qword [rsp + 0xa0]
test eax, eax
jne 0x14003c31b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp rbx, 0xffffffffffffffff
je 0x14003c32a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x98]
mov eax, edi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400106c0
add rsp, 0x78
pop rdi
pop rsi
ret
Function at 0x14003d9f0
Capabilities:
Manipulate console buffer

Disassembly:
push rbx
push rbp
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x14046e3c8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, qword [rsp + 0xb8]
mov r15d, r9d
movzx r14d, r8b
mov ebp, edx
mov rbx, rcx
cmp dword [rdi], 0
je 0x14003da2e
mov eax, 0xffffffff
jmp 0x14003dab0
mov qword [rsp + 0x58], rsi
movzx esi, byte [rsp + 0xb0]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x110]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x14003da5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
mov byte [rsp + 0x28], sil
lea rdx, [rsp + 0x30]
movzx r9d, r14b
mov dword [rsp + 0x20], r15d
mov r8d, ebp
mov rcx, rbx
call fcn.14003d900
mov rcx, qword [rbx + 0x110]
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0x14003daa9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
je 0x14003da40
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
mov eax, 0xffffffff
jmp 0x14003daab
xor eax, eax
mov rsi, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400106c0
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rbp
pop rbx
ret
Function at 0x14003dad0
Capabilities:
Manipulate console buffer

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x14046e3c8]
xor rax, rsp
mov qword [rsp + 0x50], rax
movzx ebp, word [reloc.WS2_32.dll_getsockopt]
xor r14d, r14d
mov rsi, rdx
mov rdi, rcx
mov dword [rsp + 0x30], r14d
cmp dword [rdx], r14d
jne 0x14003db22
mov rcx, qword [rcx + 0x110]
movzx edx, bp
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
test eax, eax
jne 0x14003db2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
mov eax, 0xffffffff
jmp 0x14003dbde
mov rcx, qword [rdi + 0x110]
mov qword [rsp + 0x90], rbx
mov ebx, dword [rsp + 0x30]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
je 0x14003dbc9
nop
mov rcx, qword [rdi + 0x110]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x14003dbc9
movsx eax, word [rsp + 0x38]
mov edx, 0x20
movsx r8d, word [rsp + 0x3a]
mov r9d, ebx
mov rcx, qword [rdi + 0x110]
imul r8d, eax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterW]
test eax, eax
je 0x14003dbbe
mov r8d, dword [rsp + 0x34]
lea rax, [rsp + 0x34]
mov rcx, qword [rdi + 0x110]
mov r9d, ebx
movzx edx, bp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
test eax, eax
jne 0x14003dbfc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
je 0x14003db50
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400106c0
mov rbp, qword [rsp + 0x98]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x38]
mov dword [0x14046e7c8], r14d
call fcn.14003c1a0
mov rcx, qword [rdi + 0x110]
lea rdx, [0x14047ef88]
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
test eax, eax
je 0x14003dbc9
xor eax, eax
jmp 0x14003dbd6

Function at 0x1400403d0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x48]
lea rcx, [0x14047f000]
mov dword [0x14047f028], eax
call fcn.1400389b0
test eax, eax
jne 0x14004043e
xor r10d, r10d
lea rdx, [0x140707038]
mov r8d, r10d
lea r11, [0x14047f030]
mov r9d, r10d
movsxd rax, r9d
inc r8d
mov qword [rdx - 8], r10
lea rdx, [rdx + 0x10]
imul rcx, rax, 0x288
add r9d, 0x10
add rcx, r11
mov qword [rdx - 0x10], rcx
cmp r8d, 0x100
jb 0x140040410
add rsp, 0x58
ret
lea rdx, str.uv_mutex_init
mov ecx, eax
call fcn.1400384a0
int3
Function at 0x1400410b0
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rsi, rdx
mov rdi, rcx
mov eax, dword [rcx + 0x150]
mov dword [rsp + 0x90], eax
mov eax, dword [rdx]
and al, 3
cmp al, 1
jne 0x140041112
mov dword [rcx + 0x14c], 5
mov ecx, 5
call fcn.140037f80
movsxd rdx, eax
mov qword [rdi + 0x88], rdx
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
cmp byte [rdx + 4], 0
je 0x140041146
mov dword [rcx + 0x14c], 1
mov ecx, 1
call fcn.140037f80
movsxd rcx, eax
mov qword [rdi + 0x88], rcx
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov rcx, qword [rcx + 0x180]
cmp rcx, 0xffffffffffffffff
jne 0x140041157
mov rcx, qword [rdx + 0x18]
mov r15, qword [rdx + 0x10]
xor r13d, r13d
cmp rcx, r15
jge 0x140041316
mov r8d, r13d
mov eax, dword [rdi + 0x170]
test eax, eax
je 0x14004118f
mov rdx, qword [rdi + 0x178]
mov r9d, eax
nop
mov eax, dword [rdx]
add r8, rax
lea rdx, [rdx + 0x10]
sub r9, 1
jne 0x140041180
sub r15, rcx
cmp r8, r15
cmovl r15, r8
test r15, r15
je 0x140041316
lea rbx, [r15 + rcx]
mov r8d, dword [0x14047f028]
mov rax, rcx
cqo
idiv r8
mov rax, rdx
mov qword [rsp + 0x38], rdx
sub rcx, rdx
add rax, r15
mov r8, rcx
shr r8, 0x20
mov qword [rsp + 0x20], rax
mov r9d, ecx
mov edx, 4
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdx, rax
mov qword [rsp + 0x98], rax
test rax, rax
jne 0x14004121e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x14c], eax
mov ecx, eax
call fcn.140037f80
movsxd rcx, eax
mov qword [rdi + 0x88], rcx
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov r14, r13
mov r12d, r13d
cmp r12d, dword [rdi + 0x170]
jae 0x1400412aa
cmp r14, r15
jae 0x1400412aa
mov dword [rsp + 0x30], r13d
mov ecx, r12d
shl rcx, 4
add rcx, qword [rdi + 0x178]
mov esi, dword [rcx]
mov rax, r15
sub rax, r14
cmp rsi, rax
cmovae rsi, rax
add rdx, r14
add rdx, qword [rsp + 0x38]
mov r8, rsi
mov rcx, qword [rcx + 8]
call sub.VCRUNTIME140.dll_memcpy
nop
add r14, rsi
inc r12d
mov rdx, qword [rsp + 0x98]
jmp 0x140041224
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x1400411f1
cmp qword [rdi + 0x180], 0xffffffffffffffff
jne 0x1400412dd
mov rdx, qword [rsp + 0x88]
mov qword [rdx + 0x18], rbx
mov ecx, dword [rsp + 0x90]
call fcn.140040560
mov qword [rdi + 0x88], r15
cmp r15, 0xffffffffffffffff
jne 0x14004131d
call sub.api_ms_win_crt_runtime_l1_1_0.dll___doserrno
mov ecx, dword [rax]
mov dword [rdi + 0x14c], ecx
call fcn.140037f80
movsxd rcx, eax
mov qword [rdi + 0x88], rcx
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov qword [rdi + 0x88], r13
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140044f50
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push r12
push r14
sub rsp, 0x20
mov r12, r8
mov r14, rdx
mov rsi, rcx
test rcx, rcx
jne 0x140044f8a
xor ebp, ebp
test rdx, rdx
je 0x140044f76
mov qword [rdx], rbp
mov qword [r8], rbp
xor eax, eax
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r12
pop rsi
ret
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rdi
mov rdi, 0xffffffffffffffff
nop dword [rax + rax]
inc rdi
cmp word [rcx + rdi*2], 0
jne 0x140044fa0
mov rbx, rdi
nop dword [rax]
test rbx, rbx
je 0x140044fc9
movzx eax, word [rcx + rbx*2 - 2]
dec rbx
cmp ax, 0x5c
je 0x140044fc9
cmp ax, 0x2f
jne 0x140044fb0
mov qword [rsp + 0x50], r15
test rbx, rbx
jne 0x14004502f
test r14, r14
je 0x140045021
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebx, eax
test eax, eax
je 0x14004501a
mov ecx, ebx
add rcx, rcx
call fcn.140011380
mov qword [r14], rax
test rax, rax
je 0x1400450b7
mov rdx, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x140045021
mov rcx, qword [r14]
call fcn.140011390
xor ebp, ebp
mov qword [r14], rbp
mov eax, 0xffffffff
jmp 0x140045099
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsdup
mov qword [r12], rax
jmp 0x140045097
xor ebp, ebp
lea r15, [rbx + rbx]
test r14, r14
je 0x140045063
lea rcx, [r15 + 4]
call fcn.140011380
mov qword [r14], rax
test rax, rax
je 0x1400450b7
lea r8, [rbx + 1]
mov rdx, rsi
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_wcsncpy
mov rax, qword [r14]
mov word [rax + r15 + 2], bp
sub rdi, rbx
lea rbx, [rdi + rdi]
mov rcx, rbx
call fcn.140011380
mov qword [r12], rax
test rax, rax
je 0x1400450b7
lea rdx, [rsi + 2]
mov rcx, rax
add rdx, r15
lea r8, [rdi - 1]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcsncpy
mov rax, qword [r12]
mov word [rbx + rax - 2], bp
xor eax, eax
mov r15, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r12
pop rsi
ret
lea rdx, str.uv__malloc
mov ecx, select
call fcn.1400384a0
int3
Function at 0x140045570
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x478
mov rax, qword [0x14046e3c8]
xor rax, rsp
mov qword [rsp + 0x460], rax
lea r8, [0x140708130]
xor edx, edx
lea rcx, str.0.0.0.0
call fcn.140010fa0
test eax, eax
jne 0x14004570d
lea r8, [0x140708140]
xor edx, edx
lea rcx, [0x1404133c4]
call fcn.140010ff0
test eax, eax
jne 0x14004570d
lea ecx, [rax + 0x43]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cmp eax, 1
je 0x1400456f5
mov ecx, 0x202
lea rdx, [rsp + 0x2c0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140045713
mov qword [rsp + 0x480], rbx
lea edx, [rax + 1]
xor r8d, r8d
mov qword [rsp + 0x470], rdi
lea ecx, [rax + 2]
mov dword [0x140708120], 1
call qword [sym.imp.WS2_32.dll_socket]
xor edi, edi
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140045673
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x274
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x2005
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14004566a
mov eax, dword [0x140708120]
test dword [rsp + 0x40], 0x20000
cmovne eax, edi
mov dword [0x140708120], eax
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
xor r8d, r8d
mov dword [0x140708124], 1
lea edx, [r8 + 1]
lea ecx, [rdx + 0x16]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400456e5
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x274
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x2005
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1400456dc
mov eax, dword [0x140708124]
test dword [rsp + 0x40], 0x20000
cmovne eax, edi
mov dword [0x140708124], eax
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rsp + 0x480]
mov rdi, qword [rsp + 0x470]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1400106c0
add rsp, 0x478
ret
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
int3
lea rdx, str.WSAStartup
mov ecx, eax
call fcn.1400384a0
int3
Function at 0x140047d70
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x48
cmp dword [rcx + 0x100], 0
jbe 0x140035417
mov eax, 0xfffff008
add rsp, 0x48
ret
mov rcx, qword [rcx + 0x110]
lea r9, [rsp + 0x50]
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x140035450
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.140037f80
add rsp, 0x48
ret
mov eax, dword [rsp + 0x50]
add rsp, 0x48
ret
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
cmp dword [rcx + 0x100], 0
mov ebx, r8d
mov rdi, rdx
jbe 0x14003bdd9
mov eax, 0xfffff008
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea r9, [rsp + 0x30]
call fcn.14003e440
test eax, eax
je 0x14003bdfa
mov ecx, dword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140037f80
mov edx, ebx
mov rcx, rdi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140011100
mov eax, dword [rcx + 0x58]
test al, 1
je 0x140047d7d
mov eax, 0xfffff00d
ret
bt eax, 0xf
jb 0x140047d89
mov eax, 0xfffff031
ret
mov eax, dword [rcx + 0x10]
cmp eax, 7
je 0x140047dab
cmp eax, 0xc
je 0x140047da6
cmp eax, 0xe
je 0x140047da1
mov eax, 0xfffff02a
ret
jmp 0x14003bdb0
jmp 0x140035400
mov eax, 0xfffff008
ret

Function at 0x14004c0f0
Capabilities:
Set console window title

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
and qword [rcx + 8], 0
lea rax, vtable.xmrig::ConsoleLog.0
and qword [rcx + 0x10], 0
mov rsi, rdx
mov qword [rcx], rax
mov rdi, rcx
call fcn.14004c2c4
test al, al
je 0x14004c1cf
mov ecx, 0x158
call fcn.140010338
mov rbx, rax
mov qword [rdi + 8], rax
call fcn.1400109e0
xor r9d, r9d
mov rcx, rax
mov rdx, rbx
lea r8d, [r9 + 1]
call fcn.14003b6a0
test eax, eax
js 0x14004c1cf
mov rcx, qword [rdi + 8]
xor edx, edx
call fcn.14003b8e0
mov rax, qword [rdi + 8]
mov ecx, 0xfffffff6
mov qword [rdi + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14004c1a8
and dword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x14004c1a8
mov edx, dword [rsp + 0x40]
mov rcx, rbx
and edx, 0xffffffbf
mov dword [rsp + 0x40], edx
bts edx, 7
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
cmp byte [rsi], 0
je 0x14004c1d6
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140075b08
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov rcx, qword [rsp + 0x20]
call fcn.14001037c
jmp 0x14004c1d6
mov byte [0x14046e400], 0
mov rbx, qword [rsp + 0x48]
mov rax, rdi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret