joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400474e0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
movaps xmmword [rsp + 0xa0], xmm6
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x14019e638]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], r12
movaps xmm6, xmmword [section..rdata]
movaps xmmword [rsp + 0x40], xmm6
lea rdx, str.CreateDirectoryAndGetError
lea r8, str..._.._base_files_file_util_win.cc
lea rsi, [rsp + 0x60]
mov rcx, rsi
mov r9d, 0x265
call fcn.14002f5d0
lea rcx, [rsp + 0x40]
mov rdx, rsi
xor r8d, r8d
call fcn.14003b4e0
lea r15, [rdi + 2]
test byte [rdi], 1
mov rbx, r15
je 0x14004756f
mov rbx, qword [rdi + 0x10]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400475a5
mov bl, 1
test al, 0x10
jne 0x140047715
test r14, r14
je 0x140047593
mov dword [r14], 0xfffffff7
mov ecx, 0x50
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x140047715
mov qword [rsp + 0x30], r12
movaps xmmword [rsp + 0x20], xmm6
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14002d3f0
movzx ecx, byte [rsp + 0x20]
test cl, 1
je 0x1400475cd
mov rax, qword [rsp + 0x28]
jmp 0x1400475d3
mov rax, rcx
shr rax, 1
movzx ebp, byte [rdi]
test bpl, 1
je 0x1400475e7
mov rdx, qword [rdi + 8]
cmp rax, rdx
je 0x1400475f2
jmp 0x140047649
mov rdx, rbp
shr rdx, 1
cmp rax, rdx
jne 0x140047649
test rax, rax
je 0x140047633
test cl, 1
je 0x140047603
mov rcx, qword [rsp + 0x30]
jmp 0x140047608
lea rcx, [rsp + 0x22]
mov rsi, r15
test bpl, 1
je 0x140047615
mov rsi, qword [rdi + 0x10]
xor edx, edx
nop word [rax + rax]
movzx ebp, word [rcx + rdx*2]
cmp bp, word [rsi + rdx*2]
jne 0x140047649
add rdx, 1
cmp rax, rdx
jne 0x140047620
test r14, r14
je 0x14004763f
mov dword [r14], 0xfffffffc
mov ecx, 2
jmp 0x140047703
lea rcx, [rsp + 0x20]
mov rdx, r14
call fcn.1400474e0
test al, al
je 0x140047709
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x14004770b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13d, eax
cmp eax, 0xb7
jne 0x1400476f0
mov qword [rsp + 0x90], r12
movaps xmmword [rsp + 0x80], xmm6
lea rdx, str.DirectoryExists
lea r8, str..._.._base_files_file_util_win.cc
lea r12, [rsp + 0x60]
mov rcx, r12
mov r9d, 0x1cc
call fcn.14002f5d0
lea rbp, [rsp + 0x80]
mov rcx, rbp
mov rdx, r12
xor r8d, r8d
call fcn.14003b4e0
test byte [rdi], 1
je 0x1400476d3
mov r15, qword [rdi + 0x10]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov rcx, rbp
call fcn.14003b620
cmp esi, 0xffffffff
je 0x1400476f0
and esi, 0x10
jne 0x14004770b
test r14, r14
je 0x140047700
mov ecx, r13d
call fcn.1400487a0
mov dword [r14], eax
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
lea rcx, [rsp + 0x20]
call fcn.14002c850
lea rcx, [rsp + 0x40]
call fcn.14003b620
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1401207e0
mov eax, ebx
movaps xmm6, xmmword [rsp + 0xa0]
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400478a0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x290
mov rsi, rcx
mov rax, qword [0x14019e638]
xor rax, rsp
mov qword [rsp + 0x288], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x70], rax
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0x60], xmm0
lea rdx, [0x140159d7f]
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x80]
mov rcx, rbx
mov r9d, 0x376
call fcn.14002f5d0
lea rcx, [rsp + 0x60]
xor edi, edi
mov rdx, rbx
xor r8d, r8d
call fcn.14003b4e0
lea rbx, [rsp + 0x80]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.1401236f0
mov word [rsp + 0x80], 0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xffffffff
cmp eax, 0x103
ja 0x1400479b8
mov qword [rsp + 0x20], rbx
cmp word [rsp + 0x80], 0
je 0x140047971
xor eax, eax
nop dword [rax]
cmp word [rsp + rax*2 + 0x82], 0
lea rax, [rax + 1]
jne 0x140047960
jmp 0x140047973
xor eax, eax
mov qword [rsp + 0x28], rax
lea rdi, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14002c770
lea rbx, [rsp + 0x48]
mov rcx, rdi
mov rdx, rbx
call fcn.14002e150
mov rcx, rsi
mov rdx, rbx
call fcn.14002c880
mov rcx, rbx
call fcn.14002c850
mov rcx, rdi
call fcn.14002c850
mov dil, 1
lea rcx, [rsp + 0x60]
call fcn.14003b620
mov rcx, qword [rsp + 0x288]
xor rcx, rsp
call fcn.1401207e0
mov eax, edi
add rsp, 0x290
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400479e0
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
mov rax, qword [0x14019e638]
xor rax, rsp
mov qword [rsp + 0x58], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0x40], xmm0
lea rdx, [0x140159d94]
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x386
call fcn.14002f5d0
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14003b4e0
test byte [rsi], 1
je 0x140047a53
mov rsi, qword [rsi + 0x10]
jmp 0x140047a57
add rsi, 2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rdi
call fcn.14003b620
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401207e0
mov eax, ebx
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
Function at 0x140047c40
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x568
mov ebx, r8d
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x14019e638]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea rdi, [rsp + 0x2a0]
mov r8d, 0x2c0
mov rcx, rdi
mov dl, 0xaa
call fcn.1401236f0
mov qword [rsp + 0x20], r14
xor ebp, ebp
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9d, 3
call fcn.14004a560
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x40], rax
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14004a730
movzx eax, byte [rsp + 0x30]
test al, 1
je 0x140047ce1
mov rax, qword [rsp + 0x38]
test rax, rax
jne 0x140047ced
jmp 0x140047e33
shr rax, 1
test rax, rax
je 0x140047e33
lea r13, [rsp + 0x32]
lea rdi, [rsp + 0x50]
lea rsi, [rsp + 0x2a0]
lea r15, [rsp + 0x30]
xor r12d, r12d
jmp 0x140047d21
mov rax, qword [rsp + 0x38]
mov r12d, ebp
test rax, rax
je 0x140047e33
mov r8d, 0x250
mov rcx, rdi
mov dl, 0xaa
call fcn.1401236f0
mov rcx, rsi
mov rdx, rdi
call fcn.14004a6a0
mov edx, dword [rsp + 0x50]
test dl, 1
je 0x140047d71
test bl, bl
jne 0x140047d59
mov rcx, rdi
call fcn.14004a460
test al, al
jne 0x140047d71
mov edx, dword [rsp + 0x50]
and edx, 0xfffffffe
test byte [rsp + 0x30], 1
mov rcx, r13
je 0x140047d6b
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rdi
call fcn.14004a460
test al, al
je 0x140047dc0
xor ebp, ebp
test bl, bl
je 0x140047df1
mov rcx, r15
mov rdx, r14
mov r8b, 1
call fcn.140047c40
mov ebp, eax
test eax, eax
jne 0x140047df1
test byte [rsp + 0x30], 1
mov rcx, r13
je 0x140047da6
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebp, 0
test eax, eax
jne 0x140047df1
jmp 0x140047ddb
test byte [rsp + 0x30], 1
mov rcx, r13
je 0x140047dcf
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ebp, ebp
test eax, eax
jne 0x140047df1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
or eax, 1
cmp eax, 3
mov eax, 0
cmove ebp, eax
test r12d, r12d
cmovne ebp, r12d
mov rcx, rdi
call fcn.140002c80
mov rcx, rsi
mov rdx, rdi
call fcn.14004a730
mov rcx, r15
mov rdx, rdi
call fcn.14002c880
mov rcx, rdi
call fcn.14002c850
movzx eax, byte [rsp + 0x30]
test al, 1
jne 0x140047d10
shr rax, 1
jmp 0x140047d15
lea rcx, [rsp + 0x30]
call fcn.14002c850
lea rcx, [rsp + 0x2a0]
call fcn.14004a630
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.1401207e0
mov eax, ebp
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400480b0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x90
movaps xmmword [rsp + 0x80], xmm6
mov esi, r9d
mov r14, r8
mov rdi, rdx
mov r15, rcx
mov rax, qword [0x14019e638]
xor rax, rsp
mov qword [rsp + 0x78], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x70], rax
movaps xmm6, xmmword [section..rdata]
movaps xmmword [rsp + 0x60], xmm6
lea rdx, str.Read
lea r8, str..._.._base_files_file_win.cc
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov r9d, 0x3d
call fcn.14002f5d0
lea rcx, [rsp + 0x60]
mov rdx, rbx
xor r8d, r8d
call fcn.14003b4e0
test esi, esi
js 0x1400481a7
movaps xmmword [rsp + 0x30], xmm6
lea rcx, [rsp + 0x30]
call fcn.14003bb50
call fcn.140057e10
test al, al
je 0x140048160
mov r9d, esi
lea rdx, str.File::Read
lea rcx, [rsp + 0x30]
mov r8, r15
call fcn.140057eb0
mov rax, rdi
shr rax, 0x20
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], edi
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov rcx, qword [r15]
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x2c]
mov rdx, r14
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400481ae
mov esi, dword [rsp + 0x2c]
jmp 0x1400481bf
mov esi, 0xffffffff
jmp 0x1400481c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
lea rcx, [rsp + 0x30]
call fcn.140057e80
lea rcx, [rsp + 0x60]
call fcn.14003b620
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1401207e0
mov eax, esi
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140048200
Capabilities:
Read file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
movaps xmmword [rsp + 0x70], xmm6
mov esi, r8d
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x14019e638]
xor rax, rsp
mov qword [rsp + 0x68], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x60], rax
movaps xmm6, xmmword [section..rdata]
movaps xmmword [rsp + 0x50], xmm6
lea rdx, str.ReadAtCurrentPos
lea r8, str..._.._base_files_file_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r9d, 0x56
call fcn.14002f5d0
lea rcx, [rsp + 0x50]
mov rdx, rdi
xor r8d, r8d
call fcn.14003b4e0
test esi, esi
js 0x1400482d7
movaps xmmword [rsp + 0x30], xmm6
lea rcx, [rsp + 0x30]
call fcn.14003bb50
call fcn.140057e10
test al, al
je 0x1400482a8
mov r9d, esi
lea rdx, str.File::ReadAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.140057eb0
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x2c]
mov rdx, r14
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400482de
mov esi, dword [rsp + 0x2c]
jmp 0x1400482ef
mov esi, 0xffffffff
jmp 0x1400482f9
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
lea rcx, [rsp + 0x30]
call fcn.140057e80
lea rcx, [rsp + 0x50]
call fcn.14003b620
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1401207e0
mov eax, esi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140048330
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
movaps xmmword [rsp + 0x80], xmm6
mov ebp, r9d
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14019e638]
xor rax, rsp
mov qword [rsp + 0x78], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x70], rax
movaps xmm6, xmmword [section..rdata]
movaps xmmword [rsp + 0x60], xmm6
lea rdx, str.Write
lea r8, str..._.._base_files_file_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x72
call fcn.14002f5d0
lea rcx, [rsp + 0x60]
xor esi, esi
mov rdx, r15
xor r8d, r8d
call fcn.14003b4e0
movaps xmmword [rsp + 0x30], xmm6
lea rcx, [rsp + 0x30]
call fcn.14003bb50
call fcn.140057e10
test al, al
je 0x1400483df
movsxd r9, ebp
lea rdx, str.File::Write
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.140057eb0
mov rax, rdi
shr rax, 0x20
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], edi
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x2c]
mov rdx, r14
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sbb esi, esi
or esi, dword [rsp + 0x2c]
lea rcx, [rsp + 0x30]
call fcn.140057e80
lea rcx, [rsp + 0x60]
call fcn.14003b620
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1401207e0
mov eax, esi
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140048460
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
movaps xmmword [rsp + 0x70], xmm6
mov esi, r8d
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x14019e638]
xor rax, rsp
mov qword [rsp + 0x68], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x60], rax
movaps xmm6, xmmword [section..rdata]
movaps xmmword [rsp + 0x50], xmm6
lea rdx, str.WriteAtCurrentPos
lea r8, str..._.._base_files_file_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r9d, 0x87
call fcn.14002f5d0
lea rcx, [rsp + 0x50]
mov rdx, rdi
xor r8d, r8d
call fcn.14003b4e0
test esi, esi
js 0x140048544
movaps xmmword [rsp + 0x30], xmm6
lea rcx, [rsp + 0x30]
call fcn.14003bb50
call fcn.140057e10
test al, al
je 0x140048508
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.140057eb0
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x2c]
mov rdx, r14
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [rsp + 0x2c]
lea rcx, [rsp + 0x30]
call fcn.140057e80
jmp 0x140048549
mov esi, 0xffffffff
lea rcx, [rsp + 0x50]
call fcn.14003b620
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1401207e0
mov eax, esi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140048580
Capabilities:
Get file size

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm6
mov rsi, rcx
mov rax, qword [0x14019e638]
xor rax, rsp
mov qword [rsp + 0x68], rax
movabs rbx, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x60], rbx
movaps xmm6, xmmword [section..rdata]
movaps xmmword [rsp + 0x50], xmm6
lea rdx, str.GetLength
lea r8, str..._.._base_files_file_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r9d, 0x9b
call fcn.14002f5d0
lea rcx, [rsp + 0x50]
mov rdx, rdi
xor r8d, r8d
call fcn.14003b4e0
movaps xmmword [rsp + 0x30], xmm6
lea rcx, [rsp + 0x30]
call fcn.14003bb50
call fcn.140057e10
test al, al
je 0x14004861c
lea rdx, str.File::GetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
xor r9d, r9d
call fcn.140057eb0
mov qword [rsp + 0x28], rbx
mov rcx, qword [rsi]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor esi, esi
cmp eax, 1
sbb rsi, rsi
or rsi, qword [rsp + 0x28]
lea rcx, [rsp + 0x30]
call fcn.140057e80
lea rcx, [rsp + 0x50]
call fcn.14003b620
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1401207e0
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x80
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400490e0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov esi, edx
mov rdi, rcx
mov rax, qword [0x14019e638]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x14004910f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x140049112
mov rcx, qword [rdi]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x140049133
test bl, bl
je 0x14004918a
cmp byte [rdi + 8], 0
je 0x14004917c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14004917f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rdi + 8], 0
je 0x14004914a
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14004914d
mov rcx, qword [rdi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140049163
xor edi, edi
jmp 0x140049206
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rdi + 8], 0
je 0x1400491be
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x1400491c1
mov rcx, qword [rdi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [rdi + 8], 0
je 0x14004919b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14004919e
mov rcx, qword [rdi]
call fcn.14005c770
mov rcx, qword [0x1401a16d0]
mov dil, 1
test rcx, rcx
je 0x140049206
mov edx, eax
mov r8d, esi
call fcn.140059fe0
jmp 0x140049206
mov rcx, qword [rdi]
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x1400491d4
mov esi, dword [rsp + 0x24]
cmp byte [rdi + 8], 0
je 0x1400491e5
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x1400491e8
mov rcx, qword [rdi]
call fcn.14005c770
mov rcx, qword [0x1401a16d0]
test rcx, rcx
je 0x140049203
mov edx, eax
mov r8d, esi
call fcn.140059fe0
mov dil, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401207e0
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400498f0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x14019e638]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x3c], 4
mov dword [rsp + 0x38], 4
mov dword [rsp + 0x34], 0
mov rcx, qword [rcx]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x14004996b
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x14004996b
cmp dword [rsp + 0x38], 4
jne 0x14004996b
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401207e0
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret

Function at 0x140049990
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.140120770
sub rsp, rax
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14019e638]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea rsi, [rsp + 0x840]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.1401236f0
mov dword [rsp + 0x3c], 1
mov dword [rsp + 0x38], 0x800
mov rcx, qword [rbx]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x3c]
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x140049a79
mov eax, dword [rsp + 0x3c]
cmp eax, 2
je 0x140049a2b
mov edi, 0x3f4
cmp eax, 1
jne 0x140049a79
lea rdx, [rsp + 0x840]
jmp 0x140049a6f
lea rsi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.1401236f0
lea rcx, [rsp + 0x840]
mov rdx, rsi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xffffffff
mov edi, 0xea
cmp eax, 0x3ff
ja 0x140049a79
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.14002603a
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1401207e0
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140049aa0
Capabilities:
Set registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rcx, r8
call fcn.140140af4
add eax, eax
add eax, 2
mov rcx, qword [rbx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov rdx, rdi
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x14004c010
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
movaps xmmword [rsp + 0x30], xmm6
mov rax, qword [0x14019e638]
xor rax, rsp
mov qword [rsp + 0x28], rax
movsd xmm6, qword [0x1401a1448]
xorpd xmm0, xmm0
ucomisd xmm6, xmm0
jne 0x14004c17f
jp 0x14004c17f
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ebp, eax
call rdi
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x1401a1458]
mov ecx, dword [0x1401a1580]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004c19e
mov eax, dword [0x1401a1468]
mov ecx, dword [0x1401a1580]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004c1d8
rdtsc
mov rdi, rax
mov rbx, rdx
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rsi, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub rsi, qword [0x1401a1460]
movq xmm1, rsi
punpckldq xmm1, xmmword [0x140154310]
subpd xmm1, xmmword [0x140154320]
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addsd xmm0, xmm1
xorps xmm1, xmm1
cvtsi2sd xmm1, qword [rsp + 0x20]
divsd xmm0, xmm1
xorpd xmm6, xmm6
movsd xmm1, qword [0x14015a1f8]
ucomisd xmm1, xmm0
ja 0x14004c17f
shl rbx, 0x20
or rdi, rbx
sub rdi, qword [0x1401a1450]
movq xmm1, rdi
punpckldq xmm1, xmmword [0x140154310]
subpd xmm1, xmmword [0x140154320]
movapd xmm6, xmm1
unpckhpd xmm6, xmm1
addsd xmm6, xmm1
divsd xmm6, xmm0
movsd qword [0x1401a1448], xmm6
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401207e0
movapd xmm0, xmm6
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x1401a1458]
call fcn.140120570
cmp dword [0x1401a1458], 0xffffffff
jne 0x14004c091
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x1401a1450], rdx
lea rcx, [0x1401a1458]
call fcn.140120608
jmp 0x14004c091
lea rcx, [0x1401a1468]
call fcn.140120570
cmp dword [0x1401a1468], 0xffffffff
jne 0x14004c0b6
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x20]
mov qword [0x1401a1460], rax
lea rcx, [0x1401a1468]
call fcn.140120608
jmp 0x14004c0b6