joyce8/EMBER2024-capa huggingface dataset:
Function at 0x306e32a9c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x306e32b1a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x306e32b11
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x306e32b11
mov rax, qword [rbp - 8]
jmp 0x306e32b2f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x306e32ae4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14099a000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0x14099a00a
jmp 0x14099c00f
jmp fcn.14064c058
Function at 0x14004c1f0
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 0x14004c280
cmp r11, r10
ja 0x14004c2f6
cmp r10, rdx
ja 0x14004c30a
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x14004c282
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x14004c260
jmp 0x14004c2e4
ja 0x14004c28a
mov r11, r10
cmp rax, r8
jne 0x14004c224
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 0x14004c2c0
mov rdi, r8
sub ecx, edx
jns 0x14004c2db
jmp 0x14004c2e6
cmp r8, rsi
je 0x14004c31b
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x14004c2e6
xor al, 1
cmp rdi, rsi
jne 0x14004c2a0
jmp 0x14004c2e6
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.140049f40
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140049480
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_79e9716c980570bfd1f666e3b16ac583f0168962library_alloc_srccollections_btree_navigate.rs_rustc_79e9716c980570bfd1f666e3b16ac583f0168962librarycore_src_sliceiter.rs
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140049820
ud2
Function at 0x14004d760
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x14004d796
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 3
jbe 0x14004d79e
mov esi, dword [rdx]
mov r9d, 4
jmp 0x14004d7a3
xor r10d, r10d
jmp 0x14004d851
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x14004d7c6
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x14004d7dd
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x14004d7fd
add r11, r8
jmp 0x14004d92e
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x14004d8d2
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop word cs:[rax + rax]
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x14004d880
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 3
jbe 0x14004d8e4
mov r9d, dword [rdx + r10]
mov r8d, 4
jmp 0x14004d8ea
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x14004d910
lea rcx, [r8 + r10]
movzx esi, word [rdx + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x14004d92a
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret
Function at 0x14004f110
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov ecx, dword [0x140175048]
test ecx, ecx
je 0x14004f23d
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x14004f147
mov rsi, rax
cmp qword [rax + 8], 0
je 0x14004f147
add rsi, 0x10
jmp 0x14004f230
mov ecx, dword [0x140175048]
test ecx, ecx
je 0x14004f250
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x14004f22e
mov rdi, rax
test rax, rax
jne 0x14004f1dc
movzx eax, byte [0x1401c31d8]
mov rcx, qword [0x1401c3148]
test rcx, rcx
jne 0x14004f199
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x14004f276
mov rcx, rax
mov qword [0x1401c3148], rax
mov r8d, 0x28
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x14004f276
mov rdi, rax
lea rax, [0x140175030]
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x140175048]
test ecx, ecx
je 0x14004f263
dec ecx
mov rdx, rdi
call sub.kernel32.dll_TlsSetValue
lea rsi, [rdi + 0x10]
mov rbx, qword [rdi + 0x18]
cmp qword [rdi + 8], 0
mov r14, qword [rdi + 0x20]
mov qword [rdi + 8], 1
xorps xmm0, xmm0
movups xmmword [rdi + 0x10], xmm0
je 0x14004f230
test rbx, rbx
je 0x14004f230
mov rcx, rbx
call qword [r14]
cmp qword [r14 + 8], 0
je 0x14004f230
cmp qword [r14 + 0x10], 0x11
jb 0x14004f21b
mov rbx, qword [rbx - 8]
mov rcx, qword [0x1401c3148]
xor edx, edx
mov r8, rbx
call sub.kernel32.dll_HeapFree
jmp 0x14004f230
xor esi, esi
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x140175030]
call fcn.140059260
mov ecx, eax
jmp 0x14004f129
lea rcx, [0x140175030]
call fcn.140059260
mov ecx, eax
jmp 0x14004f157
lea rcx, [0x140175030]
call fcn.140059260
mov ecx, eax
jmp 0x14004f1d4
mov ecx, 8
mov edx, 0x28
call fcn.14000b0a0
ud2

Function at 0x1400548b0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.140049010
cmp rax, rcx
je 0x1400548d5
cmp rdx, 4
jae 0x1400548d8
xor eax, eax
xor r8d, r8d
jmp 0x140054970
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14017cd50]
movdqa xmm3, xmmword [0x14017cd60]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x140054900
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140054987
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140054970
ret
Function at 0x1400558f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x14005594b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14005594b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x140055966
cmp eax, 0x42
jne 0x14005594b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x140055a16
cmp byte [r9 + r11], 0x5f
jne 0x140055a16
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x140055a7e
mov rcx, rsi
xor edx, edx
call fcn.1400510d0
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.1400510d0
test al, al
jne 0x140055b11
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400559a2
lea rdx, [0x140185983]
mov r8d, 1
call fcn.140049500
test al, al
jne 0x140055b11
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14005595a
xor r14d, r14d
lea rbx, [0x140185d38]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x1400559d4
cmp byte [rax + rcx], 0x45
je 0x140055b33
sub r14, 1
jb 0x1400559f9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400559f9
mov r8d, 2
mov rdx, rbx
call fcn.140049500
test al, al
jne 0x140055b11
mov rcx, rsi
call fcn.1400528d0
test al, al
jne 0x140055b11
mov rax, qword [rsi]
test rax, rax
jne 0x1400559c0
jmp 0x14005595a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x140055ad8
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x140055a72
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x140055a5c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x140055a4b
add dl, 0xa9
jmp 0x140055a5a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x140055ad8
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x140055ad8
movzx edx, bl
add rax, rdx
jae 0x140055a20
jmp 0x140055ad8
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x140055ad8
cmp rax, rcx
jae 0x140055ad5
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x140055b2b
cmp qword [rsi + 0x20], 0
je 0x140055b24
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.1400558f0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14005595c
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140055b19
lea rax, str.invalid_syntaxrecursion_limit_reached
lea rdx, [0x140185cf8]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
add r8, 0x10
call fcn.140049500
test al, al
je 0x140055b19
mov dil, 2
jmp 0x14005595a
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14005595a
mov dil, 1
xor r8d, r8d
jmp 0x140055ada
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14005595a
Function at 0x140058e80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov ecx, dword [0x1401750b8]
test ecx, ecx
je 0x140058f96
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x140058eb4
mov rdi, rax
cmp qword [rax + 8], 0
je 0x140058eb4
add rdi, 0x10
jmp 0x140058f8c
mov ecx, dword [0x1401750b8]
test ecx, ecx
je 0x140058fa9
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140058f8a
mov rsi, rax
test rax, rax
jne 0x140058f59
mov qword [rsp + 0x28], 0
lea rax, [0x1401750a0]
mov qword [rsp + 0x20], rax
movzx eax, byte [0x1401c31d8]
mov rcx, qword [0x1401c3148]
test rcx, rcx
jne 0x140058f1b
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x140058fcc
mov rcx, rax
mov qword [0x1401c3148], rax
mov r8d, 0x18
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x140058fcc
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 [0x1401750b8]
test ecx, ecx
je 0x140058fbc
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 0x140058f8c
test rcx, rcx
je 0x140058f8c
lock dec qword [rcx]
jne 0x140058f8c
call fcn.140059020
jmp 0x140058f8c
xor edi, edi
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [0x1401750a0]
call fcn.140059260
mov ecx, eax
jmp 0x140058e96
lea rcx, [0x1401750a0]
call fcn.140059260
mov ecx, eax
jmp 0x140058ec4
lea rcx, [0x1401750a0]
call fcn.140059260
mov ecx, eax
jmp 0x140058f51
mov ecx, 8
mov edx, 0x18
call fcn.14000b0a0
ud2
Function at 0x140059260
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x1400592e5
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 0x140059326
cmp dword [rsp + 0x2c], 0
je 0x14005930a
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140059340
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x1401c3158]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1401c3158], rsi
jne 0x1400592c0
mov byte [0x1401c3150], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x14005931c
call sub.kernel32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x14005938c
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x14005930f
mov edi, dword [rsp + 0x28]
jmp 0x14005931c
mov edi, dword [rsi + 0x18]
jmp 0x14005931a
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 rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.1400593f0
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.description___is_deprecated__use_Display
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.140048ae0
ud2
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.description___is_deprecated__use_Display
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.140059440
ud2
Function at 0x140059e60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1401750d8]
test ecx, ecx
je 0x140059f29
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x140059e8d
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x140059f18
mov ecx, dword [0x1401750d8]
test ecx, ecx
je 0x140059f3c
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140059f1e
mov rsi, rax
test rax, rax
jne 0x140059f12
movzx eax, byte [0x1401c31d8]
mov rcx, qword [0x1401c3148]
test rcx, rcx
jne 0x140059edb
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x140059f5f
mov rcx, rax
mov qword [0x1401c3148], rax
mov r8d, 0x10
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x140059f5f
mov rsi, rax
lea rax, [0x1401750c0]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x1401750d8]
test ecx, ecx
je 0x140059f4f
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
jmp 0x140059f20
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1401750c0]
call fcn.140059260
mov ecx, eax
jmp 0x140059e75
lea rcx, [0x1401750c0]
call fcn.140059260
mov ecx, eax
jmp 0x140059e9d
lea rcx, [0x1401750c0]
call fcn.140059260
mov ecx, eax
jmp 0x140059f0a
mov ecx, 8
mov edx, 0x10
call fcn.14000b0a0
ud2

Function at 0x14005a690
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1401884c0]
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 0x14005a701
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14005a737
test eax, eax
js 0x14005a712
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14005a72a
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, 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.1400585e0
mov rcx, rax
call fcn.1400586e0
mov ecx, 7
int 0x29
ud2
Function at 0x14005aba0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x140175098]
test ecx, ecx
je 0x14005ac83
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x14005abd0
cmp qword [rax + 8], 0
je 0x14005abd0
add rax, 0x10
jmp 0x14005ac7d
mov ecx, dword [0x140175098]
test ecx, ecx
je 0x14005ac96
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x14005ac7b
mov rsi, rax
test rax, rax
jne 0x14005ac61
movzx eax, byte [0x1401c31d8]
mov rcx, qword [0x1401c3148]
test rcx, rcx
jne 0x14005ac22
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x14005acb9
mov rcx, rax
mov qword [0x1401c3148], rax
mov r8d, 0x20
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x14005acb9
mov rsi, rax
lea rax, [0x140175080]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140175098]
test ecx, ecx
je 0x14005aca9
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 0x14005ac7d
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140175080]
call fcn.140059260
mov ecx, eax
jmp 0x14005abb5
lea rcx, [0x140175080]
call fcn.140059260
mov ecx, eax
jmp 0x14005abe0
lea rcx, [0x140175080]
call fcn.140059260
mov ecx, eax
jmp 0x14005ac59
mov ecx, 8
mov edx, 0x20
call fcn.14000b0a0
ud2
Function at 0x14005c9b0
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 0x14005ca30
jmp 0x14005ca1f
jae 0x14005cad4
cmp r8, 0x201
jae 0x14005ca30
mov r12d, 0x200
lea r13, [rsp + 0x68]
mov rbp, r8
jmp 0x14005ca77
sub r8, r15
sub rdi, r15
cmp rdi, r8
jae 0x14005ca57
lea rcx, [rsp + 0x30]
mov rdx, r15
call fcn.14005b7f0
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 0x14005ca9b
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x14005cb2d
mov r8d, ebx
cmp rbp, r8
jne 0x14005ca10
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x14005cb4d
add rbp, rbp
cmp rbp, r14
cmovae rbp, r14
mov r8, rbp
cmp r8, 0x201
jb 0x14005ca1f
jmp 0x14005ca30
cmp r12, r8
jb 0x14005cb67
lea rcx, [rsp + 0x48]
mov rdx, r13
call fcn.14005d940
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 0x14005cb18
mov rcx, qword [0x1401c3148]
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 rsi, rsi
jne 0x14005cb05
jmp 0x14005cb18
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140049820
jmp 0x14005cb7c
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r12
mov r8, rax
call fcn.140049480
ud2
Function at 0x14005eb30
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x98
movaps xmmword [rsp + 0x80], xmm6
mov rax, r8
mov rdi, rcx
mov dword [rsp + 0x60], 0
mov word [rsp + 0x64], 0
mov dword [rsp + 0x40], 0
xorps xmm6, xmm6
movups xmmword [rsp + 0x48], xmm6
mov qword [rsp + 0x58], 7
mov byte [rsp + 0x60], 1
lea r8, [rsp + 0x40]
mov rcx, rdx
mov rdx, rax
call fcn.140077d30
mov rsi, rdx
test rax, rax
je 0x14005ebfb
mov eax, esi
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x14005ebef
test rax, rax
je 0x14005ebef
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 0x14005ebde
cmp qword [r14 + 0x10], 0x11
jb 0x14005ebcd
mov rbx, qword [rbx - 8]
mov rcx, qword [0x1401c3148]
xor edx, edx
mov r8, rbx
call sub.kernel32.dll_HeapFree
mov rcx, qword [0x1401c3148]
xor edx, edx
mov r8, rsi
call sub.kernel32.dll_HeapFree
mov qword [rdi], 0
jmp 0x14005ed6d
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, rsi
call sub.kernel32.dll_GetFileInformationByHandle
test eax, eax
je 0x14005ecaa
test byte [rsp + 0x41], 4
je 0x14005ec53
mov qword [rsp + 0x78], 0
lea r8, [rsp + 0x78]
mov rcx, rsi
mov edx, 9
mov r9d, 8
call sub.kernel32.dll_GetFileInformationByHandleEx
test eax, eax
je 0x14005ecaa
mov r12d, dword [rsp + 0x60]
mov r15d, dword [rsp + 0x64]
test rsi, rsi
je 0x14005ecd6
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 0x14005ed59
mov rbx, qword [rsp + 0x40]
jmp 0x14005ecd8
call sub.kernel32.dll_GetLastError
mov qword [rdi], 0
mov rcx, rsi
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x98
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 0x14005ed48
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 0x14005ed48
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r12
mov qword [rdi], 1
jmp 0x14005ed65
mov qword [rdi], 0
mov rcx, rbx
call sub.kernel32.dll_CloseHandle
jmp 0x14005ed65
call sub.kernel32.dll_GetLastError
mov qword [rdi], 0
mov rcx, rsi
call sub.kernel32.dll_CloseHandle
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret