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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x140083180]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, r8
mov rdi, rdx
mov ecx, dword [0x14008a730]
mov rax, qword gs:[0x58]
mov edx, 0x130
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x14008a0d0], ecx
jg 0x1400557d6
mov eax, ebx
cmp rbx, rax
jne 0x140055798
xor ecx, ecx
test rbx, rbx
setne cl
xor eax, eax
test ebx, ebx
setne al
cmp ecx, eax
jne 0x140055798
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
mov rcx, qword [0x14008a0c8]
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x140055819
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14005d470
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
mov ecx, 0x5b6
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.GenerateBlock_size
lea rcx, [rsp + 0x20]
call fcn.14000d780
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140055424
lea rdx, [0x14007fa40]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [0x14008a0d0]
call fcn.14005df70
cmp dword [0x14008a0d0], 0xffffffff
jne 0x140055740
lea rcx, [0x14008a0c8]
call fcn.140055338
lea rcx, [0x1400624d0]
call fcn.14005d9f8
nop
lea rcx, [0x14008a0d0]
call fcn.14005df04
jmp 0x140055740
mov ecx, eax
call fcn.14005585c
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [0x14006aa88]
lea rcx, [rsp + 0x20]
call fcn.14000d780
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140055424
lea rdx, [0x14007fa40]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x140056c60
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
xor r14d, r14d
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
cmp r8, 8
jb 0x140056cd3
mov rbp, r8
shr rbp, 3
imul rax, rbp, 0xfffffffffffffff8
add rdi, rax
mov r8d, 8
lea rcx, [rsp + 0x58]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov r8d, 8
lea rcx, [rsp + 0x50]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsp + 0x50]
add rsi, 8
xor rax, qword [rsp + 0x58]
add rbx, 8
or r14, rax
sub rbp, 1
jne 0x140056c92
mov rcx, r14
shr rcx, 0x20
or ecx, r14d
mov edx, ecx
mov eax, ecx
shr edx, 8
or edx, ecx
shr eax, 0x10
and edx, 0xff00
or edx, eax
movzx eax, cl
shr edx, 8
or edx, eax
test rdi, rdi
je 0x140056d15
sub rsi, rbx
movzx ecx, byte [rsi + rbx]
movzx eax, byte [rbx]
inc rbx
xor ecx, eax
or edx, ecx
sub rdi, 1
jne 0x140056d01
mov rbx, qword [rsp + 0x40]
test edx, edx
mov rbp, qword [rsp + 0x48]
sete al
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x140056d30
Capabilities:
Encode data using xor

Disassembly:
test r9, r9
je 0x140056df6
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rbx, r9
mov r15d, 4
mov rdi, r8
mov rsi, rdx
mov r14, rcx
cmp rbx, r15
jb 0x140056dc1
mov rbp, rbx
shr rbp, 2
imul rax, rbp, 0xfffffffffffffffc
add rbx, rax
mov r8, r15
lea rcx, [rsp + 0x20]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov r8, r15
lea rcx, [rsp + 0x68]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x68]
lea rdx, [rsp + 0x24]
xor eax, dword [rsp + 0x20]
mov r8, r15
mov rcx, r14
mov dword [rsp + 0x24], eax
call sub.VCRUNTIME140.dll_memcpy
add r14, r15
add rsi, r15
add rdi, r15
sub rbp, 1
jne 0x140056d76
test rbx, rbx
je 0x140056dde
sub rsi, rdi
sub r14, rdi
mov al, byte [rsi + rdi]
xor al, byte [rdi]
mov byte [r14 + rdi], al
inc rdi
sub rbx, 1
jne 0x140056dcc
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x140056df8
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x140056ea5
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rbx, r8
mov r14d, 4
mov rsi, rdx
mov rdi, rcx
cmp rbx, r14
jb 0x140056e7d
mov rbp, rbx
shr rbp, 2
imul rax, rbp, 0xfffffffffffffffc
add rbx, rax
mov r8, r14
lea rcx, [rsp + 0x68]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov r8, r14
lea rcx, [rsp + 0x60]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x60]
lea rdx, [rsp + 0x20]
xor eax, dword [rsp + 0x68]
mov r8, r14
mov rcx, rdi
mov dword [rsp + 0x20], eax
call sub.VCRUNTIME140.dll_memcpy
add rdi, r14
add rsi, r14
sub rbp, 1
jne 0x140056e35
test rbx, rbx
je 0x140056e93
sub rsi, rdi
mov al, byte [rsi + rdi]
xor byte [rdi], al
inc rdi
sub rbx, 1
jne 0x140056e85
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x14005cdc4
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movdqu xmm1, xmmword [rcx]
mov r9d, 4
shl edx, 2
mov r8, rcx
movdqu xmm0, xmmword [rcx + rdx*4]
movdqu xmmword [rcx], xmm0
movdqu xmmword [rcx + rdx*4], xmm1
add edx, 0xfffffffc
cmp edx, r9d
jbe 0x14005ce13
aesimc xmm0, xmmword [r8 + rdx*4]
mov ecx, r9d
add r9d, 4
aesimc xmm1, xmmword [r8 + rcx*4]
movdqu xmmword [r8 + rcx*4], xmm0
movdqu xmmword [r8 + rdx*4], xmm1
add edx, 0xfffffffc
cmp r9d, edx
jb 0x14005cdea
mov eax, r9d
aesimc xmm0, xmmword [r8 + rax*4]
movdqu xmmword [r8 + rax*4], xmm0
ret

Function at 0x14005e510
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001babc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001babc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027e04
cmp rax, 0xffffffffffffffff
je 0x140027e04
xor edi, edi
test rbp, rbp
jle 0x140027daf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001e0e0
mov rbx, rax
test rax, rax
jne 0x140027d3c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027da5
mov edx, 0x8000
mov ecx, r14d
call fcn.140015690
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001c7bc
cmp eax, 0xffffffff
je 0x140027d85
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027d4c
mov edx, r15d
mov ecx, r14d
call fcn.140015690
jmp 0x140027da5
cmp byte [rsi + 0x38], dil
je 0x140027d9c
cmp dword [rsi + 0x34], 5
jne 0x140027d9c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027da5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001a168
jmp 0x140027e18
jns 0x140027e18
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001babc
cmp rax, 0xffffffffffffffff
jne 0x140027dd0
cmp byte [rsi + 0x30], dil
je 0x140027e18
mov edi, dword [rsi + 0x2c]
jmp 0x140027e18
mov ecx, r14d
call fcn.140016c88
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027e18
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140027e18
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027e11
mov eax, dword [rsi + 0x2c]
jmp 0x140027e16
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001babc
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140001964
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400019ae
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400019ae
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400019ae
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400019ae
cmp dword [rcx + 0x84], 0xe
jbe 0x1400019ae
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400019b0
xor al, al
add rsp, 0x28
ret
Function at 0x10009e20
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 0x10009eb0
cmp r11, r10
ja 0x10009f26
cmp r10, rdx
ja 0x10009f3a
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x10009eb2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x10009e90
jmp 0x10009f14
ja 0x10009eba
mov r11, r10
cmp rax, r8
jne 0x10009e54
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 0x10009ef0
mov rdi, r8
sub ecx, edx
jns 0x10009f0b
jmp 0x10009f16
cmp r8, rsi
je 0x10009f4b
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x10009f16
xor al, 1
cmp rdi, rsi
jne 0x10009ed0
jmp 0x10009f16
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.10007fd0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.100075a0
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.10007940
ud2

Function at 0x10010580
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.10007130
cmp rax, rcx
je 0x100105a5
cmp rdx, 4
jae 0x100105a8
xor eax, eax
xor r8d, r8d
jmp 0x10010640
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x100475c0]
movdqa xmm3, xmmword [0x100475d0]
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 0x100105d0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x10010657
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x10010640
ret
Function at 0x10011780
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 0x100117db
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x100117db
movzx eax, byte [r8 + rcx]
cmp eax, 0x49
je 0x100117f6
cmp eax, 0x42
jne 0x100117db
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x100118a6
cmp byte [r8 + r11], 0x5f
jne 0x100118a6
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x1001190e
mov rcx, rsi
xor edx, edx
call fcn.1000ccd0
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.1000ccd0
test al, al
jne 0x100119a1
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x10011832
lea rdx, [0x104a84f3]
mov r8d, 1
call fcn.10007620
test al, al
jne 0x100119a1
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x100117ea
xor r14d, r14d
lea rbx, [0x104a8861]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x10011864
cmp byte [rax + rcx], 0x45
je 0x100119ca
sub r14, 1
jb 0x10011889
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x10011889
mov r8d, 2
mov rdx, rbx
call fcn.10007620
test al, al
jne 0x100119a1
mov rcx, rsi
call fcn.1000e570
test al, al
jne 0x100119a1
mov rax, qword [rsi]
test rax, rax
jne 0x10011850
jmp 0x100117ea
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r9b, 1
cmp r11, r10
jae 0x10011968
movzx edx, byte [r8 + r11]
cmp dl, 0x5f
je 0x10011902
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x100118ec
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x100118db
add dl, 0xa9
jmp 0x100118ea
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x10011968
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x10011968
movzx edx, bl
add rax, rdx
jae 0x100118b0
jmp 0x10011968
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x10011968
cmp rax, rcx
jae 0x10011965
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x100119a9
cmp qword [rsi + 0x20], 0
je 0x100119c3
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.10011780
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x100117ec
mov r9b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x100119b8
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, [0x104a8840]
test r9b, r9b
cmovne rdx, rax
call fcn.10007620
test al, al
je 0x100119b8
mov dil, 2
jmp 0x100117ea
mov dil, 1
xor r9d, r9d
mov rcx, qword [rsi + 0x20]
test rcx, rcx
jne 0x10011973
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x100117ea
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x100117ea
Function at 0x10014d90
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x10014e15
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 0x10014e56
cmp dword [rsp + 0x2c], 0
je 0x10014e3a
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x10014e70
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x104b60d8]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x104b60d8], rsi
jne 0x10014df0
mov byte [0x104b60d0], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x10014e4c
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x10014ebc
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x10014e3f
mov edi, dword [rsp + 0x28]
jmp 0x10014e4c
mov edi, dword [rsi + 0x18]
jmp 0x10014e4a
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.10015320
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, [0x104ab268]
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.10006be0
ud2
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, [0x104ab268]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.10015370
ud2
Function at 0x10014f00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov ecx, dword [0x10046090]
test ecx, ecx
je 0x10014f30
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x10014f49
mov rsi, rax
cmp qword [rax + 8], 0
je 0x10014f49
add rsi, 0x10
jmp 0x1001500d
lea rcx, [0x10046078]
call fcn.10014d90
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x10014f1d
mov ecx, dword [0x10046090]
test ecx, ecx
je 0x10015030
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1001504d
mov rdi, rax
test rax, rax
jne 0x10014fde
movzx eax, byte [0x104b6120]
mov rcx, qword [0x104b60c8]
test rcx, rcx
jne 0x10014f9b
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x1001506c
mov rcx, rax
mov qword [0x104b60c8], rax
mov r8d, 0x18
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x1001506c
mov rdi, rax
lea rax, [0x10046078]
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x10046090]
test ecx, ecx
je 0x10015059
dec ecx
mov rdx, rdi
call sub.KERNEL32.dll_TlsSetValue
lea rsi, [rdi + 0x10]
mov rcx, qword [rdi + 0x10]
cmp qword [rdi + 8], 0
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], 0
je 0x1001500d
test rcx, rcx
je 0x1001500d
lock dec qword [rcx]
jne 0x1001500d
call fcn.10014d30
mov rdi, qword [rsi]
test rdi, rdi
jne 0x10015026
call fcn.100143a0
mov rdi, rax
cmp qword [rsi], 0
jne 0x1001507d
mov qword [rsi], rdi
lock inc qword [rdi]
jg 0x1001504f
ud2
lea rcx, [0x10046078]
call fcn.10014d90
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x10014f68
xor edi, edi
mov rax, rdi
add rsp, 0x58
pop rdi
pop rsi
ret
lea rcx, [0x10046078]
call fcn.10014d90
mov ecx, eax
jmp 0x10014fd6
mov ecx, 8
mov edx, 0x18
call fcn.100063f0
ud2
lea rax, str.reentrant_init
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 1
lea rax, [0x104ab268]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
lea rdx, str._rustc_82e1608dfa6e0b5569232559e3d385fea5a93112librarycore_srccellonce.rs
lea rcx, [rsp + 0x28]
call fcn.10006be0
ud2
Function at 0x10016ea0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x10046070]
test ecx, ecx
je 0x10016ecd
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x10016ee6
cmp qword [rax + 8], 0
je 0x10016ee6
add rax, 0x10
add rsp, 0x20
pop rsi
ret
lea rcx, [0x10046058]
call fcn.10014d90
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x10016ebc
mov ecx, dword [0x10046070]
test ecx, ecx
je 0x10016f91
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x10016fae
mov rsi, rax
test rax, rax
jne 0x10016f73
movzx eax, byte [0x104b6120]
mov rcx, qword [0x104b60c8]
test rcx, rcx
jne 0x10016f38
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x10016fc6
mov rcx, rax
mov qword [0x104b60c8], rax
mov r8d, 0x20
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x10016fc6
mov rsi, rax
lea rax, [0x10046058]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x10046070]
test ecx, ecx
je 0x10016fb6
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
add rsp, 0x20
pop rsi
ret
lea rcx, [0x10046058]
call fcn.10014d90
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x10016f05
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x10046058]
call fcn.10014d90
mov ecx, eax
jmp 0x10016f6b
mov ecx, 8
mov edx, 0x20
call fcn.100063f0
ud2
Function at 0x1003a1d0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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.1003acc0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.1003acc0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x1003a240
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x104b6174]
mov r12, rcx
test ebx, ebx
jle 0x1003a370
mov rax, qword [0x104b6178]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x1003a28c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1003a313
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x1003a270
mov rcx, r12
call fcn.1003a9d0
mov rsi, rax
test rax, rax
je 0x1003a392
mov rax, qword [0x104b6178]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.1003ab00
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x104b6178]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1003a377
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1003a30c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1003a320
add dword [0x104b6174], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x104b6178]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1003a30c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1003a1d0
nop dword [rax]
xor ebx, ebx
jmp 0x1003a297
mov rax, qword [0x104b6178]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1003a1d0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1003a1d0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1003a640
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x104b61a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x104b6180]
test rbx, rbx
je 0x1003a694
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x1003a68b
test r12, r12
je 0x1003a68b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1003a670
lea rcx, [0x104b61a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]