joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013068
Capabilities:
Set file attributes

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbp
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
push r14
sub rsp, 0x70
mov rax, qword gs:[0x58]
mov r14, rcx
mov ecx, 8
mov ebp, r8d
mov rsi, rdx
mov r9, qword [rax]
lea rax, str.CTieredVolume::SetDesiredStorageClass
mov qword [rcx + r9], rax
lea rcx, [r11 - 0x30]
call fcn.140008524
and qword [rsp + 0x98], 0
lea r8, [rsp + 0x98]
mov rdx, rsi
mov rcx, r14
call fcn.1400121e8
mov dword [rsp + 0x50], eax
mov edi, eax
test eax, eax
jns 0x140013107
mov rcx, qword [0x140047138]
lea rax, [0x140047138]
cmp rcx, rax
je 0x1400131a1
test byte [rcx + 0x1c], 1
je 0x1400131a1
cmp byte [rcx + 0x19], 2
jb 0x1400131a1
mov edx, 0x10b
mov dword [rsp + 0x30], edi
jmp 0x140013179
mov rcx, qword [rsp + 0x98]
lea r8, [rsp + 0x40]
xor eax, eax
mov dword [rsp + 0x20], 0x43
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x40], ebp
lea r9d, [rax + 8]
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
mov ebp, eax
test eax, eax
jns 0x1400131a1
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call fcn.140003930
mov edi, eax
mov dword [rsp + 0x50], eax
mov rcx, qword [0x140047138]
lea rax, [0x140047138]
cmp rcx, rax
je 0x1400131a1
test byte [rcx + 0x1c], 1
je 0x1400131a1
cmp byte [rcx + 0x19], 2
jb 0x1400131a1
mov edx, 0x10c
mov dword [rsp + 0x30], ebp
mov r9, qword [rsi + 8]
lea rax, [r14 + 0x2a0]
mov rcx, qword [rcx + 0x10]
lea r8, [0x14003f470]
mov qword [rsp + 0x28], rax
mov rax, qword [rsi]
mov qword [rsp + 0x20], rax
call fcn.14000a84c
cmp qword [rsp + 0x98], 0
je 0x1400131ba
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntdll.dll_NtClose]
lea rcx, [rsp + 0x48]
call fcn.140008380
lea r11, [rsp + 0x70]
mov eax, edi
mov rbp, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r14
ret
Function at 0x140014ac0
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rbp
mov qword [rsp + 0x10], rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rax, qword gs:[0x58]
mov rbp, rcx
mov ecx, 8
mov r14, r8
mov r15, rdx
mov r9, qword [rax]
lea rax, str.CTieredVolume::QueryDesiredStorageClass
mov qword [rcx + r9], rax
lea rcx, [rsp + 0x48]
call fcn.140008524
and qword [rsp + 0xa8], 0
lea r8, [rsp + 0xa8]
mov rdx, r15
mov rcx, rbp
call fcn.1400121e8
mov dword [rsp + 0x50], eax
mov esi, eax
test eax, eax
jns 0x140014b61
mov rcx, qword [0x140047138]
lea rax, [0x140047138]
cmp rcx, rax
je 0x140014c09
test byte [rcx + 0x1c], 1
je 0x140014c09
cmp byte [rcx + 0x19], 2
jb 0x140014c09
mov edx, 0x134
mov dword [rsp + 0x30], esi
jmp 0x140014be1
mov rcx, qword [rsp + 0xa8]
lea r8, [rsp + 0x40]
mov r9d, 8
mov dword [rsp + 0x20], 0x43
lea rdx, [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov edi, eax
test eax, eax
js 0x140014b96
mov eax, dword [rsp + 0x40]
mov dword [r14], eax
jmp 0x140014c09
cmp edi, 0xc000050c
jne 0x140014ba4
and dword [r14], 0
jmp 0x140014c09
mov ecx, edi
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call fcn.140003930
mov esi, eax
mov dword [rsp + 0x50], eax
mov rcx, qword [0x140047138]
lea rax, [0x140047138]
cmp rcx, rax
je 0x140014c09
test byte [rcx + 0x1c], 1
je 0x140014c09
cmp byte [rcx + 0x19], 2
jb 0x140014c09
mov edx, 0x135
mov dword [rsp + 0x30], edi
mov r9, qword [r15 + 8]
lea rax, [rbp + 0x2a0]
mov rcx, qword [rcx + 0x10]
lea r8, [0x14003f470]
mov qword [rsp + 0x28], rax
mov rax, qword [r15]
mov qword [rsp + 0x20], rax
call fcn.14000a84c
cmp qword [rsp + 0xa8], 0
je 0x140014c22
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ntdll.dll_NtClose]
lea rcx, [rsp + 0x48]
call fcn.140008380
lea r11, [rsp + 0x70]
mov eax, esi
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14001834c
Capabilities:
Access peb ldr_data

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, qword gs:[0x58]
mov rdi, rcx
mov ecx, 8
mov esi, r9d
mov rbp, r8
mov rbx, rdx
mov r10, qword [rax]
lea rax, str.TieringJetDatabase::Initialize
mov qword [rcx + r10], rax
lea rcx, [r11 - 0x18]
call fcn.140008524
mov rax, qword [rsp + 0x70]
mov qword [rdi + 0x68], rax
mov qword [rdi], rbx
mov dword [rdi + 0x60], esi
mov qword [rdi + 0x70], rbp
cmp esi, 1
jne 0x1400183b2
lea rax, str.TieringEngineHeat
jmp 0x1400183d0
cmp esi, 2
jne 0x1400183c0
lea rax, str.TieringPinnedFiles
jmp 0x1400183d0
cmp esi, 3
jne 0x140018469
lea rax, str.TieringPinnedCacheFiles
mov rcx, qword [rdi + 0x50]
xor esi, esi
mov qword [rdi + 0x58], rax
test rcx, rcx
je 0x1400183e7
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ResetEvent]
jmp 0x14001845c
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov rbx, rax
test rax, rax
jne 0x140018458
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx r8d, ax
or r8d, 0x80070000
test eax, eax
cmovle r8d, eax
mov dword [rsp + 0x38], r8d
mov rcx, qword [0x140047138]
lea rax, [0x140047138]
cmp rcx, rax
je 0x140018458
test byte [rcx + 0x1c], 1
je 0x140018458
cmp byte [rcx + 0x19], 2
jb 0x140018458
mov r9, qword [rdi + 0x70]
lea edx, [rbx + 0x3e]
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x20], r8d
lea r8, [0x14003f758]
call fcn.140003cf4
mov qword [rdi + 0x50], rbx
mov word [rdi + 0x4c], si
mov byte [rdi + 0x9c], 1
jmp 0x1400184b4
mov ebx, 0x8009300f
mov dword [rsp + 0x38], ebx
mov rcx, qword [0x140047138]
lea rax, [0x140047138]
cmp rcx, rax
je 0x1400184b2
test byte [rcx + 0x1c], 1
je 0x1400184b2
cmp byte [rcx + 0x19], 2
jb 0x1400184b2
mov rcx, qword [rcx + 0x10]
lea r8, [0x14003f758]
mov edx, 0x3d
mov dword [rsp + 0x28], ebx
mov r9d, esi
mov qword [rsp + 0x20], rbp
call fcn.1400156cc
mov esi, ebx
lea rcx, [rsp + 0x30]
call fcn.140008380
mov rbx, qword [rsp + 0x50]
mov eax, esi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14003b67c
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140047cc8], rbx
je 0x14003b6e3
cmp rax, rbx
jne 0x14003b6d6
mov ebx, 1
mov esi, ebx
jmp 0x14003b6e8
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14003b6bb
mov ebx, 1
mov eax, dword [0x140047cd0]
cmp eax, ebx
jne 0x14003b700
mov edi, 0x1f
mov ecx, edi
call fcn.1400da000
jmp 0x14003b76c
mov eax, dword [0x140047cd0]
test eax, eax
jne 0x14003b761
mov dword [0x140047cd0], ebx
lea r15, [0x14003e280]
lea rdi, [0x14003e268]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14003b753
test eax, eax
jne 0x14003b757
cmp qword [rdi], r14
je 0x14003b748
mov rax, qword [rdi]
mov rcx, qword [0x14003e228]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14003b72a
test eax, eax
je 0x14003b767
mov eax, 0xff
jmp 0x14003b8c0
mov dword [0x140047284], ebx
mov edi, 0x1f
mov eax, dword [0x140047cd0]
cmp eax, ebx
jne 0x14003b793
lea rdx, [0x14003e260]
lea rcx, [0x14003e230]
call sub.msvcrt.dll__initterm
mov dword [0x140047cd0], 2
test esi, esi
jne 0x14003b7a1
mov rax, r14
xchg qword [0x140047cc8], rax
cmp qword [0x140047ce8], r14
je 0x14003b7d4
lea rcx, [0x140047ce8]
call fcn.14003bc50
test eax, eax
je 0x14003b7d4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140047ce8]
mov r9, qword [0x14003e228]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14003b7ed
mov eax, 0xff
jmp 0x14003b8c0
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x14003b871
cmp word [rcx], r14w
je 0x14003b806
test edx, edx
jne 0x14003b871
movzx eax, word [rcx]
sub ax, bx
cmp ax, di
ja 0x14003b81c
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14003b806
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140001fa0
mov dword [0x140047280], eax
cmp dword [0x1400472a0], r14d
jne 0x14003b85a
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140047284], r14d
jne 0x14003b86f
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140047280]
jmp 0x14003b8c0
cmp word [rcx], 0x22
jne 0x14003b885
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14003b7f6
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.14003bcd0
add rsp, 0x28
jmp 0x14003b67c
Function at 0x14003bb60
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14003bbac
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14003bba4
cmp dword [rcx + 0x3c], edx
jl 0x14003bba4
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14003bba4
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14003bbac
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
push rcx
push rsi
mov rsi, qword [rdx + 0x50]
movzx rcx, word [rdx + 0x4a]
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
push rax
mov r8d, dword [rax + 0x20]
add r8, rdx
mov ecx, dword [rax + 0x18]
jrcxz 0x1400040ca
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
pop r8
pop rsi
add rax, rdx
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x140002a64
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 8], 0
cmp qword [rbp + 0x18], 0
je 0x140002a94
mov rax, qword [rbp + 0x18]
mov rcx, rax
call fcn.140002a26
mov rcx, rax
jmp 0x140002a99
mov ecx, 0
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov r9, rdx
mov r8, rcx
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sub.msvcrt.dll_fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400078d1
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp - 8], 0
mov rdx, qword [rbp + 0x20]
mov rcx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sub.msvcrt.dll_fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400085d0
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
call fcn.140002be9
mov qword [rbp - 0x10], rax
lea rax, [0x14001e180]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov qword [rbp - 0x18], 0
mov qword [rbp - 8], 0
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x18]
jge 0x140008677
mov rax, qword [rbp - 8]
shl rax, 4
mov rdx, rax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov ecx, 1
mov rax, qword [fcn.14000f760]
call rax
mov rcx, rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rax + 8]
mov rax, qword [rax]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rdx
lea rax, [rbp - 0x40]
mov r8d, 0
mov rdx, rax
call fcn.14000844b
mov rax, qword [rbp - 0x10]
movzx eax, byte [rax]
movzx eax, al
test eax, eax
jne 0x1400086e4
add qword [rbp - 8], 1
jmp 0x14000860c
nop
mov qword [rbp - 0x20], 0
mov ecx, 1
mov rax, qword [fcn.14000f760]
call rax
mov r9, rax
mov r8d, 1
mov edx, 1
lea rax, [0x140017469]
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x24], 0
mov ecx, 1
mov rax, qword [fcn.14000f760]
call rax
mov rcx, rax
call sub.msvcrt.dll_fflush
mov dword [rbp - 0x24], eax
lea rax, [0x14001e180]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400086e5
nop
nop
add rsp, 0x60
pop rbp
ret

Function at 0x140009730
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.14000f760
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.14000f760
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 0x1400097a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14001e244]
mov rbx, rcx
test esi, esi
jle 0x1400098d0
mov rax, qword [0x14001e248]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400097eb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140009875
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400097d0
mov rcx, rbx
call fcn.14000a1f0
mov rdi, rax
test rax, rax
je 0x1400098f2
mov rax, qword [0x14001e248]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000a330
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14001e248]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400098d7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000986e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140009880
add dword [0x14001e244], 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 [0x14001e248]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000986e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140009730
nop dword [rax]
xor esi, esi
jmp 0x1400097f8
mov rax, qword [0x14001e248]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140009730
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140009730
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140009e60
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14001e2a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14001e280]
test rbx, rbx
je 0x140009ebc
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 eax, eax
jne 0x140009eb3
test rsi, rsi
je 0x140009eb3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140009e98
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 0x14000a1f0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x14000a270
Capabilities:
Parse pe header

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

Function at 0x14000a330
Capabilities:
Parse pe header

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

Function at 0x1400107d0
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 0x1400108d2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x1400108aa
add rax, 1
cmp rax, 0x6b
je 0x1400108c7
cmp byte [rcx + rax], 0
jne 0x1400108a0
movsxd rdx, eax
cmp eax, 0x6a
je 0x1400108c7
add eax, 1
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x1400108bb
Function at 0x140010c70
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x14001eda0], 1
je 0x140010ce8
lea rdi, [0x14001eda0]
mov rcx, rdi
call fcn.140010550
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.14000fed0
mov esi, dword [0x14001eda0]
test esi, esi
jne 0x140010cf8
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400162a8], eax
cmp eax, 0xffffffff
je 0x1400155d6
mov dword [0x14001eda0], 1
mov rcx, rbp
call fcn.1400101c0
test rbx, rbx
je 0x140010ce8
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.1400108f0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x140010cc8
mov ecx, 2
call qword [fcn.14000f760]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x140010cc8
call sub.msvcrt.dll_abort
nop

