joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800a81b5
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb8
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0xa8], xmm0
movups xmmword [rsp + 0x98], xmm0
movups xmmword [rsp + 0x88], xmm0
movups xmmword [rsp + 0x78], xmm0
mov dword [rsp + 0x68], 4
mov dword [rsp + 0xb0], 0x400010
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x1800a8218
mov edx, dword [rcx + 0x28]
mov dword [rsp + 0x90], edx
mov qword [rsp + 0x98], rax
mov rax, qword [rcx + 0x30]
test rax, rax
je 0x1800a824d
mov rdx, qword [rcx + 0x40]
xor r8d, r8d
lea r9, [0x18015f050]
xor r10d, r10d
cmp rdx, r8
je 0x1800a8245
movzx r11d, byte [rax + r8]
or r10d, dword [r9 + r11*4]
inc r8
jmp 0x1800a8232
mov dword [rsp + 0xa0], r10d
mov r14, qword [rcx]
mov r15, qword [rcx + 0x10]
lea rsi, [r15*8]
test r15, r15
je 0x1800a8297
xor ebx, ebx
mov rax, r15
shr rax, 0x3c
sete al
jne 0x1800a8375
mov bl, al
shl rbx, 3
mov rcx, rbx
mov rdx, rsi
call fcn.18001725c
mov rdi, rax
test rax, rax
jne 0x1800a829c
mov rcx, rbx
mov rdx, rsi
jmp 0x1800a8386
mov edi, 8
xor eax, eax
mov rcx, rsi
test rcx, rcx
je 0x1800a82b7
mov rdx, qword [r14 + rax*8]
mov qword [rdi + rax*8], rdx
inc rax
add rcx, 0xfffffffffffffff8
jmp 0x1800a82a1
lea rcx, [rsp + 0x68]
mov dword [rcx + 4], eax
mov qword [rcx + 8], rdi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], rcx
and 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 0x1800a830e
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov r14d, 1
jmp 0x1800a8349
mov r14, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov ecx, 8
mov edx, 0x20
xor r8d, r8d
call fcn.180017264
test rax, rax
je 0x1800a837c
mov rbx, rax
mov eax, 1
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r12
xor r14d, r14d
test r15, r15
je 0x1800a835e
mov edx, 8
mov rcx, rdi
mov r8, rsi
call fcn.1800047f2
mov rax, r14
mov rdx, rbx
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.180014df0
ud2
mov ecx, 8
mov edx, 0x20
call fcn.1800d73d0
ud2

Function at 0x1800a89cb
Capabilities:
Get remote cert context via schannel

Disassembly:
sub rsp, 0x28
lea r8, [rsp + 0x20]
and qword [r8], 0
mov edx, 0x53
call qword [sym.imp.Secur32.dll_QueryContextAttributesW]
mov edx, eax
xor eax, eax
test edx, edx
setne cl
jne 0x1800a89f5
mov rdx, qword [rsp + 0x20]
jmp 0x1800a89fd
shl rdx, 0x20
or rdx, 2
mov al, cl
add rsp, 0x28
ret
Function at 0x1800a9109
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 0x1800a9135
xor eax, eax
jmp 0x1800a913a
call fcn.18004a1bf
nop
add rsp, 0x38
ret

