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

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140005494
cmp word [rcx], 0x5a4d
jne 0x140005494
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140005494
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005494
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.1400053a0
test eax, eax
jne 0x1400054b0
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140005410
test rax, rax
je 0x1400054a5
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.140005c53
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140005b60
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140005b00
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140005fa4
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x1409b7038]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x1409b7034]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140005ff2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140005fea
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400060d9
inc ebx
add rax, 0x28
jmp 0x140005fca
mov rcx, r12
call fcn.1400067d1
mov rbp, rax
test rax, rax
jne 0x140006011
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140005f40
movsxd rbx, ebx
mov rax, qword [0x1409b7038]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.14000687f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1409b7038]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140006073
mov rax, qword [0x1409b7038]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140005f40
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400060d3
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400060d3
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 [0x1409b7038]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400060d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140005f40
inc dword [0x1409b7034]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140006500
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x1409b70a0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1409b7080]
test rbx, rbx
je 0x14000654c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140006546
test eax, eax
jne 0x140006546
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x14000651e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140006700
Capabilities:
Parse pe header

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

Function at 0x140006724
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x14000675e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140006755
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140006760
inc r8d
add rax, 0x28
jmp 0x14000673c
xor eax, eax
ret

Function at 0x1400067d1
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1409b0b10]
mov r8, rcx
mov rcx, r9
call fcn.140006700
test eax, eax
je 0x1400067fd
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140006724
xor eax, eax
add rsp, 0x28
ret
Function at 0x140004884
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.140012b50
mov r15, qword [0x140020514]
cmp r15, 1
jne 0x140004953
push qword [0x140020604]
pop rcx
call fcn.14000dd04
mov r15, rax
and r15, r15
jle 0x1400048e9
mov rcx, qword [0x140020604]
call fcn.14000dd0c
mov rcx, qword [0x140020604]
call fcn.14000dd20
or rax, rax
je 0x1400048e9
mov rbp, qword [0x14002060c]
push qword [rbp + 0x10]
pop rcx
call fcn.14000e1bc
jmp 0x1400048c6
push qword [0x1400205f4]
pop rcx
call fcn.14000dd04
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x140004953
push 5
push 0
push 1
push qword [0x1400205f4]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140009060
mov rcx, qword [0x1400205f4]
call fcn.14000dd0c
mov rcx, qword [0x1400205f4]
call fcn.14000dd20
or rax, rax
je 0x140004953
mov rbp, qword [0x1400205fc]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x140004930
mov rax, 1
jmp 0x14000495f
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140006b38
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001f190]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x140007204
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021210]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020640]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020640]
call fcn.1400123b8
lea rcx, [0x140021210]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sbb edx, dword [rdx + 0x27]
imul ecx, dword [rcx + rdx*4 + 0x2e], 0x24abb363
invalid
invalid
mov bl, 0xab
and al, 0xb5
mov cl, 0xbd
out dx, eax
insb byte [rdi], dx
invalid
add byte [rax + 0x2a], bh
invalid
xor cl, cl
leave
pop rbp
mov al, 0xff
test eax, 0xbddf43f4
retf 0x937b
jae 0x14003f678
jrcxz 0x14003f6ca
invalid
cwde
or byte [rsi + 0x5b43de1d], cl
sbb eax, 0x6c4f39ff
invalid
in al, dx
invalid
fcmovnb st(0), st(1)
invalid
sal al, cl
xor ah, byte [rbp + rcx*2 - 0x66]
cmp byte [rbp + 0x24956346], cl
sub edx, eax
cwde
xchg esi, eax
mov eax, 0x72b2f21f
test eax, 0xd44e876b
xchg dword [rsi - 0x2c], ecx
xchg dword [rsi - 0x2c], ecx
mov ebx, 0x19d20f57
jne 0x14003f6ba
stc
jge 0x14003f68d
test byte [rbp + 0x6b], dil
stosd dword [rdi], eax
mov ah, 0x41
loop 0x14003f707
inc dword [rdx - 0x5b]
movsd dword [rdi], dword [rsi]
pop rsi
invalid
ficomp word [rcx + rdi*4 + 0x72]
in eax, 0x2c
hlt
Function at 0x403c90
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
cmp byte [0x00416080], 0
je 0x403d48
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rdi, rax
mov rcx, rsi
call fcn.00408cc0
mov rcx, rdi
mov rdx, rsi
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rsi, rax
mov rcx, qword [0x00413090]
call fcn.00408cc0
mov rcx, rsi
mov rdx, qword [0x00413090]
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rsi, rax
mov rcx, rbx
call fcn.00408cc0
mov rcx, rsi
mov rdx, rbx
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x403d5b
xor ecx, ecx
mov rdx, rbx
mov r8, rsi
mov r9d, 0x2010
call sub.user32.dll_MessageBoxA
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x406a40
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbp
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov ebx, edx
mov rax, qword [rbp + 0x28]
mov r13d, dword [rax + 0x18]
mov rcx, qword [rbp + 0x28]
call fcn.00407090
mov esi, eax
test sil, sil
jne 0x406bf5
test ebx, ebx
je 0x406bf5
xor edi, edi
test r13d, r13d
jle 0x406b21
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov dword [rbp + 0x3c], 0
test r13d, r13d
jle 0x406b05
cmp ebx, 0xffffffff
je 0x406ab3
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x406ab3
xor esi, esi
jmp 0x406bf5
mov rax, qword [rbp + 0x28]
cmp dword [rax], 1
jg 0x406b05
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0
jne 0x406af3
xor eax, eax
mov ecx, 1
mov rdx, qword [rbp + 0x28]
lock cmpxchg dword [rdx], ecx
test eax, eax
jne 0x406af3
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov sil, 1
jmp 0x406bf5
lea rcx, [rbp + 0x3c]
call fcn.004065e0
sub r13d, 1
test r13d, r13d
jg 0x406a9a
nop
cmp ebx, 0xffffffff
je 0x406b21
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x406b1f
xor esi, esi
jmp 0x406bf5
sub ebx, eax
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x406a5d
mov edx, ecx
add edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x406b21
nop
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov rcx, qword [rbp + 0x28]
call fcn.00406ca0
xor ecx, ecx
mov rdx, rax
mov r8d, ebx
mov rax, qword [0x00416978]
call qword [rax + 0x20]
test eax, eax
sete sil
cmp ebx, 0xffffffff
je 0x406b84
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jae 0x406b82
sub ebx, eax
jmp 0x406b84
xor ebx, ebx
test sil, sil
je 0x406bb6
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov eax, ecx
test eax, 1
jne 0x406bb3
mov edx, ecx
sub edx, 2
or edx, 1
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x406b89
mov dil, 1
nop
jmp 0x406bd3
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov edx, ecx
sub edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x406bb6
mov dil, 1
test dil, dil
je 0x406b44
nop
test sil, sil
je 0x406bf5
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov eax, esi
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop r13
pop r14
pop rbp
ret
Function at 0x408440
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x00416080], 0
je 0x4084da
cmp word [0x00416390], 0xd7b2
jne 0x408473
cmp dword [0x00416398], 0
jbe 0x408473
lea rcx, [0x00416388]
call qword [0x004163b0]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, str.Runtime_error_____at_0000000000000000
mov r8d, 0x25
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rbx, rax
lea rcx, [0x00408510]
call fcn.00408e20
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x4084fb
cmp byte [0x0041302a], 0
jne 0x4084fb
xor ecx, ecx
lea rdx, str.Runtime_error_____at_0000000000000000
lea r8, str.Error
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x4087c0
Capabilities:
Create thread

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x48
mov qword [rsp + 0x38], rcx
mov ebx, edx
mov rsi, r8
mov rdi, r9
cmp qword [0x00413030], 0
je 0x4087f1
mov rcx, rsi
mov rdx, rdi
call qword [0x00413030]
mov r13, rax
jmp 0x408806
mov ecx, 0x10
call fcn.00404c60
mov r13, rax
mov qword [r13], rsi
mov qword [r13 + 8], rdi
mov byte [0x00416081], 1
mov rcx, qword [rsp + 0x38]
mov edx, ebx
lea r8, [0x00408750]
mov r9, r13
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x28], rax
call sub.kernel32.dll_CreateThread
mov rbx, rax
test rbx, rbx
jne 0x40884b
mov rcx, r13
call fcn.00404c90
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x409f70
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x0041aec8]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x0041aef0], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x0041aec0], al
cmp byte [0x0041aec0], 0
je 0x40a00f
lea rcx, [0x0040a014]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040a02e]
call sub.kernel32.dll_GetProcAddress
mov qword [0x0041aea8], rax
lea rcx, [0x0040a014]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040a04c]
call sub.kernel32.dll_GetProcAddress
mov qword [0x0041aeb0], rax
lea rcx, [0x0040a014]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040a06a]
call sub.kernel32.dll_GetProcAddress
mov qword [0x0041aeb8], rax
add rsp, 0x28
ret

