joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008f280
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 0x14008f2db
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14008f2db
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x14008f2f6
cmp eax, 0x42
jne 0x14008f2db
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x14008f3a6
cmp byte [r9 + r11], 0x5f
jne 0x14008f3a6
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14008f40e
mov rcx, rsi
xor edx, edx
call fcn.14008ad50
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.14008ad50
test al, al
jne 0x14008f4a1
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14008f332
lea rdx, [0x14014cdba]
mov r8d, 1
call fcn.1400460a0
test al, al
jne 0x14008f4a1
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14008f2ea
xor r14d, r14d
lea rbx, [0x14014d186]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x14008f364
cmp byte [rax + rcx], 0x45
je 0x14008f4c3
sub r14, 1
jb 0x14008f389
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14008f389
mov r8d, 2
mov rdx, rbx
call fcn.1400460a0
test al, al
jne 0x14008f4a1
mov rcx, rsi
call fcn.14008f4e0
test al, al
jne 0x14008f4a1
mov rax, qword [rsi]
test rax, rax
jne 0x14008f350
jmp 0x14008f2ea
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x14008f468
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x14008f402
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14008f3ec
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14008f3db
add dl, 0xa9
jmp 0x14008f3ea
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x14008f468
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x14008f468
movzx edx, bl
add rax, rdx
jae 0x14008f3b0
jmp 0x14008f468
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x14008f468
cmp rax, rcx
jae 0x14008f465
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14008f4bb
cmp qword [rsi + 0x20], 0
je 0x14008f4cf
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.14008f280
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14008f2ec
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14008f4a9
lea rax, [0x14014d151]
lea rdx, str.recursion_limit_reachedinvalid_syntax
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.1400460a0
test al, al
je 0x14008f4a9
mov dil, 2
jmp 0x14008f2ea
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14008f2ea
mov dil, 1
xor r8d, r8d
jmp 0x14008f46a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14008f2ea
xor edi, edi
jmp 0x14008f2ea
Function at 0x1400bd720
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xd8
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x58], 0x103
mov qword [rsp + 0x60], 0
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 + 0x58]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x1400bd799
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x58]
cmp eax, 0x103
je 0x1400bd7d0
test eax, eax
js 0x1400bd7aa
mov rax, qword [rsp + 0x60]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400bd7c3
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xd8
pop rdi
pop rsi
ret
mov byte [rsp + 0x54], 0
mov dword [rsp + 0x50], 0
lea rax, [0x140153ee0]
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], 1
mov qword [rsp + 0xa8], 0
lea rax, str.called__Option::unwrap____on_a__None__valuecalled__Result::unwrap____on_an__Err__value
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], 0
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x68], rax
lea rax, [0x140046400]
mov qword [rsp + 0x70], rax
lea rax, str.fatal_runtime_error:__n
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], 2
mov qword [rsp + 0x78], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 1
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x78]
call fcn.1400bb8f0
mov rcx, rax
call fcn.1400bba10
mov ecx, 7
int 0x29
ud2
Function at 0x1400bf2b0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r14d, r14d
cmp r8, 0x201
jae 0x1400bf350
jmp 0x1400bf33f
jae 0x1400bf40d
cmp r8, 0x201
jae 0x1400bf350
lea r15, [rbp - 0x58]
mov r12d, 0x200
mov r13, r8
jmp 0x1400bf3a8
sub r8, r14
sub rbx, r14
cmp rbx, r8
jae 0x1400bf37f
lea rcx, [rbp + 0x3c8]
mov rdx, r14
call fcn.14012eb90
mov rdi, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rdi, rax
mov r14d, 0xffffffff
cmovb r14, rdi
mov qword [rbp + 0x3d8], r14
mov rbx, rdi
mov r15, qword [rbp + 0x3e8]
mov r12, r14
mov r13, r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r13d
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
test eax, eax
jne 0x1400bf3cf
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x1400bf46c
mov r8d, esi
cmp r13, r8
jne 0x1400bf330
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x1400bf48e
add r13, r13
mov eax, 0xffffffff
cmp r13, rax
cmovae r13, rax
mov r8, r13
cmp r8, 0x201
jb 0x1400bf33f
jmp 0x1400bf350
cmp r12, r8
jb 0x1400bf4a8
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.1400bfce0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rax, qword [rbp + 0x3e0]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
test rdi, rdi
je 0x1400bf457
mov edx, 2
mov rcx, qword [rbp + 0x3e8]
call fcn.140040300
nop
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, qword [rbp + 0x3e0]
mov qword [rcx], rax
mov byte [rcx + 0x18], 2
test rdi, rdi
jne 0x1400bf446
jmp 0x1400bf457
lea rcx, [0x1401592cd]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14012b9c0
jmp 0x1400bf4bd
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r12
mov r8, rax
call fcn.14012b9b0
ud2
Function at 0x1400c1320
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x1400c1350
test ecx, ecx
jne 0x1400c13a0
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x1400c135c
test ecx, ecx
jne 0x1400c13a0
mov rcx, rdi
call fcn.1400c1200
movzx eax, al
test bpl, bpl
jne 0x1400c13a7
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x1400c1393.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x1400c1518]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x1400c1393.2
xor eax, eax
test bpl, bpl
je 0x1400c136c
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x1400c14f9
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x1400c13da
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x1400c1459
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x1400c1420
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x1400c143b
inc rax
dec rdi
cmp rax, 1
jne 0x1400c1400
jmp 0x1400c1459
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x1400c143b
cmp ebx, 0x5c
je 0x1400c143b
inc rax
dec rdi
cmp rax, 1
jne 0x1400c1420
jmp 0x1400c1459
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x1400c1507
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x1400c1483
mov al, 9
cmp rdx, 2
je 0x1400c1487
cmp rdx, 1
jne 0x1400c1497
cmp byte [r8], 0x2e
jne 0x1400c1497
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x1400c1497
mov al, 0xa
jmp 0x1400c1497
cmp byte [r8], 0x2e
jne 0x1400c1497
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov qword [rsi + 8], r8
mov qword [rsi + 0x10], rdx
mov byte [rsi + 0x18], al
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x1400c1393.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x1400c1393.2
mov ecx, 2
jmp case.0x1400c1393.2
lea r8, str.library_std_srcpath.rs
call fcn.14012b9a0
ud2
lea r8, str.library_std_srcpath.rs
call fcn.14012b9a0
ud2
Function at 0x1400c6b60
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xd8
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x58], 0x103
mov qword [rsp + 0x60], 0
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 + 0x58]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x1400c6bd2
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x58]
cmp eax, 0xc0000011
jne 0x1400c6be1
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1400c6c19
cmp eax, 0x103
je 0x1400c6c23
test eax, eax
js 0x1400c6bfe
mov rax, qword [rsp + 0x60]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1400c6c19
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xd8
pop rdi
pop rsi
ret
mov byte [rsp + 0x54], 0
mov dword [rsp + 0x50], 0
lea rax, [0x140153ee0]
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], 1
mov qword [rsp + 0xa8], 0
lea rax, str.called__Option::unwrap____on_a__None__valuecalled__Result::unwrap____on_an__Err__value
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], 0
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x68], rax
lea rax, [0x140046400]
mov qword [rsp + 0x70], rax
lea rax, str.fatal_runtime_error:__n
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], 2
mov qword [rsp + 0x78], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 1
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x78]
call fcn.1400bb8f0
mov rcx, rax
call fcn.1400bba10
mov ecx, 7
int 0x29
ud2
Function at 0x1400c75f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4f0
mov rbx, rdx
mov rsi, rcx
movzx ebp, word [rdx + 0x40]
movzx r15d, word [rdx + 0x42]
movzx r12d, word [rdx + 0x44]
cmp dword [rdx + 0x10], 0
mov dword [rdx + 0x10], 0
je 0x1400c764b
mov r14, qword [rbx + 8]
cmp bp, 0x2e
jne 0x1400c7725
test r15w, r15w
je 0x1400c764b
cmp r15w, 0x2e
jne 0x1400c7725
test r12w, r12w
jne 0x1400c7725
lea r14, [rsp + 0x80]
mov r8d, 0x250
mov rcx, r14
xor edx, edx
call fcn.14011ec50
mov rdi, qword [rbx]
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1400c779c
mov r14, qword [rbx + 8]
lea rbx, [rsp + 0x80]
mov r15, qword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x1400c76a1
mov rcx, rdi
mov rdx, rbx
call r15
test eax, eax
je 0x1400c779c
cmp word [rsp + 0xac], 0x2e
jne 0x1400c76ca
movzx eax, word [rsp + 0xae]
test ax, ax
je 0x1400c7690
cmp ax, 0x2e
jne 0x1400c76ca
cmp word [rsp + 0xb0], 0
je 0x1400c7690
lock inc qword [r14]
jle 0x1400c7823
mov rdi, qword [rsp + 0x80]
movups xmm0, xmmword [rsp + 0x88]
movaps xmmword [rsp + 0x20], xmm0
movups xmm0, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x30], xmm0
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x40], eax
movzx ebp, word [rsp + 0xac]
movzx r15d, word [rsp + 0xae]
movzx r12d, word [rsp + 0xb0]
lea rdx, [rsp + 0xb2]
jmp 0x1400c7750
lock inc qword [r14]
jle 0x1400c7823
lea rdx, [rbx + 0x46]
mov rdi, qword [rbx + 0x14]
mov eax, dword [rbx + 0x3c]
mov dword [rsp + 0x40], eax
movups xmm0, xmmword [rbx + 0x2c]
movaps xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [rbx + 0x1c]
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x2d2]
mov r8d, 0x21e
call fcn.14011e5a0
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x70], eax
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x60], xmm1
movaps xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x80]
lea rdx, [rsp + 0x2d2]
mov r8d, 0x21e
call fcn.14011e5a0
jmp 0x1400c77c1
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x12
jne 0x1400c77af
mov qword [rsi], 0
jmp 0x1400c7811
call sub.KERNEL32.dll_GetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
xor r14d, r14d
mov qword [rsi + 8], rdi
movaps xmm0, xmmword [rsp + 0x50]
movaps xmm1, xmmword [rsp + 0x60]
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi + 0x20], xmm1
mov eax, dword [rsp + 0x70]
mov dword [rsi + 0x30], eax
mov word [rsi + 0x34], bp
mov word [rsi + 0x36], r15w
mov word [rsi + 0x38], r12w
lea rcx, [rsi + 0x3a]
lea rdx, [rsp + 0x80]
mov r8d, 0x21e
call fcn.14011e5a0
mov qword [rsi + 0x258], r14
mov qword [rsi], 1
add rsp, 0x4f0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
ud2
Function at 0x1400c88a0
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.1400be2a0
mov rsi, qword [rsp + 0x20]
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x1400c8944
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov r8b, 1
call fcn.1400c6cf0
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
test rdi, rdi
je 0x1400c8944
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1400c8920
test rsi, rsi
je 0x1400c891c
mov edx, 2
mov rcx, rdi
call fcn.140040300
xor esi, esi
jmp 0x1400c8944
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x1400c8941
mov edx, 2
mov rcx, rdi
call fcn.140040300
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400cc9a0
Capabilities:
Create udp socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov edi, r8d
mov rsi, rcx
test dx, dx
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 0x1400cc9f0
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1400cca5f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2726
je 0x1400cca04
cmp eax, 0x2739
jne 0x1400cca4c
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 0x1400cca46
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.KERNEL32.dll_SetHandleInformation
test eax, eax
je 0x1400cca67
mov qword [rsi + 8], rdi
jmp 0x1400cc9e7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.WS2_32.dll_closesocket]

Function at 0x1400cca90
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x1400ccaf5
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x1400ccaf5
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x1400ccaf5
imul edx, r8d, 0x68c26139
ror edx, 6
xor r8d, r8d
cmp edx, 0x10c7
setae r8b
add rax, r8
jb 0x1400ccaf5
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x1400ccb33
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 0x1400ccb20
xor eax, eax
jmp 0x1400ccb2e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
lea rax, str.cannot_set_a_0_duration_timeout
jmp 0x1400ccb2e

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

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdx, qword [r8 + 8]
mov rsi, qword [r8 + 0x10]
mov rax, rdx
sub rax, rsi
jb 0x1400ccbb8
mov rdi, r8
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 0x1400ccb98
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 0x1400ccbb1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x1400ccba9
xor eax, eax
jmp 0x1400ccbb1
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.14012b9a0
ud2
Function at 0x1400ccbd0
Capabilities:
Send data
Send data on socket

Disassembly:
push rsi
sub rsp, 0x40
mov rax, r8
mov rsi, rcx
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 rcx, rdx
mov rdx, rax
call sub.WS2_32.dll_WSASend
cmp eax, 0xffffffff
je 0x1400ccc21
mov eax, dword [rsp + 0x3c]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400ccc38
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0x40
pop rsi
ret

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

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rcx, rdx
mov rdx, rax
xor r9d, r9d
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
je 0x1400ccc89
cdqe
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400ccca0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0x20
pop rsi
ret

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

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rcx, rdx
mov rdx, rax
xor r9d, r9d
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x1400ccce3
cdqe
jmp 0x1400cccf2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x1400cccfa
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400ccd0b
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0x20
pop rsi
ret
Function at 0x1400d3fb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x30]
call fcn.1400d3e80
mov rdi, qword [rbp - 0x28]
test rdi, rdi
je 0x1400d3fff
mov rbx, qword [rbp - 0x30]
mov r14, qword [rbp - 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400d4062
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r14
jmp 0x1400d4057
mov rdx, qword [rbp - 0x30]
mov eax, edx
and eax, 3
cmp eax, 1
jne 0x1400d404f
lea rax, [rdx - 1]
mov qword [rbp - 0x18], rax
mov rcx, qword [rdx - 1]
mov qword [rbp - 0x10], rdx
mov rax, qword [rdx + 7]
call qword [rax]
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 7]
cmp qword [rax + 8], 0
mov rdi, qword [rbp - 0x18]
je 0x1400d4042
mov rdx, qword [rax + 0x10]
mov rcx, qword [rdi]
call fcn.140040300
mov edx, 8
mov rcx, rdi
call fcn.140040300
mov qword [rsi + 8], 0
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rsi + 8], 0
test rbx, rbx
je 0x1400d4057
mov edx, 2
mov rcx, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp fcn.140040300
Function at 0x1400d5da0
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov qword [rbp - 0x20], rdx
mov qword [rbp - 0x18], r8
mov ecx, reloc.WS2_32.dll_recv
mov edx, 8
call fcn.140040270
test rax, rax
je 0x1400d5e71
mov r14, rax
mov qword [rax], rbx
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400d63f0]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400d5e63
mov rcx, qword [r14]
mov qword [rbp - 0x10], r14
mov rax, qword [r14 + 8]
call qword [rax]
mov rsi, qword [rbp - 0x10]
mov rax, qword [rsi + 8]
cmp qword [rax + 8], 0
je 0x1400d5e42
mov rdx, qword [rax + 0x10]
mov rcx, qword [rsi]
call fcn.140040300
mov edx, 8
mov rcx, rsi
call fcn.140040300
call sub.KERNEL32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov ecx, reloc.WS2_32.dll_recv
mov edx, 8
call fcn.14012b690
ud2
Function at 0x1400d68d0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x1098
call fcn.14011d420
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1000], xmm6
mov qword [rbp + 0xff8], 0xfffffffffffffffe
mov rsi, rdx
mov r15, rcx
mov qword [rbp + 0xfb0], rcx
mov qword [rbp + 0xfb8], rdx
lea rbx, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, rbx
xor edx, edx
call fcn.14011ec50
mov dword [rbp + 0xfe8], 0
xorps xmm6, xmm6
movaps xmmword [rbp + 0xfc0], xmm6
mov qword [rbp + 0xfd0], 0
lea rax, [rbp + 0xfe8]
mov qword [rbp + 0xfd8], rax
lea r13, [0x1400cd2e0]
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0xfc0]
mov rcx, r15
mov rdx, rbx
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x1400d6ad8
mov r14, qword [sym.imp.KERNEL32.dll_SleepEx]
lea rbx, [rbp + 0xfc0]
mov rdi, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov qword [rbp + 0xfe0], r15
mov ecx, 0xffffffff
mov edx, 1
call r14
cmp dword [rbp + 0xfe8], 0
je 0x1400d69a1
cmp dword [rbp + 0xfec], 0
jne 0x1400d6aeb
mov eax, dword [rbp + 0xff0]
test rax, rax
je 0x1400d6aeb
cmp eax, 0x1000
ja 0x1400d6b32
xor r15d, r15d
nop word cs:[rax + rax]
cmp r15, rax
ja 0x1400d6b17
lea rdx, [r15 + rbp]
add rdx, 0xffffffffffffffb0
mov r12, rax
mov r8d, eax
sub r8d, r15d
mov dword [rbp + 0xfe8], 0
movaps xmmword [rbp + 0xfc0], xmm6
mov qword [rbp + 0xfd0], 0
lea rax, [rbp + 0xfe8]
mov qword [rbp + 0xfd8], rax
mov qword [rsp + 0x20], r13
mov rcx, rsi
mov r9, rbx
call rdi
test eax, eax
je 0x1400d6adf
nop dword [rax]
mov ecx, 0xffffffff
mov edx, 1
call r14
cmp dword [rbp + 0xfe8], 0
je 0x1400d6a50
cmp dword [rbp + 0xfec], 0
jne 0x1400d6ae4
mov eax, dword [rbp + 0xff0]
add r15, rax
mov rax, r12
cmp r15, r12
jne 0x1400d69f0
mov dword [rbp + 0xfe8], 0
movaps xmmword [rbp + 0xfc0], xmm6
mov qword [rbp + 0xfd0], 0
lea rax, [rbp + 0xfe8]
mov qword [rbp + 0xfd8], rax
mov qword [rsp + 0x20], r13
mov r15, qword [rbp + 0xfe0]
mov rcx, r15
lea rdx, [rbp - 0x50]
mov r8d, 0x1000
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x1400d69a1
call sub.KERNEL32.dll_GetLastError
jmp 0x1400d6aeb
call sub.KERNEL32.dll_GetLastError
mov r15, qword [rbp + 0xfe0]
mov rdi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call rdi
mov rcx, rsi
call rdi
movaps xmm6, xmmword [rbp + 0x1000]
add rsp, 0x1098
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r15
mov qword [rbp + 0xfe0], rax
mov rdx, rax
call fcn.14012bbd0
jmp 0x1400d6b4d
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov qword [rbp + 0xfe0], rax
mov rcx, rax
call fcn.14012b9b0
ud2