Function at 0x1800ab1a0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x180135b98]
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 0x1800ab213
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1800ab24a
test eax, eax
js 0x1800ab224
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1800ab23d
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, [0x180135c00]
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.1800aa120
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.1800aa1c0
mov ecx, 7
int 0x29
ud2
Function at 0x1800ae920
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 0x1800ae950
test ecx, ecx
jne 0x1800ae9a0
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x1800ae95c
test ecx, ecx
jne 0x1800ae9a0
mov rcx, rdi
call fcn.1800ae800
movzx eax, al
test bpl, bpl
jne 0x1800ae9a7
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x1800ae993.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x1800aeb18]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x1800ae993.2
xor eax, eax
test bpl, bpl
je 0x1800ae96c
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x1800aeaf9
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x1800ae9da
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x1800aea59
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 0x1800aea20
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x1800aea3b
inc rax
dec rdi
cmp rax, 1
jne 0x1800aea00
jmp 0x1800aea59
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x1800aea3b
cmp ebx, 0x5c
je 0x1800aea3b
inc rax
dec rdi
cmp rax, 1
jne 0x1800aea20
jmp 0x1800aea59
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x1800aeb07
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x1800aea83
mov al, 9
cmp rdx, 2
je 0x1800aea87
cmp rdx, 1
jne 0x1800aea97
cmp byte [r8], 0x2e
jne 0x1800aea97
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x1800aea97
mov al, 0xa
jmp 0x1800aea97
cmp byte [r8], 0x2e
jne 0x1800aea97
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.0x1800ae993.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.0x1800ae993.2
mov ecx, 2
jmp case.0x1800ae993.2
lea r8, str.library_std_srcpath.rs
call fcn.1800d7710
ud2
lea r8, str.library_std_srcpath.rs
call fcn.1800d7710
ud2
Function at 0x1800af010
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.1800abbd0
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x410], rax
test rax, rax
je 0x1800af195
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 0x1800af0d0
jmp 0x1800af0bf
jae 0x1800af1a7
cmp r8, 0x201
jae 0x1800af0d0
lea r12, [rbp - 0x58]
mov esi, 0x200
mov r15, r8
jmp 0x1800af128
sub r8, r13
sub rbx, r13
cmp rbx, r8
jae 0x1800af0ff
lea rcx, [rbp + 0x3f0]
mov rdx, r13
call fcn.1800d9580
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 0x1800af157
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x1800af1dd
mov r8d, r14d
cmp r15, r8
jne 0x1800af0b0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x1800af27f
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1800af0bf
jmp 0x1800af0d0
lea rcx, [rbp - 0x50]
call fcn.1800a9710
mov byte [rsi + 0x18], 2
jmp 0x1800af249
cmp rsi, r8
jb 0x1800af299
lea rcx, [rbp + 0x3a8]
mov rdx, r12
call fcn.1800ad4d0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
movaps xmmword [rbp + 0x3e0], xmm1
movaps xmmword [rbp + 0x3d0], xmm0
jmp 0x1800af1f8
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 0x1800af215
mov edx, 2
mov rcx, qword [rbp + 0x418]
call fcn.180013220
cmp byte [rbp + 0x3e8], 2
jne 0x1800af25e
mov byte [rsi + 0x18], 2
lea rcx, [rbp + 0x3d0]
call fcn.1800a9710
cmp qword [rbp + 0x408], 0
je 0x1800af249
mov edx, 2
mov rcx, qword [rbp + 0x410]
call fcn.180013220
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 0x1800af238
jmp 0x1800af249
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.1800d7810
jmp 0x1800af2ae
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.1800d7790
ud2
Function at 0x1800b1db0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x180135b98]
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_NtReadFile]
cmp eax, 0x103
jne 0x1800b1e1c
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x1800b1e2b
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1800b1e63
cmp eax, 0x103
je 0x1800b1e6d
test eax, eax
js 0x1800b1e48
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1800b1e63
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, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x180135c00]
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.1800aa120
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.1800aa1c0
mov ecx, 7
int 0x29
ud2
Function at 0x1800b2930
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
mov eax, dword [rdx + 0x10]
movzx ebp, word [rdx + 0x40]
movzx r15d, word [rdx + 0x42]
movzx r12d, word [rdx + 0x44]
mov dword [rdx + 0x10], 0
cmp eax, 1
jne 0x1800b298c
mov r14, qword [rbx]
cmp bp, 0x2e
jne 0x1800b2a7f
test r15w, r15w
je 0x1800b298c
cmp r15w, 0x2e
jne 0x1800b2a7f
test r12w, r12w
jne 0x1800b2a7f
lea r14, [rsp + 0x80]
mov r8d, 0x250
mov rcx, r14
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rdi, qword [rbx + 8]
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1800b2a65
mov r14, qword [rbx]
lea rbx, [rsp + 0x80]
mov r15, qword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x1800b29e1
mov rcx, rdi
mov rdx, rbx
call r15
test eax, eax
je 0x1800b2a65
cmp word [rsp + 0xac], 0x2e
jne 0x1800b2a0a
movzx eax, word [rsp + 0xae]
test ax, ax
je 0x1800b29d0
cmp ax, 0x2e
jne 0x1800b2a0a
cmp word [rsp + 0xb0], 0
je 0x1800b29d0
lock inc qword [r14]
jle 0x1800b2b67
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 0x1800b2aaa
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x12
jne 0x1800b2af6
mov qword [rsi], 0
jmp 0x1800b2b55
lock inc qword [r14]
jle 0x1800b2b67
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 sub.VCRUNTIME140.dll_memcpy
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 sub.VCRUNTIME140.dll_memcpy
jmp 0x1800b2b08
call sub.KERNEL32.dll_GetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
xor r14d, r14d
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], rdi
movaps xmm0, xmmword [rsp + 0x50]
movaps xmm1, xmmword [rsp + 0x60]
movups xmmword [rsi + 0x18], xmm0
movups xmmword [rsi + 0x28], xmm1
mov eax, dword [rsp + 0x70]
mov dword [rsi + 0x38], eax
mov word [rsi + 0x3c], bp
mov word [rsi + 0x3e], r15w
mov word [rsi + 0x40], r12w
lea rcx, [rsi + 0x42]
lea rdx, [rsp + 0x80]
mov r8d, 0x21e
call sub.VCRUNTIME140.dll_memcpy
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 0x1800b5820
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1e8
mov rsi, rcx
mov r14, qword [rdx]
mov rbx, qword [rdx + 8]
movzx edi, word [rdx + 0x10]
mov rax, qword [0x180167238]
cmp rax, 3
jne 0x1800b59da
cmp rbx, 0x17f
ja 0x1800b59ec
lea rcx, [rsp + 0x68]
mov rdx, r14
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rbx + 0x68], 0
lea rax, [rbx + 1]
cmp rbx, 0xe
ja 0x1800b5898
xor edx, edx
nop dword [rax]
cmp byte [rsp + rdx + 0x68], 0
je 0x1800b5944
inc rdx
cmp rax, rdx
jne 0x1800b5880
jmp 0x1800b59a3
xor ecx, ecx
mov dl, 1
test dl, dl
jne 0x1800b58cc
jne 0x1800b58cc
xor edx, edx
nop word cs:[rax + rax]
cmp byte [rsp + rdx + 0x68], 0
je 0x1800b5944
inc rdx
jne 0x1800b58b0
xor edx, edx
test dl, dl
jne 0x1800b593a
lea rdx, [rbx - 0xf]
jmp 0x1800b58d2
lea rdx, [rbx - 0xf]
xor ecx, ecx
movabs r8, 0xfefefefefefefeff
movabs r9, 0x8080808080808080
nop word cs:[rax + rax]
mov r10, qword [rsp + rcx + 0x68]
mov r11, r10
not r11
add r10, r8
and r10, r11
test r10, r9
jne 0x1800b593a
mov r10, qword [rsp + rcx + 0x70]
mov r11, r10
not r11
add r10, r8
and r10, r11
test r10, r9
jne 0x1800b593a
add rcx, 0x10
cmp rcx, rdx
jbe 0x1800b58f0
jmp 0x1800b593a
cmp byte [rsp + rcx + 0x68], 0
je 0x1800b5941
inc rcx
cmp rax, rcx
jne 0x1800b5930
jmp 0x1800b59a3
mov rdx, rcx
cmp rdx, rbx
jne 0x1800b59a3
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x68]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x28]
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x1800b59c2
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
jmp 0x1800b59b5
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0x1e8
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], di
xor eax, eax
mov qword [rsi], rax
jmp 0x1800b59b5
call fcn.1800d9890
cmp rbx, 0x17f
jbe 0x1800b5858
mov rcx, rsi
mov rdx, r14
mov r8, rbx
mov r9d, edi
add rsp, 0x1e8
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.1800d98f0
Function at 0x1800bdad0
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.1800abbd0
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
test rcx, rcx
je 0x1800bdb46
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.1800bd9c0
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x1800bdb54
movdqu xmm6, xmmword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1800bdb74
mov qword [rsi], rdi
movdqu xmmword [rsi + 8], xmm6
jmp 0x1800bdb65
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x30]
call fcn.1800a9710
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 0x1800bdb65
mov edx, 2
mov rcx, rdi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
jmp fcn.180013220
Function at 0x1800bf710
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 [0x1801672d8]
mov ecx, reloc.WS2_32.dll_recv
mov edx, 8
call fcn.180013190
test rax, rax
je 0x1800bf7e6
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1800bfba0]
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 0x1800bf7d8
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
je 0x1800bf7b6
mov rdx, qword [rax + 0x10]
mov rcx, qword [rbp - 0x20]
call fcn.180013220
mov edx, 8
mov rcx, qword [rbp - 0x18]
call fcn.180013220
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, reloc.WS2_32.dll_recv
call fcn.1800d73d0
ud2
Function at 0x1800c0650
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, reloc.WS2_32.dll_recv
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x1800c0693
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.1800afb30]
mov qword [rbp - 0x28], rax
lea rax, [0x1801360c0]
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.1800d7650
ud2

