joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401b2d00
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
xor ebx, ebx
mov r11, rdx
mov r9, rcx
mov r10d, ebx
cmp r8, 8
jb 0x1401b2d47
mov rcx, r8
shr rcx, 3
imul rax, rcx, 0xfffffffffffffff8
add r8, rax
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [r9]
add r9, 8
xor rax, qword [r11]
add r11, 8
or r10, rax
sub rcx, 1
jne 0x1401b2d30
mov rdx, r10
shr rdx, 0x20
or edx, r10d
mov eax, edx
mov ecx, edx
shr eax, 8
or eax, edx
shr ecx, 0x10
and eax, 0xff00
or eax, ecx
movzx ecx, dl
shr eax, 8
or eax, ecx
test r8, r8
je 0x1401b2e47
cmp r8, 8
jb 0x1401b2e23
mov rdx, r8
lea r10, [r11 + 4]
and rdx, 0xfffffffffffffff8
mov rcx, r9
sub rcx, r11
xorps xmm4, xmm4
xorps xmm3, xmm3
nop word [rax + rax]
movd xmm2, dword [rcx + r10 - 4]
xorps xmm0, xmm0
movd xmm1, dword [r10 - 4]
lea r10, [r10 + 8]
punpcklbw xmm2, xmm0
add rbx, 8
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
movd xmm1, dword [r10 - 8]
punpcklbw xmm1, xmm0
por xmm4, xmm2
movd xmm2, dword [rcx + r10 - 8]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
por xmm3, xmm2
cmp rbx, rdx
jb 0x1401b2da0
por xmm3, xmm4
movdqa xmm0, xmm3
psrldq xmm0, 8
por xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
por xmm3, xmm0
movd ecx, xmm3
or eax, ecx
cmp rbx, r8
jae 0x1401b2e47
sub r9, r11
lea r10, [rbx + r11]
sub r8, rbx
nop dword [rax]
movzx edx, byte [r10 + r9]
movzx ecx, byte [r10]
lea r10, [r10 + 1]
xor edx, ecx
or eax, edx
sub r8, 1
jne 0x1401b2e30
mov rbx, qword [rsp + 8]
test eax, eax
sete al
ret

Function at 0x1401b7f00
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1d0
mov rax, qword [0x1402bf270]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov eax, dword [0x140323154]
mov ebx, ecx
mov r8d, eax
inc eax
mov dword [0x140323154], eax
test r8d, r8d
jne 0x1401b8013
test dl, dl
je 0x1401b7f81
lea rax, [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [0x1402bf180], rax
lea rax, [0x1402696aa]
mov qword [0x1402bf188], rax
lea rax, [0x1402696ec]
mov qword [0x1402bf190], rax
lea rax, case.0x1401c1399.0
mov qword [case.0x1401c1399.0], rax
lea rax, case.0x1401c1399.1
mov qword [case.0x1401c1399.1], rax
call fcn.1401c6970
test eax, eax
je 0x1401b7fbd
test bl, 2
je 0x1401b7fe3
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1401b7fbd
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x1401b7fdb
shr ax, 8
cmp al, 2
jne 0x1401b7fdb
call fcn.1401c5440
test eax, eax
je 0x1401b7fe3
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1402683a0
add rsp, 0x1d0
pop rbx
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x1401b7fbd
call fcn.1401c1700
test eax, eax
jne 0x1401b7fbd
call fcn.1401c2b80
mov eax, dword [0x1403232a0]
test bl, 4
mov ecx, 1
mov dword [0x140323158], ebx
cmovne eax, ecx
mov dword [0x1403232a0], eax
call fcn.1401d07d0
xor eax, eax
jmp 0x1401b7fc2
Function at 0x1401bae70
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
cdqe
add rsp, 0x28
ret
Function at 0x1401cddf0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x1401cde2b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
mov edx, 0x51
cmp eax, 0x2733
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x1401ce2d0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rdi, rcx
mov r15, r8
mov rcx, qword [rcx + 0x240]
mov eax, 0x238
cmp rdx, rcx
mov r8d, 0x240
mov ebx, 0x280
mov r14, r9
cmove eax, r8d
mov rbp, qword [rax + rdi]
mov eax, 0x2a0
cmove ebx, eax
mov rax, qword [rdi + 0x3f0]
add rbx, rdi
xor r12d, r12d
mov rsi, qword [rbx + 8]
sub rsi, qword [rbx + 0x10]
test byte [rax + 0x7c], 3
je 0x1401ce3e9
cmp rdx, rcx
mov eax, 0x260
mov r8d, 0x268
lea rcx, [0x1401cde70]
cmove eax, r8d
cmp qword [rax + rdi], rcx
jne 0x1401ce3e9
cmp qword [rbx], r12
je 0x1401ce36d
test rsi, rsi
je 0x1401ce3e9
mov rdx, 0xffffffffffffffff
xor r9d, r9d
mov r8, rdx
mov rcx, rbp
call fcn.1401cd5d0
cmp eax, 0xffffffff
je 0x1401ce3e9
test al, 1
je 0x1401ce3e9
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1401ce3c8
mov rax, qword [rdi]
mov ecx, dword [rax + 0x6f8]
add ecx, ecx
movsxd rcx, ecx
mov qword [rbx + 8], rcx
call qword [0x1402bf180]
mov rsi, qword [rbx + 8]
mov rcx, rax
mov qword [rbx], rax
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], r12
test rax, rax
jne 0x1401ce3c8
mov qword [rbx + 8], r12
jmp 0x1401ce3e9
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
add rdx, rcx
mov r8d, esi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x1401ce3e9
add qword [rbx + 0x10], rcx
xor r9d, r9d
mov r8d, r14d
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_send]
movsxd rsi, eax
cmp rsi, 0xffffffffffffffff
jne 0x1401ce44c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x1401ce420
mov rcx, qword [rsp + 0x60]
lea eax, [rsi + 0x52]
mov qword [rcx], r12
jmp 0x1401ce457
mov edx, ebx
mov rcx, rdi
call fcn.1401dd3f0
mov rcx, qword [rdi]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.1401cdae0
mov rax, qword [rdi]
mov dword [rax + 0x4c94], ebx
mov eax, gethostname
jmp 0x1401ce44f
mov eax, r12d
mov rcx, qword [rsp + 0x60]
mov qword [rcx], rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1401ce740
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x2b8], 0
mov rsi, r9
mov rbp, r8
movsxd rbx, edx
mov rdi, rcx
je 0x1401ce79e
mov dl, 1
call fcn.1401bccd0
mov rax, qword [rdi + 0x208]
mov r9, rsi
mov r8, rbp
mov qword [rsp + 0x20], rax
mov edx, ebx
mov rcx, rdi
call qword [rdi + 0x2b8]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.1401bccd0
mov eax, ebx
jmp 0x1401ce7eb
mov edx, ebx
test ebx, ebx
je 0x1401ce7ae
sub edx, 1
je 0x1401ce7ae
cmp edx, 1
jne 0x1401ce7e9
mov r9, qword [rdi + 0x200]
lea rax, [0x140274028]
mov edx, 2
lea rcx, [rbx + rbx*2]
add rcx, rax
lea r8d, [rdx - 1]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov r9, qword [rdi + 0x200]
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x2c0], 0
je 0x1401ce91d
call fcn.1401c60f0
test eax, eax
jne 0x1401ce943
xor al, al
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x238]
cmp rcx, 0xffffffffffffffff
je 0x1401ce916
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x1401ce916
mov al, 1
add rsp, 0x28
ret
Function at 0x1401dc740
Capabilities:
Resolve dns

Disassembly:
push rbx
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r13d, r13d
mov r12, r9
mov qword [r9], r13
mov ebx, r13d
lea r9, [rsp + 0x68]
mov r15d, r13d
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r14d, eax
test eax, eax
jne 0x1401dc904
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdi
test rsi, rsi
je 0x1401dc8e4
mov qword [rsp + 0x50], rbp
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x1401dc79d
lea ebp, [rax + 0xe]
jmp 0x1401dc7a9
cmp eax, 0x17
jne 0x1401dc851
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], r13
je 0x1401dc851
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x1401dc851
cmp rax, rbp
jb 0x1401dc851
mov ecx, Ordinal_50
call qword [0x1402bf180]
mov rdi, rax
test rax, rax
je 0x1401dc88c
mov ecx, dword [rsi]
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0xc], ecx
mov rcx, rbp
mov dword [rax + 0x10], ebp
mov qword [rax + 0x20], r13
mov qword [rax + 0x18], r13
mov qword [rax + 0x28], r13
call qword [0x1402bf180]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x1401dc87b
mov rdx, qword [rsi + 0x20]
mov r8, rbp
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x1401dc83e
call qword [case.0x1401c1399.0]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x1401dc860
test rbx, rbx
cmove rbx, rdi
test r15, r15
je 0x1401dc84e
mov qword [r15 + 0x28], rdi
mov r15, rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x1401dc790
jmp 0x1401dc892
mov rcx, qword [rdi + 0x20]
mov r14d, 8
call qword [0x1402bf188]
mov rcx, rdi
call qword [0x1402bf188]
jmp 0x1401dc892
mov rcx, rdi
mov r14d, 8
call qword [0x1402bf188]
jmp 0x1401dc892
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x50]
test rcx, rcx
je 0x1401dc8a7
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r14d, r14d
je 0x1401dc8df
test rbx, rbx
je 0x1401dc8da
mov rcx, qword [rbx + 0x20]
call qword [0x1402bf188]
mov rcx, qword [rbx + 0x18]
call qword [0x1402bf188]
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call qword [0x1402bf188]
mov rbx, rdi
test rdi, rdi
jne 0x1401dc8b1
mov rbx, r13
jmp 0x1401dc8f3
test rbx, rbx
jne 0x1401dc8f3
mov r14d, 0x2af9
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov eax, r14d
mov rsi, qword [rsp + 0x58]
mov qword [r12], rbx
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbx
ret
Function at 0x1401de420
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x1401de44a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExA
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1402a2128]
mov rcx, rbx
mov r14, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strpbrk
test rax, rax
je 0x1401de4ad
mov rcx, rbx
test r14, r14
je 0x1401de497
xor edx, edx
lea r8d, [rdx + 8]
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
test r14, r14
je 0x1401de4e5
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1401de4e5
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x1401de5a8
mov qword [rsp + 0x40], rsi
mov rsi, 0xffffffffffffffff
mov rdx, rsi
nop
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x1401de510
lea ecx, [rax + 1]
add rcx, rdx
call qword [0x1402bf180]
mov rdi, rax
test rax, rax
je 0x1401de59a
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1401de59a
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x1401de540
mov ecx, 0x5c
mov word [rax + rdi], cx
inc rsi
cmp byte [rdi + rsi], bpl
jne 0x1401de554
mov rcx, rdi
sub rcx, rbx
add rcx, rsi
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x1401de570
mov rcx, rdi
test r14, r14
je 0x1401de591
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x1401de597
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [0x1402bf188]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret

Function at 0x1401e0cd0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x148
mov rax, qword [0x1402bf270]
xor rax, rsp
mov qword [rsp + 0x130], rax
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov byte [rsp + 0x20], 0
test rax, rax
je 0x1401e0d36
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x1401e0d36
lea rcx, [rsp + 0x20]
call qword [case.0x1401c1399.0]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1402683a0
add rsp, 0x148
ret
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1402683a0
add rsp, 0x148
ret
Function at 0x1401e26e0
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x238]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1401e273f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1401cdae0
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.1401e2270
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x1401e28f0
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x1401e2a98
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + reloc.SecureEngineSDK64.dll_Ordinal_504]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x1401e2955
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x1401e2955
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1401e2955
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x1401e298c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x1401e29e2
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1401e29e2
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1401e29e2
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1401e29e2
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1401e29e2
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.1401e23a0
mov rcx, qword [r14 + 0x238]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x1401e2a44
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1401cdae0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.1401e2770
mov rcx, qword [r14 + 0x238]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1401e2a90
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1401cdae0
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1401e41b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1402bf270]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0x750]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1401e424c
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xe8], rsi
cmp r8d, 4
jge 0x1401e42a7
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1401cdae0
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1402683a0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
dec ecx
cmp ecx, 5
ja case.0x1401e42dd.1
movsxd rax, ecx
lea r9, [0x140000000]
mov ecx, dword [r9 + rax*4 + 0x1e43d8]
add rcx, r9
jmp rcx
cmp r8d, 4
jle case.0x1401e42dd.4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x1401e42dd.4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1401cd9b0
mov esi, eax
test eax, eax
je 0x1401e4339
mov edx, 5
mov rcx, rbx
call fcn.1401e4e40
mov eax, esi
jmp 0x1401e4279
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1401da790
jmp case.0x1401e42dd.4
movzx ecx, byte [rdx + 2]
lea r8, [rdx + 4]
movzx eax, byte [rdx + 3]
lea rdx, [0x1402726a0]
shl ecx, 8
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rdi
call fcn.1401cdbf0
jmp case.0x1401e42dd.4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1401e3ee0
test eax, eax
je case.0x1401e42dd.4
jmp 0x1401e4279
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1402a0388]
call fcn.1401cdae0
mov rcx, r14
call fcn.1401dab80
test eax, eax
je 0x1401e4277
mov edx, 5
mov rcx, rbx
call fcn.1401e4e40
mov eax, Ordinal_46
jmp 0x1401e4279
Function at 0x1401ebcc0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x1402bf270]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbp, qword [rcx + 0x240]
lea r8, [rsp + 0x20]
mov rsi, qword [rcx]
lea rdx, [rsp + 0x30]
mov rdi, rcx
mov dword [rsp + 0x20], 0x80
mov rcx, rbp
mov rbx, 0xffffffffffffffff
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1401ebd3a
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x80
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
mov rdx, rbp
mov rcx, rdi
call fcn.1401ce800
mov rcx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x1401ebd5f
lea rdx, str.Error_accept__ing_server_connect
call fcn.1401cdae0
lea eax, [rbx + 0x1f]
jmp 0x1401ebdd8
lea rdx, str.Connection_accepted_from_server_n
call fcn.1401cdbf0
mov edx, 1
mov byte [rdi + 0x3b4], 0
mov rcx, rbx
mov qword [rdi + 0x240], rbx
call fcn.1401f4350
mov byte [rdi + 0x259], 1
cmp qword [rsi + 0x2c8], 0
je 0x1401ebdd6
mov dl, 1
mov rcx, rsi
call fcn.1401bccd0
mov rcx, qword [rsi + 0x2d0]
mov r8d, 1
mov rdx, rbx
call qword [rsi + 0x2c8]
xor edx, edx
mov rcx, rsi
mov ebx, eax
call fcn.1401bccd0
test ebx, ebx
je 0x1401ebdd6
mov rcx, rdi
call fcn.1401ec300
mov eax, Ordinal_46
jmp 0x1401ebdd8
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1402683a0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
add rcx, 0x750
cmp byte [rax + 0x73a], 0
jne 0x1401ecec5
cmp dword [rax + 0x598], 0
je 0x1401ecef1
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x1401ecef1
lea rdx, str.MDTM__s
call fcn.1401fa750
test eax, eax
jne 0x1401ecefe
mov dword [rbx + 0x80c], 0x12
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1401edd20
add rsp, 0x20
pop rbx
ret
Function at 0x1401ed6b0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
mov rax, qword [rcx + reloc.SecureEngineSDK64.dll_Ordinal_504]
cmp dword [rax + 0x18], 0
je 0x1401ed6e8
mov r8d, reloc.WS2_32.dll_listen
mov dword [rbx + 0x80c], 0xd
mov dl, 1
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1401ed800
cmp byte [rcx + 0x73f], 0
je 0x1401ed700
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1401ee210
cmp byte [rcx + 0x756], 0
je 0x1401ed7a1
mov r8, qword [rbx + 0x7d8]
test r8, r8
jne 0x1401ed75b
mov r8, qword [rcx + 0x7b0]
test r8, r8
jne 0x1401ed73e
cmp byte [rcx + 0x73e], 0
lea rax, str.NLST
lea r8, str.LIST
cmovne r8, rax
lea rcx, [rbx + 0x750]
lea rdx, str.PRET__s
call fcn.1401fa750
test eax, eax
je 0x1401ed791
add rsp, 0x20
pop rbx
ret
cmp byte [rcx + 0x74a], 0
lea rcx, [rbx + 0x750]
je 0x1401ed781
lea rdx, str.PRET_STOR__s
call fcn.1401fa750
test eax, eax
je 0x1401ed791
add rsp, 0x20
pop rbx
ret
lea rdx, str.PRET_RETR__s
call fcn.1401fa750
test eax, eax
jne 0x1401ed7ae
mov dword [rbx + 0x80c], 0x1d
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1401ee180
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
mov rdx, qword [rax + reloc.SecureEngineSDK64.dll_Ordinal_504]
cmp dword [rdx + 0x18], 0
je 0x1401edb1d
cmp qword [rcx + 0x7d8], 0
je 0x1401edb1d
add rcx, 0x750
lea rdx, str.REST__d
xor r8d, r8d
call fcn.1401fa750
test eax, eax
jne 0x1401edb27
mov dword [rbx + 0x80c], 0x1a
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1401ed6b0
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 0x750
mov rax, qword [rbx]
mov rdx, qword [rax + reloc.SecureEngineSDK64.dll_Ordinal_504]
cmp dword [rdx + 0x18], 1
jne 0x1401edd0c
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x1401edd0c
lea rdx, str.SIZE__s
call fcn.1401fa750
test eax, eax
jne 0x1401edd19
mov dword [rbx + 0x80c], 0x17
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1401edad0
add rsp, 0x20
pop rbx
ret

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

Disassembly:
mov r9, qword [rcx]
cmp byte [r9 + 0x749], 0
je 0x1401edd78
cmp qword [rcx + 0x7d8], 0
je 0x1401edd78
cmp byte [r9 + 0x73c], 0
mov eax, 0x41
mov edx, 0x49
cmovne edx, eax
movsx eax, byte [rcx + 0x7fc]
cmp eax, edx
je 0x1401edd78
mov rax, qword [r9 + reloc.SecureEngineSDK64.dll_Ordinal_504]
mov r8d, reloc.WS2_32.dll_send
mov dword [rax + 0x18], 1
movzx edx, byte [r9 + 0x73c]
jmp fcn.1401ec4f0
jmp fcn.1401edcc0