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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x30
xor r15d, r15d
mov rsi, rdx
mov qword [rbp + 0x48], r15
mov r14, rcx
mov dword [rbp + 0x30], r15d
mov edi, r15d
test rcx, rcx
je 0x1400037bb
cmp word [rcx], r15w
je 0x1400037bb
test rdx, rdx
je 0x1400037bb
cmp qword [rdx], r15
jne 0x1400037bb
mov rdx, qword [str.SOFTWAREMicrosoftSharedXMLAlternateProgIDs]
lea rax, [rbp + 0x48]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp ebx, 0x80070002
jne 0x1400036e4
mov ebx, r15d
jmp 0x1400037c0
test ebx, ebx
js 0x1400037c0
mov rcx, qword [rbp + 0x48]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], r15
mov rdx, r14
mov dword [rbp + 0x40], r15d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, r15d
test ebx, ebx
cmovns eax, dword [rbp + 0x40]
mov dword [rbp + 0x40], eax
cmp ebx, 0x80070002
je 0x1400036dc
dec eax
cmp eax, 1
ja 0x1400036dc
mov eax, dword [rbp + 0x30]
cmp eax, 2
jbe 0x1400036dc
test ebx, ebx
js 0x1400037c0
add eax, 2
xor ecx, ecx
mov edx, eax
mov dword [rbp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
jne 0x140003766
mov ebx, 0x8007000e
jmp 0x1400037c0
mov r8d, dword [rbp + 0x30]
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rbp + 0x48]
lea rax, [rbp + 0x30]
add dword [rbp + 0x30], 0xfffffffe
lea r8, [rbp + 0x40]
mov r9, rdi
mov qword [rsp + 0x20], rax
mov rdx, r14
call fcn.140004094
mov ebx, eax
cmp eax, 0x80070002
je 0x1400036dc
mov eax, dword [rbp + 0x40]
dec eax
cmp eax, 1
ja 0x1400036dc
test ebx, ebx
js 0x1400037c0
mov qword [rsi], rdi
mov rdi, r15
jmp 0x1400037c0
mov ebx, 0x80070057
mov rcx, rdi
call fcn.140003310
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x1400037d7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400037ec
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
xor r13d, r13d
mov r15, rdx
mov qword [rbp - 8], r13
mov rdi, rcx
mov dword [rbp + 0x50], r13d
mov esi, r13d
mov dword [rbp + 0x40], r13d
mov r14d, r13d
mov dword [rbp + 0x58], r13d
test rcx, rcx
je 0x14000399f
cmp word [rcx], r13w
je 0x14000399f
test rdx, rdx
je 0x14000399f
cmp qword [rdx], r13
jne 0x14000399f
mov rdx, qword [str.SOFTWAREMicrosoftSharedXMLProgIDs]
lea rax, [rbp - 8]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
mov r12d, 0x80070000
or ebx, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400038b7
mov rcx, qword [rbp - 8]
lea r9, [rbp - 0x10]
mov qword [rsp + 0x28], r13
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], r13
mov dword [rbp - 0x10], r13d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x14000394f
cmp ebx, 0x80070002
jne 0x1400039a4
lea rdx, [rbp + 0x50]
mov rcx, rdi
call fcn.140003f6c
mov ebx, eax
test eax, eax
js 0x1400039a4
cmp dword [rbp + 0x50], r13d
je 0x1400039a4
lea r8, [rbp + 0x40]
xor edx, edx
mov rcx, rdi
call fcn.140004afc
test eax, eax
js 0x140003929
mov edx, dword [rbp + 0x40]
xor ecx, ecx
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r14, rax
test rax, rax
je 0x140003929
lea r8, [rbp + 0x40]
mov rdx, rax
mov rcx, rdi
call fcn.140004afc
test eax, eax
jns 0x140003929
mov rcx, r14
call fcn.140003310
mov r14, r13
test r14, r14
lea r8, [rbp + 0x58]
mov rdx, rdi
mov rcx, 0xffffffff80000000
cmovne rdx, r14
call fcn.140004550
mov ebx, eax
test eax, eax
js 0x1400039a4
cmp dword [rbp + 0x58], r13d
je 0x1400039a4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
xor ecx, ecx
mov r12d, eax
lea rdx, [rax + rax]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
test rax, rax
je 0x140003990
or r9, 0xffffffffffffffff
mov r8, rdi
mov edx, r12d
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
cmp eax, 0x50
jne 0x140003997
mov ebx, 0x8007007a
jmp 0x1400039a4
mov ebx, 0x8007000e
jmp 0x1400039a4
mov qword [r15], rsi
mov rsi, r13
jmp 0x1400039a4
mov ebx, 0x80070057
mov rcx, rsi
call fcn.140003310
mov rcx, r14
call fcn.140003310
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x1400039c3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140004094
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, qword [rsp + 0x70]
mov rbx, r9
mov rsi, r8
mov qword [rax - 0x20], rdi
xor ebp, ebp
mov qword [rax - 0x28], rbx
lea r9, [rax - 0x18]
mov dword [rax - 0x18], ebp
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x140004116
mov edx, dword [rsp + 0x30]
test rdi, rdi
jne 0x1400040f4
test rbx, rbx
je 0x14000410f
mov ecx, 0x8000ffff
jmp 0x140004116
test rbx, rbx
je 0x14000410f
lea eax, [rdx - 1]
cmp eax, 1
ja 0x14000410f
cmp dword [rdi], 2
jb 0x1400040ed
mov eax, dword [rdi]
cmp word [rax + rbx - 2], bp
jmp 0x1400040eb
test rsi, rsi
je 0x140004116
mov dword [rsi], edx
mov rbx, qword [rsp + 0x50]
mov eax, ecx
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x1400045d4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x30
xor esi, esi
mov rdi, rdx
mov qword [rbp + 0x38], rsi
mov dword [rbp + 0x20], esi
test rcx, rcx
je 0x1400046d3
cmp word [rcx], 0x2e
jne 0x1400046d3
test rdx, rdx
jne 0x140004611
mov ebx, 0x80070057
jmp 0x1400046e7
mov qword [rdx], rsi
lea rax, [rbp + 0x38]
mov rdx, rcx
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000000
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400046d8
mov rcx, qword [rbp + 0x38]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
xor edx, edx
mov dword [rbp + 0x30], esi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, dword [rbp + 0x30]
test ebx, ebx
cmovns eax, dword [rbp + 0x30]
js 0x1400046d8
dec eax
cmp eax, 1
jbe 0x140004697
mov ebx, 0x8000ffff
jmp 0x1400046d8
mov edx, dword [rbp + 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rdi], rax
test rax, rax
jne 0x1400046b1
mov ebx, 0x8007000e
jmp 0x1400046d8
mov word [rax], si
lea r8, [rbp + 0x30]
mov r9, qword [rdi]
lea rax, [rbp + 0x20]
mov rcx, qword [rbp + 0x38]
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.140004094
mov ebx, eax
jmp 0x1400046d8
mov ebx, 0x80070057
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x1400046e7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400046f8
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x370]
sub rsp, 0x470
mov rax, qword [0x14000a2a8]
xor rax, rsp
mov qword [rbp + 0x360], rax
xor esi, esi
mov dword [rsp + 0x38], 0x201
mov qword [rsp + 0x30], rsi
mov rdi, r8
mov qword [rsp + 0x40], rsi
test rcx, rcx
je 0x140004878
cmp word [rcx], si
je 0x140004878
test r8, r8
je 0x140004878
lea rax, [rsp + 0x38]
mov dword [r8], esi
mov qword [rsp + 0x28], rax
mov r9, rdx
lea rax, [rsp + 0x50]
mov word [rsp + 0x50], si
mov r8, rcx
mov qword [rsp + 0x20], rax
lea edx, [rsi + 2]
lea ecx, [rsi + 0x20]
call qword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
mov ebx, eax
mov r14d, 0x80070000
test eax, eax
js 0x14000483b
mov rdx, qword [str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths]
lea rax, [rsp + 0x30]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000483b
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea rcx, [rsp + 0x40]
mov r9d, 0x20019
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rsp + 0x30]
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ecx, ax
or ecx, r14d
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x14000483b
mov rdx, qword [str.UseURL]
lea r9, [rsp + 0x3c]
mov rcx, qword [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x3c], esi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ecx, ax
or ecx, r14d
test eax, eax
cmovle ecx, eax
mov eax, esi
test ecx, ecx
setns al
mov dword [rdi], eax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140004866
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx ecx, ax
or ecx, r14d
test eax, eax
cmovle ecx, eax
mov rax, qword [rsp + 0x30]
test ecx, ecx
cmovns rax, rsi
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000487d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000487d
mov ebx, 0x80070057
mov eax, ebx
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.140006dd0
add rsp, 0x470
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140004afc
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
xor r15d, r15d
mov rdi, r8
mov qword [rbp - 0x10], r15
mov rsi, rdx
mov qword [rbp - 8], r15
mov r14, rcx
mov dword [rbp + 0x48], r15d
mov dword [rbp + 0x30], r15d
test rcx, rcx
je 0x140004cf6
cmp word [rcx], r15w
je 0x140004cf6
test r8, r8
je 0x140004cf6
lea rax, [rbp - 0x10]
mov rdx, rcx
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
mov r13d, 0x80070000
or ebx, r13d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140004c5f
mov rdx, qword [str.CurVer]
lea rax, [rbp - 8]
mov rcx, qword [rbp - 0x10]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, r13d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140004c5f
mov rcx, qword [rbp - 8]
xor edx, edx
test rsi, rsi
je 0x140004c17
mov eax, dword [rdi]
lea r8, [rbp + 0x48]
add eax, eax
mov r9, rsi
mov dword [rbp + 0x30], eax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], rax
call fcn.140004094
mov ebx, eax
test eax, eax
js 0x140004cbd
mov ecx, dword [rbp + 0x48]
dec ecx
cmp ecx, 1
jbe 0x140004c03
mov ebx, 0x80004005
jmp 0x140004cbd
cmp dword [rbp + 0x30], 2
jbe 0x140004bf9
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x140004cbb
lea rax, [rbp + 0x30]
mov dword [rbp + 0x48], r15d
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x48]
xor r8d, r8d
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, r13d
test eax, eax
cmovle ebx, eax
mov eax, r15d
test ebx, ebx
cmovns eax, dword [rbp + 0x48]
js 0x140004cbd
dec eax
cmp eax, 1
ja 0x140004bf9
mov eax, dword [rbp + 0x30]
cmp eax, 2
jbe 0x140004bf9
shr eax, 1
jmp 0x140004cbb
lea rdx, str.InfoPath.Document
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140004cbd
test rsi, rsi
je 0x140004ca9
mov edx, dword [rdi]
lea r8, str.InfoPath.Document.1
or r9, 0xffffffffffffffff
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
cmp eax, 0x50
jne 0x140004c9a
mov ebx, 0x8007007a
jmp 0x140004cbd
lea rcx, str.InfoPath.Document.1
call qword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x140004cb8
lea rcx, str.InfoPath.Document.1
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
mov ebx, r15d
mov dword [rdi], eax
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140004ce5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx ecx, ax
or ecx, r13d
test eax, eax
cmovle ecx, eax
mov rax, qword [rbp - 0x10]
test ecx, ecx
cmovns rax, r15
mov qword [rbp - 0x10], rax
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x140004cfb
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140004cfb
mov ebx, 0x80070057
lea r11, [rsp + 0x40]
mov eax, ebx
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
Function at 0x140005860
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x14000a2a8]
xor rax, rsp
mov qword [rsp + 0x450], rax
xor esi, esi
mov dword [rsp + 0x30], 0x201
mov rbx, rcx
mov edi, esi
lea edx, [rsi + 3]
call qword [sym.imp.SHLWAPI.dll_UrlIsW]
test eax, eax
je 0x1400058d8
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x402
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathCreateFromUrlW]
test eax, eax
lea r9, [rsp + 0x40]
cmovs r9, rsi
test r9, r9
jne 0x1400058db
mov r9, rbx
mov dword [rsp + 0x28], 1
lea r8, str._SystemRoot__system32NOTEPAD.EXE
lea rdx, str.open
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x20
mov ecx, 0x80004005
cmovle edi, ecx
mov eax, edi
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140006dd0
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400065b8
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor edi, edi
mov dword [rax - 0x28], edi
mov esi, edi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r14, rax
test rax, rax
jne 0x14000660c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400066da
cmp dword [rsp + 0x20], 1
jle 0x1400066bf
mov rdx, qword [rax + 8]
lea rcx, str._verb
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x1400066bf
cmp dword [rsp + 0x20], 4
mov r15, rdi
jl 0x1400066bf
mov rdx, qword [r14 + 0x18]
lea rcx, str._genverb
mov rbp, qword [r14 + 0x10]
lea ebx, [rax + 3]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140006668
cmp dword [rsp + 0x20], 6
jne 0x1400066bf
mov r15, qword [r14 + 0x20]
lea ebx, [rax + 5]
lea eax, [rbx + 1]
cmp eax, dword [rsp + 0x20]
jne 0x1400066bf
movsxd rcx, ebx
xor edx, edx
mov rcx, qword [r14 + rcx*8]
call fcn.14000355c
mov rsi, rax
test rax, rax
jne 0x14000668e
mov ebx, 0x80004005
jmp 0x1400066c4
mov rcx, qword [rax]
lea rbx, [rax + 0x10]
mov rdx, rbx
call fcn.140004480
cmp qword [rbx], rdi
jne 0x1400066a9
test r15, r15
cmovne rbp, r15
mov r9, qword [rbx]
mov r8, rbp
mov rdx, qword [rsi + 8]
mov rcx, qword [rsi]
call fcn.140005568
mov ebx, eax
jmp 0x1400066c4
mov ebx, 0x80070057
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalFree]
test rsi, rsi
je 0x1400066da
mov rcx, rsi
call fcn.140003610
test ebx, ebx
sets dil
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140006cc8
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x14000a2a8]
movabs rdi, 0x2b992ddfa23249d6
test rax, rax
je 0x140006cf8
mov rax, qword [0x14000a2a8]
cmp rax, rdi
jne 0x140006db9
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_HeapSetInformation]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rbx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov eax, eax
xor rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
xor rbx, rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, eax
lea rcx, [rsp + 0x40]
xor rbx, rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xor rbx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov edx, 8
lea rcx, [0x14000a2a8]
lea r8d, [rdx + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
test rbx, rbx
lea rcx, [0x14000a2a8]
mov edx, 8
cmovne rdi, rbx
mov qword [0x14000a2a8], rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, 8
lea rcx, [0x14000a2a8]
call sub.KERNEL32.dll_WerRegisterMemoryBlock
mov rax, qword [0x14000a2a8]
not rax
mov qword [0x14000c2a8], rax
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140007424
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x1400076f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140007781
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x140007781
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140007781
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140007765
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14000775f
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140007767
add rdx, 0x28
jmp 0x140007744
xor edx, edx
test rdx, rdx
jne 0x140007770
xor al, al
jmp 0x140007787
test dword [rdx + 0x24], 0x80000000
je 0x14000777d
xor al, al
jmp 0x140007787
mov al, 1
jmp 0x140007787
xor al, al
jmp 0x140007787
add rsp, 0x18
ret
Function at 0x140005e10
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x140005e59
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140005e75
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140005e51
mov qword [rsi], rdi
call fcn.140041560
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x140005ea8
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140041560
mov r14, qword [rsi]
mov rcx, qword [0x140184a28]
test rcx, rcx
je 0x140005e9a
mov rax, qword [rcx]
mov rdx, r14
call qword [rax]
mov qword [rsi], 0
jmp 0x140005e3f
call fcn.1400c7320
mov rcx, qword [0x140184a28]
jmp 0x140005e89
int3
Function at 0x1400407a0
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
movapd xmmword [rsp + 0x40], xmm6
mov rsi, rcx
mov rax, qword [0x14017e028]
xor rax, rsp
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov qword [rsp + 0x28], 0
lea rdx, [rsp + 0x28]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x140184630]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x1400407f7
jnp 0x14004085c
ucomisd xmm0, xmm6
jne 0x140040803
jnp 0x140040996
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x140159b60]
subpd xmm1, xmmword [0x140159b70]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x140163a90]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14008fec0
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov r12d, eax
call rbx
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x140184640]
mov ecx, dword [0x140181920]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004099d
mov eax, dword [0x140184650]
mov ecx, dword [0x140181920]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400409d7
rdtsc
mov r14, rax
mov r15, rdx
xor edi, edi
lea rbx, [rsp + 0x30]
mov qword [rbx], rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rbp, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [rbx], rdi
lea rdi, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub rbp, qword [0x140184648]
movq xmm0, rbp
punpckldq xmm0, xmmword [0x140159b60]
subpd xmm0, xmmword [0x140159b70]
movapd xmm1, xmm0
unpckhpd xmm1, xmm0
addsd xmm1, xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x140163a88]
ucomisd xmm2, xmm1
ja 0x1400407f7
shl r15, 0x20
or r14, r15
sub r14, qword [0x140184638]
movq xmm2, r14
punpckldq xmm2, xmmword [0x140159b60]
subpd xmm2, xmmword [0x140159b70]
movapd xmm0, xmm2
unpckhpd xmm0, xmm2
addsd xmm0, xmm2
divsd xmm0, xmm1
movsd qword [0x140184630], xmm0
jmp 0x1400407f7
xor eax, eax
jmp 0x140040835
lea rcx, [0x140184640]
call fcn.14008d354
cmp dword [0x140184640], 0xffffffff
jne 0x1400408a6
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x140184638], rdx
lea rcx, [0x140184640]
call fcn.14008d2f4
jmp 0x1400408a6
lea rcx, [0x140184650]
call fcn.14008d354
cmp dword [0x140184650], 0xffffffff
jne 0x1400408cb
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x140184648], rax
lea rcx, [0x140184650]
call fcn.14008d2f4
jmp 0x1400408cb
Function at 0x140048be0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xd0
movaps xmmword [rsp + 0xc0], xmm6
mov esi, r8d
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x14017e028]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xb0], r15
movaps xmm6, xmmword [0x14015c320]
movaps xmmword [rsp + 0xa0], xmm6
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
lea rdx, str.ReadAtCurrentPos
lea r8, str..._.._base_files_file_win.cc
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov r9d, 0x57
call fcn.140048d60
lea rcx, [rsp + 0x60]
mov rdx, rdi
xor r8d, r8d
call fcn.140048d80
test esi, esi
js 0x140048d34
mov dword [rsp + 0x40], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rdx, r14
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140048d3e
mov esi, dword [rsp + 0x40]
test byte [0x14017ff80], 0x19
jne 0x140048cf2
lea rcx, [rsp + 0x60]
call fcn.140046d50
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.14008fec0
mov eax, esi
movaps xmm6, xmmword [rsp + 0xc0]
add rsp, 0xd0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], r15
movaps xmmword [rdi], xmm6
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov byte [rsp + 0x30], 0
lea r8, [0x14017ff80]
lea r9, [0x14016398f]
mov rcx, rdi
mov dl, 0x45
call fcn.14003a350
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x140048cbf
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x140048cbf
mov esi, 0xffffffff
jmp 0x140048cb6
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
jmp 0x140048cb6