Function at 0x140010d20
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.140010a00
cmp qword [0x140020048], 0
mov rbx, rax
je 0x140010e38
test rax, rax
je 0x140010e38
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.140013fa0
cmp eax, 1
je 0x140010e46
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.1400155dc
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1400162a8]
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 0x140010e4c
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.1400107d0
nop
jmp fcn.1400155dc

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

Disassembly:
sub rsp, 0x28
call fcn.140010c70
mov ecx, dword [0x1400162a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140010e80
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.140010d20
Function at 0x1400115f0
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 0x140011718
cmp eax, 1
je 0x14001164b
call fcn.140010550
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.14000fed0
mov r12d, dword [rbx]
test r12d, r12d
je 0x140011660
cmp r12d, 1
jne 0x1400116f0
mov rcx, rbp
call fcn.1400101c0
test rdi, rdi
je 0x14001164b
mov rcx, rdi
call fcn.1400108f0
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x1400109d0]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.140010c70
mov ecx, dword [0x1400162a8]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x140011758
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.140010c70
mov ecx, dword [0x1400162a8]
call r12
test rax, rax
je 0x140011740
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.140010c70
mov ecx, dword [0x1400162a8]
call r12
test rax, rax
je 0x140011730
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x140011636
mov ecx, 2
call qword [fcn.14000f760]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x140011636
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140010d20
test rax, rax
jne 0x1400116d9
jmp 0x1400155f5
call fcn.140010d20
test rax, rax
jne 0x1400116b5
jmp 0x14001560e
call fcn.140010d20
test rax, rax
jne 0x14001168f
jmp 0x140015604
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 0x1400119e0
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.140010c70
mov ecx, dword [0x1400162a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140011a58
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.140013fb0
cmp esi, dword [rbx + 0x48]
jae 0x140011a33
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x140011a33
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.140013ff0
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.140010d20
mov rbx, rax
jmp 0x140011a0d