joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000c300
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.140016c70
mov r8d, 0x1b
mov edx, 1
lea rcx, str.QEgVPQkorMrdUALUOrBWAxpQsx_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140016c70
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 0x14000c370
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400ee0a4]
mov rbx, rcx
test esi, esi
jle 0x14000c4a0
mov rax, qword [0x1400ee0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000c3bb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000c445
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000c3a0
mov rcx, rbx
call fcn.14000cdf0
mov rdi, rax
test rax, rax
je 0x14000c4c2
mov rax, qword [0x1400ee0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000cf30
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400ee0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000c4a7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000c43e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14000c450
add dword [0x1400ee0a4], 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 [0x1400ee0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000c43e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.WPgcwFWMyGiUPGrNIwTmDEPBLJtVhoYbPpCxdM
mov edx, eax
call fcn.14000c300
nop dword [rax]
xor esi, esi
jmp 0x14000c3c8
mov rax, qword [0x1400ee0a8]
mov edx, dword [rdi + 8]
lea rcx, str.GrNoIWWbSiEojSApsdtPVgybCpfvOHPelWxSziFlefnsrfDr
mov r8, qword [rax + rbx + 0x18]
call fcn.14000c300
mov rdx, rbx
lea rcx, str.CyfvQriWEpSmtGMnEmiUZPQTifVrpCX
call fcn.14000c300
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000ca60
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400ee100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400ee0e0]
test rbx, rbx
je 0x14000cabc
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 rsi, rsi
je 0x14000cab3
test eax, eax
jne 0x14000cab3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000ca98
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 0x14000cdf0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400ca2b0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000ce10
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000ce18
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000ce10
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000ce6d
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 0x14000ce64
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000ce10
add rax, 0x28
cmp rax, r9
jne 0x14000ce50
xor eax, eax
ret

Function at 0x14000ce70
Capabilities:
Parse pe header

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

Function at 0x14000cf30
Capabilities:
Parse pe header

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

Function at 0x140019040
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x7b], 0
mov qword [rsp + 0x83], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x140019142
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14001911a
add rax, 1
cmp rax, 0x6b
je 0x140019137
cmp byte [rcx + rax], 0
jne 0x140019110
lea edx, [rax + 1]
cmp eax, 0x6a
je 0x140019137
cdqe
mov byte [rsp + rax + 0x20], 0xa
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov edx, 0x28
mov eax, 0x27
lea rcx, [rsp + 0x20]
jmp 0x140019128
Function at 0x1400194e0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1400eece0], 1
je 0x140019580
lea rdi, [0x1400eece0]
mov rcx, rdi
call fcn.140018df0
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.140018720
mov esi, dword [0x1400eece0]
test esi, esi
jne 0x140019558
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400c13a8], eax
cmp eax, 0xffffffff
je 0x1400c0c26
mov dword [0x1400eece0], 1
mov rcx, rbp
call fcn.1400189f0
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.140019160
cmp esi, 1
je 0x14001953c
mov ecx, 2
call qword [fcn.140016c70]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x14001953c
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sub.msvcrt.dll_abort
nop

Function at 0x140019590
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.140019270
cmp qword [0x1400f1048], 0
mov rbx, rax
je 0x1400196a8
test rax, rax
je 0x1400196a8
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.140018cf0
cmp eax, 1
je 0x1400196b6
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rsi, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, rsi
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je fcn.1400c0c2c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1400c13a8]
mov rdx, rbx
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400196bc
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.140019040
nop
jmp fcn.1400c0c2c

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

