joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140054f60
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rsi, rcx
mov rax, qword [0x14024f018]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp qword [rcx], 0
je 0x140055044
cmp dword [rsi + 8], 0
js 0x140055044
lea r15, [rsi + 0x10]
cmp byte [rsi + 0x27], 0
jns 0x140055066
mov ebp, dword [rsi + 0x20]
dec ebp
lea rdi, [rsp + 0x4c]
mov dword [rdi], ebp
lea r14, [rsi + 0x28]
mov eax, dword [rsi + 0x30]
mov rbx, qword [rsi + 0x28]
sub eax, ebx
add eax, 0xfffffffe
and eax, 0xfffffffe
lea r13, [rsi + 0x40]
mov dword [rsi + 0x40], eax
lea r12, [rsi + 0x44]
mov edx, ebp
mov rcx, r15
call fcn.140054040
mov edx, dword [rsi + 8]
mov rcx, qword [rsi]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], 0
mov r8, rax
mov r9, rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0xea
je 0x140055070
test eax, eax
jne 0x140055044
mov eax, dword [r13]
inc rax
and rax, 0xfffffffffffffffe
mov rcx, qword [r14]
mov word [rcx + rax], 0
mov dil, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140106490
mov eax, edi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, [rsi + 0x10]
cmp byte [rsi + 0x27], 0
jns 0x140055051
mov rax, qword [rax]
xor edi, edi
mov word [rax], di
mov rax, qword [rsi + 0x28]
mov word [rax], di
mov dword [rsi + 0x40], 0
jmp 0x140055024
mov ebp, 0xa
jmp 0x140054fa9
mov edx, dword [rsi + 0x40]
inc rdx
shr rdx, 1
mov rdi, qword [rsi + 0x28]
mov rax, qword [rsi + 0x30]
sub rax, rdi
mov rcx, rax
sar rcx, 1
sub rdx, rcx
jb 0x1400550b0
lea r8, [rsp + 0x4a]
mov word [r8], 0
inc rdx
mov rcx, r14
call fcn.140055490
mov rdi, qword [rsi + 0x28]
mov rax, qword [rsi + 0x30]
sub rax, rdi
add eax, 0xfffffffe
and eax, 0xfffffffe
mov dword [rsi + 0x40], eax
lea rbx, [rsp + 0x4c]
cmp dword [rbx], ebp
mov edx, 0x4000
cmovne edx, ebp
mov dword [rbx], edx
mov rcx, r15
call fcn.140054040
mov edx, dword [rsi + 8]
mov rcx, qword [rsi]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], 0
mov r8, rax
mov r9, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
jmp 0x140055009
Function at 0x1400551b0
Capabilities:
Query or enumerate registry key

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov rsi, rcx
mov rax, qword [0x14024f018]
xor rax, rsp
mov qword [rsp + 0x70], rax
or r9d, 0x20019
mov qword [rsp + 0x20], rcx
mov rcx, rdx
mov rdx, r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14005528a
lea rdi, [rsp + 0x60]
mov dword [rdi], 0
mov rcx, qword [rsi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x58], 0
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x140055281
mov edx, dword [rsp + 0x60]
dec edx
mov dword [rsi + 8], edx
mov rcx, qword [rsi]
test rcx, rcx
je 0x140055291
test edx, edx
js 0x140055291
lea r9, [rsp + 0x6c]
mov dword [r9], 0x104
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x60], rax
lea r8, [rsi + 0xc]
mov qword [rsp + 0x38], rdi
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140055297
jmp 0x140055291
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsi], 0
mov word [rsi + 0xc], 0
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140106490
nop
add rsp, 0x78
pop rdi
pop rsi
ret

Function at 0x140055350
Capabilities:
Query or enumerate registry key

