joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401367c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x14025c1c8]
test ecx, ecx
je 0x14013685f
dec ecx
call fcn.14018714c
cmp rax, 2
jb 0x1401367e9
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x14013684e
mov ecx, dword [0x14025c1c8]
test ecx, ecx
je 0x140136872
dec ecx
call fcn.14018714c
cmp rax, 1
je 0x140136854
mov rsi, rax
test rax, rax
jne 0x140136848
movzx eax, byte [0x1403952a0]
mov ecx, 0x10
mov edx, 8
call fcn.14001c090
test rax, rax
je 0x140136895
mov rsi, rax
lea rax, [0x14025c1b0]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x14025c1c8]
test ecx, ecx
je 0x140136885
dec ecx
mov rdx, rsi
call fcn.140187144
mov word [rsi + 8], 1
add rsi, 9
jmp 0x140136856
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14025c1b0]
call fcn.1401360e0
mov ecx, eax
jmp 0x1401367d5
lea rcx, [0x14025c1b0]
call fcn.1401360e0
mov ecx, eax
jmp 0x1401367f5
lea rcx, [0x14025c1b0]
call fcn.1401360e0
mov ecx, eax
jmp 0x140136840
mov ecx, 8
mov edx, 0x10
call fcn.140037c50
ud2

Function at 0x140136f50
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x14032a4e8]
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 0x140136fc1
mov rcx, rdi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140136ff7
test eax, eax
js 0x140136fd2
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140136fea
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 byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x14032a548]
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.1401353f0
mov rcx, rax
call fcn.1401354d0
mov ecx, 7
int 0x29
ud2
Function at 0x1401374b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x14025c188]
test ecx, ecx
je 0x14013756d
dec ecx
call fcn.14018714c
cmp rax, 2
jb 0x1401374e0
cmp qword [rax + 8], 0
je 0x1401374e0
add rax, 0x10
jmp 0x140137567
mov ecx, dword [0x14025c188]
test ecx, ecx
je 0x140137580
dec ecx
call fcn.14018714c
cmp rax, 1
je 0x140137565
mov rsi, rax
test rax, rax
jne 0x14013754b
movzx eax, byte [0x1403952a0]
mov ecx, 0x20
mov edx, 8
call fcn.14001c090
test rax, rax
je 0x1401375a3
mov rsi, rax
lea rax, [0x14025c170]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14025c188]
test ecx, ecx
je 0x140137593
dec ecx
mov rdx, rsi
call fcn.140187144
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov byte [rsi + 0x18], 0
jmp 0x140137567
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14025c170]
call fcn.1401360e0
mov ecx, eax
jmp 0x1401374c5
lea rcx, [0x14025c170]
call fcn.1401360e0
mov ecx, eax
jmp 0x1401374f0
lea rcx, [0x14025c170]
call fcn.1401360e0
mov ecx, eax
jmp 0x140137543
mov ecx, 8
mov edx, 0x20
call fcn.140037c50
ud2
Function at 0x140139820
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], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x20], rax
xor esi, esi
mov r14d, 0xffffffff
xor edi, edi
xor r15d, r15d
cmp r8, 0x201
jae 0x1401398a0
jmp 0x14013988f
jae 0x140139944
cmp r8, 0x201
jae 0x1401398a0
mov r12d, 0x200
lea r13, [rsp + 0x68]
mov rbp, r8
jmp 0x1401398e7
sub r8, r15
sub rdi, r15
cmp rdi, r8
jae 0x1401398c7
lea rcx, [rsp + 0x30]
mov rdx, r15
call fcn.140138030
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rsi, qword [rsp + 0x38]
cmp rsi, r14
mov r15d, 0xffffffff
cmovb r15, rsi
mov qword [rsp + 0x40], r15
mov rdi, rsi
mov r12, r15
mov r13, qword [rsp + 0x20]
mov rbp, r15
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov ecx, ebp
mov rdx, r13
call sub.KERNEL32.dll_GetCurrentDirectoryW
mov ebx, eax
test eax, eax
jne 0x14013990b
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x140139999
mov r8d, ebx
cmp rbp, r8
jne 0x140139880
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x1401399b9
add rbp, rbp
cmp rbp, r14
cmovae rbp, r14
mov r8, rbp
cmp r8, 0x201
jb 0x14013988f
jmp 0x1401398a0
cmp r12, r8
jb 0x1401399d3
lea rcx, [rsp + 0x48]
mov rdx, r13
call fcn.14013a160
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 rsi, rsi
je 0x140139984
mov edx, 2
mov rcx, qword [rsp + 0x20]
call fcn.14001c120
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], rax
mov byte [rcx + 0x18], 2
test rsi, rsi
jne 0x140139975
jmp 0x140139984
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14003cdd0
jmp 0x1401399e8
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r12
mov r8, rax
call fcn.14003ca30
ud2
Function at 0x14013ba80
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rax, r8
mov rdi, rcx
mov dword [rsp + 0x60], 0
mov word [rsp + 0x64], 0
mov dword [rsp + 0x40], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], 7
mov byte [rsp + 0x60], 1
lea r8, [rsp + 0x40]
mov rcx, rdx
mov rdx, rax
call fcn.140154870
mov rsi, rdx
test rax, rax
je 0x14013bb2f
mov eax, esi
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x14013bb23
test rax, rax
je 0x14013bb23
mov rax, rsi
dec rsi
mov rbx, qword [rax - 1]
mov r14, qword [rax + 7]
mov rcx, rbx
call qword [r14]
cmp qword [r14 + 8], 0
je 0x14013bb16
mov rdx, qword [r14 + 0x10]
mov rcx, rbx
call fcn.14001c120
mov edx, 8
mov rcx, rsi
call fcn.14001c120
mov qword [rdi], 0
jmp 0x14013bc8f
lea rcx, [rsp + 0x40]
mov rdx, rsi
call fcn.140154ad0
cmp dword [rsp + 0x40], 2
jne 0x14013bbad
mov rax, qword [rsp + 0x48]
mov ecx, eax
and ecx, 3
lea rdx, [rcx - 2]
cmp rdx, 2
jb 0x14013bb8e
test rcx, rcx
je 0x14013bb8e
lea rbx, [rax - 1]
mov r14, qword [rax - 1]
mov r15, qword [rax + 7]
mov rcx, r14
call qword [r15]
cmp qword [r15 + 8], 0
je 0x14013bb81
mov rdx, qword [r15 + 0x10]
mov rcx, r14
call fcn.14001c120
mov edx, 8
mov rcx, rbx
call fcn.14001c120
mov qword [rdi], 0
mov rcx, rsi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp fcn.14018750c
mov r12, qword [rsp + 0x78]
test rsi, rsi
je 0x14013bbff
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, rsi
mov r8, rax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x14013bc7b
mov rbx, qword [rsp + 0x40]
jmp 0x14013bc01
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 0x14013bc6a
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.14018750c
test r15, r15
je 0x14013bc6a
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r12
mov qword [rdi], 1
jmp 0x14013bc87
mov qword [rdi], 0
mov rcx, rbx
call fcn.14018750c
jmp 0x14013bc87
call sub.KERNEL32.dll_GetLastError
mov qword [rdi], 0
mov rcx, rsi
call fcn.14018750c
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1401578a0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x14032a4e8]
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 0x14015790a
mov rcx, rdi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x140157919
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x140157950
cmp eax, 0x103
je 0x14015795a
test eax, eax
js 0x140157936
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x140157950
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
add cl, byte [rax - 0x77]
or byte [rax - 0x39], r9b
invalid
add dword [rax], eax
add byte [rax], al
add rsp, 0xa8
pop rdi
pop rsi
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x14032a548]
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.1401353f0
mov rcx, rax
call fcn.1401354d0
mov ecx, 7
int 0x29
ud2
Function at 0x140158040
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 0x14015809c
mov r14, qword [rbx]
cmp bp, 0x2e
jne 0x140158191
test r15w, r15w
je 0x14015809c
cmp r15w, 0x2e
jne 0x140158191
test r12w, r12w
jne 0x140158191
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 0x140158177
mov r14, qword [rbx]
lea rbx, [rsp + 0x80]
jmp 0x1401580f3
mov rcx, rdi
mov rdx, rbx
call sub.KERNEL32.dll_FindNextFileW
test eax, eax
je 0x140158177
cmp word [rsp + 0xac], 0x2e
jne 0x14015811c
movzx eax, word [rsp + 0xae]
test ax, ax
je 0x1401580e0
cmp ax, 0x2e
jne 0x14015811c
cmp word [rsp + 0xb0], 0
je 0x1401580e0
lock inc qword [r14]
jle 0x140158279
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 0x1401581bc
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x12
jne 0x140158208
mov qword [rsi], 0
jmp 0x140158267
lock inc qword [r14]
jle 0x140158279
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 0x14015821a
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]
and al, 0x80
add byte [rax], al
add byte [rcx - 0x48], al
invalid
add al, byte [rax]
add al, ch
js 0x140158259
add al, byte [rax]
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 0x140159190
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.140137a70
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
test rax, rax
je 0x140159233
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
push rsp
and al, 0x20

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

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov ecx, dword [0x14025c1e8]
test ecx, ecx
je 0x14015a444
dec ecx
call fcn.14018714c
cmp rax, 2
jb 0x14015a384
mov rdi, rax
cmp qword [rax + 8], 0
je 0x14015a384
add rdi, 0x10
jmp 0x14015a43a
mov ecx, dword [0x14025c1e8]
test ecx, ecx
je 0x14015a457
dec ecx
call fcn.14018714c
cmp rax, 1
je 0x14015a438
mov rsi, rax
test rax, rax
jne 0x14015a407
mov qword [rsp + 0x28], 0
lea rax, [0x14025c1d0]
mov qword [rsp + 0x20], rax
movzx eax, byte [0x1403952a0]
mov ecx, 0x18
mov edx, 8
call fcn.14001c090
test rax, rax
je 0x14015a47a
mov rsi, rax
mov rax, qword [rsp + 0x30]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
mov ecx, dword [0x14025c1e8]
test ecx, ecx
je 0x14015a46a
dec ecx
mov rdx, rsi
call fcn.140187144
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 0x14015a43a
test rcx, rcx
je 0x14015a43a
lock dec qword [rcx]
jne 0x14015a43a
call fcn.14015a4b0
jmp 0x14015a43a
xor edi, edi
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [0x14025c1d0]
call fcn.1401360e0
mov ecx, eax
jmp 0x14015a366
lea rcx, [0x14025c1d0]
call fcn.1401360e0
mov ecx, eax
jmp 0x14015a394
lea rcx, [0x14025c1d0]
call fcn.1401360e0
mov ecx, eax
jmp 0x14015a3ff
mov ecx, 8
mov edx, 0x18
call fcn.140037c50
ud2
Function at 0x140161b20
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.140137a70
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
test rcx, rcx
je 0x140161b95
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.140161a50
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x140161ba3
movdqu xmm6, xmmword [rsp + 0x30]
mov rcx, rdi
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x140161bc3
mov qword [rsi], rdi
movdqu xmmword [rsi + 8], xmm6
jmp 0x140161bb4
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x28]
call fcn.140137c20
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 0x140161bb4
mov edx, 2
mov rcx, rdi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
jmp fcn.14001c120
Function at 0x140163830
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rdi, r8
mov rbx, rdx
mov r14, rcx
movzx eax, byte [0x1403952a0]
mov ecx, 0x10
mov edx, 8
call fcn.14001c090
test rax, rax
je 0x1401638e7
mov rsi, rax
mov qword [rax], rbx
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x140163bb0]
xor edi, edi
xor ecx, ecx
mov rdx, r14
mov r9, rax
call sub.KERNEL32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x1401638da
mov rdi, qword [rsi]
mov rbx, qword [rsi + 8]
mov rcx, rdi
call qword [rbx]
cmp qword [rbx + 8], 0
je 0x1401638b9
mov rdx, qword [rbx + 0x10]
mov rcx, rdi
call fcn.14001c120
mov edx, 8
mov rcx, rsi
call fcn.14001c120
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.140037c50
ud2

