joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002cf28
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x4f]
sub rsp, 0xd0
mov rax, qword [0x14008a3a8]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov qword [rbp - 0x39], rdx
mov rdi, r8
test r9d, r9d
je 0x14002cf63
mov eax, 0xc000000d
jmp 0x14002d0bb
call fcn.140034e88
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x10]
mov rcx, rax
call fcn.14003d130
test al, al
je 0x14002d0b6
call fcn.1400356ec
mov rbx, rax
test rax, rax
je 0x14002d0b6
and qword [rsp + 0x28], 0
xorps xmm0, xmm0
xor r9d, r9d
mov dword [rsp + 0x20], 0x1000
xor edx, edx
mov r8d, 0x8000004
or rcx, 0xffffffffffffffff
movdqu xmmword [rbp - 0x51], xmm0
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdx, rax
lea rcx, [rbp - 0x51]
call fcn.14001cb4c
mov rcx, qword [rbp - 0x51]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14002cff9
xor r9d, r9d
mov qword [rsp + 0x20], 0x1000
xor r8d, r8d
lea edx, [r9 + 6]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rax
mov qword [rbp - 0x49], rax
jmp 0x14002cffd
mov rcx, qword [rbp - 0x49]
mov rax, qword [rbp - 0x51]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14002d073
test rcx, rcx
je 0x14002d073
mov r8d, 0x1000
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
xor edx, edx
lea rcx, [rbp - 0x21]
lea r8d, [rdx + 0x58]
call sub.VCRUNTIME140.dll_memset
mov rdx, rbx
lea rcx, [rbp - 0x31]
call fcn.1400397e0
mov rax, qword [rbp - 0x51]
lea r9, [rbp - 0x41]
mov qword [rbp - 0x41], rax
lea r8, [rbp - 0x39]
lea rax, [rbp - 0x21]
mov edx, 0x1d
lea rcx, [rbp - 0x31]
mov qword [rsp + 0x20], rax
call fcn.14002bf8c
mov rcx, qword [rbp - 0x49]
test eax, eax
je 0x14002d06e
mov ebx, 0xc0000022
jmp 0x14002d078
mov ebx, dword [rbp - 0x19]
jmp 0x14002d078
mov ebx, 0xc000000d
test rcx, rcx
je 0x14002d083
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rbp - 0x51]
dec rcx
cmp rcx, 0xfffffffffffffffd
ja 0x14002d0b2
call fcn.140041a40
mov r8, qword [rbp + 0x57]
lea rdx, [rbp - 0x51]
mov rcx, qword [rbp - 0x51]
mov r9, rax
call fcn.140041c30
mov rcx, qword [rbp - 0x51]
call fcn.140041bb0
mov eax, ebx
jmp 0x14002d0bb
mov eax, 0xc0000022
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.1400722b0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14002d634
Capabilities:
Read file via mapping

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x14008a3a8]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, r9
mov qword [rbp - 0x51], rdx
mov r14, r8
call fcn.140034e88
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x10]
mov rcx, rax
call fcn.14003d130
test al, al
je 0x14002d7d1
call fcn.1400356ec
mov rdi, rax
test rax, rax
je 0x14002d7d1
and qword [rsp + 0x28], 0
xorps xmm0, xmm0
xor r9d, r9d
mov dword [rsp + 0x20], 0x1010
xor edx, edx
mov r8d, 0x8000004
or rcx, 0xffffffffffffffff
movdqu xmmword [rbp - 0x69], xmm0
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdx, rax
lea rcx, [rbp - 0x69]
call fcn.14001cb4c
mov rcx, qword [rbp - 0x69]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14002d6f5
xor r9d, r9d
mov qword [rsp + 0x20], 0x1010
xor r8d, r8d
lea edx, [r9 + 6]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
mov qword [rbp - 0x61], rax
jmp 0x14002d6f9
mov rbx, qword [rbp - 0x61]
mov rax, qword [rbp - 0x69]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14002d78b
test rbx, rbx
je 0x14002d78b
mov r8d, 0x1010
mov rdx, r14
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
xor edx, edx
lea rcx, [rbp - 0x39]
lea r8d, [rdx + 0x58]
call sub.VCRUNTIME140.dll_memset
mov rdx, rdi
lea rcx, [rbp - 0x49]
call fcn.1400397e0
mov rax, qword [rbp - 0x69]
lea r9, [rbp - 0x59]
mov qword [rbp - 0x59], rax
lea r8, [rbp - 0x51]
lea rax, [rbp - 0x39]
mov edx, 0x1e
lea rcx, [rbp - 0x49]
mov qword [rsp + 0x20], rax
call fcn.14002bf8c
mov rbx, qword [rbp - 0x61]
test eax, eax
je 0x14002d771
mov edi, 0xc0000022
jmp 0x14002d790
mov edi, dword [rbp - 0x31]
test edi, edi
jne 0x14002d790
mov r8d, 0x1000
mov rdx, rbx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
jmp 0x14002d790
mov edi, 0xc000000d
test rbx, rbx
je 0x14002d79e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rbp - 0x69]
dec rcx
cmp rcx, 0xfffffffffffffffd
ja 0x14002d7cd
call fcn.140041a40
mov r8, qword [rbp + 0x5f]
lea rdx, [rbp - 0x69]
mov rcx, qword [rbp - 0x69]
mov r9, rax
call fcn.140041c30
mov rcx, qword [rbp - 0x69]
call fcn.140041bb0
mov eax, edi
jmp 0x14002d7d6
mov eax, 0xc0000022
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400722b0
add rsp, 0xd0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14002fc28
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x218]
sub rsp, 0x318
mov rax, qword [0x14008a3a8]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov rax, qword [rbp + 0x298]
mov r12, r9
mov r14, qword [rbp + 0x2a0]
mov rdi, r8
mov r13, qword [rbp + 0x280]
mov rbx, rdx
mov rsi, qword [rbp + 0x2b0]
mov r15, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rbp + 0x2a8]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x68], r14
call fcn.140034e88
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x10]
mov rcx, rax
call fcn.14003d138
test al, al
je 0x14002fd05
mov rax, qword [rsp + 0x58]
mov r9, r13
mov qword [rsp + 0x48], rsi
mov r8, r12
mov qword [rsp + 0x40], rax
mov rdx, rdi
mov rax, qword [rsp + 0x50]
mov rcx, rbx
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], rax
mov eax, dword [rbp + 0x290]
mov dword [rsp + 0x28], eax
mov eax, dword [rbp + 0x288]
mov dword [rsp + 0x20], eax
call r15
xor r14d, r14d
test eax, eax
jne 0x14002fdf5
jmp 0x14002fd08
xor r14d, r14d
call fcn.140034e88
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x10]
mov rcx, rax
call fcn.14003d130
test al, al
je 0x14002fe04
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 1
mov rcx, rsi
mov edi, eax
lea r15d, [r8 + 0x17]
mov edx, r15d
call fcn.140035c34
test al, al
je 0x14002fdfc
call fcn.1400356ec
mov rbx, rax
test rax, rax
je 0x14002fdfc
lea rdx, [rbp - 0x10]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rcx, [rbp - 0x10]
mov rdx, rbx
dec eax
cmp eax, 0x102
cmova rcx, r14
mov qword [rsp + 0x50], rcx
lea rcx, [rbp - 0x80]
call fcn.1400397e0
xor edx, edx
lea r8d, [r15 + 0x40]
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll_memset
lea rax, [rbp - 0x70]
mov dword [rsp + 0x58], r15d
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x70]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x78]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea edx, [r15 - 0xb]
lea rax, [rsp + 0x50]
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x20], rax
call fcn.14002f7a4
test eax, eax
jne 0x14002fdfc
mov ecx, dword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [rbp - 0x68], r14d
jne 0x14002fe04
mov eax, 1
jmp 0x14002fe06
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.1400722b0
add rsp, 0x318
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400304f4
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x50
movzx r10d, byte [rsp + 0x90]
mov r11, r9
mov rdi, qword [rsp + 0xb8]
mov rbx, r8
mov r9, qword [rsp + 0x88]
mov sil, dl
mov r8, qword [rsp + 0x80]
mov rbp, rcx
mov qword [rax - 0x10], rdi
mov rdx, r11
mov rax, qword [rsp + 0xb0]
mov rcx, rbx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r10d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400305d5
mov al, sil
neg al
sbb ebx, ebx
and ebx, 0xfe3fe
add ebx, 0x101c01
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rdi]
mov r9, rdi
mov dword [rsp + 0x30], 1
mov rcx, rax
and dword [rsp + 0x28], 0
mov r8, rbp
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
lea r14, [rdi + 8]
mov rdi, qword [r14]
test eax, eax
jne 0x1400305f2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
neg sil
sbb ebx, ebx
and ebx, 0xff3bc
add ebx, 0x100c43
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 1
mov r9, r14
and dword [rsp + 0x28], 0
mov rcx, rax
mov r8, rbp
mov dword [rsp + 0x20], ebx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1400305d5
mov al, 1
jmp 0x1400305d7