Disassembly:
push rsi
sub rsp, 0x60
mov rsi, rcx
mov rax, qword [0x14024f018]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [rcx + 8]
lea edx, [rax - 1]
mov dword [rcx + 8], edx
mov rcx, qword [rcx]
test rcx, rcx
je 0x1400553be
test eax, eax
jle 0x1400553be
lea r9, [rsp + 0x54]
mov dword [r9], 0x104
movabs r8, 0xaaaaaaaaaaaaaaaa
lea rax, [rsp + 0x48]
mov qword [rax], r8
lea r8, [rsi + 0xc]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1400553c4
mov word [rsi + 0xc], 0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140106490
nop
add rsp, 0x60
pop rsi
ret
Function at 0x14005b5c0
Capabilities:
Move file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1a0
mov rsi, rcx
mov rax, qword [0x14024f018]
xor rax, rsp
mov qword [rsp + 0x198], rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x180], xmm0
movaps xmmword [rsp + 0x170], xmm0
mov dword [rsp + 0x190], 0
cmp byte [rcx + 0x17], 0
jns 0x14005b606
mov rcx, qword [rsi]
lea r8, [rsp + 0x170]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x14005b6b4
mov rcx, rsi
call fcn.1400511d0
movzx r8d, al
xor r8d, 5
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14005b63a
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, eax
test eax, eax
je 0x14005b719
lea rcx, str..._.._chrome_installer_util_delete_after_reboot_helper.cc
mov edx, 0x3a
call fcn.1400ed9b0
test eax, eax
jle 0x14005b78f
lea rdx, str..._.._chrome_installer_util_delete_after_reboot_helper.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r8d, 0x5e
mov r9d, 0xffffffff
call fcn.14004bc40
lea rcx, [rsp + 0x40]
lea rdx, str.Scheduled_for_deletion:
mov r8d, 0x18
call fcn.1400e7690
mov rcx, rax
mov rdx, rsi
call fcn.14004c500
mov rcx, rbx
call fcn.14004c0e0
jmp 0x14005b78f
mov ecx, 1
call fcn.14004bc00
test al, al
je 0x14005b715
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._chrome_installer_util_delete_after_reboot_helper.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 0x3f
mov r9d, 1
call fcn.140157100
lea rcx, [rsp + 0x40]
mov rdx, rsi
call fcn.14004c500
lea rdx, str._does_not_exist.
mov r8d, 0x10
mov rcx, rax
call fcn.1400e7690
mov rcx, rdi
call fcn.140157180
xor esi, esi
jmp 0x14005b795
mov ecx, 2
call fcn.14004bc00
test al, al
je 0x14005b78f
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._chrome_installer_util_delete_after_reboot_helper.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r8d, 0x4a
mov r9d, 2
call fcn.140157100
lea rcx, [rsp + 0x40]
lea rdx, str.Could_not_schedule
mov r8d, 0x13
call fcn.1400e7690
mov rcx, rax
mov rdx, rsi
call fcn.14004c500
lea rdx, str._for_deletion.
mov r8d, reloc.WS2_32.dll_ntohl
mov rcx, rax
call fcn.1400e7690
mov rcx, rbx
call fcn.140157180
test edi, edi
setne sil
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.140106490
mov eax, esi
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
ret
Function at 0x14005c1e0
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
mov r15, rcx
mov rax, qword [0x14024f018]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rdi, qword [rcx]
mov rbx, qword [rcx + 8]
cmp rbx, rdi
je 0x14005c236
cmp byte [rbx - 1], 0
jns 0x14005c21b
mov rcx, qword [rbx - 0x18]
call fcn.140105bb4
lea rsi, [rbx - 0x30]
cmp byte [rbx - 0x19], 0
jns 0x14005c22e
mov rcx, qword [rbx - 0x30]
call fcn.140105bb4
mov rbx, rsi
cmp rsi, rdi
jne 0x14005c20c
mov qword [r15 + 8], rdi
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x60]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1402183e0]
movaps xmmword [rdi], xmm0
lea r8, str.SYSTEMCurrentControlSetControlSession_Manager
mov rcx, rdi
mov rdx, 0xffffffff80000002
mov r9d, 1
call fcn.140054890
mov rdi, qword [rdi]
test rdi, rdi
je 0x14005c31f
lea r14, [rsp + 0x5c]
mov dword [r14], 0
xorps xmm0, xmm0
lea rbx, [rsp + 0x40]
movaps xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov edx, 1
mov rcx, rbx
call fcn.14005cbb0
lea r9, [rsp + 0x3c]
mov dword [r9], 0xaaaaaaaa
mov rax, qword [rbx]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
lea rdx, str.PendingFileRenameOperations
mov rcx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x14005c326
cmp eax, 0xea
jne 0x14005c35d
mov ebx, 0x8000ffff
cmp dword [rsp + 0x3c], 7
jne 0x14005c36b
mov edx, dword [rsp + 0x5c]
test dl, 1
jne 0x14005c36b
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
cmp rcx, rdx
jae 0x14005c32d
sub rdx, rcx
lea rbx, [rsp + 0x40]
mov rcx, rbx
call fcn.14005cbb0
mov rax, qword [rbx]
jmp 0x14005c337
mov ebx, 0x80070002
jmp 0x14005c37f
mov ebx, 0x80070002
jmp 0x14005c36b
jbe 0x14005c337
add rdx, rax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
lea rdx, str.PendingFileRenameOperations
lea r9, [rsp + 0x3c]
mov rcx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14005c3a7
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14005c37f
mov qword [rsp + 0x48], rcx
call fcn.140105bb4
lea rcx, [rsp + 0x60]
call fcn.140054b30
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140106490
mov eax, ebx
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
sub rdx, rcx
mov r8, r15
call fcn.14005bcd0
mov ebx, eax
jmp 0x14005c36b
Function at 0x14006d0d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov edi, edx
mov rsi, rcx
mov rax, qword [0x14024f018]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp edx, 0x918
jg 0x14006d110
cmp edi, 0x691
je 0x14006d129
cmp edi, 0x7d5
jne 0x14006d14d
lea rdi, [0x140224720]
jmp 0x14006d139
cmp edi, 0x919
je 0x14006d132
cmp edi, 0xdd8
jne 0x14006d14d
lea rdi, [0x140224740]
jmp 0x14006d139
lea rdi, [0x140224710]
jmp 0x14006d139
lea rdi, [0x140224730]
call fcn.140057ae0
mov rax, qword [rax + 8]
mov rax, qword [rax + 0x10]
movsxd rax, dword [rax + 8]
mov edi, dword [rdi + rax*4]
mov rcx, qword [0x140259f50]
test rcx, rcx
je 0x14006d181
mov rax, qword [rcx]
mov rdx, rsi
mov r8d, edi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140106490
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1401698c0
add edi, dword [rax + 0x30]
mov r14, qword [0x140256f88]
mov eax, edi
shr eax, 4
inc eax
movzx edx, ax
mov r8d, 6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14006d25e
mov r15, rax
mov rcx, r14
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14006d25e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x14006d25e
mov rbx, rax
mov rcx, r14
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
setne cl
and edi, 0xf
je 0x14006d21e
test eax, eax
je 0x14006d21e
mov ecx, eax
mov rax, rbx
add rax, rcx
dec edi
movzx ecx, word [rbx]
lea rbx, [rbx + rcx*2]
add rbx, 2
cmp rbx, rax
setb cl
add edi, 0xffffffff
jae 0x14006d21e
cmp rbx, rax
jb 0x14006d203
xor eax, eax
mov edx, 0
mov edi, 0
test cl, cl
je 0x14006d264
movzx r15d, word [rbx]
xor eax, eax
test r15, r15
je 0x14006d260
mov edx, 0
mov edi, 0
test rbx, rbx
je 0x14006d264
add rbx, 2
cmp r15w, 0xb
jae 0x14006d274
lea r14, [rsp + 0x20]
mov byte [r14 + 0x17], r15b
jmp 0x14006d29b
xor eax, eax
xor edx, edx
xor edi, edi
mov qword [rsi], rax
mov qword [rsi + 8], rdx
mov qword [rsi + 0x10], rdi
jmp 0x14006d165
lea edi, [r15 + 8]
and edi, 0xfffffff8
lea rcx, [rdi + rdi]
call fcn.140105b78
mov r14, rax
mov qword [rsp + 0x20], rax
bts rdi, 0x3f
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], r15
lea r8, [r15 + r15]
mov rcx, r14
mov rdx, rbx
call fcn.140108e80
mov word [r14 + r15*2], 0
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
jmp 0x14006d264
Function at 0x14006f7c0
Capabilities:
Check if file exists
Create directory

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x14024f018]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x14006f7e7
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14006f821
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14006f840
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140106490
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp fcn.14006f900
mov sil, 1
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140106490
mov eax, esi
add rsp, 0x198
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.14004bc00
test al, al
je 0x14006f8f7
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rsp + 0x50]
mov r8d, 0x25d
mov r9d, 2
call fcn.140157100
lea rcx, [rsp + 0x60]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.1400e7690
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.1400f0680
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x14006f8d1
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
call fcn.1400e7690
cmp byte [rsp + 0x4f], 0
jns 0x14006f8ed
mov rcx, qword [rsp + 0x38]
call fcn.140105bb4
lea rcx, [rsp + 0x50]
call fcn.140157180
xor esi, esi
jmp 0x14006f824
Function at 0x14006f900
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x1a8
mov rsi, rcx
mov rax, qword [0x14024f018]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
cmp byte [rcx + 0x17], 0
jns 0x14006f927
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14006f959
mov dil, 1
test al, 0x10
je 0x14006fa15
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140106490
mov eax, edi
add rsp, 0x1a8
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.14004bc00
test al, al
je 0x14006fad8
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rsp + 0x60]
mov r8d, 0x248
mov r9d, 2
call fcn.140157100
lea rcx, [rsp + 0x70]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1400e7690
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x38]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x48]
mov rcx, rsi
call fcn.1400f0680
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x14006f9ea
mov r8, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rcx, rdi
mov rdx, rsi
call fcn.1400e7690
cmp byte [rsp + 0x5f], 0
jns 0x14006fa06
mov rcx, qword [rsp + 0x48]
call fcn.140105bb4
lea rcx, [rsp + 0x60]
call fcn.140157180
jmp 0x14006fad8
mov ecx, 2
call fcn.14004bc00
test al, al
je 0x14006fad8
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rsp + 0x60]
mov r8d, 0x24c
mov r9d, 2
call fcn.14004bc40
lea rcx, [rsp + 0x70]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1400e7690
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x48]
mov rcx, rsi
call fcn.1400f0680
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x14006fa9d
mov r8, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rcx, rdi
mov rdx, rsi
call fcn.1400e7690
lea rdx, str.:_not_a_directory
mov r8d, 0x11
mov rcx, rax
call fcn.1400e7690
cmp byte [rsp + 0x5f], 0
jns 0x14006face
mov rcx, qword [rsp + 0x48]
call fcn.140105bb4
lea rcx, [rsp + 0x60]
call fcn.14004c0e0
xor edi, edi
jmp 0x14006f93d
Function at 0x140071030
Capabilities:
Get file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x30
mov r12, rdx
mov rax, qword [0x14024f018]
xor rax, rsp
mov qword [rsp + 0x28], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x20]
mov qword [rsi], rax
mov rdx, rsi
call fcn.14006fc30
mov rax, qword [rsi]
test rax, rax
je 0x1400710ab
mov rbx, qword [rax + 0x38]
mov rdi, qword [rax + 0x40]
xor esi, esi
cmp rbx, rdi
jne 0x1400710b2
lea rcx, [rsp + 0x20]
call fcn.140070750
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140106490
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov esi, 3
jmp 0x140071082
lea r14, [r12 + 0x18]
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [rbx + 0x68], 0
je 0x1400710cf
add rbx, 0x70
cmp rbx, rdi
je 0x140071082
jmp 0x1400710be
cmp byte [rbx + 0x27], 0
jns 0x1400710db
mov rcx, qword [rbx + 0x10]
jmp 0x1400710df
lea rcx, [rbx + 0x10]
call r13
test al, 0x10
jne 0x1400710c4
mov r15, qword [r12 + 8]
cmp r15, qword [r12 + 0x10]
je 0x14007110b
mov rcx, r14
mov rdx, r15
mov r8, rbx
call fcn.140071a20
add r15, 0x68
mov qword [r12 + 8], r15
jmp 0x1400710c4
mov rcx, r12
mov rdx, rbx
call fcn.14016ce20
jmp 0x1400710c4

Function at 0x140071120
Capabilities:
Get file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x30
mov r12, rdx
mov rax, qword [0x14024f018]
xor rax, rsp
mov qword [rsp + 0x28], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x20]
mov qword [rsi], rax
mov rdx, rsi
call fcn.14006fc30
mov rax, qword [rsi]
test rax, rax
je 0x14007119b
mov rbx, qword [rax + 0x38]
mov rdi, qword [rax + 0x40]
xor esi, esi
cmp rbx, rdi
jne 0x1400711a2
lea rcx, [rsp + 0x20]
call fcn.140070750
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140106490
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov esi, 3
jmp 0x140071172
lea r14, [r12 + 0x18]
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [rbx + 0x68], 2
jne 0x1400711ee
cmp byte [rbx + 0x27], 0
jns 0x1400711c0
mov rcx, qword [rbx + 0x10]
jmp 0x1400711c4
lea rcx, [rbx + 0x10]
call r13
test al, 0x10
jne 0x1400711ee
mov r15, qword [r12 + 8]
cmp r15, qword [r12 + 0x10]
je 0x1400711fd
mov rcx, r14
mov rdx, r15
mov r8, rbx
call fcn.140071a20
add r15, 0x68
mov qword [r12 + 8], r15
add rbx, 0x70
cmp rbx, rdi
je 0x140071172
jmp 0x1400711ae
mov rcx, r12
mov rdx, rbx
call fcn.14016ce20
jmp 0x1400711ee
Function at 0x140072010
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14024f018]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x14025c0a8]
mov ecx, dword [0x140256f3c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140072070
lea rsi, [0x14025c0a0]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140106490
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x14025c0a8]
call fcn.140105cd0
cmp dword [0x14025c0a8], 0xffffffff
jne 0x14007204c
lea rsi, [rsp + 0x34]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140109290
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x2c]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.140105b78
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x14025c0e0]
mov ecx, dword [0x140256f3c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140072130
lea r8, [0x14025c0b0]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r9d, edi
call fcn.140072250
mov qword [0x14025c0a0], rsi
lea rcx, [0x14025c0a8]
call fcn.140105d68
jmp 0x14007204c
lea rcx, [0x14025c0e0]
call fcn.140105cd0
cmp dword [0x14025c0e0], 0xffffffff
jne 0x140072101
xorps xmm0, xmm0
movups xmmword [0x14025c0d0], xmm0
movups xmmword [0x14025c0c0], xmm0
movups xmmword [0x14025c0b0], xmm0
lea rcx, [0x14025c0b0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14025c0e0]
call fcn.140105d68
jmp 0x140072101

Function at 0x1400721a0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14025c0e0]
mov ecx, dword [0x140256f3c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400721dc
movzx ecx, word [0x14025c0b0]
cmp cx, 9
jne 0x140072224
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x14025c0e0]
call fcn.140105cd0
cmp dword [0x14025c0e0], 0xffffffff
jne 0x1400721c5
xorps xmm0, xmm0
movups xmmword [0x14025c0d0], xmm0
movups xmmword [0x14025c0c0], xmm0
movups xmmword [0x14025c0b0], xmm0
lea rcx, [0x14025c0b0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14025c0e0]
call fcn.140105d68
jmp 0x1400721c5
xor eax, eax
test cx, cx
je 0x1400721d7
cmp cx, 6
jne 0x140072238
mov eax, 2
jmp 0x1400721d7
cmp cx, 0xc
jne 0x140072245
mov eax, 3
jmp 0x1400721d7
mov eax, 4
jmp 0x1400721d7
Function at 0x140077f00
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
xor eax, eax
test r8d, r8d
sete al
xor ebx, ebx
test edx, edx
sete bl
xor ecx, ecx
mov edx, ebx
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], 0
test rax, rax
je 0x140077f97
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140077f81
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140077f5e
mov qword [rsi], rdi
call fcn.1400ed9a0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov byte [rsi + 8], 1
inc rax
cmp rax, 1
jbe 0x140077f9b
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400ed9a0
mov rcx, qword [rsi]
call fcn.1400f1110
mov qword [rsi], 0
jmp 0x140077f4c
mov byte [rsi + 8], 1
int3
Function at 0x1400788f0
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
movaps xmmword [rsp + 0x30], xmm6
mov rax, qword [0x14024f018]
xor rax, rsp
mov qword [rsp + 0x28], rax
movsd xmm6, qword [0x14025c170]
xorpd xmm0, xmm0
ucomisd xmm6, xmm0
jne 0x140078924
jnp 0x140078947
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140106490
movapd xmm0, xmm6
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rsi, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov r14d, eax
call rsi
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x14025c180]
mov ecx, dword [0x140256f3c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140078a6e
mov eax, dword [0x14025c190]
mov ecx, dword [0x140256f3c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140078aa8
rdtsc
mov rdi, rax
mov r15, rdx
xor ebp, ebp
lea rsi, [rsp + 0x20]
mov qword [rsi], rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rbx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [rsi], rbp
lea rsi, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub rbx, qword [0x14025c188]
movq xmm0, rbx
punpckldq xmm0, xmmword [0x140212dd0]
subpd xmm0, xmmword [0x140212de0]
haddpd xmm0, xmm0
cvtsi2sd xmm1, qword [rsi]
divsd xmm0, xmm1
xorpd xmm6, xmm6
movsd xmm1, qword [0x140226b70]
ucomisd xmm1, xmm0
ja 0x140078924
shl r15, 0x20
or rdi, r15
sub rdi, qword [0x14025c178]
movq xmm6, rdi
punpckldq xmm6, xmmword [0x140212dd0]
subpd xmm6, xmmword [0x140212de0]
haddpd xmm6, xmm6
divsd xmm6, xmm0
movsd qword [0x14025c170], xmm6
jmp 0x140078924
lea rcx, [0x14025c180]
call fcn.140105cd0
cmp dword [0x14025c180], 0xffffffff
jne 0x140078991
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x14025c178], rdx
lea rcx, [0x14025c180]
call fcn.140105d68
jmp 0x140078991
lea rcx, [0x14025c190]
call fcn.140105cd0
cmp dword [0x14025c190], 0xffffffff
jne 0x1400789b6
lea rdi, [rsp + 0x20]
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rdi]
mov qword [0x14025c188], rax
lea rcx, [0x14025c190]
call fcn.140105d68
jmp 0x1400789b6