Function at 0x140163e40
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, 0x1078
call fcn.140186f70
sub rsp, rax
movaps xmmword [rsp + 0x1060], xmm6
mov rsi, rdx
mov rdi, rcx
lea rbx, [rsp + 0x60]
mov r8d, 0x1000
mov rcx, rbx
xor edx, edx
call sub.msvcrt.dll_memset
mov dword [rsp + 0x34], 0
xorps xmm6, xmm6
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
lea r13, [rsp + 0x34]
mov qword [rsp + 0x58], r13
lea rbp, [0x14015b860]
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
mov r8d, 0x1000
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
je 0x140163fd5
lea rbx, [rsp + 0x40]
lea r14, [rsp + 0x60]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x34], 0
je 0x140163ed3
cmp dword [rsp + 0x38], 0
jne 0x140163fda
mov r15d, dword [rsp + 0x3c]
test r15, r15
je 0x140163fda
cmp r15d, 0x1000
ja 0x14016401a
xor r12d, r12d
nop word cs:[rax + rax]
cmp r12, r15
ja 0x140164006
lea rdx, [rsp + r12]
add rdx, 0x60
mov r8d, r15d
sub r8d, r12d
mov dword [rsp + 0x34], 0
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x20], rbp
mov rcx, rsi
mov r9, rbx
call sub.KERNEL32.dll_WriteFileEx
test eax, eax
je 0x140163fd5
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x34], 0
je 0x140163f70
cmp dword [rsp + 0x38], 0
jne 0x140163fda
mov eax, dword [rsp + 0x3c]
add r12, rax
cmp r12, r15
jne 0x140163f20
mov dword [rsp + 0x34], 0
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x20], rbp
mov rcx, rdi
mov rdx, r14
mov r8d, 0x1000
mov r9, rbx
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
jne 0x140163ed3
call sub.KERNEL32.dll_GetLastError
mov rcx, rdi
call fcn.14018750c
mov rcx, rsi
call fcn.14018750c
movaps xmm6, xmmword [rsp + 0x1060]
add rsp, 0x1078
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r12
mov rdx, r15
call fcn.14003d7d0
jmp 0x14016402e
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, r15
call fcn.14003ca30
ud2
Function at 0x140164060
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 0x140164096
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.140155e70]
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.14003c090
ud2
Function at 0x14016b020
Capabilities:
Set file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov ebx, r8d
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.140137a70
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
test rax, rax
je 0x14016b0c6
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov r8b, 1
call fcn.140154be0
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
test rdi, rdi
je 0x14016b0c6
mov rcx, rdi
mov edx, ebx
call sub.KERNEL32.dll_SetFileAttributesW
test eax, eax
je 0x14016b0a2
test rsi, rsi
je 0x14016b09e
mov edx, 2
mov rcx, rdi
call fcn.14001c120
xor esi, esi
jmp 0x14016b0c6
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x14016b0c3
mov edx, 2
mov rcx, rdi
call fcn.14001c120
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x14016b390
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 [0x14025c208]
test ecx, ecx
je 0x14016b489
dec ecx
call fcn.14018714c
cmp rax, 2
jb 0x14016b3c0
cmp qword [rax + 8], 0
je 0x14016b3c0
add rax, 0x10
jmp 0x14016b483
mov ecx, dword [0x14025c208]
test ecx, ecx
je 0x14016b49c
dec ecx
call fcn.14018714c
cmp rax, 1
je 0x14016b463
mov rsi, rax
test rax, rax
jne 0x14016b433
movzx eax, byte [0x1403952a0]
mov ecx, 0x20
mov edx, 8
call fcn.14001c090
test rax, rax
je 0x14016b4c2
mov rsi, rax
lea rax, [0x14025c1f0]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14025c208]
test ecx, ecx
je 0x14016b4af
dec ecx
mov rdx, rsi
call fcn.140187144
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 0x14016b467
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x14016b46f
xor eax, eax
jmp 0x14016b483
call fcn.140164060
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, [0x14025c1f0]
call fcn.1401360e0
mov ecx, eax
jmp 0x14016b3a5
lea rcx, [0x14025c1f0]
call fcn.1401360e0
mov ecx, eax
jmp 0x14016b3d0
lea rcx, [0x14025c1f0]
call fcn.1401360e0
mov ecx, eax
jmp 0x14016b42b
mov ecx, 8
mov edx, 0x20
call fcn.140037c50
ud2
Function at 0x14016d8ab
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 0x14016d944
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 0x14016d929
mov r15, qword [rdi + r13]
mov rcx, r15
call sub.msvcrt.dll_wcslen
mov rcx, r14
mov rdx, r15
mov r8, rax
call fcn.14016d125
mov rcx, rbx
mov rdx, r14
call fcn.1400078fc
add r13, 8
jmp 0x14016d8f9
mov rcx, rdi
call sub.KERNEL32.dll_LocalFree
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
mov rax, qword [rsp + 0x40]
mov qword [rsi + 0x10], rax
jmp 0x14016d952
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

Function at 0x1401714d8
Capabilities:
Get memory capacity

Disassembly:
push rsi
push rdi
sub rsp, 0xe8
movaps xmmword [rsp + 0xd0], xmm6
mov rsi, rcx
xorps xmm6, xmm6
lea rdi, [rsp + 0x90]
movaps xmmword [rdi], xmm6
movaps xmmword [rdi + 0x30], xmm6
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
mov dword [rdi], 0x40
mov rcx, rdi
call sub.KERNEL32.dll_GlobalMemoryStatusEx
mov rax, qword [rdi + 8]
mov qword [rsi + 0xa0], rax
mov rax, qword [rdi + 0x10]
mov qword [rsi + 0xa8], rax
lea rcx, [rsp + 0x20]
movaps xmmword [rcx + 0x50], xmm6
movaps xmmword [rcx + 0x40], xmm6
movaps xmmword [rcx + 0x30], xmm6
movaps xmmword [rcx + 0x20], xmm6
movaps xmmword [rcx + 0x10], xmm6
movaps xmmword [rcx], xmm6
and qword [rcx + 0x60], 0
mov edx, 0x68
call sub.PSAPI.DLL_GetPerformanceInfo
cmp eax, 1
jne 0x1401715ab
mov rdx, qword [rsp + 0x30]
mov r9, qword [rsp + 0x40]
xor r10d, r10d
sub rdx, r9
cmovb rdx, r10
mov rcx, qword [rsp + 0x70]
mov rax, rcx
mul rdx
mov r8, rax
mov r11, 0xffffffffffffffff
cmovo r8, r11
mov rdx, qword [rsp + 0x28]
sub rdx, r9
cmovb rdx, r10
mov rax, rcx
mul rdx
cmovo rax, r11
mov qword [rsi + 0xb0], r8
mov qword [rsi + 0xb8], rax
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rdi
pop rsi
ret