Function at 0x140030744
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x40
mov rax, qword [rsp + 0x78]
mov rbx, rcx
mov rdi, qword [rsp + 0x80]
mov qword [r11 - 0x18], rax
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x28], eax
and qword [rdi], 0
mov rcx, qword [rcx]
mov qword [r11 - 0x28], r9
mov r9, r8
mov r8, rdx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rsi, rax
test rax, rax
jne 0x140030799
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400307cc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, qword [rbx]
mov r9, rdi
mov dword [rsp + 0x30], 3
mov rcx, rax
and dword [rsp + 0x28], 0
mov rdx, rsi
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
neg eax
sbb eax, eax
not eax
and eax, 5
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x14003929c
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub rsp, 0x28
mov edx, 4
call sub.ADVAPI32.dll_SystemFunction036
test al, al
setne al
add rsp, 0x28
ret
Function at 0x14003c6d8
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call fcn.1400432a0
test al, al
je 0x14003c70a
mov rcx, qword [rbx]
mov edx, 0x32
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rdi, qword [rbx + 0x38]
and qword [rbx + 0x38], 0
test rdi, rdi
je 0x14003c728
mov rcx, rdi
call fcn.140039c00
mov rcx, rdi
call fcn.1400722d4
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x14003c76b
mov rdx, qword [rbx + 0x68]
movabs rax, 0x7878787878787879
sub rdx, rcx
imul rdx
sar rdx, 5
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rdx, rdx, 0x44
call fcn.14001bb14
and qword [rbx + 0x58], 0
and qword [rbx + 0x60], 0
and qword [rbx + 0x68], 0
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x14003c77a
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, qword [rbx + 0x38]
test rdi, rdi
je 0x14003c793
mov rcx, rdi
call fcn.140039c00
mov rcx, rdi
call fcn.1400722d4
lea rdi, [rbx + 0x28]
mov rax, qword [rdi]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14003c7c7
call fcn.140041a40
mov r8, qword [rsp + 0x28]
mov r9, rax
mov rcx, qword [rdi]
mov rdx, rdi
call fcn.140041c30
mov rcx, qword [rdi]
call fcn.140041bb0
and qword [rdi], 0
lea rdi, [rbx + 0x20]
mov rax, qword [rdi]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14003c7fb
call fcn.140041a40
mov r8, qword [rsp + 0x28]
mov r9, rax
mov rcx, qword [rdi]
mov rdx, rdi
call fcn.140041c30
mov rcx, qword [rdi]
call fcn.140041bb0
and qword [rdi], 0
lea rdi, [rbx + 0x18]
mov rax, qword [rdi]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14003c82f
call fcn.140041a40
mov r8, qword [rsp + 0x28]
mov r9, rax
mov rcx, qword [rdi]
mov rdx, rdi
call fcn.140041c30
mov rcx, qword [rdi]
call fcn.140041bb0
and qword [rdi], 0
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140043080
Function at 0x14003cfc4
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.1400432a0
test al, al
je 0x14003cfe1
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x20
pop rbx
ret
Function at 0x14004011c
Capabilities:
Allocate or change rwx memory

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, r9
lea rax, [r11 - 0x18]
mov rbx, r8
mov qword [r11 - 0x28], rax
mov r8, rdi
mov r9d, 8
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1400401aa
lea rax, [rsp + 0x38]
mov r9, rdi
mov r8, rbx
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140040182
cmp rdi, qword [rsp + 0x38]
jne 0x140040182
mov bl, 1
jmp 0x140040184
xor bl, bl
mov r9d, dword [rsp + 0x30]
lea rax, [rsp + 0x30]
mov r8, rdi
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1400401aa
mov al, bl
jmp 0x1400401ac
xor al, al
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140040a1c
Capabilities:
Read file via mapping

Disassembly:
mov r9, r8
mov r8, rdx
mov rdx, rcx
mov rcx, qword [0x14008a6b8]
jmp sym.QtWebEngineProcess.exe_TargetGetOPMInformation

Function at 0x140043d80
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
mov rax, qword gs:[0x58]
mov ecx, dword [0x14008d678]
mov edx, 4
mov rcx, qword [rax + rcx*8]
mov eax, dword [rdx + rcx]
cmp dword [0x14008a960], eax
jg 0x140043db3
lea rax, [0x14008a930]
add rsp, 0x58
ret
lea rcx, [0x14008a960]
call fcn.140072114
cmp dword [0x14008a960], 0xffffffff
jne 0x140043da7
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movups xmm0, xmmword [rsp + 0x20]
lea rcx, [0x14008a960]
movups xmm1, xmmword [rsp + 0x30]
movups xmmword [0x14008a930], xmm0
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [0x14008a940], xmm1
movups xmmword [0x14008a950], xmm0
call fcn.1400720b4
jmp 0x140043da7
Function at 0x140045180
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x14008a3a8]
xor rax, rsp
mov qword [rsp + 0x250], rax
cmp qword [0x14008a998], 0
jne 0x1400453ea
mov rbx, qword [0x14008a990]
xor esi, esi
lea rdi, [rsi - 1]
test rbx, rbx
jne 0x1400452ab
lea ecx, [rsi + 0x20]
call fcn.140071f80
mov rbx, rax
test rax, rax
je 0x1400452a1
mov r8d, 0x104
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rax, [rsp + 0x40]
mov qword [rbx + 0x10], rsi
mov r8, rdi
mov qword [rbx + 0x18], 7
mov word [rbx], si
inc r8
cmp word [rax + r8*2], si
jne 0x140045206
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14002163c
mov r9, qword [rbx + 0x18]
mov rdx, rbx
mov r8, qword [rbx + 0x10]
cmp r9, 8
jb 0x140045231
mov rdx, qword [rbx]
test r8, r8
je 0x14004528a
lea rcx, [r8 - 1]
mov rax, r8
cmp rcx, r8
cmovb rax, rcx
cmp word [rdx + rax*2], 0x5c
lea rcx, [rdx + rax*2]
je 0x14004525f
nop
cmp rcx, rdx
je 0x14004528a
sub rcx, 2
cmp word [rcx], 0x5c
jne 0x140045250
sub rcx, rdx
sar rcx, 1
cmp rcx, rdi
je 0x14004528a
inc rcx
cmp r8, rcx
jb 0x140045411
mov qword [rbx + 0x10], rcx
mov rax, rbx
cmp r9, 8
jb 0x140045286
mov rax, qword [rbx]
mov word [rax + rcx*2], si
mov r8d, 9
lea rdx, str.debug.log
mov rcx, rbx
call fcn.1400313a8
jmp 0x1400452a4
mov rbx, rsi
mov qword [0x14008a990], rbx
test byte [0x140089004], 1
je 0x1400453ea
cmp qword [rbx + 0x18], 8
jb 0x1400452c2
mov rbx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov rcx, rbx
mov dword [rsp + 0x20], 4
lea edx, [r9 + 4]
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x14008a998], rax
inc rax
test rax, 0xfffffffffffffffe
jne 0x1400453ea
lea rdx, [rsp + 0x40]
mov word [rsp + 0x40], si
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
cmp eax, 0x103
ja 0x1400453e6
lea rax, [rsp + 0x40]
nop dword [rax + rax]
inc rdi
cmp word [rax + rdi*2], si
jne 0x140045330
mov rcx, qword [0x14008a990]
lea rdx, [rsp + 0x40]
mov r8, rdi
call fcn.14002163c
mov rcx, qword [0x14008a990]
mov rdx, rcx
cmp qword [rcx + 0x18], 8
jb 0x140045361
mov rdx, qword [rcx]
mov rax, qword [rcx + 0x10]
cmp word [rdx + rax*2 - 2], 0x5c
je 0x140045386
mov r8d, 1
lea rdx, [0x1400752b8]
call fcn.1400313a8
mov rcx, qword [0x14008a990]
mov r8d, 9
lea rdx, str.debug.log
call fcn.1400313a8
mov rcx, qword [0x14008a990]
cmp qword [rcx + 0x18], 8
jb 0x1400453a9
mov rcx, qword [rcx]
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
lea edx, [r9 + 4]
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x14008a998], rax
dec rax
cmp rax, 0xfffffffffffffffd
jbe 0x1400453ea
mov qword [0x14008a998], rsi
xor al, al
jmp 0x1400453ec
mov al, 1
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400722b0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call fcn.140023e10
int3
Function at 0x140052070
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
sub rsp, 0x38
movsd xmm0, qword [0x14008aac0]
movaps xmmword [rsp + 0x20], xmm6
xorps xmm6, xmm6
ucomisd xmm0, xmm6
jp 0x1400521cf
jne 0x1400521cf
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword gs:[0x58]
mov edx, dword [0x14008d678]
mov ebp, 4
mov rbx, qword [rcx + rdx*8]
mov ecx, dword [rbx + rbp]
cmp dword [0x14008aad0], ecx
jg 0x1400521d9
mov eax, dword [rbx + rbp]
cmp dword [0x14008aae0], eax
mov rbp, qword [rsp + 0x58]
jg 0x140052213
rdtsc
shl rdx, 0x20
lea rcx, [rsp + 0x40]
or rax, rdx
mov qword [rsp + 0x40], 0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x48], 0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rcx, qword [rsp + 0x40]
xorps xmm2, xmm2
sub rcx, qword [0x14008aad8]
mov rdi, qword [rsp + 0x30]
js 0x140052165
cvtsi2sd xmm2, rcx
jmp 0x14005217a
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2sd xmm2, rax
addsd xmm2, xmm2
xorps xmm1, xmm1
xorps xmm0, xmm0
cvtsi2sd xmm1, qword [rsp + 0x48]
divsd xmm2, xmm1
movsd xmm1, qword [0x140077a00]
comisd xmm1, xmm2
ja 0x1400521ca
sub rbx, qword [0x14008aac8]
js 0x1400521a9
cvtsi2sd xmm0, rbx
jmp 0x1400521be
mov rax, rbx
and ebx, 1
shr rax, 1
or rax, rbx
cvtsi2sd xmm0, rax
addsd xmm0, xmm0
divsd xmm0, xmm2
movsd qword [0x14008aac0], xmm0
mov rbx, qword [rsp + 0x50]
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
ret
lea rcx, [0x14008aad0]
call fcn.140072114
cmp dword [0x14008aad0], 0xffffffff
jne 0x1400520ef
rdtsc
shl rdx, 0x20
lea rcx, [0x14008aad0]
or rax, rdx
mov qword [0x14008aac8], rax
call fcn.1400720b4
jmp 0x1400520ef
lea rcx, [0x14008aae0]
call fcn.140072114
cmp dword [0x14008aae0], 0xffffffff
jne 0x140052103
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], 0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x40]
lea rcx, [0x14008aae0]
mov qword [0x14008aad8], rax
call fcn.1400720b4
jmp 0x140052103
Function at 0x1400526a0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
mov eax, 0x1050
call fcn.140072380
sub rsp, rax
mov rax, qword [0x14008a3a8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov rcx, qword [rcx]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], 1
mov rdi, r8
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x34], 0x800
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x1400527ab
mov ecx, dword [rsp + 0x30]
cmp ecx, 1
jne 0x14005273c
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140052720
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14002163c
mov eax, ebx
jmp 0x1400527ab
cmp ecx, 2
jne 0x1400527a6
mov r8d, 0x400
lea rdx, [rsp + 0x840]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x34], eax
dec eax
cmp eax, 0x3ff
ja 0x14005279f
lea rax, [rsp + 0x840]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140052780
lea rdx, [rsp + 0x840]
mov rcx, rdi
call fcn.14002163c
mov eax, ebx
jmp 0x1400527ab
mov eax, 0xea
jmp 0x1400527ab
mov eax, 0x3f4
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400722b0
mov rbx, qword [rsp + 0x1078]
add rsp, 0x1050
pop rdi
ret

Function at 0x1400527d0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
mov rcx, qword [rcx]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x50], 4
mov rbx, r8
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x68], 4
mov dword [rsp + 0x30], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005283e
mov ecx, dword [rsp + 0x50]
add ecx, 0xfffffffd
cmp ecx, 1
ja 0x140052839
cmp dword [rsp + 0x68], 4
jne 0x140052839
mov ecx, dword [rsp + 0x30]
mov dword [rbx], ecx
add rsp, 0x40
pop rbx
ret
mov eax, 0x3f4
add rsp, 0x40
pop rbx
ret