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

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rax, qword [rcx]
mov qword [rsp + 0x20], rax
mov rsi, qword [rax + 0x18]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x49236d
dec ecx
jmp 0x492377
mov rcx, rsi
call fcn.004be160
mov ecx, eax
mov edx, 1
call sub.kernel32.dll_TlsSetValue
mov rdi, qword [rsp + 0x20]
cmp qword [rdi], 0
je 0x4923a4
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x4923a4
lock dec qword [rax]
jne 0x4923a4
lea rcx, [rdi + 0x10]
call fcn.004cb220
mov edx, 0x20
mov r8d, 8
mov rcx, rdi
call fcn.00422030
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x4923c2
dec ecx
jmp 0x4923cc
mov rcx, rsi
call fcn.004be160
mov ecx, eax
xor esi, esi
xor edx, edx
call sub.kernel32.dll_TlsSetValue
mov rax, rsi
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x4924c0
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, qword [rcx]
mov rsi, qword [rdi + 0x10]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x4924d8
dec ecx
jmp 0x4924e2
mov rcx, rsi
call fcn.004be160
mov ecx, eax
mov edx, 1
call sub.kernel32.dll_TlsSetValue
mov edx, 0x18
mov r8d, 8
mov rcx, rdi
call fcn.00422030
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x49250a
dec ecx
jmp 0x492514
mov rcx, rsi
call fcn.004be160
mov ecx, eax
xor esi, esi
xor edx, edx
call sub.kernel32.dll_TlsSetValue
mov rax, rsi
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x492580
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rax, qword [rcx]
mov qword [rsp + 0x20], rax
mov rsi, qword [rax + 0x10]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x49259d
dec ecx
jmp 0x4925a7
mov rcx, rsi
call fcn.004be160
mov ecx, eax
mov edx, 1
call sub.kernel32.dll_TlsSetValue
mov rdi, qword [rsp + 0x20]
cmp qword [rdi], 0
je 0x4925d4
mov rax, qword [rdi + 8]
test rax, rax
je 0x4925d4
lock dec qword [rax]
jne 0x4925d4
lea rcx, [rdi + 8]
call fcn.004cb280
mov edx, 0x18
mov r8d, 8
mov rcx, rdi
call fcn.00422030
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x4925f2
dec ecx
jmp 0x4925fc
mov rcx, rsi
call fcn.004be160
mov ecx, eax
xor esi, esi
xor edx, edx
call sub.kernel32.dll_TlsSetValue
mov rax, rsi
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x492700
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rax, qword [rcx]
mov qword [rsp + 0x20], rax
mov rsi, qword [rax + 0x10]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x49271d
dec ecx
jmp 0x492727
mov rcx, rsi
call fcn.004be160
mov ecx, eax
mov edx, 1
call sub.kernel32.dll_TlsSetValue
mov rdi, qword [rsp + 0x20]
cmp qword [rdi], 0
je 0x492754
mov rax, qword [rdi + 8]
test rax, rax
je 0x492754
lock dec qword [rax]
jne 0x492754
lea rcx, [rdi + 8]
call fcn.004cb0f0
mov edx, 0x18
mov r8d, 8
mov rcx, rdi
call fcn.00422030
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x492772
dec ecx
jmp 0x49277c
mov rcx, rsi
call fcn.004be160
mov ecx, eax
xor esi, esi
xor edx, edx
call sub.kernel32.dll_TlsSetValue
mov rax, rsi
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x4927d0
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, qword [rcx]
mov rsi, qword [rdi]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x4927e7
dec ecx
jmp 0x4927f1
mov rcx, rsi
call fcn.004be160
mov ecx, eax
mov edx, 1
call sub.kernel32.dll_TlsSetValue
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call fcn.00422030
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x492819
dec ecx
jmp 0x492823
mov rcx, rsi
call fcn.004be160
mov ecx, eax
xor esi, esi
xor edx, edx
call sub.kernel32.dll_TlsSetValue
mov rax, rsi
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x49a010
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rdi, r8
mov rsi, rcx
mov rbx, qword [rdx]
test rbx, rbx
je 0x49a071
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x38]
mov rcx, rax
mov rdx, rbx
mov r8, rax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x49a0ed
mov rbx, qword [rsp + 0x38]
jmp 0x49a073
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 0x49a0dc
mov r14, rax
mov qword [rsp + 0x20], rdi
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.00543234
test r15, r15
je 0x49a0dc
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], rdi
mov qword [rsi], 1
jmp 0x49a0f9
mov qword [rsi], 0
mov rcx, rbx
call fcn.00543234
jmp 0x49a0f9
call sub.kernel32.dll_GetLastError
mov qword [rsi], 0
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x49c900
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
mov rdx, rcx
lea rcx, [0x00545230]
jmp 0x4e1290
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rdx
mov rbx, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x4e12c3
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x4e12d8
mov rcx, rax
cmp qword [rax], 0
je 0x4e12d8
add rcx, 8
jmp 0x4e13b9
mov rcx, rbx
call fcn.004be160
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x4e12b1
mov ecx, dword [rbx + 0x18]
test ecx, ecx
je 0x4e139e
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x4e13b7
mov rdi, rax
test rax, rax
jne 0x4e1337
mov ecx, 0x20
mov edx, 8
call fcn.00422020
test rax, rax
je 0x4e13d3
mov rdi, rax
mov qword [rax], 0
mov qword [rax + 0x18], rbx
mov ecx, dword [rbx + 0x18]
test ecx, ecx
je 0x4e13c4
dec ecx
mov rdx, rdi
call sub.kernel32.dll_TlsSetValue
test rsi, rsi
je 0x4e1354
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov rdx, qword [rsi + 0x10]
mov qword [rsi], 0
cmp rcx, 1
je 0x4e1389
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 0x4e1384
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x4e1389
call fcn.004be0a0
mov qword [rdi], 1
lea rcx, [rdi + 8]
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rdx
jmp 0x4e13b9
mov rcx, rbx
call fcn.004be160
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x4e12f4
xor ecx, ecx
mov rax, rcx
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, rbx
call fcn.004be160
mov ecx, eax
jmp 0x4e132f
mov ecx, 0x20
mov edx, 8
call fcn.0050fe70
ud2
Function at 0x49d190
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x200
mov rsi, rcx
mov rbx, qword [rdx]
mov rdi, qword [rdx + 8]
movzx ebp, word [rdx + 0x10]
mov word [rsp + 0x2e], bp
mov rax, qword [0x00684258]
cmp rax, 3
jne 0x49d28e
cmp rdi, 0x17f
ja 0x49d2a0
lea r14, [rsp + 0x80]
mov rcx, r14
mov rdx, rbx
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov byte [rsp + rdi + 0x80], 0
inc rdi
lea rcx, [rsp + 0x38]
mov rdx, r14
mov r8, rdi
call fcn.00531570
cmp qword [rsp + 0x38], 0
je 0x49d21e
lea rax, [0x00642c00]
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x49d2b3
mov rcx, qword [rsp + 0x40]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x30], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x30]
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x49d276
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
jmp 0x49d2b3
mov rax, qword [rsp + 0x30]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bp
xor eax, eax
mov qword [rsi], rax
jmp 0x49d2b3
call fcn.004e10d0
cmp rdi, 0x17f
jbe 0x49d1ce
lea r9, [rsp + 0x2e]
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
call fcn.004dbdd0
mov rax, rsi
add rsp, 0x200
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x49e1a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
sub rsp, 0xf0
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x2c], pe_nt_image_headers64
mov rcx, qword [rdx]
lea rdx, [rsp + 0x50]
lea r8, [rsp + 0x2c]
call sub.ws2_32.dll_getsockname
cmp eax, 0xffffffff
je 0x49e293
mov eax, dword [rsp + 0x2c]
movzx ecx, word [rsp + 0x50]
cmp ecx, 2
je 0x49e2a2
cmp ecx, 0x17
jne 0x49e2cb
cmp eax, 0x1c
jb 0x49e2e7
movups xmm0, xmmword [rsp + 0x58]
movaps xmmword [rsp + 0x30], xmm0
movzx r8d, word [rsp + 0x52]
rol r8w, 8
mov r9d, dword [rsp + 0x54]
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0xd0]
lea rdx, [rsp + 0x30]
call fcn.00531a40
movups xmm0, xmmword [rsp + 0xd0]
movups xmm1, xmmword [rsp + 0xdc]
movups xmmword [rsp + 0x32], xmm0
movups xmmword [rsp + 0x3e], xmm1
mov word [rsi], 1
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x3e]
movups xmmword [rsi + 2], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x49e2db
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
jmp 0x49e2d2
cmp eax, 0x10
jb 0x49e301
mov ecx, dword [rsp + 0x54]
movzx edx, word [rsp + 0x52]
rol dx, 8
call fcn.005319f0
mov word [rsi], 0
mov dword [rsi + 2], eax
shr rax, 0x20
mov word [rsi + 6], ax
jmp 0x49e2db
lea rax, [0x00642fa8]
mov qword [rsi + 8], rax
mov word [rsi], 2
mov rax, rsi
add rsp, 0xf0
pop rsi
ret
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___library_std_src_sys_common_net.rs
lea r8, [0x00643028]
mov edx, 0x43
call fcn.00532500
ud2
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___
lea r8, [0x00643088]
mov edx, 0x42
call fcn.00532500
ud2

Function at 0x4a10f0
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rcx, [rsp + 0x20]
call fcn.004bebc0
mov rsi, qword [rsp + 0x20]
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x4a119f
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov r8b, 1
call fcn.004b9b70
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
test rdi, rdi
je 0x4a119f
mov rcx, rdi
xor edx, edx
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
je 0x4a1174
test rsi, rsi
je 0x4a1170
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.00422030
xor esi, esi
jmp 0x4a119f
call sub.kernel32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x4a119c
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.00422030
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
Function at 0x4b91a0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rbx, r9
mov r14, r8
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.004bebc0
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x4b9249
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x20]
mov rdx, r14
mov r8, rbx
call fcn.004bebc0
mov rbx, qword [rsp + 0x20]
mov r15, qword [rsp + 0x28]
test r15, r15
je 0x4b924e
mov rcx, rdi
mov rdx, r15
call sub.kernel32.dll_SetEnvironmentVariableW
test eax, eax
je 0x4b9279
xor r14d, r14d
test rbx, rbx
je 0x4b922e
add rbx, rbx
mov r8d, 2
mov rcx, r15
mov rdx, rbx
call fcn.00422030
test rsi, rsi
je 0x4b926a
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.00422030
jmp 0x4b926a
mov rbx, rsi
jmp 0x4b9267
test rsi, rsi
je 0x4b9267
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.00422030
mov r14, rbx
mov rax, r14
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call sub.kernel32.dll_GetLastError
mov r14d, eax
shl r14, 0x20
or r14, 2
test rbx, rbx
jne 0x4b921a
jmp 0x4b922e

Function at 0x4bdbd0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xd8
mov rdi, rdx
mov rsi, rcx
mov rax, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x110]
mov qword [rsp + 0x58], 0x103
mov qword [rsp + 0x60], 0
mov edx, 0xffffffff
cmp r9, rdx
cmovb rdx, r9
mov qword [rsp + 0x78], rcx
lea r9, [rsp + 0x80]
mov qword [rsp + 0x80], rax
test rcx, rcx
cmove r9, rcx
mov qword [rsp + 0x38], r9
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x4bdc72
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x58]
cmp eax, 0xc0000011
jne 0x4bdc81
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x4bdcb8
cmp eax, 0x103
je 0x4bdcc2
test eax, eax
js 0x4bdc9e
mov rax, qword [rsp + 0x60]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x4bdcb8
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xd8
pop rdi
pop rsi
ret
mov byte [rsp + 0x54], 0
mov dword [rsp + 0x50], 0
lea rax, str.I_O_error:_operation_failed_to_complete_synchronously
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], 1
mov qword [rsp + 0x78], 0
lea rax, [0x00645460]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x68], rax
lea rax, [0x00517a70]
mov qword [rsp + 0x70], rax
lea rax, [0x00645ee8]
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], 2
mov qword [rsp + 0xa8], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], 1
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0xa8]
call fcn.004b7240
mov rcx, rax
call fcn.004bb710
mov ecx, 7
int 0x29
ud2
Function at 0x4bdd90
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xd8
mov rdi, rdx
mov rsi, rcx
mov rax, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x110]
mov qword [rsp + 0x58], 0x103
mov qword [rsp + 0x60], 0
mov edx, 0xffffffff
cmp r9, rdx
cmovb rdx, r9
mov qword [rsp + 0x78], rcx
lea r9, [rsp + 0x80]
mov qword [rsp + 0x80], rax
test rcx, rcx
cmove r9, rcx
mov qword [rsp + 0x38], r9
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x4bde39
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x58]
cmp eax, 0x103
je 0x4bde6f
test eax, eax
js 0x4bde4a
mov rax, qword [rsp + 0x60]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x4bde62
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, 0xd8
pop rdi
pop rsi
ret
mov byte [rsp + 0x54], 0
mov dword [rsp + 0x50], 0
lea rax, str.I_O_error:_operation_failed_to_complete_synchronously
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], 1
mov qword [rsp + 0x78], 0
lea rax, [0x00645460]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x68], rax
lea rax, [0x00517a70]
mov qword [rsp + 0x70], rax
lea rax, [0x00645ee8]
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], 2
mov qword [rsp + 0xa8], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], 1
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0xa8]
call fcn.004b7240
mov rcx, rax
call fcn.004bb710
mov ecx, 7
int 0x29
ud2

Function at 0x4be0a0
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 0x4be0d6
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, [0x004bc870]
mov qword [rsp + 0x48], rax
lea rax, [0x00645f80]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 1
lea rdx, str.library_std_src_sys_windows_rand.rs
lea rcx, [rsp + 0x50]
call fcn.00532480
ud2
Function at 0x4be160
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x4be1de
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 0x4be21f
cmp dword [rsp + 0x2c], 0
je 0x4be203
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x4be24e
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x006841b0]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x006841b0], rsi
jne 0x4be1c0
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x4be215
call sub.kernel32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x4be2a4
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x4be208
mov edi, dword [rsp + 0x28]
jmp 0x4be215
mov edi, dword [rsi + 0x18]
jmp 0x4be213
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 + 0x40], 0
lea rax, str.library_std_src_sys_windows_thread_local_key.rs
mov qword [rsp + 0x20], rax
lea r8, [0x00645fd0]
lea rdx, [rsp + 0x28]
lea r9, [rsp + 0x30]
xor ecx, ecx
call fcn.004bbb00
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 + 0x40], rax
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x30], 0
lea rax, [0x00645460]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0
lea rdx, str.library_std_src_sys_windows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call fcn.00532480
ud2
mov qword [rsp + 0x30], 0
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
lea rax, [0x00645460]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.004bbc50
ud2
Function at 0x4beda0
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x498
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 2
mov qword [rsp + 0x48], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x28], rax
xor ebx, ebx
mov r15d, 0xffffffff
xor edi, edi
xor ebp, ebp
cmp r8, 0x201
jae 0x4bee30
jmp 0x4bee0f
jae 0x4beed4
cmp r8, 0x201
jae 0x4bee30
lea r13, [rsp + 0x98]
mov r14d, 0x200
mov r12, r8
jmp 0x4bee76
sub r8, rbp
sub rdi, rbp
cmp rdi, r8
jae 0x4bee57
lea rcx, [rsp + 0x38]
mov rdx, rbp
call fcn.004eb4a0
mov rbx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
cmp rbx, r15
mov ebp, 0xffffffff
cmovb rbp, rbx
mov qword [rsp + 0x48], rbp
mov rdi, rbx
mov r13, qword [rsp + 0x28]
mov r14, rbp
mov r12, rbp
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov rcx, r13
mov edx, r12d
call sub.kernel32.dll_GetSystemDirectoryW
mov esi, eax
test eax, eax
jne 0x4bee9b
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x4befbb
mov r8d, esi
cmp r12, r8
jne 0x4bee00
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x4befdf
add r12, r12
cmp r12, r15
cmovae r12, r15
mov r8, r12
cmp r8, 0x201
jb 0x4bee0f
jmp 0x4bee30
cmp r14, r8
jb 0x4beff9
mov rax, qword [rsp + 0x70]
mov rdi, qword [rax]
mov rsi, qword [rax + 8]
lea rcx, [rsp + 0x78]
mov rdx, r13
call fcn.004981b0
movups xmm0, xmmword [rsp + 0x78]
movups xmm1, xmmword [rsp + 0x88]
movaps xmmword [rsp + 0x60], xmm1
movaps xmmword [rsp + 0x50], xmm0
mov rdx, qword [rdi]
mov r8, qword [rdi + 8]
lea rcx, [rsp + 0x50]
call fcn.0048ed70
cmp byte [rsi], 0
jne 0x4bef3a
lea rdx, [0x00645f68]
lea rcx, [rsp + 0x50]
mov r8d, 3
call fcn.0048f8e0
mov rdx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x60]
lea rcx, [rsp + 0x78]
call fcn.004d80d0
mov rdx, qword [rsp + 0x50]
test rdx, rdx
mov rsi, qword [rsp + 0x30]
je 0x4bef6d
mov rcx, qword [rsp + 0x58]
mov r8d, 1
call fcn.00422030
mov rax, qword [rsp + 0x88]
mov qword [rsi + 0x18], rax
movups xmm0, xmmword [rsp + 0x78]
movups xmmword [rsi + 8], xmm0
mov qword [rsi], 0
test rbx, rbx
je 0x4befa4
add rbx, rbx
mov r8d, 2
mov rcx, qword [rsp + 0x28]
mov rdx, rbx
call fcn.00422030
mov rax, rsi
add rsp, 0x498
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 rsi, qword [rsp + 0x30]
mov qword [rsi + 8], rax
mov qword [rsi], 1
test rbx, rbx
jne 0x4bef8e
jmp 0x4befa4
lea rcx, str.internal_error:_entered_unreachable_codedata_provided_contains_a_nul_byte
lea r8, str.library_std_src_sys_windows_mod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.00532500
jmp 0x4bf00e
lea rax, str.library_std_src_sys_windows_mod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.0053de60
ud2
Function at 0x4bfb60
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 ebx, ebx
mov r14d, 0xffffffff
xor edi, edi
xor r15d, r15d
cmp r8, 0x201
jae 0x4bfbe0
jmp 0x4bfbcf
jae 0x4bfc84
cmp r8, 0x201
jae 0x4bfbe0
lea r12, [rsp + 0x68]
mov r13d, 0x200
mov rbp, r8
jmp 0x4bfc27
sub r8, r15
sub rdi, r15
cmp rdi, r8
jae 0x4bfc07
lea rcx, [rsp + 0x30]
mov rdx, r15
call fcn.004eb4a0
mov rbx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
cmp rbx, r14
mov r15d, 0xffffffff
cmovb r15, rbx
mov qword [rsp + 0x40], r15
mov rdi, rbx
mov r12, qword [rsp + 0x20]
mov r13, r15
mov rbp, r15
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov ecx, ebp
mov rdx, r12
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
test eax, eax
jne 0x4bfc4b
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x4bfce2
mov r8d, esi
cmp rbp, r8
jne 0x4bfbc0
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x4bfd02
add rbp, rbp
cmp rbp, r14
cmovae rbp, r14
mov r8, rbp
cmp r8, 0x201
jb 0x4bfbcf
jmp 0x4bfbe0
cmp r13, r8
jb 0x4bfd1c
lea rcx, [rsp + 0x48]
mov rdx, r12
call fcn.004981b0
movups xmm0, xmmword [rsp + 0x48]
movups xmm1, xmmword [rsp + 0x58]
mov rsi, qword [rsp + 0x28]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rbx, rbx
je 0x4bfccb
add rbx, rbx
mov r8d, 2
mov rcx, qword [rsp + 0x20]
mov rdx, rbx
call fcn.00422030
mov rax, rsi
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 rsi, qword [rsp + 0x28]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rbx, rbx
jne 0x4bfcb5
jmp 0x4bfccb
lea rcx, str.internal_error:_entered_unreachable_codedata_provided_contains_a_nul_byte
lea r8, str.library_std_src_sys_windows_mod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.00532500
jmp 0x4bfd31
lea rax, str.library_std_src_sys_windows_mod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r13
mov r8, rax
call fcn.0053de60
ud2