joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001a110
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 + 0x6000], 0
lea rbx, [rcx + 0x6008]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x14001a1b7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14001a16a
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.14001c920
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140003e60
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x6000]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x6010]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x140053968]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14001a1bf
mov rcx, rbx
call fcn.140003e60
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x14001a4e0
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
mov rbx, qword [0x140053970]
xor ebp, ebp
cmp byte [rbx + 0x5f58], bpl
jne 0x14001a5bf
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14001a5b8
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
call fcn.140003720
mov rsi, rax
test rax, rax
je 0x14001a5b8
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x14001a544
mov rcx, rax
call fcn.14001a710
mov r8, qword [0x140053970]
test r8, r8
je 0x14001a5af
movsx rdx, word [r8 + 0x60e0]
lea rcx, [r8 + 0x60e4]
mov r9d, dword [r8 + 0x3f68]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x14001a5a4
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x60e0], cx
movsx rax, cx
lea rcx, [r8 + 0x60e4]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], ebp
inc word [rcx + 6]
inc dword [r8 + 0x60dc]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [rbx + 0x5f58], 1
movss xmm0, dword [rbx + 0x5f5c]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x14001a64e
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5f5c], xmm0
jb 0x14001a64e
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x14001a641
mov rax, qword [0x140053970]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov dword [rax + 0x5f5c], ebp
call fcn.14001a970
lea rdx, [0x140046784]
mov rcx, rdi
mov rsi, rax
call fcn.140003570
mov rdi, rax
test rax, rax
je 0x14001a648
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x14001a648
mov byte [rbx + 0xce], 1
mov dword [rbx + 0x5f5c], ebp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14001a670
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x140053970]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x14001a6d3
mov qword [rsp], rbx
lea rbx, [0x140046c60]
nop dword [rax]
cmp r9b, 0x23
jne 0x14001a6b3
cmp byte [r8], r9b
jne 0x14001a6b3
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 0x14001a6a0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5f70]
not eax
mov r8, qword [r10 + 0x5f78]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x14001a6ff
cmp dword [r8 + 8], eax
je 0x14001a706
add r8, 0x48
cmp r8, rcx
jne 0x14001a6f0
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x14002ed00
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x70
mov rax, qword [0x140053040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [0x140053970]
mov rbp, rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14002ef1e
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14002ef1e
mov qword [rsp + 0x80], rbx
mov ecx, 0x50
mov qword [rsp + 0x88], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, qword [0x140053970]
xor ebx, ebx
mov rdi, rax
test r8, r8
je 0x14002edd4
movsx rdx, word [r8 + 0x60e0]
lea rax, [r8 + 0x60e4]
mov r9d, dword [r8 + 0x3f68]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x14002edc9
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x60e0], cx
movsx rax, cx
lea rax, [rax*8 + 0x60e4]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x60d8]
test rdi, rdi
je 0x14002edf1
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x40], xmm0
jmp 0x14002edf4
mov rdi, rbx
or dword [rsi + 0xc], 6
lea rax, str.imgui_impl_win32
mov qword [rsi + 0x80], rax
mov qword [rsi + 0x90], rdi
mov qword [rdi], rbp
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x60]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
test r8, r8
je 0x14002ee37
mov rsi, qword [r8 + 0x90]
jmp 0x14002ee3a
mov rsi, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rsi + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x14002ee65
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x140053970]
mov rcx, qword [rax + 0x4b28]
mov rax, qword [rcx]
mov qword [rax + 0x28], rbp
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x30], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x38], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x48], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x50], rax
mov byte [rdi + 0x31], 1
nop word [rax + rax]
mov rcx, qword [rsp + rbx*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x14002eede
inc rbx
cmp rbx, 5
jl 0x14002eec0
jmp 0x14002ef0a
lea rdx, str.XInputGetCapabilities
mov qword [rdi + 0x38], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rsi
mov qword [rdi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x48], rax
mov rdi, qword [rsp + 0x88]
mov al, 1
mov rbx, qword [rsp + 0x80]
jmp 0x14002ef20
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140041fb0
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret
Function at 0x140042b78
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140042bc2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140042bc2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140042bc2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140042bc2
cmp dword [rcx + 0x84], 0xe
jbe 0x140042bc2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140042bc4
xor al, al
add rsp, 0x28
ret

Function at 0x140042df0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140042e2a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140042e2f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140042e78
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400456c0]
cmp byte [rcx + rax], 0
je 0x140042e78
dec r8
sub rdx, 1
jne 0x140042e5e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14000165c
Capabilities:
Enumerate pe sections

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
xor r12d, r12d
mov rax, qword [r9]
mov r14, qword [r9 + 8]
mov qword [rsp + 0x88], rdx
movzx edx, word [rax + 0x14]
mov r13, rcx
mov r15, r8
mov rbp, r9
lea rbx, [rax + rdx + 0x18]
mov rax, qword [rbp]
movzx eax, word [rax + 6]
cmp eax, r12d
jle 0x140001755
mov edx, dword [rbx + 0x10]
test edx, edx
jne 0x1400016ef
mov esi, dword [r15 + 0x38]
test esi, esi
jle 0x140001749
mov ecx, dword [rbx + 0xc]
mov rax, qword [rbp + 0x58]
mov r9d, 4
mov rdx, rsi
mov r8d, 0x1000
add rcx, r14
mov qword [rsp + 0x20], rax
call qword [rbp + 0x28]
test rax, rax
je 0x14000172e
mov edx, dword [rbx + 0xc]
xor eax, eax
mov rcx, rsi
add rdx, r14
mov rdi, rdx
mov dword [rbx + 8], edx
rep stosb byte [rdi], al
jmp 0x140001749
mov eax, edx
add eax, dword [rbx + 0x14]
cmp qword [rsp + 0x88], rax
jb 0x140001723
mov ecx, dword [rbx + 0xc]
mov rax, qword [rbp + 0x58]
mov r9d, 4
mov r8d, 0x1000
add rcx, r14
mov qword [rsp + 0x20], rax
call qword [rbp + 0x28]
test rax, rax
jne 0x140001732
jmp 0x14000172e
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14000175a
mov eax, dword [rbx + 0xc]
mov esi, dword [rbx + 0x14]
mov ecx, dword [rbx + 0x10]
add rax, r14
add rsi, r13
mov rdi, rax
rep movsb byte [rdi], byte [rsi]
mov dword [rbx + 8], eax
inc r12d
add rbx, 0x28
jmp 0x140001690
mov eax, 1
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140001b10
Capabilities:
Enumerate pe sections

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
movabs r12, 0xffffffff00000000
mov rdx, qword [rcx]
movzx eax, word [rdx + 0x14]
and r12, qword [rdx + 0x30]
lea rbx, [rdx + rax + 0x18]
mov rdi, rcx
mov eax, dword [rdi + 0x68]
mov ecx, dword [rbx + 8]
neg rax
or rcx, r12
and rax, rcx
mov qword [rsp + 0x20], rcx
mov ecx, dword [rbx + 0x24]
mov qword [rsp + 0x28], rax
mov eax, dword [rbx + 0x10]
test eax, eax
jne 0x140001b76
test cl, 0x40
je 0x140001b6a
mov eax, dword [rdx + 0x20]
jmp 0x140001b76
mov eax, ecx
and eax, 0x80
je 0x140001b76
mov eax, dword [rdx + 0x24]
mov eax, eax
mov dword [rsp + 0x38], ecx
add rbx, 0x28
mov r15d, 1
mov qword [rsp + 0x30], rax
xor eax, eax
lea rbp, [rsp + 0x20]
mov dword [rsp + 0x3c], eax
mov rdx, qword [rdi]
movzx eax, word [rdx + 6]
cmp eax, r15d
jle 0x140001c50
mov r13d, dword [rbx + 8]
mov r14d, dword [rdi + 0x68]
mov eax, dword [rbx + 0x10]
or r13, r12
neg r14
and r14, r13
test eax, eax
jne 0x140001bd4
mov eax, dword [rbx + 0x24]
test al, 0x40
je 0x140001bca
mov eax, dword [rdx + 0x20]
jmp 0x140001bd4
and eax, 0x80
je 0x140001bd4
mov eax, dword [rdx + 0x24]
mov rdx, qword [rsp + 0x20]
mov esi, eax
cmp qword [rsp + 0x28], r14
je 0x140001bef
mov rax, qword [rsp + 0x30]
add rax, rdx
cmp r14, rax
jae 0x140001c1f
mov r8d, dword [rbx + 0x24]
mov ecx, dword [rsp + 0x38]
mov eax, r8d
or eax, ecx
bt r8d, 0x19
jae 0x140001c09
bt ecx, 0x19
jb 0x140001c0e
and eax, 0xfdffffff
sub r13, rdx
mov dword [rsp + 0x38], eax
add r13, rsi
mov qword [rsp + 0x30], r13
jmp 0x140001c44
mov rdx, rbp
mov rcx, rdi
call fcn.14000189f
test eax, eax
je 0x140001c6d
mov eax, dword [rbx + 0x24]
mov qword [rsp + 0x20], r13
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x38], eax
inc r15d
add rbx, 0x28
jmp 0x140001b96
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov dword [rsp + 0x3c], 1
call fcn.14000189f
test eax, eax
setne al
movzx eax, al
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14000bb00
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.140012290
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.140012290
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 0x14000bb70
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400310a4]
mov rbx, rcx
test esi, esi
jle 0x14000bca0
mov rax, qword [0x1400310a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000bbbb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000bc45
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000bba0
mov rcx, rbx
call fcn.14000c5c0
mov rdi, rax
test rax, rax
je 0x14000bcc2
mov rax, qword [0x1400310a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000c700
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400310a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000bca7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000bc3e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000bc50
add dword [0x1400310a4], 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 [0x1400310a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000bc3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000bb00
nop dword [rax]
xor esi, esi
jmp 0x14000bbc8
mov rax, qword [0x1400310a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000bb00
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000bb00
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000c230
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140031100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400310e0]
test rbx, rbx
je 0x14000c28c
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 0x14000c283
test rsi, rsi
je 0x14000c283
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000c268
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 0x14000c5c0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x14000c640
Capabilities:
Parse pe header

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

Function at 0x14000c700
Capabilities:
Parse pe header

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

Function at 0x1400133f0
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 0x1400134f2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x1400134ca
add rax, 1
cmp rax, 0x6b
je 0x1400134e7
cmp byte [rcx + rax], 0
jne 0x1400134c0
movsxd rdx, eax
cmp eax, 0x6a
je 0x1400134e7
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 0x1400134db
Function at 0x140013890
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x140031c10], 1
je 0x140013908
lea rdi, [0x140031c10]
mov rcx, rdi
call fcn.140013170
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.140012af0
mov esi, dword [0x140031c10]
test esi, esi
jne 0x140013918
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140025118], eax
cmp eax, 0xffffffff
je 0x140024806
mov dword [0x140031c10], 1
mov rcx, rbp
call fcn.140012de0
test rbx, rbx
je 0x140013908
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.140013510
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x1400138e8
mov ecx, 2
call qword [fcn.140012290]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x1400138e8
call sub.msvcrt.dll_abort
nop

Function at 0x140013940
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.140013620
cmp qword [0x140034048], 0
mov rbx, rax
je 0x140013a58
test rax, rax
je 0x140013a58
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.140016bc0
cmp eax, 1
je 0x140013a66
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.14002480c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x140025118]
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 0x140013a6c
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.1400133f0
nop
jmp fcn.14002480c

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