Disassembly:
sub rsp, 0x28
call fcn.1400194e0
mov ecx, dword [0x1400c13a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400196f0
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.140019590
Function at 0x140019e70
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x140019fa8
cmp eax, 1
je 0x140019ec3
call fcn.140018df0
lea r12, [rax + 8]
mov rdi, rax
mov rcx, r12
call fcn.140018720
mov ebp, dword [rbx]
test ebp, ebp
je 0x140019ed0
cmp ebp, 1
jne 0x140019f70
mov rcx, r12
call fcn.1400189f0
mov rcx, rdi
call fcn.140019160
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x140019240]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.1400194e0
mov ecx, dword [0x1400c13a8]
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rbp
test rax, rax
je 0x140019ff0
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.1400194e0
mov ecx, dword [0x1400c13a8]
call rbp
test rax, rax
je 0x140019fd8
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.1400194e0
mov ecx, dword [0x1400c13a8]
call rbp
test rax, rax
je 0x140019fc0
mov rdx, qword [rsp + 0x30]
mov rcx, r12
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
call fcn.1400189f0
mov rcx, rdi
call fcn.140019160
jmp 0x140019ec3
mov ecx, 2
call qword [fcn.140016c70]
mov r9d, ebp
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
mov rcx, r12
call fcn.1400189f0
mov rcx, rdi
call fcn.140019160
jmp 0x140019ec3
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140019590
test rax, rax
jne 0x140019f46
jmp 0x1400c0c45
call fcn.140019590
test rax, rax
jne 0x140019f23
jmp 0x1400c0c5e
call fcn.140019590
test rax, rax
jne 0x140019efe
jmp 0x1400c0c54
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2

Function at 0x14001a280
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.1400194e0
mov ecx, dword [0x1400c13a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001a2f8
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.140018d00
cmp esi, dword [rbx + 0x48]
jae 0x14001a2d3
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x14001a2d3
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.140018d40
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140019590
mov rbx, rax
jmp 0x14001a2ad
Function at 0x14001a310
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.1400194e0
mov ecx, dword [0x1400c13a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001a408
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.140018d00
mov rdi, qword [rbx + 0x50]
cmp esi, dword [rbx + 0x48]
jb 0x14001a3d3
lea r15d, [rsi + 1]
mov rcx, rdi
movsxd r14, r15d
lea rdx, [r14*8]
call sub.msvcrt.dll_realloc
mov rdi, rax
test rax, rax
je 0x14001a415
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x14001a415
mov eax, dword [rbx + 0x48]
mov edx, r15d
sub edx, eax
lea rcx, [rdi + rax*8]
lea r8, [rdx*8]
xor edx, edx
call sub.msvcrt.dll_memset
mov ecx, dword [rbx + 0x48]
mov r8d, r15d
xor edx, edx
mov rax, rcx
add rcx, r14
sub r8d, eax
call sub.msvcrt.dll_memset
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], r14
mov dword [rbx + 0x48], r15d
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r13
mov byte [rax + rsi], 1
call fcn.140018d40
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140019590
mov rbx, rax
jmp 0x14001a34a
mov rcx, r13
call fcn.140018d40
mov eax, 0xc
jmp 0x14001a3f1

Function at 0x14001a4b0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.1400194e0
mov ecx, dword [0x1400c13a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001a4d8
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.140019590
test rax, rax
jne 0x14001a4ca
add rsp, 0x28
ret

Function at 0x14001a540
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.1400194e0
mov ecx, dword [0x1400c13a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001a568
add rax, 0x18
add rsp, 0x28
ret
call fcn.140019590
test rax, rax
jne 0x14001a55a
jmp 0x14001a55e

Function at 0x14001a680
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400eece8]
test eax, eax
jne 0x14001a698
xor eax, eax
add rsp, 0x28
ret
call fcn.1400194e0
mov ecx, dword [0x1400c13a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001a6c8
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14001a68e
test byte [rax + 0x40], 3
je 0x14001a68e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x14001a690
call fcn.140019590
test rax, rax
je 0x14001a68e
jmp 0x14001a6ae

Function at 0x14001a6e0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.1400194e0
mov ecx, dword [0x1400c13a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001a720
test ebx, ebx
jle 0x14001a710
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.140019590
test rax, rax
jne 0x14001a6fd
add rsp, 0x20
pop rbx
ret
Function at 0x14001a810
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.1400194e0
mov ecx, dword [0x1400c13a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001a888
test byte [rbx + 0x40], 0xc
jne 0x14001a83f
mov eax, dword [0x1400eece8]
test eax, eax
jne 0x14001a850
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140018720
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001a873
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001a873
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001a89c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.1400189f0
call fcn.140019590
mov rbx, rax
test rax, rax
jne 0x14001a82f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001a8ba
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.1400189f0
call fcn.14001a730
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001a938
call fcn.1400184d0
mov rsi, rax
mov eax, 0xffffffff
cmp rsi, rax
cmovbe rax, rsi
mov rdi, rax
call fcn.1400194e0
mov ecx, dword [0x1400c13a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001a980
test rsi, rsi
je 0x14001a94e
call fcn.14001a810
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001a970
mov edx, edi
call fcn.140018580
call fcn.14001a810
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.1400194e0
mov ecx, dword [0x1400c13a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001a990
call fcn.14001a810
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001a810
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001a926
call fcn.140019590
mov rbx, rax
jmp 0x14001a90c
call fcn.140019590
jmp 0x14001a94e
Function at 0x14001a8d0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.1400194e0
mov ecx, dword [0x1400c13a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001a888
test byte [rbx + 0x40], 0xc
jne 0x14001a83f
mov eax, dword [0x1400eece8]
test eax, eax
jne 0x14001a850
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140018720
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001a873
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001a873
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001a89c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.1400189f0
call fcn.140019590
mov rbx, rax
test rax, rax
jne 0x14001a82f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001a8ba
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.1400189f0
call fcn.14001a730
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001a938
call fcn.1400184d0
mov rsi, rax
mov eax, 0xffffffff
cmp rsi, rax
cmovbe rax, rsi
mov rdi, rax
call fcn.1400194e0
mov ecx, dword [0x1400c13a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001a980
test rsi, rsi
je 0x14001a94e
call fcn.14001a810
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001a970
mov edx, edi
call fcn.140018580
call fcn.14001a810
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.1400194e0
mov ecx, dword [0x1400c13a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001a990
call fcn.14001a810
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001a810
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001a926
call fcn.140019590
mov rbx, rax
jmp 0x14001a90c
call fcn.140019590
jmp 0x14001a94e

Function at 0x14001a9a0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.1400194e0
mov ecx, dword [0x1400c13a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001aa10
test esi, esi
je 0x14001a9f0
call fcn.14001a810
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001aa20
mov edx, esi
call fcn.140018580
call fcn.14001a810
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001a810
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001a810
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140019590
mov rbx, rax
jmp 0x14001a9c1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001a9da
Function at 0x14001c9b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x328
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r13, rax
test rax, rax
je 0x14001cb1f
lea rbx, [rsp + 0x44]
lea rbp, [rsp + 0x148]
mov r8d, 0x104
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov rcx, rbp
mov r8d, 6
mov rdx, rbx
call fcn.140099dc0
lea rcx, [rsp + 0x1a0]
call fcn.140023d50
test al, al
je 0x14001caec
lea rcx, [rsp + 0x30]
mov rdx, rbp
call fcn.14007ca00
xor r8d, r8d
xor edx, edx
mov rcx, rbp
mov r12, qword [rsp + 0x30]
call fcn.14007c8f0
test r12, r12
jns 0x14001ca4a
lea rcx, str.cannot_create_std::vector_larger_than_max_size__
call fcn.1400bffc0
je 0x14001ca6f
mov rcx, r12
call fcn.1400bec40
mov rcx, r12
mov byte [rax], 0
mov rbx, rax
dec rcx
je 0x14001ca71
lea rdx, [rax + 1]
xor eax, eax
mov rdi, rdx
rep stosb byte [rdi], al
jmp 0x14001ca71
xor ebx, ebx
mov r8, r12
mov rdx, rbx
mov rcx, rbp
call fcn.14007c560
mov rdx, qword [rax]
mov rdx, qword [rdx - 0x18]
test byte [rax + rdx + 0x20], 5
jne 0x14001cadc
movsxd r14, dword [rbx + 0x3c]
lea r9, [rsp + 0x40]
mov r15, qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, r13
mov qword [rsp + 0x28], r9
mov r8d, 0x40
add r14, rbx
mov edx, dword [r14 + 0x50]
call r15
mov ecx, dword [r14 + 0x50]
mov rdi, r13
mov rsi, rbx
mov r9, qword [rsp + 0x28]
rep movsb byte [rdi], byte [rsi]
mov rcx, r13
mov edx, dword [r14 + 0x50]
mov r8d, dword [rsp + 0x40]
call r15
jmp 0x14001cae1
test rbx, rbx
je 0x14001caec
mov rdx, r12
mov rcx, rbx
call fcn.1400bec00
mov rcx, rbp
call fcn.14009a740
jmp 0x14001cb1f
add rsp, 0x328
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140086b10
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x140086b58
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x140086b2a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1400029e0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], rcx
add rdx, 0x13
mov qword [rsp + 0x18], rdx
xor eax, eax
cmp dword [0x1400070ec], 1
mov dword [rsp + 0x24], eax
je 0x140002a62
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x10]
mov rdx, qword [rsp + 0x18]
mov dword [rsp + 4], eax
movsxd r8, eax
mov r8b, byte [rdx + r8]
mov r9d, 0x13
xor edx, edx
div r9d
mov eax, dword [rsp + 4]
mov r9d, edx
mov rdx, qword [rsp + 8]
movsxd r9, r9d
xor r8b, byte [rdx + r9]
movsxd rdx, eax
mov byte [rcx + rdx], r8b
add eax, 1
cmp eax, 2
mov dword [rsp + 0x24], eax
jne 0x140002a0a
mov dword [0x1400070ec], 1
add rsp, 0x28
ret

Function at 0x140002a70
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], rcx
add rdx, 0x19
mov qword [rsp + 0x18], rdx
xor eax, eax
cmp dword [0x140007100], 1
mov dword [rsp + 0x24], eax
je 0x140002af2
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x10]
mov rdx, qword [rsp + 0x18]
mov dword [rsp + 4], eax
movsxd r8, eax
mov r8b, byte [rdx + r8]
mov r9d, 0x19
xor edx, edx
div r9d
mov eax, dword [rsp + 4]
mov r9d, edx
mov rdx, qword [rsp + 8]
movsxd r9, r9d
xor r8b, byte [rdx + r9]
movsxd rdx, eax
mov byte [rcx + rdx], r8b
add eax, 1
cmp eax, 0x10
mov dword [rsp + 0x24], eax
jne 0x140002a9a
mov dword [0x140007100], 1
add rsp, 0x28
ret

Function at 0x140002b00
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], rcx
add rdx, 0x1c
mov qword [rsp + 0x18], rdx
xor eax, eax
cmp dword [0x14000711c], 1
mov dword [rsp + 0x24], eax
je 0x140002b82
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x10]
mov rdx, qword [rsp + 0x18]
mov dword [rsp + 4], eax
movsxd r8, eax
mov r8b, byte [rdx + r8]
mov r9d, 0x1c
xor edx, edx
div r9d
mov eax, dword [rsp + 4]
mov r9d, edx
mov rdx, qword [rsp + 8]
movsxd r9, r9d
xor r8b, byte [rdx + r9]
movsxd rdx, eax
mov byte [rcx + rdx], r8b
add eax, 1
cmp eax, 0x15
mov dword [rsp + 0x24], eax
jne 0x140002b2a
mov dword [0x14000711c], 1
add rsp, 0x28
ret

Function at 0x140002b90
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], rcx
add rdx, 0x16
mov qword [rsp + 0x18], rdx
xor eax, eax
cmp dword [0x140007134], 1
mov dword [rsp + 0x24], eax
je 0x140002c12
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x10]
mov rdx, qword [rsp + 0x18]
mov dword [rsp + 4], eax
movsxd r8, eax
mov r8b, byte [rdx + r8]
mov r9d, 0x16
xor edx, edx
div r9d
mov eax, dword [rsp + 4]
mov r9d, edx
mov rdx, qword [rsp + 8]
movsxd r9, r9d
xor r8b, byte [rdx + r9]
movsxd rdx, eax
mov byte [rcx + rdx], r8b
add eax, 1
cmp eax, 0x12
mov dword [rsp + 0x24], eax
jne 0x140002bba
mov dword [0x140007134], 1
add rsp, 0x28
ret