joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ab390
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 0x1400ab3eb
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x1400ab3eb
movzx eax, byte [r8 + rcx]
cmp eax, 0x49
je 0x1400ab406
cmp eax, 0x42
jne 0x1400ab3eb
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x1400ab4b6
cmp byte [r8 + r11], 0x5f
jne 0x1400ab4b6
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x1400ab51e
mov rcx, rsi
xor edx, edx
call fcn.1400a6e20
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.1400a6e20
test al, al
jne 0x1400ab5b1
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400ab442
lea rdx, [0x14015f313]
mov r8d, 1
call fcn.14001b150
test al, al
jne 0x1400ab5b1
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x1400ab3fa
xor r14d, r14d
lea rbx, [0x14015f681]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x1400ab474
cmp byte [rax + rcx], 0x45
je 0x1400ab5d3
sub r14, 1
jb 0x1400ab499
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400ab499
mov r8d, 2
mov rdx, rbx
call fcn.14001b150
test al, al
jne 0x1400ab5b1
mov rcx, rsi
call fcn.1400a8640
test al, al
jne 0x1400ab5b1
mov rax, qword [rsi]
test rax, rax
jne 0x1400ab460
jmp 0x1400ab3fa
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r9b, 1
cmp r11, r10
jae 0x1400ab578
movzx edx, byte [r8 + r11]
cmp dl, 0x5f
je 0x1400ab512
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x1400ab4fc
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x1400ab4eb
add dl, 0xa9
jmp 0x1400ab4fa
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x1400ab578
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x1400ab578
movzx edx, bl
add rax, rdx
jae 0x1400ab4c0
jmp 0x1400ab578
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x1400ab578
cmp rax, rcx
jae 0x1400ab575
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x1400ab5cb
cmp qword [rsi + 0x20], 0
je 0x1400ab5c4
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.1400ab390
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x1400ab3fc
mov r9b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400ab5b9
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__e
lea rdx, [0x14015f660]
test r9b, r9b
cmovne rdx, rax
call fcn.14001b150
test al, al
je 0x1400ab5b9
mov dil, 2
jmp 0x1400ab3fa
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x1400ab3fa
mov dil, 1
xor r9d, r9d
jmp 0x1400ab57a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x1400ab3fa
Function at 0x1400ad6f6
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb0
movabs rax, 0x8000000000000000
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x60], 4
mov dword [rsp + 0xa8], 0x400010
cmp qword [rcx + 0x18], rax
je 0x1400ad762
mov edx, dword [rcx + 0x28]
mov dword [rsp + 0x88], edx
mov rdx, qword [rcx + 0x20]
mov qword [rsp + 0x90], rdx
cmp qword [rcx + 0x30], rax
je 0x1400ad79d
mov rax, qword [rcx + 0x40]
test rax, rax
je 0x1400ad794
mov r8, qword [rcx + 0x38]
xor edx, edx
lea r9, [0x14018db18]
xor r10d, r10d
movzx r11d, byte [r8 + r10]
or edx, dword [r9 + r11*4]
inc r10
cmp rax, r10
jne 0x1400ad781
jmp 0x1400ad796
xor edx, edx
mov dword [rsp + 0x98], edx
mov r14, qword [rcx + 0x10]
test r14, r14
je 0x1400ad7f2
mov rax, r14
shr rax, 0x3c
jne 0x1400ad8b6
mov rbx, qword [rcx + 8]
lea rdi, [r14*8]
mov al, byte [0x14019e160]
xor ecx, ecx
mov rdx, rdi
call fcn.1400ddfb0
test rax, rax
je 0x1400ad8bb
mov rsi, rax
xor eax, eax
mov rcx, qword [rbx + rax*8]
mov qword [rsi + rax*8], rcx
inc rax
cmp r14, rax
jne 0x1400ad7dd
mov eax, r14d
jmp 0x1400ad7f9
xor eax, eax
mov esi, 8
lea rcx, [rsp + 0x60]
mov dword [rcx + 4], eax
mov qword [rcx + 8], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x40], 0
lea rdx, [0x14015f9fb]
xor ecx, ecx
mov r8d, 2
xor r9d, r9d
call sub.secur32.dll_AcquireCredentialsHandleA
test eax, eax
je 0x1400ad851
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov ebx, 1
jmp 0x1400ad88b
mov rbx, qword [rsp + 0x50]
mov r15, qword [rsp + 0x58]
mov al, byte [0x14019e160]
mov edx, 0x20
xor ecx, ecx
call fcn.1400ddfb0
test rax, rax
je 0x1400ad8c8
mov rdi, rax
mov eax, 1
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], r15
xor ebx, ebx
test r14, r14
je 0x1400ad8a1
mov rcx, qword [0x14019e0f8]
xor edx, edx
mov r8, rsi
call fcn.1400fdef8
mov rax, rbx
mov rdx, rdi
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140011c80
mov ecx, 8
mov rdx, rdi
call fcn.140011cc0
mov ecx, 8
mov edx, 0x20
call fcn.140011cc0
int3

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

Disassembly:
sub rsp, 0x28
lea r8, [rsp + 0x20]
mov qword [r8], 0
mov edx, 0x53
call sub.secur32.dll_QueryContextAttributesW
mov edx, eax
xor eax, eax
test edx, edx
setne cl
jne 0x1400ae04f
mov rdx, qword [rsp + 0x20]
jmp 0x1400ae057
shl rdx, 0x20
or rdx, 2
mov al, cl
add rsp, 0x28
ret
Function at 0x1400afb50
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x1400afbd5
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
mov dword [rsp + 0x28], eax
cmp eax, 1
jne 0x1400afc16
cmp dword [rsp + 0x2c], 0
je 0x1400afbfa
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1400afc3c
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x14019e130]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x14019e130], rsi
jne 0x1400afbb0
mov byte [0x14019e128], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x1400afc0c
call sub.kernel32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x1400afc86
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x1400afbff
mov edi, dword [rsp + 0x28]
jmp 0x1400afc0c
mov edi, dword [rsi + 0x18]
jmp 0x1400afc0a
mov edi, eax
mov ecx, dword [rsp + 0x28]
call sub.kernel32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x30], 0
lea rdx, [0x1401627b0]
lea r9, str.library_std_src_syspalwindows_thread_local_key.rs
lea rcx, [rsp + 0x28]
lea r8, [rsp + 0x30]
call fcn.1400b0250
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, [0x14018ced8]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str.library_std_src_syspalwindows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call fcn.14001a1d0
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, [0x14018ced8]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.1400b0290
int3
Function at 0x1400b0130
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x1401012f8]
test ecx, ecx
je 0x1400b0209
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400b0164
mov rdi, rax
cmp qword [rax + 8], 0
je 0x1400b0164
add rdi, 0x10
jmp 0x1400b01ff
mov ecx, dword [0x1401012f8]
test ecx, ecx
je 0x1400b021c
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400b01fd
mov rsi, rax
test rax, rax
jne 0x1400b01cc
movzx eax, byte [0x14019e160]
mov edx, 0x18
xor ecx, ecx
call fcn.1400ddfb0
test rax, rax
je 0x1400b023f
mov rsi, rax
lea rax, [0x1401012e0]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1401012f8]
test ecx, ecx
je 0x1400b022f
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
lea rdi, [rsi + 0x10]
mov rcx, qword [rsi + 0x10]
cmp qword [rsi + 8], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], 0
je 0x1400b01ff
test rcx, rcx
je 0x1400b01ff
lock dec qword [rcx]
jne 0x1400b01ff
call fcn.1400afaf0
jmp 0x1400b01ff
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1401012e0]
call fcn.1400afb50
mov ecx, eax
jmp 0x1400b0146
lea rcx, [0x1401012e0]
call fcn.1400afb50
mov ecx, eax
jmp 0x1400b0174
lea rcx, [0x1401012e0]
call fcn.1400afb50
mov ecx, eax
jmp 0x1400b01c4
mov ecx, 8
mov edx, 0x18
call fcn.140011cc0
int3
Function at 0x1400b1430
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1401012d8]
test ecx, ecx
je 0x1400b14ea
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400b1460
cmp qword [rax + 8], 0
je 0x1400b1460
add rax, 0x10
jmp 0x1400b14e4
mov ecx, dword [0x1401012d8]
test ecx, ecx
je 0x1400b14fd
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400b14e2
mov rsi, rax
test rax, rax
jne 0x1400b14c8
movzx eax, byte [0x14019e160]
mov edx, 0x20
xor ecx, ecx
call fcn.1400ddfb0
test rax, rax
je 0x1400b1520
mov rsi, rax
lea rax, [0x1401012c0]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1401012d8]
test ecx, ecx
je 0x1400b1510
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov byte [rsi + 0x18], 0
jmp 0x1400b14e4
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1401012c0]
call fcn.1400afb50
mov ecx, eax
jmp 0x1400b1445
lea rcx, [0x1401012c0]
call fcn.1400afb50
mov ecx, eax
jmp 0x1400b1470
lea rcx, [0x1401012c0]
call fcn.1400afb50
mov ecx, eax
jmp 0x1400b14c0
mov ecx, 8
mov edx, 0x20
call fcn.140011cc0
int3
Function at 0x1400b5570
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xe8
movaps xmmword [rsp + 0xd0], xmm6
mov rax, r8
mov rsi, rcx
mov dword [rsp + 0x88], 0
xorps xmm6, xmm6
movups xmmword [rsp + 0x90], xmm6
mov dword [rsp + 0xa0], 7
mov qword [rsp + 0xa4], 0
mov word [rsp + 0xac], 0
mov byte [rsp + 0xa8], 1
lea r8, [rsp + 0x88]
mov rcx, rdx
mov rdx, rax
call fcn.1400cdfa0
mov rdi, rdx
test rax, rax
je 0x1400b560c
mov qword [rsp + 0x40], 1
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x48], rdi
call fcn.1400af350
mov qword [rsi], 0
jmp 0x1400b57dd
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
mov dword [rsp + 0x70], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call sub.kernel32.dll_GetFileInformationByHandle
test eax, eax
je 0x1400b56c8
test dword [rsp + 0x40], 0x400
je 0x1400b566d
mov qword [rsp + 0x80], 0
lea r8, [rsp + 0x80]
mov rcx, rdi
mov edx, 9
mov r9d, 8
call sub.kernel32.dll_GetFileInformationByHandleEx
test eax, eax
je 0x1400b56c8
mov r12d, dword [rsp + 0x60]
mov r15d, dword [rsp + 0x64]
test rdi, rdi
je 0x1400b571d
mov qword [rsp + 0x40], 0
call sub.kernel32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, rax
mov rdx, rdi
mov r8, rax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x1400b57a0
mov rbx, qword [rsp + 0x40]
jmp 0x1400b571f
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x88], 2
call fcn.1400af350
mov qword [rsi], 0
mov rcx, rdi
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp sub.kernel32.dll_CloseHandle
xor ebx, ebx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.kernel32.dll_CreateFileMappingA
test rax, rax
je 0x1400b578f
mov r14, rax
shl r12, 0x20
or r12, r15
mov qword [rsp + 0x20], r12
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.kernel32.dll_MapViewOfFile
mov r15, rax
mov rcx, r14
call sub.kernel32.dll_CloseHandle
test r15, r15
je 0x1400b578f
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x1400b57d5
mov qword [rsi], 0
mov rcx, rbx
call sub.kernel32.dll_CloseHandle
jmp 0x1400b57d5
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x88], 1
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x90], rax
call fcn.1400af350
mov qword [rsi], 0
mov rcx, rdi
call sub.kernel32.dll_CloseHandle
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400ce940
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.1400b1a40
mov rax, qword [rsp + 0xa8]
cmp rax, rdi
jne 0x1400ce98f
lea rcx, [rsp + 0xb0]
call fcn.1400af350
mov qword [rsi], rdi
jmp 0x1400ceb73
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 0x1400cea20
jmp 0x1400ce9ff
jae 0x1400ceac7
cmp r8, 0x201
jae 0x1400cea20
mov edi, 0x200
lea rbp, [rsp + 0xa8]
mov r12, r8
jmp 0x1400cea67
sub r8, r13
sub r14, r13
cmp r14, r8
jae 0x1400cea47
lea rcx, [rsp + 0x48]
mov rdx, r13
call fcn.1400b1f40
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 0x1400cea8e
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x1400ceb06
mov r8d, r15d
cmp r12, r8
jne 0x1400ce9f0
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x1400ceba3
add r12, r12
cmp r12, rsi
cmovae r12, rsi
mov r8, r12
cmp r8, 0x201
jb 0x1400ce9ff
jmp 0x1400cea20
cmp rdi, r8
jb 0x1400cebbd
lea rcx, [rsp + 0x88]
mov rdx, rbp
call fcn.1400b3e40
movabs rdi, 0x8000000000000000
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rsp + 0x60], xmm0
jmp 0x1400ceb27
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 0x1400ceb44
mov rcx, qword [0x14019e0f8]
xor edx, edx
mov r8, qword [rsp + 0x28]
call fcn.1400fdef8
cmp qword [rsp + 0x60], rdi
jne 0x1400ceb88
mov qword [rsi], rdi
lea rcx, [rsp + 0x68]
call fcn.1400af350
cmp qword [rsp + 0x40], 0
je 0x1400ceb73
mov rcx, qword [0x14019e0f8]
xor edx, edx
mov r8, qword [rsp + 0x30]
call fcn.1400fdef8
nop
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 0x1400ceb60
jmp 0x1400ceb73
lea rcx, [0x140166791]
lea r8, str.library_std_src_syspalwindowsmod.rs
mov edx, 0x28
call fcn.14001b470
jmp 0x1400cebd2
lea rax, str.library_std_src_syspalwindowsmod.rs
mov rcx, r8
mov rdx, rdi
mov r8, rax
call fcn.14001b0d0
ud2
Function at 0x1400d0500
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1401623c8]
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 sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x1400d056a
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x1400d0579
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1400d05b0
cmp eax, 0x103
je 0x1400d05ba
test eax, eax
js 0x1400d0596
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1400d05b0
mov ecx, eax
call sub.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 dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
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.1400b00b0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.1400af410
mov ecx, 7
int 0x29
ud2

Function at 0x1400d1fd0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x140101378]
test ecx, ecx
je 0x1400d20a9
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400d2004
mov rdi, rax
cmp qword [rax + 8], 0
je 0x1400d2004
add rdi, 0x10
jmp 0x1400d209f
mov ecx, dword [0x140101378]
test ecx, ecx
je 0x1400d20bc
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400d209d
mov rsi, rax
test rax, rax
jne 0x1400d206c
movzx eax, byte [0x14019e160]
mov edx, 0x18
xor ecx, ecx
call fcn.1400ddfb0
test rax, rax
je 0x1400d20df
mov rsi, rax
lea rax, [0x140101360]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140101378]
test ecx, ecx
je 0x1400d20cf
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
lea rdi, [rsi + 0x10]
mov rcx, qword [rsi + 0x10]
cmp qword [rsi + 8], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], 0
je 0x1400d209f
test rcx, rcx
je 0x1400d209f
lock dec qword [rcx]
jne 0x1400d209f
call fcn.1400d20f0
jmp 0x1400d209f
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x140101360]
call fcn.1400afb50
mov ecx, eax
jmp 0x1400d1fe6
lea rcx, [0x140101360]
call fcn.1400afb50
mov ecx, eax
jmp 0x1400d2014
lea rcx, [0x140101360]
call fcn.1400afb50
mov ecx, eax
jmp 0x1400d2064
mov ecx, 8
mov edx, 0x18
call fcn.140011cc0
int3
Function at 0x1400d99a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rsi, rcx
movabs rbx, 0x8000000000000000
lea rcx, [rsp + 0x40]
call fcn.1400b1a40
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
cmp rcx, rbx
jne 0x1400d99dd
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
jmp 0x1400d9a0a
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.1400d98d0
mov r14, qword [rsp + 0x28]
cmp r14, rbx
jne 0x1400d9a23
lea rcx, [rsp + 0x30]
call fcn.1400af350
mov qword [rsi], rbx
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rdi, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
mov rcx, rdi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x1400d9a47
mov qword [rsi], r14
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r15
jmp 0x1400d9a17
mov qword [rsi], rbx
test r14, r14
je 0x1400d9a17
mov rcx, qword [0x14019e0f8]
xor edx, edx
mov r8, rdi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.1400fdef8
Function at 0x1400db560
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rdi, r8
mov r14, rdx
mov rbx, rcx
movzx eax, byte [0x14019e160]
mov edx, 0x10
xor ecx, ecx
call fcn.1400ddfb0
test rax, rax
je 0x1400db629
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400db6a0]
xor edi, edi
xor ecx, ecx
mov rdx, rbx
mov r9, rax
call sub.kernel32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x1400db61c
mov rdi, qword [rsi]
mov r14, qword [rsi + 8]
mov rcx, rdi
call qword [r14]
cmp qword [r14 + 8], 0
je 0x1400db5f7
cmp qword [r14 + 0x10], 0x11
jb 0x1400db5e6
mov rdi, qword [rdi - 8]
mov rcx, qword [0x14019e0f8]
xor edx, edx
mov r8, rdi
call fcn.1400fdef8
mov rcx, qword [0x14019e0f8]
xor edx, edx
mov r8, rsi
call fcn.1400fdef8
call sub.kernel32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 8
mov edx, 0x10
call fcn.140011cc0
ud2

Function at 0x1400db980
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x1098
call fcn.1400fd8d0
sub rsp, rax
movaps xmmword [rsp + 0x1080], xmm6
mov rsi, rdx
mov rdi, rcx
lea r14, [rsp + 0x80]
mov r8d, 0x1000
mov rcx, r14
xor edx, edx
call sub.msvcrt.dll_memset
xorps xmm6, xmm6
lea r15, [rsp + 0x3c]
lea rbx, [0x1400d3160]
lea r13, [rsp + 0x60]
lea r12, [0x140105bb8]
mov qword [rsp + 0x48], rdi

Function at 0x1400dbea0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
sub rsp, 0x80
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
mov edx, 0x10
call sub.advapi32.dll_SystemFunction036
test al, al
je 0x1400dbed6
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
add rsp, 0x80
pop rsi
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x40], rax
lea rax, [0x1400cf450]
mov qword [rsp + 0x48], rax
lea rax, str.fallback_RNG_broken:
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rdx, str.library_std_src_syspalwindows_rand.rs
lea rcx, [rsp + 0x50]
call fcn.14001a1d0
ud2