Disassembly:
sub rsp, 0x28
call fcn.140013890
mov ecx, dword [0x140025118]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140013aa0
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.140013940
Function at 0x140014210
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 0x140014338
cmp eax, 1
je 0x14001426b
call fcn.140013170
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.140012af0
mov r12d, dword [rbx]
test r12d, r12d
je 0x140014280
cmp r12d, 1
jne 0x140014310
mov rcx, rbp
call fcn.140012de0
test rdi, rdi
je 0x14001426b
mov rcx, rdi
call fcn.140013510
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x1400135f0]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.140013890
mov ecx, dword [0x140025118]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x140014378
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.140013890
mov ecx, dword [0x140025118]
call r12
test rax, rax
je 0x140014360
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.140013890
mov ecx, dword [0x140025118]
call r12
test rax, rax
je 0x140014350
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x140014256
mov ecx, 2
call qword [fcn.140012290]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x140014256
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140013940
test rax, rax
jne 0x1400142f9
jmp 0x140024825
call fcn.140013940
test rax, rax
jne 0x1400142d5
jmp 0x14002483e
call fcn.140013940
test rax, rax
jne 0x1400142af
jmp 0x140024834
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 0x140014600
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.140013890
mov ecx, dword [0x140025118]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140014678
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.140016bd0
cmp esi, dword [rbx + 0x48]
jae 0x140014653
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x140014653
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.140016c10
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.140013940
mov rbx, rax
jmp 0x14001462d