joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000234c
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x240
xor r12d, r12d
mov r15d, r8d
xor eax, eax
mov rbx, rdx
mov rsi, rcx
lock cmpxchg qword [rcx], r12
je 0x1400023b3
or rdi, 0xffffffffffffffff
cmp rax, rdi
jne 0x140002392
xor eax, eax
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
or rdi, 0xffffffffffffffff
mov qword [rbp + 0x188], r12
test r15b, 1
je 0x1400023d2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
jmp 0x140002517
bt qword [0x140005368], 0
lea rdx, str.LoadLibraryExW
lea rcx, [0x140007058]
call fcn.140002280
mov r14, rax
test rax, rax
je 0x140002390
mov r13d, 2
test r13b, r15b
je 0x140002409
mov r8d, r13d
jmp 0x14000250f
test r15b, 4
je 0x140002417
xor r8d, r8d
jmp 0x14000250f
bt qword [0x140005360], 0
lea rdx, str.AddDllDirectory
lea rcx, [0x140007050]
call fcn.140002280
test rax, rax
jne 0x140002509
bt qword [0x140005358], 0
lea rdx, str.LdrLoadDll
lea rcx, [0x140007048]
call fcn.140002280
mov r15, rax
test rax, rax
je 0x140002390
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0x102
ja 0x14000240f
mov rdx, rdi
mov rax, rbx
mov rcx, r12
test rbx, rbx
je 0x1400024af
cmp word [rax], r12w
je 0x1400024af
inc rcx
add rax, r13
sub rdx, 1
jne 0x14000249d
add rcx, rcx
mov qword [rsp + 0x28], rbx
movzx eax, cx
lea r9, [rbp + 0x188]
mov edx, 0xffff
lea r8, [rsp + 0x20]
cmp rcx, rdx
cmova ax, dx
mov word [rsp + 0x20], ax
lea rax, [rcx + 2]
add cx, r13w
cmp rax, rdx
cmova cx, dx
xor edx, edx
mov word [rsp + 0x22], cx
lea rcx, [rsp + 0x30]
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
call r15
mov rax, qword [rbp + 0x188]
jmp 0x14000251e
mov r8d, 0x800
xor edx, edx
mov rcx, rbx
call r14
mov qword [rbp + 0x188], rax
test rax, rax
jne 0x14000252b
xchg qword [rsi], rdi
jmp 0x140002390
xchg qword [rsi], rax
test rax, rax
je 0x140002540
mov rcx, qword [rbp + 0x188]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [rbp + 0x188]
jmp 0x140002392
Function at 0x140003520
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov ebx, ecx
mov dword [rsp + 0x60], 0
xor ecx, ecx
mov dword [rsp + 0x68], 2
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003582
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140003582
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
jne 0x140003582
mov eax, 0x20b
cmp word [rdx + 0x18], ax
jne 0x140003582
cmp dword [rdx + 0x84], 0xe
jbe 0x140003582
cmp dword [rdx + 0xf8], 0
je 0x140003582
mov ecx, ebx
call fcn.1400033e0
lea rax, [rsp + 0x68]
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rcx, [0x140007710]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.140003250
cmp dword [rsp + 0x60], 0
jne 0x1400035c5
mov ecx, ebx
call fcn.140003390
int3
add rsp, 0x40
pop rbx
ret

Function at 0x140003610
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
xor eax, eax
mov ebx, ecx
xor ecx, ecx
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x68], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000366c
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000366c
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000366c
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000366c
cmp dword [rcx + 0x84], 0xe
jbe 0x14000366c
cmp dword [rcx + 0xf8], 0
je 0x14000366c
mov ecx, ebx
call fcn.1400033e0
lea rax, [rsp + 0x68]
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rcx, [0x140007710]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.140003250
cmp dword [rsp + 0x60], 0
jne 0x1400036af
mov ecx, ebx
call fcn.140003390
int3
add rsp, 0x40
pop rbx
ret
Function at 0x140004430
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x4f0]
sub rsp, 0x5f0
mov rax, qword [0x1400070c8]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x14000446c
mov ecx, 5
int 0x29
mov ecx, 2
call fcn.140002ce0
xorps xmm0, xmm0
lea rcx, [rbp + 0x10]
xor eax, eax
xor edx, edx
mov r8d, 0x4d0
mov qword [rbp], rax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rcx, [rbp + 0x10]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rbp + 0x108]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x140004528
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], 0
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov rax, qword [rbp + 0x4f8]
mov qword [rbp + 0x108], rax
lea rax, [rbp + 0x4f8]
add rax, 8
mov dword [rsp + 0x70], 0xc0000417
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x4f8]
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x74], 1
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x140004590
test ebx, ebx
jne 0x140004590
mov ecx, 2
call fcn.140002ce0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp + 0x4e0]
xor rcx, rsp
call fcn.1400028c0
mov rbx, qword [rsp + 0x600]
add rsp, 0x5f0
pop rbp
ret
Function at 0x14001b874
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001b88a
mov al, 1
jmp 0x14001b8ea
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001b89b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001b8e8
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400199c8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001b8e8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001b8e8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001b8e8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001b8ea
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001fd00
Capabilities:
Parse pe header

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

Function at 0x140001040
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov edx, 0x47
lea rcx, [entry0]
mov al, byte [rcx + rdx]
xor al, 0x1a
add al, 0x2d
xor al, 0xf8
mov byte [rcx + rdx], al
inc rdx
cmp rdx, 0x2d9
jl 0x140001068
cdq
or dword [rsi], ebp
imul dword [rbx + rbp*4]
in al, dx
mov ebx, 0x1a0d9e1d
push rdx
iretd
Function at 0x140002a24
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
lea rcx, [rsp + 0x20]
call fcn.140002480
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x140002a78
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002a73
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002a73
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400041b4
call fcn.1400026c8
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_istream_char__struct_std::char_traits_char__::get_void____ptr64]
mov edx, dword [0x140007660]
lea rcx, str.___deluxe_debug______size:__d._n
call fcn.140001008
mov eax, dword [0x140007660]
cmp eax, 6
je 0x140002b33
cmp eax, 8
jne 0x140002bca
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov r8, qword [rax + 0x30]
movsxd rcx, dword [r8 + 0x3c]
mov r9d, dword [rcx + r8 + 0x88]
add r9, r8
cmp r9, r8
je 0x140002b2e
mov edx, dword [r9 + 0x18]
test edx, edx
je 0x140002b2e
mov edi, dword [r9 + 0x20]
dec edx
mov r11d, 0xfeb0b555
lea rcx, [rdi + rdx*4]
mov r10d, dword [rcx + r8]
add r10, r8
mov cl, byte [r10]
inc r10
test cl, cl
je 0x140002b2a
movsx ecx, cl
xor ecx, r11d
imul r11d, ecx, 0x1000193
mov cl, byte [r10]
inc r10
test cl, cl
jne 0x140002b06
cmp r11d, 0x541f24d5
je 0x140002bae
test edx, edx
jne 0x140002ae9
mov rax, qword [rax]
jmp 0x140002ac5
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov r8, qword [rax + 0x30]
movsxd rcx, dword [r8 + 0x3c]
mov r9d, dword [rcx + r8 + 0x88]
add r9, r8
cmp r9, r8
je 0x140002ba9
mov edx, dword [r9 + 0x18]
test edx, edx
je 0x140002ba9
mov edi, dword [r9 + 0x20]
dec edx
mov r11d, 0xfba1a612
lea rcx, [rdi + rdx*4]
mov r10d, dword [rcx + r8]
add r10, r8
mov cl, byte [r10]
inc r10
test cl, cl
je 0x140002ba5
movsx ecx, cl
xor ecx, r11d
imul r11d, ecx, 0x1000193
mov cl, byte [r10]
inc r10
test cl, cl
jne 0x140002b85
cmp r11d, 0x13dde32a
je 0x140002bae
test edx, edx
jne 0x140002b68
mov rax, qword [rax]
jmp 0x140002b44
mov ecx, dword [r9 + 0x24]
add rcx, r8
movzx edx, word [rcx + rdx*2]
mov ecx, dword [r9 + 0x1c]
add rcx, r8
mov eax, dword [rcx + rdx*4]
xor ecx, ecx
add rax, r8
call rax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x180988058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1809881df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x180988089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18098806f
add dl, dl
jne 0x180988096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1809880f6
xor eax, eax
add dl, dl
jne 0x1809880a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1809881ad
add dl, dl
jne 0x1809880b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1809880c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1809880d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1809880dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1809880ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18098807e
mov eax, 1
add dl, dl
jne 0x180988106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180988113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1809880fb
sub eax, ebx
mov ebx, 1
jne 0x18098814c
mov ecx, 1
add dl, dl
jne 0x18098812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18098813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180988123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18098807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180988168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180988175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18098815d
cmp eax, 0x7d00
jae 0x18098819b
cmp eax, 0x500
jb 0x180988196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18098807e
cmp eax, 0x7f
ja 0x18098819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18098807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1809881d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x18098807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000ae80
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.140014d60
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.140014d60
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 0x14000aef0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400ea024]
test esi, esi
mov rbx, rcx
jle 0x14000b020
mov rax, qword [0x1400ea028]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000af3b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000afc5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000af20
mov rcx, rbx
call fcn.14000b940
test rax, rax
mov rdi, rax
je 0x14000b042
mov rax, qword [0x1400ea028]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000ba80
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400ea028]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000b027
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000afbe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000afd0
add dword [0x1400ea024], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x1400ea028]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000afbe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000ae80
nop dword [rax]
xor esi, esi
jmp 0x14000af48
mov rax, qword [0x1400ea028]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.14000ae80
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.14000ae80
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000b5b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400ea080]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400ea060]
test rbx, rbx
je 0x14000b60c
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 0x14000b603
test rsi, rsi
je 0x14000b603
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000b5e8
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 0x14000b940
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x14000b9c0
Capabilities:
Parse pe header

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

Function at 0x14000ba80
Capabilities:
Parse pe header

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

Function at 0x140017290
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
mov qword [rsp + 0x20], rax
movabs rax, 0x7520676e696e6165
mov qword [rsp + 0x28], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x30], rax
movabs rax, 0x20726f6620737965
mov qword [rsp + 0x38], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
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 + 0x78], 0
mov dword [rsp + 0x87], 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 0x14001739a
lea rcx, [rsp + 0x20]
mov eax, 0x28
jmp 0x140017372
add rax, 1
cmp rax, 0x6b
je 0x14001738f
cmp byte [rcx + rax], 0
jne 0x140017368
cmp eax, 0x6a
movsxd rdx, eax
je 0x14001738f
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
lea rcx, [rsp + 0x20]
mov eax, 0x28
mov edx, 0x27
jmp 0x140017383
Function at 0x140017710
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1400eaca0], 1
je 0x140017788
lea rdi, [0x1400eaca0]
mov rcx, rdi
call fcn.140017010
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.140016920
mov esi, dword [0x1400eaca0]
test esi, esi
jne 0x140017798
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x1400b2158], eax
je 0x1400b1596
mov dword [0x1400eaca0], 1
mov rcx, rbp
call fcn.140016c10
test rbx, rbx
je 0x140017788
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.1400173b0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x140017768
mov ecx, 2
call qword [fcn.140014d60]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x140017768
call sub.msvcrt.dll_abort
nop

Function at 0x1400177c0
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.1400174c0
cmp qword [0x1400ed048], 0
mov rbx, rax
je 0x1400178d8
test rax, rax
je 0x1400178d8
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
mov dword [rbx + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.140016f10
cmp eax, 1
je 0x1400178e6
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
lea r9, [rbx + 0x28]
mov rcx, rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je fcn.1400b159c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1400b2158]
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 0x1400178ec
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.140017290
nop
jmp fcn.1400b159c

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

Disassembly:
sub rsp, 0x28
call fcn.140017710
mov ecx, dword [0x1400b2158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140017920
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.1400177c0
Function at 0x140018090
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [rcx]
test rdx, rdx
mov rbx, rcx
mov rsi, rdx
je 0x1400181b8
cmp eax, 1
je 0x1400180eb
call fcn.140017010
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.140016920
mov r12d, dword [rbx]
test r12d, r12d
je 0x140018100
cmp r12d, 1
jne 0x140018190
mov rcx, rbp
call fcn.140016c10
test rdi, rdi
je 0x1400180eb
mov rcx, rdi
call fcn.1400173b0
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x140017490]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.140017710
mov ecx, dword [0x1400b2158]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x1400181f8
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.140017710
mov ecx, dword [0x1400b2158]
call r12
test rax, rax
je 0x1400181e0
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.140017710
mov ecx, dword [0x1400b2158]
call r12
test rax, rax
je 0x1400181d0
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x1400180d6
mov ecx, 2
call qword [fcn.140014d60]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x1400180d6
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.1400177c0
test rax, rax
jne 0x140018179
jmp 0x1400b15b5
call fcn.1400177c0
test rax, rax
jne 0x140018155
jmp 0x1400b15ce
call fcn.1400177c0
test rax, rax
jne 0x14001812f
jmp 0x1400b15c4
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 0x140018480
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.140017710
mov ecx, dword [0x1400b2158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x1400184f8
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.140016f20
cmp esi, dword [rbx + 0x48]
jae 0x1400184d3
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x1400184d3
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.140016f60
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.1400177c0
mov rbx, rax
jmp 0x1400184ad