joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140028038
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
mov rbx, rdx
mov rsi, rcx
lea rcx, [rsp + 0x50]
mov rdx, r8
mov r8, r9
call fcn.140028004
mov dword [rsp + 0x30], 0x800
and dword [rsp + 0x34], 0
mov ecx, 0x800
xor edx, edx
call fcn.14002fd42
lea rdi, [rsp + 0x38]
mov qword [rdi], rax
mov qword [rdi + 8], rdx
and qword [rdi + 0x10], 0
mov rbx, qword [rbx]
mov r14, qword [rsp + 0x50]
lea r12, [rsp + 0x30]
lea r15, [rsp + 0x34]
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
mov r9, r15
call sub.ADVAPI32.dll_RegQueryValueExW
cmp eax, 0xea
jne 0x1400280cc
mov edx, dword [rsp + 0x30]
mov rcx, rdi
call fcn.14002c425
jmp 0x140028097
test eax, eax
jne 0x1400280ee
mov eax, dword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x34]
cmp eax, 0xb
jbe 0x140028109
movabs rax, 0xde00000002
jmp 0x1400280f6
shl rax, 0x20
or rax, 2
mov qword [rsi], rax
mov byte [rsi + 0x18], 0xc
lea rcx, [rsp + 0x38]
call fcn.1400304a6
jmp 0x14002811d
mov rcx, qword [rsp + 0x48]
mov qword [rsi + 0x10], rcx
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rsi], xmm0
mov byte [rsi + 0x18], al
lea rcx, [rsp + 0x50]
call fcn.1400dc3a1
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x14002840e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, qword [rcx]
mov rcx, qword [rax]
jmp fcn.140024bd8

Function at 0x14002842f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, qword [rcx]
mov rcx, qword [rax]
mov r8d, 1
jmp 0x140077d93
Function at 0x14002a7bc
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 + 0x20]
add rsp, 0x50
pop rsi
ret
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rsi, qword [rcx + 0x10]
test rsi, rsi
je 0x1400325f7
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
lea rdx, str.RAYON_NUM_THREADSRAYON_RS_NUM_CPUSThreadPoolBuildErrorkind
lea rsi, [rsp + 0x40]
mov r8d, 0x11
mov rcx, rsi
call fcn.140090710
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov rdx, rsi
call fcn.14002f6df
cmp qword [rdi], 0
je 0x14003265f
mov r8, qword [rsp + 0x38]
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], r8
movups xmm0, xmmword [rsp + 0x28]
movaps xmmword [rdi], xmm0
mov rdx, qword [rdi]
lea rsi, [rsp + 0x60]
mov rcx, rsi
call fcn.140015fd0
mov bl, byte [rsi]
mov rsi, qword [rsi + 8]
mov rcx, rdi
call fcn.1400304a6
test bl, bl
je 0x1400326c7
lea rdx, [0x140127ca1]
lea rsi, [rsp + 0x40]
mov r8d, 0x11
mov rcx, rsi
call fcn.140090710
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov rdx, rsi
call fcn.14002f6df
cmp qword [rdi], 0
je 0x1400326d0
mov r8, qword [rsp + 0x38]
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], r8
movups xmm0, xmmword [rsp + 0x28]
movaps xmmword [rdi], xmm0
mov rdx, qword [rdi]
lea rsi, [rsp + 0x60]
mov rcx, rsi
call fcn.140015fd0
mov bl, byte [rsi]
mov rsi, qword [rsi + 8]
mov rcx, rdi
call fcn.1400304a6
test bl, bl
jne 0x1400326d0
test rsi, rsi
jne 0x1400325ec
add rsp, 0x70
pop rbx
pop rdi
pop rsi
jmp 0x14002a7bc

Function at 0x14002e10c
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword [rcx + 0x18]
test eax, eax
je fcn.14009d5e0
dec eax
ret

Function at 0x14002e829
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rdi, qword [rcx]
mov qword [rsp + 0x28], rdi
mov rsi, qword [rdi]
mov rcx, rsi
call fcn.14002e10c
mov edx, 1
mov ecx, eax
call sub.KERNEL32.dll_TlsSetValue
lea rcx, [rsp + 0x30]
mov qword [rcx], rdi
call fcn.14002eceb
mov rcx, rsi
call fcn.14002e10c
mov ecx, eax
xor edx, edx
call sub.KERNEL32.dll_TlsSetValue
xor eax, eax
add rsp, 0x38
pop rdi
pop rsi
ret

Function at 0x14002e904
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rdi, qword [rcx]
mov qword [rsp + 0x28], rdi
mov rsi, qword [rdi]
mov rcx, rsi
call fcn.14002e10c
mov edx, 1
mov ecx, eax
call sub.KERNEL32.dll_TlsSetValue
lea rcx, [rsp + 0x30]
mov qword [rcx], rdi
call fcn.14002ec0d
mov rcx, rsi
call fcn.14002e10c
mov ecx, eax
xor edx, edx
call sub.KERNEL32.dll_TlsSetValue
xor eax, eax
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x1400325dc
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 + 0x20]
add rsp, 0x50
pop rsi
ret
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rsi, qword [rcx + 0x10]
test rsi, rsi
je 0x1400325f7
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
lea rdx, str.RAYON_NUM_THREADSRAYON_RS_NUM_CPUSThreadPoolBuildErrorkind
lea rsi, [rsp + 0x40]
mov r8d, 0x11
mov rcx, rsi
call fcn.140090710
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov rdx, rsi
call fcn.14002f6df
cmp qword [rdi], 0
je 0x14003265f
mov r8, qword [rsp + 0x38]
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], r8
movups xmm0, xmmword [rsp + 0x28]
movaps xmmword [rdi], xmm0
mov rdx, qword [rdi]
lea rsi, [rsp + 0x60]
mov rcx, rsi
call fcn.140015fd0
mov bl, byte [rsi]
mov rsi, qword [rsi + 8]
mov rcx, rdi
call fcn.1400304a6
test bl, bl
je 0x1400326c7
lea rdx, [0x140127ca1]
lea rsi, [rsp + 0x40]
mov r8d, 0x11
mov rcx, rsi
call fcn.140090710
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov rdx, rsi
call fcn.14002f6df
cmp qword [rdi], 0
je 0x1400326d0
mov r8, qword [rsp + 0x38]
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], r8
movups xmm0, xmmword [rsp + 0x28]
movaps xmmword [rdi], xmm0
mov rdx, qword [rdi]
lea rsi, [rsp + 0x60]
mov rcx, rsi
call fcn.140015fd0
mov bl, byte [rsi]
mov rsi, qword [rsi + 8]
mov rcx, rdi
call fcn.1400304a6
test bl, bl
jne 0x1400326d0
test rsi, rsi
jne 0x1400325ec
add rsp, 0x70
pop rbx
pop rdi
pop rsi
jmp 0x14002a7bc
Function at 0x1400346cf
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 0x14003475e
movzx ebx, r9b
shl rbx, 7
sub rbx, 0xffffffffffffff80
shl r8, 3
cmp r8, rbx
jne 0x14003475e
mov rdi, rdx
lea rcx, [rsp + 0x140]
mov r8d, 0xf4
xor edx, edx
call sub.msvcrt.dll_memset
call fcn.14003467a
cmp eax, 3
je 0x140034741
mov eax, eax
lea r8, [rsp + 0x140]
mov rcx, rdi
mov edx, ebx
cmp eax, 2
jne 0x140034755
call fcn.1400e2e40
jmp 0x14003475a
lea r8, [rsp + 0x140]
mov rcx, rdi
mov edx, ebx
call fcn.140102d50
jmp 0x14003475a
call fcn.1400e21d0
test eax, eax
je 0x14003477c
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.1400345f3
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 0x1400347f0
lea rcx, [rsp + rax]
add rcx, 0x140
movups xmmword [rcx], xmm6
add rax, 0x10
jmp 0x1400347d4
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x140]
mov r8d, 0x100
call sub.msvcrt.dll_memcpy
call fcn.1400361fa
test al, al
je 0x14003483e
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 0x140034867
mov rax, qword [0x140178310]
mov eax, dword [rax + 4]
not eax
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x20]
test eax, 0x10400000
jne 0x140034862
call fcn.1400eff20
jmp 0x140034867
call fcn.1400ef500
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 0x140034764

Function at 0x14003a3cb
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rdx
mov rbx, rcx
xor edi, edi
lea r14, str..cargo_registry_srcindex.crates.io_6f17d22bba15001f_ring_0.16.20_src_rand.rs
mov r12d, 0xffffffff
cmp rdi, rsi
jae 0x14003a43b
mov rcx, rbx
mov rdx, rsi
mov r8, rdi
mov r9, r14
call fcn.1400330b4
mov r15, rdx
cmp rdx, r12
cmovae r15, r12
mov rcx, rax
mov edx, r15d
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x14003a43b
add rdi, r15
jae 0x14003a3ed
lea rcx, str.attempt_to_add_with_overflow__
lea r8, str..cargo_registry_srcindex.crates.io_6f17d22bba15001f_ring_0.16.20_src_rand.rs
mov edx, 0x1c
call fcn.14000e4c0
ud2
cmp rdi, rsi
setb al
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400405d0
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 0x14004062b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14004062b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x140040646
cmp eax, 0x42
jne 0x14004062b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x1400406f6
cmp byte [r9 + r11], 0x5f
jne 0x1400406f6
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14004075e
mov rcx, rsi
xor edx, edx
call fcn.14003f230
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.14003f230
test al, al
jne 0x1400407f1
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140040682
lea rdx, [0x14012b203]
mov r8d, 1
call fcn.140011390
test al, al
jne 0x1400407f1
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14004063a
xor r14d, r14d
lea rbx, [0x14012b64e]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x1400406b4
cmp byte [rax + rcx], 0x45
je 0x140040813
sub r14, 1
jb 0x1400406d9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400406d9
mov r8d, 2
mov rdx, rbx
call fcn.140011390
test al, al
jne 0x1400407f1
mov rcx, rsi
call fcn.14003f9f0
test al, al
jne 0x1400407f1
mov rax, qword [rsi]
test rax, rax
jne 0x1400406a0
jmp 0x14004063a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x1400407b8
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x140040752
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14004073c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14004072b
add dl, 0xa9
jmp 0x14004073a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x1400407b8
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x1400407b8
movzx edx, bl
add rax, rdx
jae 0x140040700
jmp 0x1400407b8
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x1400407b8
cmp rax, rcx
jae 0x1400407b5
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14004080b
cmp qword [rsi + 0x20], 0
je 0x14004081f
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.1400405d0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14004063c
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400407f9
lea rax, [0x14012b619]
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.140011390
test al, al
je 0x1400407f9
mov dil, 2
jmp 0x14004063a
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14004063a
mov dil, 1
xor r8d, r8d
jmp 0x1400407ba
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14004063a
xor edi, edi
jmp 0x14004063a
Function at 0x140077d55
Capabilities:
Hash data using sha256 via x86 extensions

Disassembly:
mov rax, rcx
movaps xmm0, xmmword [rdx]
sha256msg1 xmm0, xmmword [r8]
movaps xmmword [rcx], xmm0
ret

Function at 0x140077d64
Capabilities:
Hash data using sha256 via x86 extensions

Disassembly:
mov rax, rcx
movaps xmm0, xmmword [rdx]
sha256msg2 xmm0, xmmword [r8]
movaps xmmword [rcx], xmm0
ret
Function at 0x14007a1cc
Capabilities:
Hash data using murmur3

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
mov r8d, dword [r8 + 0xc]
mov eax, r8d
rol eax, 0x19
mov r10d, dword [rdx]
mov ebx, r10d
rol ebx, 0x19
mov r11d, dword [rdx + 4]
mov ebp, r11d
rol ebp, 0x19
mov esi, dword [rdx + 8]
mov r14d, esi
rol r14d, 0x19
mov rdi, qword [rsp + 0x58]
mov r15d, r8d
rol r15d, 0xe
xor r15d, eax
mov eax, r10d
rol eax, 0xe
xor eax, ebx
mov ebx, r11d
rol ebx, 0xe
xor ebx, ebp
mov ebp, esi
rol ebp, 0xe
xor ebp, r14d
shr r8d, 3
xor r8d, r15d
add r8d, r10d
shr r10d, 3
xor r10d, eax
add r10d, r11d
shr r11d, 3
xor r11d, ebx
add r11d, esi
shr esi, 3
xor esi, ebp
add esi, dword [rdx + 0xc]
add r8d, dword [rdi + 0xc]
add r10d, dword [r9]
add r11d, dword [r9 + 4]
mov rax, rcx
add esi, dword [r9 + 8]
mov edx, dword [rdi]
mov ecx, dword [rdi + 4]
mov r9d, ecx
rol r9d, 0xf
mov edi, ecx
rol edi, 0xd
xor edi, r9d
shr ecx, 0xa
mov r9d, edx
rol r9d, 0xf
xor ecx, edi
mov edi, edx
rol edi, 0xd
add ecx, esi
xor edi, r9d
shr edx, 0xa
xor edx, edi
add edx, r11d
mov r9d, ecx
rol r9d, 0xf
mov r11d, ecx
rol r11d, 0xd
xor r11d, r9d
mov r9d, ecx
shr r9d, 0xa
xor r9d, r11d
add r9d, r10d
mov r10d, edx
rol r10d, 0xf
mov r11d, edx
rol r11d, 0xd
xor r11d, r10d
mov r10d, edx
shr r10d, 0xa
xor r10d, r11d
add r10d, r8d
mov dword [rax], r10d
mov dword [rax + 4], r9d
mov dword [rax + 8], edx
mov dword [rax + 0xc], ecx
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140090510
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 0x140090590
jmp 0x14009057f
jae 0x140090634
cmp r8, 0x201
jae 0x140090590
lea r12, [rsp + 0x68]
mov r13d, 0x200
mov rbp, r8
jmp 0x1400905d7
sub r8, r15
sub rdi, r15
cmp rdi, r8
jae 0x1400905b7
lea rcx, [rsp + 0x30]
mov rdx, r15
call fcn.14007ff80
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, qword [rsp + 0x20]
mov r13, r15
mov rbp, r15
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov ecx, ebp
mov rdx, r12
call sub.KERNEL32.dll_GetCurrentDirectoryW
mov ebx, eax
test eax, eax
jne 0x1400905fb
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x14009068f
mov r8d, ebx
cmp rbp, r8
jne 0x140090570
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x1400906af
add rbp, rbp
cmp rbp, r14
cmovae rbp, r14
mov r8, rbp
cmp r8, 0x201
jb 0x14009057f
jmp 0x140090590
cmp r13, r8
jb 0x1400906c9
lea rcx, [rsp + 0x48]
mov rdx, r12
call fcn.1400944a0
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 0x140090678
mov rcx, qword [0x1401c5170]
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 0x140090665
jmp 0x140090678
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14000e4c0
jmp 0x1400906de
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r13
mov r8, rax
call fcn.1400132d0
ud2
Function at 0x140090810
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
lea rcx, [rsp + 0xa8]
call fcn.14009e230
mov r15, qword [rsp + 0xa8]
test r15, r15
je 0x140090978
mov qword [rsp + 0x68], rsi
movups xmm0, xmmword [rsp + 0xb0]
movups xmmword [rsp + 0x78], xmm0
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x28], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x20], rax
xor edi, edi
xor r14d, r14d
xor esi, esi
cmp r8, 0x201
jae 0x1400908c0
jmp 0x1400908a2
mov r15, rbx
jae 0x14009098b
cmp r8, 0x201
jae 0x1400908c0
lea rbp, [rsp + 0xa8]
mov r12d, 0x200
mov r13, r8
jmp 0x14009090b
sub r8, rsi
sub r14, rsi
cmp r14, r8
jae 0x1400908e7
lea rcx, [rsp + 0x28]
mov rdx, rsi
call fcn.14007ff80
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x20], rax
mov rdi, qword [rsp + 0x30]
mov eax, 0xffffffff
cmp rdi, rax
mov esi, 0xffffffff
cmovb rsi, rdi
mov qword [rsp + 0x38], rsi
mov r14, rdi
mov rbp, qword [rsp + 0x20]
mov r12, rsi
mov r13, rsi
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rbx, r15
mov rcx, r15
mov rdx, rbp
mov r8d, r13d
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov r15d, eax
test eax, eax
jne 0x140090937
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x140090a3b
mov r8d, r15d
cmp r13, r8
jne 0x140090890
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x140090a63
mov r15, rbx
add r13, r13
mov eax, 0xffffffff
cmp r13, rax
cmovae r13, rax
mov r8, r13
cmp r8, 0x201
jb 0x1400908a2
jmp 0x1400908c0
lea rcx, [rsp + 0xb0]
call fcn.14007bda0
mov byte [rsi + 0x18], 2
jmp 0x140090a09
cmp r12, r8
jb 0x140090a7d
lea rcx, [rsp + 0x88]
mov rdx, rbp
call fcn.1400944a0
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x50], xmm1
movaps xmmword [rsp + 0x40], xmm0
test rdi, rdi
je 0x1400909d6
mov rcx, qword [0x1401c5170]
xor edx, edx
mov r8, qword [rsp + 0x20]
call sub.KERNEL32.dll_HeapFree
cmp byte [rsp + 0x58], 2
mov rsi, qword [rsp + 0x68]
jne 0x140090a20
mov byte [rsi + 0x18], 2
lea rcx, [rsp + 0x40]
call fcn.14007bda0
cmp qword [rsp + 0x78], 0
je 0x140090a09
mov rcx, qword [0x1401c5170]
xor edx, edx
mov r8, r15
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 + 0x40]
movaps xmm1, xmmword [rsp + 0x50]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
cmp qword [rsp + 0x78], 0
jne 0x1400909f8
jmp 0x140090a09
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x40], rax
mov byte [rsp + 0x58], 2
mov r15, rbx
test rdi, rdi
jne 0x1400909c3
jmp 0x1400909d6
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14000e4c0
jmp 0x140090a92
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r12
mov r8, rax
call fcn.1400132d0
ud2
Function at 0x140093cd0
Capabilities:
Set socket configuration

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

Function at 0x140093d80
Capabilities:
Set socket configuration

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

Function at 0x140093e30
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 0x140093e66
cdqe
jmp 0x140093e74
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x140093e7c
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140093e8d
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 0x140093ea0
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 0x140093ed4
xor eax, eax
jmp 0x140093ee1
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret