joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b0600
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rcx
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400b0672
mov rbx, rax
lea rdx, [0x14028dbbc]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
lea rdx, [0x14028dbcc]
mov rcx, rdi
call fcn.1401b5b34
test rax, rax
je 0x1400b0684
test rsi, rsi
je 0x1400b06b2
mov r9, qword [0x1402a3e88]
mov rcx, rdi
xor edx, edx
mov r8d, 8
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp r9
xor r14d, r14d
mov rax, r14
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
test rsi, rsi
je 0x1400b06dc
lea rdx, str.AddDllDirectory
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400b06dc
mov r9, qword [0x1402a3e88]
mov rcx, rdi
xor edx, edx
mov r8d, 0x800
jmp 0x1400b0661
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor r14d, r14d
mov rax, qword [fcn.14018db50]
mov rcx, rbx
call qword [0x1402a3e88]
jmp 0x1400b0675
xor r14d, r14d
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1400b0675
mov r15d, eax
mov rcx, rdi
call fcn.14018f988
mov rdx, qword [fcn.140136be0]
lea ecx, [r15 + 1]
add rcx, rax
add rcx, rcx
mov rax, rdx
call qword [0x1402a3e88]
mov rbx, rax
test rax, rax
je 0x1400b06c7
mov rcx, rbx
mov edx, r15d
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1400b06c7
mov rcx, rbx
call fcn.14018f988
lea rcx, [rbx + rax*2]
lea rdx, [0x14027793a]
call fcn.1401b5a64
mov rcx, rbx
call fcn.14018f988
lea rcx, [rbx + rax*2]
mov rdx, rdi
call fcn.1401b5a64
mov rcx, rbx
test rsi, rsi
je 0x1400b0777
xor edx, edx
mov r8d, 8
mov rax, rsi
call qword [0x1402a3e88]
mov r14, rax
jmp 0x1400b06ca
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x1400b076f
Function at 0x1400b12e0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x128
mov rdi, r9
mov rbx, r8
mov rsi, rcx
mov r12, qword [rsp + 0x190]
mov rax, qword [0x1402b3040]
xor rax, rsp
mov qword [rsp + 0x120], rax
movsxd rbp, edx
mov r14, qword [rcx + rbp*8 + 0x4c0]
mov rax, qword [rcx + 0x698]
test byte [rax + 0x7c], 3
je 0x1400b1343
lea rax, [0x1400b14e0]
cmp qword [rsi + rbp*8 + 0x4e8], rax
je 0x1400b13fb
mov rcx, r14
mov rdx, rbx
mov r8d, edi
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
mov dword [r12], 0
cmp eax, 0xffffffff
je 0x1400b138c
movsxd rsi, eax
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140191d80
mov rax, rsi
add rsp, 0x128
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1400b13a5
mov dword [r12], 0x51
xor esi, esi
jmp 0x1400b1365
mov edi, eax
lea rbx, [rsp + 0x20]
mov r8d, 0x100
mov rcx, rbx
mov dl, 0xaa
call fcn.1401cdd90
mov r8d, 0x100
mov ecx, edi
mov rdx, rbx
call fcn.1400c8b10
mov rcx, qword [rsi]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.1400b0f10
mov rax, qword [rsi]
mov dword [rax + 0x11b0], edi
mov dword [r12], 0x37
mov rsi, 0xffffffffffffffff
jmp 0x1400b1365
shl rbp, 5
lea r13, [rsi + rbp]
add r13, 0x508
mov r15, qword [r13 + 8]
sub r15, qword [r13 + 0x10]
cmp qword [r13], 0
sete al
test r15, r15
setne cl
or cl, al
cmp cl, 1
jne 0x1400b1343
mov rcx, r14
mov rdx, 0xffffffffffffffff
mov r8, 0xffffffffffffffff
xor r9d, r9d
call fcn.1400cebe0
cmp eax, 0xffffffff
sete cl
test al, 1
sete al
or al, cl
jne 0x1400b1343
add rbp, rsi
add rbp, 0x518
mov rax, qword [r13]
test rax, rax
je 0x1400b1493
mov rdx, qword [rbp]
add rdx, rax
mov rcx, r14
mov r8d, r15d
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x1400b1343
mov eax, eax
add qword [rbp], rax
jmp 0x1400b1343
mov rax, qword [rsi]
movsxd rcx, dword [rax + 0xb70]
add rcx, rcx
mov qword [r13 + 8], rcx
mov rax, qword [fcn.140136be0]
call qword [0x1402a3e88]
mov qword [r13], rax
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
test rax, rax
je 0x1400b14c9
mov r15, qword [r13 + 8]
xor edx, edx
jmp 0x1400b146e
mov qword [r13 + 8], 0
jmp 0x1400b1343
Function at 0x1400b6f80
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x1402b3040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x34], 0x4020
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x2c], 4
mov eax, dword [0x1402c87d0]
cmp eax, 2
je 0x1400b7046
mov rsi, rcx
test eax, eax
jne 0x1400b6ff4
mov ecx, 6
xor edx, edx
mov r8d, 2
mov r9d, 3
call fcn.1400b0780
test al, al
je 0x1400b6fea
mov dword [0x1402c87d0], 2
jmp 0x1400b7046
mov dword [0x1402c87d0], 1
lea rax, [rsp + 0x2c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov rcx, rsi
mov edx, 0xffff
mov r8d, 0x1001
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1400b7025
cmp dword [rsp + 0x30], 0x4020
jg 0x1400b7046
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov rcx, rsi
mov edx, 0xffff
mov r8d, 0x1001
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140191d80
nop
add rsp, 0x40
pop rsi
ret
Function at 0x1400b7d90
Capabilities:
Set socket configuration

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov qword [rsp + 0x20], r9
mov rsi, r8
mov r12, rdx
mov rbx, rcx
mov rax, qword [0x1402b3040]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rdi, qword [rcx]
lea r15, [rsp + 0x30]
mov r8d, Ordinal_145
mov rcx, r15
mov dl, 0xaa
call fcn.1401cdd90
test rsi, rsi
mov r14, rsi
cmove r14, r15
mov ebp, dword [r12 + 4]
mov dword [r14], ebp
xor r13d, r13d
cmp dword [rbx + 0x32c], 3
setne r13b
inc r13d
mov dword [r14 + 4], r13d
mov r15d, 0x11
cmp dword [rbx + 0x32c], 3
jne 0x1400b7e16
mov r15d, dword [r12 + 0xc]
test rsi, rsi
mov rcx, rsi
lea rax, [rsp + 0x30]
cmove rcx, rax
mov dword [rcx + 8], r15d
mov eax, dword [r12 + 0x10]
mov r8d, Ordinal_133
cmp eax, 0x80
cmovb r8d, eax
mov dword [rcx + 0xc], r8d
add rcx, 0x10
mov rdx, qword [r12 + 0x20]
call fcn.1401cd6f0
mov rax, qword [rdi + 0x738]
test rax, rax
je 0x1400b7ee1
test rdi, rdi
je 0x1400b7ecc
mov rcx, qword [rdi + 0xd8]
test rcx, rcx
je 0x1400b7eb0
mov byte [rcx + 0x18a], 1
mov rax, qword [rdi + 0x738]
mov rcx, qword [rdi + 0x740]
xor edx, edx
mov r8, r14
call qword [0x1402a3e88]
mov rdx, qword [rsp + 0x20]
mov qword [rdx], rax
mov rcx, qword [rdi + 0xd8]
test rcx, rcx
je 0x1400b7ebe
mov byte [rcx + 0x18a], 0
mov rax, qword [rdx]
jmp 0x1400b7ef7
mov rcx, qword [rdi + 0xd0]
test rcx, rcx
jne 0x1400b7e70
jmp 0x1400b7e7e
mov rcx, qword [rdi + 0xd0]
test rcx, rcx
jne 0x1400b7ea4
jmp 0x1400b7ef7
mov rcx, qword [0x740]
xor edx, edx
mov r8, r14
call qword [0x1402a3e88]
jmp 0x1400b7eef
mov ecx, ebp
mov edx, r13d
mov r8d, r15d
call qword [sym.imp.WS2_32.dll_socket]
mov rcx, qword [rsp + 0x20]
mov qword [rcx], rax
cmp rax, 0xffffffffffffffff
je 0x1400b7f43
cmp dword [rbx + 0x32c], 5
jne 0x1400b7f20
lea r8, [rsp + 0x2c]
mov dword [r8], 1
mov rcx, rax
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [rbx + 0x328]
xor ebx, ebx
test eax, eax
je 0x1400b7f48
cmp dword [r14], 0x17
jne 0x1400b7f48
test rsi, rsi
lea rcx, [rsp + 0x30]
cmovne rcx, rsi
mov dword [rcx + 0x28], eax
jmp 0x1400b7f48
mov ebx, 7
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140191d80
mov eax, ebx
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1400c0db0
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov dword [rsp + 0x20], 0xf0000040
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1400c0df2
mov rcx, qword [rsi]
add rsi, 8
mov qword [rsp + 0x20], rsi
mov edx, 0x8003
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
nop
add rsp, 0x30
pop rsi
ret
Function at 0x1400c4ff0
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rdi, r9
mov rsi, r8
mov rbx, rdx
mov r14, rcx
mov ebp, dword [rsp + 0xb0]
mov rax, qword [0x1402b3040]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor eax, eax
lea r15, [rsp + 0x48]
mov qword [r15], rax
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x3c], 0
mov dword [rsp + 0x38], 4
mov dword [rsp + 0x34], edi
mov rcx, r8
xor edx, edx
mov r8, r9
call fcn.1401cdd90
mov dword [rsp + 0x20], 0xf0000040
mov rcx, r15
xor edx, edx
xor r8d, r8d
mov r9d, ebp
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1400c511e
mov edx, dword [rsp + 0xb8]
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1400c50fc
mov rcx, qword [rsp + 0x40]
mov rdx, r14
mov r8d, ebx
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1400c50fc
mov rcx, qword [rsp + 0x40]
mov dword [rsp + 0x20], 0
lea r8, [rsp + 0x3c]
lea r9, [rsp + 0x38]
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1400c50fc
mov eax, dword [rsp + 0x3c]
cmp rax, rdi
ja 0x1400c50fc
mov rcx, qword [rsp + 0x40]
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov edx, 2
mov r8, rsi
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400c510c
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400c511e
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140191d80
nop
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400c6610
Capabilities:
Check for time delay via gettickcount
Check for time delay via queryperformancecounter
Move file

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1402b3040]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp byte [0x1402c87c0], 1
je 0x1400c6662
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
imul rbx, rcx, 0x10624dd3
shr rbx, 0x26
imul ecx, ebx, 0x3e8
sub eax, ecx
imul r14d, eax, 0x3e8
jmp 0x1400c669e
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x28]
mov qword [rbx], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov rcx, qword [0x1402c87c8]
cqo
idiv rcx
mov rbx, rax
imul rax, rdx, 0xf4240
cqo
idiv rcx
mov r14, rax
mov rcx, rdi
mov rdx, rsi
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x1400c66d6
xor ebp, ebp
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140191d80
mov eax, ebp
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movabs r12, 0xffdf3b645a1cac09
movabs r13, 0xffbe76c8b4395813
mov r15d, 0x3e8
mov ebp, 1
jmp 0x1400c6797
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x28]
mov r8, qword [0x1402c87c8]
cqo
idiv r8
mov rcx, rax
imul rax, rdx, 0xf4240
cqo
idiv r8
sub rcx, rbx
lea rdx, [rcx + r12]
cmp rdx, r13
jb 0x1400c66b6
imul rcx, rcx, 0x3e8
sub eax, r14d
cdqe
imul rax, rax, 0x10624dd3
mov rdx, rax
shr rdx, 0x3f
sar rax, 0x26
add eax, edx
cdqe
add rax, rcx
cmp rax, r15
ja 0x1400c66b6
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rdi
mov rdx, rsi
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x1400c66b4
cmp byte [0x1402c87c0], 1
je 0x1400c66fa
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
imul rcx, rcx, 0x10624dd3
shr rcx, 0x26
imul edx, ecx, 0x3e8
sub eax, edx
imul eax, eax, 0x3e8
jmp 0x1400c6734
Function at 0x1400ceab0
Capabilities:
Get socket status

Disassembly:
push rsi
sub rsp, 0x40
mov r10, qword [rsp + 0x70]
mov rax, qword [0x1402b3040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov eax, 0x7fffffff
cmp r10, 0x7fffffff
cmovl rax, r10
test rdx, rdx
je 0x1400ceb97
cmp dword [rdx], 0
je 0x1400ceb97
movabs r11, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x30], r11
xor r11d, r11d
test r10, r10
js 0x1400ceb92
mov esi, 0
je 0x1400ceb2b
mov r10d, eax
imul r11, r10, 0x10624dd3
shr r11, 0x26
imul r10d, r11d, 0x3e8
sub eax, r10d
imul esi, eax, 0x3e8
lea r10, [rsp + 0x30]
mov dword [r10], r11d
mov dword [r10 + 4], esi
xor eax, eax
test r9, r9
je 0x1400ceb46
cmp dword [r9], 0
cmovne rax, r9
xor r9d, r9d
test r8, r8
je 0x1400ceb56
cmp dword [r8], 0
cmovne r9, r8
xor r8d, r8d
test rdx, rdx
je 0x1400ceb65
cmp dword [rdx], 0
cmovne r8, rdx
inc ecx
mov qword [rsp + 0x20], r10
mov rdx, r8
mov r8, r9
mov r9, rax
call qword [sym.imp.WS2_32.dll_select]
mov esi, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140191d80
mov eax, esi
add rsp, 0x40
pop rsi
ret
xor r10d, r10d
jmp 0x1400ceb37
test r8, r8
je 0x1400ceba6
cmp dword [r8], 0
jne 0x1400ceaeb
test r9, r9
je 0x1400cebb5
cmp dword [r9], 0
jne 0x1400ceaeb
xor esi, esi
test eax, eax
je 0x1400ceb7d
js 0x1400cebc7
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400ceb7d
mov ecx, 0x2726
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov esi, 0xffffffff
jmp 0x1400ceb7d
Function at 0x1400cf1f0
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x48
movaps xmmword [rsp + 0x30], xmm6
mov rsi, r9
mov rax, qword [0x1402b3040]
xor rax, rsp
mov qword [rsp + 0x28], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r9, [rsp + 0x20]
mov qword [r9], rax
mov qword [rsi], 0
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebx, eax
test eax, eax
je 0x1400cf25b
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140191d80
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r15, qword [rsp + 0x20]
test r15, r15
je 0x1400cf286
xor r12d, r12d
xorps xmm6, xmm6
xor edi, edi
jmp 0x1400cf2ac
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1400cf27f
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
xor ebx, ebx
test rdi, rdi
jne 0x1400cf298
mov ebx, 0x2af9
mov ecx, 0x2af9
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor edi, edi
mov qword [rsi], rdi
jmp 0x1400cf239
mov rbx, r12
mov r15, qword [r15 + 0x28]
mov r12, rbx
test r15, r15
je 0x1400cf26f
mov eax, dword [r15 + 4]
cmp eax, 2
je 0x1400cf2c2
cmp eax, 0x17
jne 0x1400cf29d
mov r14d, 0x1c
jmp 0x1400cf2c8
mov r14d, 0x10
cmp qword [r15 + 0x20], 0
je 0x1400cf29d
cmp qword [r15 + 0x10], r14
jb 0x1400cf29d
mov rax, qword [fcn.140136be0]
mov ecx, 0x30
call qword [0x1402a3e88]
test rax, rax
je 0x1400cf3a2
mov rbx, rax
mov eax, dword [r15]
mov dword [rbx], eax
mov eax, dword [r15 + 4]
mov dword [rbx + 4], eax
mov eax, dword [r15 + 8]
mov dword [rbx + 8], eax
mov eax, dword [r15 + 0xc]
mov dword [rbx + 0xc], eax
mov dword [rbx + 0x10], r14d
movups xmmword [rbx + 0x18], xmm6
mov qword [rbx + 0x28], 0
mov rax, qword [fcn.140136be0]
mov rcx, r14
call qword [0x1402a3e88]
mov qword [rbx + 0x20], rax
test rax, rax
je 0x1400cf392
mov rdx, qword [r15 + 0x20]
mov rcx, rax
mov r8, r14
call fcn.1401cd6f0
mov rcx, qword [r15 + 0x18]
test rcx, rcx
je 0x1400cf367
lea r14, [rbx + 0x18]
mov rax, qword [fcn.1401aa580]
call qword [0x1402a3e88]
mov qword [r14], rax
test rax, rax
je 0x1400cf381
test rdi, rdi
cmove rdi, rbx
test r12, r12
je 0x1400cf2a0
mov qword [r12 + 0x28], rbx
jmp 0x1400cf2a0
mov rax, qword [fcn.14018db50]
mov rcx, qword [rbx + 0x20]
call qword [0x1402a3e88]
mov rax, qword [fcn.14018db50]
mov rcx, rbx
call qword [0x1402a3e88]
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1400cf3b2
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov ebx, 8
test rdi, rdi
je 0x1400cf296
mov rax, qword [fcn.14018db50]
mov rcx, qword [rdi + 0x20]
call qword [0x1402a3e88]
mov rax, qword [fcn.14018db50]
mov rcx, qword [rdi + 0x18]
call qword [0x1402a3e88]
mov r14, qword [rdi + 0x28]
mov rax, qword [fcn.14018db50]
mov rcx, rdi
call qword [0x1402a3e88]
mov rdi, r14
test r14, r14
jne 0x1400cf3c0
jmp 0x1400cf296
Function at 0x1400d9810
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov edi, r8d
mov rsi, rcx
mov r9, qword [rcx]
lea ecx, [rdi - 0xd]
mov eax, 0x9b0
cmp ecx, 2
ja 0x1400d9839
mov eax, ecx
lea rcx, [0x140296608]
mov rax, qword [rcx + rax*8]
mov r8, qword [r9 + 0x1e0]
lea rcx, [rsi + 0xa00]
mov rax, qword [r9 + rax]
test dl, dl
jne 0x1400d987f
mov edx, dword [rsi + 0xaac]
lea r10d, [rdx + 1]
mov dword [rsi + 0xaac], r10d
test rax, rax
je 0x1400d98d9
test edx, edx
js 0x1400d988e
xor r10d, r10d
mov rax, qword [rax + 8]
cmp r10d, edx
jge 0x1400d9889
inc r10d
test rax, rax
jne 0x1400d986c
jmp 0x1400d9889
mov dword [rsi + 0xaac], 0
test rax, rax
je 0x1400d98d9
mov rax, qword [rax]
xor edx, edx
cmp byte [rax], 0x2a
sete dl
lea r8, [rdx + rax]
mov dword [rsi + 0xab0], edx
lea rdx, [0x140274353]
call fcn.1400f6440
test eax, eax
jne 0x1400d98bb
mov dword [rsi + 0xab8], edi
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
cmp dword [r8 + 0x10], 0
je 0x1400d99f6
mov dword [rsi + 0xab8], 0
jmp 0x1400d98b9
xor eax, eax
cmp edi, 0xd
je 0x1400d98c2
cmp edi, 0xe
je 0x1400d99d8
cmp edi, 0xf
je 0x1400d98bb
cmp byte [rsi + 0xa92], 1
jne 0x1400d993e
cmp byte [r9 + 0xf09], 0
jne 0x1400d990f
cmp dword [r9 + 0x9f8], 0
je 0x1400d99e8
mov r8, qword [rsi + 0xa88]
test r8, r8
je 0x1400d99e8
lea rdx, str.MDTM__s
call fcn.1400f6440
test eax, eax
jne 0x1400d98bb
mov dword [rsi + 0xab8], 0x12
jmp 0x1400d98b9
mov dword [rsi + 0xab0], 0
xor eax, eax
cmp dword [r9 + 0xbac], 2
sete al
mov dword [rsi + 0xab4], eax
cmp byte [rsi + 0x655], 1
jne 0x1400d9994
mov r8, qword [rsi + 0xa70]
test r8, r8
je 0x1400d9994
cmp dword [rsi + 0xa80], 0
je 0x1400d9988
mov rax, qword [rsi + 0xa78]
mov rax, qword [rax]
cmp byte [rax], 0x2f
je 0x1400d9994
mov dword [rsi + 0xa94], 0
jmp 0x1400d99b5
cmp dword [rsi + 0xa80], 0
je 0x1400d98f7
mov dword [rsi + 0xa94], 1
mov rax, qword [rsi + 0xa78]
mov r8, qword [rax]
lea rdx, str.CWD__s
call fcn.1400f6440
test eax, eax
jne 0x1400d98bb
mov dword [rsi + 0xab8], 0x10
jmp 0x1400d98b9
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1400d9f30
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1400da180
mov rax, qword [rsi + 0xad0]
cmp rax, 0xffffffffffffffff
je 0x1400d9a45
mov ecx, dword [r9 + 0xfa4]
and ecx, 0xffffffbf
xor edx, edx
test rax, rax
cmovg rdx, rax
shr rax, 0x39
and eax, 0xffffffc0
or eax, ecx
xor eax, 0x40
mov qword [r9 + 0xf78], rdx
mov dword [r9 + 0xfa4], eax
mov rdx, qword [rsi + 0xad0]
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1400d9da0
mov r8, qword [rsi + 0xa88]
cmp byte [r9 + 0xf24], 1
je 0x1400d9a79
lea rdx, str.SIZE__s
call fcn.1400f6440
test eax, eax
jne 0x1400d98bb
mov dword [rsi + 0xab8], 0x18
jmp 0x1400d98b9
lea rdx, str.RETR__s
call fcn.1400f6440
test eax, eax
jne 0x1400d98bb
mov dword [rsi + 0xab8], 0x20
jmp 0x1400d98b9
Function at 0x1400da180
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rax, qword [rcx]
mov rcx, qword [rax + 0x1e0]
cmp byte [rax + 0xf1c], 1
jne 0x1400da1ff
cmp qword [rsi + 0xa88], 0
je 0x1400da1ff
movzx edx, byte [rax + 0xf0b]
movsx r8d, byte [rsi + 0xaa8]
xor edx, 1
lea edx, [rdx*8 + 0x41]
cmp edx, r8d
je 0x1400da1ff
mov dword [rcx + 0x10], 1
mov bl, byte [rax + 0xf0b]
xor bl, 1
shl bl, 3
or bl, 0x41
cmp byte [rsi + 0xaa8], bl
jne 0x1400da278
mov dword [rsi + 0xab8], 0x13
mov rax, qword [rsi]
mov rax, qword [rax + 0x1e0]
mov eax, dword [rax + 0x10]
jmp 0x1400da202
mov eax, dword [rcx + 0x10]
test eax, eax
je 0x1400da23a
lea rcx, [rsi + 0xa00]
cmp eax, 1
jne 0x1400da248
mov r8, qword [rsi + 0xa88]
test r8, r8
je 0x1400da23a
lea rdx, str.SIZE__s
call fcn.1400f6440
test eax, eax
jne 0x1400da271
mov dword [rsi + 0xab8], 0x17
jmp 0x1400da26f
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.1400da2b0
cmp qword [rsi + 0xa88], 0
je 0x1400da23a
lea rdx, str.REST__d
xor r8d, r8d
call fcn.1400f6440
test eax, eax
jne 0x1400da271
mov dword [rsi + 0xab8], 0x1a
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
movzx r8d, bl
lea rcx, [rsi + 0xa00]
lea rdx, str.TYPE__c
call fcn.1400f6440
test eax, eax
jne 0x1400da271
mov dword [rsi + 0xab8], 0x13
mov byte [rsi + 0xaa8], bl
jmp 0x1400da26f

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

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov rax, qword [rcx]
mov rcx, qword [rax + 0x1e0]
cmp dword [rcx + 0x10], 0
je 0x1400da2e9
mov dword [rsi + 0xab8], 0xd
mov rcx, rsi
mov dl, 1
mov r8d, Ordinal_14
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1400d9810
cmp byte [rax + 0xf0e], 1
jne 0x1400da302
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1400da3f0
lea rcx, [rsi + 0xa00]
cmp byte [rax + 0xf11], 1
jne 0x1400da333
mov r8, qword [rsi + 0xa88]
test r8, r8
je 0x1400da39c
cmp byte [rax + 0xf1d], 1
jne 0x1400da393
lea rdx, str.PRET_STOR__s
jmp 0x1400da3c8
mov al, byte [rsi + 0x666]
test al, al
jne 0x1400da34f
cmp byte [rsi + 0x65f], 1
jne 0x1400da34f
mov byte [rsi + 0x666], 1
mov al, 1
xor al, 1
movzx edi, al
lea rax, [rdi + rdi*4]
lea r8, str.EPSV
add r8, rax
lea rdx, [0x140274353]
call fcn.1400f6440
test eax, eax
jne 0x1400da3dd
mov dword [rsi + 0xaac], edi
mov dword [rsi + 0xab8], 0x1e
mov rcx, qword [rsi]
lea rdx, str.Connect_data_stream_passively_n
call fcn.1400b0c10
jmp 0x1400da3db
lea rdx, str.PRET_RETR__s
jmp 0x1400da3c8
mov r8, qword [rax + 0xc08]
test r8, r8
jne 0x1400da3c1
lea rdx, str.NLST
lea r8, str.LIST
cmp byte [rax + 0xf0d], 0
cmovne r8, rdx
lea rdx, str.PRET__s
call fcn.1400f6440
test eax, eax
jne 0x1400da3dd
mov dword [rsi + 0xab8], 0x1d
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x1400db150
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov rsi, rcx
mov rax, qword [0x1402b3040]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rdi, qword [rcx]
mov rbx, qword [rcx + 0x4c8]
movaps xmm0, xmmword [0x14026f080]
lea rdx, [rsp + 0x30]
movaps xmmword [rdx + 0x70], xmm0
movaps xmmword [rdx + 0x60], xmm0
movaps xmmword [rdx + 0x50], xmm0
movaps xmmword [rdx + 0x40], xmm0
movaps xmmword [rdx + 0x30], xmm0
movaps xmmword [rdx + 0x20], xmm0
movaps xmmword [rdx + 0x10], xmm0
movaps xmmword [rdx], xmm0
lea r8, [rsp + 0x28]
mov dword [r8], Ordinal_133
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1400db1fd
mov rcx, rsi
mov rdx, rbx
call fcn.1400b6eb0
lea rdx, str.Error_accept__ing_server_connect
mov rcx, rdi
call fcn.1400b0f10
mov ebx, 0x1e
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140191d80
mov eax, ebx
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r14
ret
lea r8, [rsp + 0x28]
mov dword [r8], Ordinal_133
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_accept]
mov r14, rax
mov rcx, rsi
mov rdx, rbx
call fcn.1400b6eb0
cmp r14, 0xffffffffffffffff
je 0x1400db1ca
lea rdx, str.Connection_accepted_from_server_n
mov rcx, rdi
call fcn.1400b0c10
mov byte [rsi + 0x660], 0
mov qword [rsi + 0x4c8], r14
lea r8, [rsp + 0x2c]
mov dword [r8], 1
mov rcx, r14
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov byte [rsi + 0xb2c], 1
mov rax, qword [rdi + 0x728]
xor ebx, ebx
test rax, rax
je 0x1400db1de
test rdi, rdi
je 0x1400db304
mov rcx, qword [rdi + 0xd8]
test rcx, rcx
je 0x1400db32b
mov byte [rcx + 0x18a], 1
mov rax, qword [rdi + 0x728]
mov rcx, qword [rdi + 0x730]
mov rdx, r14
mov r8d, 1
call qword [0x1402a3e88]
mov rcx, qword [rdi + 0xd8]
test rcx, rcx
je 0x1400db31d
mov byte [rcx + 0x18a], 0
test eax, eax
je 0x1400db1de
mov rdx, qword [rsi + 0x4c8]
cmp rdx, 0xffffffffffffffff
je 0x1400db2f3
mov rcx, rsi
call fcn.1400b6eb0
mov qword [rsi + 0x4c8], 0xffffffffffffffff
mov byte [rsi + 0x653], 0
mov ebx, Ordinal_46
jmp 0x1400db1de
mov rcx, qword [0x730]
mov rdx, r14
mov r8d, 1
call qword [0x1402a3e88]
jmp 0x1400db2cb
mov rcx, qword [rdi + 0xd0]
test rcx, rcx
jne 0x1400db2c4
jmp 0x1400db2cb
mov rcx, qword [rdi + 0xd0]
test rcx, rcx
jne 0x1400db294
jmp 0x1400db2a2