joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180092180
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x18012e970], ebp
je 0x1800921d7
cmp rbx, 0x20
jae 0x1800921c0
xor ecx, ecx
jmp 0x1800921c2
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18012e970], ebp
jne 0x1800921b6
cmp qword [0x18012e978], r15
je 0x1800922d1
test rdi, rdi
jne 0x1800921f7
mov ecx, esi
call fcn.180091cf0
mov ebp, eax
jmp 0x1800922d6
mov ecx, dword [0x180133c4c]
mov ebx, r15d
test ecx, ecx
je 0x18009221f
mov r8, qword [0x180133c40]
mov rax, r8
nop
cmp rdi, qword [rax]
je 0x180092229
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180092210
mov ebp, 4
jmp 0x1800922d6
cmp ebx, 0xffffffff
je 0x18009221f
mov eax, ebx
imul rdx, rax, 0x38
movzx eax, byte [rdx + r8 + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x1800922c8
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.180091a10
mov edx, esi
mov ecx, ebx
call fcn.180091bc0
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x1800922d6
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800922b2
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x1800922a8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x180092280
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18012e978]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1800922d6
neg esi
sbb ebp, ebp
add ebp, 6
jmp 0x1800922d6
mov ebp, 2
xchg dword [0x18012e970], r15d
mov rbx, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x1800a1740
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbp
lea rbp, [rsp - 0x12e0]
mov eax, 0x13e0
call fcn.1800b2390
sub rsp, rax
movaps xmmword [rsp + 0x13d0], xmm6
movaps xmmword [rsp + 0x13c0], xmm7
mov rax, qword [0x18012b038]
xor rax, rsp
mov qword [rbp + 0x12b0], rax
movaps xmm6, xmm1
movaps xmm7, xmm0
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rbp + 0x12a4], 0xffffffff
mov edx, 1
mov dword [rsp + 0x24], eax
nop word [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x24], eax
inc rdx
cmp rdx, 0x270
jb 0x1800a17a0
movsd xmm3, qword [0x1801153a0]
xorps xmm1, xmm1
mov edx, 0x270
xorps xmm4, xmm4
cvtss2sd xmm1, xmm6
mov dword [rsp + 0x20], edx
mov r10d, 2
movsd xmm6, qword [0x180115480]
xorps xmm5, xmm5
cvtss2sd xmm4, xmm7
xorps xmm2, xmm2
cmp edx, 0x270
jne 0x1800a1852
lea r8, [rsp + 0x28]
mov r9d, edx
nop dword [rax]
nop word [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x1800a1810
mov edx, dword [rsp + 0x20]
jmp 0x1800a193f
cmp edx, 0x4e0
jb 0x1800a193f
xor r8d, r8d
nop dword [rax]
nop word [rax + rax]
mov edx, dword [rbp + r8*4 + 0x8e4]
xor edx, dword [rbp + r8*4 + 0x8e8]
btr edx, 0x1f
xor edx, dword [rbp + r8*4 + 0x8e4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [rbp + r8*4 + 0xf18]
xor ecx, edx
mov dword [rsp + r8*4 + 0x24], ecx
inc r8
cmp r8, 0xe3
jb 0x1800a1870
mov r8d, 0xe3
nop dword [rax]
mov edx, dword [rbp + r8*4 + 0x8e4]
xor edx, dword [rbp + r8*4 + 0x8e8]
btr edx, 0x1f
xor edx, dword [rbp + r8*4 + 0x8e4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [rbp + r8*4 - 0x468]
xor ecx, edx
mov dword [rsp + r8*4 + 0x24], ecx
inc r8
cmp r8, 0x26f
jb 0x1800a18c0
mov edx, dword [rbp + 0x12a0]
xor edx, dword [rsp + 0x24]
btr edx, 0x1f
xor edx, dword [rbp + 0x12a0]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, edx
xor ecx, dword [rbp + 0x554]
xor edx, edx
mov dword [rbp + 0x8e0], ecx
mov dword [rsp + 0x20], edx
mov eax, edx
xorps xmm0, xmm0
inc edx
mov ecx, dword [rsp + rax*4 + 0x24]
mov eax, ecx
shr eax, 0xb
and eax, dword [rbp + 0x12a4]
xor ecx, eax
mov dword [rsp + 0x20], edx
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
cvtsi2sd xmm0, rax
subsd xmm0, xmm5
mulsd xmm0, xmm3
mulsd xmm3, xmm6
addsd xmm2, xmm0
sub r10, 1
jne 0x1800a17f2
divsd xmm2, xmm3
subsd xmm1, xmm4
xorps xmm0, xmm0
mulsd xmm1, xmm2
addsd xmm1, xmm4
cvtsd2ss xmm0, xmm1
mov rcx, qword [rbp + 0x12b0]
xor rcx, rsp
call fcn.1800b0ef0
movaps xmm6, xmmword [rsp + 0x13d0]
movaps xmm7, xmmword [rsp + 0x13c0]
add rsp, 0x13e0
pop rbp
ret
Function at 0x1800a2030
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov rsi, rcx
mov dword [rsp + 0x20], 0
lea rcx, str.appdata
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rdi, rax
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1800a2066
call fcn.1800b0398
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rbx
lea r8, [rsp + 0x30]
mov edx, eax
mov rcx, rsi
call fcn.18001ab20
mov dword [rsp + 0x20], 7
mov rcx, rsi
call fcn.1800309a0
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.18001b180
mov rcx, rax
call fcn.1800a1ed0
mov rax, rsi
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x1800b0198
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1800b021c
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1800cccc0]
cmp byte [rcx + rax], 0
je 0x1800b021c
dec r8
sub rdx, 1
jne 0x1800b0202
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140005990
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 0x140005a20
cmp r11, r10
ja 0x140005a96
cmp r10, rdx
ja 0x140005aaa
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x140005a22
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140005a00
jmp 0x140005a84
ja 0x140005a2a
mov r11, r10
cmp rax, r8
jne 0x1400059c4
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 0x140005a60
mov rdi, r8
sub ecx, edx
jns 0x140005a7b
jmp 0x140005a86
cmp r8, rsi
je 0x140005abb
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140005a86
xor al, 1
cmp rdi, rsi
jne 0x140005a40
jmp 0x140005a86
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.140003d30
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140003300
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.1400036a0
ud2

Function at 0x1400085ae
Capabilities:
Access peb ldr_data
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, 0x28
mov esi, ecx
mov eax, 0x30
mov rax, qword gs:[eax]
mov rax, qword [rax + 0x60]
mov rdi, qword [rax + 0x18]
add rdi, 0x10
mov rdi, qword [rdi]
movzx edx, word [rdi + 0x58]
mov rcx, qword [rdi + 0x60]
call fcn.14000869d
cmp eax, 0x1edab0ed
jne 0x1400085d6
mov r14, qword [rdi + 0x30]
movsxd rax, dword [r14 + 0x3c]
mov eax, dword [rax + r14 + 0x88]
test rax, rax
je 0x14000866e
mov edi, dword [rax + r14 + 0x18]
mov ecx, dword [rax + r14 + 0x1c]
add rcx, r14
mov qword [rsp + 0x20], rcx
mov r12d, dword [rax + r14 + 0x20]
add r12, r14
mov r13d, dword [rax + r14 + 0x24]
add r13, r14
xor ebx, ebx
xor r15d, r15d
cmp r15, rdi
je 0x140008670
mov rbp, r15
mov ecx, dword [r12 + r15*4]
add rcx, r14
mov rax, rcx
mov rdx, rax
inc rax
cmp byte [rdx], 0
jne 0x14000863b
lea r15, [rbp + 1]
sub rdx, rcx
call fcn.14000869d
cmp eax, esi
jne 0x140008629
movzx ecx, word [r13 + rbp*2]
cmp rdi, rcx
jbe 0x14000868c
mov rax, qword [rsp + 0x20]
mov ebx, dword [rax + rcx*4]
add rbx, r14
jmp 0x140008670
xor ebx, ebx
movzx eax, word [rbx + 4]
add rbx, 0x12
mov rdx, rbx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, str.src_external_libraries_rust_syscalls_src_syscall_resolve.rs
mov rdx, rdi
call fcn.140002a20
ud2
Function at 0x14000869d
Capabilities:
Hash data using djb2

Disassembly:
mov eax, 0x1505
xor r8d, r8d
cmp r8, rdx
jae 0x1400086d9
mov r9b, byte [rcx + r8]
test r9b, r9b
jne 0x1400086b8
inc r8
jmp 0x1400086a5
lea r10d, [r9 - 0x20]
cmp r9b, 0x61
movzx r9d, r9b
movzx r10d, r10b
cmovb r10d, r9d
imul r9d, eax, 0x21
movzx eax, r10b
add eax, r9d
jmp 0x1400086b3
ret

Function at 0x14000bfc0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.140002e90
cmp rax, rcx
je 0x14000bfe5
cmp rdx, 4
jae 0x14000bfe8
xor eax, eax
xor r8d, r8d
jmp 0x14000c080
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x1400374b0]
movdqa xmm3, xmmword [0x1400374c0]
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 0x14000c010
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14000c097
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14000c080
ret
Function at 0x14000d390
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 0x14000d3eb
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14000d3eb
movzx eax, byte [r8 + rcx]
cmp eax, 0x49
je 0x14000d406
cmp eax, 0x42
jne 0x14000d3eb
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x14000d4b6
cmp byte [r8 + r11], 0x5f
jne 0x14000d4b6
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14000d51e
mov rcx, rsi
xor edx, edx
call fcn.140008a00
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.140008a00
test al, al
jne 0x14000d5b1
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000d442
lea rdx, [0x14003a16b]
mov r8d, 1
call fcn.140003380
test al, al
jne 0x14000d5b1
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14000d3fa
xor r14d, r14d
lea rbx, [0x14003a4d9]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x14000d474
cmp byte [rax + rcx], 0x45
je 0x14000d5d3
sub r14, 1
jb 0x14000d499
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000d499
mov r8d, 2
mov rdx, rbx
call fcn.140003380
test al, al
jne 0x14000d5b1
mov rcx, rsi
call fcn.14000a230
test al, al
jne 0x14000d5b1
mov rax, qword [rsi]
test rax, rax
jne 0x14000d460
jmp 0x14000d3fa
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r9b, 1
cmp r11, r10
jae 0x14000d578
movzx edx, byte [r8 + r11]
cmp dl, 0x5f
je 0x14000d512
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14000d4fc
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14000d4eb
add dl, 0xa9
jmp 0x14000d4fa
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x14000d578
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x14000d578
movzx edx, bl
add rax, rdx
jae 0x14000d4c0
jmp 0x14000d578
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x14000d578
cmp rax, rcx
jae 0x14000d575
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14000d5cb
cmp qword [rsi + 0x20], 0
je 0x14000d5c4
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.14000d390
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14000d3fc
mov r9b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000d5b9
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, [0x14003a4b8]
test r9b, r9b
cmovne rdx, rax
call fcn.140003380
test al, al
je 0x14000d5b9
mov dil, 2
jmp 0x14000d3fa
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14000d3fa
mov dil, 1
xor r9d, r9d
jmp 0x14000d57a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14000d3fa
Function at 0x140010940
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x1400109c5
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 0x140010a06
cmp dword [rsp + 0x2c], 0
je 0x1400109ea
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140010a20
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x140044150]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x140044150], rsi
jne 0x1400109a0
mov byte [0x140044148], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x1400109fc
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x140010a6c
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x1400109ef
mov edi, dword [rsp + 0x28]
jmp 0x1400109fc
mov edi, dword [rsi + 0x18]
jmp 0x1400109fa
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.140010ec0
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_82e1608dfa6e0b5569232559e3d385fea5a93112library_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
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.140002960
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_82e1608dfa6e0b5569232559e3d385fea5a93112library_alloc_srccollections_btree_navigate.rsIndex_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.140010f10
ud2
Function at 0x140010d90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x140036078]
test ecx, ecx
je 0x140010e70
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140010dc4
mov rdi, rax
cmp qword [rax + 8], 0
je 0x140010dc4
add rdi, 0x10
jmp 0x140010e66
mov ecx, dword [0x140036078]
test ecx, ecx
je 0x140010e83
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140010e64
mov rsi, rax
test rax, rax
jne 0x140010e33
movzx eax, byte [0x1400440a0]
mov ecx, 0x18
mov edx, 8
call fcn.140001cf0
test rax, rax
je 0x140010ea6
mov rsi, rax
lea rax, [0x140036060]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140036078]
test ecx, ecx
je 0x140010e96
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 0x140010e66
test rcx, rcx
je 0x140010e66
lock dec qword [rcx]
jne 0x140010e66
call fcn.1400108f0
jmp 0x140010e66
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x140036060]
call fcn.140010940
mov ecx, eax
jmp 0x140010da6
lea rcx, [0x140036060]
call fcn.140010940
mov ecx, eax
jmp 0x140010dd4
lea rcx, [0x140036060]
call fcn.140010940
mov ecx, eax
jmp 0x140010e2b
mov ecx, 8
mov edx, 0x18
call fcn.140002150
ud2

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

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x140036098]
test ecx, ecx
je 0x14001152f
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400114b9
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x14001151e
mov ecx, dword [0x140036098]
test ecx, ecx
je 0x140011542
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140011524
mov rsi, rax
test rax, rax
jne 0x140011518
movzx eax, byte [0x1400440a0]
mov ecx, 0x10
mov edx, 8
call fcn.140001cf0
test rax, rax
je 0x140011565
mov rsi, rax
lea rax, [0x140036080]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x140036098]
test ecx, ecx
je 0x140011555
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
jmp 0x140011526
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140036080]
call fcn.140010940
mov ecx, eax
jmp 0x1400114a5
lea rcx, [0x140036080]
call fcn.140010940
mov ecx, eax
jmp 0x1400114c5
lea rcx, [0x140036080]
call fcn.140010940
mov ecx, eax
jmp 0x140011510
mov ecx, 8
mov edx, 0x10
call fcn.140002150
ud2
Function at 0x1400120f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x140036058]
test ecx, ecx
je 0x1400121ad
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140012120
cmp qword [rax + 8], 0
je 0x140012120
add rax, 0x10
jmp 0x1400121a7
mov ecx, dword [0x140036058]
test ecx, ecx
je 0x1400121c0
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400121a5
mov rsi, rax
test rax, rax
jne 0x14001218b
movzx eax, byte [0x1400440a0]
mov ecx, 0x20
mov edx, 8
call fcn.140001cf0
test rax, rax
je 0x1400121e3
mov rsi, rax
lea rax, [0x140036040]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140036058]
test ecx, ecx
je 0x1400121d3
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 0x1400121a7
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140036040]
call fcn.140010940
mov ecx, eax
jmp 0x140012105
lea rcx, [0x140036040]
call fcn.140010940
mov ecx, eax
jmp 0x140012130
lea rcx, [0x140036040]
call fcn.140010940
mov ecx, eax
jmp 0x140012183
mov ecx, 8
mov edx, 0x20
call fcn.140002150
ud2
Function at 0x140034270
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140035010
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140035010
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1400342e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140044214]
mov rbx, rcx
test esi, esi
jle 0x140034410
mov rax, qword [0x140044218]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14003432b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400343b5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140034310
mov rcx, rbx
call fcn.140034d30
mov rdi, rax
test rax, rax
je 0x140034432
mov rax, qword [0x140044218]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140034e70
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140044218]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140034417
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400343ae
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400343c0
add dword [0x140044214], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140044218]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400343ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140034270
nop dword [rax]
xor esi, esi
jmp 0x140034338
mov rax, qword [0x140044218]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140034270
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140034270
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400349a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140044280]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140044260]
test rbx, rbx
je 0x1400349fc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400349f3
test rsi, rsi
je 0x1400349f3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400349d8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140034d30
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14003d570]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140034d50
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140034d58
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140034d50
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140034dad
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140034da4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140034d50
add rax, 0x28
cmp rax, r9
jne 0x140034d90
xor eax, eax
ret

Function at 0x140034db0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14003d570]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140034dcf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140034dd8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140034dcf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140034e70
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14003d570]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140034e8f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140034e98
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret