joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c4e20
Capabilities:
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x8f8
movdqa xmmword [rsp + 0x8e0], xmm12
movdqa xmmword [rsp + 0x8d0], xmm11
movdqa xmmword [rsp + 0x8c0], xmm10
movdqa xmmword [rsp + 0x8b0], xmm9
movaps xmmword [rsp + 0x8a0], xmm8
movdqa xmmword [rsp + 0x890], xmm7
movdqa xmmword [rsp + 0x880], xmm6
mov r12, r8
mov r15, rdx
mov qword [rsp + 0x158], rcx
mov rcx, qword [rdx + 0x130]
test rcx, rcx
mov qword [rsp + 0x28], rdx
je 0x1400c4ea5
mov rdx, r12
call fcn.1400fb3e0
test al, al
je 0x1400c7b96
lea rax, [r15 + 0x20]
mov qword [rsp + 0x228], rax
lea rax, [r15 + 0xe0]
mov qword [rsp + 0x190], rax
lea rax, [r15 + 0xe3]
mov qword [rsp + 0x408], rax
lea rax, [r15 + 0x28]
mov qword [rsp + 0x198], rax
lea rax, [r15 + 0x88]
mov qword [rsp + 0x418], rax
lea rax, [0x14014a438]
lea rcx, [0x14017b4d0]
pxor xmm7, xmm7
movaps xmm8, xmmword [0x1401196c0]
movq xmm0, rcx
movq xmm9, rax
punpcklqdq xmm9, xmm0
movdqa xmm10, xmmword [str.uespemosarenegylmodnarodsetybdet]
movdqa xmm11, xmmword [0x140119680]
movdqa xmm6, xmmword [0x140119690]
lea rax, [r15 + 0xc8]
mov qword [rsp + 0x160], rax
lea rax, [r15 + 0xf8]
mov qword [rsp + 0x558], rax
lea rax, [r15 + 0x58]
mov qword [rsp + 0x570], rax
lea rax, [r15 + 0x70]
mov qword [rsp + 0x568], rax
lea r13, [rsp + 0x580]
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x230]
mov qword [rsp + 0x560], r12
jmp 0x1400c500d
movzx eax, byte [0x14018af58]
mov rcx, qword [0x14018aea8]
test rcx, rcx
jne 0x1400c7bc2
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x1400c87c3
test byte [rbx], cl
or al, 0
invalid
mov rcx, rax
mov qword [0x14018aea8], rax
mov r8d, 0x70
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x1400c87c3
mov rsi, rax
mov qword [rax + 0x58], 1
lea rax, [0x140149b28]
mov qword [rsi + 0x60], rax
mov word [rsi + 0x68], 1
mov r14, qword [r15 + 0x98]
mov rbx, qword [r15 + 0xa8]
test rbx, rbx
je 0x1400c7c52
js 0x1400c8726
movzx eax, byte [0x14018af58]
mov rcx, qword [0x14018aea8]
test rcx, rcx
jne 0x1400c7c3a
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x1400c802a
mov rcx, rax
mov qword [0x14018aea8], rax
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, rax
test rax, rax
jne 0x1400c7c58
jmp 0x1400c802a
mov r15d, 1
mov rcx, r15
mov rdx, r14
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rdx, qword [rsp + 0x28]
movups xmm0, xmmword [rdx + 0xc8]
movaps xmmword [rsp + 0x50], xmm0
movzx eax, byte [rdx + 0xd8]
mov byte [rsp + 0x60], al
jmp 0x1400c7f1e
Function at 0x1400cc9f0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.140018e60
cmp rax, rcx
je 0x1400cca15
cmp rdx, 4
jae 0x1400cca18
xor eax, eax
xor r8d, r8d
jmp 0x1400ccab0
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x1401196a0]
movdqa xmm3, xmmword [0x1401196b0]
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 0x1400cca40
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x1400ccac7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x1400ccab0
ret
Function at 0x1400cda40
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 0x1400cda9b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x1400cda9b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x1400cdab6
cmp eax, 0x42
jne 0x1400cda9b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x1400cdb66
cmp byte [r9 + r11], 0x5f
jne 0x1400cdb66
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x1400cdbce
mov rcx, rsi
xor edx, edx
call fcn.1400c91a0
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.1400c91a0
test al, al
jne 0x1400cdc61
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400cdaf2
lea rdx, [0x14014fa83]
mov r8d, 1
call fcn.1400192d0
test al, al
jne 0x1400cdc61
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x1400cdaaa
xor r14d, r14d
lea rbx, [0x14014fe38]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x1400cdb24
cmp byte [rax + rcx], 0x45
je 0x1400cdc8a
sub r14, 1
jb 0x1400cdb49
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400cdb49
mov r8d, 2
mov rdx, rbx
call fcn.1400192d0
test al, al
jne 0x1400cdc61
mov rcx, rsi
call fcn.1400caa00
test al, al
jne 0x1400cdc61
mov rax, qword [rsi]
test rax, rax
jne 0x1400cdb10
jmp 0x1400cdaaa
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x1400cdc28
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x1400cdbc2
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x1400cdbac
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x1400cdb9b
add dl, 0xa9
jmp 0x1400cdbaa
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x1400cdc28
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x1400cdc28
movzx edx, bl
add rax, rdx
jae 0x1400cdb70
jmp 0x1400cdc28
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x1400cdc28
cmp rax, rcx
jae 0x1400cdc25
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x1400cdc69
cmp qword [rsi + 0x20], 0
je 0x1400cdc83
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.1400cda40
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x1400cdaac
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400cdc78
lea rax, str.invalid_syntaxrecursion_limit_reached
lea rdx, [0x14014fdf8]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
add r8, 0x10
call fcn.1400192d0
test al, al
je 0x1400cdc78
mov dil, 2
jmp 0x1400cdaaa
mov dil, 1
xor r8d, r8d
mov rcx, qword [rsi + 0x20]
test rcx, rcx
jne 0x1400cdc33
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x1400cdaaa
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x1400cdaaa
Function at 0x1400cfdc0
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xc8
movaps xmmword [rsp + 0xb0], xmm6
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x60], 4
mov dword [rsp + 0xa8], 0x400010
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x1400cfe27
mov edx, dword [rcx + 0x28]
mov dword [rsp + 0x88], edx
mov qword [rsp + 0x90], rax
mov rax, qword [rcx + 0x30]
test rax, rax
je 0x1400cfe68
mov r8, qword [rcx + 0x40]
xor edx, edx
test r8, r8
je 0x1400cfe61
lea r9, [0x14017df50]
xor r10d, r10d
nop word cs:[rax + rax]
movzx r11d, byte [rax + r10]
or edx, dword [r9 + r11*4]
inc r10
cmp r8, r10
jne 0x1400cfe50
mov dword [rsp + 0x98], edx
mov r14, qword [rcx + 0x10]
test r14, r14
je 0x1400cfed2
mov rbx, qword [rcx]
lea rdi, [r14*8]
movzx eax, byte [0x14018af58]
mov rcx, qword [0x14018aea8]
test rcx, rcx
jne 0x1400cfea8
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x1400cffc7
mov rcx, rax
mov qword [0x14018aea8], rax
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x1400cffc7
mov rsi, rax
mov rcx, rax
mov rdx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov eax, r14d
jmp 0x1400cfed9
xor eax, eax
mov esi, 8
mov dword [rsp + 0x64], eax
mov qword [rsp + 0x68], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
lea rdx, str.Microsoft_Unified_Security_Protocol_Provider
xor ecx, ecx
mov r8d, 2
xor r9d, r9d
call qword [sym.imp.secur32.dll_AcquireCredentialsHandleA]
test eax, eax
je 0x1400cff64
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov ebx, 1
test r14, r14
je 0x1400cff49
mov rcx, qword [0x14018aea8]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, rbx
mov rdx, rdi
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r14
ret
movaps xmm6, xmmword [rsp + 0x50]
movzx eax, byte [0x14018af58]
mov rcx, qword [0x14018aea8]
test rcx, rcx
jne 0x1400cff91
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x1400cffd6
mov rcx, rax
mov qword [0x14018aea8], rax
mov r8d, 0x20
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x1400cffd6
mov rdi, rax
mov qword [rax], 1
mov qword [rax + 8], 1
movups xmmword [rax + 0x10], xmm6
xor ebx, ebx
test r14, r14
jne 0x1400cff37
jmp 0x1400cff49
mov ecx, 8
mov rdx, rdi
call fcn.14010fbd0
ud2
mov ecx, 8
mov edx, 0x20
call fcn.14010fbd0
ud2
Function at 0x1400d3050
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
in al, dx
test al, 0
add byte [rax], al
mov rdi, rdx
mov edi, edx
mov rsi, rcx
movups xmm0, xmmword [0x140152a60]
adc byte [0x140152a60], al
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
cmovb eax, ecx
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
and al, 0x30
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor eax, eax

Function at 0x1400d7ce0
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x410], xmm6
mov qword [rbp + 0x408], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x60]
call fcn.1400d39b0
mov rax, qword [rbp - 0x60]
mov qword [rbp + 0x3e0], rax
test rax, rax
je 0x1400d7e67
mov qword [rbp + 0x3f8], rsi
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x3d8], rax
mov qword [rbp + 0x3c0], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3c8], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x400], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x1400d7da0
jmp 0x1400d7d8f
jae 0x1400d7e79
cmp r8, 0x201
jae 0x1400d7da0
mov esi, 0x200
lea r13, [rbp - 0x60]
mov r15, r8
jmp 0x1400d7df8
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x1400d7dcf
lea rcx, [rbp + 0x3c0]
mov rdx, r12
call fcn.140117740
mov rax, qword [rbp + 0x3c0]
mov qword [rbp + 0x400], rax
mov rdi, qword [rbp + 0x3c8]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d0], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x400]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x3e0]
mov rdx, r13
mov r8d, r15d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov r14d, eax
test eax, eax
jne 0x1400d7e28
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400d7fa7
invalid
mov r8d, r14d
cmp r15, r8
jne 0x1400d7d80
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400d8007
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1400d7d8f
jmp 0x1400d7da0
lea rcx, [rbp - 0x60]
call fcn.1400d3b90
mov byte [rsi + 0x18], 2
jmp 0x1400d7f8c
cmp rsi, r8
jb 0x1400d8021
lea rcx, [rbp + 0x3a0]
mov rdx, r13
call fcn.1400d6140
mov rsi, qword [rbp + 0x3a0]
movups xmm6, xmmword [rbp + 0x3a8]
movzx ebx, byte [rbp + 0x3b8]
mov eax, dword [rbp + 0x3b9]
mov dword [rbp + 0x3f0], eax
mov eax, dword [rbp + 0x3bc]
mov dword [rbp + 0x3f3], eax
test rdi, rdi
je 0x1400d7ed9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
shl rsi, 0x20
or rsi, 2
invalid
lea rcx, str.internal_error:_entered_unreachable_code_rustc_a28077b28a02b92985b3a3faecf92813155f1ea1library_std_src_threadmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
add byte [rax], al
invalid
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
Function at 0x1400e5780
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x88
movdqa xmmword [rsp + 0x70], xmm6
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.1400d39b0
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
test rcx, rcx
je 0x1400e57f6
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdx
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x58]
call fcn.1400e56a0
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x1400e5804
movdqu xmm6, xmmword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400e5824
mov qword [rsi], rdi
movdqu xmmword [rsi + 8], xmm6
jmp 0x1400e5815
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x28]
call fcn.1400d3b90
mov qword [rsi], 0
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
ret
mov qword [rsi], 0
movq rax, xmm6
test rax, rax
je 0x1400e5815
mov rcx, qword [0x14018aea8]
xor edx, edx
mov r8, rdi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_HeapFree]
Function at 0x1400e7c10
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 r14, rdx
mov rsi, rcx
movzx eax, byte [0x14018af58]
mov rcx, qword [0x14018aea8]
test rcx, rcx
jne 0x1400e7c5c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x1400e7d2a
mov rcx, rax
mov qword [0x14018aea8], rax
mov r8d, 0x10
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x1400e7d2a
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400e8180]
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 0x1400e7d1c
mov rcx, qword [rbx]
mov qword [rbp - 0x18], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x10], rax
call qword [rax]
mov rax, qword [rbp - 0x10]
cmp qword [rax + 8], 0
mov rsi, qword [rbp - 0x18]
je 0x1400e7cf5
cmp qword [rax + 0x10], 0x11
jae 0x1400e7cde
mov r8, qword [rbp - 0x20]
jmp 0x1400e7ce6
mov r8, qword [rbp - 0x20]
mov r8, qword [r8 - 8]
mov rcx, qword [0x14018aea8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x14018aea8]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.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 qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rdi
mov ecx, 8
mov edx, 0x10
call fcn.14010fbd0
ud2
Function at 0x1400e8650
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.14010e3d0
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1000], xmm6
mov qword [rbp + 0xff8], 0xfffffffffffffffe
mov qword [rbp + 0xfd8], rdx
mov r14, rcx
lea rsi, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0xfec], 0
xorps xmm6, xmm6
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
lea r15, [rbp + 0xfec]
mov qword [rbp + 0xfc8], r15
lea r12, [0x1400de4e0]
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0xfb0]
mov rcx, r14
mov rdx, rsi
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x1400e883e
mov r13, qword [sym.imp.KERNEL32.dll_SleepEx]
lea rsi, [rbp + 0xfb0]
mov rdi, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov qword [rbp + 0xfe0], r14
mov ecx, 0xffffffff
mov edx, 1
call r13
cmp dword [rbp + 0xfec], 0
je 0x1400e8717
cmp dword [rbp + 0xff0], 0
jne 0x1400e8853
mov ebx, dword [rbp + 0xff4]
test rbx, rbx
je 0x1400e8853
cmp ebx, 0x1000
ja 0x1400e8897
xor r14d, r14d
nop dword [rax + rax]
cmp r14, rbx
ja 0x1400e8883
lea rdx, [r14 + rbp]
add rdx, 0xffffffffffffffb0
mov r8d, ebx
sub r8d, r14d
mov dword [rbp + 0xfec], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r15
mov qword [rsp + 0x20], r12
mov rcx, qword [rbp + 0xfd8]
mov r9, rsi
call rdi
test eax, eax
je 0x1400e8846
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r13
cmp dword [rbp + 0xfec], 0
je 0x1400e87c0
cmp dword [rbp + 0xff0], 0
jne 0x1400e884c
mov eax, dword [rbp + 0xff4]
add r14, rax
cmp r14, rbx
jne 0x1400e8760
mov dword [rbp + 0xfec], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r15
mov qword [rsp + 0x20], r12
mov r14, qword [rbp + 0xfe0]
mov rcx, r14
lea rdx, [rbp - 0x50]
mov r8d, 0x1000
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x1400e8717
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400e8853
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14, qword [rbp + 0xfe0]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call rsi
mov rcx, qword [rbp + 0xfd8]
call rsi
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, r14
mov rdx, rbx
call fcn.1401102e0
jmp 0x1400e88ab
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, rbx
call fcn.140110050
ud2
Function at 0x1400e8900
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x1400e8943
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [fcn.1400d8a10]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.14010ff10
ud2

Function at 0x1400ee310
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
mov rbx, r8
mov rsi, rcx
test rdx, rdx
je 0x1400ee33b
mov qword [rsi + 8], rbx
mov qword [rsi], 1
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov rax, qword [0x14018aeb0]
cmp rax, 3
jne 0x1400ee4c1
cmp word [rbx], 0
mov eax, 2
mov ebp, 0x17
cmove ebp, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400ee3b1
cmp word [rbx], 0
je 0x1400ee42c
movups xmm0, xmmword [rbx + 4]
mov eax, dword [rbx + 0x14]
mov edx, dword [rbx + 0x18]
movzx ecx, word [rbx + 0x1c]
mov r8d, 0x1c
mov r9w, 0x17
jmp 0x1400ee441
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x1400ee3cc
mov r14d, eax
cmp eax, 0x2726
jne 0x1400ee4b0
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x1400ee4a7
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x1400ee389
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rcx, rdi
call qword [sym.imp.ws2_32.dll_closesocket]
jmp 0x1400ee4b0
mov eax, dword [rbx + 2]
movzx ecx, word [rbx + 6]
mov r8d, 0x10
mov r9w, 2
xorps xmm0, xmm0
rol cx, 8
mov word [rsp + 0x34], r9w
mov word [rsp + 0x36], cx
mov dword [rsp + 0x38], eax
movups xmmword [rsp + 0x3c], xmm0
mov dword [rsp + 0x4c], edx
lea rdx, [rsp + 0x34]
mov rcx, rdi
call qword [sym.imp.ws2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1400ee480
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x1400ee330
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
call qword [sym.imp.ws2_32.dll_closesocket]
jmp 0x1400ee330
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov r14d, eax
shl r14, 0x20
or r14, 2
mov qword [rsi + 8], r14
jmp 0x1400ee329
call fcn.140117ac0
jmp 0x1400ee34c
Function at 0x1400ee6e0
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x1400ee715
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x1400ee71a
call fcn.1400e8900
mov ecx, dword [0x14018af5c]
mov r8, qword gs:[0x58]
mov rcx, qword [r8 + rcx*8]
mov qword [rcx + 0x98], 1
mov qword [rcx + 0xa0], rax
mov qword [rcx + 0xa8], rdx
add rsp, 0x38
ret

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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58

Function at 0x1400f27c0
Capabilities:
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, 0x78
movaps xmmword [rsp + 0x60], xmm6
mov qword [rsp + 0x58], r9
mov r15, r8
mov qword [rsp + 0x38], rcx
mov rbx, qword [rdx + 0x10]
mov rax, qword [rdx + 0x18]
mov qword [rsp + 0x50], rax
cmp rax, 0xffffffffffffffff
je 0x1400f2a01
mov rax, qword [rsp + 0xe0]
mov r12d, 0xffffffff
cmp rax, r12
cmovb r12, rax
mov r13, qword [rdx + 0x20]
xorps xmm6, xmm6
jmp 0x1400f2847
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
mov r8, r15
mov r9b, 1
call fcn.1400f1da0
movzx eax, byte [rsp + 0x49]
cmp al, 3
je 0x1400f2a1d
mov rsi, qword [rsp + 0x40]
cmp al, 2
je 0x1400f2a34
add dword [rax], eax
invalid
movzx r14d, byte [rsp + 0x48]
mov dword [rsp + 0x40], 0
movups xmmword [rsp + 0x28], xmm6
mov dword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x50]
and al, 0x50
mov rdx, qword [rsp + 0x58]
mov r8d, r12d
mov r9, rdi
call qword [sym.imp.ws2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x1400f2a46
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov rbp, rax
shl rbp, 0x20
or rbp, 2
mov ecx, eax
call fcn.1400d4970
cmp al, 0xd
jne case.0x1400efd56.13
test r13, r13
je case.0x1400efd56.13
mov rcx, qword [r13]
mov rdx, qword [r13 + 8]
lock inc qword [rdx]
jle 0x1400f2a82
add rcx, 0x10
mov r8, qword [r13 + 0x10]
movzx r9d, byte [r13 + 0x18]
movzx ecx, byte [rbp + 0x18]
call fcn.1400564e0
test rax, rax
cmovne rbp, rax
mov edi, ebp
and edi, 3
lea rcx, [0x140180d34]
sub esp, esp
or byte [rax], al
add byte [rax + 0x63], cl
add al, 0xb9
add rax, rcx
jmp rax
lea rcx, [rsp + 0x40]
mov rdx, rbx
mov r8, r15
mov r9b, 1
call fcn.1400f1da0
movzx eax, byte [rsp + 0x49]
cmp al, 3
jne 0x1400f2a2b
mov rax, qword [rsp + 0x38]
mov qword [rax], 2
jmp 0x1400f2a6c
cmp al, 2
jne 0x1400f2a86
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x38]
mov qword [rax], 1
mov qword [rax + 8], rsi
jmp 0x1400f2a6c
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
mov qword [rcx], 0
mov qword [rcx + 8], rax
jmp 0x1400f2a6c
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value
lea r8, str.C:Usersmpx16.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.35.1_srciopoll_evented.rs
mov edx, 0x2b
call fcn.1401100d0
ud2