joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140196c20
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x140196ca5
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 0x140196ce6
cmp dword [rsp + 0x2c], 0
je 0x140196cca
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140196d0c
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x1404302d8]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1404302d8], rsi
jne 0x140196c80
mov byte [0x1404302d0], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x140196cdc
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x140196d56
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x140196ccf
mov edi, dword [rsp + 0x28]
jmp 0x140196cdc
mov edi, dword [rsi + 0x18]
jmp 0x140196cda
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, [0x1403be2e8]
lea r9, str.library_std_src_syspalwindows_thread_local_key.rs
lea rcx, [rsp + 0x28]
lea r8, [rsp + 0x30]
call fcn.140197330
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_d5fd0997291ca0135401a39dff25c8a9c13b8961librarycore_src_sync_atomic.rsthere_is_no_such_thing_as_an_acquire_store
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.14009d3a0
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str._rustc_d5fd0997291ca0135401a39dff25c8a9c13b8961librarycore_src_sync_atomic.rsthere_is_no_such_thing_as_an_acquire_store
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.140197370
int3
Function at 0x140197200
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x1402de220]
test ecx, ecx
je 0x1401972e0
dec ecx
call fcn.1401e10b4
cmp rax, 2
jb 0x140197234
mov rdi, rax
cmp qword [rax + 8], 0
je 0x140197234
add rdi, 0x10
jmp 0x1401972d6
mov ecx, dword [0x1402de220]
test ecx, ecx
je 0x1401972f3
dec ecx
call fcn.1401e10b4
cmp rax, 1
je 0x1401972d4
mov rsi, rax
test rax, rax
jne 0x1401972a3
movzx eax, byte [0x140430330]
mov ecx, 0x18
mov edx, 8
call fcn.140077a60
test rax, rax
je 0x140197316
mov rsi, rax
lea rax, [0x1402de208]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1402de220]
test ecx, ecx
je 0x140197306
dec ecx
mov rdx, rsi
call fcn.1401e10ac
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 0x1401972d6
test rcx, rcx
je 0x1401972d6
lock dec qword [rcx]
jne 0x1401972d6
call fcn.140196bd0
jmp 0x1401972d6
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1402de208]
call fcn.140196c20
mov ecx, eax
jmp 0x140197216
lea rcx, [0x1402de208]
call fcn.140196c20
mov ecx, eax
jmp 0x140197244
lea rcx, [0x1402de208]
call fcn.140196c20
mov ecx, eax
jmp 0x14019729b
mov ecx, 8
mov edx, 0x18
call fcn.140099f80
int3

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

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1402de240]
test ecx, ecx
je 0x14019798f
dec ecx
call fcn.1401e10b4
cmp rax, 2
jb 0x140197919
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x14019797e
mov ecx, dword [0x1402de240]
test ecx, ecx
je 0x1401979a2
dec ecx
call fcn.1401e10b4
cmp rax, 1
je 0x140197984
mov rsi, rax
test rax, rax
jne 0x140197978
movzx eax, byte [0x140430330]
mov ecx, 0x10
mov edx, 8
call fcn.140077a60
test rax, rax
je 0x1401979c5
mov rsi, rax
lea rax, [0x1402de228]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x1402de240]
test ecx, ecx
je 0x1401979b5
dec ecx
mov rdx, rsi
call fcn.1401e10ac
mov word [rsi + 8], 1
add rsi, 9
jmp 0x140197986
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1402de228]
call fcn.140196c20
mov ecx, eax
jmp 0x140197905
lea rcx, [0x1402de228]
call fcn.140196c20
mov ecx, eax
jmp 0x140197925
lea rcx, [0x1402de228]
call fcn.140196c20
mov ecx, eax
jmp 0x140197970
mov ecx, 8
mov edx, 0x10
call fcn.140099f80
int3
Function at 0x140197f80
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1403bdef8]
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 0x140197ff1
mov rcx, rdi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140198027
test eax, eax
js 0x140198002
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14019801a
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, [0x1403bdf60]
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.140197180
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.1401964f0
mov ecx, 7
int 0x29
ud2

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

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1402de200]
test ecx, ecx
je 0x14019864d
dec ecx
call fcn.1401e10b4
cmp rax, 2
jb 0x1401985c0
cmp qword [rax + 8], 0
je 0x1401985c0
add rax, 0x10
jmp 0x140198647
mov ecx, dword [0x1402de200]
test ecx, ecx
je 0x140198660
dec ecx
call fcn.1401e10b4
cmp rax, 1
je 0x140198645
mov rsi, rax
test rax, rax
jne 0x14019862b
movzx eax, byte [0x140430330]
mov ecx, 0x20
mov edx, 8
call fcn.140077a60
test rax, rax
je 0x140198683
mov rsi, rax
lea rax, [0x1402de1e8]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1402de200]
test ecx, ecx
je 0x140198673
dec ecx
mov rdx, rsi
call fcn.1401e10ac
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov byte [rsi + 0x18], 0
jmp 0x140198647
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1402de1e8]
call fcn.140196c20
mov ecx, eax
jmp 0x1401985a5
lea rcx, [0x1402de1e8]
call fcn.140196c20
mov ecx, eax
jmp 0x1401985d0
lea rcx, [0x1402de1e8]
call fcn.140196c20
mov ecx, eax
jmp 0x140198623
mov ecx, 8
mov edx, 0x20
call fcn.140099f80
int3
Function at 0x14019a310
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x468
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 2
mov qword [rsp + 0x40], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x20], rax
xor edi, edi
mov ebx, 0xffffffff
xor esi, esi
xor r14d, r14d
cmp r8, 0x201
jae 0x14019a390
jmp 0x14019a37f
jae 0x14019a435
cmp r8, 0x201
jae 0x14019a390
mov r15d, 0x200
lea r12, [rsp + 0x68]
mov r13, r8
jmp 0x14019a3d7
sub r8, r14
sub rsi, r14
cmp rsi, r8
jae 0x14019a3b7
lea rcx, [rsp + 0x30]
mov rdx, r14
call fcn.140199000
mov rdi, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
cmp rdi, rbx
mov r14d, 0xffffffff
cmovb r14, rdi
mov qword [rsp + 0x40], r14
mov rsi, rdi
mov r15, r14
mov r12, qword [rsp + 0x20]
mov r13, r14
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov ecx, r13d
mov rdx, r12
call sub.KERNEL32.dll_GetCurrentDirectoryW
mov ebp, eax
test eax, eax
jne 0x14019a3fc
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x14019a48a
mov r8d, ebp
cmp r13, r8
jne 0x14019a370
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x14019a4b4
add r13, r13
cmp r13, rbx
cmovae r13, rbx
mov r8, r13
cmp r8, 0x201
jb 0x14019a37f
jmp 0x14019a390
cmp r15, r8
jb 0x14019a4ce
lea rcx, [rsp + 0x48]
mov rdx, r12
call fcn.14019acf0
movups xmm0, xmmword [rsp + 0x48]
movups xmm1, xmmword [rsp + 0x58]
mov rax, qword [rsp + 0x28]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
test rdi, rdi
je 0x14019a475
mov edx, 2
mov rcx, qword [rsp + 0x20]
call fcn.140077af0
nop
add rsp, 0x468
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 8], rax
movabs rax, 0x8000000000000000
mov qword [rcx], rax
test rdi, rdi
jne 0x14019a466
jmp 0x14019a475
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syspalwindowsmod.rs
mov edx, 0x28
call fcn.14009e210
jmp 0x14019a4e3
lea rax, str.library_std_src_syspalwindowsmod.rs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.14009de70
ud2
Function at 0x14019c410
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.1401b4be0
mov rdi, rdx
test rax, rax
je 0x14019c4a4
mov qword [rsp + 0x80], 1
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x88], rdi
call fcn.140196450
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.1401b4e30
cmp dword [rsp + 0x38], 2
jne 0x14019c4d3
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x80], 2
jmp 0x14019c51f
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 0x14019c54b
lea rcx, [rsp + 0x88]
call fcn.140196450
mov qword [rsi], 0
mov rcx, rdi
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp fcn.1401e1444
mov r12, qword [rsp + 0xb8]
test rdi, rdi
je 0x14019c5a9
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 0x14019c625
mov rbx, qword [rsp + 0x80]
jmp 0x14019c5ab
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 0x14019c614
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.1401e1444
test r15, r15
je 0x14019c614
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x14019c651
mov qword [rsi], 0
mov rcx, rbx
call fcn.1401e1444
jmp 0x14019c651
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.140196450
mov qword [rsi], 0
mov rcx, rdi
call fcn.1401e1444
jmp 0x14019c493
Function at 0x1401b5670
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.140198af0
mov rax, qword [rsp + 0xa8]
cmp rax, rdi
jne 0x1401b56bf
lea rcx, [rsp + 0xb0]
call fcn.140196450
mov qword [rsi], rdi
jmp 0x1401b589b
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 0x1401b5750
jmp 0x1401b572f
jae 0x1401b57f7
cmp r8, 0x201
jae 0x1401b5750
mov edi, 0x200
lea rbp, [rsp + 0xa8]
mov r12, r8
jmp 0x1401b5797
sub r8, r13
sub r14, r13
cmp r14, r8
jae 0x1401b5777
lea rcx, [rsp + 0x48]
mov rdx, r13
call fcn.140199000
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 0x1401b57be
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x1401b5836
mov r8d, r15d
cmp r12, r8
jne 0x1401b5720
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x1401b58cb
add r12, r12
cmp r12, rsi
cmovae r12, rsi
mov r8, r12
cmp r8, 0x201
jb 0x1401b572f
jmp 0x1401b5750
cmp rdi, r8
jb 0x1401b58e5
lea rcx, [rsp + 0x88]
mov rdx, rbp
call fcn.14019acf0
movabs rdi, 0x8000000000000000
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rsp + 0x60], xmm0
jmp 0x1401b5857
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 0x1401b5870
mov edx, 2
mov rcx, qword [rsp + 0x28]
call fcn.140077af0
cmp qword [rsp + 0x60], rdi
jne 0x1401b58b0
mov qword [rsi], rdi
lea rcx, [rsp + 0x68]
call fcn.140196450
cmp qword [rsp + 0x40], 0
je 0x1401b589b
mov edx, 2
mov rcx, qword [rsp + 0x30]
call fcn.140077af0
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 0x1401b588c
jmp 0x1401b589b
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syspalwindowsmod.rs
mov edx, 0x28
call fcn.14009e210
jmp 0x1401b58fa
lea rax, str.library_std_src_syspalwindowsmod.rs
mov rcx, r8
mov rdx, rdi
mov r8, rax
call fcn.14009de70
ud2
Function at 0x1401b7be0
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 0x1401b7c3c
mov r14, qword [rbx]
cmp bp, 0x2e
jne 0x1401b7d31
test r15w, r15w
je 0x1401b7c3c
cmp r15w, 0x2e
jne 0x1401b7d31
test r12w, r12w
jne 0x1401b7d31
lea r14, [rsp + 0x80]
mov r8d, 0x250
mov rcx, r14
xor edx, edx
call sub.msvcrt.dll_memset
mov rdi, qword [rbx + 8]
mov rcx, rdi
mov rdx, r14
call sub.KERNEL32.dll_FindNextFileW
test eax, eax
je 0x1401b7d17
mov r14, qword [rbx]
lea rbx, [rsp + 0x80]
jmp 0x1401b7c93
mov rcx, rdi
mov rdx, rbx
call sub.KERNEL32.dll_FindNextFileW
test eax, eax
je 0x1401b7d17
cmp word [rsp + 0xac], 0x2e
jne 0x1401b7cbc
movzx eax, word [rsp + 0xae]
test ax, ax
je 0x1401b7c80
cmp ax, 0x2e
jne 0x1401b7cbc
cmp word [rsp + 0xb0], 0
je 0x1401b7c80
lock inc qword [r14]
jle 0x1401b7e19
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 0x1401b7d5c
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x12
jne 0x1401b7da8
mov qword [rsi], 0
jmp 0x1401b7e07
lock inc qword [r14]
jle 0x1401b7e19
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.msvcrt.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.msvcrt.dll_memcpy
jmp 0x1401b7dba
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]
add byte [rax], 0
add byte [rcx - 0x48], al
invalid
add al, byte [rax]
add al, ch
nop
sahf
add al, byte [rax]
mov qword [rsi], 1
add dword [rax], eax
add byte [rax], al
ud2
Function at 0x1401b8d30
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov r8, rdx
mov rdx, rcx
movabs rdi, 0x8000000000000000
lea rcx, [rsp + 0x28]
call fcn.140198af0
mov rax, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
cmp rax, rdi
je 0x1401b8ddd
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rcx
and al, 0x50

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

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x1402de260]
test ecx, ecx
je 0x1401b9f30
dec ecx
call fcn.1401e10b4
cmp rax, 2
jb 0x1401b9e84
mov rdi, rax
cmp qword [rax + 8], 0
je 0x1401b9e84
add rdi, 0x10
jmp 0x1401b9f26
mov ecx, dword [0x1402de260]
test ecx, ecx
je 0x1401b9f43
dec ecx
call fcn.1401e10b4
cmp rax, 1
je 0x1401b9f24
mov rsi, rax
test rax, rax
jne 0x1401b9ef3
movzx eax, byte [0x140430330]
mov ecx, 0x18
mov edx, 8
call fcn.140077a60
test rax, rax
je 0x1401b9f66
mov rsi, rax
lea rax, [0x1402de248]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1402de260]
test ecx, ecx
je 0x1401b9f56
dec ecx
mov rdx, rsi
call fcn.1401e10ac
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 0x1401b9f26
test rcx, rcx
je 0x1401b9f26
lock dec qword [rcx]
jne 0x1401b9f26
call fcn.1401b9f80
jmp 0x1401b9f26
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1402de248]
call fcn.140196c20
mov ecx, eax
jmp 0x1401b9e66
lea rcx, [0x1402de248]
call fcn.140196c20
mov ecx, eax
jmp 0x1401b9e94
lea rcx, [0x1402de248]
call fcn.140196c20
mov ecx, eax
jmp 0x1401b9eeb
mov ecx, 8
mov edx, 0x18
call fcn.140099f80
int3
Function at 0x1401c1660
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.140198af0
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
cmp rcx, rbx
jne 0x1401c169d
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
jmp 0x1401c16ca
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.1401c1590
mov r14, qword [rsp + 0x28]
cmp r14, rbx
jne 0x1401c16e3
lea rcx, [rsp + 0x30]
call fcn.140196450
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 0x1401c1707
mov qword [rsi], r14
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r15
jmp 0x1401c16d7
mov qword [rsi], rbx
test r14, r14
je 0x1401c16d7
mov edx, 2
mov rcx, rdi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.140077af0
Function at 0x1401c31d0
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 [0x140430330]
mov ecx, 0x10
mov edx, 8
call fcn.140077a60
test rax, rax
je 0x1401c3288
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1401c32e0]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call sub.KERNEL32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x1401c327b
mov rbx, qword [rsi]
mov r14, qword [rsi + 8]
mov rcx, rbx
call qword [r14]
cmp qword [r14 + 8], 0
je 0x1401c325a
mov rdx, qword [r14 + 0x10]
mov rcx, rbx
call fcn.140077af0
mov edx, 8
mov rcx, rsi
call fcn.140077af0
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.140099f80
ud2

Function at 0x1401c3580
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.1401e0f80
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, [0x1401bb190]
lea r13, [rsp + 0x60]
lea r12, [0x1402e9438]
mov qword [rsp + 0x48], rdi

Function at 0x1401c3a80
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 0x1401c3ab6
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.1401b6170]
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.14009d3a0
ud2