joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400bb4e0
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 0x1400bb53b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x1400bb53b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x1400bb556
cmp eax, 0x42
jne 0x1400bb53b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x1400bb606
cmp byte [r9 + r11], 0x5f
jne 0x1400bb606
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x1400bb66e
mov rcx, rsi
xor edx, edx
call fcn.1400b6e10
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.1400b6e10
test al, al
jne 0x1400bb701
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400bb592
lea rdx, [0x1401c345a]
mov r8d, 1
call fcn.140014f60
test al, al
jne 0x1400bb701
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x1400bb54a
xor r14d, r14d
lea rbx, [0x1401c383e]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x1400bb5c4
cmp byte [rax + rcx], 0x45
je 0x1400bb723
sub r14, 1
jb 0x1400bb5e9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400bb5e9
mov r8d, 2
mov rdx, rbx
call fcn.140014f60
test al, al
jne 0x1400bb701
mov rcx, rsi
call fcn.1400bb740
test al, al
jne 0x1400bb701
mov rax, qword [rsi]
test rax, rax
jne 0x1400bb5b0
jmp 0x1400bb54a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x1400bb6c8
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x1400bb662
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x1400bb64c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x1400bb63b
add dl, 0xa9
jmp 0x1400bb64a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x1400bb6c8
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x1400bb6c8
movzx edx, bl
add rax, rdx
jae 0x1400bb610
jmp 0x1400bb6c8
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x1400bb6c8
cmp rax, rcx
jae 0x1400bb6c5
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x1400bb71b
cmp qword [rsi + 0x20], 0
je 0x1400bb72f
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.1400bb4e0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x1400bb54c
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400bb709
lea rax, [0x1401c3809]
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.140014f60
test al, al
je 0x1400bb709
mov dil, 2
jmp 0x1400bb54a
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x1400bb54a
mov dil, 1
xor r8d, r8d
jmp 0x1400bb6ca
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x1400bb54a
xor edi, edi
jmp 0x1400bb54a
Function at 0x1400bdf22
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 0x1400bdf85
mov edx, dword [rcx + 0x28]
mov dword [rsp + 0x90], edx
mov qword [rsp + 0x98], rax
mov rax, qword [rcx + 0x30]
test rax, rax
je 0x1400bdfba
mov rdx, qword [rcx + 0x40]
xor r8d, r8d
lea r9, [0x1401f27c0]
xor r10d, r10d
cmp rdx, r8
je 0x1400bdfb2
movzx r11d, byte [rax + r8]
or r10d, dword [r9 + r11*4]
inc r8
jmp 0x1400bdf9f
mov dword [rsp + 0xa0], r10d
mov r14, qword [rcx]
mov r15, qword [rcx + 0x10]
lea rsi, [r15*8]
test r15, r15
je 0x1400be004
xor ebx, ebx
mov rax, r15
shr rax, 0x3c
sete al
jne 0x1400be0df
mov bl, al
shl rbx, 3
mov rcx, rbx
mov rdx, rsi
call fcn.1400214a6
mov rdi, rax
test rax, rax
jne 0x1400be009
mov rcx, rbx
mov rdx, rsi
jmp 0x1400be0f0
mov edi, 8
xor eax, eax
mov rcx, rsi
test rcx, rcx
je 0x1400be024
mov rdx, qword [r14 + rax*8]
mov qword [rdi + rax*8], rdx
inc rax
add rcx, 0xfffffffffffffff8
jmp 0x1400be00e
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 0x1400be07b
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov r14d, 1
jmp 0x1400be0b3
mov r14, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov ecx, 8
mov edx, 0x20
call fcn.1400214a6
test rax, rax
je 0x1400be0e6
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 0x1400be0c8
mov edx, 8
mov rcx, rdi
mov r8, rsi
call fcn.140006792
mov rax, r14
mov rdx, rbx
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.140010bd0
ud2
mov ecx, 8
mov edx, 0x20
call fcn.140147130
ud2

Function at 0x1400be67a
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 0x1400be6a4
mov rdx, qword [rsp + 0x20]
jmp 0x1400be6ac
shl rdx, 0x20
or rdx, 2
mov al, cl
add rsp, 0x28
ret
Function at 0x1400bf60b
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 0x1400bf637
xor eax, eax
jmp 0x1400bf63c
call fcn.140063e83
nop
add rsp, 0x38
ret

Function at 0x1400c1970
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1401c66d8]
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 0x1400c19e3
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1400c1a1a
test eax, eax
js 0x1400c19f4
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400c1a0d
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, [0x1401c6740]
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.1400c0620
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.1400c06c0
mov ecx, 7
int 0x29
ud2
Function at 0x1400c50f0
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 0x1400c5120
test ecx, ecx
jne 0x1400c5170
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x1400c512c
test ecx, ecx
jne 0x1400c5170
mov rcx, rdi
call fcn.1400c4fd0
movzx eax, al
test bpl, bpl
jne 0x1400c5177
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x1400c5163.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x1400c52e8]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x1400c5163.2
xor eax, eax
test bpl, bpl
je 0x1400c513c
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x1400c52c9
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x1400c51aa
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x1400c5229
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 0x1400c51f0
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x1400c520b
inc rax
dec rdi
cmp rax, 1
jne 0x1400c51d0
jmp 0x1400c5229
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x1400c520b
cmp ebx, 0x5c
je 0x1400c520b
inc rax
dec rdi
cmp rax, 1
jne 0x1400c51f0
jmp 0x1400c5229
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x1400c52d7
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x1400c5253
mov al, 9
cmp rdx, 2
je 0x1400c5257
cmp rdx, 1
jne 0x1400c5267
cmp byte [r8], 0x2e
jne 0x1400c5267
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x1400c5267
mov al, 0xa
jmp 0x1400c5267
cmp byte [r8], 0x2e
jne 0x1400c5267
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.0x1400c5163.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.0x1400c5163.2
mov ecx, 2
jmp case.0x1400c5163.2
lea r8, str.library_std_srcpath.rs
call fcn.1401474d0
ud2
lea r8, str.library_std_srcpath.rs
call fcn.1401474d0
ud2
Function at 0x1400c57e0
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.1400c2410
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x410], rax
test rax, rax
je 0x1400c5967
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 0x1400c58a0
jmp 0x1400c588f
jae 0x1400c5979
cmp r8, 0x201
jae 0x1400c58a0
lea r12, [rbp - 0x58]
mov esi, 0x200
mov r15, r8
jmp 0x1400c58f8
sub r8, r13
sub rbx, r13
cmp rbx, r8
jae 0x1400c58cf
lea rcx, [rbp + 0x3f0]
mov rdx, r13
call fcn.140149ab0
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 0x1400c5928
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400c59af
mov r8d, r14d
cmp r15, r8
jne 0x1400c5880
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400c5a52
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1400c588f
jmp 0x1400c58a0
lea rcx, [rbp - 0x50]
call fcn.1400bfbc0
mov byte [rsi + 0x18], 2
jmp 0x1400c5a1c
cmp rsi, r8
jb 0x1400c5a6c
lea rcx, [rbp + 0x3a8]
mov rdx, r12
call fcn.1400c3840
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
movaps xmmword [rbp + 0x3e0], xmm1
movaps xmmword [rbp + 0x3d0], xmm0
jmp 0x1400c59cb
call qword [sym.imp.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 0x1400c59e8
mov edx, 2
mov rcx, qword [rbp + 0x418]
call fcn.140010a80
cmp byte [rbp + 0x3e8], 2
jne 0x1400c5a31
mov byte [rsi + 0x18], 2
lea rcx, [rbp + 0x3d0]
call fcn.1400bfbc0
cmp qword [rbp + 0x408], 0
je 0x1400c5a1c
mov edx, 2
mov rcx, qword [rbp + 0x410]
call fcn.140010a80
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 0x1400c5a0b
jmp 0x1400c5a1c
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.1401475d0
jmp 0x1400c5a81
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140147550
ud2
Function at 0x1400c9430
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1401c66d8]
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 0x1400c949c
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x1400c94ab
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1400c94e3
cmp eax, 0x103
je 0x1400c94ed
test eax, eax
js 0x1400c94c8
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1400c94e3
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, [0x1401c6740]
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.1400c0620
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.1400c06c0
mov ecx, 7
int 0x29
ud2
Function at 0x1400c9fc0
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 0x1400ca01c
mov r14, qword [rbx]
cmp bp, 0x2e
jne 0x1400ca110
test r15w, r15w
je 0x1400ca01c
cmp r15w, 0x2e
jne 0x1400ca110
test r12w, r12w
jne 0x1400ca110
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 0x1400ca0f5
mov r14, qword [rbx]
lea rbx, [rsp + 0x80]
mov r15, qword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x1400ca071
mov rcx, rdi
mov rdx, rbx
call r15
test eax, eax
je 0x1400ca0f5
cmp word [rsp + 0xac], 0x2e
jne 0x1400ca09a
movzx eax, word [rsp + 0xae]
test ax, ax
je 0x1400ca060
cmp ax, 0x2e
jne 0x1400ca09a
cmp word [rsp + 0xb0], 0
je 0x1400ca060
lock inc qword [r14]
jle 0x1400ca1f9
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 0x1400ca13b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x1400ca187
mov qword [rsi], 0
jmp 0x1400ca1e7
lock inc qword [r14]
jle 0x1400ca1f9
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 fcn.140146c55
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 fcn.140146c55
jmp 0x1400ca19a
call qword [sym.imp.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 fcn.140146c55
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 0x1400d5700
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.1400c2410
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
test rcx, rcx
je 0x1400d5776
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.1400d55f0
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x1400d5784
movdqu xmm6, xmmword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400d57a4
mov qword [rsi], rdi
movdqu xmmword [rsi + 8], xmm6
jmp 0x1400d5795
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x30]
call fcn.1400bfbc0
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 0x1400d5795
mov edx, 2
mov rcx, rdi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
jmp fcn.140010a80
Function at 0x1400d7340
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 [0x140201ed8]
mov ecx, reloc.WS2_32.dll_recv
mov edx, 8
call fcn.1400109f0
test rax, rax
je 0x1400d7417
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400d77d0]
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 0x1400d7409
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 0x1400d73e6
mov rdx, qword [rax + 0x10]
mov rcx, qword [rbp - 0x20]
call fcn.140010a80
mov edx, 8
mov rcx, qword [rbp - 0x18]
call fcn.140010a80
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, reloc.WS2_32.dll_recv
call fcn.140147130
ud2
Function at 0x1400d8280
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 0x1400d82c3
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.1400c6310]
mov qword [rbp - 0x28], rax
lea rax, [0x1401c6c00]
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.140147410
ud2

Function at 0x1400daa40
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
cmp qword [rdx], 0
jne 0x1400dab8f
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx + 8]
test rax, rax
jne 0x1400daa78
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x1400dab78
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x1400dab5a
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 0x1400daadb
mov ecx, dword [rsp + 0x2c]
mov eax, 2
test rcx, rcx
je 0x1400dab04
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov byte [rsi + 1], 1
xor eax, eax
jmp 0x1400dab46
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rsp + 0x40], rcx
cmp eax, 0x6d
je 0x1400dab0c
cmp eax, 0x3e5
jne 0x1400dab40
lea rax, [rsp + 0x30]
jmp 0x1400dab1a
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x1400dab46
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x38]
mov qword [rax], 0
lea rcx, [rsp + 0x40]
call fcn.1400bfbc0
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test rax, rax
je 0x1400dab50
cmp rax, 1
je 0x1400daac2
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 0x1400daacc
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.140149b70
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
jmp 0x1400daa85
mov r8d, reloc.WS2_32.dll_recv
mov rcx, rbx
call fcn.140149b70
mov rax, qword [rbx + 8]
jmp 0x1400daa78
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140149f90
ud2

Function at 0x1400dee10
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 0x1400dee45
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x1400dee4a
call fcn.1400d8280
nop
add rsp, 0x38
ret
Function at 0x1400e6cd5
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 0x1400e6cdc
test al, 1
je 0x1400e6cfb
test al, 2
jne 0x1400e6d10
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1401cb930]
mov edx, 0x23
jmp 0x1400e6d23
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x1401cb970]
mov edx, 0x25
call fcn.1401475d0
ud2

Function at 0x1400e763b
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
call fcn.1400e66a6
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 0x1400e7676
xor eax, eax
jmp 0x1400e7684
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbx
ret