joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001000
Capabilities:
Find process by pid

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x28], 0x7bcda4c
mov rdi, rcx
jne 0x1400010e7
cmp qword [rcx + 0x30], 0xa3ffe6c
jne 0x1400010e7
cmp qword [rcx + 0x38], 0xf5a8672
jne 0x1400010e7
movsxd rax, dword [rcx]
test eax, eax
je 0x1400010e2
and qword [r11 + 8], 0
lea rdx, [r11 + 8]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400010e2
call fcn.1400011e4
mov rcx, qword [rsp + 0x40]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rdx, qword [rdi + 8]
mov rcx, rbx
mov rsi, qword [rdi + 0x18]
call fcn.140001208
test rax, rax
je 0x1400010e2
mov ecx, eax
mov edx, 0x1000
and ecx, 0xfff
sub edx, ecx
mov rcx, qword [rdi + 0x10]
cmp edx, esi
cmovl esi, edx
and qword [rsp + 0x48], 0
cmp byte [rdi + 0x20], 0
movsxd r8, esi
je 0x1400010c5
mov rdx, rcx
lea r9, [rsp + 0x48]
mov rcx, rax
call fcn.1400015a0
jmp 0x1400010de
lea rdx, [rsp + 0x48]
mov r9d, 1
mov qword [rsp + 0x20], rdx
mov rdx, rax
call qword [sym.imp.ntoskrnl.exe_MmCopyMemory]
xor eax, eax
jmp 0x1400010e7
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140001100
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x28
lea rcx, [0x140001d30]
call sub.ntoskrnl.exe_DbgPrint
lea rcx, [0x140001d40]
call sub.ntoskrnl.exe_DbgPrint
lea rdx, [0x140001410]
xor ecx, ecx
add rsp, 0x28
jmp 0x14000162d
jmp qword [sym.imp.ntoskrnl.exe_IoCreateDriver]

Function at 0x1400014f4
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
movsxd rax, dword [rcx]
mov rbx, rcx
test eax, eax
je 0x140001542
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140001542
call sub.ntoskrnl.exe_PsGetProcessSectionBaseAddress
test rax, rax
je 0x140001542
mov rcx, qword [rbx + 8]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor eax, eax
jmp 0x140001547
mov eax, 0xc0000001
add rsp, 0x20
pop rbx
ret
Function at 0x14000373c
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, rcx
aeskeygenassist xmm0, xmmword [rdx], 2
movdqa xmmword [rcx], xmm0
ret

Function at 0x14000d840
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14000d8ba
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14000d8b0
cmp r11, r10
ja 0x14000d951
cmp r10, rdx
ja 0x14000d963
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14000d8b2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14000d890
jmp 0x14000d927
ja 0x14000d8ba
mov r11, r10
cmp rax, r8
jne 0x14000d862
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14000d92b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14000d900
mov r8, r10
sub ecx, r9d
jns 0x14000d91e
jmp 0x14000d92d
cmp r10, rdx
je 0x14000d939
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14000d92d
xor al, 1
cmp r8, rdx
jne 0x14000d8e0
jmp 0x14000d92d
xor eax, eax
jmp 0x14000d92d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x1400f3179]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140008780
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14000b910
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14000b890
int3

Function at 0x14000ecd4
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
mov r12d, 0xffffffff
xor esi, esi
test rdi, rdi
je 0x14000ed3e
mov r14, rbx
cmp rdi, r12
mov r15d, 0xffffffff
cmovb r15, rdi
add rbx, r15
sub rdi, r15
xor ecx, ecx
mov rdx, r14
mov r8d, r15d
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
cmp eax, 0xbfffffff
jbe 0x14000ecf0
mov ebp, eax
mov rcx, r14
mov edx, r15d
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x14000ecf0
add ebp, 0x80000000
mov esi, ebp
mov eax, esi
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x140015c69
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x50
xorps xmm0, xmm0
lea rsi, [rsp + 0x20]
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
mov rcx, rsi
call sub.KERNEL32.dll_GetSystemInfo
mov eax, dword [rsi + 0x28]
add rsp, 0x50
pop rsi
ret
Function at 0x140016662
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 0x140016d1b
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 [0x140165d30]
mov al, byte [rax]
cmp al, 1
jne 0x140016d51
mov rcx, rdi
mov r8, rsi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r14
jmp 0x140016d97
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.140015e57
lea r14, [rsp + 0x68]
mov rcx, r14
mov rdx, rdi
mov r8, rbx
call fcn.140001e0f
movups xmm0, xmmword [r14]
movups xmmword [rsi], xmm0
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r14
ret
jmp fcn.1400168ac
Function at 0x14002b110
Capabilities:
Encode data using xor

Disassembly:
test rdx, rdx
je 0x14000c195
cmp rdx, 4
jae 0x14000c198
xor eax, eax
xor r8d, r8d
jmp 0x14000c230
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x1400f30c0]
movdqa xmm3, xmmword [0x1400f30d0]
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 0x14000c1c0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14000c247
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14000c230
ret
sub rdx, rcx
cmp rdx, 0x20
jb 0x14000c180
jmp fcn.14000bc90
Function at 0x14002f050
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r8, qword [rcx]
test r8, r8
je 0x14002f0ab
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14002f0ab
movzx eax, byte [r8 + rcx]
cmp eax, 0x49
je 0x14002f0c6
cmp eax, 0x42
jne 0x14002f0ab
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x14002f176
cmp byte [r8 + r11], 0x5f
jne 0x14002f176
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14002f1de
mov rcx, rsi
xor edx, edx
call fcn.14002dd50
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.14002dd50
test al, al
jne 0x14002f271
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14002f102
lea rdx, [0x14010b8ec]
mov r8d, 1
call fcn.14000a200
test al, al
jne 0x14002f271
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14002f0ba
xor r14d, r14d
lea rbx, [0x14010bc89]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x14002f134
cmp byte [rax + rcx], 0x45
je 0x14002f293
sub r14, 1
jb 0x14002f159
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14002f159
mov r8d, 2
mov rdx, rbx
call fcn.14000a200
test al, al
jne 0x14002f271
mov rcx, rsi
call fcn.14002e4d0
test al, al
jne 0x14002f271
mov rax, qword [rsi]
test rax, rax
jne 0x14002f120
jmp 0x14002f0ba
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r9b, 1
cmp r11, r10
jae 0x14002f238
movzx edx, byte [r8 + r11]
cmp dl, 0x5f
je 0x14002f1d2
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14002f1bc
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14002f1ab
add dl, 0xa9
jmp 0x14002f1ba
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x14002f238
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x14002f238
movzx edx, bl
add rax, rdx
jae 0x14002f180
jmp 0x14002f238
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x14002f238
cmp rax, rcx
jae 0x14002f235
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14002f28b
cmp qword [rsi + 0x20], 0
je 0x14002f284
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.14002f050
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14002f0bc
mov r9b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14002f279
mov eax, r9d
xor al, 1
movzx eax, al
lea r8, [rax + rax*8]
add r8, 0x10
lea rax, str.invalid_syntaxrecursion_limit_reached_for_______::closureshim:_as__mut_const___dyn___unsafe_extern__
lea rdx, [0x14010bc68]
test r9b, r9b
cmovne rdx, rax
call fcn.14000a200
test al, al
je 0x14002f279
mov dil, 2
jmp 0x14002f0ba
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14002f0ba
mov dil, 1
xor r9d, r9d
jmp 0x14002f23a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14002f0ba
Function at 0x14004dffc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rdx
mov rbx, qword [rcx + 8]
mov r14, qword [rcx + 0x10]
add r14, rbx
lea rdi, [rsp + 0x24]
cmp rbx, r14
je 0x14004e0b3
movzx eax, byte [rbx]
test al, al
js 0x14004e02d
inc rbx
jmp 0x14004e08b
mov ecx, eax
and ecx, 0x1f
movzx r8d, byte [rbx + 1]
and r8d, 0x3f
cmp al, 0xdf
jbe 0x14004e072
movzx edx, byte [rbx + 2]
shl r8d, 6
and edx, 0x3f
or edx, r8d
cmp al, 0xf0
jb 0x14004e080
movzx eax, byte [rbx + 3]
and ecx, 7
shl ecx, 0x12
shl edx, 6
and eax, 0x3f
or eax, edx
or eax, ecx
cmp eax, 0x110000
je 0x14004e0b3
add rbx, 4
jmp 0x14004e08b
add rbx, 2
shl ecx, 6
or ecx, r8d
mov eax, ecx
jmp 0x14004e08b
add rbx, 3
shl ecx, 0xc
or edx, ecx
mov eax, edx
lea ecx, [rax - 0x41]
mov edx, eax
xor edx, 0x20
cmp ecx, 0x1a
cmovae edx, eax
mov dword [rsp + 0x24], edx
mov r8d, 4
mov rcx, rsi
mov rdx, rdi
call fcn.14004de10
jmp 0x14004e018
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400887e0
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], 0
mov qword [rsp + 0x38], 2
mov qword [rsp + 0x40], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x20], rax
xor edi, edi
mov ebx, 0xffffffff
xor esi, esi
xor r14d, r14d
cmp r8, 0x201
jae 0x140088860
jmp 0x14008884f
jae 0x140088905
cmp r8, 0x201
jae 0x140088860
mov r15d, 0x200
lea r12, [rsp + 0x68]
mov r13, r8
jmp 0x1400888a7
sub r8, r14
sub rsi, r14
cmp rsi, r8
jae 0x140088887
lea rcx, [rsp + 0x30]
mov rdx, r14
call fcn.140076a40
mov rdi, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
cmp rdi, rbx
mov r14d, 0xffffffff
cmovb r14, rdi
mov qword [rsp + 0x40], r14
mov rsi, rdi
mov r15, r14
mov r12, qword [rsp + 0x20]
mov r13, r14
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov ecx, r13d
mov rdx, r12
call sub.KERNEL32.dll_GetCurrentDirectoryW
mov ebp, eax
test eax, eax
jne 0x1400888cc
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x140088960
mov r8d, ebp
cmp r13, r8
jne 0x140088840
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x14008898a
add r13, r13
cmp r13, rbx
cmovae r13, rbx
mov r8, r13
cmp r8, 0x201
jb 0x14008884f
jmp 0x140088860
cmp r15, r8
jb 0x1400889a4
lea rcx, [rsp + 0x48]
mov rdx, r12
call fcn.14008b650
movups xmm0, xmmword [rsp + 0x48]
movups xmm1, xmmword [rsp + 0x58]
mov rsi, qword [rsp + 0x28]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x140088949
mov rcx, qword [0x1401b0128]
xor edx, edx
mov r8, qword [rsp + 0x20]
call sub.KERNEL32.dll_HeapFree
mov rax, rsi
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 rsi, qword [rsp + 0x28]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rdi, rdi
jne 0x140088936
jmp 0x140088949
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140008780
jmp 0x1400889b9
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.14000b890
ud2
Function at 0x140088b10
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4a8
mov rsi, rcx
movabs rdi, 0x8000000000000000
lea rcx, [rsp + 0xa8]
call fcn.140092550
mov rax, qword [rsp + 0xa8]
cmp rax, rdi
jne 0x140088b5f
lea rcx, [rsp + 0xb0]
call fcn.140072c80
mov qword [rsi], rdi
jmp 0x140088d43
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 2
mov qword [rsp + 0x58], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x28], rax
xor ebx, ebx
mov esi, 0xffffffff
xor r14d, r14d
xor r13d, r13d
cmp r8, 0x201
jae 0x140088bf0
jmp 0x140088bcf
jae 0x140088c97
cmp r8, 0x201
jae 0x140088bf0
mov edi, 0x200
lea rbp, [rsp + 0xa8]
mov r12, r8
jmp 0x140088c37
sub r8, r13
sub r14, r13
cmp r14, r8
jae 0x140088c17
lea rcx, [rsp + 0x48]
mov rdx, r13
call fcn.140076a40
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
cmp rbx, rsi
mov r13d, 0xffffffff
cmovb r13, rbx
mov qword [rsp + 0x58], r13
mov r14, rbx
mov rdi, r13
mov rbp, qword [rsp + 0x28]
mov r12, r13
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, qword [rsp + 0x30]
mov rdx, rbp
mov r8d, r12d
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov r15d, eax
test eax, eax
jne 0x140088c5e
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x140088cd6
mov r8d, r15d
cmp r12, r8
jne 0x140088bc0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x140088d75
add r12, r12
cmp r12, rsi
cmovae r12, rsi
mov r8, r12
cmp r8, 0x201
jb 0x140088bcf
jmp 0x140088bf0
cmp rdi, r8
jb 0x140088d8f
lea rcx, [rsp + 0x88]
mov rdx, rbp
call fcn.14008b650
movabs rdi, 0x8000000000000000
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rsp + 0x60], xmm0
jmp 0x140088cf7
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x68], rax
movabs rdi, 0x8000000000000000
mov qword [rsp + 0x60], rdi
mov rsi, qword [rsp + 0x38]
test rbx, rbx
je 0x140088d14
mov rcx, qword [0x1401b0128]
xor edx, edx
mov r8, qword [rsp + 0x28]
call sub.KERNEL32.dll_HeapFree
cmp qword [rsp + 0x60], rdi
jne 0x140088d5a
mov qword [rsi], rdi
lea rcx, [rsp + 0x68]
call fcn.140072c80
cmp qword [rsp + 0x40], 0
je 0x140088d43
mov rcx, qword [0x1401b0128]
xor edx, edx
mov r8, qword [rsp + 0x30]
call sub.KERNEL32.dll_HeapFree
mov rax, rsi
add rsp, 0x4a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movaps xmm0, xmmword [rsp + 0x60]
movaps xmm1, xmmword [rsp + 0x70]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
cmp qword [rsp + 0x40], 0
jne 0x140088d30
jmp 0x140088d43
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140008780
jmp 0x140088da4
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rdi
mov r8, rax
call fcn.14000b890
ud2
Function at 0x14008af00
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x14008af61
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x14008af61
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x14008af61
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x14008af61
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x14008af9e
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 0x14008af8c
xor eax, eax
jmp 0x14008af99
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 0x14008af99

Function at 0x14008afb0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x14008b011
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x14008b011
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x14008b011
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x14008b011
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x14008b04e
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 0x14008b03c
xor eax, eax
jmp 0x14008b049
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 0x14008b049

Function at 0x14008b060
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 0x14008b096
cdqe
jmp 0x14008b0a4
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x14008b0ac
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14008b0bd
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 0x14008b0d0
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 0x14008b104
xor eax, eax
jmp 0x14008b111
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
Function at 0x14008b120
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 0x14008b19a
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 0x14008b17b
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 0x14008b193
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x14008b18b
xor eax, eax
jmp 0x14008b193
shl rax, 0x20
or rax, 2
add rsp, 0x28
pop rdi
pop rsi
ret
lea r8, [0x140122810]
mov rcx, rsi
call fcn.14000b810
int3

Function at 0x14008b240
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 0x14008b291
mov eax, dword [rsp + 0x3c]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14008b2a7
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 0x14008b500
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 0x14008b526
xor eax, eax
jmp 0x14008b533
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x28
ret

Function at 0x14008b580
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 0x14008b5b9
cdqe
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14008b5cf
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 0x14008b5e0
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 0x14008b613
cdqe
jmp 0x14008b621
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x14008b629
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14008b63a
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