joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140028560
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5c40], 0
lea rbx, [rcx + 0x5c48]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140028607
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x1400285ba
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.14002a840
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140013ea0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5c40]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5c50]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x1401a9440]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14002860f
mov rcx, rbx
call fcn.140013ea0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140028a90
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x1401a9430]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x140028af3
mov qword [rsp], rbx
lea rbx, [0x14004f260]
nop dword [rax]
cmp r9b, 0x23
jne 0x140028ad3
cmp byte [r8], r9b
jne 0x140028ad3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x140028ac0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5bb8]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x140028b27
mov r10, qword [r10 + 0x5bc0]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x140028b2e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x140028b14
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x14004b908
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004b952
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004b952
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004b952
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004b952
cmp dword [rcx + 0x84], 0xe
jbe 0x14004b952
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14004b954
xor al, al
add rsp, 0x28
ret
Function at 0x1400021e7
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov qword [rbp + 0x20], rcx
call fcn.140001678
mov rax, qword [rbp + 0x20]
mov rcx, rax
call fcn.140030900
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140002297
lea rax, [rbp - 0x30]
lea rdx, [rbp - 9]
mov rcx, rax
call fcn.14000210a
lea rax, [rbp - 0x50]
lea rdx, [rbp - 0x30]
mov r8d, 0x5a
mov rcx, rax
call fcn.140001579
lea rax, [rbp - 0x50]
mov rdx, rax
mov rax, qword [0x1400db4d0]
mov rcx, rax
call fcn.1400cbf10
mov rcx, rax
mov rax, qword [0x1400db500]
mov rdx, rax
call fcn.14008b800
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.1400bb490
lea rax, [rbp - 0x30]
mov rcx, rax
call fcn.1400bb490
jmp 0x1400022fd
mov rax, qword [rbp + 0x20]
mov rcx, rax
call fcn.140030900
mov rbx, rax
mov rax, qword [rbp + 0x20]
mov rcx, rax
call fcn.1400308d0
mov rdx, rax
mov rax, qword [rbp - 8]
mov r8, rbx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rax, qword [rbp - 8]
call rax
call fcn.140001678
jmp 0x1400022fd
add rsp, 0x78
pop rbx
pop rbp
ret

Function at 0x140005010
Capabilities:
Parse pe header

Disassembly:
push rsi
sub rsp, 0x30
mov rax, qword [rcx + 0x18]
movzx edx, byte [rax]
cmp dl, 0x4c
je 0x140005080
jg 0x140005040
sub edx, 0x49
cmp dl, 1
ja 0x140005090
add rax, 1
mov qword [rcx + 0x18], rax
add rsp, 0x30
pop rsi
jmp fcn.1400050b0
cmp dl, 0x58
jne 0x140005090
add rax, 1
mov esi, dword [rcx + 0x4c]
mov dword [rcx + 0x4c], 1
mov qword [rcx + 0x18], rax
mov qword [rsp + 0x28], rcx
call fcn.140005380
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rcx + 0x18]
mov dword [rcx + 0x4c], esi
cmp byte [rdx], 0x45
jne 0x1400050a0
add rdx, 1
mov qword [rcx + 0x18], rdx
add rsp, 0x30
pop rsi
ret
add rsp, 0x30
pop rsi
jmp fcn.140004e20
add rsp, 0x30
pop rsi
jmp fcn.140003750
xor eax, eax
jmp 0x14000507a
Function at 0x14000ede0
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.14001a720
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14001a720
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 0x14000ee50
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1401040c4]
mov rbx, rcx
test esi, esi
jle 0x14000ef80
mov rax, qword [0x1401040c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000ee9b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000ef25
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000ee80
mov rcx, rbx
call fcn.14000f900
mov rdi, rax
test rax, rax
je 0x14000efa2
mov rax, qword [0x1401040c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000fa40
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1401040c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000ef87
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000ef1e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14000ef30
add dword [0x1401040c4], 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 [0x1401040c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000ef1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000ede0
nop dword [rax]
xor esi, esi
jmp 0x14000eea8
mov rax, qword [0x1401040c8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000ede0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000ede0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000f540
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140104120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140104100]
test rbx, rbx
je 0x14000f5a4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word cs:[rax + rax]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x14000f59b
test eax, eax
jne 0x14000f59b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000f580
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 0x14000f900
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x14000f980
Capabilities:
Parse pe header

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

Function at 0x14000fa40
Capabilities:
Parse pe header

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

Function at 0x140010820
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2d
lea rdx, str._buffer_overflow_detected_:_terminated_n
call sub.msvcrt.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x140010850
mov ecx, 8
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x140010870
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2c
lea rdx, str._stack_smashing_detected_:_terminated_n
call sub.msvcrt.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x1400108a0
mov ecx, 2
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x14001ce70
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x140104c60], 1
je 0x14001cf10
lea rdi, [0x140104c60]
mov rcx, rdi
call fcn.14001c7e0
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.14001c0d0
mov esi, dword [0x140104c60]
test esi, esi
jne 0x14001cee8
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400d1328], eax
cmp eax, 0xffffffff
je 0x1400d03e6
mov dword [0x140104c60], 1
mov rcx, rbp
call fcn.14001c3a0
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.14001cad0
cmp esi, 1
je 0x14001cecc
mov ecx, 2
call qword [fcn.14001a720]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__ld_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x14001cecc
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [0x28]
ud2

Function at 0x14001cf20
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.14001cc00
mov rbx, rax
test rax, rax
je 0x14001d01c
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.14001c6b0
cmp eax, 1
je 0x14001d028
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 0x1400d03ec
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1400d1328]
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 0x1400d03ec
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.14001ca40
nop
nop

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

Disassembly:
sub rsp, 0x28
call fcn.14001ce70
mov ecx, dword [0x1400d1328]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001d050
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.14001cf20
Function at 0x14001d810
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov r12, qword [0x1400dbbb0]
mov rax, qword [r12]
mov qword [rsp + 0x38], rax
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x14001d970
cmp eax, 1
je 0x14001d875
call fcn.14001c7e0
lea r13, [rax + 8]
mov rdi, rax
mov rcx, r13
call fcn.14001c0d0
mov ebp, dword [rbx]
test ebp, ebp
je 0x14001d898
cmp ebp, 1
jne 0x14001d938
mov rcx, r13
call fcn.14001c3a0
mov rcx, rdi
call fcn.14001cad0
xor eax, eax
mov rdx, qword [rsp + 0x38]
sub rdx, qword [r12]
jne 0x14001d9bb
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rax, [0x14001cbd0]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.14001ce70
mov ecx, dword [0x1400d1328]
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rbp
test rax, rax
je 0x14001d9a8
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.14001ce70
mov ecx, dword [0x1400d1328]
call rbp
test rax, rax
je 0x14001d990
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.14001ce70
mov ecx, dword [0x1400d1328]
call rbp
test rax, rax
je 0x14001d980
mov rdx, qword [rsp + 0x30]
mov rcx, r13
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
call fcn.14001c3a0
mov rcx, rdi
call fcn.14001cad0
jmp 0x14001d875
mov ecx, 2
call qword [fcn.14001a720]
mov r9d, ebp
mov r8, rbx
lea rdx, str._once__p_is__ld_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
mov rcx, r13
call fcn.14001c3a0
mov rcx, rdi
call fcn.14001cad0
jmp 0x14001d875
mov eax, 0x16
jmp 0x14001d877
call fcn.14001cf20
test rax, rax
jne 0x14001d90e
jmp 0x1400d041e
call fcn.14001cf20
test rax, rax
jne 0x14001d8eb
jmp 0x1400d040f
call fcn.14001cf20
test rax, rax
jne 0x14001d8c6
jmp 0x1400d0405
call fcn.140010870
nop
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2

Function at 0x14001dc50
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.14001ce70
mov ecx, dword [0x1400d1328]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001dcc8
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.14001c6c0
cmp esi, dword [rbx + 0x48]
jae 0x14001dca3
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x14001dca3
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.14001c720
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.14001cf20
mov rbx, rax
jmp 0x14001dc7d
Function at 0x14001dce0
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.14001ce70
mov ecx, dword [0x1400d1328]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001ddd8
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.14001c6c0
mov rdi, qword [rbx + 0x50]
cmp esi, dword [rbx + 0x48]
jb 0x14001dda3
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 0x14001dde5
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x14001dde5
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.14001c720
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.14001cf20
mov rbx, rax
jmp 0x14001dd1a
mov rcx, r13
call fcn.14001c720
mov eax, 0xc
jmp 0x14001ddc1

Function at 0x14001de80
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001ce70
mov ecx, dword [0x1400d1328]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001dea8
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.14001cf20
test rax, rax
jne 0x14001de9a
add rsp, 0x28
ret

Function at 0x14001df10
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001ce70
mov ecx, dword [0x1400d1328]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001df38
add rax, 0x18
add rsp, 0x28
ret
call fcn.14001cf20
test rax, rax
jne 0x14001df2a
jmp 0x14001df2e

Function at 0x14001e050
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140104c68]
test eax, eax
jne 0x14001e068
xor eax, eax
add rsp, 0x28
ret
call fcn.14001ce70
mov ecx, dword [0x1400d1328]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001e098
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14001e05e
test byte [rax + 0x40], 3
je 0x14001e05e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x14001e060
call fcn.14001cf20
test rax, rax
je 0x14001e05e
jmp 0x14001e07e

Function at 0x14001e0b0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.14001ce70
mov ecx, dword [0x1400d1328]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001e0f0
test ebx, ebx
jle 0x14001e0e0
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.14001cf20
test rax, rax
jne 0x14001e0cd
add rsp, 0x20
pop rbx
ret
Function at 0x14001e1f0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001ce70
mov ecx, dword [0x1400d1328]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001e268
test byte [rbx + 0x40], 0xc
jne 0x14001e21f
mov eax, dword [0x140104c68]
test eax, eax
jne 0x14001e230
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14001c0d0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001e253
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001e253
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001e27c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001c3a0
call fcn.14001cf20
mov rbx, rax
test rax, rax
jne 0x14001e20f
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 0x14001e29a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14001c3a0
call fcn.14001e100
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001e318
call fcn.14001bd90
mov rsi, rax
mov eax, 0xffffffff
cmp rsi, rax
cmovbe rax, rsi
mov rdi, rax
call fcn.14001ce70
mov ecx, dword [0x1400d1328]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001e360
test rsi, rsi
je 0x14001e32e
call fcn.14001e1f0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001e350
mov edx, edi
call fcn.14001be60
call fcn.14001e1f0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001ce70
mov ecx, dword [0x1400d1328]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001e370
call fcn.14001e1f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001e1f0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001e306
call fcn.14001cf20
mov rbx, rax
jmp 0x14001e2ec
call fcn.14001cf20
jmp 0x14001e32e
Function at 0x14001e2b0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001ce70
mov ecx, dword [0x1400d1328]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001e268
test byte [rbx + 0x40], 0xc
jne 0x14001e21f
mov eax, dword [0x140104c68]
test eax, eax
jne 0x14001e230
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14001c0d0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001e253
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001e253
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001e27c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001c3a0
call fcn.14001cf20
mov rbx, rax
test rax, rax
jne 0x14001e20f
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 0x14001e29a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14001c3a0
call fcn.14001e100
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001e318
call fcn.14001bd90
mov rsi, rax
mov eax, 0xffffffff
cmp rsi, rax
cmovbe rax, rsi
mov rdi, rax
call fcn.14001ce70
mov ecx, dword [0x1400d1328]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001e360
test rsi, rsi
je 0x14001e32e
call fcn.14001e1f0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001e350
mov edx, edi
call fcn.14001be60
call fcn.14001e1f0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001ce70
mov ecx, dword [0x1400d1328]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001e370
call fcn.14001e1f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001e1f0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001e306
call fcn.14001cf20
mov rbx, rax
jmp 0x14001e2ec
call fcn.14001cf20
jmp 0x14001e32e

Function at 0x14001e380
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.14001ce70
mov ecx, dword [0x1400d1328]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001e3f0
test esi, esi
je 0x14001e3d0
call fcn.14001e1f0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001e400
mov edx, esi
call fcn.14001be60
call fcn.14001e1f0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001e1f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001e1f0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001cf20
mov rbx, rax
jmp 0x14001e3a1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001e3ba
Function at 0x140091d30
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbp, qword [sym.imp.msvcrt.dll__read]
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, rdi
call fcn.140091b40
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call rbp
movsxd r13, eax
cmp eax, 0xffffffff
je 0x140091d80
mov rax, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call r12
cmp dword [rax], 4
je 0x140091d53
mov rax, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret