joyce8/EMBER2024-capa huggingface dataset:
Function at 0x465c40
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x403dc3
push rbp
mov rbp, rsp
sub rsp, 0x18
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
call fcn.00409b80
add rsp, 0x18
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00463e40
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x403da0
cmp byte [0x005eed2b], 0
je 0x465c55
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x462e80
jmp 0x403da0

Function at 0x465c60
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov eax, dword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005ef020]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x005eed2b], 0
je 0x465c95
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x005ef340]
aesenc xmm0, xmmword [0x005ef350]
aesenc xmm0, xmmword [0x005ef360]
movq rax, xmm0
ret
jmp 0x409da0

Function at 0x465ca0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005ef020]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x005eed2b], 0
je 0x465cd6
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x005ef340]
aesenc xmm0, xmmword [0x005ef350]
aesenc xmm0, xmmword [0x005ef360]
movq rax, xmm0
ret
jmp 0x409e00

Function at 0x467a60
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x467a94
mov rcx, 0x28
jmp 0x467a9f
shl rcx, 3
add rcx, 0x1480
mov qword [0x005eef50], rcx
pop rbp
ret
Function at 0x47f440
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x47f50a
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call fcn.004032e0
xorps xmm15, xmm15
mov r14, qword [0x005eef50]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x47f4ef
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x004a2fc0]
xor ebx, ebx
mov rcx, rdx
call fcn.0044b8a0
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call fcn.0047fa20
inc rbx
cmp rcx, rbx
jae 0x47f4de
mov edi, 1
lea rsi, [0x004a2fc0]
call fcn.0044b980
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x004e1368]
lea rsi, [0x004e0cf0]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00463e40
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.0047f440

Function at 0x48fe60
Capabilities:
Hash data using fnv

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x49059f
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
movabs rcx, 0xcbf29ce484222325
jmp 0x48fe8d
lea rax, [rdx + 0x10]
dec rbx
mov rcx, rsi
test rbx, rbx
jle 0x490111
mov rdx, rax
mov rsi, qword [rax]
nop dword [rax]
test rsi, rsi
je 0x49013d
mov edi, dword [rsi + 0x10]
shr edi, 1
mov r8, qword [rax + 8]
and edi, 0x3f
lea rax, [0x004e2840]
jmp qword [rax + rdi*8]
mov rax, rcx
add rsp, 0x10
pop rbp
ret
lea rax, [0x004a2ec0]
lea rbx, [0x004e12c0]
call fcn.004363c0
inc rax
cmp rax, r8
jge 0x490162
mov r9, qword [rsi + rax*8]
xor r10d, r10d
nop
jmp 0x490197
lea rdi, [0x004a2f40]
mov rsi, rcx
movabs rcx, 0x100000001b3
jmp 0x48fe83
movzx r11d, r9b
xor rcx, r11
inc r10
shr r9, 8
movabs r11, 0x100000001b3
imul rcx, r11
cmp r10, 8
jl 0x49017b
jmp 0x490150
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call fcn.00463e40
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp fcn.0048fe60

Function at 0x490740
Capabilities:
Hash data using fnv

Disassembly:
test byte [rax], al
mov rcx, rbx
and ebx, 0x7f
shl rbx, 5
lea rdx, [rax + rbx]
xor eax, eax
jmp 0x490757
inc rax
cmp rax, 4
jge 0x49076f
lea rbx, [rdx + rax*8]
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x490754
mov eax, 1
ret
xor eax, eax
movabs rbx, 0xcbf29ce484222325
jmp 0x490780
inc rax
cmp rax, 4
jge 0x49078e
mov rsi, qword [rdx + rax*8]
xor edi, edi
jmp 0x4907b7
and ebx, 3
lea rdx, [rdx + rbx*8]
xchg qword [rdx], rcx
xor eax, eax
ret
movzx r8d, sil
xor rbx, r8
inc rdi
shr rsi, 8
movabs r8, 0x100000001b3
imul rbx, r8
cmp rdi, 8
jl 0x49079b
jmp 0x49077d
Function at 0x140012700
Capabilities:
Get thread local storage value

Disassembly:
mov rcx, qword [rcx + 8]
jmp 0x140012700
push rbx
sub rsp, 0x60
mov rbx, rcx
mov ecx, dword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001274d
cmp dword [rax], 0
jbe 0x14001274d
mov rcx, rbx
call fcn.140012640
mov ecx, dword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140012737
cmp dword [rax], 0
jne 0x140012747
lea rcx, [rbx + 0x10]
add rsp, 0x60
pop rbx
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x60
pop rbx
ret
lea rax, vtable.RSException.0
lea rdx, str.must_own_monitor_prior_to_calling_exit__
lea rcx, [rsp + 0x28]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
call fcn.14000fb80
lea rdx, [0x140035568]
lea rcx, [rsp + 0x20]
call fcn.14001436c
int3

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rdi, rcx
mov ecx, dword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140012828
lea edx, [rax + 4]
lea ecx, [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140012836
mov dword [rax], 0
mov ecx, dword [rdi + 8]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14001286c
mov rax, rbx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
lea rax, vtable.RSException.0
lea rdx, str.unable_to_create_tls_data
lea rcx, [rsp + 0x28]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
call fcn.14000fb80
lea rdx, [0x140035568]
lea rcx, [rsp + 0x20]
call fcn.14001436c
int3
lea rax, vtable.RSException.0
lea rdx, str.unable_to_set_tls_value
lea rcx, [rsp + 0x28]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
call fcn.14000fb80
lea rdx, [0x140035568]
lea rcx, [rsp + 0x20]
call fcn.14001436c
int3
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14001cfb0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14001cfc0]
mov dword [rax], 1
mov rax, qword [0x14001cfd0]
mov dword [rax], 1
mov rax, qword [0x14001cf60]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14001cfa0]
mov dword [0x14002200c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14001d080]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14001d060]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14001cef0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140002052
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rsi, rcx
mov rbx, rdx
test rdx, rdx
je 0x140002071
mov rcx, rdx
call sym.strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sym.fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp sym.fflush

Function at 0x140004cea
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov qword [rsp + 0x28], rdx
mov rsi, rcx
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8, qword [rsp + 0x28]
mov rcx, rsi
mov edx, 1
mov rbx, rax
mov r9, rax
call sym.fwrite
mov rcx, rbx
add rsp, 0x38
pop rbx
pop rsi
jmp sym.fflush

Function at 0x140004d29
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
cmp qword [0x1400220f0], 0
jne 0x140004d41
add rsp, 0x38
pop rbx
pop rsi
jmp sym.writeToStdErr__system_u4000
lea rsi, [rsp + 0x20]
mov rdx, rcx
mov rcx, rsi
call sym.cstrToNimstr
mov rbx, qword [rsp + 0x28]
mov rcx, rsi
call qword [0x1400220f0]
test rbx, rbx
je 0x140004d72
test byte [rbx + 7], 0x40
jne 0x140004d72
mov rcx, rbx
call sym.deallocImpl__system_u1765
lea rcx, [0x140016260]
call dbg.__emutls_get_address
cmp byte [rax], 0
je 0x140004daa
mov byte [rax], 0
lea rcx, [0x1400161a0]
call dbg.__emutls_get_address
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x38
pop rbx
pop rsi
jmp sym.eqcopy___stdZtypedthreads_u169
add rsp, 0x38
pop rbx
pop rsi
ret
Function at 0x140005379
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
lea r12, [0x1400220c0]
xor ebx, ebx
lea r14, [0x140016260]
mov rsi, rcx
mov rdi, rdx
lea r13, [rsp + 0x20]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbp, qword [dbg.__acrt_iob_func]
mov ecx, 1
cmp rbx, rdi
jl case.default.0x1400053f8
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x1400172bb]
mov r9, rax
call sym.fwrite
mov ecx, 1
call rbp
mov rcx, rax
call sym.fflush
mov rcx, r12
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rbp
xor r8d, r8d
mov rdx, r13
mov rcx, rax
mov rax, rbx
shl rax, 4
movups xmm0, xmmword [rsi + rax]
movaps xmmword [rsp + 0x20], xmm0
call sym.writeWindows__system_u8944
mov rcx, r14
call dbg.__emutls_get_address
cmp byte [rax], 0
jne 0x140005431
inc rbx
jmp 0x1400053b2
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x140008d50
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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140008dc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140022624]
mov rbx, rcx
test esi, esi
jle 0x140008ef0
mov rax, qword [0x140022628]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140008e0b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140008e95
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140008df0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140008f12
mov rax, qword [0x140022628]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140022628]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140008ef7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140008e8e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140008ea0
add dword [0x140022624], 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 [0x140022628]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140008e8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140008e18
mov rax, qword [0x140022628]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400094a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140022680]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140022660]
test rbx, rbx
je 0x1400094fc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400094f3
test eax, eax
jne 0x1400094f3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400094d8
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 0x140009710
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140009728
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140009730
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140009740
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000978d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140009784
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000978f
add rax, 0x28
cmp rax, r9
jne 0x140009770
xor eax, eax
ret

