joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800023c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov rax, qword gs:[0x60]
mov qword [rsp + 0x10], rax
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x10]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
sub rax, 0x10
mov qword [rsp + 0x30], rax
mov dword [rsp], 0
mov rax, qword [rsp + 0x10]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov qword [rsp + 8], rax
jmp 0x180002427
mov rax, qword [rsp + 8]
mov rax, qword [rax]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x10]
mov rax, qword [rax + 0x18]
add rax, 0x20
cmp qword [rsp + 8], rax
je 0x180002467
mov rax, qword [rsp + 8]
sub rax, 0x10
mov qword [rsp + 0x20], rax
mov eax, dword [rsp + 0x50]
cmp dword [rsp], eax
jne 0x18000245d
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x30]
jmp 0x180002469
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
jmp 0x18000241a
xor eax, eax
add rsp, 0x48
ret
Function at 0x180002740
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x168
mov rax, qword [0x180008008]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x180]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180002791
xor eax, eax
jmp 0x1800028ef
mov rax, qword [rsp + 0x38]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x180]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x4550
je 0x1800027c4
mov rax, qword [rsp + 0x30]
jmp 0x1800028ef
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
mov rdi, rax
lea rsi, [rcx + 0x18]
mov ecx, 0xf0
rep movsb byte [rdi], byte [rsi]
mov eax, 8
imul rax, rax, 0
cmp dword [rsp + rax + 0xd0], 0
jne 0x1800027f9
mov rax, qword [rsp + 0x30]
jmp 0x1800028ef
mov eax, 8
imul rax, rax, 0
mov eax, dword [rsp + rax + 0xd0]
mov rcx, qword [rsp + 0x180]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x180]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x180]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x180]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x20], 0
jmp 0x180002881
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x20], eax
jae 0x1800028ea
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x180]
add rcx, rax
mov rax, rcx
mov rdx, qword [rsp + 0x188]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x1800028e8
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x180]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
jmp 0x1800028ea
jmp 0x180002877
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1800041e0
add rsp, 0x168
pop rdi
pop rsi
ret
Function at 0x180002d80
Capabilities:
Contain obfuscated stackstrings
Get system information on windows

Disassembly:
sub rsp, 0x1a8
mov rax, qword [0x180008008]
xor rax, rsp
mov qword [rsp + 0x198], rax
mov qword [rsp + 0x20], 0
mov byte [rsp + 0x180], 0x47
mov byte [rsp + 0x181], 0x65
mov byte [rsp + 0x182], 0x74
mov byte [rsp + 0x183], 0x43
mov byte [rsp + 0x184], 0x75
mov byte [rsp + 0x185], 0x72
mov byte [rsp + 0x186], 0x72
mov byte [rsp + 0x187], 0x65
mov byte [rsp + 0x188], 0x6e
mov byte [rsp + 0x189], 0x74
mov byte [rsp + 0x18a], 0x54
mov byte [rsp + 0x18b], 0x68
mov byte [rsp + 0x18c], 0x72
mov byte [rsp + 0x18d], 0x65
mov byte [rsp + 0x18e], 0x61
mov byte [rsp + 0x18f], 0x64
mov byte [rsp + 0x190], 0
mov byte [rsp + 0x191], 0x5f
mov byte [rsp + 0x192], 0x74
mov ecx, 2
call fcn.1800023c0
lea rdx, [rsp + 0x180]
mov rcx, rax
call fcn.180002740
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov dword [rsp + 0x60], 0x11c
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x68], 1
jbe 0x180002e85
mov byte [0x180008ab0], 1
call qword [rsp + 0x20]
mov qword [0x180008aa0], rax
mov ecx, 1
call fcn.1800023c0
mov qword [0x180008a90], rax
call fcn.180002d10
movzx eax, al
test eax, eax
jne 0x180002eb1
xor al, al
jmp 0x180002ee4
lea rdx, [0x180002a30]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
mov qword [0x180008a88], rax
cmp qword [0x180008a88], 0
jne 0x180002ed8
xor al, al
jmp 0x180002ee4
lea rcx, [0x180002730]
call fcn.180002910
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.1800041e0
add rsp, 0x1a8
ret

Function at 0x180002f50
Capabilities:
Enumerate processes

Disassembly:
sub rsp, 0x288
mov rax, qword [0x180008008]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0x238
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x180002fa2
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.notepad.exe
lea rcx, [rsp + 0x5c]
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
je 0x180002fc5
mov eax, dword [rsp + 0x38]
mov dword [0x180008ac0], eax
jmp 0x180002fd9
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x180002fa2
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1800041e0
add rsp, 0x288
ret
Function at 0x140016fb4
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp dword [0x140021118], 0
mov r14, rdx
mov r15, rcx
lea rbx, [0x140021128]
jne 0x140017001
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, rbx
mov dword [0x140021150], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x140021118], 1
mov ecx, dword [0x140021150]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x1400170d6
mov rcx, qword [0x140020444]
lea edx, [rax + 8]
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x140017101
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x140021120]
test rax, rax
je 0x140017051
mov qword [rax], rbp
mov rcx, rbx
mov qword [rbp + 8], rax
mov qword [0x140021120], rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
lea r9, [rbp + 0x20]
mov r8, rdi
mov rcx, rax
mov rdx, rbx
mov dword [rsp + 0x20], 0x100000
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x18]
lea r8, [0x14001711c]
mov r9, rbp
mov dword [rsp + 0x28], 8
or dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov ecx, dword [0x140021150]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x140020444]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x140017101
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov qword [rbp + 0x10], rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x140001f0c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001f56
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001f56
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001f56
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001f56
cmp dword [rcx + 0x84], 0xe
jbe 0x140001f56
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001f58
xor al, al
add rsp, 0x28
ret
Function at 0x140004f10
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 0x140004fa0
cmp r11, r10
ja 0x140005016
cmp r10, rdx
ja 0x14000502a
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x140004fa2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140004f80
jmp 0x140005004
ja 0x140004faa
mov r11, r10
cmp rax, r8
jne 0x140004f44
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 0x140004fe0
mov rdi, r8
sub ecx, edx
jns 0x140004ffb
jmp 0x140005006
cmp r8, rsi
je 0x14000503b
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140005006
xor al, 1
cmp rdi, rsi
jne 0x140004fc0
jmp 0x140005006
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.140003240
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140002830
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.140002bc0
ud2

Function at 0x14000b700
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.1400022b0
cmp rax, rcx
je 0x14000b725
cmp rdx, 4
jae 0x14000b728
xor r8d, r8d
xor eax, eax
jmp 0x14000b7c0
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14003c620]
movdqa xmm3, xmmword [0x14003c630]
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 0x14000b750
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14000b7d7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14000b7c0
ret
Function at 0x14000cad0
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 0x14000cb2b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14000cb2b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x14000cb46
cmp eax, 0x42
jne 0x14000cb2b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x14000cbf6
cmp byte [r9 + r11], 0x5f
jne 0x14000cbf6
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14000cc5e
mov rcx, rsi
xor edx, edx
call fcn.140008170
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.140008170
test al, al
jne 0x14000ccf1
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000cb82
lea rdx, [0x14003f494]
mov r8d, 1
call fcn.1400028a0
test al, al
jne 0x14000ccf1
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14000cb3a
xor r14d, r14d
lea rbx, [0x14003f848]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x14000cbb4
cmp byte [rax + rcx], 0x45
je 0x14000cd13
sub r14, 1
jb 0x14000cbd9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000cbd9
mov r8d, 2
mov rdx, rbx
call fcn.1400028a0
test al, al
jne 0x14000ccf1
mov rcx, rsi
call fcn.140009970
test al, al
jne 0x14000ccf1
mov rax, qword [rsi]
test rax, rax
jne 0x14000cba0
jmp 0x14000cb3a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x14000ccb8
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x14000cc52
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14000cc3c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14000cc2b
add dl, 0xa9
jmp 0x14000cc3a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x14000ccb8
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x14000ccb8
movzx edx, bl
add rax, rdx
jae 0x14000cc00
jmp 0x14000ccb8
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x14000ccb8
cmp rax, rcx
jae 0x14000ccb5
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14000cd0b
cmp qword [rsi + 0x20], 0
je 0x14000cd04
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.14000cad0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14000cb3c
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000ccf9
lea rax, str.invalid_syntaxrecursion_limit_reached
lea rdx, [0x14003f808]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
add r8, 0x10
call fcn.1400028a0
test al, al
je 0x14000ccf9
mov dil, 2
jmp 0x14000cb3a
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14000cb3a
mov dil, 1
xor r8d, r8d
jmp 0x14000ccba
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14000cb3a
Function at 0x140010010
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov ecx, dword [0x140048068]
test ecx, ecx
je 0x140010103
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140010044
mov rdi, rax
cmp qword [rax + 8], 0
je 0x140010044
add rdi, 0x10
jmp 0x1400100f9
mov ecx, dword [0x140048068]
test ecx, ecx
je 0x140010116
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400100f7
mov rsi, rax
test rax, rax
jne 0x1400100c7
mov qword [rsp + 0x30], 0
lea rax, [0x140048050]
mov qword [rsp + 0x28], rax
movzx eax, byte [0x140048120]
mov ecx, 0x20
mov edx, 8
call fcn.140001400
test rax, rax
je 0x140010139
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 [0x140048068]
test ecx, ecx
je 0x140010129
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 0x1400100f9
test rcx, rcx
je 0x1400100f9
lock dec qword [rcx]
jne 0x1400100f9
call fcn.140010180
jmp 0x1400100f9
xor edi, edi
mov rax, rdi
add rsp, 0x48
pop rdi
pop rsi
ret
lea rcx, [0x140048050]
call fcn.1400103b0
mov ecx, eax
jmp 0x140010026
lea rcx, [0x140048050]
call fcn.1400103b0
mov ecx, eax
jmp 0x140010054
lea rcx, [0x140048050]
call fcn.1400103b0
mov ecx, eax
jmp 0x1400100bf
mov ecx, 8
mov edx, 0x20
call fcn.140001860
ud2
Function at 0x1400103b0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x140010435
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 0x140010476
cmp dword [rsp + 0x2c], 0
je 0x14001045a
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140010490
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x1400481e0]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1400481e0], rsi
jne 0x140010410
mov byte [0x1400481d8], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x14001046c
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x1400104dc
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x14001045f
mov edi, dword [rsp + 0x28]
jmp 0x14001046c
mov edi, dword [rsi + 0x18]
jmp 0x14001046a
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.140010540
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.140001d20
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.140010590
ud2
Function at 0x140010840
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x50
mov rax, qword [rcx]
cmp byte [rax], 0
mov byte [rax], 0
je 0x140010a66
mov byte [rsp + 0x2e], 0
mov rax, qword [0x140048170]
cmp rax, 3
jne 0x140010a12
cmp byte [rsp + 0x2e], 0
jne 0x140010a27
mov ecx, dword [0x140048088]
test ecx, ecx
je 0x140010a2d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14001089d
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x140010939
mov ecx, dword [0x140048088]
test ecx, ecx
je 0x140010a40
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x1400108eb
mov rsi, rax
cmp rax, 1
jne 0x140010933
lea rax, [0x1400408e8]
mov qword [rsp + 0x20], rax
lea rcx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destructionlibrary_std_src_threadlocal.rs
lea r9, [0x1400400b8]
lea r8, [rsp + 0x2f]
mov edx, 0x46
call fcn.1400035d0
ud2
movzx eax, byte [0x140048120]
mov ecx, 0x10
mov edx, 8
call fcn.140001400
test rax, rax
je 0x140010aab
mov rsi, rax
lea rax, [0x140048070]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x140048088]
test ecx, ecx
je 0x140010a53
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
mov rax, qword [0x140048138]
cmp rax, rsi
jne 0x14001096d
mov eax, dword [0x140048168]
inc eax
jne 0x14001098d
lea rcx, str.lock_count_overflow_in_reentrant_mutexlibrary_std_src_sync_remutex.rs
lea r8, [0x140040c20]
mov edx, 0x26
call fcn.140003840
ud2
lea rcx, [0x140048130]
call sub.KERNEL32.dll_TryAcquireSRWLockExclusive
test al, al
je 0x140010a27
mov qword [0x140048138], rsi
mov eax, 1
mov dword [0x140048168], eax
mov qword [rsp + 0x30], 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x46], 0
cmp qword [0x140048140], 0
jne 0x140010a80
mov qword [0x140048140], 0xffffffffffffffff
lea rcx, [0x140048148]
call fcn.140010ba0
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [0x140048158], xmm1
movups xmmword [0x140048148], xmm0
inc qword [0x140048140]
dec dword [0x140048168]
jne 0x140010a27
mov qword [0x140048138], 0
lea rcx, [0x140048130]
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
jmp 0x140010a27
lea rcx, [rsp + 0x2e]
call fcn.140010b10
cmp byte [rsp + 0x2e], 0
je 0x140010875
add rsp, 0x50
pop rsi
ret
lea rcx, [0x140048070]
call fcn.1400103b0
mov ecx, eax
jmp 0x140010885
lea rcx, [0x140048070]
call fcn.1400103b0
mov ecx, eax
jmp 0x1400108ad
lea rcx, [0x140048070]
call fcn.1400103b0
mov ecx, eax
jmp 0x14001092b
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_cc66ad468955717ab92600c770da8c1601a4ff33library_alloc_srccollections_btree_navigate.rsinvalid_args
lea r8, str.library_std_src_synconce.rs
mov edx, 0x2b
call fcn.140002bc0
ud2
lea rax, [0x140040868]
mov qword [rsp + 0x20], rax
lea rcx, str.already_borrowedlibrary_std_srcio_stdio.rs
lea r9, [0x1400400d8]
lea r8, [rsp + 0x2f]
mov edx, 0x10
call fcn.1400035d0
ud2
mov ecx, 8
mov edx, 0x10
call fcn.140001860
ud2
Function at 0x140011980
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x140048048]
test ecx, ecx
je 0x140011a3d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400119b0
cmp qword [rax + 8], 0
je 0x1400119b0
add rax, 0x10
jmp 0x140011a37
mov ecx, dword [0x140048048]
test ecx, ecx
je 0x140011a50
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140011a35
mov rsi, rax
test rax, rax
jne 0x140011a1b
movzx eax, byte [0x140048120]
mov ecx, 0x20
mov edx, 8
call fcn.140001400
test rax, rax
je 0x140011a73
mov rsi, rax
lea rax, [0x140048030]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140048048]
test ecx, ecx
je 0x140011a63
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 0x140011a37
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140048030]
call fcn.1400103b0
mov ecx, eax
jmp 0x140011995
lea rcx, [0x140048030]
call fcn.1400103b0
mov ecx, eax
jmp 0x1400119c0
lea rcx, [0x140048030]
call fcn.1400103b0
mov ecx, eax
jmp 0x140011a13
mov ecx, 8
mov edx, 0x20
call fcn.140001860
ud2

Function at 0x1400145d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
movzx r11d, byte [rdx + 0x38]
cmp r11b, 1
ja 0x140014638
movzx r10d, byte [rdx + 0x10]
movzx r8d, byte [rdx + 0x3a]
xor eax, eax
movzx r9d, r10b
test r8b, r8b
jne 0x140014786
cmp r10b, 5
jb 0x140014786
mov r10, qword [rdx]
mov rax, qword [rdx + 8]
xor esi, esi
test r11b, r11b
jne 0x140014628
cmp r9b, 6
je 0x140014628
mov esi, 2
cmp rax, 2
jb 0x14001482d
cmp rsi, rax
jne 0x140014749
xor eax, eax
jmp 0x140014786
xor eax, eax
xor r8d, r8d
xor r10d, r10d
add rax, r10
lea rdi, [r10 + rsi]
inc rdi
cmp rdi, rax
invalid
sete al
movzx r10d, byte [r10 + rsi]
invalid
test al, 1
jne 0x14001477b
cmp r10b, 0x2e
jne 0x14001477b
lea r8, [0x140040a30]
mov ecx, 2
jmp 0x140014823