joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100003168
Capabilities:
Check if file exists
Get file attributes
Query environment variable
Query or enumerate registry value

Disassembly:
test rcx, rcx
je 0x100003298
push rbx
sub rsp, 0x160
mov rax, qword [0x100006110]
xor rax, rsp
mov qword [rsp + 0x150], rax
and dword [rsp + 0x34], 0
and qword [rsp + 0x38], 0
lea rax, [rsp + 0x38]
mov rbx, rcx
mov byte [rcx], 0
lea rdx, [0x100001860]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0x103
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100003270
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x34]
mov byte [rsp + rax + 0x40], 0
lea rax, [rsp + 0x30]
lea rdx, [0x100001426]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100003270
cmp dword [rsp + 0x34], 2
lea rcx, [rsp + 0x40]
jne 0x10000322f
mov r8d, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov dword [rsp + 0x30], eax
jmp 0x100003270
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x100003270
lea rdx, [rsp + 0x40]
mov ecx, 0x104
sub rdx, rbx
lea rax, [rcx + 0x7ffffefa]
test rax, rax
je 0x100003265
mov al, byte [rdx + rbx]
test al, al
je 0x100003265
mov byte [rbx], al
inc rbx
sub rcx, 1
jne 0x100003247
test rcx, rcx
jne 0x10000326d
dec rbx
mov byte [rbx], 0
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x100003280
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.100004680
add rsp, 0x160
pop rbx
ret
Function at 0x100004160
Capabilities:
Accept command line arguments

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
push rdi
push r12
push r13
sub rsp, 0x20
lea rdx, [rax + 0x10]
xor r12d, r12d
mov rbp, rcx
mov dword [rax + 0x10], r12d
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp rax, r12
je 0x10000423c
mov rdx, qword [rax]
mov rdi, r12
mov r13d, 0x7fffffff
cmp rdx, r12
je 0x1000041c5
mov rcx, r13
mov ebx, r12d
cmp word [rdx], r12w
je 0x1000041b8
add rdx, 2
sub rcx, 1
jne 0x1000041a8
cmp rcx, r12
je 0x1000041c5
mov rdi, r13
sub rdi, rcx
jmp 0x1000041ca
mov ebx, 0x80070057
cmp ebx, r12d
mov rcx, rax
cmovl rdi, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
inc rdi
cmp ebx, r12d
jl 0x100004241
mov rax, r12
cmp rbp, r12
je 0x10000420b
mov rcx, r13
mov rax, rbp
mov edx, r12d
cmp word [rax], r12w
je 0x100004203
add rax, 2
sub rcx, 1
jne 0x1000041f3
cmp rcx, r12
jne 0x100004234
mov rax, r12
mov edx, 0x80070057
cmp edx, r12d
lea rcx, [0x10000195c]
cmovl rax, r12
cmp rdi, rax
jae 0x100004228
lea rcx, [rbp + rdi*2]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_RegisterApplicationRestart]
mov ebx, eax
jmp 0x100004241
mov rax, r13
sub rax, rcx
jmp 0x100004210
mov ebx, 0x80004005
mov rbp, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x100004680
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x100006110]
jne 0x10000469b
rol rcx, 0x10
test cx, 0xffff
jne 0x100004697
ret 0
ror rcx, 0x10
jmp 0x10000498c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x100006210]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov r11, qword [0x100006308]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.ntdll.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x100004a11
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x100006210]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.ntdll.dll_RtlVirtualUnwind
jmp 0x100004a33
mov rax, qword [rsp + 0x88]
mov qword [0x100006308], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1000062a8], rax
mov rax, qword [0x100006308]
mov qword [0x100006180], rax
mov rax, qword [rsp + 0x90]
mov qword [0x100006290], rax
mov dword [0x100006170], 0xc0000409
mov dword [0x100006174], 1
mov rax, qword [0x100006110]
mov qword [rsp + 0x68], rax
mov rax, qword [0x100006118]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x100001390]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x100004828
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100004875
cmp rcx, 0xffffffffffffffff
je 0x100004875
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10000486d
cmp dword [rcx + 0x3c], edx
jl 0x10000486d
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10000486d
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x100004875
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140001070
Capabilities:
Execute command

Disassembly:
sub rsp, 0x28
lea rcx, str.Hello_World_
call fcn.140001010
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
add rsp, 0x28
ret

Function at 0x140001984
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400019ce
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400019ce
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400019ce
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400019ce
cmp dword [rcx + 0x84], 0xe
jbe 0x1400019ce
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400019d0
xor al, al
add rsp, 0x28
ret

Function at 0x140001120
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x88
mov r13d, 0xc1d6334d
movabs r14, 0x140001180
xor r15, r15
xor dword [r14 + r15*4], r13d
mov eax, r13d
shl eax, 0xd
xor r13d, eax
mov eax, r13d
shr eax, 0x11
xor r13d, eax
mov eax, r13d
shl eax, 5
xor r13d, eax
inc r15
cmp r15, 0x8e5
jb 0x14000113a
lea rcx, [0x140003514]
call r14
lea rcx, [0x14000351a]
lea rdx, [0x140003520]
jmp rax

Function at 0x140cbc000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0x140cbc00a
jmp 0x140cbe00f
jmp fcn.140881058
Function at 0x140008188
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x14000d868], rdi
je 0x1400081e8
cmp rax, rdi
jne 0x1400081db
mov r12d, 1
jmp 0x1400081e8
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400081c1
mov eax, dword [0x14000d860]
cmp eax, 1
jne 0x1400081fd
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x140008264
mov eax, dword [0x14000d860]
cmp eax, ebx
jne 0x14000825a
mov dword [0x14000d860], 1
lea r13, [0x140001548]
lea rdi, [0x140001530]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x14000824c
cmp eax, ebx
jne 0x14000824c
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x140008241
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000822a
cmp eax, ebx
je 0x140008264
mov eax, 0xff
jmp 0x1400083ac
mov dword [0x14000b554], 1
mov eax, dword [0x14000d860]
cmp eax, 1
jne 0x14000828c
lea rdx, [0x140001528]
lea rcx, [0x1400014b8]
call sub.msvcrt.dll__initterm
mov dword [0x14000d860], 2
cmp r12d, ebx
jne 0x14000829b
mov rax, rbx
xchg qword [0x14000d868], rax
cmp qword [0x14000d870], rbx
je 0x1400082c3
lea rcx, [0x14000d870]
call fcn.14000862c
cmp eax, ebx
je 0x1400082c3
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x14000d870]
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
jne 0x1400082d9
mov eax, 0xff
jmp 0x1400083ac
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x14000835e
cmp word [rcx], bx
je 0x1400082f4
cmp edx, ebx
jne 0x14000835e
cmp word [rcx], bx
je 0x14000830a
cmp word [rcx], 0x20
ja 0x14000830a
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400082f4
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140003b3c
mov dword [0x14000b550], eax
cmp dword [0x14000b534], ebx
jne 0x140008348
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000b554], ebx
jne 0x14000835c
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000b550]
jmp 0x1400083ac
cmp word [rcx], 0x22
jne 0x140008371
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400082e5
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
sub rsp, 0x28
call fcn.140170000
add rsp, 0x28
jmp 0x140008188
Function at 0x14000f880
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x14000f903
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
add rax, 1
cmp rax, 2
jb 0x14000f8ce
call fcn.140014640
mov r8, qword [rsp + 0x38]
mov rcx, qword [rsi]
mov rdx, rsi
mov r9, rax
call fcn.1400146c0
mov rcx, qword [rsi]
call fcn.140014650
mov qword [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb case.default.0x14000f8fc
mov qword [rsi], rdi
call fcn.140014640
mov r8, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
mov r9, rax
call fcn.140014680
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov edx, 0x803cccf6
div byte [rsp + rax*8 + 0x4a]
mov dl, 0xc
movsb byte [rdi], byte [rsi]
int1
int3
je 0x1400c3e27
div dword [rbx + 0x4424b2c5]
mov esi, 0xd8006972
call rbp
push qword [rsi]
invalid
invalid
invalid
adc al, byte [rbx - 0x50]
add dl, al
invalid

Function at 0x140010e90
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x230
mov r14, rcx
mov rax, qword [0x140065020]
xor rax, rsp
mov qword [rsp + 0x228], rax
lea rdi, [rsp + 0x20]
mov word [rdi], 0
xor ebx, ebx
lea r15, str.PROGRAMFILES
mov rsi, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rbx + r15]
mov word [rsp + 0x20], 0
mov r8d, 0x104
mov rdx, rdi
call rsi
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140010eff
mov edx, eax
mov rcx, rdi
mov r8, r14
call fcn.140010e20
test al, al
jne 0x140010f0d
add rbx, 8
cmp rbx, 0x18
jne 0x140010ecd
xor esi, esi
jmp 0x140010f10
mov sil, 1
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.14002a340
mov eax, esi
add rsp, 0x230
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140770fd0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140771157
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 0x140771001
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140770fe7
add dl, dl
jne 0x14077100e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14077106e
xor eax, eax
add dl, dl
jne 0x14077101d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140771125
add dl, dl
jne 0x14077102e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14077103b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140771048
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140771055
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140771062
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140770ff6
mov eax, 1
add dl, dl
jne 0x14077107e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14077108b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140771073
sub eax, ebx
mov ebx, 1
jne 0x1407710c4
mov ecx, 1
add dl, dl
jne 0x1407710a6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407710b3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14077109b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140770ff6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1407710e0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407710ed
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407710d5
cmp eax, 0x7d00
jae 0x140771113
cmp eax, 0x500
jb 0x14077110e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140770ff6
cmp eax, 0x7f
ja 0x140771116
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140770ff6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14077114a
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 0x140770ff6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x405460
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 0x4054f0
cmp r11, r10
ja 0x405566
cmp r10, rdx
ja 0x40557a
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x4054f2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x4054d0
jmp 0x405554
ja 0x4054fa
mov r11, r10
cmp rax, r8
jne 0x405494
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 0x405530
mov rdi, r8
sub ecx, edx
jns 0x40554b
jmp 0x405556
cmp r8, rsi
je 0x40558b
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x405556
xor al, 1
cmp rdi, rsi
jne 0x405510
jmp 0x405556
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.00403790
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.00402d80
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_cc66ad468955717ab92600c770da8c1601a4ff33library_alloc_srccollections_btree_navigate.rsinvalid_args
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.00403110
ud2

Function at 0x40bc50
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.00402800
cmp rax, rcx
je 0x40bc75
cmp rdx, 4
jae 0x40bc78
xor r8d, r8d
xor eax, eax
jmp 0x40bd10
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x00437620]
movdqa xmm3, xmmword [0x00437630]
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 0x40bca0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x40bd27
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x40bd10
ret
Function at 0x40d020
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x40d07b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x40d07b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x40d096
cmp eax, 0x42
jne 0x40d07b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x40d146
cmp byte [r9 + r11], 0x5f
jne 0x40d146
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x40d1ae
mov rcx, rsi
xor edx, edx
call fcn.004086c0
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.004086c0
test al, al
jne 0x40d241
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x40d0d2
lea rdx, [0x0043a4fc]
mov r8d, 1
call fcn.00402df0
test al, al
jne 0x40d241
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x40d08a
xor r14d, r14d
lea rbx, [0x0043a8b0]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x40d104
cmp byte [rax + rcx], 0x45
je 0x40d263
sub r14, 1
jb 0x40d129
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x40d129
mov r8d, 2
mov rdx, rbx
call fcn.00402df0
test al, al
jne 0x40d241
mov rcx, rsi
call fcn.00409ec0
test al, al
jne 0x40d241
mov rax, qword [rsi]
test rax, rax
jne 0x40d0f0
jmp 0x40d08a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x40d208
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x40d1a2
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x40d18c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x40d17b
add dl, 0xa9
jmp 0x40d18a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x40d208
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x40d208
movzx edx, bl
add rax, rdx
jae 0x40d150
jmp 0x40d208
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x40d208
cmp rax, rcx
jae 0x40d205
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x40d25b
cmp qword [rsi + 0x20], 0
je 0x40d254
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.0040d020
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x40d08c
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x40d249
lea rax, str.invalid_syntaxrecursion_limit_reached
lea rdx, [0x0043a870]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
add r8, 0x10
call fcn.00402df0
test al, al
je 0x40d249
mov dil, 2
jmp 0x40d08a
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x40d08a
mov dil, 1
xor r8d, r8d
jmp 0x40d20a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x40d08a
Function at 0x410560
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov ecx, dword [0x00436078]
test ecx, ecx
je 0x410653
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x410594
mov rdi, rax
cmp qword [rax + 8], 0
je 0x410594
add rdi, 0x10
jmp 0x410649
mov ecx, dword [0x00436078]
test ecx, ecx
je 0x410666
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x410647
mov rsi, rax
test rax, rax
jne 0x410617
mov qword [rsp + 0x30], 0
lea rax, [0x00436060]
mov qword [rsp + 0x28], rax
movzx eax, byte [0x00443030]
mov ecx, 0x20
mov edx, 8
call fcn.00401950
test rax, rax
je 0x410689
mov rsi, rax
movups xmm0, xmmword [rsp + 0x28]
movups xmm1, xmmword [rsp + 0x38]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov ecx, dword [0x00436078]
test ecx, ecx
je 0x410679
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
lea rdi, [rsi + 0x10]
cmp qword [rsi + 8], 0
mov rcx, qword [rsi + 0x18]
mov qword [rsi + 8], 1
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
je 0x410649
test rcx, rcx
je 0x410649
lock dec qword [rcx]
jne 0x410649
call fcn.004106d0
jmp 0x410649
xor edi, edi
mov rax, rdi
add rsp, 0x48
pop rdi
pop rsi
ret
lea rcx, [0x00436060]
call fcn.00410900
mov ecx, eax
jmp 0x410576
lea rcx, [0x00436060]
call fcn.00410900
mov ecx, eax
jmp 0x4105a4
lea rcx, [0x00436060]
call fcn.00410900
mov ecx, eax
jmp 0x41060f
mov ecx, 8
mov edx, 0x20
call fcn.00401db0
ud2
Function at 0x410900
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x410985
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 0x4109c6
cmp dword [rsp + 0x2c], 0
je 0x4109aa
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x4109e0
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x004430f0]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x004430f0], rsi
jne 0x410960
mov byte [0x004430e8], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x4109bc
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x410a2c
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x4109af
mov edi, dword [rsp + 0x28]
jmp 0x4109bc
mov edi, dword [rsi + 0x18]
jmp 0x4109ba
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.00410a90
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.called__Option::unwrap____on_a__None__value_rustc_cc66ad468955717ab92600c770da8c1601a4ff33library_alloc_srccollections_btree_navigate.rsinvalid_args
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.00402270
ud2
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.called__Option::unwrap____on_a__None__value_rustc_cc66ad468955717ab92600c770da8c1601a4ff33library_alloc_srccollections_btree_navigate.rsinvalid_args
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.00410ae0
ud2