joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400020e0
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 0x140002150
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400080a4]
mov rbx, rcx
test esi, esi
jle 0x140002280
mov rax, qword [0x1400080a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000219b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002225
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002180
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1400022a2
mov rax, qword [0x1400080a8]
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 [0x1400080a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002287
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000221e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140002230
add dword [0x1400080a4], 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 [0x1400080a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000221e
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 0x1400021a8
mov rax, qword [0x1400080a8]
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 0x140002840
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140008100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400080e0]
test rbx, rbx
je 0x1400028a4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word cs:[rax + rax]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x14000289b
test eax, eax
jne 0x14000289b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002880
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 0x140002ae0
Capabilities:
Parse pe header

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

Function at 0x140002b10
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 0x140002b5d
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 0x140002b54
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140002b5f
add rax, 0x28
cmp rax, r9
jne 0x140002b40
xor eax, eax
ret

Function at 0x140002b60
Capabilities:
Parse pe header

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

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

Function at 0x140002c80
Capabilities:
Parse pe header

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

Disassembly:
mov r8, qword [0x140005500]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002ce0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002ce8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002ce0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002d38
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002d2f
test rcx, rcx
je 0x140002ce0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002d20
xor eax, eax
ret

Function at 0x140002d40
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x140005500]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002da0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002da8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002da0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002da0
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 0x140002df4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002e00
add rdx, 0x28
cmp r9, rdx
jne 0x140002de0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140005500]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002e32
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002e40
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002e32
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002e32
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002e32
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 0x140002e95
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002ea8
add rdx, 0x28
cmp r10, rdx
jne 0x140002e80
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002eb7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002ec7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002e9e
test ecx, ecx
jg 0x140002eb0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140003240
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], bpl
mov dword [rsp + 0x20], 1
mov rdx, qword [rdx + 0x10]
cmp rdx, 0xf
jbe 0x140003295
call fcn.14001bdd0
mov qword [rbx + 0x10], rbp
mov r15d, 0xfffffffa
mov rcx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x1400032ad
mov rcx, qword [rdi]
mov rdx, rcx
jmp 0x1400032b0
mov rdx, rdi
mov r14, rcx
mov r13, qword [rdi + 0x10]
add r13, rdx
cmp rcx, r13
je 0x1400033bf
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
nop word [rax + rax]
shl ebp, 8
movzx eax, byte [r14]
add ebp, eax
add r15d, 8
js 0x14000335d
movsxd r12, ebp
movsxd rdi, r15d
lea ecx, [r15 + 6]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
mov esi, edx
imul eax, edx, 0xfffffffa
add r15d, eax
nop dword [rax + rax]
mov rax, r12
mov rcx, rdi
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + r8]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x14000333d
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x140003332
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140003353
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.14001bf20
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
sub rdi, 6
sub rsi, 1
jne 0x140003300
inc r14
cmp r14, r13
jne 0x1400032d0
cmp r15d, 0xfffffffa
jle 0x1400033bf
lea ecx, [r15 + 8]
shl ebp, 8
movsxd rax, ebp
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + r8]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1400033b0
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x1400033a5
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400033bf
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.14001bf20
mov rcx, qword [rbx + 0x10]
test cl, 3
je 0x140003410
nop dword [rax + rax]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1400033f5
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x1400033ed
mov rax, qword [rbx]
mov word [rax + rcx], 0x3d
jmp 0x140003407
mov r9b, 0x3d
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.14001bf20
mov rcx, qword [rbx + 0x10]
test cl, 3
jne 0x1400033d0
mov rax, rbx
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140003d30
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov qword [rsp + 0x48], rcx
lea edi, [rcx + 1]
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x34], r8d
nop dword [rax + rax]
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
mov ecx, edi
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x140003d9e
call fcn.1400371bc
cmp dword [rax], 4
je 0x140003d70
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14002b600
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

Function at 0x140003dd0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rdi
sub rsp, 0x30
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor edx, edx
mov rdi, rcx
call fcn.140003d30
test rax, rax
jne 0x140003e0c
mov al, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14002b600
add rsp, 0x30
pop rdi
ret
jns 0x140003e2d
call fcn.1400371bc
cmp dword [rax], 9
jne 0x140003e2d
xor al, al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14002b600
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
lea rsi, [rsp + 0x20]
nop dword [rax]
mov r9d, 2
mov rdx, rsi
mov rcx, rdi
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test eax, eax
jns 0x140003e66
call fcn.1400371bc
cmp dword [rax], 4
je 0x140003e40
mov rsi, qword [rsp + 0x50]
test ebx, ebx
mov rbx, qword [rsp + 0x48]
setg al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14002b600
add rsp, 0x30
pop rdi
ret
Function at 0x140004330
Capabilities:
Resolve dns

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x468
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rsp + 0x450], rax
movzx eax, word [rcx]
mov rsi, r9
mov rdi, r8
mov ebp, edx
mov rbx, rcx
cmp ax, 2
je 0x14000436c
cmp ax, 0x17
jne 0x140004414
movzx ecx, word [rcx + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
xor edx, edx
lea rcx, [rsp + 0x40]
mov dword [rsi], eax
mov r8d, 0x401
call fcn.14004fd80
xor eax, eax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], eax
lea r8, [rsp + 0x40]
mov r9d, 0x401
mov qword [rsp + 0x20], rax
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x140004414
lea rax, [rsp + 0x40]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400043c6
mov rax, qword [rdi + 0x18]
cmp rbx, rax
ja 0x140004400
mov rsi, rdi
cmp rax, 0xf
jbe 0x1400043e4
mov rsi, qword [rdi]
mov r8, rbx
mov qword [rdi + 0x10], rbx
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14004f600
mov al, 1
mov byte [rsi + rbx], 0
jmp 0x140004416
lea r9, [rsp + 0x40]
mov rdx, rbx
mov rcx, rdi
call fcn.14001c090
mov al, 1
jmp 0x140004416
xor al, al
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14002b600
add rsp, 0x468
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140005680
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rax, qword [rcx + 8]
mov rdi, rcx
mov r8, qword [rcx + 0x28]
mov rdx, qword [rcx + 0x20]
mov qword [rsp + 0x48], rax
lea esi, [rax + 1]
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x34], r8d
nop dword [rax]
lea rax, [rsp + 0x30]
xor r9d, r9d
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, esi
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
test eax, eax
jns 0x1400056fc
call fcn.1400371bc
cmp dword [rax], 4
je 0x1400056d0
test ebx, ebx
jle 0x140005711
mov rcx, qword [rdi + 8]
call fcn.140003dd0
test al, al
je 0x140005711
mov al, 1
jmp 0x140005713
xor al, al
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14002b600
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140005740
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x28
mov rbx, rcx
mov eax, 0x7fffffff
mov rcx, qword [rcx + 0x48]
cmp r8, rax
mov rdi, r8
mov r14, rdx
cmova rdi, rax
mov rsi, qword [rbx + 0x50]
cmp rcx, rsi
jae 0x1400057b0
mov rdx, qword [rbx + 0x30]
sub rsi, rcx
add rdx, rcx
mov rcx, r14
cmp rdi, rsi
ja 0x140005797
mov r8, rdi
call fcn.14004f600
add qword [rbx + 0x48], rdi
mov rax, rdi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov r8, rsi
call fcn.14004f600
add qword [rbx + 0x48], rsi
mov rax, rsi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov r8, qword [rbx + 0x18]
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rbx + 8]
call fcn.140003d30
test rax, rax
jg 0x1400057d7
mov rax, 0xffffffffffffffff
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
xor eax, eax
mov qword [rsp + 0x68], rbp
mov rbp, qword [rbx + 8]
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x50], rax
cmp rdi, 0x1000
jae 0x140005880
mov qword [rsp + 0x20], r15
mov r15, qword [rbx + 0x30]
xor r9d, r9d
mov r8d, 0x1000
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rsi, eax
test eax, eax
jns 0x140005826
call fcn.1400371bc
cmp dword [rax], 4
je 0x140005800
mov r15, qword [rsp + 0x20]
test rsi, rsi
jle 0x140005844
mov rdx, qword [rbx + 0x30]
mov rcx, r14
cmp rsi, rdi
jg 0x140005856
mov r8, rsi
call fcn.14004f600
mov rbp, qword [rsp + 0x68]
mov rax, rsi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov r8, rdi
call fcn.14004f600
mov rbp, qword [rsp + 0x68]
mov rax, rdi
mov qword [rbx + 0x48], rdi
mov qword [rbx + 0x50], rsi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
xor r9d, r9d
mov r8d, edi
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
test eax, eax
jns 0x1400058a3
call fcn.1400371bc
cmp dword [rax], 4
je 0x140005880
mov rbp, qword [rsp + 0x68]
mov rax, rbx
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400058c0
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x260
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rax, qword [rcx + 8]
mov rbp, r8
mov r10, qword [rcx + 0x28]
mov r14, rdx
mov r9, qword [rcx + 0x20]
mov rdi, rcx
mov qword [rsp + 0x48], rax
lea esi, [rax + 1]
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], r9d
mov dword [rsp + 0x34], r10d
nop word [rax + rax]
lea rax, [rsp + 0x30]
xor r9d, r9d
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, esi
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
test eax, eax
jns 0x14000594c
call fcn.1400371bc
cmp dword [rax], 4
je 0x140005920
test ebx, ebx
jle 0x140005989
mov rcx, qword [rdi + 8]
call fcn.140003dd0
test al, al
je 0x140005989
mov rdi, qword [rdi + 8]
xor r9d, r9d
mov r8d, ebp
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
test eax, eax
jns 0x140005984
call fcn.1400371bc
cmp dword [rax], 4
je 0x140005961
mov rax, rbx
jmp 0x140005990
mov rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14002b600
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140005a40
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rcx, qword [rcx + 8]
mov rdi, r8
mov rbx, rdx
mov dword [rsp + 0x20], 0x80
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140005a99
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rdi
mov r8, rbx
call fcn.140004330
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14002b600
mov rbx, qword [rsp + 0xe8]
add rsp, 0xc0
pop rdi
ret
Function at 0x14000cc30
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov byte [rbp - 0x20], 0
call fcn.14002a79c
xor al, 0x53
mov byte [rbp - 0x1f], al
call fcn.14002a79c
mov byte [rbp - 0x1e], al
call fcn.14002a79c
xor al, 0x62
mov byte [rbp - 0x1d], al
call fcn.14002a79c
mov byte [rbp - 0x1c], al
call fcn.14002a79c
xor al, 0x69
mov byte [rbp - 0x1b], al
call fcn.14002a79c
mov byte [rbp - 0x1a], al
call fcn.14002a79c
xor al, 0x65
mov byte [rbp - 0x19], al
call fcn.14002a79c
mov byte [rbp - 0x18], al
call fcn.14002a79c
xor al, 0x44
mov byte [rbp - 0x17], al
call fcn.14002a79c
mov byte [rbp - 0x16], al
call fcn.14002a79c
xor al, 0x6c
mov byte [rbp - 0x15], al
call fcn.14002a79c
mov byte [rbp - 0x14], al
call fcn.14002a79c
xor al, 0x6c
mov byte [rbp - 0x13], al
call fcn.14002a79c
mov byte [rbp - 0x12], al
call fcn.14002a79c
xor al, 0x2e
mov byte [rbp - 0x11], al
call fcn.14002a79c
mov byte [rbp - 0x10], al
call fcn.14002a79c
xor al, 0x64
mov byte [rbp - 0xf], al
call fcn.14002a79c
mov byte [rbp - 0xe], al
call fcn.14002a79c
xor al, 0x6c
mov byte [rbp - 0xd], al
call fcn.14002a79c
mov byte [rbp - 0xc], al
call fcn.14002a79c
xor al, 0x6c
mov byte [rbp - 0xb], al
call fcn.14002a79c
mov byte [rbp - 0xa], al
call fcn.14002a79c
mov byte [rbp - 9], al
call fcn.14002a79c
cmp byte [rbp - 0x20], 0
mov byte [rbp - 8], al
jne 0x14000cd37
mov qword [rsp + 0x50], rbx
xor ebx, ebx
call fcn.14002a79c
xor byte [rbp + rbx - 0x1f], al
inc rbx
cmp rbx, 0x18
jb 0x14000cd20
mov rbx, qword [rsp + 0x50]
lea rcx, [rbp - 0x1f]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x14000cd4c
add rsp, 0x40
pop rbp
ret
mov ecx, 0xffffffff
call fcn.1400323a8
int3
Function at 0x14000dbd0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rbp + 0xc0], rax
xor esi, esi
lea r8, [rbp - 0x80]
mov rdi, rdx
mov qword [rbp - 0x80], rsi
mov rbx, rcx
mov qword [rbp - 0x78], rsi
mov qword [rbp - 0x70], rsi
lea r9d, [rsi + 0x40]
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x58], rsi
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], rsi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x14000dc84
lea rdx, str.____An_error_is_occured_when_trying_to_get_the_target_DOS_header._n
lea rcx, [rsp + 0x30]
call fcn.1400149b0
mov rsi, rax
cmp byte [rax], 0
jne 0x14000dc71
lea rbx, [rax + 1]
mov edi, 0x43
nop dword [rax]
call fcn.14002a79c
xor byte [rbx], al
lea rbx, [rbx + 1]
sub rdi, 1
jne 0x14000dc60
lea rcx, [rsi + 1]
call fcn.140001290
mov eax, 0xffffffff
jmp 0x14000dd85
movsxd rdx, dword [rbp - 0x44]
lea r8, [rbp - 0x40]
add rdx, rdi
mov dword [rbp - 0x40], esi
mov r9d, 0xf8
mov qword [rbp - 0x3c], rsi
mov rcx, rbx
mov qword [rbp - 0x34], rsi
mov qword [rbp - 0x2c], rsi
mov qword [rbp - 0x24], rsi
mov qword [rbp - 0x1c], rsi
mov qword [rbp - 0x14], rsi
mov qword [rbp - 0xc], rsi
mov qword [rbp - 4], rsi
mov dword [rbp + 4], esi
mov qword [rbp + 8], rsi
mov qword [rbp + 0x10], rsi
mov dword [rbp + 0x18], esi
mov qword [rbp + 0x1c], rsi
mov qword [rbp + 0x24], rsi
mov qword [rbp + 0x2c], rsi
mov qword [rbp + 0x34], rsi
mov qword [rbp + 0x3c], rsi
mov qword [rbp + 0x44], rsi
mov qword [rbp + 0x4c], rsi
mov qword [rbp + 0x54], rsi
mov qword [rbp + 0x5c], rsi
mov qword [rbp + 0x64], rsi
mov qword [rbp + 0x6c], rsi
mov qword [rbp + 0x74], rsi
mov qword [rbp + 0x7c], rsi
mov qword [rbp + 0x84], rsi
mov qword [rbp + 0x8c], rsi
mov qword [rbp + 0x94], rsi
mov qword [rbp + 0x9c], rsi
mov qword [rbp + 0xa4], rsi
mov qword [rbp + 0xac], rsi
mov dword [rbp + 0xb4], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x14000dd81
lea rdx, str.____An_error_is_occured_when_trying_to_get_the_target_NT_header._n
lea rcx, [rsp + 0x30]
call fcn.140014700
mov rsi, rax
cmp byte [rax], 0
jne 0x14000dd71
lea rbx, [rax + 1]
mov edi, 0x42
nop
call fcn.14002a79c
xor byte [rbx], al
lea rbx, [rbx + 1]
sub rdi, 1
jne 0x14000dd60
lea rcx, [rsi + 1]
call fcn.140001290
mov eax, 0xffffffff
jmp 0x14000dd85
movzx eax, word [rbp + 0x1c]
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.14002b600
mov rbx, qword [rsp + 0x200]
add rsp, 0x1d0
pop rdi
pop rsi
pop rbp
ret