joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1f5cc9780
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x1f5cc986d
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
lea rcx, [rbx + 1]
nop dword [rax + rax]
test rcx, rcx
jle 0x1f5cc9859
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rax
mov qword [rsp], rcx
nop dword [rax]
call fcn.1f5cc98a0
xorps xmm15, xmm15
mov r14, qword [0x1f5e9ac70]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x18]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rcx
mov rdx, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x60]
cmp rbx, rcx
mov rsi, rcx
cmovl rsi, rbx
mov rdi, qword [rsp + 0x58]
cmp rdi, rdx
jne 0x1f5cc9813
cmp rbx, rcx
jmp 0x1f5cc9845
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rax
mov rax, rdx
mov rbx, rdi
mov rcx, rsi
call fcn.1f5c26e40
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x18]
cmp rax, rcx
mov rdx, qword [rsp + 0x40]
mov rbx, rax
mov rax, qword [rsp + 0x38]
jae 0x1f5cc9851
mov byte [rdx + rbx], 0
add rsp, 0x48
pop rbp
ret
mov rax, rbx
call fcn.1f5c264c0
lea rax, [0x1f5cfa9a0]
lea rbx, [0x1f5d56000]
call fcn.1f5bf67e0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.1f5c241c0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.1f5cc9780

Function at 0x1f5cca390
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov qword [0x1f5e9e728], rax
mov rax, qword [0x1f5e9e728]
test rax, rax
jne 0x1f5cca3fa
mov ecx, 2
mov rax, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call rax
mov r9, rax
mov r8d, 0x3d
mov edx, 1
lea rax, str.runtime:_failed_to_create_runtime_initialization_wait_event._n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
lea rax, [0x1f5e9e700]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call rax
nop
add rsp, 0x20
pop rbp
ret
Function at 0x1f5cca6f6
Capabilities:
Create thread

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov dword [rbp - 4], 0
jmp 0x1f5cca766
mov rdx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthread]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0xffffffffffffffff
jne 0x1f5cca759
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call rax
mov eax, dword [rax]
cmp eax, 0xd
jne 0x1f5cca759
mov eax, dword [rbp - 4]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
jmp 0x1f5cca762
cmp qword [rbp - 0x10], 0xffffffffffffffff
jne 0x1f5cca79f
jmp 0x1f5cca76c
add dword [rbp - 4], 1
cmp dword [rbp - 4], 0x13
jle 0x1f5cca712
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call rax
mov ebx, dword [rax]
mov ecx, 2
mov rax, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call rax
mov rcx, rax
mov r8d, ebx
lea rax, str.runtime:_failed_to_create_new_OS_thread___d__n
mov rdx, rax
call fcn.1f5ccb8d0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
add rsp, 0x38
pop rbx
pop rbp
ret

Function at 0x1f5ccaaf0
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.1f5ccb8b0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]
Function at 0x1f5ccab60
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1f5e9e794]
test esi, esi
mov rbx, rcx
jle 0x1f5ccac90
mov rax, qword [0x1f5e9e798]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1f5ccabab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1f5ccac35
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1f5ccab90
mov rcx, rbx
call fcn.1f5ccb3c0
test rax, rax
mov rdi, rax
je 0x1f5ccacb2
mov rax, qword [0x1f5e9e798]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1f5ccb500
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1f5e9e798]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1f5ccac97
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1f5ccac2e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1f5ccac40
add dword [0x1f5e9e794], 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 [0x1f5e9e798]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1f5ccac2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1f5ccaaf0
nop dword [rax]
xor esi, esi
jmp 0x1f5ccabb8
mov rax, qword [0x1f5e9e798]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.1f5ccaaf0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.1f5ccaaf0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x1f5ccb030
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1f5e9e7c0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1f5e9e7a0]
test rbx, rbx
je 0x1f5ccb08c
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 0x1f5ccb083
test rsi, rsi
je 0x1f5ccb083
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1f5ccb068
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 0x1f5ccb3c0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x1f5ccb440
Capabilities:
Parse pe header

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

Function at 0x1f5ccb500
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1f5e0bd00]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1f5ccb51f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1f5ccb528
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140021d50]
mov dword [rax], 1
mov rax, qword [0x140021d60]
mov dword [rax], 1
mov rax, qword [0x140021d70]
mov dword [rax], 1
mov rax, qword [0x140021d40]
mov dword [rax], 1
mov rax, qword [0x140021c00]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000150a
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140002ae3
Capabilities:
Write file on windows

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

Function at 0x14000612a
Capabilities:
Write file on windows

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

Function at 0x14000616d
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x38
cmp qword [0x140028150], 0
jne 0x140006189
add rsp, 0x38
pop r12
pop r13
jmp sym.writeToStdErr__system_u4000
lea r13, [rsp + 0x20]
mov rdx, rcx
mov rcx, r13
call sym.cstrToNimstr
mov r12, qword [rsp + 0x28]
mov rcx, r13
call qword [0x140028150]
test r12, r12
je 0x1400061bc
test byte [r12 + 7], 0x40
jne 0x1400061bc
mov rcx, r12
call sym.deallocImpl__system_u1765
lea rcx, [0x14001f2c0]
call sym.__emutls_get_address
cmp byte [rax], 0
je 0x1400061f6
mov byte [rax], 0
lea rcx, [0x14001f200]
call sym.__emutls_get_address
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x38
pop r12
pop r13
jmp sym.eqcopy___stdZtypedthreads_u169
add rsp, 0x38
pop r12
pop r13
ret
Function at 0x1400069f3
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, [0x140028120]
xor ebx, ebx
lea r14, [0x14001f2c0]
mov rsi, rcx
mov rdi, rdx
lea r13, [rsp + 0x20]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbp, qword [sym.__acrt_iob_func]
mov ecx, 1
cmp rbx, rdi
jl 0x140006a79
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x14002033b]
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_u8973
mov rcx, r14
call sym.__emutls_get_address
cmp byte [rax], 0
jne 0x140006aab
inc rbx
jmp 0x140006a2c
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x140007274
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
movaps xmmword [rsp + 0x30], xmm6
xor r12d, r12d
mov rdi, rcx
mov rbx, rdx
mov rsi, r8
test rdx, rdx
jle 0x14000748b
mov al, byte [rcx]
cmp al, 0x2b
je 0x1400072ad
mov ebp, 1
cmp al, 0x2d
jne 0x1400072c6
jmp 0x1400072b1
or rbp, 0xffffffffffffffff
xor r12d, r12d
cmp rbx, 1
je 0x14000748b
mov r12d, 1
jmp 0x1400072cd
xor r12d, r12d
or rbp, 0xffffffffffffffff
mov al, byte [rdi + r12]
sub eax, 0x30
cmp al, 9
ja 0x140007488
mov qword [rsi], 0
movq xmm6, qword [0x1400209e0]
movabs r14, 0x8000000000000000
movzx r10d, byte [rdi + r12]
lea eax, [r10 - 0x30]
cmp al, 9
jbe 0x140007314
mov rax, qword [rsi]
cmp rbp, 0xffffffffffffffff
jne 0x140007430
jmp 0x140007422
sub r10, 0x30
lea r13, [rsp + 0x28]
mov rcx, r14
mov r8, r13
mov rdx, r10
call sym.nimAddInt_3
test al, al
jne 0x140007475
mov rax, qword [rsp + 0x28]
mov r8d, 0xa
mov rcx, qword [rsi]
cqo
idiv r8
cmp rax, rcx
jle 0x140007366
call sym.integerOutOfRangeError__pureZparseutils_u325
mov rcx, qword [0x140021be0]
call sym.__emutls_get_address
cmp byte [rax], 0
je 0x1400073be
jmp 0x140007488
imul rax, rcx, 0xa
cvtsi2sd xmm1, rcx
mulsd xmm1, qword [0x1400209d0]
cvtsi2sd xmm0, rax
ucomisd xmm1, xmm0
jp 0x140007384
je 0x1400073a3
subsd xmm0, xmm1
movaps xmm2, xmm1
andps xmm2, xmm6
andps xmm0, xmm6
mulsd xmm0, qword [0x1400209f0]
comisd xmm2, xmm0
jb 0x140007475
mov rdx, rax
sub rdx, r10
xor rax, rdx
xor r10, rdx
not rax
or rax, r10
jns 0x140007475
mov qword [rsi], rdx
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, r12
call sym.nimAddInt_3
test al, al
jne 0x140007475
mov r12, qword [rsp + 0x20]
cmp r12, rbx
jge 0x140007302
test r12, r12
jns 0x1400073fc
lea rdx, [rbx - 1]
mov rcx, r12
call sym.raiseIndexError2
jmp 0x140007488
cmp byte [rdi + r12], 0x5f
jne 0x1400072f5
mov r8, r13
mov edx, 1
mov rcx, r12
call sym.nimAddInt_3
test al, al
jne 0x140007475
mov r12, qword [rsp + 0x28]
jmp 0x1400073dd
mov edx, 1
shl rdx, 0x3f
cmp rax, rdx
je 0x14000747c
cvtsi2sd xmm0, rbp
mov rdx, rax
cvtsi2sd xmm1, rax
imul rdx, rbp
mulsd xmm1, xmm0
cvtsi2sd xmm0, rdx
ucomisd xmm1, xmm0
jp 0x140007452
je 0x140007483
subsd xmm0, xmm1
movq xmm2, qword [0x1400209e0]
movaps xmm3, xmm1
andps xmm3, xmm2
andps xmm0, xmm2
mulsd xmm0, qword [0x1400209f0]
comisd xmm3, xmm0
jae 0x140007483
call sym.raiseOverflow
jmp 0x140007488
call sym.integerOutOfRangeError__pureZparseutils_u325
jmp 0x140007488
mov qword [rsi], rdx
jmp 0x14000748b
xor r12d, r12d
movaps xmm6, xmmword [rsp + 0x30]
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x14000c150
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x14000cd82
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140028308]
test eax, eax
je 0x14000ce1a
lea rax, [0x1400282e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140028310]
mov qword [rbp - 8], rax
jmp 0x14000cdfe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14000cdf2
cmp qword [rbp - 0x10], 0
je 0x14000cdf2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14000cdb8
lea rax, [0x1400282e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000ce1b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14000cf20
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14000cf48
mov eax, 0
jmp 0x14000cf96
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000cf71
mov eax, 0
jmp 0x14000cf96
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14000cf91
mov eax, 0
jmp 0x14000cf96
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14000cf9c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14000d01a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14000d011
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14000d011
mov rax, qword [rbp - 8]
jmp 0x14000d02f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14000cfe4
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140014974
Capabilities:
Print debug messages

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
cmp qword [rbp + 0x10], 0
je 0x140014abe
mov rcx, qword [rbp + 0x10]
call sym.pthread_spin_destroy
cmp eax, 1
jne 0x140014ab1
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdx
movabs rax, 0x6b5f6e6970732070
movabs rdx, 0x20726f6620737965
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
movabs rax, 0x20646165726874
mov edx, 0
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 0
mov word [rbp - 8], 0
mov byte [rbp - 6], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov ecx, eax
lea rax, [rbp - 0x70]
add rax, 0x27
mov r8d, 0xa
mov rdx, rax
mov rax, qword [sym.imp.msvcrt.dll__ultoa]
call rax
mov dword [rbp - 4], 0x27
jmp 0x140014a67
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cdqe
movzx eax, byte [rbp + rax - 0x70]
test al, al
je 0x140014a7d
mov eax, dword [rbp - 4]
cmp eax, 0x69
jbe 0x140014a63
mov eax, dword [rbp - 4]
cmp eax, 0x69
ja 0x140014a9c
mov eax, dword [rbp - 4]
cdqe
mov byte [rbp + rax - 0x70], 0xa
mov eax, dword [rbp - 4]
add eax, 1
cdqe
mov byte [rbp + rax - 0x70], 0
lea rax, [rbp - 0x70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rax
call sym.abort
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov qword [rax], rdx
jmp 0x140014abf
nop
add rsp, 0x90
pop rbp
ret
Function at 0x140015adb
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [sym.imp.KERNEL32.dll_TlsAlloc]
call rax
mov dword [0x14001f4d0], eax
mov eax, dword [0x14001f4d0]
cmp eax, 0xffffffff
jne 0x140015b02
call sym.abort
nop
add rsp, 0x20
pop rbp
ret

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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xffffffffffffffff
lea rax, [sym.pthread_tls_init]
mov rdx, rax
lea rax, [0x140028d90]
mov rcx, rax
call sym._pthread_once_raw
mov eax, dword [0x14001f4d0]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140015d08
mov rax, qword [rbp - 0x10]
jmp 0x140015e68
call sym.pop_pthread_mem
mov qword [rbp - 0x10], rax
mov rax, qword [sym.__dyn_tls_pthread]
test rax, rax
je 0x140015d24
cmp qword [rbp - 0x10], 0
jne 0x140015d2e
mov eax, 0
jmp 0x140015e68
mov rax, qword [rbp - 0x10]
mov dword [rax + 0x44], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0x70], eax
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov rdx, qword [rbp - 0x10]
mov qword [rdx + 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 0x10]
lea rcx, [rax + 0x68]
mov rax, qword [rbp - 8]
mov rdx, rax
call sym.replace_spin_keys
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xb8], 0
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
lea rdi, [rax + 0x28]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rsi, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rdi
mov r8, rsi
mov rdx, rbx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call rax
test eax, eax
jne 0x140015e09
call sym.abort
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetThreadPriority]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0xc0], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 0
mov rax, qword [rbp - 0x10]
movzx edx, byte [rax + 0x40]
and edx, 0xffffffcf
or edx, 0x10
mov byte [rax + 0x40], dl
mov eax, dword [0x14001f4d0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
test eax, eax
jne 0x140015e64
call sym.abort
mov rax, qword [rbp - 0x10]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret