joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800d0480
Capabilities:
Encrypt data using rc4 prga
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rax, qword [rcx + 0x20]
xor r14d, r14d
sub rax, 0x34
mov qword [rcx + 0x78], r14
mov qword [rcx + 0x28], rax
mov ebp, edx
mov rax, qword [rcx + 0x30]
mov rbx, rcx
mov word [rcx + 0x6a], r14w
mov esi, r14d
mov dword [rcx + 0x3c], r14d
mov qword [rcx + 0x70], rax
mov qword [rax + 0x10], rax
mov word [rcx + 0x68], r14w
cmp r14w, word [rcx + 0xb8]
jge 0x1800d05cb
movzx r10d, r14w
mov edi, r14d
mov rax, qword [rbx + 0xd0]
mov r9d, ebp
mov dword [rbx + 0x88], r14d
movzx edx, r10w
mov qword [rbx + 0x80], r14
mov rcx, rbx
movzx r8d, word [rdi + rax]
call fcn.1800d0960
test al, al
jne 0x1800d0666
mov rax, qword [rbx + 0xd0]
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 0x5c]
movzx r10d, word [rdi + rax]
lea eax, [r8 - 1]
test edx, eax
jne 0x1800d055b
cmp edx, dword [rbx + 0x60]
jl 0x1800d055b
cmp edx, dword [rbx + 0x64]
jg 0x1800d055b
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x1800d055b
mov rax, qword [rbx + 0x70]
movzx ecx, byte [rcx + 0x18]
xor cl, byte [rax + 0x18]
test cl, 8
jne 0x1800d055b
add qword [rbx + 0x30], 0xfffffffffffffffc
mov r9, qword [rbx + 0x70]
mov rax, qword [r9 + 0x10]
cmp qword [rbx + 0x30], rax
je 0x1800d057e
test byte [r9 + 0x18], 8
je 0x1800d057e
neg r8d
and r8d, edx
sub edx, r8d
cmp edx, dword [rbx + 8]
jmp 0x1800d058f
lea eax, [r8 - 1]
neg r8d
add eax, edx
and eax, r8d
sub eax, edx
cmp eax, dword [rbx + 8]
setge dl
mov rcx, rbx
call fcn.1800d1320
test al, al
jne 0x1800d0666
mov rax, qword [rbx + 0x80]
test rax, rax
je 0x1800d05b2
mov qword [r9 + 0x28], rax
movsx eax, word [rbx + 0xb8]
inc esi
add rdi, 2
inc r10w
cmp esi, eax
jl 0x1800d04e4
movzx edi, word [rbx + 0x68]
mov rdx, qword [rbx + 0x78]
cmp di, 1
jbe 0x1800d066a
test rdx, rdx
je 0x1800d066a
mov ebp, 0xffff
nop dword [rax + rax]
lea rsi, [rdx + 8]
cmp di, 1
jbe 0x1800d0608
movsxd rcx, dword [rdx + 0x1c]
mov rax, qword [rdx + 0x10]
lea r10, [rax + rcx*4]
jmp 0x1800d060b
mov r10, r14
mov qword [rsi], r10
test byte [rdx + 0x18], 8
mov r11d, dword [rdx + 0x20]
mov r8d, r11d
mov eax, dword [rdx + 0x1c]
je 0x1800d0626
dec r11d
add r11d, eax
jmp 0x1800d063d
sub r8d, eax
inc r8d
dec eax
mov dword [rdx + 0x20], r8d
movsxd rcx, eax
shl rcx, 2
add qword [rdx + 0x10], rcx
mov edx, r8d
mov rcx, rbx
call fcn.1800d1630
test al, al
jne 0x1800d0666
lea edx, [r11 + 1]
mov rcx, rbx
call fcn.1800d1630
test al, al
jne 0x1800d0666
mov rdx, qword [rsi]
add di, bp
jne 0x1800d05f0
jmp 0x1800d066e
mov al, 1
jmp 0x1800d0679
mov qword [rbx + 0x78], r14
mov rax, qword [rbx + 0x28]
cmp qword [rbx + 0x30], rax
setae al
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1800d6760
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push rbx
push rbp
sub rsp, 0x48
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x1800d677c
lea eax, [rcx + 0x28]
add rsp, 0x48
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rsi
xor r9d, r9d
mov qword [rsp + 0x40], r14
mov edx, 0x80000000
xor r14d, r14d
mov rcx, rbp
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1800d67d0
mov r14, qword [rsp + 0x40]
lea eax, [rsi + 2]
mov rsi, qword [rsp + 0x68]
add rsp, 0x48
pop rbp
pop rbx
ret
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800d68f5
mov rax, qword [rsp + 0x70]
cmp rax, 0x7fffffff
jg 0x1800d68f5
test rax, rax
je 0x1800d68f5
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rcx, rsi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
test rax, rax
je 0x1800d68f5
mov ecx, dword [rsp + 0x70]
xor r9d, r9d
mov dword [rbx + 8], ecx
xor r8d, r8d
mov rcx, rax
mov dword [rbx + 0xc], r14d
mov qword [rsp + 0x20], r14
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], r14
je 0x1800d686a
lea rax, [0x1800d6950]
jmp 0x1800d68c3
mov rcx, qword [rbx + 0x30]
xor edx, edx
movsxd r8, dword [rbx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x1800d68f5
mov edi, r14d
nop dword [rax + rax]
mov r8d, dword [rbx + 8]
lea r9, [rsp + 0x60]
mov edx, edi
sub r8d, edi
add rdx, qword [rbx]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800d68e3
add edi, dword [rsp + 0x60]
cmp edi, dword [rbx + 8]
jne 0x1800d6890
lea rax, [0x1800d6920]
mov rcx, rsi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx]
mov qword [rbx + 0x10], rax
xor eax, eax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], r14
jmp 0x1800d690a
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov r8, qword [rbx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x51
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop rbp
pop rbx
ret
Function at 0x1800d7fb0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x1800d7fbb
xor eax, eax
ret
lea r11, [0x1800fc160]
not ecx
cmp r8d, 8
jb 0x1800d8091
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x1800d7fe0
test r8d, r8d
je 0x1800d80bd
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x1800d80a0
not ecx
mov eax, ecx
ret
Function at 0x1800dcf40
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1800dcf7a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1800dcf7f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1800dcfc8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1800fc800]
cmp byte [rcx + rax], 0
je 0x1800dcfc8
dec r8
sub rdx, 1
jne 0x1800dcfae
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1404f9058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1404f91df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1404f9089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1404f906f
add dl, dl
jne 0x1404f9096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1404f90f6
xor eax, eax
add dl, dl
jne 0x1404f90a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1404f91ad
add dl, dl
jne 0x1404f90b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1404f90c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1404f90d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1404f90dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1404f90ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1404f907e
mov eax, 1
add dl, dl
jne 0x1404f9106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1404f9113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1404f90fb
sub eax, ebx
mov ebx, 1
jne 0x1404f914c
mov ecx, 1
add dl, dl
jne 0x1404f912e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1404f913b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1404f9123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1404f907e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1404f9168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1404f9175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1404f915d
cmp eax, 0x7d00
jae 0x1404f919b
cmp eax, 0x500
jb 0x1404f9196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1404f907e
cmp eax, 0x7f
ja 0x1404f919e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1404f907e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1404f91d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1404f907e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400013a0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
xor edx, edx
mov rdi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
nop dword [rax]
nop dword [rax + rax]
lea rdx, [rsp + 0x4c]
mov r8, rdi
sub r8, rdx
nop dword [rax + rax]
movzx ecx, word [rdx]
movzx eax, word [rdx + r8]
sub ecx, eax
jne 0x140001404
add rdx, 2
test eax, eax
jne 0x1400013f0
test ecx, ecx
je 0x14000142b
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400013e0
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
mov eax, dword [rsp + 0x28]
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

Function at 0x140001440
Capabilities:
Get file size
Read file on windows

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001481
xor eax, eax
add rsp, 0x40
pop rdi
ret
mov qword [rsp + 0x50], rbx
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x58], rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
movsxd rbx, eax
mov rdx, rbx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor r9d, r9d
mov qword [rsp + 0x20], 0
mov rdx, rax
mov r8d, ebx
mov rcx, rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rbx, qword [rsp + 0x50]
test eax, eax
je 0x1400014f4
cmp dword [rsi], 0x905a4d
jne 0x1400014f4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rsi, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x40
pop rdi
ret

Function at 0x140001690
Capabilities:
Enumerate gui resources

Disassembly:
sub rsp, 0x28
movsxd rdx, ecx
lea rcx, [0x140001640]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rax, qword [0x14000a1b8]
add rsp, 0x28
ret
Function at 0x1400076ec
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140007736
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140007736
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140007736
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140007736
cmp dword [rcx + 0x84], 0xe
jbe 0x140007736
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140007738
xor al, al
add rsp, 0x28
ret
Function at 0x1400076b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x140007740
cmp r11, r10
ja 0x1400077b6
cmp r10, rdx
ja 0x1400077c8
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x140007742
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140007720
jmp 0x1400077a4
ja 0x14000774a
mov r11, r10
cmp rax, r8
jne 0x1400076e4
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x140007780
mov rdi, r8
sub ecx, edx
jns 0x14000779b
jmp 0x1400077a6
cmp r8, rsi
je 0x1400077d7
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x1400077a6
xor al, 1
cmp rdi, rsi
jne 0x140007760
jmp 0x1400077a6
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.1400053f0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400049c0
lea rcx, [0x1400830d3]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140004d60
int3

Function at 0x14000910e
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140049028]
test ecx, ecx
je 0x140009127
dec ecx
add rsp, 0x28
jmp fcn.14004658c
lea rcx, [0x140049010]
call fcn.1400176f0
mov ecx, eax
jmp 0x14000911e

Function at 0x140009137
Capabilities:
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rdx
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x140009158
dec ecx
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.140046584
mov rcx, rax
call fcn.1400176f0
mov ecx, eax
jmp 0x14000914b
Function at 0x140014210
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 0x14001426b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14001426b
movzx eax, byte [r8 + rcx]
cmp eax, 0x49
je 0x140014286
cmp eax, 0x42
jne 0x14001426b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x140014336
cmp byte [r8 + r11], 0x5f
jne 0x140014336
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14001439e
mov rcx, rsi
xor edx, edx
call fcn.14000fc00
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.14000fc00
test al, al
jne 0x140014431
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400142c2
lea rdx, [0x14007f80b]
mov r8d, 1
call fcn.140004a40
test al, al
jne 0x140014431
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14001427a
xor r14d, r14d
lea rbx, [0x14007fb79]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x1400142f4
cmp byte [rax + rcx], 0x45
je 0x140014453
sub r14, 1
jb 0x140014319
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140014319
mov r8d, 2
mov rdx, rbx
call fcn.140004a40
test al, al
jne 0x140014431
mov rcx, rsi
call fcn.140011430
test al, al
jne 0x140014431
mov rax, qword [rsi]
test rax, rax
jne 0x1400142e0
jmp 0x14001427a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r9b, 1
cmp r11, r10
jae 0x1400143f8
movzx edx, byte [r8 + r11]
cmp dl, 0x5f
je 0x140014392
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14001437c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14001436b
add dl, 0xa9
jmp 0x14001437a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x1400143f8
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x1400143f8
movzx edx, bl
add rax, rdx
jae 0x140014340
jmp 0x1400143f8
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x1400143f8
cmp rax, rcx
jae 0x1400143f5
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14001444b
cmp qword [rsi + 0x20], 0
je 0x140014444
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.140014210
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14001427c
mov r9b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140014439
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, [0x14007fb58]
test r9b, r9b
cmovne rdx, rax
call fcn.140004a40
test al, al
je 0x140014439
mov dil, 2
jmp 0x14001427a
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14001427a
mov dil, 1
xor r9d, r9d
jmp 0x1400143fa
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14001427a
Function at 0x1400176f0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x140017775
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 0x1400177b6
cmp dword [rsp + 0x2c], 0
je 0x14001779a
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1400177ce
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x14008a108]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x14008a108], rsi
jne 0x140017750
mov byte [0x14008a100], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x1400177ac
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x140017818
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x14001779f
mov edi, dword [rsp + 0x28]
jmp 0x1400177ac
mov edi, dword [rsi + 0x18]
jmp 0x1400177aa
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.140017e00
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.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_std_src_threadlocal.rs
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.140004020
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_std_src_threadlocal.rs
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.140017e50
int3
Function at 0x140017cd0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x1400490f0]
test ecx, ecx
je 0x140017db0
dec ecx
call fcn.14004658c
cmp rax, 2
jb 0x140017d04
mov rdi, rax
cmp qword [rax + 8], 0
je 0x140017d04
add rdi, 0x10
jmp 0x140017da6
mov ecx, dword [0x1400490f0]
test ecx, ecx
je 0x140017dc3
dec ecx
call fcn.14004658c
cmp rax, 1
je 0x140017da4
mov rsi, rax
test rax, rax
jne 0x140017d73
movzx eax, byte [0x14008a128]
mov ecx, 0x18
mov edx, 8
call fcn.140002f10
test rax, rax
je 0x140017de6
mov rsi, rax
lea rax, [0x1400490d8]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400490f0]
test ecx, ecx
je 0x140017dd6
dec ecx
mov rdx, rsi
call fcn.140046584
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 0x140017da6
test rcx, rcx
je 0x140017da6
lock dec qword [rcx]
jne 0x140017da6
call fcn.1400176a0
jmp 0x140017da6
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1400490d8]
call fcn.1400176f0
mov ecx, eax
jmp 0x140017ce6
lea rcx, [0x1400490d8]
call fcn.1400176f0
mov ecx, eax
jmp 0x140017d14
lea rcx, [0x1400490d8]
call fcn.1400176f0
mov ecx, eax
jmp 0x140017d6b
mov ecx, 8
mov edx, 0x18
call fcn.1400034d0
int3
Function at 0x140019040
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1400490d0]
test ecx, ecx
je 0x1400190fd
dec ecx
call fcn.14004658c
cmp rax, 2
jb 0x140019070
cmp qword [rax + 8], 0
je 0x140019070
add rax, 0x10
jmp 0x1400190f7
mov ecx, dword [0x1400490d0]
test ecx, ecx
je 0x140019110
dec ecx
call fcn.14004658c
cmp rax, 1
je 0x1400190f5
mov rsi, rax
test rax, rax
jne 0x1400190db
movzx eax, byte [0x14008a128]
mov ecx, 0x20
mov edx, 8
call fcn.140002f10
test rax, rax
je 0x140019133
mov rsi, rax
lea rax, [0x1400490b8]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400490d0]
test ecx, ecx
je 0x140019123
dec ecx
mov rdx, rsi
call fcn.140046584
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov byte [rsi + 0x18], 0
jmp 0x1400190f7
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1400490b8]
call fcn.1400176f0
mov ecx, eax
jmp 0x140019055
lea rcx, [0x1400490b8]
call fcn.1400176f0
mov ecx, eax
jmp 0x140019080
lea rcx, [0x1400490b8]
call fcn.1400176f0
mov ecx, eax
jmp 0x1400190d3
mov ecx, 8
mov edx, 0x20
call fcn.1400034d0
int3