Function at 0x140009790
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140009820
mov rdx, qword [0x14001cf60]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000980e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000980e
cmp word [rax + 0x18], 0x20b
jne 0x14000980e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140009820
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400097f9
add rbx, 0x28
cmp rbx, rdi
je 0x140009820
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400097f0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140009830
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x1400098b0
Capabilities:
Parse pe header

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

Function at 0x1400098f0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14001cf60]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140009910
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140009918
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140009910
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140009960
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140009957
test rcx, rcx
je 0x140009910
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140009948
xor eax, eax
ret
Function at 0x140009970
Capabilities:
Parse pe header

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

Function at 0x1400099b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14001cf60]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400099d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400099d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400099d0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400099d0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140009a24
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140009a30
add rdx, 0x28
cmp rdx, r9
jne 0x140009a10
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140009a40
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14001cf60]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140009a62
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140009a70
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140009a62
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140009a62
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140009a62
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140009ac5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140009ad8
add rdx, 0x28
cmp r10, rdx
jne 0x140009ab0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140009ae7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140009af7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140009ace
test ecx, ecx
jg 0x140009ae0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x14000fbf0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140016528], eax
cmp eax, 0xffffffff
je sym.pthread_tls_init.cold
add rsp, 0x28
ret
Function at 0x14000fc10
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 0x14000fd12
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14000fcea
add rax, 1
cmp rax, 0x6b
je 0x14000fd07
cmp byte [rcx + rax], 0
jne 0x14000fce0
lea edx, [rax + 1]
cmp eax, 0x6a
je 0x14000fd07
cdqe
mov byte [rsp + rax + 0x20], 0xa
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sym.abort
mov edx, 0x28
mov eax, 0x27
lea rcx, [rsp + 0x20]
jmp 0x14000fcf8
Function at 0x140010270
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
cmp dword [0x140023180], 1
je 0x140010316
lea rdi, [0x140016510]
lea rsi, [0x140023180]
mov rcx, rdi
call sym.pthread_spin_lock
mov rbx, qword [0x140023130]
test rbx, rbx
jne 0x1400102c0
jmp 0x1400104b3
mov rax, qword [rbx + 0x18]
test rax, rax
je 0x140010480
mov rbx, rax
cmp qword [rbx], rsi
jne 0x1400102b0
add dword [rbx + 0x10], 1
lea rsi, [rbx + 8]
mov rcx, rdi
call sym.pthread_spin_unlock
mov rcx, rsi
call sym.pthread_mutex_lock
mov edi, dword [0x140023180]
test edi, edi
jne 0x140010340
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140016528], eax
cmp eax, 0xffffffff
je sym.__pthread_self_lite.cold
mov dword [0x140023180], 1
mov rcx, rsi
call sym.pthread_mutex_unlock
mov rcx, rbx
call sym.leaveOnceObject.part.0
mov ecx, dword [0x140016528]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140010370
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp edi, 1
je 0x140010306
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r9d, edi
lea r8, [0x140023180]
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sym.fprintf
jmp 0x140010306
call sym.pop_pthread_mem
cmp qword [sym.__dyn_tls_pthread], 0
mov rsi, rax
je 0x14001032a
test rax, rax
je 0x14001032a
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rsi + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rsi + 0x38], 0xffffffffffffffff
lea rcx, [rsi + 0x68]
mov qword [rsi + 0x30], rax
call sym.pthread_spin_destroy
cmp eax, 1
je 0x1400104d8
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsi + 0x68], 0xffffffffffffffff
mov dword [rsi + 0xb8], 0
mov qword [rsi + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, rbx
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rsi + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je sym.__pthread_self_lite.cold
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x140016528]
mov rdx, rsi
mov dword [rsi + 0xbc], 0
mov dword [rsi + 0xc0], eax
movzx eax, byte [rsi + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rsi + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je sym.__pthread_self_lite.cold
mov rbx, rsi
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov edx, 0x20
mov ecx, 1
call sym.calloc
mov qword [rax], rsi
mov dword [rax + 0x10], 1
mov qword [rbx + 0x18], rax
mov rbx, rax
lea rsi, [rbx + 8]
xor edx, edx
mov rcx, rsi
call sym.pthread_mutex_init
jmp 0x1400102cd
mov edx, 0x20
mov ecx, 1
call sym.calloc
mov qword [rax], rsi
mov rbx, rax
mov dword [rax + 0x10], 1
mov qword [0x140023130], rax
jmp 0x1400104a0
call sym.replace_spin_keys.part.0
nop
nop