joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140017348
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 0x98
movaps xmmword [rsp + 0x80], xmm14
movaps xmmword [rsp + 0x70], xmm13
movaps xmmword [rsp + 0x60], xmm12
movaps xmmword [rsp + 0x50], xmm11
movaps xmmword [rsp + 0x40], xmm10
movaps xmmword [rsp + 0x30], xmm9
movaps xmmword [rsp + 0x20], xmm8
movaps xmmword [rsp + 0x10], xmm7
movaps xmmword [rsp], xmm6
aesimc xmm0, xmmword [rdx + 0x10]
aesimc xmm1, xmmword [rdx + 0x20]
aesimc xmm2, xmmword [rdx + 0x30]
aesimc xmm3, xmmword [rdx + 0x40]
aesimc xmm4, xmmword [rdx + 0x50]
aesimc xmm5, xmmword [rdx + 0x60]
aesimc xmm6, xmmword [rdx + 0x70]
aesimc xmm7, xmmword [rdx + 0x80]
aesimc xmm8, xmmword [rdx + 0x90]
aesimc xmm9, xmmword [rdx + 0xa0]
aesimc xmm10, xmmword [rdx + 0xb0]
aesimc xmm11, xmmword [rdx + 0xc0]
aesimc xmm12, xmmword [rdx + 0xd0]
mov rax, rcx
movaps xmm13, xmmword [rdx]
movaps xmm14, xmmword [rdx + 0xe0]
movaps xmmword [rcx], xmm13
movdqa xmmword [rcx + 0x10], xmm0
movdqa xmmword [rcx + 0x20], xmm1
movdqa xmmword [rcx + 0x30], xmm2
movdqa xmmword [rcx + 0x40], xmm3
movdqa xmmword [rcx + 0x50], xmm4
movdqa xmmword [rcx + 0x60], xmm5
movdqa xmmword [rcx + 0x70], xmm6
movdqa xmmword [rcx + 0x80], xmm7
movdqa xmmword [rcx + 0x90], xmm8
movdqa xmmword [rcx + 0xa0], xmm9
movdqa xmmword [rcx + 0xb0], xmm10
movdqa xmmword [rcx + 0xc0], xmm11
movdqa xmmword [rcx + 0xd0], xmm12
movaps xmmword [rcx + 0xe0], xmm14
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm10, xmmword [rsp + 0x40]
movaps xmm11, xmmword [rsp + 0x50]
movaps xmm12, xmmword [rsp + 0x60]
movaps xmm13, xmmword [rsp + 0x70]
movaps xmm14, xmmword [rsp + 0x80]
add rsp, 0x98
ret
Function at 0x14001860a
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov rsi, r8
mov rdi, rcx
mov rax, qword [0x140148c60]
mov al, byte [rax]
cmp al, 1
jne 0x140018640
mov rcx, rdi
mov r8, rsi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r14
jmp 0x140018686
xorps xmm0, xmm0
lea rbx, [rsp + 0x20]
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
mov rcx, rbx
call fcn.1400189fc
lea r14, [rsp + 0x68]
mov rcx, r14
mov rdx, rdi
mov r8, rbx
call fcn.140001e2f
movups xmm0, xmmword [r14]
movups xmmword [rsi], xmm0
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r14
ret
jmp fcn.140017e78

Function at 0x140020e27
Capabilities:
Encode data using base64

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x668
movaps xmmword [rsp + 0x650], xmm6
mov rsi, rcx
mov rax, r8
shr rax, 0x3d
jne 0x140020eb6
movzx ebx, r9b
shl rbx, 7
sub rbx, 0xffffffffffffff80
shl r8, 3
cmp r8, rbx
jne 0x140020eb6
mov rdi, rdx
lea rcx, [rsp + 0x140]
mov r8d, 0xf4
xor edx, edx
call sub.msvcrt.dll_memset
call fcn.140020dd2
cmp eax, 3
je 0x140020e99
mov eax, eax
lea r8, [rsp + 0x140]
mov rcx, rdi
mov edx, ebx
cmp eax, 2
jne 0x140020ead
call fcn.1400b6980
jmp 0x140020eb2
lea r8, [rsp + 0x140]
mov rcx, rdi
mov edx, ebx
call fcn.1400d6660
jmp 0x140020eb2
call fcn.1400b5d10
test eax, eax
je 0x140020ed4
mov dword [rsi], 2
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x650]
add rsp, 0x668
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rdi, [rsp + 0x358]
lea rbx, [rsp + 0x140]
mov r8d, 0xf4
mov rcx, rdi
mov rdx, rbx
call sub.msvcrt.dll_memcpy
xorps xmm6, xmm6
movaps xmmword [rbx], xmm6
lea rbx, [rsp + 0x30]
lea r8, [rsp + 0x140]
mov rcx, rbx
mov rdx, rdi
call fcn.140020d6c
mov r14, qword [rbx]
mov rdi, qword [rbx + 8]
bswap r14
bswap rdi
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x28], rdi
xor eax, eax
cmp rax, 0x100
je 0x140020f42
movups xmmword [rsp + rax + 0x140], xmm6
add rax, 0x10
jmp 0x140020f2c
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x140]
mov r8d, 0x100
call sub.msvcrt.dll_memcpy
call fcn.140021d36
test al, al
je 0x140020f90
mov rax, r14
shld rax, rdi, 1
shld rdi, r14, 1
sar r14, 0x3f
movabs rcx, 0xc200000000000000
and rcx, r14
xor rcx, rax
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rdi
jmp 0x140020fb9
mov rax, qword [0x140148c30]
mov eax, dword [rax + 4]
not eax
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x20]
test eax, 0x10400000
jne 0x140020fb4
call fcn.1400c3a60
jmp 0x140020fb9
call fcn.1400c3040
lea rdi, [rsp + 0x450]
lea rdx, [rsp + 0x40]
mov r8d, 0x100
mov rcx, rdi
call sub.msvcrt.dll_memcpy
lea rcx, [rsp + 0x550]
lea rdx, [rsp + 0x358]
mov r8d, 0xf4
call sub.msvcrt.dll_memcpy
lea rcx, [rsp + 0x14c]
mov r8d, 0x200
mov rdx, rdi
call sub.msvcrt.dll_memcpy
and dword [rsi], 0
mov rcx, rsi
add rcx, 4
lea rdx, [rsp + 0x140]
mov r8d, 0x20c
call sub.msvcrt.dll_memcpy
jmp 0x140020ebc
Function at 0x140022e4a
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
xor r14d, r14d
mov r15d, 0xffffffff
mov rbx, rsi
sub rbx, r14
jbe 0x140022ea1
lea rcx, [rdi + r14]
cmp rbx, r15
cmovae rbx, r15
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x140022ea1
add r14, rbx
jae 0x140022e64
lea rcx, str.attempt_to_add_with_overflowRsaParameterspadding_alg
lea r8, [0x1400f7a38]
mov edx, 0x1c
call fcn.140008b70
ud2
cmp rsi, r14
seta al
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140024de0
Capabilities:
Encode data using xor

Disassembly:
test rdx, rdx
je 0x14000c555
cmp rdx, 4
jae 0x14000c558
xor eax, eax
xor r8d, r8d
jmp 0x14000c5f0
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x1400e1260]
movdqa xmm3, xmmword [0x1400e1270]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x14000c580
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14000c607
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14000c5f0
ret
sub rdx, rcx
cmp rdx, 0x20
jb 0x14000c540
jmp fcn.14000c050
Function at 0x140028d00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x140028d5b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x140028d5b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x140028d76
cmp eax, 0x42
jne 0x140028d5b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x140028e26
cmp byte [r9 + r11], 0x5f
jne 0x140028e26
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x140028e8e
mov rcx, rsi
xor edx, edx
call fcn.140027a20
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.140027a20
test al, al
jne 0x140028f21
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140028db2
lea rdx, [0x1400f8bfc]
mov r8d, 1
call fcn.14000a5d0
test al, al
jne 0x140028f21
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x140028d6a
xor r14d, r14d
lea rbx, [0x1400f8fe0]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x140028de4
cmp byte [rax + rcx], 0x45
je 0x140028f43
sub r14, 1
jb 0x140028e09
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140028e09
mov r8d, 2
mov rdx, rbx
call fcn.14000a5d0
test al, al
jne 0x140028f21
mov rcx, rsi
call fcn.140028180
test al, al
jne 0x140028f21
mov rax, qword [rsi]
test rax, rax
jne 0x140028dd0
jmp 0x140028d6a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x140028ee8
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x140028e82
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x140028e6c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x140028e5b
add dl, 0xa9
jmp 0x140028e6a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x140028ee8
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x140028ee8
movzx edx, bl
add rax, rdx
jae 0x140028e30
jmp 0x140028ee8
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x140028ee8
cmp rax, rcx
jae 0x140028ee5
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x140028f3b
cmp qword [rsi + 0x20], 0
je 0x140028f34
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.140028d00
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x140028d6c
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140028f29
lea rax, str.invalid_syntaxrecursion_limit_reached
lea rdx, [0x1400f8fa0]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
add r8, 0x10
call fcn.14000a5d0
test al, al
je 0x140028f29
mov dil, 2
jmp 0x140028d6a
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x140028d6a
mov dil, 1
xor r8d, r8d
jmp 0x140028eea
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x140028d6a
Function at 0x14002e65f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xc8
mov rdi, rdx
mov rsi, rcx
lea rbx, [rsp + 0x38]
mov rcx, rbx
call fcn.14005e865
mov al, byte [rbx]
cmp al, 0x14
jne 0x14002e6c1
lea rbx, [rsp + 0x38]
movzx r8d, word [rbx + 2]
mov rcx, rbx
mov rdx, rdi
call fcn.14005e5f3
cmp qword [rbx], 0
je 0x14002e701
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsi + 0x18], rax
movups xmmword [rsi + 8], xmm0
jmp 0x14002e6e6
mov cl, byte [rsp + 0x39]
movzx edx, word [rsp + 0x3a]
mov r8d, dword [rsp + 0x4c]
mov dword [rsi + 0x1c], r8d
movups xmm0, xmmword [rsp + 0x3c]
movups xmmword [rsi + 0xc], xmm0
mov byte [rsi + 8], al
mov byte [rsi + 9], cl
mov word [rsi + 0xa], dx
mov qword [rsi], 1
mov rax, rsi
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r15, [rsp + 0x3a]
mov rax, qword [r15 + 0x16]
movups xmm0, xmmword [r15 + 6]
lea rdi, [rsp + 0xb0]
movaps xmmword [rdi], xmm0
mov qword [rdi + 0x10], rax
lea rbx, [rsp + 0x20]
mov qword [rbx], 8
xorps xmm0, xmm0
movups xmmword [rbx + 8], xmm0
lea r12, [rsp + 0x8a]
lea r14, [rsp + 0x38]
mov rax, qword [rsp + 0xc0]
cmp rax, qword [rsp + 0xb8]
jae 0x14002e800
mov rcx, r14
mov rdx, rdi
call fcn.140033110
movzx eax, word [rsp + 0x38]
cmp ax, 0xf
je 0x14002e81b
movups xmm0, xmmword [r15]
movups xmm1, xmmword [r15 + 0xe]
movups xmmword [rsp + 0x6e], xmm1
movaps xmmword [rsp + 0x60], xmm0
mov rcx, qword [rsp + 0x58]
mov word [rsp + 0x88], ax
movups xmm0, xmmword [rsp + 0x6e]
movups xmmword [r12 + 0xe], xmm0
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [r12], xmm0
mov qword [rsp + 0xa8], rcx
mov rdx, qword [rsp + 0x30]
cmp rdx, qword [rsp + 0x28]
jne 0x14002e7c4
mov rcx, rbx
call fcn.140039b9f
mov rdx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x20]
imul rcx, rdx, 0x28
mov r8, qword [rsp + 0xa8]
mov qword [rax + rcx + 0x20], r8
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movups xmmword [rax + rcx + 0x10], xmm1
movups xmmword [rax + rcx], xmm0
inc rdx
mov qword [rsp + 0x30], rdx
jmp 0x14002e73e
mov rax, qword [rsp + 0x30]
mov qword [rsi + 0x18], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi + 8], xmm0
and qword [rsi], 0
jmp 0x14002e6ed
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x76], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rsp + 0x66], xmm0
mov qword [rsi + 0x18], rax
movups xmmword [rsi + 8], xmm0
mov qword [rsi], 1
lea rcx, [rsp + 0x20]
call fcn.14002b4d8
jmp 0x14002e6ed
Function at 0x140077ce0
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x468
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x20], rax
xor esi, esi
mov r14d, 0xffffffff
xor edi, edi
xor r15d, r15d
cmp r8, 0x201
jae 0x140077d60
jmp 0x140077d4f
jae 0x140077e04
cmp r8, 0x201
jae 0x140077d60
mov r12d, 0x200
lea r13, [rsp + 0x68]
mov rbp, r8
jmp 0x140077da7
sub r8, r15
sub rdi, r15
cmp rdi, r8
jae 0x140077d87
lea rcx, [rsp + 0x30]
mov rdx, r15
call fcn.1400660f0
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rsi, qword [rsp + 0x38]
cmp rsi, r14
mov r15d, 0xffffffff
cmovb r15, rsi
mov qword [rsp + 0x40], r15
mov rdi, rsi
mov r12, r15
mov r13, qword [rsp + 0x20]
mov rbp, r15
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov ecx, ebp
mov rdx, r13
call sub.KERNEL32.dll_GetCurrentDirectoryW
mov ebx, eax
test eax, eax
jne 0x140077dcb
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x140077e5f
mov r8d, ebx
cmp rbp, r8
jne 0x140077d40
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x140077e7f
add rbp, rbp
cmp rbp, r14
cmovae rbp, r14
mov r8, rbp
cmp r8, 0x201
jb 0x140077d4f
jmp 0x140077d60
cmp r12, r8
jb 0x140077e99
lea rcx, [rsp + 0x48]
mov rdx, r13
call fcn.14007b400
movups xmm0, xmmword [rsp + 0x48]
movups xmm1, xmmword [rsp + 0x58]
mov rdi, qword [rsp + 0x28]
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi], xmm0
test rsi, rsi
je 0x140077e48
mov rcx, qword [0x140190150]
xor edx, edx
mov r8, qword [rsp + 0x20]
call sub.KERNEL32.dll_HeapFree
mov rax, rdi
add rsp, 0x468
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rdi, qword [rsp + 0x28]
mov qword [rdi], rax
mov byte [rdi + 0x18], 2
test rsi, rsi
jne 0x140077e35
jmp 0x140077e48
lea rcx, [0x140108cc8]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140008b70
jmp 0x140077eae
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r12
mov r8, rax
call fcn.14000bc50
ud2
Function at 0x14007ac80
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x14007ace1
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x14007ace1
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x14007ace1
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x14007ace1
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x14007ad1e
mov dword [rsp + 0x34], r9d
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1006
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x14007ad0c
xor eax, eax
jmp 0x14007ad19
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
lea rax, str.cannot_set_a_0_duration_timeout
jmp 0x14007ad19

Function at 0x14007ad30
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x14007ad91
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x14007ad91
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x14007ad91
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x14007ad91
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x14007adce
mov dword [rsp + 0x34], r9d
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1005
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x14007adbc
xor eax, eax
jmp 0x14007adc9
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
lea rax, str.cannot_set_a_0_duration_timeout
jmp 0x14007adc9

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

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
mov r9d, 2
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x14007ae16
cdqe
jmp 0x14007ae24
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x14007ae2c
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14007ae3d
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x20
pop rsi
ret

Function at 0x14007ae50
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
movzx eax, dl
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 6
mov r8d, 1
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x14007ae84
xor eax, eax
jmp 0x14007ae91
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
Function at 0x14007aea0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rdx, qword [rdx + 8]
mov rsi, qword [rdi + 0x10]
mov rax, rdx
sub rax, rsi
jb 0x14007af1a
mov rcx, qword [rcx]
cmp rax, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, rax
mov rdx, qword [rdi]
add rdx, rsi
xor r9d, r9d
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x14007aefb
cdqe
add rsi, rax
mov qword [rdi + 0x10], rsi
mov rax, qword [rdi + 0x18]
cmp rax, rsi
cmova rsi, rax
mov qword [rdi + 0x18], rsi
xor eax, eax
jmp 0x14007af13
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x14007af0b
xor eax, eax
jmp 0x14007af13
shl rax, 0x20
or rax, 2
add rsp, 0x28
pop rdi
pop rsi
ret
lea r8, str.library_std_srcio_readbuf.rs
mov rcx, rsi
call fcn.14000bbd0
ud2

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

Disassembly:
push rsi
sub rsp, 0x40
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
mov dword [rsp + 0x3c], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov rdx, rax
call sub.WS2_32.dll_WSASend
cmp eax, 0xffffffff
je 0x14007b011
mov eax, dword [rsp + 0x3c]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14007b027
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x40
pop rsi
ret

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

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rdx, qword [rdx + 8]
mov rsi, qword [rdi + 0x10]
mov rax, rdx
sub rax, rsi
jb 0x14007b0bd
mov rcx, qword [rcx]
mov rcx, qword [rcx]
cmp rax, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, rax
mov rdx, qword [rdi]
add rdx, rsi
xor r9d, r9d
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x14007b09e
cdqe
add rsi, rax
mov qword [rdi + 0x10], rsi
mov rax, qword [rdi + 0x18]
cmp rax, rsi
cmova rsi, rax
mov qword [rdi + 0x18], rsi
xor eax, eax
jmp 0x14007b0b6
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x14007b0ae
xor eax, eax
jmp 0x14007b0b6
shl rax, 0x20
or rax, 2
add rsp, 0x28
pop rdi
pop rsi
ret
lea r8, str.library_std_srcio_readbuf.rs
mov rcx, rsi
call fcn.14000bbd0
ud2

Function at 0x14007b2b0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
movzx eax, dl
mov dword [rsp + 0x24], eax
lea r8, [rsp + 0x24]
mov edx, 0x8004667e
call sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
je 0x14007b2d6
xor eax, eax
jmp 0x14007b2e3
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x28
ret

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

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
xor r9d, r9d
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
je 0x14007b369
cdqe
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14007b37f
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x20
pop rsi
ret
Function at 0x14007b390
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
xor r9d, r9d
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x14007b3c3
cdqe
jmp 0x14007b3d1
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x14007b3d9
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14007b3ea
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x20
pop rsi
ret
Function at 0x14007d110
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov ebx, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.1400042e0
mov r8, qword [rsp + 0x30]
test r8, r8
je 0x14007d16e
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
cmp qword [rsp + 0x38], 0
cmp byte [rax], al
je 0x14007d1fa
mov rcx, qword [0x140190150]
xor edx, edx
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
jmp sub.KERNEL32.dll_HeapFree
mov rdi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
xorps xmm0, xmm0
push rdi
ror byte [rdi], 0x29
and al, 0x50
push rax

Function at 0x1400815e0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
add byte [rax], al
add byte [rax - 0x77], cl
xlatb
mov rsi, rcx
movups xmm0, xmmword [0x14010ade0]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
mov ecx, edx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x140081651
mov rcx, rdi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140081687
test eax, eax
js 0x140081662
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14008167a
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
add byte [rax], al
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
and al, 0x58
lea rdx, [rsp + 0x78]
call fcn.14007a220
mov rcx, rax
call fcn.140061f00
mov ecx, 7
int 0x29
ud2
Function at 0x1400816f0
Capabilities:
Create udp socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov edi, r8d
mov rsi, rcx
cmp word [rdx], 0
mov eax, 2
mov ebx, 0x17
cmove ebx, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, r8d
xor r8d, r8d
xor r9d, r9d
call sub.WS2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x140081744
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1400817da
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2726
je case.0x14007b991.103
cmp eax, 0x2739
jne 0x1400817a5
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call sub.WS2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x1400817a0
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
xor eax, eax
call sub.KERNEL32.dll_SetHandleInformation
test eax, eax
je 0x1400817ba
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x1400817da
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add dword [rax], eax
add byte [rax], al
jmp 0x1400817da
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
invalid
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
call sub.WS2_32.dll_closesocket
mov rax, rsi
add rsp, 0x30
add esp, 0x30
pop rbx
pop rdi
pop rsi
ret