joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008cb4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400c2138]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rcx
mov rdi, r8
mov rcx, rdx
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov qword [rbx], rax
test rdi, rdi
je 0x140008d9f
lea rcx, [rbx + 0x24]
mov rdx, rdi
call qword [sym.imp.USER32.dll_CopyRect]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140008d0d
call qword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x140008d0d
and qword [rbx + 8], 0
mov eax, dword [rdi + 8]
lea r9, [rbx + 0x18]
sub eax, dword [rdi]
lea rdx, [rsp + 0x30]
and dword [rsp + 0x28], 0
xorps xmm0, xmm0
and dword [rsp + 0x54], 0
xor r8d, r8d
and dword [rsp + 0x40], 0
xor ecx, ecx
and qword [rsp + 0x20], 0
mov dword [rsp + 0x34], eax
mov eax, dword [rdi + 4]
sub eax, dword [rdi + 0xc]
mov dword [rsp + 0x38], eax
mov eax, 1
mov word [rsp + 0x3c], ax
movzx eax, word [rbx + 0x20]
mov word [rsp + 0x3e], ax
movdqu xmmword [rsp + 0x44], xmm0
mov dword [rsp + 0x30], 0x28
call qword [sym.imp.GDI32.dll_CreateDIBSection]
mov qword [rbx + 8], rax
mov rdx, rax
mov rcx, qword [rbx]
call qword [sym.imp.GDI32.dll_SelectObject]
cmp qword [rbx + 0x10], 0
je 0x140008d88
mov qword [rbx + 0x10], rax
mov r8d, dword [rdi + 4]
xor r9d, r9d
mov edx, dword [rdi]
neg r8d
mov rcx, qword [rbx]
neg edx
call qword [sym.imp.GDI32.dll_SetViewportOrgEx]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14005ccc0
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret

Function at 0x1400097f8
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x1400c2138]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov ebx, 0x5c
xor edx, edx
mov r8d, ebx
mov rdi, rcx
call fcn.140061fe0
lea ecx, [rbx - 0x4b]
call qword [sym.imp.GDI32.dll_GetStockObject]
mov r8, rdi
mov edx, ebx
mov rcx, rax
call qword [sym.imp.GDI32.dll_GetObjectW]
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x118
xor bl, bl
call fcn.140061fe0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x24], 6
mov eax, 1
jne 0x14000987e
cmp byte [rsp + 0x13a], al
jne 0x140009889
mov bl, al
cmp dword [rsp + 0x24], 6
movzx ebx, bl
cmova ebx, eax
test bl, bl
lea rax, [0x1400adaa8]
lea r8, str.Tahoma
mov edx, 0x20
cmovne r8, rax
lea rcx, [rdi + 0x1c]
call fcn.14006eacc
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14005ccc0
mov rbx, qword [rsp + 0x168]
add rsp, 0x150
pop rdi
ret
Function at 0x14000c368
Capabilities:
Enumerate gui resources

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], r8
push rdi
sub rsp, 0x20
xor esi, esi
mov rbx, rcx
cmp dword [rcx + 0x4c], esi
je 0x14000c48e
mov rcx, qword [rcx + 8]
lea rdx, [r11 + 0x18]
movzx eax, r9w
shr r9, 0x10
mov dword [rsp + 0x40], eax
movzx eax, r9w
mov dword [rsp + 0x44], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14000c4a0
mov edi, eax
test eax, eax
jne 0x14000c3d4
mov rdx, rbx
lea rcx, [0x14000c69c]
call qword [sym.imp.USER32.dll_EnumWindows]
jmp 0x14000c48e
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, edi
sub ecx, 1
je 0x14000c45f
sub ecx, 1
je 0x14000c442
sub ecx, 1
je 0x14000c45f
sub ecx, 1
je 0x14000c442
sub ecx, 1
je 0x14000c40c
sub ecx, 1
je 0x14000c427
sub ecx, 1
je 0x14000c427
cmp ecx, 1
jne 0x14000c48e
mov rcx, qword [rbx + 0x108]
call qword [sym.imp.USER32.dll_SetCursor]
mov eax, 0xf004
cmp edi, 5
lea r8d, [rax + 4]
jmp 0x14000c478
mov rcx, qword [rbx + 0x110]
call qword [sym.imp.USER32.dll_SetCursor]
mov eax, 0xf005
cmp edi, 6
lea r8d, [rax + 2]
jmp 0x14000c478
mov rcx, qword [rbx + 0xf8]
call qword [sym.imp.USER32.dll_SetCursor]
cmp edi, 2
setne sil
lea r8, [rsi + 0xf001]
jmp 0x14000c47c
mov rcx, qword [rbx + 0x100]
call qword [sym.imp.USER32.dll_SetCursor]
mov eax, 0xf003
cmp edi, 1
lea r8d, [rax + 3]
cmove r8, rax
mov rcx, qword [rbx + 0x50]
xor r9d, r9d
mov edx, 0x112
call qword [sym.imp.USER32.dll_SendMessageW]
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14001089c
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 8]
test rcx, rcx
jne 0x1400108ad
xor al, al
jmp 0x1400108ca
and qword [rsp + 0x28], 0
xor r9d, r9d
and qword [rsp + 0x20], 0
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete al
add rsp, 0x38
ret
Function at 0x1400108d0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0xf50]
mov eax, 0x1050
call fcn.14005cc60
sub rsp, rax
mov rax, qword [0x1400c2138]
xor rax, rsp
mov qword [rbp + 0xf40], rax
mov rcx, qword [rcx + 8]
xor edi, edi
mov dword [rsp + 0x30], 1
mov rbx, r8
mov dword [rsp + 0x34], 0x800
test rcx, rcx
je 0x1400109b7
lea rax, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400109b7
cmp dword [rsp + 0x30], 1
jne 0x140010963
lea rax, [rsp + 0x40]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], di
jne 0x140010952
lea rdx, [rsp + 0x40]
jmp 0x1400109ab
cmp dword [rsp + 0x30], 2
jne 0x1400109b7
mov r8d, 0x400
lea rdx, [rbp + 0x740]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x34], eax
dec eax
cmp eax, 0x3ff
ja 0x1400109b7
lea rax, [rbp + 0x740]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], di
jne 0x14001099a
lea rdx, [rbp + 0x740]
mov rcx, rbx
call fcn.140006170
mov al, 1
jmp 0x1400109b9
xor al, al
mov rcx, qword [rbp + 0xf40]
xor rcx, rsp
call fcn.14005ccc0
add rsp, 0x1050
pop rdi
pop rbx
pop rbp
ret

Function at 0x1400109d4
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
and dword [rsp + 0x30], 0
mov rbx, r8
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x50], 4
mov dword [rsp + 0x68], 4
test rcx, rcx
je 0x140010a3b
lea rax, [r11 + 0x20]
xor r8d, r8d
mov qword [r11 - 0x20], rax
lea r9, [r11 + 8]
lea rax, [r11 - 0x18]
mov qword [r11 - 0x28], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140010a3b
mov eax, dword [rsp + 0x50]
add eax, 0xfffffffd
cmp eax, 1
ja 0x140010a3b
cmp dword [rsp + 0x68], 4
jne 0x140010a3b
mov ecx, dword [rsp + 0x30]
mov al, 1
mov dword [rbx], ecx
jmp 0x140010a3d
xor al, al
add rsp, 0x40
pop rbx
ret

Function at 0x140010a44
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
or rax, 0xffffffffffffffff
mov r10, rdx
xor ebx, ebx
inc rax
cmp word [r8 + rax*2], bx
jne 0x140010a53
mov rcx, qword [rcx + 8]
lea edx, [rax*2 + 2]
test rcx, rcx
je 0x140010a8d
mov dword [rsp + 0x28], edx
mov r9d, 1
mov qword [rsp + 0x20], r8
mov rdx, r10
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov al, bl
add rsp, 0x30
pop rbx
ret
Function at 0x140011c4c
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1400c2138]
xor rax, rsp
mov qword [rbp - 8], rax
mov dword [rbp - 0x40], 0x10
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp - 0x38]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor ebx, ebx
test eax, eax
jne 0x140011c9a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
sete bl
jmp 0x140011d0c
lea r8, [rbp - 0x30]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rbp - 0x38]
test eax, eax
jne 0x140011cbf
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140011d0e
mov rax, qword [rbp - 0x30]
lea r8, [rbp - 0x28]
mov qword [rbp - 0x24], rax
mov r9d, 0x10
lea rax, [rbp - 0x40]
mov dword [rbp - 0x28], 1
mov qword [rsp + 0x28], rax
xor edx, edx
lea rax, [rbp - 0x18]
mov dword [rbp - 0x1c], 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x140011d02
mov ebx, 1
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14005ccc0
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rbp
ret

Function at 0x140011d28
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rbp, rdx
mov ebx, ecx
test ecx, ecx
jne 0x140011d4c
xor eax, eax
jmp 0x140011e17
cmp byte [0x1400c6b8b], 0
jne 0x140011d61
call fcn.140011c4c
mov byte [0x1400c6b8b], 1
mov r8d, ebx
xor edx, edx
mov ecx, 0x401
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
jne 0x140011d97
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, ebx
mov qword [rsp + 0x20], rbp
mov r8d, eax
lea edx, [rdi + 0xc]
lea ecx, [rdi + 0x6e]
call fcn.140029c40
jmp 0x140011d45
and dword [rsp + 0x50], 0
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x140011dd1
mov r8d, dword [rsp + 0x50]
cmp r8d, 0x103
je 0x140011dd1
mov edx, 0xf
mov qword [rsp + 0x20], rbp
mov r9d, ebx
lea ecx, [rdx + 0x5f]
call fcn.140029c40
mov edx, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, eax
test eax, eax
jne 0x140011e01
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, ebx
mov qword [rsp + 0x20], rbp
mov r8d, eax
lea edx, [rsi + 0xd]
lea ecx, [rsi + 0x6e]
call fcn.140029c40
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, esi
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140011e2c
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
xor r12d, r12d
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
xor edi, edi
mov qword [rbp - 0x10], rdi
lea rdx, str.QB_5E407EF8_E1A4_4520_927B_1657800B77FE
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowW]
mov qword [rbp + 0x30], rax
test rax, rax
je 0x140011e81
lea r8, [rbp + 0x30]
xor edx, edx
lea rcx, [rbp - 0x20]
call fcn.1400126ac
mov rdi, qword [rbp - 0x10]
xor r9d, r9d
lea r8, str.QQBrowserMainFrame
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowExW]
mov rsi, qword [rbp - 0x18]
test rax, rax
mov qword [rbp + 0x30], rax
mov rbx, rax
je 0x140011ee6
cmp rsi, rdi
je 0x140011eb7
mov qword [rsi], rax
add rsi, 8
mov qword [rbp - 0x18], rsi
jmp 0x140011ecf
lea r8, [rbp + 0x30]
mov rdx, rsi
lea rcx, [rbp - 0x20]
call fcn.1400126ac
mov rdi, qword [rbp - 0x10]
mov rsi, qword [rbp - 0x18]
xor r9d, r9d
lea r8, str.QQBrowserMainFrame
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowExW]
jmp 0x140011e99
mov rax, rsi
mov r14, qword [rbp - 0x20]
sub rax, r14
sar rax, 3
test rax, rax
je 0x140011f1e
lea rcx, str.User32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140011f1e
lea rdx, str.EndTask
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
cmp r14, rsi
je 0x140011ff7
mov rbx, r14
mov r15, qword [rbx]
mov rcx, r15
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140011fea
and dword [rbp + 0x30], 0
lea rdx, [rbp + 0x30]
mov rcx, r15
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test r12, r12
je 0x140011f68
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, r15
call r12
test eax, eax
jne 0x140011fea
mov r8d, dword [rbp + 0x30]
xor edx, edx
mov ecx, 0x100001
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r15, rax
test rax, rax
je 0x140011fca
mov edx, 0x7530
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140011fbf
mov edx, 1
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
and qword [rsp + 0x20], 0
xor r9d, r9d
lea edx, [r9 + 0xe]
lea ecx, [rdx + 0x60]
call fcn.140029c40
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140011fea
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
and qword [rsp + 0x20], 0
mov edx, 0xc
lea ecx, [rdx + 0x62]
lea r9d, [rdx - 0xb]
call fcn.140029c40
add rbx, 8
cmp rbx, rsi
jne 0x140011f2a
test r14, r14
je 0x14001202f
sub rdi, r14
and rdi, 0xfffffffffffffff8
mov rax, r14
cmp rdi, 0x1000
jb 0x140012024
add rdi, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001204d
mov rdx, rdi
mov rcx, r14
call fcn.14005cb40
mov eax, 1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.140067514
int3
Function at 0x140016320
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1400c2138]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
cmp qword [rcx + 0x18], 8
jb 0x14001634d
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ebx, ebx
test eax, eax
je 0x140016360
mov al, 1
jmp 0x140016497
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x40], rbx
mov qword [rbp - 0x38], rbx
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.140007abc
nop
lea rcx, [rbp - 0x50]
call fcn.1400160b8
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], rbx
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x30]
call fcn.140007abc
nop
lea rcx, [rbp - 0x30]
call fcn.14001617c
mov rax, qword [rbp - 0x40]
cmp qword [rbp - 0x20], rax
je 0x140016405
mov dl, 1
lea rcx, [rbp - 0x30]
call fcn.140016320
test al, al
jne 0x140016405
mov edi, 0x1000
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x14001645d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, rdi
jb 0x1400163fe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400164bb
call fcn.14005cb40
jmp 0x14001645d
mov edi, 0x1000
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x140016442
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, rdi
jb 0x14001643d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400164bb
call fcn.14005cb40
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rcx, qword [rbp - 0x50]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x140016495
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, rdi
jb 0x140016490
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400164b5
call fcn.14005cb40
mov al, bl
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14005ccc0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.140067514
nop
call fcn.140067514
nop
int3

Function at 0x1400164c4
Capabilities:
Delete directory

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x10], 0
mov rbx, rcx
jne 0x1400164d8
xor al, al
jmp 0x1400164f5
call fcn.1400164fc
cmp qword [rbx + 0x18], 8
jb 0x1400164e7
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
add rsp, 0x20
pop rbx
ret
Function at 0x1400167a8
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor edi, edi
mov rbx, rdx
cmp qword [rcx + 0x18], 8
jb 0x1400167cb
mov rcx, qword [rcx]
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x1400169cc
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r13, qword [rbx + 0x10]
mov r15d, eax
mov dword [rsp + 0x90], r15d
mov r14d, eax
cmp r13, r15
ja 0x140016971
mov rbp, qword [rbx + 0x18]
cmp rbp, r14
je 0x140016971
jae 0x140016917
movabs rsi, 0x7fffffffffffffff
mov ecx, r14d
mov rax, rsi
sub rcx, r13
sub rax, r13
cmp rax, rcx
jb 0x1400169e7
mov rdx, rbp
mov ecx, r14d
shr rdx, 1
mov rax, rsi
sub rax, rdx
or rcx, 0xf
cmp rbp, rax
jbe 0x140016877
movabs rcx, 0x8000000000000000
jmp 0x140016892
lea rax, [rdx + rbp]
mov rsi, rcx
cmp rcx, rax
cmovb rsi, rax
lea rcx, [rsi + 1]
cmp rcx, 0x1000
jb 0x14001689c
call fcn.140005e20
mov r15, rax
jmp 0x1400168ab
test rcx, rcx
je 0x1400168a8
call fcn.14000d0e4
jmp 0x140016897
mov r15, rdi
mov qword [rbx + 0x10], r14
lea r8, [r13 + 1]
mov qword [rbx + 0x18], rsi
mov rcx, r15
cmp rbp, 0x10
jb 0x1400168fe
mov rsi, qword [rbx]
mov rdx, rsi
call fcn.140061930
lea rdx, [rbp + 1]
cmp rdx, 0x1000
jb 0x1400168f4
mov rcx, qword [rsi - 8]
add rdx, 0x27
sub rsi, rcx
lea rax, [rsi - 8]
cmp rax, 0x1f
ja 0x1400169ed
mov rsi, rcx
mov rcx, rsi
call fcn.14005cb40
jmp 0x140016906
mov rdx, rbx
call fcn.140061930
mov qword [rbx], r15
mov r15d, dword [rsp + 0x90]
mov qword [rbx + 0x10], r13
jmp 0x140016971
cmp r14, 0x10
jae 0x140016971
cmp rbp, 0x10
jb 0x140016971
mov rsi, qword [rbx]
lea r8, [r13 + 1]
mov rdx, rsi
mov rcx, rbx
call fcn.140061930
mov rdx, qword [rbx + 0x18]
inc rdx
cmp rdx, 0x1000
jb 0x140016961
mov rcx, qword [rsi - 8]
add rdx, 0x27
sub rsi, rcx
lea rax, [rsi - 8]
cmp rax, 0x1f
ja 0x1400169ed
mov rsi, rcx
mov rcx, rsi
call fcn.14005cb40
mov qword [rbx + 0x18], 0xf
mov rcx, r14
mov dword [rsp + 0x80], edi
call fcn.14005d5a4
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, r15d
mov rdx, rax
mov rcx, r12
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400169c3
cmp r15d, dword [rsp + 0x80]
jne 0x1400169c3
mov r8d, dword [rsp + 0x80]
mov rdx, rsi
mov rcx, rbx
call fcn.14000f2cc
mov dil, 1
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x88]
mov al, dil
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140005da8
int3
call fcn.140067514
int3
Function at 0x1400170c4
Capabilities:
Get common file path

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x1400c2138]
xor rax, rsp
mov qword [rsp + 0x230], rax
movzx edi, r8b
mov ebx, edx
mov rsi, rcx
xor edx, edx
mov r8d, 0x20a
lea rcx, [rsp + 0x20]
call fcn.140061fe0
mov r9d, edi
lea rdx, [rsp + 0x20]
mov r8d, ebx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor ecx, ecx
test eax, eax
je 0x140017137
lea rax, [rsp + 0x20]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], cx
jne 0x14001711e
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140006170
mov al, 1
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14005ccc0
add rsp, 0x240
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400174e8
Capabilities:
Check os version
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x270]
sub rsp, 0x370
mov rax, qword [0x1400c2138]
xor rax, rsp
mov qword [rbp + 0x260], rax
mov ecx, dword [0x1400c31d4]
mov ebx, 0xfffffc18
cmp ecx, 0xffffffff
jne 0x14001767d
xor edx, edx
mov dword [0x1400c31d4], ebx
mov r8d, 0x110
mov dword [rsp + 0x30], 0x114
lea rcx, [rsp + 0x34]
call fcn.140061fe0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140017672
cmp dword [rsp + 0x40], 2
jne 0x140017672
cmp dword [rsp + 0x34], 5
jne 0x1400175fa
mov eax, dword [rsp + 0x38]
mov ecx, 1
test eax, eax
je 0x1400176f9
cmp eax, ecx
jne 0x1400175e6
lea ebx, [rcx + 0x7e]
mov r8d, ebx
lea rdx, [rsp + 0x44]
lea rcx, str.Service_Pack_1
call fcn.14006f1d0
test eax, eax
jne 0x1400175a3
lea ecx, [rbx - 0x7c]
jmp 0x1400176f9
mov r8, rbx
lea rdx, [rsp + 0x44]
lea rcx, str.Service_Pack_2
call fcn.14006f1d0
test eax, eax
jne 0x1400175c3
lea ecx, [rax + 4]
jmp 0x1400176f9
mov r8, rbx
lea rdx, [rsp + 0x44]
lea rcx, str.Service_Pack_3
call fcn.14006f1d0
neg eax
sbb ecx, ecx
and ecx, 0xfffffffd
add ecx, 5
jmp 0x1400176f9
cmp eax, 2
jne 0x140017672
lea ecx, [rax + 4]
mov dword [0x1400c31d4], ecx
jmp 0x140017678
mov ecx, 6
cmp dword [rsp + 0x34], ecx
jne 0x140017672
mov edx, dword [rsp + 0x38]
test edx, edx
jne 0x140017653
lea ebx, [rcx + 0x79]
mov r8d, ebx
lea rdx, [rsp + 0x44]
lea rcx, str.Service_Pack_1
call fcn.14006f1d0
test eax, eax
jne 0x140017630
lea ecx, [rbx - 0x77]
jmp 0x1400176f9
mov r8, rbx
lea rdx, [rsp + 0x44]
lea rcx, str.Service_Pack_2
call fcn.14006f1d0
neg eax
sbb ecx, ecx
and ecx, 0xfffffffe
add ecx, 9
jmp 0x1400176f9
mov eax, dword [0x1400c31d4]
mov ecx, 1
cmp edx, ecx
lea r8d, [rcx + 9]
cmove eax, r8d
mov ecx, eax
mov dword [0x1400c31d4], eax
jmp 0x140017678
mov ecx, dword [0x1400c31d4]
cmp ecx, 0xffffffff
je 0x140017685
cmp ecx, ebx
jne 0x14001771c
xor edx, edx
lea rcx, [rbp + 0x50]
mov r8d, 0x208
call fcn.140061fe0
mov edx, 0x104
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, [0x1400afe18]
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
and dword [rsp + 0x20], 0
lea r8, [rsp + 0x24]
and dword [rsp + 0x24], 0
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x50]
call fcn.140017154
test eax, eax
je 0x140017716
mov eax, dword [rsp + 0x20]
cmp eax, 0x60002
jne 0x1400176ed
mov ecx, 0xb
jmp 0x1400176f9
cmp eax, 0x60003
jne 0x140017701
mov ecx, 0xc
mov dword [0x1400c31d4], ecx
jmp 0x14001771c
cmp eax, 0xa0000
je 0x14001770f
cmp eax, 0x60004
jne 0x140017716
mov ecx, 0xd
jmp 0x1400176f9
mov ecx, dword [0x1400c31d4]
mov eax, ecx
mov rcx, qword [rbp + 0x260]
xor rcx, rsp
call fcn.14005ccc0
mov rbx, qword [rsp + 0x380]
add rsp, 0x370
pop rbp
ret
Function at 0x140017740
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x50
lea rcx, [0x1400afe18]
mov ebx, 0x20
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.GetNativeSystemInfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x20]
test rax, rax
je 0x140017776
call rax
jmp 0x14001777c
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [rsp + 0x20], 9
je 0x14001778c
cmp word [rsp + 0x20], 6
jne 0x140017791
mov ebx, 0x40
mov eax, ebx
add rsp, 0x50
pop rbx
ret