joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140025c34
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14001408c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140025cbe
cmp byte [rbp - 0x21], r15b
je 0x140025cb9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140025cf4
call fcn.14001d63c
test eax, eax
jne 0x140025ce0
cmp byte [rbp - 0x21], r15b
je 0x140025cd8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140025cf4
cmp byte [rbp - 0x21], r15b
je 0x140025cf1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140013b74
test eax, eax
jne 0x140025d94
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14001408c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140025d33
cmp byte [rbp - 0x21], r15b
je 0x140025d68
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140025d68
call fcn.14001d63c
test eax, eax
jne 0x140025d54
cmp byte [rbp - 0x21], r15b
je 0x140025d4d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140025d68
cmp byte [rbp - 0x21], r15b
je 0x140025d65
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140013b74
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140025d94
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140025d97
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140025da5
mov rcx, rdi
call fcn.140019488
cmp byte [rbp + 0x3f], r15b
je 0x140025db4
mov rcx, qword [rbp + 0x27]
call fcn.140019488
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140027420
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.14001adc4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001adc4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027570
cmp rax, 0xffffffffffffffff
je 0x140027570
xor edi, edi
test rbp, rbp
jle 0x14002751b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001d3b0
mov rbx, rax
test rax, rax
jne 0x1400274a8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027511
mov edx, 0x8000
mov ecx, r14d
call fcn.140014f68
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.14001baa0
cmp eax, 0xffffffff
je 0x1400274f1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400274b8
mov edx, r15d
mov ecx, r14d
call fcn.140014f68
jmp 0x140027511
cmp byte [rsi + 0x38], dil
je 0x140027508
cmp dword [rsi + 0x34], 5
jne 0x140027508
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027511
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140019488
jmp 0x140027584
jns 0x140027584
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001adc4
cmp rax, 0xffffffffffffffff
jne 0x14002753c
cmp byte [rsi + 0x30], dil
je 0x140027584
mov edi, dword [rsi + 0x2c]
jmp 0x140027584
mov ecx, r14d
call fcn.140016568
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027584
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 0x140027584
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14002757d
mov eax, dword [rsi + 0x2c]
jmp 0x140027582
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001adc4
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 0x140028680
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400286a8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400286a8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140004000
Capabilities:
Encode data using xor

Disassembly:
xor rcx, rcx
sub rcx, 0xffffffffffffffb6
lea rax, [entry0]
movabs rbx, 0x6ed8bcd50e1ab3b7
xor qword [rax + 0x27], rbx
sub rax, 0xfffffffffffffff8
loop 0x14000401b
inc dword [rdx + 0x555446d3]
invalid
Function at 0x140002700
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x6c6389ee
enter 0xffffffffffffc083, 1
test edx, edx
cmovns eax, ebp
adc al, byte [r13 - 0x56]
cdq
invalid

Function at 0x14000d9d0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
sbb byte [rsi], 0xfd
cmc
adc dword [rsi + 0x1f], esi
jne 0x14000da49
out 0xa8, eax
xor edx, edx
mov r8d, 0x12
add byte [rbp + 0x31], al
leave
movsd dword [rdi], dword [rsi]
int3
int3
mov rbx, rcx
mov bl, 0xd2
js 0x14000da59
mov rdi, qword [rbx + 0x10]
nop
mov ebp, edi
jmp 0x14000daa8
xor ebp, ebp
adc byte [rdx + 0x1189], 0
je 0x14000da7a
movabs dword [0xab74a6000018d0bb], eax
mov ebx, 0x18d0
cmpsb byte [rsi], byte [rdi]
je 0x14000da18
or rcx, 0x18
add byte [rsi + rax - 0x28], dh
stosd dword [rdi], eax
invalid
mov eax, ebp
imul dword [rsi + 0x7ef83944]
imul esp, dword [rsi], 0xffffff8b
jnp 0x14000da27
add ebp, r15d
or dword [rcx - 0x64311707], ecx
add eax, dword [rax]
mov r13d, eax
add r13d, ebp
jmp 0x14000daa8
jg 0x14000db1e
or byte [rax - 0x77], cl
stc
mov edx, r13d
call fcn.140041410
mov rbp, rax
cmp rdi, rsi
jne 0x14000dad3
test rbp, rbp
psubsb mm6, mm6
add byte [rsi - 0xc], cl
invalid
test qword [rcx], rbp
je 0x14000db07
jle 0x14000da65
cmp dword [rax + 1], 0
nop
cmp r8d, dword [rbp - 0x6c]
jle 0x14000daf0
mov rcx, rbx
mov qword [rdi - 0x18], rsp
movabs al, byte [0x8158e817b2200095]
invalid
mov dl, 0x17
call 0xd8c55c4f
sub eax, 0x5df90000
pop rdi
pop rsi
pop r12
pop r13
pop r14
mov r10d, 0xd4ac27ff
add esp, edx
add al, ch
test byte [rsp + rcx*4], ah
add byte [rax], al
add byte [rsi], al
mov ecx, dword [rbx + 0x18]
call 0x140be0c60
mov dword [rsp + 0xc088], eax
invalid
test byte [rax + rcx*4], ah
rol byte [rax], 0
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx + 0x18]
movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x90], eax
call 0x1402f0c60
mov ebp, eax
mov rcx, qword [rbx + 8]
mov r12, qword [rbx + 0x25]
call 0x186040c60
mov rcx, qword [rbx + 8]
xchg r11d, eax
je 0x14000dbb9
add byte [rax], al
mov ebp, dword [rdi + 0x4367d]
cld
lea esi, [0x1400f6e20]
or ecx, dword [rcx + 0x44d72474]
mov dword [rsp + 0x70], ebp
mov qword [rsp + 0x33], rdi
mov edi, dword [rsp + 0x1e9c]
mov ebx, edi
and al, 0x60
mov edi, dword [rsp + 0x88]
mov dword [rsp + 0x58], edi
mov rdi, qword [rbp + rdx*8 + 0x6b90]
mov qword [rbp + riz*2 + 0x50], rdi
mov dword [rax + rbx*2 + 0x48], ebp
mov qword [rsp + 0x40], r12
xchg esp, eax
and al, 0x1e
cmp byte [rsp + 0x30], cl
mov dword [rdi + rsi + 0x28], edx
mov dword [rsp + 0x20], ebx
lea rcx, [0x140f04c73]
lea rdx, [0x1b7100d6b]
jmp 0xe500dc70

Function at 0x1400397e0
Capabilities:
Encode data using xor

Disassembly:
push rsi
loop 0x140039838
push rbx
sbb qword [rbp + 0xfc1a58], 0xffffffff8b50cd89
add eax, 0xf284c
xor rax, rsp
mov qword [rdx + rcx*8 - 0x1cfffdb0], rax
cmp al, 0xc7
and dword [rax + riz], esp
add dword [rax], eax
add byte [rax], al
lea r9, str.SoftwareSimonTathamPuTTY
lea ecx, str.SoftwareSimonTathamPuTTY
xor dword [rax - 0x61], ebx
sal bl, cl
cdq
rol byte [rcx], 0
jrcxz 0x140039809
call fcn.14003e1e0
test qword [rcx - 0x76b7bc8c], rax
ret
invalid
Function at 0x14003fe97
Capabilities:
Encode data using xor

Disassembly:
xor dword [rax - 0x7d], ecx
sar eax, 0xe8
jg fcn.14003fe97
invalid

Function at 0x1400649f0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
movabs byte [0x894d38a18348cc55], al
sbb byte [rbp - 0x77], cl
invalid

Function at 0x140078ca0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
shr rsp, 1
jl 0x140078cef
cmp dword [0x14012ebfd], 0
jne 0x140078cc0
mov edx, dword [0x14012a2a6]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r9d, eax
cmp qword [0x12612ec20], r9
ror dword [rcx + rdi + 0xd], 0x58
pop rdi
or esp, esi
ja 0x140078d21
lodsb al, byte [rsi]
lea esi, [0x14012ec20]
fcmovbe st(0), st(3)
outsd dx, dword [rsi]
pop rax
fisttp word [rdx]
add byte [rdi], cl
invalid
mov rcx, qword [0x1401325f3]
mov byte [rsp + 0x28], 0xa0
or al, 0x44
and al, 0x20
add dword [rax], eax
add byte [rax], al
mov r8d, 1
mov ch, 0x59
adc ebp, eax
sub eax, 0x7fffc6a
mov dword [0xf479ec8b], eax
mov edx, dword [0x14012ec20]
mov qword [rdx + 0x1941d7ff], rsi
ror dword [rcx + rdi + 0xf], 1
pop rdi
sbb al, byte [rax]
add byte [rsi - 0x41], dh

Function at 0x14007b760
Capabilities:
Encode data using xor

Disassembly:
push rsp
cmp byte [0x1b490ff2f], al
add eax, 0x74894800
mov esi, 0x44894828
and al, 0x30
cmc
and al, 0x28
call 0x13feab8df
mov rsi, rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
wait
loopne 0x14007b728
add eax, dword [rax]
mov rax, rsi
stosb byte [rdi], al
invalid
cmp eax, 0xea314157
jl 0x14007b72a
insd dword [rdi], dx
in al, dx
and byte [rcx - 0x77], cl
iretd
Function at 0x140002500
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x27090]
mov eax, 0x27190
call fcn.140003ec0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x27080], rax
xor ebx, ebx
mov dword [rsp + 0x68], 0x10001
mov dword [rsp + 0x28], ebx
lea r8, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
mov edx, 0xffffffff
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x6c], 0x1f40
mov edi, 1
mov dword [rsp + 0x70], 0x1f40
mov dword [rsp + 0x74], 0x80001
mov word [rsp + 0x78], bx
call qword [sym.imp.WINMM.dll_waveOutOpen]
xor edx, edx
lea rcx, [rbp - 0x7f]
mov r8d, 0x270ff
call sub.VCRUNTIME140.dll_memset
mov r8d, ebx
lea r9, [rbp - 0x80]
mov r10d, 2
nop dword [rax]
nop word [rax + rax]
test r8b, 0xf
lea r9, [r9 + 1]
mov eax, r8d
mov ecx, 0xc
cmovne ecx, r10d
shr eax, 0xa
and cl, al
mov eax, r8d
shr eax, 9
and cl, al
mov eax, edi
sub al, cl
movsx ecx, r8b
movsx edx, al
mov eax, r8d
imul edx, ecx
shr eax, 5
xor al, r8b
inc r8d
add dl, al
mov byte [r9 - 1], dl
cmp r8d, 0x27100
jb 0x1400025b0
mov rcx, qword [rsp + 0x30]
lea rax, [rbp - 0x80]
mov r8d, 0x30
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x40], 0x27100
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
call qword [sym.imp.WINMM.dll_waveOutPrepareHeader]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov r8d, 0x30
call qword [sym.imp.WINMM.dll_waveOutWrite]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov r8d, 0x30
call qword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WINMM.dll_waveOutClose]
mov rcx, qword [rbp + 0x27080]
xor rcx, rsp
call fcn.1400030a0
lea r11, [rsp + 0x27190]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140008210
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
call fcn.14005df60
lea rdx, [0x14003f9e0]
xor ecx, ecx
call sub.KERNEL32.dll_AddVectoredExceptionHandler
mov dword [rbp - 0x50], 0x5000
lea rcx, [rbp - 0x50]
call sub.KERNEL32.dll_SetThreadStackGuarantee
call sub.KERNEL32.dll_GetCurrentThread
mov r8, qword [0x1400626d0]
lea rdx, str.main
mov rcx, rax
call r8
mov ecx, dword [0x14007c130]
test ecx, ecx
je 0x1400082c1
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
jne 0x14000827a
call fcn.14003fbb0
mov byte [0x14007c080], 0
lea rdx, [0x14007c078]
mov qword [0x14007c078], rax
xor ecx, ecx
call fcn.14003fc20
cmp rax, 2
jne 0x140008304
lea rcx, [0x140001a7a]
call fcn.1400015c8
mov eax, dword [0x14007c068]
cmp eax, 3
jne 0x1400082d1
xor eax, eax
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x14007c118]
call fcn.14001bdd0
mov ecx, eax
jmp 0x14000826b
mov byte [rbp - 0x18], 1
lea rax, [rbp - 0x18]
mov qword [rbp - 0x50], rax
lea rax, str.library_std_src_rt.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x14007c068]
lea r9, [0x1400707c8]
lea r8, [rbp - 0x50]
xor edx, edx
call fcn.14003fd70
jmp 0x1400082b3
mov rdi, rax
mov qword [rbp - 0x18], rax
lea rsi, [rbp - 0x10]
mov rbx, rdx
mov qword [rbp - 0x10], rdx
mov dword [rbp - 8], 0
mov byte [rbp - 4], 0
lea rax, str.fatal_runtime_error:_code_running_before_main_must_not_use_thread::current_n
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
mov rax, rbp
mov qword [rbp - 0x40], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
lea rcx, [rbp - 8]
lea rdx, [rbp - 0x50]
call fcn.14001bb40
mov qword [rbp - 0x20], rax
lea rcx, [rbp - 0x20]
call fcn.14001bc50
mov ecx, 7
int 0x29
ud2

