joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44ad50
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x44add5
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 0x44ae16
cmp dword [rsp + 0x2c], 0
je 0x44adfa
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x44ae2e
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 0x44adb0
mov byte [0x004a30f0], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x44ae0c
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x44ae78
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x44adff
mov edi, dword [rsp + 0x28]
jmp 0x44ae0c
mov edi, dword [rsi + 0x18]
jmp 0x44ae0a
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.0044b2c0
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_syspalwindows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call fcn.0042ab70
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.0044b310
int3

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

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x00484738]
test ecx, ecx
je 0x44b279
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x44b1d4
mov rdi, rax
cmp qword [rax + 8], 0
je 0x44b1d4
add rdi, 0x10
jmp 0x44b26f
mov ecx, dword [0x00484738]
test ecx, ecx
je 0x44b28c
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x44b26d
mov rsi, rax
test rax, rax
jne 0x44b23c
movzx eax, byte [0x004a3120]
mov edx, 0x18
xor ecx, ecx
call fcn.0046e140
test rax, rax
je 0x44b2af
mov rsi, rax
lea rax, [0x00484720]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x00484738]
test ecx, ecx
je 0x44b29f
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 0x44b26f
test rcx, rcx
je 0x44b26f
lock dec qword [rcx]
jne 0x44b26f
call fcn.0044acf0
jmp 0x44b26f
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x00484720]
call fcn.0044ad50
mov ecx, eax
jmp 0x44b1b6
lea rcx, [0x00484720]
call fcn.0044ad50
mov ecx, eax
jmp 0x44b1e4
lea rcx, [0x00484720]
call fcn.0044ad50
mov ecx, eax
jmp 0x44b234
mov ecx, 8
mov edx, 0x18
call fcn.004289f0
int3
Function at 0x44b8a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x00484758]
test ecx, ecx
je 0x44b93c
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x44b8c9
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x44b92b
mov ecx, dword [0x00484758]
test ecx, ecx
je 0x44b94f
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x44b931
mov rsi, rax
test rax, rax
jne 0x44b925
movzx eax, byte [0x004a3120]
mov edx, 0x10
xor ecx, ecx
call fcn.0046e140
test rax, rax
je 0x44b972
mov rsi, rax
lea rax, [0x00484740]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x00484758]
test ecx, ecx
je 0x44b962
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
jmp 0x44b933
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x00484740]
call fcn.0044ad50
mov ecx, eax
jmp 0x44b8b5
lea rcx, [0x00484740]
call fcn.0044ad50
mov ecx, eax
jmp 0x44b8d5
lea rcx, [0x00484740]
call fcn.0044ad50
mov ecx, eax
jmp 0x44b91d
mov ecx, 8
mov edx, 0x10
call fcn.004289f0
int3

Function at 0x44bf30
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x00494600]
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 0x44bfa1
mov rcx, rdi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x44bfd7
test eax, eax
js 0x44bfb2
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x44bfca
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, [0x00494668]
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.0044b120
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.0044a480
mov ecx, 7
int 0x29
ud2
Function at 0x44c4e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x00484718]
test ecx, ecx
je 0x44c59a
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x44c510
cmp qword [rax + 8], 0
je 0x44c510
add rax, 0x10
jmp 0x44c594
mov ecx, dword [0x00484718]
test ecx, ecx
je 0x44c5ad
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x44c592
mov rsi, rax
test rax, rax
jne 0x44c578
movzx eax, byte [0x004a3120]
mov edx, 0x20
xor ecx, ecx
call fcn.0046e140
test rax, rax
je 0x44c5d0
mov rsi, rax
lea rax, [0x00484700]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x00484718]
test ecx, ecx
je 0x44c5c0
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 0x44c594
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x00484700]
call fcn.0044ad50
mov ecx, eax
jmp 0x44c4f5
lea rcx, [0x00484700]
call fcn.0044ad50
mov ecx, eax
jmp 0x44c520
lea rcx, [0x00484700]
call fcn.0044ad50
mov ecx, eax
jmp 0x44c570
mov ecx, 8
mov edx, 0x20
call fcn.004289f0
int3
Function at 0x4501e0
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.00468be0
mov rdi, rdx
test rax, rax
je 0x450274
mov qword [rsp + 0x80], 1
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x88], rdi
call fcn.0044a3c0
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.00468e40
cmp dword [rsp + 0x38], 2
jne 0x4502a3
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x80], 2
jmp 0x4502ef
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 0x45031b
lea rcx, [rsp + 0x88]
call fcn.0044a3c0
mov qword [rsi], 0
mov rcx, rdi
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp fcn.0048219c
mov r12, qword [rsp + 0xb8]
test rdi, rdi
je 0x450379
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 0x4503f5
mov rbx, qword [rsp + 0x80]
jmp 0x45037b
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 0x4503e4
mov r14, rax
mov qword [rsp + 0x20], r12
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.KERNEL32.dll_MapViewOfFile
mov r15, rax
mov rcx, r14
call fcn.0048219c
test r15, r15
je 0x4503e4
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x450421
mov qword [rsi], 0
mov rcx, rbx
call fcn.0048219c
jmp 0x450421
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.0044a3c0
mov qword [rsi], 0
mov rcx, rdi
call fcn.0048219c
jmp 0x450263
Function at 0x4695b0
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
movabs rdi, 0x8000000000000000
lea rcx, [rsp + 0xa8]
call fcn.0044cae0
mov rax, qword [rsp + 0xa8]
cmp rax, rdi
jne 0x4695ff
lea rcx, [rsp + 0xb0]
call fcn.0044a3c0
mov qword [rsi], rdi
jmp 0x4697e3
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 2
mov qword [rsp + 0x58], 0
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 0x469690
jmp 0x46966f
jae 0x469737
cmp r8, 0x201
jae 0x469690
mov edi, 0x200
lea rbp, [rsp + 0xa8]
mov r12, r8
jmp 0x4696d7
sub r8, r13
sub r14, r13
cmp r14, r8
jae 0x4696b7
lea rcx, [rsp + 0x48]
mov rdx, r13
call fcn.0044cf70
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
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 0x4696fe
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x469776
mov r8d, r15d
cmp r12, r8
jne 0x469660
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x469813
add r12, r12
cmp r12, rsi
cmovae r12, rsi
mov r8, r12
cmp r8, 0x201
jb 0x46966f
jmp 0x469690
cmp rdi, r8
jb 0x46982d
lea rcx, [rsp + 0x88]
mov rdx, rbp
call fcn.0044eed0
movabs rdi, 0x8000000000000000
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rsp + 0x60], xmm0
jmp 0x469797
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x68], rax
movabs rdi, 0x8000000000000000
mov qword [rsp + 0x60], rdi
mov rsi, qword [rsp + 0x38]
test rbx, rbx
je 0x4697b4
mov rcx, qword [0x004a30e8]
xor edx, edx
mov r8, qword [rsp + 0x28]
call sub.KERNEL32.dll_HeapFree
cmp qword [rsp + 0x60], rdi
jne 0x4697f8
mov qword [rsi], rdi
lea rcx, [rsp + 0x68]
call fcn.0044a3c0
cmp qword [rsp + 0x40], 0
je 0x4697e3
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 0x4697d0
jmp 0x4697e3
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syspalwindowsmod.rs
mov edx, 0x28
call fcn.0042b9e0
jmp 0x469842
lea rax, str.library_std_src_syspalwindowsmod.rs
mov rcx, r8
mov rdx, rdi
mov r8, rax
call fcn.0042b640
ud2
Function at 0x46cab0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x00484778]
test ecx, ecx
je 0x46cb89
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x46cae4
mov rdi, rax
cmp qword [rax + 8], 0
je 0x46cae4
add rdi, 0x10
jmp 0x46cb7f
mov ecx, dword [0x00484778]
test ecx, ecx
je 0x46cb9c
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x46cb7d
mov rsi, rax
test rax, rax
jne 0x46cb4c
movzx eax, byte [0x004a3120]
mov edx, 0x18
xor ecx, ecx
call fcn.0046e140
test rax, rax
je 0x46cbbf
mov rsi, rax
lea rax, [0x00484760]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x00484778]
test ecx, ecx
je 0x46cbaf
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 0x46cb7f
test rcx, rcx
je 0x46cb7f
lock dec qword [rcx]
jne 0x46cb7f
call fcn.0046cbd0
jmp 0x46cb7f
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x00484760]
call fcn.0044ad50
mov ecx, eax
jmp 0x46cac6
lea rcx, [0x00484760]
call fcn.0044ad50
mov ecx, eax
jmp 0x46caf4
lea rcx, [0x00484760]
call fcn.0044ad50
mov ecx, eax
jmp 0x46cb44
mov ecx, 8
mov edx, 0x18
call fcn.004289f0
int3

Function at 0x46dc20
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 0x46dc56
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, [0x0046a0c0]
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_syspalwindows_rand.rs
lea rcx, [rsp + 0x50]
call fcn.0042ab70
ud2
Function at 0x4728e0
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x30
mov ecx, dword [0x00484798]
test ecx, ecx
je 0x4729d6
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x472910
cmp qword [rax + 8], 0
je 0x472910
add rax, 0x10
jmp 0x4729d0
mov ecx, dword [0x00484798]
test ecx, ecx
je 0x4729e9
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x4729b0
mov rsi, rax
test rax, rax
jne 0x472980
movzx eax, byte [0x004a3120]
mov edx, 0x20
xor ecx, ecx
call fcn.0046e140
test rax, rax
je 0x472a0f
mov rsi, rax
lea rax, [0x00484780]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x00484798]
test ecx, ecx
je 0x4729fc
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
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 0x4729b4
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x4729bc
xor eax, eax
jmp 0x4729d0
call fcn.0046dc20
mov rcx, rax
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rdx
add rsp, 0x30
pop rsi
ret
lea rcx, [0x00484780]
call fcn.0044ad50
mov ecx, eax
jmp 0x4728f5
lea rcx, [0x00484780]
call fcn.0044ad50
mov ecx, eax
jmp 0x472920
lea rcx, [0x00484780]
call fcn.0044ad50
mov ecx, eax
jmp 0x472978
mov ecx, 8
mov edx, 0x20
call fcn.004289f0
int3

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xd0
mov rsi, rcx
mov ecx, dword [0x004847c0]
test ecx, ecx
je 0x474934
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x474834
mov rbx, rax
cmp qword [rax + 8], 0
je 0x474834
add rbx, 0x10
jmp 0x474926
mov ecx, dword [0x004847c0]
test ecx, ecx
je 0x474947
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x4748c4
mov rbx, rax
test rax, rax
jne 0x47489f
mov al, byte [0x004a3120]
mov edx, 0x60
xor ecx, ecx
call fcn.0046e140
test rax, rax
je 0x47496d
mov rbx, rax
lea rax, [0x004847a8]
mov qword [rbx], rax
mov qword [rbx + 8], 0
mov ecx, dword [0x004847c0]
test ecx, ecx
je 0x47495a
dec ecx
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
lea rax, [rbx + 8]
test rsi, rsi
je 0x4748c8
lea rcx, [rsi + 8]
cmp qword [rsi], 0
mov qword [rsi], 0
lea rsi, [0x004968f0]
cmovne rsi, rcx
jmp 0x4748cf
xor ebx, ebx
jmp 0x474926
lea rsi, [0x004968f0]
lea rdx, [rsp + 0x80]
mov ecx, 0xa
mov rdi, rdx
rep movsq qword [rdi], qword [rsi]
lea r8, [rsp + 0x28]
mov ecx, 0xb
mov rdi, r8
mov rsi, rax
rep movsq qword [rdi], qword [rsi]
mov qword [rbx + 8], 1
add rbx, 0x10
mov ecx, 0xa
mov rdi, rbx
mov rsi, rdx
rep movsq qword [rdi], qword [rsi]
cmp qword [r8], 0
je 0x474926
cmp dword [rsp + 0x38], 2
je 0x474926
lea rcx, [rsp + 0x38]
call fcn.00406bd4
mov rax, rbx
add rsp, 0xd0
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x004847a8]
call fcn.0044ad50
mov ecx, eax
jmp 0x474816
lea rcx, [0x004847a8]
call fcn.0044ad50
mov ecx, eax
jmp 0x474844
lea rcx, [0x004847a8]
call fcn.0044ad50
mov ecx, eax
jmp 0x474897
mov ecx, 8
mov edx, 0x60
call fcn.004289f0
int3
Function at 0x474ae4
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 0x474b1a
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 4
jb 0x474b22
mov esi, dword [rdx]
mov r9d, 4
jmp 0x474b27
xor r10d, r10d
jmp 0x474bd5
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x474b4a
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x474b61
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 0x474b81
add r11, r8
jmp 0x474ca5
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 0x474c49
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
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 0x474bf7
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 4
jb 0x474c5b
mov r9d, dword [rdx + r10]
mov r8d, 4
jmp 0x474c61
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x474c87
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 0x474ca1
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 0x474e5b
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x004847e0]
test ecx, ecx
je 0x474f25
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x474e8f
mov rdi, rax
cmp qword [rax + 8], 0
je 0x474e8f
add rdi, 8
jmp 0x474f1b
mov ecx, dword [0x004847e0]
test ecx, ecx
je 0x474f38
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x474f19
mov rsi, rax
test rax, rax
jne 0x474ef6
mov al, byte [0x004a3120]
mov edx, 0x10
xor ecx, ecx
call fcn.0046e140
test rax, rax
je 0x474f5b
mov rsi, rax
lea rax, [0x004847c8]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x004847e0]
test ecx, ecx
je 0x474f4b
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
lea rdi, [rsi + 8]
call fcn.00474e14
mov rcx, qword [rsi + 8]
mov qword [rsi + 8], rax
test rcx, rcx
je 0x474f1b
lock dec qword [rcx]
jne 0x474f1b
call fcn.0047909d
jmp 0x474f1b
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x004847c8]
call fcn.0044ad50
mov ecx, eax
jmp 0x474e71
lea rcx, [0x004847c8]
call fcn.0044ad50
mov ecx, eax
jmp 0x474e9f
lea rcx, [0x004847c8]
call fcn.0044ad50
mov ecx, eax
jmp 0x474eee
mov ecx, 8
mov edx, 0x10
call fcn.004289f0
int3
Function at 0x47a1e6
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x47a1ed
test al, 1
je 0x47a20c
test al, 2
jne 0x47a224
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x00497eb0]
mov edx, 0x23
call fcn.0042b9e0
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x00497ef0]
mov edx, 0x25
call fcn.0042b9e0
int3
Function at 0x482f90
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov ecx, dword [0x004a3744]
mov rdi, rdx
mov rbp, r8
test ecx, ecx
jle 0x4830b0
mov rax, qword [0x004a3748]
xor ebx, ebx
add rax, 0x18
mov rdx, qword [rax]
cmp rsi, rdx
jb 0x482fdc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rsi, rdx
jb 0x483096
add ebx, 1
add rax, 0x28
cmp ebx, ecx
jne 0x482fc0
mov rcx, rsi
call fcn.00483bd0
test rax, rax
mov r12, rax
je 0x4830e8
movsxd rbx, ebx
lea rbx, [rbx + rbx*4]
shl rbx, 3
mov r13, rbx
add r13, qword [0x004a3748]
mov qword [r13 + 0x20], rax
mov dword [r13], 0
call fcn.00483d20
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 0x18], rax
mov rax, qword [0x004a3748]
mov rcx, qword [rax + rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4830cb
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x48308f
sub eax, 0x40
and eax, 0xffffffbf
je 0x48308f
add rbx, qword [0x004a3748]
mov rcx, qword [rsp + 0x20]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4830b7
add dword [0x004a3744], 1
mov r8, rbp
mov rdx, rdi
mov rcx, rsi
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sub.ntdll.dll_memcpy
xor ebx, ebx
jmp 0x482fe7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00482f20
mov rax, qword [0x004a3748]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.00482f20
lea rcx, str.Address__p_has_no_image_section
mov rdx, rsi
call fcn.00482f20
nop
nop dword [rax + rax]

Function at 0x483840
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004a3a20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004a3a00]
test rbx, rbx
je 0x483894
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x48388b
test rsi, rsi
je 0x48388b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x483870
lea rcx, [0x004a3a20]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]