joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140084374
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 0x1400843d7
mov edx, dword [rcx + 0x28]
mov dword [rsp + 0x90], edx
mov qword [rsp + 0x98], rax
mov rax, qword [rcx + 0x30]
test rax, rax
je 0x14008440d
mov r8, qword [rcx + 0x40]
xor edx, edx
test r8, r8
je 0x140084406
lea r9, [0x14013b518]
xor r10d, r10d
movzx r11d, byte [rax + r10]
or edx, dword [r9 + r11*4]
inc r10
cmp r8, r10
jne 0x1400843f5
mov dword [rsp + 0xa0], edx
mov r15, qword [rcx + 0x10]
lea rsi, [r15*8]
test r15, r15
je 0x14008445e
mov rax, r15
shr rax, 0x3c
jne 0x14008451f
mov rbx, qword [rcx]
mov ecx, 8
mov rdx, rsi
call fcn.1400bff99
test rax, rax
je 0x140084526
mov rdi, rax
xor eax, eax
mov rcx, qword [rbx + rax*8]
mov qword [rdi + rax*8], rcx
inc rax
cmp r15, rax
jne 0x140084449
mov eax, r15d
jmp 0x140084465
xor eax, eax
mov edi, 8
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, [0x14010df33]
xor ecx, ecx
mov r8d, 2
xor r9d, r9d
call sub.secur32.dll_AcquireCredentialsHandleA
test eax, eax
je 0x1400844bb
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov r14d, 1
jmp 0x1400844f3
mov r14, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov ecx, 8
mov edx, 0x20
call fcn.1400bff99
test rax, rax
je 0x140084530
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 0x140084508
mov edx, 8
mov rcx, rdi
mov r8, rsi
call fcn.1400026a7
mov rax, r14
mov rdx, rbx
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.14000d7c0
ud2
mov ecx, 8
mov rdx, rsi
jmp 0x14008453a
mov ecx, 8
mov edx, 0x20
call fcn.14000d800
ud2

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

Disassembly:
sub rsp, 0x28
lea r8, [rsp + 0x20]
and qword [r8], 0
mov edx, 0x53
call sub.secur32.dll_QueryContextAttributesW
mov edx, eax
xor eax, eax
test edx, edx
setne cl
jne 0x140084ac4
mov rdx, qword [rsp + 0x20]
jmp 0x140084acc
shl rdx, 0x20
or rdx, 2
mov al, cl
add rsp, 0x28
ret
Function at 0x1400854ed
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 0x140085519
xor eax, eax
jmp 0x14008551e
call fcn.14003a492
nop
add rsp, 0x38
ret
Function at 0x140086940
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x1400869c5
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 0x140086a06
cmp dword [rsp + 0x2c], 0
je 0x1400869ea
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140086a2e
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x14014d1d0]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x14014d1d0], rsi
jne 0x1400869a0
mov byte [0x14014d1c8], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x1400869fc
call sub.kernel32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x140086a7a
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x1400869ef
mov edi, dword [rsp + 0x28]
jmp 0x1400869fc
mov edi, dword [rsi + 0x18]
jmp 0x1400869fa
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, [0x1401115f8]
lea r9, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x28]
lea r8, [rsp + 0x30]
call fcn.140087060
ud2
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, str._rustc_82e1608dfa6e0b5569232559e3d385fea5a93112librarycore_srccharmethods.rs
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call fcn.140010590
ud2
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str._rustc_82e1608dfa6e0b5569232559e3d385fea5a93112librarycore_srccharmethods.rs
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.1400870a0
ud2
Function at 0x140086f30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x1400d40f8]
test ecx, ecx
je 0x140087010
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x140086f64
mov rdi, rax
cmp qword [rax + 8], 0
je 0x140086f64
add rdi, 0x10
jmp 0x140087006
mov ecx, dword [0x1400d40f8]
test ecx, ecx
je 0x140087023
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140087004
mov rsi, rax
test rax, rax
jne 0x140086fd3
movzx eax, byte [0x14014d230]
mov ecx, 0x18
mov edx, 8
call fcn.14000d260
test rax, rax
je 0x140087046
mov rsi, rax
lea rax, str.0q_b_
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400d40f8]
test ecx, ecx
je 0x140087036
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 0x140087006
test rcx, rcx
je 0x140087006
lock dec qword [rcx]
jne 0x140087006
call fcn.1400868f0
jmp 0x140087006
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, str.0q_b_
call fcn.140086940
mov ecx, eax
jmp 0x140086f46
lea rcx, str.0q_b_
call fcn.140086940
mov ecx, eax
jmp 0x140086f74
lea rcx, str.0q_b_
call fcn.140086940
mov ecx, eax
jmp 0x140086fcb
mov ecx, 8
mov edx, 0x18
call fcn.14000d800
ud2

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

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1400d4118]
test ecx, ecx
je 0x1400876cf
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x140087659
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x1400876be
mov ecx, dword [0x1400d4118]
test ecx, ecx
je 0x1400876e2
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400876c4
mov rsi, rax
test rax, rax
jne 0x1400876b8
movzx eax, byte [0x14014d230]
mov ecx, 0x10
mov edx, 8
call fcn.14000d260
test rax, rax
je 0x140087705
mov rsi, rax
lea rax, [0x1400d4100]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x1400d4118]
test ecx, ecx
je 0x1400876f5
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
jmp 0x1400876c6
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1400d4100]
call fcn.140086940
mov ecx, eax
jmp 0x140087645
lea rcx, [0x1400d4100]
call fcn.140086940
mov ecx, eax
jmp 0x140087665
lea rcx, [0x1400d4100]
call fcn.140086940
mov ecx, eax
jmp 0x1400876b0
mov ecx, 8
mov edx, 0x10
call fcn.14000d800
ud2
Function at 0x140087c70
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x140110ca0]
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_NtWriteFile
cmp eax, 0x103
jne 0x140087ce1
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140087d17
test eax, eax
js 0x140087cf2
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140087d0a
mov ecx, eax
call sub.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 dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x140110d08]
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.140086d50
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.1400861f0
mov ecx, 7
int 0x29
ud2

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

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1400d40d8]
test ecx, ecx
je 0x14008832d
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400882a0
cmp qword [rax + 8], 0
je 0x1400882a0
add rax, 0x10
jmp 0x140088327
mov ecx, dword [0x1400d40d8]
test ecx, ecx
je 0x140088340
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140088325
mov rsi, rax
test rax, rax
jne 0x14008830b
movzx eax, byte [0x14014d230]
mov ecx, 0x20
mov edx, 8
call fcn.14000d260
test rax, rax
je 0x140088363
mov rsi, rax
lea rax, [0x1400d40c0]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400d40d8]
test ecx, ecx
je 0x140088353
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 0x140088327
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1400d40c0]
call fcn.140086940
mov ecx, eax
jmp 0x140088285
lea rcx, [0x1400d40c0]
call fcn.140086940
mov ecx, eax
jmp 0x1400882b0
lea rcx, [0x1400d40c0]
call fcn.140086940
mov ecx, eax
jmp 0x140088303
mov ecx, 8
mov edx, 0x20
call fcn.14000d800
ud2
Function at 0x14008bb80
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xc8
mov rax, r8
mov rsi, rcx
mov dword [rsp + 0x38], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], 7
mov qword [rsp + 0x54], 0
mov word [rsp + 0x5c], 0
mov byte [rsp + 0x58], 1
lea r8, [rsp + 0x38]
mov rcx, rdx
mov rdx, rax
call fcn.1400a4470
mov rdi, rdx
test rax, rax
je 0x14008bc10
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x88], rdi
call fcn.140086150
mov qword [rsi], 0
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [rsp + 0x38]
mov rdx, rdi
call fcn.1400a4690
cmp dword [rsp + 0x38], 2
jne 0x14008bc3f
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x80], 2
jmp 0x14008bc8b
movups xmm0, xmmword [rsp + 0x38]
movups xmm1, xmmword [rsp + 0x48]
movups xmm2, xmmword [rsp + 0x58]
movups xmm3, xmmword [rsp + 0x68]
movaps xmmword [rsp + 0x80], xmm0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xc0], rax
movaps xmmword [rsp + 0xb0], xmm3
movaps xmmword [rsp + 0xa0], xmm2
movaps xmmword [rsp + 0x90], xmm1
cmp qword [rsp + 0x80], 2
jne 0x14008bcb7
lea rcx, [rsp + 0x88]
call fcn.140086150
mov qword [rsi], 0
mov rcx, rdi
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp fcn.1400d0d2c
mov r12, qword [rsp + 0xb8]
test rdi, rdi
je 0x14008bd15
mov qword [rsp + 0x80], 0
call sub.kernel32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov rcx, rax
mov rdx, rdi
mov r8, rax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x14008bd91
mov rbx, qword [rsp + 0x80]
jmp 0x14008bd17
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 0x14008bd80
mov r14, rax
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 fcn.1400d0d2c
test r15, r15
je 0x14008bd80
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x14008bdbd
mov qword [rsi], 0
mov rcx, rbx
call fcn.1400d0d2c
jmp 0x14008bdbd
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x38], 1
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
call fcn.140086150
mov qword [rsi], 0
mov rcx, rdi
call fcn.1400d0d2c
jmp 0x14008bbff
Function at 0x1400a4ea0
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.140088850
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400a500b
mov qword [rsp + 0x38], rsi
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
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 0x1400a4f60
jmp 0x1400a4f3f
jae 0x1400a5021
cmp r8, 0x201
jae 0x1400a4f60
mov edi, 0x200
lea rbp, [rsp + 0xa8]
mov r12, r8
jmp 0x1400a4fa7
sub r8, r13
sub r14, r13
cmp r14, r8
jae 0x1400a4f87
lea rcx, [rsp + 0x48]
mov rdx, r13
call fcn.140088cd0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rbx, qword [rsp + 0x50]
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 0x1400a4fd2
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x1400a5056
mov r8d, r15d
cmp r12, r8
jne 0x1400a4f30
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x1400a50e2
add r12, r12
cmp r12, rsi
cmovae r12, rsi
mov r8, r12
cmp r8, 0x201
jb 0x1400a4f3f
jmp 0x1400a4f60
lea rcx, [rsp + 0xb0]
call fcn.140086150
mov byte [rsi + 0x18], 2
jmp 0x1400a50b2
cmp rdi, r8
jb 0x1400a50fc
lea rcx, [rsp + 0x88]
mov rdx, rbp
call fcn.14008a800
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rsp + 0x60], xmm0
jmp 0x1400a506d
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x60], rax
mov byte [rsp + 0x78], 2
mov rsi, qword [rsp + 0x38]
test rbx, rbx
je 0x1400a5086
mov edx, 2
mov rcx, qword [rsp + 0x28]
call fcn.14000d2f0
cmp byte [rsp + 0x78], 2
jne 0x1400a50c7
mov byte [rsi + 0x18], 2
lea rcx, [rsp + 0x60]
call fcn.140086150
cmp qword [rsp + 0x40], 0
je 0x1400a50b2
mov edx, 2
mov rcx, qword [rsp + 0x30]
call fcn.14000d2f0
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 0x1400a50a3
jmp 0x1400a50b2
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.1400112d0
jmp 0x1400a5111
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rdi
mov r8, rax
call fcn.140010f30
ud2
Function at 0x1400a8f00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x1400d4138]
test ecx, ecx
je 0x1400a8fe0
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400a8f34
mov rdi, rax
cmp qword [rax + 8], 0
je 0x1400a8f34
add rdi, 0x10
jmp 0x1400a8fd6
mov ecx, dword [0x1400d4138]
test ecx, ecx
je 0x1400a8ff3
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400a8fd4
mov rsi, rax
test rax, rax
jne 0x1400a8fa3
movzx eax, byte [0x14014d230]
mov ecx, 0x18
mov edx, 8
call fcn.14000d260
test rax, rax
je 0x1400a9016
mov rsi, rax
lea rax, [0x1400d4120]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400d4138]
test ecx, ecx
je 0x1400a9006
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 0x1400a8fd6
test rcx, rcx
je 0x1400a8fd6
lock dec qword [rcx]
jne 0x1400a8fd6
call fcn.1400a9030
jmp 0x1400a8fd6
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1400d4120]
call fcn.140086940
mov ecx, eax
jmp 0x1400a8f16
lea rcx, [0x1400d4120]
call fcn.140086940
mov ecx, eax
jmp 0x1400a8f44
lea rcx, [0x1400d4120]
call fcn.140086940
mov ecx, eax
jmp 0x1400a8f9b
mov ecx, 8
mov edx, 0x18
call fcn.14000d800
ud2
Function at 0x1400b0570
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.140088850
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
test rcx, rcx
je 0x1400b05e5
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.1400b04a0
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x1400b05f3
movdqu xmm6, xmmword [rsp + 0x30]
mov rcx, rdi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x1400b0613
mov qword [rsi], rdi
movdqu xmmword [rsi + 8], xmm6
jmp 0x1400b0604
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x30]
call fcn.140086150
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 0x1400b0604
mov edx, 2
mov rcx, rdi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
jmp fcn.14000d2f0
Function at 0x1400b2170
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rbx, r8
mov r14, rdx
mov rdi, rcx
movzx eax, byte [0x14014d230]
mov ecx, 0x10
mov edx, 8
call fcn.14000d260
test rax, rax
je 0x1400b2228
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400b2280]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call sub.kernel32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x1400b221b
mov rbx, qword [rsi]
mov r14, qword [rsi + 8]
mov rcx, rbx
call qword [r14]
cmp qword [r14 + 8], 0
je 0x1400b21fa
mov rdx, qword [r14 + 0x10]
mov rcx, rbx
call fcn.14000d2f0
mov edx, 8
mov rcx, rsi
call fcn.14000d2f0
call sub.kernel32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ebx, 1
mov rax, rbx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 8
mov edx, 0x10
call fcn.14000d800
ud2