Function at 0x140017b00
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x140017b25
cmp rax, rcx
je 0x140017b2b
cmp rdx, 4
jae 0x140017b32
xor eax, eax
xor r8d, r8d
jmp 0x140017bd0
pop rbp
jmp fcn.140009760
xor eax, eax
jmp 0x140017be7
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x1400633c0]
movdqa xmm3, xmmword [0x1400633d0]
pxor xmm1, xmm1
nop word cs:[rax + 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 0x140017b60
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140017be7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140017bd0
pop rbp
ret
Function at 0x14001bcd0
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 esi, dword [0x140062720]
test esi, esi
je 0x14001bd58
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14001bd4f
je 0x14001bd4d
movzx eax, byte [0x14007c158]
mov ecx, 0x18
call fcn.140050b40
test rax, rax
je 0x14001bd68
mov qword [rax], 0
mov byte [rax + 8], 0
mov dword [rax + 0x10], esi
mov ecx, esi
mov rbx, rax
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x14001bd48
mov edx, 8
mov rcx, rdi
call fcn.140008f20
mov rax, rsi
jmp 0x14001bd4f
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x140062708]
call fcn.14001bdd0
mov esi, eax
jmp 0x14001bce9
mov ecx, 8
mov edx, 0x18
call fcn.1400086f9
int3

Function at 0x14001bdd0
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 0x14001be65
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 0x14001bea4
cmp dword [rbp], 0
je 0x14001be88
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x14001beb9
mov edi, eax
mov rax, qword [0x14007f038]
mov rax, qword [0x14007c110]
nop word cs:[rax + rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x14007c110], rsi
jne 0x14001be40
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 0x14001be99
call sub.KERNEL32.dll_TlsAlloc
mov dword [rbp + 4], eax
cmp eax, 0xffffffff
je 0x14001befb
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x14001be8d
mov edi, dword [rbp + 4]
jmp 0x14001be99
mov edi, dword [rsi + 0x18]
jmp 0x14001be97
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.14001bf2b
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_sys_thread_localkeywindows.rs
lea rcx, [rbp - 0x38]
call fcn.140009490
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.14001bf72
int3
Function at 0x14001df90
Capabilities:
Read file via mapping

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x90
lea rbp, [rsp + 0x80]
mov rax, r8
mov rdi, rcx
mov dword [rbp - 0x48], 0
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov dword [rbp - 0x30], 7
mov qword [rbp - 0x2c], 0
mov word [rbp - 0x24], 0
mov byte [rbp - 0x28], 1
lea r8, [rbp - 0x48]
mov rcx, rdx
mov rdx, rax
call fcn.14003a640
mov rsi, rdx
test rax, rax
je 0x14001e03e
mov eax, esi
and eax, 3
cmp eax, 1
jne 0x14001e032
mov rax, rsi
dec rsi
mov rbx, qword [rax - 1]
mov r14, qword [rax + 7]
mov rax, qword [r14]
test rax, rax
je 0x14001e012
mov rcx, rbx
call rax
cmp qword [r14 + 8], 0
je 0x14001e025
mov rdx, qword [r14 + 0x10]
mov rcx, rbx
call fcn.140008f20
mov edx, 8
mov rcx, rsi
call fcn.140008f20
mov qword [rdi], 0
jmp 0x14001e195
lea rcx, [rbp - 0x48]
mov rdx, rsi
call fcn.14003a8b0
cmp dword [rbp - 0x48], 2
jne 0x14001e0b7
mov rax, qword [rbp - 0x40]
mov ecx, eax
and ecx, 3
cmp ecx, 1
jne 0x14001e097
lea rbx, [rax - 1]
mov r14, qword [rax - 1]
mov r15, qword [rax + 7]
mov rax, qword [r15]
test rax, rax
je 0x14001e077
mov rcx, r14
call rax
cmp qword [r15 + 8], 0
je 0x14001e08a
mov rdx, qword [r15 + 0x10]
mov rcx, r14
call fcn.140008f20
mov edx, 8
mov rcx, rbx
call fcn.140008f20
mov qword [rdi], 0
mov rcx, rsi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
jmp fcn.14005d768
mov r12, qword [rbp - 0x10]
test rsi, rsi
je 0x14001e105
mov qword [rbp - 0x48], 0
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rbp - 0x48]
mov rcx, rax
mov rdx, rsi
mov r8, rax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x14001e181
mov rbx, qword [rbp - 0x48]
jmp 0x14001e107
xor ebx, ebx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileMappingA
test rax, rax
je 0x14001e170
mov r14, rax
mov qword [rsp + 0x20], r12
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.KERNEL32.dll_MapViewOfFile
mov r15, rax
mov rcx, r14
call fcn.14005d768
test r15, r15
je 0x14001e170
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r12
mov qword [rdi], 1
jmp 0x14001e18d
mov qword [rdi], 0
mov rcx, rbx
call fcn.14005d768
jmp 0x14001e18d
call sub.KERNEL32.dll_GetLastError
mov qword [rdi], 0
mov rcx, rsi
call fcn.14005d768
nop
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
Function at 0x14003e690
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x140071580]
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 0x14003e6ff
mov rcx, rsi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rbp]
cmp eax, 0x103
je 0x14003e72b
test eax, eax
js 0x14003e70b
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x14003e721
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, [0x1400715e8]
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.14001bb40
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.14001bc50
mov ecx, 7
int 0x29
ud2

Function at 0x14003fbb0
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rsi
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rax, qword [0x14007c0f8]
nop word cs:[rax + rax]
cmp rax, 0xffffffffffffffff
je 0x14003fc03
lea rsi, [rax + 1]
lock cmpxchg qword [0x14007c0f8], rsi
jne 0x14003fbd0
mov ecx, dword [0x14007c130]
test ecx, ecx
je 0x14003fc08
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov rax, rsi
add rsp, 0x28
pop rsi
pop rbp
ret
call fcn.1400405f0
lea rcx, [0x14007c118]
call fcn.14001bdd0
mov ecx, eax
jmp 0x14003fbf1

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

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov qword [rbp - 0x10], rcx
lea rsi, [rbp - 8]
mov qword [rbp - 8], rdx
mov ecx, dword [0x14007c150]
test ecx, ecx
je case.0x14003d1e1.114
add byte [rax], al
invalid
dec ecx
Function at 0x14003ff30
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rsi
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov rax, qword [rcx]
cmp byte [rax], 0
mov byte [rax], 0
je 0x14004009a
mov byte [rbp + 7], 0
mov eax, dword [0x14007c0c0]
cmp eax, 3
jne 0x14004005a
cmp byte [rbp + 7], 0
jne 0x140040053
mov ecx, dword [0x14007c130]
test ecx, ecx
je 0x140040079
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x14004006f
mov rcx, qword [0x14007c088]
cmp rax, rcx
jne 0x14003ffa4
mov eax, dword [0x14007c090]
cmp eax, 0xffffffff
je 0x140040053
inc eax
jmp 0x14003ffc5
mov rcx, rax
mov dl, 1
xor eax, eax
lock cmpxchg byte [0x14007c094], dl
jne 0x140040053
mov qword [0x14007c088], rcx
mov eax, 1
mov dword [0x14007c090], eax
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 1
mov qword [rbp - 0x10], 0
mov byte [rbp - 8], 0
mov byte [rbp - 3], 0
mov dword [rbp - 7], 0
cmp qword [0x14007c098], 0
jne 0x1400400a6
mov qword [0x14007c098], 0xffffffffffffffff
lea rcx, [0x14007c0a0]
call fcn.140040190
movups xmm0, xmmword [rbp - 0x20]
movups xmm1, xmmword [rbp - 0x10]
movups xmmword [0x14007c0b0], xmm1
movups xmmword [0x14007c0a0], xmm0
inc qword [0x14007c098]
dec dword [0x14007c090]
jne 0x140040053
mov qword [0x14007c088], 0
xor eax, eax
xchg byte [0x14007c094], al
cmp al, 2
je 0x14004008c
add rsp, 0x48
pop rsi
pop rbp
ret
lea rcx, [rbp + 7]
call fcn.1400400fc
cmp byte [rbp + 7], 0
je 0x14003ff67
jmp 0x140040053
call fcn.14003fbb0
jmp 0x14003ff85
lea rcx, [0x14007c118]
call fcn.14001bdd0
mov ecx, eax
jmp 0x14003ff77
lea rcx, [0x14007c094]
call fcn.14005d540
jmp 0x140040053
lea rcx, str.library_std_src_synconce.rs
call fcn.14000c1e0
lea rcx, str.library_std_srcio_stdio.rs
call fcn.14000b730
ud2