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

Disassembly:
push rbp
lea rbp, [rsp - 0x350]
sub rsp, 0x450
mov rax, qword [0x140015008]
xor rax, rsp
mov qword [rbp + 0x340], rax
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.140002870
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rdx, str.driversHipShieldK.sys
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
xor edx, edx
lea rcx, [rbp + 0x130]
mov r8d, 0x208
call fcn.140002870
mov r8d, 0x104
lea rdx, [rbp + 0x130]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rbp + 0x130]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rdx, str.HipShieldK.sys
lea rcx, [rbp + 0x130]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
xor r8d, r8d
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x130]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1400012ca
xor edx, edx
lea r8d, [rax + 4]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov r8d, 4
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x130]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov rcx, qword [rbp + 0x340]
xor rcx, rsp
call fcn.140001580
add rsp, 0x450
pop rbp
ret

Function at 0x1400012e4
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x140015008]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, rdx
mov ebx, ecx
call fcn.140001440
cmp ebx, 2
jne 0x14000141b
lea edx, [rbx + 0xa]
lea rcx, str._InstallCat
call fcn.140003238
mov rcx, qword [rdi + 8]
lea rdx, str._InstallCat
mov r8, rax
call fcn.1400034c0
test eax, eax
jne 0x140001395
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.140002870
mov r8d, 0x104
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rdx, str.hipshieldk_x64.cat
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.1400011e8
lea r8, [rsp + 0x20]
lea ecx, [rbx - 1]
call fcn.140001028
jmp 0x14000141b
mov edx, 0xe
lea rcx, str._UninstallCat
call fcn.140003238
mov rcx, qword [rdi + 8]
lea rdx, str._UninstallCat
mov r8, rax
call fcn.1400034c0
test eax, eax
jne 0x14000141b
xor r8d, r8d
xor ecx, ecx
call fcn.140001028
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.140002870
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rdx, str.driversHipShieldK.sys
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14000141b
xor edx, edx
lea r8d, [rax + 4]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140001580
mov rbx, qword [rsp + 0x250]
add rsp, 0x240
pop rdi
ret
Function at 0x4154a0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x41564b
sub rsp, 0x50
mov qword [rsp + 0x48], rbp
lea rbp, [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.004304e0
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
nop
jne 0x41550e
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x415521
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x415545
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x415559
cmp rbx, 0x1000
jae 0x415518
nop
jmp 0x4155c9
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop
cmp rbx, 0x1000
jae 0x41556d
xor edx, edx
jmp 0x4155c0
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.004304e0
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
nop
test dl, dl
jne 0x41554f
jmp 0x415535
call fcn.0045dca0
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00434840
lea rax, [0x004c84e0]
mov ebx, 0x18
nop dword [rax + rax]
call fcn.00435140
mov rax, qword [rsp + 0x38]
call fcn.00434e40
lea rax, [0x004c8588]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.00435140
mov rax, qword [rsp + 0x30]
call fcn.00434e40
call fcn.00434aa0
call fcn.004348c0
lea rax, [0x004cac73]
mov ebx, 0x21
call fcn.004330a0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045a140
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.004154a0
Function at 0x415680
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4158aa
sub rsp, 0x58
mov qword [rsp + 0x50], rbp
lea rbp, [rsp + 0x50]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.00430560
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x4156fb
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x41570e
mov rbp, qword [rsp + 0x50]
add rsp, 0x58
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x415730
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x415744
cmp rbx, 0x1000
jae 0x415705
jmp 0x4157ce
mov rbp, qword [rsp + 0x50]
add rsp, 0x58
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x415756
xor esi, esi
jmp 0x4157c0
mov rax, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
nop dword [rax]
call fcn.00430560
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov esi, eax
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
test sil, sil
jne 0x41573a
jmp 0x415722
call fcn.0045dca0
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x415849
call fcn.00434840
lea rax, [0x004c8a6a]
mov ebx, 0x19
call fcn.00435140
mov rax, qword [rsp + 0x68]
call fcn.00434e40
lea rax, [0x004c8588]
mov ebx, 0x19
nop
call fcn.00435140
mov eax, dword [rsp + 0x34]
call fcn.00434e40
call fcn.00434aa0
call fcn.004348c0
lea rax, [0x004c44e3]
mov ebx, 0xd
call fcn.004330a0
cmp eax, 0x5af
je 0x4157f3
call fcn.00434840
lea rax, [0x004c8a6a]
mov ebx, 0x19
call fcn.00435140
mov rax, qword [rsp + 0x38]
call fcn.00434e40
lea rax, [0x004c8588]
mov ebx, 0x19
nop dword [rax]
call fcn.00435140
mov eax, dword [rsp + 0x34]
call fcn.00434e40
call fcn.00434aa0
call fcn.004348c0
lea rax, [0x004ca543]
mov ebx, 0x1f
call fcn.004330a0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045a140
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00415680
Function at 0x41d560
Capabilities:
Hash data using murmur3

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
cmp byte [0x005c7513], 0
jne 0x41d64f
nop
nop
nop
nop
sub rbx, qword [rax + 0x18]
nop
mov edx, dword [rax + 0x5c]
imul rbx, rdx
mov rdx, rbx
shr rbx, 0x20
nop
shr rdx, 0x23
and ebx, 7
mov rsi, rcx
mov rcx, rbx
mov edi, 1
shl edi, cl
nop
add rdx, qword [rax + 0x50]
lock or byte [rdx], dil
nop
nop
mov rcx, qword [rax + 0x18]
nop
movabs rdx, 0x800000000000
lea rax, [rdx + rcx]
mov rdx, rax
shr rax, 0x2a
cmp rax, 0x40
jae 0x41d645
lea rbx, [0x00599970]
mov rax, qword [rbx + rax*8]
shr rdx, 0x16
and edx, 0xfffff
mov rdx, qword [rax + rdx*8]
test byte [rdx], al
test byte [rax], al
mov rax, rcx
shr rcx, 0x10
and ecx, 0x3f
movzx ebx, byte [rdx + rcx + 0x21040]
lea rdx, [rdx + rcx]
lea rdx, [rdx + 0x21040]
shr rax, 0xd
and eax, 7
mov rcx, rax
mov eax, 1
shl eax, cl
nop dword [rax]
test al, bl
jne 0x41d627
lock or byte [rdx], al
mov rax, qword [r14 + 0x30]
mov rax, qword [rax + 0xa0]
test byte [rax], al
add qword [rax + 0x1248], rsi
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov ecx, 0x40
call fcn.0045c840
lea rax, [0x004cc6e0]
mov ebx, 0x2c
nop dword [rax + rax]
call fcn.004330a0
nop
int3
Function at 0x477e20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x477f26
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rsi
test r8, r8
je 0x477ea2
cmp rdi, r8
jb 0x477f18
cmp rsi, rbx
je 0x477e85
nop
mov rdx, rbx
lea rdi, [rsi + r8]
lea rdi, [rdi - 1]
cmp rdi, rbx
jb 0x477e82
mov rdi, rsi
lea r9, [rdx + r8]
lea r9, [r9 - 1]
cmp r9, rsi
jae 0x477f05
mov rbx, rdx
mov rsi, rdi
jmp 0x477e85
mov rbx, rdx
movzx edx, byte [rax + 0x400]
movzx edi, byte [rax + 0x401]
lea r9, [r8 - 1]
cmp rcx, r9
jbe 0x477efd
xor ecx, ecx
nop
jmp 0x477ee1
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
movzx r9d, byte [rsi + rcx]
inc edx
movzx r10d, dl
mov r11d, dword [rax + r10*4]
add edi, r11d
movzx r12d, dil
mov r13d, dword [rax + r12*4]
mov dword [rax + r10*4], r13d
mov dword [rax + r12*4], r11d
lea r10d, [r11 + r13]
movzx r10d, r10b
xor r9d, dword [rax + r10*4]
mov byte [rbx + rcx], r9b
inc rcx
cmp r8, rcx
jg 0x477eac
mov byte [rax + 0x400], dl
mov byte [rax + 0x401], dil
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov rax, r9
call fcn.0045c820
lea rax, [0x004af5a0]
lea rbx, [0x004f01d0]
call fcn.00432920
mov rcx, r8
mov rdx, rdi
nop
call fcn.0045c8a0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x38], r9
call fcn.0045a140
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov r8, qword [rsp + 0x30]
mov r9, qword [rsp + 0x38]
jmp fcn.00477e20
Function at 0x140001060
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x8038
call fcn.140001250
sub rsp, rax
mov rax, qword [0x140003008]
xor rax, rsp
mov qword [rsp + 0x8020], rax
mov rcx, qword [rdx]
call qword [sym.imp.libbu.dll_bu_setprogname]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.DEPRECATION_WARNING:__This_command_is_scheduled_for_removal.__Please_contact_the_developers_if_you_use_this_command._n_n
call fcn.140001010
mov ecx, 0xf4240
call qword [sym.imp.libbu.dll_bu_snooze]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov edx, 2
lea rcx, [rsp + 0x20]
mov r9, rax
mov r8d, 0x4000
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test eax, eax
jle 0x14000113e
mov qword [rsp + 0x8040], rbx
mov qword [rsp + 0x8030], rdi
xor ebx, ebx
mov edi, eax
test eax, eax
je 0x140001109
nop word [rax + rax]
movzx edx, word [rsp + rbx*2 + 0x20]
lea rcx, str._hd_n
call fcn.140001160
inc rbx
cmp rbx, rdi
jl 0x1400010f0
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov edx, 2
lea rcx, [rsp + 0x20]
mov r9, rax
mov r8d, 0x4000
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test eax, eax
jg 0x1400010e2
mov rdi, qword [rsp + 0x8030]
mov rbx, qword [rsp + 0x8040]
xor eax, eax
mov rcx, qword [rsp + 0x8020]
xor rcx, rsp
call fcn.1400012b0
add rsp, 0x8038
ret

Function at 0x140001b84
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001bce
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001bce
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001bce
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001bce
cmp dword [rcx + 0x84], 0xe
jbe 0x140001bce
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001bd0
xor al, al
add rsp, 0x28
ret
Function at 0x14005a760
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.140064d90
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.140064d90
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 0x14005a7d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14021f0b4]
mov rbx, rcx
test esi, esi
jle 0x14005a900
mov rax, qword [0x14021f0b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14005a81b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14005a8a5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14005a800
mov rcx, rbx
call fcn.14005b240
mov rdi, rax
test rax, rax
je 0x14005a922
mov rax, qword [0x14021f0b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14005b380
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14021f0b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14005a907
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14005a89e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14005a8b0
add dword [0x14021f0b4], 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 [0x14021f0b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14005a89e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14005a760
nop dword [rax]
xor esi, esi
jmp 0x14005a828
mov rax, qword [0x14021f0b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14005a760
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14005a760
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14005aeb0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14021f120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14021f100]
test rbx, rbx
je 0x14005af0c
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 0x14005af03
test eax, eax
jne 0x14005af03
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14005aee8
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 0x14005b240
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x14005b2c0
Capabilities:
Parse pe header

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

Function at 0x14005b380
Capabilities:
Parse pe header

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

Function at 0x14005c240
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2d
lea rdx, str._buffer_overflow_detected_:_terminated_n
call sub.msvcrt.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x14005c270
mov ecx, 8
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x14005c290
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2c
lea rdx, str._stack_smashing_detected_:_terminated_n
call sub.msvcrt.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x14005c2c0
mov ecx, 2
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140067320
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0xa8
mov rax, qword [0x1401f7040]
mov rdx, qword [rax]
mov qword [rsp + 0x98], rdx
xor edx, edx
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x78], 0
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 + 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 0x14006743a
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x140067412
add rax, 1
cmp rax, 0x6b
je 0x14006742f
cmp byte [rcx + rax], 0
jne 0x140067408
lea edx, [rax + 1]
cmp eax, 0x6a
je 0x14006742f
cdqe
mov byte [rsp + rax + 0x20], 0xa
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov edx, 0x28
mov eax, 0x27
lea rcx, [rsp + 0x20]
jmp 0x140067420

Function at 0x1400677d0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x14021fc40], 1
je 0x140067848
lea rdi, [0x14021fc40]
mov rcx, rdi
call fcn.1400670b0
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.1400669e0
mov esi, dword [0x14021fc40]
test esi, esi
jne 0x140067858
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140125a78], eax
cmp eax, 0xffffffff
je 0x1401081a6
mov dword [0x14021fc40], 1
mov rcx, rbp
call fcn.140066cb0
test rbx, rbx
je 0x140067848
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.140067450
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x140067828
mov ecx, 2
call qword [fcn.140064d90]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x140067828
call sub.msvcrt.dll_abort
nop
Function at 0x140067880
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.140067560
cmp qword [0x140222048], 0
mov rbx, rax
je 0x140067998
test rax, rax
je 0x140067998
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.140066fb0
cmp eax, 1
je 0x1400679a6
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.1401081ac
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x140125a78]
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 0x1400679ac
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.140067320
nop
jmp fcn.1401081ac

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

Disassembly:
sub rsp, 0x28
call fcn.1400677d0
mov ecx, dword [0x140125a78]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400679e0
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.140067880