joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002996f
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov r12d, 0x20
xor esi, esi
mov r13d, 0xffffffff
test r12, r12
je 0x140029a00
mov r14, rdi
cmp r12, r13
mov r15d, 0xffffffff
cmovb r15, r12
add rdi, r15
sub r12, r15
sub ecx, ecx
mov rdx, r14
mov r8d, r15d
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
cmp eax, 0xc0000000
jb 0x14002998f
mov ebx, eax
mov rcx, r14
mov edx, r15d
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x14002998f
xor ebx, 0x80000000
je 0x1400299fe
mov al, byte [0x1401262b8]
mov ecx, 4
mov edx, 4
call fcn.140005be0
or rax, rax
je 0x140029a13
push rax
pop rsi
nop
mov dword [rax], ebx
jmp 0x140029a00
xor esi, esi
push rsi
nop
pop rax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 4
mov edx, 4
call fcn.140006d30
ud2

Function at 0x14002a425
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
movsxd rax, dword [rcx + 0x3c]
mov eax, dword [rax + rcx + 0x88]
or rax, rax
je 0x14002a4d2
mov edi, edx
push rcx
nop
pop rsi
mov ecx, dword [rax + rcx + 0x1c]
add rcx, rsi
mov qword [rsp + 0x28], rcx
mov ebx, dword [rax + rsi + 0x20]
add rbx, rsi
mov ebp, dword [rax + rsi + 0x24]
add rbp, rsi
mov ecx, dword [rax + rsi + 0x14]
mov qword [rsp + 0x30], rcx
mov r13d, dword [rax + rsi + 0x18]
neg r13
mov r15, 0xffffffffffffffff
xor r14d, r14d
lea rax, [r15 + r13]
cmp rax, 0xffffffffffffffff
je 0x14002a4d5
mov r12d, dword [rbx + r15*4 + 4]
add r12, rsi
mov rcx, r12
call fcn.14002a414
mov rcx, r12
push rax
pop rdx
nop
call fcn.14002a222
inc r15
cmp eax, edi
jne 0x14002a483
mov rdx, qword [rsp + 0x30]
cmp r15, rdx
jae 0x14002a4e9
movzx ecx, word [rbp + r15*2]
cmp rdx, rcx
jbe 0x14002a4f5
mov rax, qword [rsp + 0x28]
mov r14d, dword [rax + rcx*4]
add r14, rsi
jmp 0x14002a4d5
xor r14d, r14d
mov rax, r14
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, str._redacted_
mov rcx, r15
jmp 0x14002a4fc
lea r8, str._redacted_
call fcn.14000dcb0
ud2
Function at 0x14002e090
Capabilities:
Encode data using xor

Disassembly:
push rdx
pop rax
nop
sub rdx, rcx
cmp rdx, 0x20
jae fcn.14000ef70
cmp rax, rcx
je 0x14002e0b5
cmp rdx, 4
jae 0x14002e0b8
xor eax, eax
xor r8d, r8d
jmp 0x14002e150
sub eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
sub eax, eax
movdqa xmm2, xmmword [0x1400a5d70]
movdqa xmm3, xmmword [0x1400a5d80]
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 0x14002e0e0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14002e167
nop dword [rax]
sub r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14002e150
ret
Function at 0x14002eaf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
push rcx
nop
pop rsi
mov r8, qword [rcx]
test r8, r8
je 0x14002ebe8
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14002ebe8
movzx eax, byte [r8 + rcx]
cmp eax, 0x42
je 0x14002ec03
cmp eax, 0x49
jne 0x14002ebe8
inc rcx
mov qword [rsi + 0x10], rcx
push rsi
pop rcx
nop
sub edx, edx
call fcn.14002a510
test al, al
jne 0x14002ed28
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14002eb6c
lea rdx, [0x140107ab2]
mov r8d, 1
call fcn.140007d00
test al, al
jne 0x14002ed28
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14002ebf7
xor r14d, r14d
lea rbx, [0x140115120]
nop word cs:[rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x14002eba9
or rax, rax
je 0x14002eba9
cmp byte [rax + rcx], 0x45
je 0x14002ed4a
sub r14, 1
jb 0x14002ebce
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14002ebce
mov r8d, 2
mov rdx, rbx
call fcn.140007d00
test al, al
jne 0x14002ed28
push rsi
pop rcx
nop
call fcn.14002be40
test al, al
jne 0x14002ed28
mov rax, qword [rsi]
or rax, rax
jne 0x14002eb90
jmp 0x14002ebf7
mov rcx, rsi
xor edx, edx
call fcn.14002a510
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x14002ec23
cmp byte [r8 + r11], 0x5f
jne 0x14002ec23
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
sub eax, eax
jmp 0x14002ec8e
xor eax, eax
mov edi, 0x3e
nop word [rax + rax]
mov r9b, 1
cmp r11, r10
jae 0x14002ecef
movzx edx, byte [r8 + r11]
cmp dl, 0x5f
je 0x14002ec82
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14002ec6c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14002ec5b
add dl, 0xa9
jmp 0x14002ec6a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x14002ecef
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x14002ecef
movzx edx, bl
add rax, rdx
jae 0x14002ec30
jmp 0x14002ecef
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x14002ecef
cmp rax, rcx
jae 0x14002ecec
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14002ed42
cmp qword [rsi + 0x20], 0
je 0x14002ed3b
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
push rsi
pop rcx
nop
call fcn.14002eaf0
mov edi, eax
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
cmp al, 2
jne 0x14002ebf7
jmp 0x14002ed28
mov r9b, 1
sub edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14002ed30
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___Cunsafe_extern__
lea rdx, [0x140107648]
test r9b, r9b
cmovne rdx, rax
call fcn.140007d00
test al, al
je 0x14002ed30
mov dil, 2
jmp 0x14002ebf7
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14002ebf7
mov dil, 1
xor r9d, r9d
jmp 0x14002ecf1
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14002ebf7
Function at 0x1400343b0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
push rdx
nop
pop rdi
cmp qword [rdx], 0
jne 0x140034500
push rcx
nop
pop rsi
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx + 8]
test rax, rax
jne 0x1400343e8
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x1400344e9
sub eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x1400344cb
sub rax, rdx
add rdx, qword [rbx]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x34], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x34]
mov r8d, eax
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x140034448
mov ecx, dword [rsp + 0x34]
mov eax, 2
or rcx, rcx
je 0x140034483
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov byte [rsi + 1], 1
jmp 0x140034487
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
lea rcx, [rax + 2]
movabs rdx, 0x3e500000000
cmp rax, rdx
je 0x14003448b
movabs rdx, 0x6d00000000
cmp rax, rdx
jne 0x1400344b1
mov qword [rsp + 0x40], 1
lea rax, [rsp + 0x38]
jmp 0x140034490
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x1400344b7
lea rax, [rsp + 0x40]
mov qword [rax], 0
call fcn.1400635b0
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
or rax, rax
je 0x1400344c1
cmp rax, 1
je 0x140034431
mov qword [rsi + 8], rcx
mov al, 1
mov byte [rsi], al
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov eax, 1
jmp 0x14003443b
mov r8d, 1
push rbx
pop rcx
nop
nop
push rax
pop rdx
call fcn.140013050
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
jmp 0x1400343f5
mov r8d, 0x10
push rbx
pop rcx
nop
call fcn.140013050
mov rax, qword [rbx + 8]
jmp 0x1400343e8
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
nop
push rdi
pop rcx
call fcn.1400348b0
ud2

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

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x1400a4058]
or ecx, ecx
je 0x14003468e
dec ecx
call fcn.1400a154c
cmp rax, 2
jb 0x140034611
push rax
nop
pop rdi
cmp qword [rax + 8], 0
je 0x140034611
add rdi, 0x10
jmp 0x14003462e
mov ecx, dword [0x1400a4058]
test ecx, ecx
je 0x1400346a1
dec ecx
call fcn.1400a154c
cmp rax, 1
jne 0x140034638
sub edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
push rax
nop
pop rsi
or rax, rax
jne 0x1400346be
movzx eax, byte [0x1401262b8]
mov ecx, 0x18
mov edx, 8
call fcn.140005be0
test rax, rax
je 0x1400346ff
push rax
pop rsi
nop
lea rax, [0x1400a4040]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400a4058]
or ecx, ecx
jne 0x1400346b4
lea rcx, [0x1400a4040]
call fcn.14005a4e0
mov ecx, eax
jmp 0x1400346b6
lea rcx, [0x1400a4040]
call fcn.14005a4e0
mov ecx, eax
jmp 0x1400345f6
lea rcx, [0x1400a4040]
call fcn.14005a4e0
mov ecx, eax
jmp 0x140034621
dec ecx
push rsi
nop
pop rdx
call sub.KERNEL32.dll_TlsSetValue
call fcn.140033880
lea rdi, [rsi + 0x10]
mov rcx, qword [rsi + 0x10]
cmp qword [rsi + 8], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], rax
je 0x14003462e
test rcx, rcx
je 0x14003462e
lock dec qword [rcx]
jne 0x14003462e
call fcn.14008a350
jmp 0x14003462e
mov ecx, 8
mov edx, 0x18
call fcn.140006d30
ud2
Function at 0x14003d6c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x1078
call fcn.1400a14d0
sub rsp, rax
movaps xmmword [rsp + 0x1060], xmm6
push rdx
pop rsi
nop
push rcx
nop
pop rdi
lea rbx, [rsp + 0x60]
mov r8d, 0x1000
nop
push rbx
pop rcx
xor edx, edx
call sub.msvcrt.dll_memset
mov dword [rsp + 0x34], 0
xorps xmm6, xmm6
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
lea r13, [rsp + 0x34]
mov qword [rsp + 0x58], r13
lea rbp, [0x140034210]
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
nop
push rdi
pop rcx
push rbx
nop
pop rdx
mov r8d, 0x1000
call sub.KERNEL32.dll_ReadFileEx
or eax, eax
je 0x14003d85f
mov r14d, 0xffffffff
lea rbx, [rsp + 0x40]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x34], 0
je 0x14003d754
mov ecx, dword [rsp + 0x38]
or ecx, ecx
jne 0x14003d866
mov r15d, dword [rsp + 0x3c]
or r15, r15
je 0x14003d8a2
cmp r15d, 0x1000
ja 0x14003d8e2
xor r12d, r12d
nop word cs:[rax + rax]
mov r8, r15
sub r8, r12
lea rdx, [rsp + r12]
add rdx, 0x60
cmp r8, r14
cmovae r8, r14
mov dword [rsp + 0x34], 0
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x20], rbp
push rsi
pop rcx
nop
mov r9, rbx
call sub.KERNEL32.dll_WriteFileEx
or eax, eax
je 0x14003d884
nop dword [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x34], 0
je 0x14003d7f0
mov ecx, dword [rsp + 0x38]
test ecx, ecx
jne 0x14003d88b
mov eax, dword [rsp + 0x3c]
add r12, rax
cmp r12, r15
je 0x14003d821
jbe 0x14003d7a0
jmp 0x14003d8ce
mov dword [rsp + 0x34], 0
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x20], rbp
nop
push rdi
pop rcx
lea rdx, [rsp + 0x60]
mov r8d, 0x1000
mov r9, rbx
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
jne 0x14003d754
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
push rcx
nop
pop rbx
shl rbx, 0x20
or rbx, 2
call fcn.140032960
cmp al, 0xb
jne 0x14003d89a
nop
push rbx
pop rcx
call fcn.1400635b0
jmp 0x14003d8a2
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
shl rcx, 0x20
or rcx, 2
call fcn.1400635b0
jmp 0x14003d8a2
mov rcx, rbx
call fcn.1400635b0
push rdi
nop
pop rcx
call sub.KERNEL32.dll_CloseHandle
push rsi
nop
pop rcx
call sub.KERNEL32.dll_CloseHandle
movaps xmm6, xmmword [rsp + 0x1060]
add rsp, 0x1078
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r12
mov rdx, r15
call fcn.14000e890
jmp 0x14003d8f6
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, r15
call fcn.14000e810
ud2
Function at 0x14003da40
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rbx, r8
mov r14, rdx
mov rdi, rcx
movzx eax, byte [0x1401262b8]
mov ecx, 0x10
mov edx, 8
call fcn.140005be0
test rax, rax
je 0x14003daf8
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x14003db50]
sub ebx, ebx
xor ecx, ecx
nop
push rdi
pop rdx
mov r9, rax
call sub.KERNEL32.dll_CreateThread
push rax
nop
pop rdx
test rax, rax
jne 0x14003daeb
mov rbx, qword [rsi]
mov r14, qword [rsi + 8]
push rbx
pop rcx
nop
call qword [r14]
cmp qword [r14 + 8], 0
je 0x14003daca
mov rdx, qword [r14 + 0x10]
push rbx
nop
pop rcx
call fcn.140005c70
mov edx, 8
push rsi
nop
pop rcx
call fcn.140005c70
call sub.KERNEL32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ebx, 1
nop
push rbx
pop rax
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 8
mov edx, 0x10
call fcn.140006d30
ud2

Function at 0x14003ddb0
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rax, r8
nop
push rcx
pop rsi
mov dword [rsp + 0x40], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov dword [rsp + 0x58], 7
mov qword [rsp + 0x5c], 0
mov word [rsp + 0x64], 0
mov byte [rsp + 0x60], 1
lea r8, [rsp + 0x40]
nop
push rdx
pop rcx
push rax
pop rdx
nop
call fcn.140058580
nop
push rdx
pop rdi
or rax, rax
je 0x14003de1f
nop
push rdi
pop rcx
call fcn.1400635b0
mov qword [rsi], 0
jmp 0x14003df4b
lea rcx, [rsp + 0x40]
push rdi
nop
pop rdx
call fcn.1400587a0
cmp dword [rsp + 0x40], 2
jne 0x14003de5c
mov rcx, qword [rsp + 0x48]
call fcn.1400635b0
mov qword [rsi], 0
mov rcx, rdi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp sub.KERNEL32.dll_CloseHandle
mov r12, qword [rsp + 0x78]
test rdi, rdi
je 0x14003deae
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]
nop
push rax
pop rcx
push rdi
pop rdx
nop
mov r8, rax
call sub.KERNEL32.dll_DuplicateHandle
or eax, eax
je 0x14003df2a
mov rbx, qword [rsp + 0x40]
jmp 0x14003deb0
xor ebx, ebx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
sub edx, edx
mov r8d, 2
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileMappingA
or rax, rax
je 0x14003df19
mov r14, rax
mov qword [rsp + 0x20], r12
push rax
nop
pop rcx
mov edx, 4
xor r8d, r8d
sub r9d, r9d
call sub.KERNEL32.dll_MapViewOfFile
mov r15, rax
mov rcx, r14
call sub.KERNEL32.dll_CloseHandle
test r15, r15
je 0x14003df19
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x14003df43
mov qword [rsi], 0
nop
push rbx
pop rcx
call sub.KERNEL32.dll_CloseHandle
jmp 0x14003df43
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
lea rcx, [rax + 2]
call fcn.1400635b0
mov qword [rsi], 0
push rdi
pop rcx
nop
call sub.KERNEL32.dll_CloseHandle
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140053bf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x88
movdqa xmmword [rsp + 0x70], xmm6
nop
push rcx
pop rsi
lea rcx, [rsp + 0x40]
call fcn.140064430
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
test rax, rax
je 0x140053c6a
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rdx
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x58]
call fcn.140050120
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x140053c65
movdqu xmm6, xmmword [rsp + 0x30]
mov rcx, rdi
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x140053c85
mov qword [rsi], rdi
movdqu xmmword [rsi + 8], xmm6
jmp 0x140053c76
mov rcx, qword [rsp + 0x30]
call fcn.1400635b0
mov qword [rsi], 0
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
ret
mov qword [rsi], 0
movq rax, xmm6
or rax, rax
je 0x140053c76
mov edx, 2
nop
push rdi
pop rcx
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
jmp fcn.140005c70

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

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1400a4100]
or ecx, ecx
je 0x14005514d
dec ecx
call fcn.1400a154c
cmp rax, 2
jb 0x1400550c0
cmp qword [rax + 8], 0
je 0x1400550c0
add rax, 0x10
jmp 0x140055147
mov ecx, dword [0x1400a4100]
or ecx, ecx
je 0x140055160
dec ecx
call fcn.1400a154c
cmp rax, 1
je 0x140055145
mov rsi, rax
test rax, rax
jne 0x14005512b
movzx eax, byte [0x1401262b8]
mov ecx, 0x20
mov edx, 8
call fcn.140005be0
or rax, rax
je 0x140055183
mov rsi, rax
lea rax, [0x1400a40e8]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400a4100]
test ecx, ecx
je 0x140055173
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 0x140055147
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1400a40e8]
call fcn.14005a4e0
mov ecx, eax
jmp 0x1400550a5
lea rcx, [0x1400a40e8]
call fcn.14005a4e0
mov ecx, eax
jmp 0x1400550d0
lea rcx, [0x1400a40e8]
call fcn.14005a4e0
mov ecx, eax
jmp 0x140055123
mov ecx, 8
mov edx, 0x20
call fcn.140006d30
ud2
Function at 0x140055620
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x1400a4088]
test ecx, ecx
je 0x140055700
dec ecx
call fcn.1400a154c
cmp rax, 2
jb 0x140055654
nop
push rax
pop rdi
cmp qword [rax + 8], 0
je 0x140055654
add rdi, 0x10
jmp 0x1400556f6
mov ecx, dword [0x1400a4088]
test ecx, ecx
je 0x140055713
dec ecx
call fcn.1400a154c
cmp rax, 1
je 0x1400556f4
nop
push rax
pop rsi
or rax, rax
jne 0x1400556c3
movzx eax, byte [0x1401262b8]
mov ecx, 0x18
mov edx, 8
call fcn.140005be0
or rax, rax
je 0x140055736
mov rsi, rax
lea rax, [0x1400a4070]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400a4088]
or ecx, ecx
je 0x140055726
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 0x1400556f6
test rcx, rcx
je 0x1400556f6
lock dec qword [rcx]
jne 0x1400556f6
call fcn.14008a4c0
jmp 0x1400556f6
xor edi, edi
push rdi
nop
pop rax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1400a4070]
call fcn.14005a4e0
mov ecx, eax
jmp 0x140055636
lea rcx, [0x1400a4070]
call fcn.14005a4e0
mov ecx, eax
jmp 0x140055664
lea rcx, [0x1400a4070]
call fcn.14005a4e0
mov ecx, eax
jmp 0x1400556bb
mov ecx, 8
mov edx, 0x18
call fcn.140006d30
ud2

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

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x1400a40a8]
or ecx, ecx
je 0x140055ae0
dec ecx
call fcn.1400a154c
cmp rax, 2
jb 0x140055a34
mov rdi, rax
cmp qword [rax + 8], 0
je 0x140055a34
add rdi, 0x10
jmp 0x140055ad6
mov ecx, dword [0x1400a40a8]
test ecx, ecx
je 0x140055af3
dec ecx
call fcn.1400a154c
cmp rax, 1
je 0x140055ad4
mov rsi, rax
or rax, rax
jne 0x140055aa3
movzx eax, byte [0x1401262b8]
mov ecx, 0x18
mov edx, 8
call fcn.140005be0
test rax, rax
je 0x140055b16
push rax
nop
pop rsi
lea rax, [0x1400a4090]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400a40a8]
or ecx, ecx
je 0x140055b06
dec ecx
push rsi
nop
pop rdx
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 0x140055ad6
test rcx, rcx
je 0x140055ad6
lock dec qword [rcx]
jne 0x140055ad6
call fcn.14008b080
jmp 0x140055ad6
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1400a4090]
call fcn.14005a4e0
mov ecx, eax
jmp 0x140055a16
lea rcx, [0x1400a4090]
call fcn.14005a4e0
mov ecx, eax
jmp 0x140055a44
lea rcx, [0x1400a4090]
call fcn.14005a4e0
mov ecx, eax
jmp 0x140055a9b
mov ecx, 8
mov edx, 0x18
call fcn.140006d30
ud2
Function at 0x140057b20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
push rcx
nop
pop rdi
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x140057bd4
dec ecx
call fcn.1400a154c
cmp rax, 2
jb 0x140057b51
cmp byte [rax + 8], 0
je 0x140057b51
add rax, 9
jmp 0x140057bcc
mov ecx, dword [rdi + 0x18]
or ecx, ecx
je 0x140057be3
dec ecx
call fcn.1400a154c
cmp rax, 1
je 0x140057bca
push rax
pop rbx
nop
or rax, rax
jne 0x140057ba7
movzx eax, byte [0x1401262b8]
mov ecx, 0x10
mov edx, 8
call fcn.140005be0
or rax, rax
je 0x140057bfe
nop
push rax
pop rbx
mov qword [rax], rdi
mov byte [rax + 8], 0
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x140057bf2
dec ecx
push rbx
pop rdx
nop
call sub.KERNEL32.dll_TlsSetValue
sub ecx, ecx
test rsi, rsi
je 0x140057bbd
cmp byte [rsi], 0
mov byte [rsi], 0
movzx eax, byte [rsi + 1]
cmove eax, ecx
mov ecx, eax
lea rax, [rbx + 9]
mov byte [rbx + 8], 1
mov byte [rbx + 9], cl
jmp 0x140057bcc
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
push rdi
pop rcx
nop
call fcn.14005a4e0
mov ecx, eax
jmp 0x140057b3a
nop
push rdi
pop rcx
call fcn.14005a4e0
mov ecx, eax
jmp 0x140057b5e
push rdi
pop rcx
nop
call fcn.14005a4e0
mov ecx, eax
jmp 0x140057b9f
mov ecx, 8
mov edx, 0x10
call fcn.140006d30
ud2
Function at 0x14005a4e0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x14005a565
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
nop
push rbx
pop rcx
sub edx, edx
sub r9d, r9d
call sub.KERNEL32.dll_InitOnceBeginInitialize
mov dword [rsp + 0x28], eax
cmp eax, 1
jne 0x14005a5a6
cmp dword [rsp + 0x2c], 0
je 0x14005a58a
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x14005a5c0
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x140126258]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x140126258], rsi
jne 0x14005a540
mov byte [0x140126251], 1
push rbx
nop
pop rcx
sub edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x14005a59c
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x14005a60c
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x14005a58f
mov edi, dword [rsp + 0x28]
jmp 0x14005a59c
mov edi, dword [rsi + 0x18]
jmp 0x14005a59a
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.1400347d0
ud2
push rbx
nop
pop rcx
mov edx, 4
sub 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.called__Result::unwrap____on_an__Err__value
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.14000db00
ud2
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.called__Result::unwrap____on_an__Err__value
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.140034820
ud2