Function at 0x1800c2e10
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
cmp qword [rdx], 0
jne 0x1800c2f5e
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx + 8]
test rax, rax
jne 0x1800c2e48
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x1800c2f47
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x1800c2f29
sub rax, rdx
add rdx, qword [rbx]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x2c], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x2c]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800c2eab
mov ecx, dword [rsp + 0x2c]
mov eax, 2
test rcx, rcx
je 0x1800c2ed3
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov byte [rsi + 1], 1
xor eax, eax
jmp 0x1800c2f15
call sub.KERNEL32.dll_GetLastError
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rsp + 0x40], rcx
cmp eax, 0x6d
je 0x1800c2edb
cmp eax, 0x3e5
jne 0x1800c2f0f
lea rax, [rsp + 0x30]
jmp 0x1800c2ee9
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x1800c2f15
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x38]
mov qword [rax], 0
lea rcx, [rsp + 0x40]
call fcn.1800a9710
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test rax, rax
je 0x1800c2f1f
cmp rax, 1
je 0x1800c2e92
mov qword [rsi + 8], rcx
mov al, 1
mov byte [rsi], al
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov eax, 1
jmp 0x1800c2e9c
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.1800d9640
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
jmp 0x1800c2e55
mov r8d, reloc.WS2_32.dll_recv
mov rcx, rbx
call fcn.1800d9640
mov rax, qword [rbx + 8]
jmp 0x1800c2e48
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1800d9b10
ud2

Function at 0x1800c7070
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, reloc.WS2_32.dll_recv
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x1800c70a5
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x1800c70aa
call fcn.1800c0650
nop
add rsp, 0x38
ret
Function at 0x1800cc56e
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x1800cc575
test al, 1
je 0x1800cc594
test al, 2
jne 0x1800cc5a9
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x180139400]
mov edx, 0x23
jmp 0x1800cc5bc
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x180139440]
mov edx, 0x25
call fcn.1800d7810
ud2

Function at 0x1800ccec8
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
call fcn.1800cbf84
mov rcx, qword [rax]
movzx eax, bl
lea r9, [rsp + 0x2c]
mov dword [r9], eax
mov dword [rsp + 0x20], 4
mov edx, 6
mov r8d, 1
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1800ccf03
xor eax, eax
jmp 0x1800ccf11
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbx
ret