Function at 0x1400b2530
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.1400d0b40
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, [0x1400aa290]
lea r13, [rsp + 0x60]
lea r12, [0x1400d8698]
mov qword [rsp + 0x48], rdi

Function at 0x1400b2a30
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 0x1400b2a66
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, [fcn.1400a5960]
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_syswindows_rand.rs
lea rcx, [rsp + 0x50]
call fcn.140010590
ud2
Function at 0x1400b9200
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x30
mov ecx, dword [0x1400d4158]
test ecx, ecx
je 0x1400b92f9
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400b9230
cmp qword [rax + 8], 0
je 0x1400b9230
add rax, 0x10
jmp 0x1400b92f3
mov ecx, dword [0x1400d4158]
test ecx, ecx
je 0x1400b930c
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400b92d3
mov rsi, rax
test rax, rax
jne 0x1400b92a3
movzx eax, byte [0x14014d230]
mov ecx, 0x20
mov edx, 8
call fcn.14000d260
test rax, rax
je 0x1400b9332
mov rsi, rax
lea rax, [0x1400d4140]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400d4158]
test ecx, ecx
je 0x1400b931f
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x1400b92d7
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x1400b92df
xor eax, eax
jmp 0x1400b92f3
call fcn.1400b2a30
mov rcx, rax
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rdx
add rsp, 0x30
pop rsi
ret
lea rcx, [0x1400d4140]
call fcn.140086940
mov ecx, eax
jmp 0x1400b9215
lea rcx, [0x1400d4140]
call fcn.140086940
mov ecx, eax
jmp 0x1400b9240
lea rcx, [0x1400d4140]
call fcn.140086940
mov ecx, eax
jmp 0x1400b929b
mov ecx, 8
mov edx, 0x20
call fcn.14000d800
ud2

Function at 0x1400bc206
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rax, rdx
mov rsi, rcx
lea rdx, [rsp + 0x2c]
mov rcx, rax
call sub.shell32.dll_CommandLineToArgvW
test rax, rax
je 0x1400bc2a9
mov rdi, rax
movsxd r12, dword [rsp + 0x2c]
lea rbx, [rsp + 0x30]
mov qword [rbx], 8
xorps xmm0, xmm0
movups xmmword [rbx + 8], xmm0
shl r12, 3
xor r13d, r13d
lea r14, [rsp + 0x48]
cmp r12, r13
je 0x1400bc284
mov r15, qword [rdi + r13]
mov rcx, r15
call sub.msvcrt.dll_wcslen
mov rcx, r14
mov rdx, r15
mov r8, rax
call fcn.1400bae14
mov rcx, rbx
mov rdx, r14
call fcn.1400bc513
add r13, 8
jmp 0x1400bc254
mov rcx, rdi
call sub.kernel32.dll_LocalFree
test rax, rax
jne 0x1400bc296
call fcn.1400d086d
mov rax, qword [rsp + 0x40]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
jmp 0x1400bc2b7
mov qword [rsi], 8
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret