joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140027e18
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140027e48
xor eax, eax
jmp 0x140027f0b
mov rbp, rbx
cmp word [rax], si
je 0x140027e6d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140027e54
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140027e50
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140027d68
movsxd r14, eax
test eax, eax
jne 0x140027eab
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140027e41
mov rcx, r14
call fcn.140022d50
mov rdi, rax
test rax, rax
jne 0x140027ec4
xor ecx, ecx
call fcn.14001fbe4
jmp 0x140027ea0
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140027d68
test eax, eax
jne 0x140027ef5
mov rcx, rdi
call fcn.14001fbe4
jmp 0x140027eff
xor ecx, ecx
call fcn.14001fbe4
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140027f28
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140027faf
mov rsi, rbx
cmp word [rax], bp
je 0x140027f6e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140027f58
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140027f54
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140022d50
mov rdi, rax
test rax, rax
je 0x140027f9c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140015210
mov rbp, rdi
xor ecx, ecx
call fcn.14001fbe4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14002d2e4
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.1400224a8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400224a8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002d434
cmp rax, 0xffffffffffffffff
je 0x14002d434
xor edi, edi
test rbp, rbp
jle 0x14002d3df
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001fb6c
mov rbx, rax
test rax, rax
jne 0x14002d36c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002d3d5
mov edx, 0x8000
mov ecx, r14d
call fcn.14001f328
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.140021c3c
cmp eax, 0xffffffff
je 0x14002d3b5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14002d37c
mov edx, r15d
mov ecx, r14d
call fcn.14001f328
jmp 0x14002d3d5
cmp byte [rsi + 0x38], dil
je 0x14002d3cc
cmp dword [rsi + 0x34], 5
jne 0x14002d3cc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], InitCommonControls
cmp byte [rsi + 0x30], dil
je 0x14002d3d5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001fbe4
jmp 0x14002d448
jns 0x14002d448
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400224a8
cmp rax, 0xffffffffffffffff
jne 0x14002d400
cmp byte [rsi + 0x30], dil
je 0x14002d448
mov edi, dword [rsi + 0x2c]
jmp 0x14002d448
mov ecx, r14d
call fcn.140028e7c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14002d448
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, InitCommonControls
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], InitCommonControls
jmp 0x14002d448
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14002d441
mov eax, dword [rsi + 0x2c]
jmp 0x14002d446
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400224a8
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 0x14002eca0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002ecc8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002ecc8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x18000c790
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rax, rdx
mov rsi, qword [rbp + 0x70]
mov rdi, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x60]
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 0x18000c810
cmp r11, r10
ja 0x18000c887
cmp r10, rdx
ja 0x18000c899
add r11, r9
xor r15d, r15d
nop dword [rax + rax]
cmp r14, r15
je 0x18000c812
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x18000c7f0
jmp 0x18000c874
ja 0x18000c81a
mov r11, r10
cmp rax, r8
jne 0x18000c7be
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 0x18000c850
mov rdi, r8
sub ecx, edx
jns 0x18000c86b
jmp 0x18000c876
cmp r8, rsi
je 0x18000c8a8
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x18000c876
xor al, 1
cmp rdi, rsi
jne 0x18000c830
jmp 0x18000c876
xor eax, eax
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.18000b2b0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.180009f70
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.18000b320
int3
Function at 0x180016280
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x1800162a5
cmp rax, rcx
je 0x1800162ab
cmp rdx, 4
jae 0x1800162af
xor eax, eax
xor r8d, r8d
jmp 0x180016340
pop rbp
jmp fcn.180009b00
xor eax, eax
pop rbp
ret
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x180072570]
movdqa xmm3, xmmword [0x180072580]
pxor xmm1, xmm1
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 0x1800162d0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x180016357
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x180016340
pop rbp
ret
Function at 0x180017250
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov r10, qword [rcx]
test r10, r10
je 0x1800172d4
mov r11, qword [rcx + 8]
mov r8, qword [rcx + 0x10]
cmp r8, r11
jae 0x1800172d4
movzx eax, byte [r10 + r8]
cmp eax, 0x49
mov rbx, rcx
je 0x1800172ed
cmp eax, 0x42
jne 0x1800172d4
lea rsi, [r8 + 1]
mov qword [rcx + 0x10], rsi
mov r9b, 1
cmp rsi, r11
jae 0x18001741d
cmp byte [r10 + rsi], 0x5f
jne 0x1800173ac
lea rax, [r8 + 2]
mov qword [rcx + 0x10], rax
xor eax, eax
cmp rax, r8
jae 0x18001741d
mov edx, dword [rcx + 0x18]
inc edx
cmp edx, 0x1f4
jbe 0x180017477
mov dil, 1
xor r9d, r9d
jmp 0x18001741f
xor edx, edx
call fcn.180012b00
mov esi, eax
add sil, sil
mov eax, esi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
inc r8
mov qword [rcx + 0x10], r8
xor edx, edx
call fcn.180012b00
test al, al
jne 0x18001745d
mov rdx, rbx
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x18001732c
lea rdx, [0x18009558b]
mov r8d, 1
call fcn.180009fe0
mov rdx, rbx
test al, al
jne 0x18001745d
mov rax, qword [rdx]
mov sil, 1
test rax, rax
je 0x1800172e0
xor r14d, r14d
lea rdi, [0x1800958e1]
nop word cs:[rax + rax]
mov rcx, qword [rdx + 0x10]
cmp rcx, qword [rdx + 8]
jae 0x180017364
cmp byte [rax + rcx], 0x45
je 0x1800174b0
sub r14, 1
jb 0x18001738c
mov rcx, qword [rdx + 0x20]
test rcx, rcx
je 0x18001738c
mov r8d, 2
mov rdx, rdi
call fcn.180009fe0
mov rdx, rbx
test al, al
jne 0x18001745d
mov rcx, rdx
call fcn.1800143d0
test al, al
jne 0x18001745d
mov rdx, rbx
mov rax, qword [rbx]
test rax, rax
jne 0x180017350
jmp 0x1800172e0
xor eax, eax
mov r14d, 0x3e
nop word cs:[rax + rax]
movzx edx, byte [r10 + rsi]
cmp dl, 0x5f
je 0x18001740d
lea edi, [rdx - 0x30]
cmp dil, 0xa
jb 0x1800173ef
lea edi, [rdx - 0x61]
cmp dil, 0x1a
jae 0x1800173e1
add dl, 0xa9
jmp 0x1800173ed
lea edi, [rdx - 0x41]
cmp dil, 0x1a
jae 0x18001741d
add dl, 0xe3
mov edi, edx
inc rsi
mov qword [rcx + 0x10], rsi
mul r14
jo 0x18001741d
movzx edx, dil
xor edi, edi
add rax, rdx
jb 0x18001741f
cmp rsi, r11
jb 0x1800173c0
jmp 0x18001741f
inc rsi
mov qword [rcx + 0x10], rsi
inc rax
jne 0x1800172af
xor edi, edi
mov rax, qword [rcx + 0x20]
test rax, rax
je 0x180017465
mov ecx, r9d
xor cl, 1
movzx ecx, cl
lea r8, [rcx + rcx*8]
add r8, 0x10
lea rcx, str.invalid_syntaxrecursion_limit_reached_for_______::closureshim_as__mut_const___dyn___unsafe_extern__
lea rdx, [0x1800958c0]
test r9b, r9b
cmovne rdx, rcx
mov rcx, rax
call fcn.180009fe0
mov rcx, rbx
test al, al
je 0x180017465
mov sil, 2
jmp 0x1800172e0
mov qword [rcx], 0
mov byte [rcx + 8], dil
xor esi, esi
jmp 0x1800172e0
cmp qword [rcx + 0x20], 0
je 0x180017470
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
movaps xmmword [rbp - 0x10], xmm1
movaps xmmword [rbp - 0x20], xmm0
mov qword [rcx + 0x10], rax
mov dword [rcx + 0x18], edx
mov rsi, rcx
call fcn.180017250
movaps xmm0, xmmword [rbp - 0x20]
movaps xmm1, xmmword [rbp - 0x10]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x1800172e2
inc rcx
mov qword [rdx + 0x10], rcx
jmp 0x1800172e0
Function at 0x18001a8f0
Capabilities:
Encode data using xor
Encrypt data using salsa20 or chacha
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rdx
mov rdi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x20
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
cmp eax, 0xc0000000
jb 0x18001a941
mov ebx, eax
lea rcx, [rsp + 0x20]
mov edx, 0x20
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x18001a991
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x50], xmm1
movaps xmmword [rsp + 0x40], xmm0
mov rax, qword [0x1800a40a0]
test rax, rax
je 0x18001a9ca
lea rbx, [rsp + 0x70]
test eax, 0x4000
jne 0x18001a9db
movaps xmm0, xmmword [rsp + 0x40]
movaps xmm1, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x80], xmm1
xorps xmm0, xmm0
movaps xmmword [rsp + 0x90], xmm0
jmp 0x18001a9ef
and ebx, 0x7fffffff
je 0x18001a941
movzx eax, byte [0x1800a40a8]
mov edx, 4
xor ecx, ecx
call fcn.18004b1f0
test rax, rax
je 0x18001aa39
mov dword [rax], ebx
mov rcx, qword [0x1800a4080]
xor edx, edx
mov r8, rax
call sub.KERNEL32.dll_HeapFree
jmp 0x18001aa0d
call fcn.18004fe40
lea rbx, [rsp + 0x70]
test eax, 0x4000
je 0x18001a96d
lea r8, [0x180095cfd]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.1800125c0
mov rax, qword [rdi + 0x30]
mov qword [rdi + 0x38], rax
movaps xmm0, xmmword [rbx]
movaps xmm1, xmmword [rbx + 0x10]
movaps xmm2, xmmword [rbx + 0x20]
movaps xmmword [rdi], xmm0
movaps xmmword [rdi + 0x10], xmm1
movaps xmmword [rdi + 0x20], xmm2
mov qword [rdi + 0x40], 0
mov rax, 0xffffffffffffff00
add rax, qword [rdi + 0x30]
mov qword [rdi + 0x38], rax
mov rcx, rdi
mov rdx, rsi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
jmp fcn.180010320
mov ecx, 4
mov edx, 4
call fcn.1800089f0
int3
Function at 0x18001bd70
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x18001bdb2
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 4
jb 0x18001bdba
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x18001bdcb
jmp 0x18001bde2
xor r10d, r10d
jmp 0x18001be6d
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x18001bde2
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x18001bdf9
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x18001be19
add r11, r8
jmp 0x18001bf4b
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x18001bee2
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x18001be90
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 4
jb 0x18001bf00
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x18001bf12
jmp 0x18001bf2d
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x18001bf2d
lea rcx, [rdx + r8]
movzx esi, word [r10 + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x18001bf47
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret
Function at 0x18001c010
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
movaps xmmword [rsp + 0x30], xmm6
mov ecx, dword [0x1800710c0]
test ecx, ecx
je 0x18001c03c
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x18001c055
add rax, 8
jmp 0x18001c0f0
lea rcx, [0x1800710a8]
call fcn.18001c5e0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x18001c033
je 0x18001c0ee
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
mov edx, 0x10
call sub.bcryptprimitives.dll_ProcessPrng
movaps xmm6, xmmword [rsp + 0x20]
movzx eax, byte [0x1800a40a8]
mov edx, 0x18
xor ecx, ecx
call fcn.18004b1f0
test rax, rax
je 0x18001c11d
mov rbx, rax
mov rsi, rax
lea rax, [0x1800710a8]
mov qword [rsi], rax
movups xmmword [rsi + 8], xmm6
mov ecx, dword [0x1800710c0]
test ecx, ecx
je 0x18001c0fd
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x1800710c0]
test ecx, ecx
je 0x18001c10d
dec ecx
add rbx, 8
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x18001c0e9
mov rcx, qword [0x1800a4080]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
mov rax, rbx
jmp 0x18001c0f0
xor eax, eax
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1800710a8]
call fcn.18001c5e0
mov ecx, eax
jmp 0x18001c0b3
lea rcx, [0x1800710a8]
call fcn.18001c5e0
mov ecx, eax
jmp 0x18001c0c7
mov ecx, 8
mov edx, 0x18
call fcn.1800089f0
int3
Function at 0x18001c5e0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rsi, rcx
cmp qword [rcx], 0
je 0x18001c675
mov rax, qword [0x1800a8030]
mov dword [rbp], 0
lea rbx, [rsi + 0x10]
mov r8, rbp
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.KERNEL32.dll_InitOnceBeginInitialize
mov dword [rbp - 4], eax
cmp eax, 1
jne 0x18001c6b4
cmp dword [rbp], 0
je 0x18001c698
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x18001c6c9
mov edi, eax
mov rax, qword [0x1800a4098]
nop word cs:[rax + rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1800a4098], rsi
jne 0x18001c650
mov eax, edi
inc eax
mov dword [rsi + 0x18], eax
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x18001c6a9
call sub.KERNEL32.dll_TlsAlloc
mov dword [rbp + 4], eax
cmp eax, 0xffffffff
je 0x18001c70b
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x18001c69d
mov edi, dword [rbp + 4]
jmp 0x18001c6a9
mov edi, dword [rsi + 0x18]
jmp 0x18001c6a7
mov edi, eax
mov ecx, dword [rbp + 4]
call sub.KERNEL32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov qword [rbp - 0x38], 0
lea rcx, [rbp - 4]
lea rdx, [rbp - 0x38]
call fcn.18001dab0
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
mov qword [rbp - 0x28], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rdx, str.library_std_src_syspalwindows_thread_local_key.rs
lea rcx, [rbp - 0x38]
call fcn.1800095d0
lea rax, str.out_of_TLS_indexes
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
mov qword [rbp - 0x28], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 4]
lea rdx, [rbp - 0x38]
call fcn.18001db00
int3

Function at 0x18001cec0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x180098648]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x18001cf2f
mov rcx, rsi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rbp]
cmp eax, 0x103
je 0x18001cf5b
test eax, eax
js 0x18001cf3b
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x18001cf51
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, [0x1800986a8]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.18001c7a0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.18001c850
mov ecx, 7
int 0x29
ud2
Function at 0x18001eab0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov ecx, dword [0x1800710e0]
test ecx, ecx
je 0x18001eadd
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x18001eaf6
add rax, 8
jmp 0x18001eb91
lea rcx, [0x1800710c8]
call fcn.18001c5e0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x18001ead4
je 0x18001eb8f
movzx eax, byte [0x1800a40a8]
mov edx, 0x10
xor ecx, ecx
call fcn.18004b1f0
test rax, rax
je 0x18001ebba
mov rbx, rax
mov rsi, rax
lea rax, [0x1800710c8]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1800710e0]
test ecx, ecx
je 0x18001eb9a
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x1800710e0]
test ecx, ecx
je 0x18001ebaa
dec ecx
add rbx, 8
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x18001eb8a
mov rax, qword [rdi + 8]
test rax, rax
je 0x18001eb79
lock dec qword [rax]
jne 0x18001eb79
mov rcx, qword [rdi + 8]
call fcn.18001e820
mov rcx, qword [0x1800a4080]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
mov rax, rbx
jmp 0x18001eb91
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x1800710c8]
call fcn.18001c5e0
mov ecx, eax
jmp 0x18001eb3c
lea rcx, [0x1800710c8]
call fcn.18001c5e0
mov ecx, eax
jmp 0x18001eb50
mov ecx, 8
mov edx, 0x10
call fcn.1800089f0
int3

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

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov ecx, dword [0x180071080]
test ecx, ecx
je 0x18001ed9d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x18001edb6
add rax, 8
jmp 0x18001ee39
lea rcx, [0x180071068]
call fcn.18001c5e0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x18001ed94
je 0x18001ee37
movzx eax, byte [0x1800a40a8]
mov edx, 0x18
xor ecx, ecx
call fcn.18004b1f0
test rax, rax
je 0x18001ee62
mov rbx, rax
mov rsi, rax
lea rax, [0x180071068]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov byte [rsi + 0x10], 0
mov ecx, dword [0x180071080]
test ecx, ecx
je 0x18001ee42
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x180071080]
test ecx, ecx
je 0x18001ee52
dec ecx
add rbx, 8
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x18001ee32
mov rcx, qword [0x1800a4080]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
mov rax, rbx
jmp 0x18001ee39
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x180071068]
call fcn.18001c5e0
mov ecx, eax
jmp 0x18001edfc
lea rcx, [0x180071068]
call fcn.18001c5e0
mov ecx, eax
jmp 0x18001ee10
mov ecx, 8
mov edx, 0x18
call fcn.1800089f0
int3