joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002630
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov al, byte [rsp + 0x67]
mov r10b, al
xor r10b, 1
mov byte [rsp + 0x67], r10b
cmp r9d, 0
mov qword [rsp + 0x48], rdx
mov dword [rsp + 0x44], r9d
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rcx
mov byte [rsp + 0x2f], al
jne 0x140002687
mov rax, qword [rsp + 0x58]
imul rax, qword [rsp + 0x58]
mov qword [rsp + 0x58], rax
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
xor eax, eax
xor ecx, ecx
mov edx, ecx
mov ecx, dword [rsp + 0x44]
mov r8d, ecx
mov r9d, r8d
mov r8d, eax
mov dword [rsp + 0x28], r8d
mov dword [rsp + 0x24], eax
mov qword [rsp + 0x18], r9
mov qword [rsp + 0x10], rdx
mov rax, qword [rsp + 0x10]
mov ecx, dword [rsp + 0x24]
mov edx, dword [rsp + 0x28]
mov r8d, 0x100

Function at 0x1400026c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
add ecx, 1
mov qword [rsp + 8], rax
mov dword [rsp + 8], eax

Function at 0x140002780
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x20
lea rax, [fcn.140002780]
mov qword [rsp + 0x18], 0x330210ae
mov dword [rsp + 0x18], 0x330210ae
mov rax, qword [rsp]
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
je 0x1400027cb
jmp 0x14000279b
mov rax, qword [rsp + 8]
cmp word [rax], 0x5a4d
mov qword [rsp], rax
je 0x1400027d4
jmp 0x14000279b

Function at 0x140002be8
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
mov rax, qword [rsp + 0x10]
mov ecx, dword [rsp + 0x1c]
mov edx, 0x55c2e33
pop rsp
add eax, 0x4cd08941
mov ecx, dword [rsp + 0x38]
mov r10, qword [rsp + 0x38]
mov edx, dword [rsp + 0x38]
mov r11b, cl
sub r8, r9
add r10, 0xfffffffffaa3d2ce
mov r9, qword [rsp + 0x20]
mov byte [r9 + rax], r11b
add ecx, 1
add rax, r8
cmp rax, r10
mov dword [rsp + 0x1c], ecx
mov qword [rsp + 0x10], rax
jne 0x140002b6d
xor eax, eax
mov ecx, eax
xor eax, eax
imul dx, word [rsp + 0x46], 0x5264
mov word [rsp + 0x46], dx
mov qword [rsp + 8], rcx
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x48]
sub rdx, qword [rsp + 0x48]
mov qword [rsp + 0x48], rdx
mov r8w, word [rsp + 0x46]
and al, 0x46
xor r8w, 0xffff
mov rdx, qword [rsp + 0x20]
mov r9b, byte [rdx + rcx]
movzx r10d, r9b
mov word [rsp + 0x46], r8w
mov r11d, ecx
mov dword [rsp], eax
mov eax, r11d
xor edx, edx
mov r11d, dword [rsp + 0x2c]
div r11d
mov edx, edx
mov esi, edx
mov rdi, qword [rsp + 0x30]
movzx edx, byte [rdi + rsi]
mov ebx, dword [rsp + 0x58]
add ebx, 0x87d7262f
mov ebp, dword [rsp]
add ebp, r10d
add ebp, edx
mov eax, ebp
cdq
idiv ebx
movsxd rsi, edx
mov r14, qword [rsp + 0x20]
mov r15b, byte [r14 + rsi]
mov byte [r14 + rcx], r15b
mov byte [r14 + rsi], r9b
mov r8w, word [rsp + 0x46]
add rcx, 1
and r8w, 0xe
mov word [rsp + 0x46], r8w
cmp rcx, 0x100
mov qword [rsp + 8], rcx
mov dword [rsp + 4], edx
jne 0x140002bcd
mov eax, dword [rsp + 0x5c]
add eax, 0x1d76967a
mov dword [rsp + 0x5c], eax
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x2fc4d73f0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d84d0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d7df2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fa108]
test eax, eax
je 0x2fc4d7e8a
lea rax, [0x2fc4fa0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fa110]
mov qword [rbp - 8], rax
jmp 0x2fc4d7e6e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d7e62
cmp qword [rbp - 0x10], 0
je 0x2fc4d7e62
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d7e28
lea rax, [0x2fc4fa0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d7e8b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d7f90
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d7fb8
mov eax, 0
jmp 0x2fc4d8006
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d7fe1
mov eax, 0
jmp 0x2fc4d8006
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d8001
mov eax, 0
jmp 0x2fc4d8006
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d800c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d808a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d8081
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d8081
mov rax, qword [rbp - 8]
jmp 0x2fc4d809f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d8054
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d5fd0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d70b0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d69d2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f9108]
test eax, eax
je 0x2fc4d6a6a
lea rax, [0x2fc4f90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f9110]
mov qword [rbp - 8], rax
jmp 0x2fc4d6a4e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d6a42
cmp qword [rbp - 0x10], 0
je 0x2fc4d6a42
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d6a08
lea rax, [0x2fc4f90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d6a6b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d6b70
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d6b98
mov eax, 0
jmp 0x2fc4d6be6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d6bc1
mov eax, 0
jmp 0x2fc4d6be6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d6be1
mov eax, 0
jmp 0x2fc4d6be6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d6bec
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d6c6a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d6c61
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d6c61
mov rax, qword [rbp - 8]
jmp 0x2fc4d6c7f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d6c34
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14000a230
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 0x14000a2c0
cmp r11, r10
ja 0x14000a336
cmp r10, rdx
ja 0x14000a348
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x14000a2c2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x14000a2a0
jmp 0x14000a324
ja 0x14000a2ca
mov r11, r10
cmp rax, r8
jne 0x14000a264
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 0x14000a300
mov rdi, r8
sub ecx, edx
jns 0x14000a31b
jmp 0x14000a326
cmp r8, rsi
je 0x14000a357
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x14000a326
xor al, 1
cmp rdi, rsi
jne 0x14000a2e0
jmp 0x14000a326
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.140008100
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400076d0
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrarycore_srcio_borrowed_buf.rs_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_srccollections_btree_navigate.rs
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140007a70
int3

Function at 0x140011670
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.140007260
cmp rax, rcx
je 0x140011695
cmp rdx, 4
jae 0x140011698
xor eax, eax
xor r8d, r8d
jmp 0x140011730
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14004b4a0]
movdqa xmm3, xmmword [0x14004b4b0]
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 0x1400116c0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140011747
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140011730
ret
Function at 0x1400126b0
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 0x14001270b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14001270b
movzx eax, byte [r8 + rcx]
cmp eax, 0x49
je 0x140012726
cmp eax, 0x42
jne 0x14001270b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x1400127d6
cmp byte [r8 + r11], 0x5f
jne 0x1400127d6
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14001283e
mov rcx, rsi
xor edx, edx
call fcn.14000e0a0
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.14000e0a0
test al, al
jne 0x1400128d1
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140012762
lea rdx, [0x1406ff89b]
mov r8d, 1
call fcn.140007750
test al, al
jne 0x1400128d1
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14001271a
xor r14d, r14d
lea rbx, [0x1406ffc09]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x140012794
cmp byte [rax + rcx], 0x45
je 0x1400128f3
sub r14, 1
jb 0x1400127b9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400127b9
mov r8d, 2
mov rdx, rbx
call fcn.140007750
test al, al
jne 0x1400128d1
mov rcx, rsi
call fcn.14000f8d0
test al, al
jne 0x1400128d1
mov rax, qword [rsi]
test rax, rax
jne 0x140012780
jmp 0x14001271a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r9b, 1
cmp r11, r10
jae 0x140012898
movzx edx, byte [r8 + r11]
cmp dl, 0x5f
je 0x140012832
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14001281c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14001280b
add dl, 0xa9
jmp 0x14001281a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x140012898
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x140012898
movzx edx, bl
add rax, rdx
jae 0x1400127e0
jmp 0x140012898
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x140012898
cmp rax, rcx
jae 0x140012895
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x1400128eb
cmp qword [rsi + 0x20], 0
je 0x1400128e4
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.1400126b0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14001271c
mov r9b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400128d9
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, [0x1406ffbe8]
test r9b, r9b
cmovne rdx, rax
call fcn.140007750
test al, al
je 0x1400128d9
mov dil, 2
jmp 0x14001271a
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14001271a
mov dil, 1
xor r9d, r9d
jmp 0x14001289a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14001271a
Function at 0x140015d60
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x140015de5
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 0x140015e26
cmp dword [rsp + 0x2c], 0
je 0x140015e0a
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140015e3e
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x14070a110]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x14070a110], rsi
jne 0x140015dc0
mov byte [0x14070a108], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x140015e1c
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x140015e88
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x140015e0f
mov edi, dword [rsp + 0x28]
jmp 0x140015e1c
mov edi, dword [rsi + 0x18]
jmp 0x140015e1a
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.1400162e0
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_07dca489ac2d933c78d3c5158e3f43beefeb02celibrarycore_srcio_borrowed_buf.rs_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_srccollections_btree_navigate.rs
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.140006d30
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_07dca489ac2d933c78d3c5158e3f43beefeb02celibrarycore_srcio_borrowed_buf.rs_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_srccollections_btree_navigate.rs
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.140016330
int3
Function at 0x1400161b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x14004a098]
test ecx, ecx
je 0x140016290
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400161e4
mov rdi, rax
cmp qword [rax + 8], 0
je 0x1400161e4
add rdi, 0x10
jmp 0x140016286
mov ecx, dword [0x14004a098]
test ecx, ecx
je 0x1400162a3
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140016284
mov rsi, rax
test rax, rax
jne 0x140016253
movzx eax, byte [0x14070a128]
mov ecx, 0x18
mov edx, 8
call fcn.140005290
test rax, rax
je 0x1400162c6
mov rsi, rax
lea rax, [0x14004a080]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14004a098]
test ecx, ecx
je 0x1400162b6
dec ecx
mov rdx, rsi
call fcn.140047f6c
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 0x140016286
test rcx, rcx
je 0x140016286
lock dec qword [rcx]
jne 0x140016286
call fcn.140015d10
jmp 0x140016286
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x14004a080]
call fcn.140015d60
mov ecx, eax
jmp 0x1400161c6
lea rcx, [0x14004a080]
call fcn.140015d60
mov ecx, eax
jmp 0x1400161f4
lea rcx, [0x14004a080]
call fcn.140015d60
mov ecx, eax
jmp 0x14001624b
mov ecx, 8
mov edx, 0x18
call fcn.1400062e0
int3
Function at 0x140017550
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x14004a078]
test ecx, ecx
je 0x14001760d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140017580
cmp qword [rax + 8], 0
je 0x140017580
add rax, 0x10
jmp 0x140017607
mov ecx, dword [0x14004a078]
test ecx, ecx
je 0x140017620
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140017605
mov rsi, rax
test rax, rax
jne 0x1400175eb
movzx eax, byte [0x14070a128]
mov ecx, 0x20
mov edx, 8
call fcn.140005290
test rax, rax
je 0x140017643
mov rsi, rax
lea rax, [0x14004a060]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14004a078]
test ecx, ecx
je 0x140017633
dec ecx
mov rdx, rsi
call fcn.140047f6c
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov byte [rsi + 0x18], 0
jmp 0x140017607
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14004a060]
call fcn.140015d60
mov ecx, eax
jmp 0x140017565
lea rcx, [0x14004a060]
call fcn.140015d60
mov ecx, eax
jmp 0x140017590
lea rcx, [0x14004a060]
call fcn.140015d60
mov ecx, eax
jmp 0x1400175e3
mov ecx, 8
mov edx, 0x20
call fcn.1400062e0
int3
Function at 0x14001ab50
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xc8
mov rax, r8
mov rsi, rcx
mov dword [rsp + 0x38], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], 7
mov qword [rsp + 0x54], 0
mov word [rsp + 0x5c], 0
mov byte [rsp + 0x58], 1
lea r8, [rsp + 0x38]
mov rcx, rdx
mov rdx, rax
call fcn.140033420
mov rdi, rdx
test rax, rax
je 0x14001abe0
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x88], rdi
call fcn.1400153f0
mov qword [rsi], 0
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [rsp + 0x38]
mov rdx, rdi
call fcn.140033670
cmp dword [rsp + 0x38], 2
jne 0x14001ac0f
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x80], 2
jmp 0x14001ac5b
movups xmm0, xmmword [rsp + 0x38]
movups xmm1, xmmword [rsp + 0x48]
movups xmm2, xmmword [rsp + 0x58]
movups xmm3, xmmword [rsp + 0x68]
movaps xmmword [rsp + 0x80], xmm0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xc0], rax
movaps xmmword [rsp + 0xb0], xmm3
movaps xmmword [rsp + 0xa0], xmm2
movaps xmmword [rsp + 0x90], xmm1
cmp qword [rsp + 0x80], 2
jne 0x14001ac87
lea rcx, [rsp + 0x88]
call fcn.1400153f0
mov qword [rsi], 0
mov rcx, rdi
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp fcn.140048174
mov r12, qword [rsp + 0xb8]
test rdi, rdi
je 0x14001ace5
mov qword [rsp + 0x80], 0
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov rcx, rax
mov rdx, rdi
mov r8, rax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x14001ad61
mov rbx, qword [rsp + 0x80]
jmp 0x14001ace7
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 0x14001ad50
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.140048174
test r15, r15
je 0x14001ad50
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x14001ad8d
mov qword [rsi], 0
mov rcx, rbx
call fcn.140048174
jmp 0x14001ad8d
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x38], 1
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
call fcn.1400153f0
mov qword [rsi], 0
mov rcx, rdi
call fcn.140048174
jmp 0x14001abcf