Function at 0x40c170
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x40c190
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
call sub.kernel32.dll_GetVersion
mov ecx, eax
and ecx, 0xff
and eax, 0xff00
shr eax, 8
cmp ecx, 5
jne 0x40c1b4
cmp eax, 1
jae 0x40c1b9
cmp ecx, 5
jbe 0x40c1c5
mov dword [0x00416a08], 0x7f
jmp 0x40c1cf
mov dword [0x00416a08], 0x409
add rsp, 0x28
ret
Function at 0x40c460
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.0040c450
mov ebx, eax
test ebx, ebx
je 0x40c4a9
cmp dword [0x00414d70], 0xffffffff
jne 0x40c483
mov ecx, 0xe2
call fcn.004086d0
mov ecx, ebx
call fcn.0040c430
test rax, rax
jne 0x40c49b
mov ecx, 0xe2
call fcn.004086d0
jmp 0x40c4a9
mov ecx, dword [0x00414d70]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret

Function at 0x40c4b0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x0041c198], 0
je 0x40c4eb
mov ecx, dword [0x00414d70]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40c4fe
call fcn.0040c460
mov ecx, dword [0x00414d70]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40c4fe
mov rax, qword [0x0041c1d0]
jmp 0x40c4fe
mov rax, qword gs:[0x58]
mov ecx, dword [0x00414d70]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret

Function at 0x40e570
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x20], rcx
mov dword [rbp + 0x2c], r8d
mov qword [rbp + 0x58], rdx
mov rcx, qword [rbp + 0x58]
call fcn.00408a90
nop
mov rcx, qword [rbp + 0x20]
call fcn.0040e660
mov rax, qword [rbp + 0x58]
mov rcx, qword [rbp + 0x20]
mov qword [rcx + 8], rax
mov ecx, 2
mov edx, 1
mov r8d, 6
call sub.wsock32.dll_socket
mov rcx, qword [rbp + 0x20]
mov qword [rcx + 0x20], rax
mov word [rbp + 0x30], 2
mov ecx, dword [rbp + 0x2c]
call sub.wsock32.dll_htons
mov word [rbp + 0x32], ax
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 8]
call sub.wsock32.dll_inet_addr
mov dword [rbp + 0x34], eax
movsxd rax, eax
mov ecx, 0xffffffff
cmp rax, rcx
jne 0x40e60d
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 8]
call sub.wsock32.dll_gethostbyname
test rax, rax
je 0x40e62d
mov rax, qword [rax + 0x18]
mov rax, qword [rax]
mov eax, dword [rax]
mov dword [rbp + 0x34], eax
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 0x20]
lea rdx, [rbp + 0x30]
mov r8d, 0x10
call sub.wsock32.dll_connect
mov rax, qword [rbp + 0x20]
mov byte [rax + 0x1c], 1
nop
lea rcx, [rbp + 0x58]
call fcn.004088c0
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x40e850
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push rbp
push rbx
sub rsp, 0x38
mov rbp, rsp
mov rbx, rcx
cmp r8d, 0xffffffff
jne 0x40e88a
mov rcx, qword [rbx + 0x20]
mov edx, 0x4004667f
lea r8, [rbp + 0x2c]
call sub.wsock32.dll_ioctlsocket
cmp eax, 0xffffffff
jne 0x40e8cf
mov dword [rbp + 0x2c], 0xffffffff
mov rcx, rbx
call fcn.0040e660
jmp 0x40e8cf
mov rcx, qword [rbx + 0x20]
xor r9, r9
call sub.wsock32.dll_recv
mov dword [rbp + 0x2c], eax
cmp dword [rbp + 0x2c], 0
jne 0x40e8a7
mov rcx, rbx
call fcn.0040e660
cmp dword [rbp + 0x2c], 0xffffffff
jne 0x40e8cf
call sub.wsock32.dll_WSAGetLastError
mov dword [rbp + 0x2c], eax
cmp dword [rbp + 0x2c], 0x2733
jne 0x40e8c7
mov dword [rbp + 0x2c], 0
jmp 0x40e8cf
mov rcx, rbx
call fcn.0040e660
mov eax, dword [rbp + 0x2c]
lea rsp, [rbp + 0x38]
pop rbx
pop rbp
ret
Function at 0x40e940
Capabilities:
Send data
Send data on socket

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rcx, qword [rbx + 0x20]
xor r9, r9
call sub.wsock32.dll_send
mov esi, eax
cmp esi, 0xffffffff
jne 0x40e976
call sub.wsock32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x40e96e
or esi, 0xffffffff
jmp 0x40e976
mov rcx, rbx
call fcn.0040e660
mov eax, esi
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x40f290
Capabilities:
Set socket configuration

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x38], 0
nop
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax + 0x20]
mov edx, 0x8004667e
lea r8, [0x0041c3e4]
call sub.WS2_32.DLL_ioctlsocket_1
mov byte [0x0041c3e0], 1
jmp 0x40f32a
mov rcx, qword [rbp + 0x28]
lea rdx, [rbp + 0x38]
call fcn.0040e8e0
xor eax, eax
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x40f2e1
mov eax, dword [rcx - 4]
test eax, eax
jle 0x40f32a
jmp 0x40f30e
mov rcx, qword [rbp + 0x28]
lea rdx, [rbp + 0x38]
call fcn.0040e8e0
xor eax, eax
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x40f302
mov eax, dword [rcx - 4]
test eax, eax
mov ecx, 1
call sub.kernel32.dll_Sleep
mov rax, qword [rbp + 0x28]
cmp byte [rax + 0x1c], 0
jne 0x40f2e7
mov rcx, qword [rbp + 0x28]
call fcn.0040e660
mov rcx, qword [rbp + 0x28]
call fcn.00405be0
mov rax, qword [rbp + 0x28]
cmp byte [rax + 0x1c], 0
jne 0x40f2c6
nop
lea rcx, [rbp + 0x38]
call fcn.004088c0
lea rsp, [rbp + 0x40]
pop rbp
ret
Function at 0x140008030
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov r10, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor esi, esi
cmp byte [r8 + 7], sil
je 0x140008064
mov eax, esi
lea ecx, [rax - 0x65]
xor byte [r8 + rax], cl
inc rax
cmp rax, 6
jb 0x140008050
mov byte [r8 + 7], sil
add r8, 6
lea r9, [rsp + 0x20]
mov rdx, r10
lea rcx, [rsp + 0x30]
call fcn.140006c90
nop
mov r9, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140008089
mov rbx, qword [rbx]
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1400137c0
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140008103
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400080fe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400080fe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006837c
mov rax, rdi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret

Function at 0x140008110
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov r10, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor esi, esi
cmp byte [r8 + 9], sil
je 0x140008144
mov eax, esi
lea ecx, [rax - 0x65]
xor byte [r8 + rax], cl
inc rax
cmp rax, 8
jb 0x140008130
mov byte [r8 + 9], sil
add r8, 8
lea r9, [rsp + 0x20]
mov rdx, r10
lea rcx, [rsp + 0x30]
call fcn.140006c90
nop
mov r9, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140008169
mov rbx, qword [rbx]
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1400137c0
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x1400081e3
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400081de
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400081de
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006837c
mov rax, rdi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret