joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180138150
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x18023993e]
call fcn.180141ee0
nop
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x1801381a8
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x1801382ba
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x180138253
cmp qword [rbp + 0x28], 0
jle 0x180138253
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x1801381f1
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.18000f110
nop
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
nop
cmp qword [rbp + 0x130], 0
jle 0x1801382a9
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x1801382a9
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x18013c270
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x38
cmp dword [0x180229650], 0
je 0x18013c284
xor eax, eax
jmp 0x18013c4ed
cmp qword [0x180229648], 0
je 0x18013c29a
mov rax, qword [0x180229648]
jmp 0x18013c4ed
mov r8d, 0x48
xor edx, edx
lea rcx, [0x180229600]
call sub.VCRUNTIME140D.dll_memset
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [0x180229600], rax
xor r8d, r8d
xor edx, edx
lea rcx, [0x180195db8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [0x180229608], rax
cmp qword [0x180229608], 0
jne 0x18013c353
mov dword [0x180229650], 1
cmp qword [0x180229608], 0
je 0x18013c2ff
mov rcx, qword [0x180229608]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x180229610], 0
mov qword [0x180229618], 0
mov qword [0x180229620], 0
mov qword [0x180229628], 0
mov qword [0x180229630], 0
mov qword [0x180229638], 0
mov qword [0x180229640], 0
xor eax, eax
jmp 0x18013c4ed
lea rdx, str.ImagehlpApiVersionEx
mov rcx, qword [0x180229608]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180229610], rax
lea rdx, str.SymInitialize
mov rcx, qword [0x180229608]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180229618], rax
lea rdx, str.SymSetOptions
mov rcx, qword [0x180229608]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180229620], rax
lea rdx, str.SymGetOptions
mov rcx, qword [0x180229608]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180229628], rax
lea rdx, str.SymLoadModule64
mov rcx, qword [0x180229608]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180229630], rax
lea rdx, str.SymGetModuleInfo64
mov rcx, qword [0x180229608]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180229638], rax
lea rdx, str.SymFromName
mov rcx, qword [0x180229608]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180229640], rax
mov r8d, 8
xor edx, edx
lea rcx, [rsp + 0x28]
call sub.VCRUNTIME140D.dll_memset
mov eax, recv
mov word [rsp + 0x28], ax
cmp qword [0x180229610], 0
je 0x18013c45e
cmp qword [0x180229618], 0
je 0x18013c45e
cmp qword [0x180229630], 0
je 0x18013c45e
cmp qword [0x180229638], 0
je 0x18013c45e
cmp qword [0x180229640], 0
jne 0x18013c463
jmp 0x18013c2de
lea rcx, [rsp + 0x28]
call qword [0x180229610]
movzx eax, word [rsp + 0x28]
cmp eax, 0xc
jge 0x18013c47d
jmp 0x18013c2de
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x180229600]
call qword [0x180229618]
test eax, eax
jne 0x18013c498
jmp 0x18013c2de
cmp qword [0x180229628], 0
je 0x18013c4d8
cmp qword [0x180229620], 0
je 0x18013c4d8
call qword [0x180229628]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
and eax, 0xfffffff8
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
or eax, 0x2704
mov dword [rsp + 0x20], eax
mov ecx, dword [rsp + 0x20]
call qword [0x180229620]
lea rax, [0x180229600]
mov qword [0x180229648], rax
mov rax, qword [0x180229648]
add rsp, 0x38
ret
Function at 0x18013d070
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [rsp + 0x90]
add rax, 0x10000
mov qword [rsp + 0x30], rax
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140D.dll_memset
jmp 0x18013d0b8
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov r8d, 0x30
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
ja 0x18013d0d8
jmp 0x18013d175
cmp dword [rsp + 0x68], 0x1000
jne 0x18013d0fd
mov eax, dword [rsp + 0x6c]
and eax, 0xff
cmp eax, 1
je 0x18013d0fd
mov eax, dword [rsp + 0x6c]
and eax, 0x100
test eax, eax
je 0x18013d0ff
jmp 0x18013d0a3
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x18013d135
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, qword [rsp + 0x60]
ja 0x18013d135
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, 0x40
jae 0x18013d13a
jmp 0x18013d0a3
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x4550
jne 0x18013d0a3
mov rax, qword [rsp + 0x20]
jmp 0x18013d177
xor eax, eax
add rsp, 0x88
ret

Function at 0x18013d730
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140D.dll_memset
nop
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
ja 0x18013d77c
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18013d84a
cmp dword [rsp + 0x60], 0x1000
jne 0x18013d7a1
mov eax, dword [rsp + 0x64]
and eax, 0xff
cmp eax, 1
je 0x18013d7a1
mov eax, dword [rsp + 0x64]
and eax, 0x100
test eax, eax
je 0x18013d7b3
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18013d84a
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x18013d7db
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18013d84a
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x18013d810
mov ecx, 0xbf
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18013d84a
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
test eax, eax
jne 0x18013d82c
mov ecx, 0xc0
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18013d84a
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsp + 0x28]
jmp 0x18013d84a
add rsp, 0x78
ret
Function at 0x18013efe0
Capabilities:
Suspend thread

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, recv
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x40]
mov qword [rax], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 8], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0xc], 0
mov rcx, qword [rsp + 0x40]
call fcn.18013edd0
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x18013f0b7
mov dword [rsp + 0x20], 0
jmp 0x18013f054
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x20], eax
jae 0x18013f0b7
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov r8d, dword [rcx + rax*4]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18013f0b5
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, dword [rsp + 0x50]
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
call fcn.18013ebb0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18013f04a
add rsp, 0x30
pop rdi
ret

Function at 0x18013f0d0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, recv
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x18013f174
mov dword [rsp + 0x20], 0
jmp 0x18013f10d
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x20], eax
jae 0x18013f15d
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov r8d, dword [rcx + rax*4]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18013f15b
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18013f103
mov rax, qword [rsp + 0x40]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x180229660]
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x30
pop rdi
ret
Function at 0x18013f180
Capabilities:
Allocate or change rwx memory

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x70
mov rdi, rsp
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x80]
mov eax, dword [rsp + 0x80]
imul rax, rax, 0x38
mov rcx, qword [0x180229cb0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x48], 5
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x18013f204
mov rax, qword [rsp + 0x50]
sub rax, 5
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
add rax, 2
mov qword [rsp + 0x48], rax
lea r9, [rsp + 0x34]
mov r8d, 0x40
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18013f22d
mov eax, 0xa
jmp 0x18013f367
cmp dword [rsp + 0x88], 0
je 0x18013f29b
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov byte [rax], 0xe9
mov rax, qword [rsp + 0x50]
add rax, 5
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 8]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x58]
mov dword [rcx + 1], eax
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x18013f299
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov byte [rax], 0xeb
mov rax, qword [rsp + 0x60]
mov byte [rax + 1], 0xf9
jmp 0x18013f2e7
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x18013f2cb
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov r8d, 7
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call sub.VCRUNTIME140D.dll_memcpy
jmp 0x18013f2e7
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov r8d, 5
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call sub.VCRUNTIME140D.dll_memcpy
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx eax, byte [rsp + 0x88]
and al, 1
shl al, 1
mov rcx, qword [rsp + 0x20]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfd
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x20]
mov byte [rcx + 0x20], al
movzx eax, byte [rsp + 0x88]
and al, 1
shl al, 2
mov rcx, qword [rsp + 0x20]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfb
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x20]
mov byte [rcx + 0x20], al
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1801960a0]
call fcn.180141cb0
mov rax, rdi
add rsp, 0x70
pop rdi
ret
Function at 0x180140850
Capabilities:
Check for software breakpoints

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x10
mov rdi, rsp
mov ecx, 4
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x20]
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
test eax, eax
je 0x1801408be
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
cmp eax, 0x90
je 0x1801408be
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
cmp eax, 0xcc
je 0x1801408be
xor eax, eax
jmp 0x180140905
mov dword [rsp], 1
jmp 0x1801408cf
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp], eax
jae 0x180140900
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x20]
movzx ecx, byte [rdx + rcx]
cmp eax, ecx
je 0x1801408fe
xor eax, eax
jmp 0x180140905
jmp 0x1801408c7
mov eax, 1
add rsp, 0x10
pop rdi
ret
Function at 0x140003df0
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x140003e14
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x140003ea2
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140003e70
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x140003e70
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.14005d9c0
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140003e8d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140003e95
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x140003e31
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x140003f80
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x140003eb9
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140003ebb
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140003eed
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.14005d9c0
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140003f7d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140003f28
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x140003f5e
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.14003f710
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x140003f7d
cmp rsi, rax
ja 0x140003f31
test rsi, rsi
je 0x140003f7d
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14003f710
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
Function at 0x1400076c0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140077040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rcx
mov rcx, qword [0x14007afe8]
test rcx, rcx
je 0x1400076f9
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [0x14007afe8], 0
mov edi, 2
mov edx, 1
mov ecx, edi
mov r8d, 6
call qword [sym.imp.WS2_32.dll_socket]
mov ecx, 0x6978
mov word [rsp + 0x20], di
mov qword [0x14007afe8], rax
mov eax, dword [0x14007ae4c]
mov dword [rsp + 0x24], eax
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [0x14007afe8]
lea rdx, [rsp + 0x20]
mov r8d, reloc.WS2_32.dll_recv
mov word [rsp + 0x22], ax
call qword [sym.imp.WS2_32.dll_connect]
mov rcx, qword [0x14007afe8]
mov r9d, 0x23
mov r8d, 0x8001
mov rdx, rbx
call qword [sym.imp.WS2_32.dll_WSAAsyncSelect]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14000f0b0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140007790
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
movzx ebx, r8w
movzx r15d, cx
mov esi, r8d
mov r14, rdx
lea rcx, [rbx + 0x10]
call fcn.140041210
mov rdi, rax
test rax, rax
je 0x14000790e
movzx ecx, r15w
call qword [sym.imp.WS2_32.dll_htons]
xor ecx, ecx
mov word [rdi], ax
call qword [sym.imp.WS2_32.dll_htons]
mov ecx, 0xffffffff
mov word [rdi + 2], ax
call qword [sym.imp.WS2_32.dll_ntohl]
xor ecx, ecx
mov word [rdi + 8], 1
mov dword [rdi + 4], eax
call qword [sym.imp.WS2_32.dll_htons]
xor ecx, ecx
mov word [rdi + 0xa], ax
call qword [sym.imp.WS2_32.dll_htons]
lea ecx, [rbx + 2]
mov word [rdi + 0xc], ax
call qword [sym.imp.WS2_32.dll_ntohs]
mov r8d, esi
lea rcx, [rdi + 0x10]
mov rdx, r14
mov word [rdi + 0xe], ax
call fcn.14005d9c0
lea r8d, [rbx + 0x1a]
mov eax, 8
mov ecx, r8d
and ecx, 7
sub eax, ecx
test ecx, ecx
cmove eax, ecx
add eax, r8d
movsxd rcx, eax
add rcx, 0x12
mov dword [rsp + 0x70], eax
call fcn.140041210
mov rsi, rax
test rax, rax
je 0x14000790e
lea r9, [rax + 0x12]
mov rcx, rdi
lea rax, [rsp + 0x70]
lea edx, [rbx + 0x10]
mov qword [rsp + 0x20], rax
call fcn.1400014b0
mov ebx, dword [rsp + 0x70]
mov rcx, rdi
add ebx, 0x12
call fcn.14003f2ec
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_htonl]
mov ecx, reloc.WS2_32.dll_WSACleanup
mov dword [rsi], eax
call qword [sym.imp.WS2_32.dll_ntohs]
xor ecx, ecx
mov word [rsi + 4], ax
call qword [sym.imp.WS2_32.dll_htons]
xor ecx, ecx
mov word [rsi + 6], ax
call qword [sym.imp.WS2_32.dll_ntohl]
xor ecx, ecx
mov dword [rsi + 8], eax
call qword [sym.imp.WS2_32.dll_ntohl]
mov word [rsi + 0x10], 1
mov rdi, rsi
mov dword [rsi + 0xc], eax
test ebx, ebx
jle 0x140007906
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [0x14007afe8]
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x140007906
movsxd rcx, eax
sub ebx, eax
add rdi, rcx
test ebx, ebx
jg 0x1400078e0
mov rcx, rsi
call fcn.14003f2ec
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140007ab0
Capabilities:
Receive data
Receive data on socket

Disassembly:
cmp r8w, 1
jne 0x140007d1b
push r12
mov eax, 0x1060
call fcn.14005d140
sub rsp, rax
mov rax, qword [0x140077040]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov r10, rdx
mov qword [rsp + 0x1080], rbx
mov r12, rcx
mov qword [rsp + 0x1050], rsi
mov rcx, r10
lea rdx, [rsp + 0x20]
xor r9d, r9d
lea rsi, [rsp + 0x20]
mov r8d, 0x1000
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test eax, eax
jle 0x140007cf2
mov qword [rsp + 0x1030], r15
mov r15, qword [0x14007afc8]
mov qword [rsp + 0x1058], rbp
mov qword [rsp + 0x1048], rdi
mov qword [rsp + 0x1040], r13
mov qword [rsp + 0x1038], r14
test r15, r15
je 0x140007c60
mov r14, qword [0x14007afd8]
cmp r14, 4
jae 0x140007b9a
mov edi, 4
lea rcx, [r14 + r15]
sub edi, r14d
lea rdx, [rsp + 0x20]
cmp eax, edi
cmovl edi, eax
movsxd rsi, edi
mov r8, rsi
call fcn.14005d9c0
lea rax, [rsi + r14]
mov qword [0x14007afd8], rax
cmp rax, 4
jb 0x140007cca
lea rsi, [rsp + rsi + 0x20]
sub ebx, edi
mov ecx, dword [r15]
call qword [sym.imp.WS2_32.dll_ntohl]
mov r15, qword [0x14007afd8]
mov ebp, eax
sub ebp, r15d
movsxd r14, eax
cmp r14, qword [0x14007afd0]
jle 0x140007bed
mov rcx, qword [0x14007afc8]
mov rdx, r14
mov qword [0x14007afd0], r14
call fcn.14003ffa0
mov rdi, rax
test rax, rax
je 0x140007cca
mov r15, qword [0x14007afd8]
mov qword [0x14007afc8], rax
jmp 0x140007bf4
mov rdi, qword [0x14007afc8]
test ebp, ebp
js 0x140007c3d
cmp ebx, ebp
lea rcx, [r15 + rdi]
mov rdx, rsi
cmovl ebp, ebx
movsxd r13, ebp
mov r8, r13
call fcn.14005d9c0
lea rax, [r15 + r13]
mov qword [0x14007afd8], rax
cmp rax, r14
jl 0x140007cca
mov r8, r14
mov rdx, rdi
mov rcx, r12
call fcn.140007930
mov rdi, qword [0x14007afc8]
add rsi, r13
sub ebx, ebp
mov rcx, rdi
call fcn.14003f2ec
xor eax, eax
mov qword [0x14007afc8], rax
mov qword [0x14007afd8], rax
test ebx, ebx
jle 0x140007cca
nop dword [rax]
mov r14d, ebx
cmp r14, 4
jae 0x140007c70
mov edi, 4
jmp 0x140007c7a
mov ecx, dword [rsi]
call qword [sym.imp.WS2_32.dll_ntohl]
mov edi, eax
movsxd rbp, edi
cmp edi, ebx
jg 0x140007c9a
mov r8, rbp
mov rdx, rsi
mov rcx, r12
call fcn.140007930
add rsi, rbp
sub ebx, edi
test ebx, ebx
jg 0x140007c60
jmp 0x140007cca
mov rcx, rbp
mov qword [0x14007afd0], rbp
call fcn.140041210
test rax, rax
je 0x140007cca
mov r8, r14
mov qword [0x14007afc8], rax
mov rdx, rsi
mov rcx, rax
call fcn.14005d9c0
mov qword [0x14007afd8], r14
mov r14, qword [rsp + 0x1038]
mov r13, qword [rsp + 0x1040]
mov rdi, qword [rsp + 0x1048]
mov rbp, qword [rsp + 0x1058]
mov r15, qword [rsp + 0x1030]
mov rbx, qword [rsp + 0x1080]
mov rsi, qword [rsp + 0x1050]
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14000f0b0
add rsp, 0x1060
pop r12
ret