joyce8/EMBER2024-capa huggingface dataset:
Function at 0x141b3f058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.141b3f1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141b3f089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141b3f06f
add dl, dl
jne 0x141b3f096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141b3f0f6
xor eax, eax
add dl, dl
jne 0x141b3f0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141b3f1ad
add dl, dl
jne 0x141b3f0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b3f0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b3f0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b3f0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141b3f0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141b3f07e
mov eax, 1
add dl, dl
jne 0x141b3f106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b3f113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141b3f0fb
sub eax, ebx
mov ebx, 1
jne 0x141b3f14c
mov ecx, 1
add dl, dl
jne 0x141b3f12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141b3f13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141b3f123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141b3f07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141b3f168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141b3f175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141b3f15d
cmp eax, 0x7d00
jae 0x141b3f19b
cmp eax, 0x500
jb 0x141b3f196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141b3f07e
cmp eax, 0x7f
ja 0x141b3f19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141b3f07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141b3f1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x141b3f07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140036080
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x140036110
cmp r11, r10
ja 0x140036186
cmp r10, rdx
ja 0x14003619a
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x140036112
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x1400360f0
jmp 0x140036174
ja 0x14003611a
mov r11, r10
cmp rax, r8
jne 0x1400360b4
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x140036150
mov rdi, r8
sub ecx, edx
jns 0x14003616b
jmp 0x140036176
cmp r8, rsi
je 0x1400361ab
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140036176
xor al, 1
cmp rdi, rsi
jne 0x140036130
jmp 0x140036176
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140031b20
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140031100
ud2
lea rcx, [0x140157f8f]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.1400314a0
ud2

Function at 0x140038316
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1400e8870]
test ecx, ecx
je 0x14003832f
dec ecx
add rsp, 0x28
jmp sub.KERNEL32.dll_TlsGetValue
lea rcx, [0x1400e8858]
call fcn.14006cd10
mov ecx, eax
jmp 0x140038326

Function at 0x14003833f
Capabilities:
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rdx
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x140038360
dec ecx
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp sub.KERNEL32.dll_TlsSetValue
mov rcx, rax
call fcn.14006cd10
mov ecx, eax
jmp 0x140038353

Function at 0x140055523
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x14005553c
dec ecx
add rsp, 0x28
jmp sub.KERNEL32.dll_TlsGetValue
mov rcx, rax
call fcn.14006cd10
mov ecx, eax
jmp 0x140055533
Function at 0x14006cd10
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x14006cd95
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 0x14006cdd6
cmp dword [rsp + 0x2c], 0
je 0x14006cdba
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x14006cdfe
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x1401673b0]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1401673b0], rsi
jne 0x14006cd70
mov byte [0x1401673a8], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x14006cdcc
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x14006ce4a
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x14006cdbf
mov edi, dword [rsp + 0x28]
jmp 0x14006cdcc
mov edi, dword [rsi + 0x18]
jmp 0x14006cdca
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, [0x140156cb8]
lea r9, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x28]
lea r8, [rsp + 0x30]
call fcn.14006d430
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.combase.dll
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.140030760
ud2
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.combase.dll
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.14006d470
ud2
Function at 0x14006d300
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x1400ed4b8]
test ecx, ecx
je 0x14006d3e0
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14006d334
mov rdi, rax
cmp qword [rax + 8], 0
je 0x14006d334
add rdi, 0x10
jmp 0x14006d3d6
mov ecx, dword [0x1400ed4b8]
test ecx, ecx
je 0x14006d3f3
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14006d3d4
mov rsi, rax
test rax, rax
jne 0x14006d3a3
movzx eax, byte [0x140167410]
mov ecx, 0x18
mov edx, 8
call fcn.140006e70
test rax, rax
je 0x14006d416
mov rsi, rax
lea rax, [0x1400ed4a0]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400ed4b8]
test ecx, ecx
je 0x14006d406
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 0x14006d3d6
test rcx, rcx
je 0x14006d3d6
lock dec qword [rcx]
jne 0x14006d3d6
call fcn.14006ccb0
jmp 0x14006d3d6
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1400ed4a0]
call fcn.14006cd10
mov ecx, eax
jmp 0x14006d316
lea rcx, [0x1400ed4a0]
call fcn.14006cd10
mov ecx, eax
jmp 0x14006d344
lea rcx, [0x1400ed4a0]
call fcn.14006cd10
mov ecx, eax
jmp 0x14006d39b
mov ecx, 8
mov edx, 0x18
call fcn.140007450
ud2

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

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1400ed4d8]
test ecx, ecx
je 0x14006da9f
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14006da29
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x14006da8e
mov ecx, dword [0x1400ed4d8]
test ecx, ecx
je 0x14006dab2
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14006da94
mov rsi, rax
test rax, rax
jne 0x14006da88
movzx eax, byte [0x140167410]
mov ecx, 0x10
mov edx, 8
call fcn.140006e70
test rax, rax
je 0x14006dad5
mov rsi, rax
lea rax, [0x1400ed4c0]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x1400ed4d8]
test ecx, ecx
je 0x14006dac5
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
jmp 0x14006da96
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1400ed4c0]
call fcn.14006cd10
mov ecx, eax
jmp 0x14006da15
lea rcx, [0x1400ed4c0]
call fcn.14006cd10
mov ecx, eax
jmp 0x14006da35
lea rcx, [0x1400ed4c0]
call fcn.14006cd10
mov ecx, eax
jmp 0x14006da80
mov ecx, 8
mov edx, 0x10
call fcn.140007450
ud2
Function at 0x14006e040
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x140156298]
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 0x14006e0b1
mov rcx, rdi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14006e0e7
test eax, eax
js 0x14006e0c2
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14006e0da
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, [0x1401562f8]
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.14006d120
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.14006c5b0
mov ecx, 7
int 0x29
ud2

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

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1400ed498]
test ecx, ecx
je 0x14006e6ed
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14006e660
cmp qword [rax + 8], 0
je 0x14006e660
add rax, 0x10
jmp 0x14006e6e7
mov ecx, dword [0x1400ed498]
test ecx, ecx
je 0x14006e700
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14006e6e5
mov rsi, rax
test rax, rax
jne 0x14006e6cb
movzx eax, byte [0x140167410]
mov ecx, 0x20
mov edx, 8
call fcn.140006e70
test rax, rax
je 0x14006e723
mov rsi, rax
lea rax, [0x1400ed480]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400ed498]
test ecx, ecx
je 0x14006e713
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 0x14006e6e7
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1400ed480]
call fcn.14006cd10
mov ecx, eax
jmp 0x14006e645
lea rcx, [0x1400ed480]
call fcn.14006cd10
mov ecx, eax
jmp 0x14006e670
lea rcx, [0x1400ed480]
call fcn.14006cd10
mov ecx, eax
jmp 0x14006e6c3
mov ecx, 8
mov edx, 0x20
call fcn.140007450
ud2
Function at 0x140070320
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 edi, edi
mov ebx, 0xffffffff
xor esi, esi
xor r14d, r14d
cmp r8, 0x201
jae 0x140070390
jmp 0x14007037f
jae 0x140070435
cmp r8, 0x201
jae 0x140070390
mov r15d, 0x200
lea r12, [rsp + 0x68]
mov r13, r8
jmp 0x1400703d7
sub r8, r14
sub rsi, r14
cmp rsi, r8
jae 0x1400703b7
lea rcx, [rsp + 0x30]
mov rdx, r14
call fcn.14006f110
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rdi, qword [rsp + 0x38]
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 0x1400703fc
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x14007048e
mov r8d, ebp
cmp r13, r8
jne 0x140070370
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x1400704ae
add r13, r13
cmp r13, rbx
cmovae r13, rbx
mov r8, r13
cmp r8, 0x201
jb 0x14007037f
jmp 0x140070390
cmp r15, r8
jb 0x1400704c8
lea rcx, [rsp + 0x48]
mov rdx, r12
call fcn.140070d20
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 0x140070479
mov rcx, qword [0x140167378]
xor edx, edx
mov r8, qword [rsp + 0x20]
call sub.KERNEL32.dll_HeapFree
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 rdi, rdi
jne 0x140070466
jmp 0x140070479
lea rcx, str.internal_error:_entered_unreachable_codeassertion_failed:_injected___worker_thread.is_null__assertion_failed:_mid___self.len__
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.1400314a0
jmp 0x1400704dd
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.140031100
ud2
Function at 0x140073f90
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.14008cb50
mov rdi, rdx
test rax, rax
je 0x140074024
mov qword [rsp + 0x80], 1
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x88], rdi
call fcn.14006c510
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.14008cd70
cmp dword [rsp + 0x38], 2
jne 0x140074053
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x80], 2
jmp 0x14007409f
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 0x1400740cb
lea rcx, [rsp + 0x88]
call fcn.14006c510
mov qword [rsi], 0
mov rcx, rdi
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp sub.KERNEL32.dll_CloseHandle
mov r12, qword [rsp + 0xb8]
test rdi, rdi
je 0x140074129
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 0x1400741a5
mov rbx, qword [rsp + 0x80]
jmp 0x14007412b
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 0x140074194
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 sub.KERNEL32.dll_CloseHandle
test r15, r15
je 0x140074194
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x1400741d1
mov qword [rsi], 0
mov rcx, rbx
call sub.KERNEL32.dll_CloseHandle
jmp 0x1400741d1
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.14006c510
mov qword [rsi], 0
mov rcx, rdi
call sub.KERNEL32.dll_CloseHandle
jmp 0x140074013
Function at 0x14008de00
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.14006ec10
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14008df6b
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 0x14008dec0
jmp 0x14008de9f
jae 0x14008df81
cmp r8, 0x201
jae 0x14008dec0
mov edi, 0x200
lea rbp, [rsp + 0xa8]
mov r12, r8
jmp 0x14008df07
sub r8, r13
sub r14, r13
cmp r14, r8
jae 0x14008dee7
lea rcx, [rsp + 0x48]
mov rdx, r13
call fcn.14006f110
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 0x14008df32
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x14008dfb6
mov r8d, r15d
cmp r12, r8
jne 0x14008de90
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x14008e04a
add r12, r12
cmp r12, rsi
cmovae r12, rsi
mov r8, r12
cmp r8, 0x201
jb 0x14008de9f
jmp 0x14008dec0
lea rcx, [rsp + 0xb0]
call fcn.14006c510
mov byte [rsi + 0x18], 2
jmp 0x14008e01a
cmp rdi, r8
jb 0x14008e064
lea rcx, [rsp + 0x88]
mov rdx, rbp
call fcn.140070d20
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rsp + 0x60], xmm0
jmp 0x14008dfcd
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 0x14008dfea
mov rcx, qword [0x140167378]
xor edx, edx
mov r8, qword [rsp + 0x28]
call sub.KERNEL32.dll_HeapFree
cmp byte [rsp + 0x78], 2
jne 0x14008e02f
mov byte [rsi + 0x18], 2
lea rcx, [rsp + 0x60]
call fcn.14006c510
cmp qword [rsp + 0x40], 0
je 0x14008e01a
mov rcx, qword [0x140167378]
xor edx, edx
mov r8, qword [rsp + 0x30]
call sub.KERNEL32.dll_HeapFree
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 0x14008e007
jmp 0x14008e01a
lea rcx, str.internal_error:_entered_unreachable_codeassertion_failed:_injected___worker_thread.is_null__assertion_failed:_mid___self.len__
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.1400314a0
jmp 0x14008e079
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rdi
mov r8, rax
call fcn.140031100
ud2
Function at 0x140092f40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x1400ed4f8]
test ecx, ecx
je 0x140093020
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140092f74
mov rdi, rax
cmp qword [rax + 8], 0
je 0x140092f74
add rdi, 0x10
jmp 0x140093016
mov ecx, dword [0x1400ed4f8]
test ecx, ecx
je 0x140093033
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140093014
mov rsi, rax
test rax, rax
jne 0x140092fe3
movzx eax, byte [0x140167410]
mov ecx, 0x18
mov edx, 8
call fcn.140006e70
test rax, rax
je 0x140093056
mov rsi, rax
lea rax, [0x1400ed4e0]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400ed4f8]
test ecx, ecx
je 0x140093046
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 0x140093016
test rcx, rcx
je 0x140093016
lock dec qword [rcx]
jne 0x140093016
call fcn.140093070
jmp 0x140093016
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1400ed4e0]
call fcn.14006cd10
mov ecx, eax
jmp 0x140092f56
lea rcx, [0x1400ed4e0]
call fcn.14006cd10
mov ecx, eax
jmp 0x140092f84
lea rcx, [0x1400ed4e0]
call fcn.14006cd10
mov ecx, eax
jmp 0x140092fdb
mov ecx, 8
mov edx, 0x18
call fcn.140007450
ud2

Function at 0x14009cd90
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 [0x140167410]
mov ecx, 0x10
mov edx, 8
call fcn.140006e70
test rax, rax
je 0x14009ce4c
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x14009ceb0]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call sub.KERNEL32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x14009ce3f
mov rbx, qword [rsi]
mov r14, qword [rsi + 8]
mov rcx, rbx
call qword [r14]
cmp qword [r14 + 8], 0
je 0x14009ce1a
mov r8, qword [r14 + 0x10]
mov rcx, rbx
call fcn.140006f00
mov rcx, qword [0x140167378]
xor edx, edx
mov r8, rsi
call sub.KERNEL32.dll_HeapFree
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.140007450
ud2

Function at 0x14009d160
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.1400dad60
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, [0x140094eb0]
lea r13, [rsp + 0x60]
lea r12, [0x1400fcb58]
mov qword [rsp + 0x48], rdi