joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008b4ee
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x1b8
lea rbp, [rsp + 0x80]
and rsp, 0xffffffffffffff80
mov rsi, rdx
mov rdi, rcx
mov r14, qword [rdx + 0x10]
mov r15b, byte [rdx + 0x18]
lea rcx, [rsp + 0x80]
call fcn.14008a55a
mov rax, qword [rsi + 0x60]
mov qword [rsp + 0x78], rax
movabs rax, 0x7465646279746573
movabs rcx, 0x6c7967656e657261
movabs rdx, 0xded7d4e2d7dedfc6
movabs r8, 0xa60c596fc19fead0
movabs r9, 0xe414a674f0de7325
mov r11d, 1
lock xadd qword [0x1401528d8], r11
mov r10, r11
xor r10, rax
lea r12, [r10 + rcx]
mov rbx, r10
rol rbx, 0x10
xor rbx, r12
lea r13, [rbx + rdx]
rol rbx, 0x15
xor rbx, r13
add r10, r8
mov r12, r10
xor r12, r9
rol r10, 0x20
xor r11, r13
add r11, r12
rol r12, 0xd
mov r13, rbx
xor r12, r11
rol r11, 0x20
btc r13, 0x3b
add r10, r13
shrd r13, rbx, 0x30
xor r13, r10
add r11, r13
rol r13, 0x15
add r10, r12
rol r12, 0x11
xor r13, r11
xor r12, r10
rol r10, 0x20
btc r11, 0x3b
add r11, r12
rol r12, 0xd
xor r12, r11
rol r11, 0x20
xor r10, 0xff
add r10, r13
rol r13, 0x10
xor r13, r10
add r11, r13
rol r13, 0x15
add r10, r12
rol r12, 0x11
xor r12, r10
rol r10, 0x20
xor r13, r11
add r11, r12
rol r12, 0xd
xor r12, r11
rol r11, 0x20
add r10, r13
rol r13, 0x10
xor r13, r10
add r11, r13
rol r13, 0x15
add r10, r12
rol r12, 0x11
xor r12, r10
rol r10, 0x20
xor r13, r11
add r11, r12
rol r12, 0xd
add r10, r13
rol r13, 0x10
xor r13, r10
rol r13, 0x15
xor r12, r11
add r10, r12
rol r12, 0x11
mov rbx, r10
rol rbx, 0x20
xor rbx, r12
xor rbx, r13
xor rbx, r10
je 0x14008b563
mov r12, qword [rsi + 0x40]
movups xmm0, xmmword [rsi + 0x20]
movups xmm1, xmmword [rsi + 0x30]
movups xmmword [rdi + 0x128], xmm1
movups xmmword [rdi + 0x118], xmm0
mov qword [rdi + 0x138], r14
mov byte [rdi + 0x140], r15b
lea rdx, [rsp + 0x80]
mov r8d, 0x100
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsp + 0x78]
mov qword [rdi + 0x100], rax
mov qword [rdi + 0x108], rbx
mov qword [rdi + 0x110], r12
mov r8, qword [rsi + 0x48]
test r8, r8
je 0x14008b6f2
cmp qword [rsi + 0x50], 0
je 0x14008b6f2
mov rcx, qword [0x1401529c8]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
nop
lea rsp, [rbp + 0x138]
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x14008ce98
Capabilities:
Get system information on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rsi, rcx
test rcx, rcx
jne 0x14008cfe5
lea rdx, str.RAYON_NUM_THREADSRAYON_RS_NUM_CPUSThreadPoolBuildError
lea rsi, [rsp + 0x20]
mov r8d, 0x11
mov rcx, rsi
call fcn.1400a12a0
movzx eax, byte [rsi + 0x18]
cmp eax, 2
je 0x14008cf39
cmp eax, 3
jne 0x14008cf1d
mov rdi, qword [rsp + 0x20]
test rdi, rdi
je 0x14008cf39
lea rsi, [rsp + 0x20]
mov r14, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
mov rcx, rsi
mov rdx, rdi
call fcn.1400506d0
mov bl, byte [rsi]
mov rsi, qword [rsi + 8]
test r14, r14
je 0x14008cf14
mov rcx, qword [0x1401529c8]
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapFree]
test bl, bl
jne 0x14008cf39
jmp 0x14008cfa4
cmp qword [rsp + 0x28], 0
je 0x14008cf39
mov r8, qword [rsp + 0x20]
mov rcx, qword [0x1401529c8]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
lea rdx, [0x140135f81]
lea rsi, [rsp + 0x20]
mov r8d, 0x11
mov rcx, rsi
call fcn.1400a12a0
movzx eax, byte [rsi + 0x18]
cmp eax, 2
je 0x14008cfc7
cmp eax, 3
jne 0x14008cfab
mov rdi, qword [rsp + 0x20]
test rdi, rdi
je 0x14008cfc7
lea rsi, [rsp + 0x20]
mov r14, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
mov rcx, rsi
mov rdx, rdi
call fcn.1400506d0
mov bl, byte [rsi]
mov rsi, qword [rsi + 8]
test r14, r14
je 0x14008cfa0
mov rcx, qword [0x1401529c8]
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapFree]
test bl, bl
jne 0x14008cfc7
test rsi, rsi
jne 0x14008cfe5
jmp 0x14008cfc7
cmp qword [rsp + 0x28], 0
je 0x14008cfc7
mov r8, qword [rsp + 0x20]
mov rcx, qword [0x1401529c8]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
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 esi, dword [rsi + 0x20]
mov rax, rsi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140091c60
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 0x140091cbb
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x140091cbb
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x140091cd6
cmp eax, 0x42
jne 0x140091cbb
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x140091d86
cmp byte [r9 + r11], 0x5f
jne 0x140091d86
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x140091dee
mov rcx, rsi
xor edx, edx
call fcn.14008d4d0
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.14008d4d0
test al, al
jne 0x140091e81
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140091d12
lea rdx, [0x1401362ba]
mov r8d, 1
call fcn.14004a180
test al, al
jne 0x140091e81
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x140091cca
xor r14d, r14d
lea rbx, str.__JanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecember
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x140091d44
cmp byte [rax + rcx], 0x45
je 0x140091ea3
sub r14, 1
jb 0x140091d69
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140091d69
mov r8d, 2
mov rdx, rbx
call fcn.14004a180
test al, al
jne 0x140091e81
mov rcx, rsi
call fcn.140091ec0
test al, al
jne 0x140091e81
mov rax, qword [rsi]
test rax, rax
jne 0x140091d30
jmp 0x140091cca
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x140091e48
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x140091de2
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x140091dcc
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x140091dbb
add dl, 0xa9
jmp 0x140091dca
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x140091e48
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x140091e48
movzx edx, bl
add rax, rdx
jae 0x140091d90
jmp 0x140091e48
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x140091e48
cmp rax, rcx
jae 0x140091e45
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x140091e9b
cmp qword [rsi + 0x20], 0
je 0x140091eaf
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.140091c60
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x140091ccc
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140091e89
lea rax, [0x140136669]
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.14004a180
test al, al
je 0x140091e89
mov dil, 2
jmp 0x140091cca
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x140091cca
mov dil, 1
xor r8d, r8d
jmp 0x140091e4a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x140091cca
xor edi, edi
jmp 0x140091cca
Function at 0x140099969
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov eax, edx
lea r9, [rsp + 0x34]
mov dword [r9], r8d
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, eax
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x140099995
xor eax, eax
jmp 0x1400999a2
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x14009bd40
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x140139b38]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14009bdb3
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14009bdea
test eax, eax
js 0x14009bdc4
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14009bddd
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, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x140139b98]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.14009a9d0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.14009aa70
mov ecx, 7
int 0x29
ud2
Function at 0x14009f140
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 0x14009f170
test ecx, ecx
jne 0x14009f1c0
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x14009f17c
test ecx, ecx
jne 0x14009f1c0
mov rcx, rdi
call fcn.14009f020
movzx eax, al
test bpl, bpl
jne 0x14009f1c7
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x14009f1b3.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x14009f338]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x14009f1b3.2
xor eax, eax
test bpl, bpl
je 0x14009f18c
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x14009f319
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x14009f1fa
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x14009f279
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 0x14009f240
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x14009f25b
inc rax
dec rdi
cmp rax, 1
jne 0x14009f220
jmp 0x14009f279
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x14009f25b
cmp ebx, 0x5c
je 0x14009f25b
inc rax
dec rdi
cmp rax, 1
jne 0x14009f240
jmp 0x14009f279
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x14009f327
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x14009f2a3
mov al, 9
cmp rdx, 2
je 0x14009f2a7
cmp rdx, 1
jne 0x14009f2b7
cmp byte [r8], 0x2e
jne 0x14009f2b7
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x14009f2b7
mov al, 0xa
jmp 0x14009f2b7
cmp byte [r8], 0x2e
jne 0x14009f2b7
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov byte [rsi + 8], al
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], rdx
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.0x14009f1b3.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.0x14009f1b3.2
mov ecx, 2
jmp case.0x14009f1b3.2
lea r8, str.library_std_srcpath.rs
call fcn.140109830
ud2
lea r8, str.library_std_srcpath.rs
call fcn.140109830
ud2
Function at 0x14009f7f0
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]
mov qword [rbp + 0x420], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x58]
call fcn.14009c8e0
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x410], rax
test rax, rax
je 0x14009f975
mov qword [rbp + 0x3c8], rsi
mov rax, qword [rbp - 0x50]
mov qword [rbp + 0x408], rax
mov qword [rbp + 0x3f0], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3f8], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x418], rax
xor edi, edi
xor ebx, ebx
xor r13d, r13d
cmp r8, 0x201
jae 0x14009f8b0
jmp 0x14009f89f
jae 0x14009f987
cmp r8, 0x201
jae 0x14009f8b0
lea r12, [rbp - 0x58]
mov esi, 0x200
mov r15, r8
jmp 0x14009f908
sub r8, r13
sub rbx, r13
cmp rbx, r8
jae 0x14009f8df
lea rcx, [rbp + 0x3f0]
mov rdx, r13
call fcn.14010f310
mov rax, qword [rbp + 0x3f0]
mov qword [rbp + 0x418], rax
mov rdi, qword [rbp + 0x3f8]
mov eax, 0xffffffff
cmp rdi, rax
mov r13d, 0xffffffff
cmovb r13, rdi
mov qword [rbp + 0x400], r13
mov rbx, rdi
mov r12, qword [rbp + 0x418]
mov rsi, r13
mov r15, r13
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov rcx, qword [rbp + 0x410]
mov rdx, r12
mov r8d, r15d
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov r14d, eax
test eax, eax
jne 0x14009f937
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x14009f9bd
mov r8d, r14d
cmp r15, r8
jne 0x14009f890
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x14009fa69
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14009f89f
jmp 0x14009f8b0
lea rcx, [rbp - 0x50]
call fcn.140099f20
mov byte [rsi + 0x18], 2
jmp 0x14009fa33
cmp rsi, r8
jb 0x14009fa83
lea rcx, [rbp + 0x3a8]
mov rdx, r12
call fcn.14009dd10
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
movaps xmmword [rbp + 0x3e0], xmm1
movaps xmmword [rbp + 0x3d0], xmm0
jmp 0x14009f9d8
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3d0], rax
mov byte [rbp + 0x3e8], 2
test rdi, rdi
mov rsi, qword [rbp + 0x3c8]
je 0x14009f9fa
mov rcx, qword [0x1401529c8]
xor edx, edx
mov r8, qword [rbp + 0x418]
call qword [sym.imp.kernel32.dll_HeapFree]
cmp byte [rbp + 0x3e8], 2
jne 0x14009fa48
mov byte [rsi + 0x18], 2
lea rcx, [rbp + 0x3d0]
call fcn.140099f20
cmp qword [rbp + 0x408], 0
je 0x14009fa33
mov rcx, qword [0x1401529c8]
xor edx, edx
mov r8, qword [rbp + 0x410]
call qword [sym.imp.kernel32.dll_HeapFree]
nop
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movaps xmm0, xmmword [rbp + 0x3d0]
movaps xmm1, xmmword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
cmp qword [rbp + 0x408], 0
jne 0x14009fa1d
jmp 0x14009fa33
lea rcx, str.internal_error:_entered_unreachable_coden
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140109930
jmp 0x14009fa98
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.1401098b0
ud2
Function at 0x1400a5a40
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1f0
mov rsi, rcx
mov r14, qword [rdx]
mov rbx, qword [rdx + 8]
movzx edi, word [rdx + 0x10]
mov rax, qword [0x1401529d0]
cmp rax, 3
jne 0x1400a5b3d
cmp rbx, 0x17f
ja 0x1400a5b4f
lea r15, [rsp + 0x70]
mov rcx, r15
mov rdx, r14
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rbx + 0x70], 0
inc rbx
lea rcx, [rsp + 0x28]
mov rdx, r15
mov r8, rbx
call fcn.14004b230
cmp qword [rsp + 0x28], 0
je 0x1400a5ac1
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1400a5b2e
mov rcx, qword [rsp + 0x30]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x40]
lea r9, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x1400a5b18
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x1400a5b2b
mov rax, qword [rsp + 0x20]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], di
xor eax, eax
mov qword [rsi], rax
add rsp, 0x1f0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14010f6d0
cmp rbx, 0x17f
jbe 0x1400a5a7a
mov rcx, rsi
mov rdx, r14
mov r8, rbx
mov r9d, edi
add rsp, 0x1f0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp 0x14010f730
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov ebx, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.140041ed0
mov r8, qword [rsp + 0x30]
test r8, r8
je 0x14010f790
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
cmp qword [rsp + 0x38], 0
je 0x14010f81f
mov rcx, qword [0x1401529c8]
xor edx, edx
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.kernel32.dll_HeapFree]
mov rdi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x14010f7ef
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x14010f802
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bx
xor eax, eax
mov qword [rsi], rax
mov byte [rdi], 0
test r14, r14
je 0x14010f81f
mov rcx, qword [0x1401529c8]
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapFree]
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400a6210
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
sub rsp, 0xc0
mov rax, rdx
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x28], 0x80
lea rdx, [rsp + 0x40]
lea r8, [rsp + 0x28]
mov rcx, rax
call sub.ws2_32.dll_getsockname
cmp eax, 0xffffffff
je 0x1400a62d0
mov eax, dword [rsp + 0x28]
movzx ecx, word [rsp + 0x40]
cmp ecx, 2
je 0x1400a62e0
cmp ecx, 0x17
jne 0x1400a6300
cmp eax, 0x1c
jb 0x1400a6319
movzx eax, word [rsp + 0x42]
rol ax, 8
mov ecx, dword [rsp + 0x44]
mov edx, dword [rsp + 0x58]
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rsp + 0x30], xmm0
mov word [rsi], 1
movups xmm0, xmmword [rsp + 0x2e]
movups xmmword [rsi + 2], xmm0
movzx r8d, word [rsp + 0x3e]
mov word [rsi + 0x12], r8w
mov dword [rsi + 0x14], ecx
mov dword [rsi + 0x18], edx
mov word [rsi + 0x1c], ax
jmp 0x1400a6310
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
jmp 0x1400a6307
cmp eax, 0x10
jb 0x1400a6333
movzx eax, word [rsp + 0x42]
rol ax, 8
mov ecx, dword [rsp + 0x44]
mov word [rsi], 0
mov word [rsi + 6], ax
mov dword [rsi + 2], ecx
jmp 0x1400a6310
lea rax, str.invalid_argument8
mov qword [rsi + 8], rax
mov word [rsi], 2
add rsp, 0xc0
pop rsi
ret
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___library_std_src_sys_common_net.rs
lea r8, [0x14013a8c8]
mov edx, 0x43
call fcn.140109930
ud2
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___
lea r8, [0x14013a928]
mov edx, 0x42
call fcn.140109930
ud2
Function at 0x1400ad830
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.14009c8e0
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
test rcx, rcx
je 0x1400ad8a6
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.1400ad720
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x1400ad8b4
movdqu xmm6, xmmword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400ad8d4
mov qword [rsi], rdi
movdqu xmmword [rsi + 8], xmm6
jmp 0x1400ad8c5
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x30]
call fcn.140099f20
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 0x1400ad8c5
mov rcx, qword [0x1401529c8]
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 0x1400af4d0
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 [0x140152a70]
mov ecx, 0x10
mov edx, 8
call fcn.140041bf0
test rax, rax
je 0x1400af5c5
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400af9f0]
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 0x1400af5b7
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 0x1400af591
cmp qword [rax + 0x10], 0x11
jae 0x1400af57a
mov r8, qword [rbp - 0x20]
jmp 0x1400af582
mov r8, qword [rbp - 0x20]
mov r8, qword [r8 - 8]
mov rcx, qword [0x1401529c8]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x1401529c8]
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapFree]
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 qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rdi
mov ecx, 8
mov edx, 0x10
call fcn.1401093b0
ud2
Function at 0x1400b04d0
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 0x1400b0513
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call sub.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.1400a0320]
mov qword [rbp - 0x28], rax
lea rax, [0x14013a010]
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.140109770
ud2

Function at 0x1400b62b0
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 0x1400b62e5
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x1400b62ea
call fcn.1400b04d0
nop
add rsp, 0x38
ret