joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43127c
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
movzx r15d, byte [rdx + 0x48]
lea rcx, [rdx + r15]
mov r8d, 0x48
sub r8, r15
xor r14d, r14d
xor edx, edx
call sub.ntdll.dll_memset
mov byte [rbx + 0x48], 0
mov byte [rbx + r15], 6
or byte [rbx + 0x47], 0x80
mov rax, qword [rbx + r14*8]
xor qword [rdi + r14*8], rax
lea rax, [r14 + 1]
mov r14, rax
cmp rax, 9
jne 0x4312b9
mov rdx, qword [rdi + 0xc8]
mov rcx, rdi
call fcn.00433c88
xor eax, eax
mov rcx, qword [rdi + rax*8]
mov qword [rsi + rax*8], rcx
inc rax
cmp rax, 8
jne 0x4312df
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x43143f
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 0x98
movaps xmmword [rsp + 0x80], xmm14
movaps xmmword [rsp + 0x70], xmm13
movaps xmmword [rsp + 0x60], xmm12
movaps xmmword [rsp + 0x50], xmm11
movaps xmmword [rsp + 0x40], xmm10
movaps xmmword [rsp + 0x30], xmm9
movaps xmmword [rsp + 0x20], xmm8
movaps xmmword [rsp + 0x10], xmm7
movaps xmmword [rsp], xmm6
aesimc xmm0, xmmword [rdx + 0x10]
aesimc xmm1, xmmword [rdx + 0x20]
aesimc xmm2, xmmword [rdx + 0x30]
aesimc xmm3, xmmword [rdx + 0x40]
aesimc xmm4, xmmword [rdx + 0x50]
aesimc xmm5, xmmword [rdx + 0x60]
aesimc xmm6, xmmword [rdx + 0x70]
aesimc xmm7, xmmword [rdx + 0x80]
aesimc xmm8, xmmword [rdx + 0x90]
aesimc xmm9, xmmword [rdx + 0xa0]
aesimc xmm10, xmmword [rdx + 0xb0]
aesimc xmm11, xmmword [rdx + 0xc0]
aesimc xmm12, xmmword [rdx + 0xd0]
movaps xmm13, xmmword [rdx]
movaps xmm14, xmmword [rdx + 0xe0]
movaps xmmword [rcx], xmm13
movdqa xmmword [rcx + 0x10], xmm0
movdqa xmmword [rcx + 0x20], xmm1
movdqa xmmword [rcx + 0x30], xmm2
movdqa xmmword [rcx + 0x40], xmm3
movdqa xmmword [rcx + 0x50], xmm4
movdqa xmmword [rcx + 0x60], xmm5
movdqa xmmword [rcx + 0x70], xmm6
movdqa xmmword [rcx + 0x80], xmm7
movdqa xmmword [rcx + 0x90], xmm8
movdqa xmmword [rcx + 0xa0], xmm9
movdqa xmmword [rcx + 0xb0], xmm10
movdqa xmmword [rcx + 0xc0], xmm11
movdqa xmmword [rcx + 0xd0], xmm12
movaps xmmword [rcx + 0xe0], xmm14
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm10, xmmword [rsp + 0x40]
movaps xmm11, xmmword [rsp + 0x50]
movaps xmm12, xmmword [rsp + 0x60]
movaps xmm13, xmmword [rsp + 0x70]
movaps xmm14, xmmword [rsp + 0x80]
add rsp, 0x98
ret
Function at 0x43ec8c
Capabilities:
Link many functions at runtime

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rcx, str.api_ms_win_core_synch_l1_2_0.dll
call sub.KERNEL32.dll_GetModuleHandleA
test rax, rax
je 0x43ecde
mov rdi, rax
lea rdx, str.WaitOnAddress
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x43ecde
mov rsi, rax
lea rdx, str.WakeByAddressSingle
mov rcx, rdi
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x43ecde
mov r14, rax
xor edi, edi
jmp 0x43ed62
lea rcx, str.ntdll.dll
call sub.KERNEL32.dll_GetModuleHandleA
test rax, rax
je 0x43edca
mov rsi, rax
lea rdx, str.NtCreateKeyedEvent
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x43edca
mov rbx, rax
lea rdx, str.NtReleaseKeyedEvent
mov rcx, rsi
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x43edca
mov rdi, rax
lea rdx, str.NtWaitForKeyedEvent
mov rcx, rsi
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x43edca
mov rsi, rax
lea rcx, [rsp + 0x20]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rbx
test eax, eax
jne 0x43edca
mov r14, qword [rsp + 0x20]
mov al, byte [0x004a3150]
mov ecx, 0x18
mov edx, 8
call fcn.004279a0
test rax, rax
je 0x43ede4
mov rbx, rax
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], r14
xor eax, eax
lock cmpxchg qword [0x004a3040], rbx
je 0x43edbd
mov rsi, rax
cmp qword [rbx], 0
je 0x43eda9
mov rcx, qword [rbx + 0x10]
call sub.KERNEL32.dll_CloseHandle
mov rcx, qword [0x004a30e8]
xor edx, edx
mov r8, rbx
call sub.KERNEL32.dll_HeapFree
mov rbx, rsi
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.parking_lot_requires_either_NT_Keyed_Events__WinXP__or_WaitOnAddress_WakeByAddress__Win8__cargo_registry_src_index.crates.io_6f17d22bba15001f_parking_lot_core_0.9.9_src_thread_parker_windows_mod.rs
lea r8, [0x004914f0]
mov edx, 0x5b
call fcn.0043edf5
ud2
mov ecx, 8
mov edx, 0x18
call fcn.00429330
ud2
Function at 0x43f5b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov ecx, dword [0x00484698]
test ecx, ecx
je 0x43f69a
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x43f5df
mov rsi, rax
cmp qword [rax + 8], 0
jne 0x43f688
mov ecx, dword [0x00484698]
test ecx, ecx
je 0x43f6ad
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x43f68e
mov rsi, rax
test rax, rax
jne 0x43f64d
mov al, byte [0x004a3150]
mov ecx, 0x40
mov edx, 8
call fcn.004279a0
test rax, rax
je 0x43f6d3
mov rsi, rax
lea rax, [0x00484680]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x00484698]
test ecx, ecx
je 0x43f6c0
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
lea rdi, [rsp + 0x20]
mov rcx, rdi
call fcn.0043ee13
movups xmm0, xmmword [rdi]
movups xmm1, xmmword [rdi + 0x10]
movups xmm2, xmmword [rdi + 0x20]
movups xmmword [rsi + 0x18], xmm1
movups xmmword [rsi + 0x28], xmm2
mov rax, qword [rdi + 0x30]
mov qword [rsi + 0x38], rax
cmp qword [rsi + 8], 0
movups xmmword [rsi + 8], xmm0
je 0x43f688
lock dec qword [0x004a3030]
add rsi, 8
jmp 0x43f690
xor esi, esi
mov rax, rsi
add rsp, 0x58
pop rdi
pop rsi
ret
lea rcx, [0x00484680]
call fcn.0044ac10
mov ecx, eax
jmp 0x43f5c6
lea rcx, [0x00484680]
call fcn.0044ac10
mov ecx, eax
jmp 0x43f5ef
lea rcx, [0x00484680]
call fcn.0044ac10
mov ecx, eax
jmp 0x43f645
mov ecx, 8
mov edx, 0x40
call fcn.00429330
ud2

Function at 0x446230
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.0042bb10
cmp rax, rcx
je 0x446255
cmp rdx, 4
jae 0x446258
xor eax, eax
xor r8d, r8d
jmp 0x4462f0
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x00485de0]
movdqa xmm3, xmmword [0x00485df0]
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 0x446280
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x446307
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x4462f0
ret
Function at 0x447290
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r8, qword [rcx]
test r8, r8
je 0x4472eb
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x4472eb
movzx eax, byte [r8 + rcx]
cmp eax, 0x49
je 0x447306
cmp eax, 0x42
jne 0x4472eb
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x4473b6
cmp byte [r8 + r11], 0x5f
jne 0x4473b6
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x44741e
mov rcx, rsi
xor edx, edx
call fcn.00442c70
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.00442c70
test al, al
jne 0x4474b1
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x447342
lea rdx, [0x00491ca3]
mov r8d, 1
call fcn.0042c000
test al, al
jne 0x4474b1
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x4472fa
xor r14d, r14d
lea rbx, [0x00492011]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x447374
cmp byte [rax + rcx], 0x45
je 0x4474d3
sub r14, 1
jb 0x447399
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x447399
mov r8d, 2
mov rdx, rbx
call fcn.0042c000
test al, al
jne 0x4474b1
mov rcx, rsi
call fcn.004444a0
test al, al
jne 0x4474b1
mov rax, qword [rsi]
test rax, rax
jne 0x447360
jmp 0x4472fa
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r9b, 1
cmp r11, r10
jae 0x447478
movzx edx, byte [r8 + r11]
cmp dl, 0x5f
je 0x447412
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x4473fc
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x4473eb
add dl, 0xa9
jmp 0x4473fa
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x447478
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x447478
movzx edx, bl
add rax, rdx
jae 0x4473c0
jmp 0x447478
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x447478
cmp rax, rcx
jae 0x447475
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x4474cb
cmp qword [rsi + 0x20], 0
je 0x4474c4
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.00447290
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x4472fc
mov r9b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x4474b9
mov eax, r9d
xor al, 1
movzx eax, al
lea r8, [rax + rax*8]
add r8, 0x10
lea rax, str.invalid_syntaxrecursion_limit_reached_for_______::closureshim_as__mut_const___dyn___unsafe_extern__
lea rdx, [0x00491ff0]
test r9b, r9b
cmovne rdx, rax
call fcn.0042c000
test al, al
je 0x4474b9
mov dil, 2
jmp 0x4472fa
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x4472fa
mov dil, 1
xor r9d, r9d
jmp 0x44747a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x4472fa
Function at 0x44ac10
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x44ac95
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 0x44acd6
cmp dword [rsp + 0x2c], 0
je 0x44acba
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x44acf0
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x004a30f8]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x004a30f8], rsi
jne 0x44ac70
mov byte [0x004a30f0], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x44accc
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x44ad3c
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x44acbf
mov edi, dword [rsp + 0x28]
jmp 0x44accc
mov edi, dword [rsi + 0x18]
jmp 0x44acca
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.0044b190
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.Index_out_of_bounds
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.0042b5e0
ud2
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.Index_out_of_bounds
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.0044b1e0
ud2

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

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x00484708]
test ecx, ecx
je 0x44b140
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x44b094
mov rdi, rax
cmp qword [rax + 8], 0
je 0x44b094
add rdi, 0x10
jmp 0x44b136
mov ecx, dword [0x00484708]
test ecx, ecx
je 0x44b153
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x44b134
mov rsi, rax
test rax, rax
jne 0x44b103
movzx eax, byte [0x004a3150]
mov ecx, 0x18
mov edx, 8
call fcn.004279a0
test rax, rax
je 0x44b176
mov rsi, rax
lea rax, [0x004846f0]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x00484708]
test ecx, ecx
je 0x44b166
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 0x44b136
test rcx, rcx
je 0x44b136
lock dec qword [rcx]
jne 0x44b136
call fcn.0044abb0
jmp 0x44b136
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x004846f0]
call fcn.0044ac10
mov ecx, eax
jmp 0x44b076
lea rcx, [0x004846f0]
call fcn.0044ac10
mov ecx, eax
jmp 0x44b0a4
lea rcx, [0x004846f0]
call fcn.0044ac10
mov ecx, eax
jmp 0x44b0fb
mov ecx, 8
mov edx, 0x18
call fcn.00429330
ud2
Function at 0x44b770
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x00484728]
test ecx, ecx
je 0x44b80f
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x44b799
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x44b7fe
mov ecx, dword [0x00484728]
test ecx, ecx
je 0x44b822
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x44b804
mov rsi, rax
test rax, rax
jne 0x44b7f8
movzx eax, byte [0x004a3150]
mov ecx, 0x10
mov edx, 8
call fcn.004279a0
test rax, rax
je 0x44b845
mov rsi, rax
lea rax, [0x00484710]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x00484728]
test ecx, ecx
je 0x44b835
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
jmp 0x44b806
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x00484710]
call fcn.0044ac10
mov ecx, eax
jmp 0x44b785
lea rcx, [0x00484710]
call fcn.0044ac10
mov ecx, eax
jmp 0x44b7a5
lea rcx, [0x00484710]
call fcn.0044ac10
mov ecx, eax
jmp 0x44b7f0
mov ecx, 8
mov edx, 0x10
call fcn.00429330
ud2

Function at 0x44bdb0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x004947c0]
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 0x44be21
mov rcx, rdi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x44be57
test eax, eax
js 0x44be32
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x44be4a
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, [0x00494828]
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.0044ae80
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.0044a320
mov ecx, 7
int 0x29
ud2
Function at 0x44c3b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x004846e8]
test ecx, ecx
je 0x44c46d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x44c3e0
cmp qword [rax + 8], 0
je 0x44c3e0
add rax, 0x10
jmp 0x44c467
mov ecx, dword [0x004846e8]
test ecx, ecx
je 0x44c480
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x44c465
mov rsi, rax
test rax, rax
jne 0x44c44b
movzx eax, byte [0x004a3150]
mov ecx, 0x20
mov edx, 8
call fcn.004279a0
test rax, rax
je 0x44c4a3
mov rsi, rax
lea rax, [0x004846d0]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x004846e8]
test ecx, ecx
je 0x44c493
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 0x44c467
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x004846d0]
call fcn.0044ac10
mov ecx, eax
jmp 0x44c3c5
lea rcx, [0x004846d0]
call fcn.0044ac10
mov ecx, eax
jmp 0x44c3f0
lea rcx, [0x004846d0]
call fcn.0044ac10
mov ecx, eax
jmp 0x44c443
mov ecx, 8
mov edx, 0x20
call fcn.00429330
ud2
Function at 0x44fc90
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.004688e0
mov rdi, rdx
test rax, rax
je 0x44fd24
mov qword [rsp + 0x80], 1
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x88], rdi
call fcn.0044a260
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.00468b00
cmp dword [rsp + 0x38], 2
jne 0x44fd53
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x80], 2
jmp 0x44fd9f
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 0x44fdcb
lea rcx, [rsp + 0x88]
call fcn.0044a260
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 0x44fe29
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 0x44fea5
mov rbx, qword [rsp + 0x80]
jmp 0x44fe2b
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 0x44fe94
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 0x44fe94
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x44fed1
mov qword [rsi], 0
mov rcx, rbx
call sub.KERNEL32.dll_CloseHandle
jmp 0x44fed1
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.0044a260
mov qword [rsi], 0
mov rcx, rdi
call sub.KERNEL32.dll_CloseHandle
jmp 0x44fd13
Function at 0x469250
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.0044c9c0
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x4693bb
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 0x469310
jmp 0x4692ef
jae 0x4693d1
cmp r8, 0x201
jae 0x469310
mov edi, 0x200
lea rbp, [rsp + 0xa8]
mov r12, r8
jmp 0x469357
sub r8, r13
sub r14, r13
cmp r14, r8
jae 0x469337
lea rcx, [rsp + 0x48]
mov rdx, r13
call fcn.0044cdd0
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 0x469382
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x469406
mov r8d, r15d
cmp r12, r8
jne 0x4692e0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x46949a
add r12, r12
cmp r12, rsi
cmovae r12, rsi
mov r8, r12
cmp r8, 0x201
jb 0x4692ef
jmp 0x469310
lea rcx, [rsp + 0xb0]
call fcn.0044a260
mov byte [rsi + 0x18], 2
jmp 0x46946a
cmp rdi, r8
jb 0x4694b4
lea rcx, [rsp + 0x88]
mov rdx, rbp
call fcn.0044e930
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rsp + 0x60], xmm0
jmp 0x46941d
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 0x46943a
mov rcx, qword [0x004a30e8]
xor edx, edx
mov r8, qword [rsp + 0x28]
call sub.KERNEL32.dll_HeapFree
cmp byte [rsp + 0x78], 2
jne 0x46947f
mov byte [rsi + 0x18], 2
lea rcx, [rsp + 0x60]
call fcn.0044a260
cmp qword [rsp + 0x40], 0
je 0x46946a
mov rcx, qword [0x004a30e8]
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 0x469457
jmp 0x46946a
lea rcx, str.internal_error:_entered_unreachable_codecalled__Option::unwrap____on_a__None__value
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.0042c320
jmp 0x4694c9
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rdi
mov r8, rax
call fcn.0042bf80
ud2
Function at 0x46c700
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x00484748]
test ecx, ecx
je 0x46c7e0
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x46c734
mov rdi, rax
cmp qword [rax + 8], 0
je 0x46c734
add rdi, 0x10
jmp 0x46c7d6
mov ecx, dword [0x00484748]
test ecx, ecx
je 0x46c7f3
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x46c7d4
mov rsi, rax
test rax, rax
jne 0x46c7a3
movzx eax, byte [0x004a3150]
mov ecx, 0x18
mov edx, 8
call fcn.004279a0
test rax, rax
je 0x46c816
mov rsi, rax
lea rax, [0x00484730]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x00484748]
test ecx, ecx
je 0x46c806
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 0x46c7d6
test rcx, rcx
je 0x46c7d6
lock dec qword [rcx]
jne 0x46c7d6
call fcn.0046c830
jmp 0x46c7d6
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x00484730]
call fcn.0044ac10
mov ecx, eax
jmp 0x46c716
lea rcx, [0x00484730]
call fcn.0044ac10
mov ecx, eax
jmp 0x46c744
lea rcx, [0x00484730]
call fcn.0044ac10
mov ecx, eax
jmp 0x46c79b
mov ecx, 8
mov edx, 0x18
call fcn.00429330
ud2

Function at 0x46d900
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 0x46d936
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, [0x00469d20]
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.0042b5e0
ud2