joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400527f4
Capabilities:
Get file version info

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rsi
push r14
sub rsp, 0x30
mov qword [r11 - 0x28], 0xfffffffffffffffe
mov r14, rdx
mov rbx, rcx
lea rax, vtable.NGUtils::AFileVersionInfo.0
mov qword [rcx], rax
lea rax, vtable.NGUtils::CFileVersionInfo.0
mov qword [rcx], rax
and dword [rcx + 0x10], 0
and qword [rcx + 0x18], 0
and qword [rcx + 0x20], 0
and qword [rcx + 8], 0
test rdx, rdx
je 0x1400528e6
and dword [rsp + 0x60], 0
lea rdx, [r11 + 0x18]
mov rcx, r14
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
mov dword [rsp + 0x68], esi
test eax, eax
je 0x1400528e6
mov ecx, esi
call fcn.1400ddae4
mov qword [rbx + 0x18], rax
jmp 0x14005287f
mov r9, qword [rbx + 0x18]
test r9, r9
je 0x1400528e6
mov r8d, esi
mov edx, dword [rsp + 0x60]
mov rcx, r14
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1400528e6
and dword [rsp + 0x58], 0
and dword [rsp + 0x68], 0
lea r8, [rbx + 0x20]
lea r9, [rsp + 0x58]
lea rdx, str.VarFileInfoTranslation
mov rcx, qword [rbx + 0x18]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1400528cc
mov eax, dword [rsp + 0x58]
shr eax, 2
mov dword [rbx + 0x10], eax
lea r8, [rbx + 8]
lea r9, [rsp + 0x68]
lea rdx, [0x1401d2bec]
mov rcx, qword [rbx + 0x18]
call sub.VERSION.dll_VerQueryValueW
nop
mov rax, rbx
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret

Function at 0x140055ee0
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x250
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140216b40]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rdx
mov rdi, rcx
xor esi, esi
mov eax, esi
test rdx, rdx
je 0x140055fa4
cmp word [rdx], si
je 0x140055fa4
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x140055f50
mov r8, rbx
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.14010411c
lea rcx, [rsp + 0x30]
call fcn.1400608c8
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140055e50
test rax, rax
jne 0x140055fa4
lea ecx, [rax + 0x50]
call fcn.1400dd9f8
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.140060cf4
nop
mov qword [rsp + 0x20], rax
test rax, rax
je 0x140055fa4
lea rcx, [rdi + 0x60]
lea rdx, [rsp + 0x20]
call fcn.14005a0f8
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400dd830
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140057a7c
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140216b40]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r14, rdx
mov rdi, rcx
xor r15d, r15d
mov esi, r15d
cmp dword [rcx + 0x358], r15d
jle 0x140057be5
cmp rdx, 0xffffffffffffffff
je 0x140057be5
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], r15
mov word [rbp - 0x30], r15w
lea rcx, [rbp - 0x30]
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], 7
test r8b, r8b
je 0x140057b13
lea r8d, [r15 + 0x27]
lea rdx, str.____Queued_Lines_End__user_flush______r_n
call fcn.14003c268
nop
lea rbx, [rdi + 0x338]
lea rdx, [rbp - 0x30]
mov rcx, rbx
call fcn.14005b410
nop
jmp 0x140057b3a
mov r8d, 0x1a
lea rdx, str.____Queued_Lines_End_____r_n
call fcn.14003c268
nop
lea rbx, [rdi + 0x338]
lea rdx, [rbp - 0x30]
mov rcx, rbx
call fcn.14005b410
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x30]
call fcn.14003d54c
jmp 0x140057bd8
lea rdx, [rbp - 0x30]
mov rcx, rbx
call fcn.14005c9bc
mov rdx, rax
mov rax, qword [rax]
test rax, rax
jne 0x140057b69
mov rax, r15
jmp 0x140057b6c
mov rax, qword [rax]
mov rcx, qword [rax + 0x10]
dec rcx
and rcx, qword [rdx + 0x10]
mov rax, qword [rax + 8]
mov rdx, qword [rax + rcx*8]
mov rax, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 8
jb 0x140057b8d
mov rdx, qword [rdx]
lea r8d, [rax + rax]
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140057baa
add esi, dword [rbp - 0x40]
mov rcx, qword [rbx + 0x10]
dec rcx
and rcx, qword [rbx + 0x18]
mov rax, qword [rbx + 8]
xor r8d, r8d
mov dl, 1
mov rcx, qword [rax + rcx*8]
call fcn.14003d54c
sub qword [rbx + 0x20], 1
jne 0x140057bd4
mov qword [rbx + 0x18], r15
jmp 0x140057bd8
inc qword [rbx + 0x18]
cmp qword [rdi + 0x358], r15
ja 0x140057b4d
mov eax, esi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400dd830
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400589dc
Capabilities:
Print debug messages

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x68
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov rax, qword [0x140216b40]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
mov r14, qword [rbp + 0x58]
xor r15d, r15d
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], r15
mov word [rbp - 0x30], r15w
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov edx, dword [rdx + 0x10]
call fcn.1400586d0
bt ebx, 0x1b
jb 0x140058a4b
test dword [rdi + 0x10], 0x80000
je 0x140058a90
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rsi
call fcn.14005748c
cmp qword [rax + 0x18], 8
jb 0x140058a71
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [0x1401d3368]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x140058aa9
add rcx, 8
cmp qword [rcx + 0x18], 8
jb 0x140058ab0
mov rcx, qword [rcx]
jmp 0x140058ab0
lea rcx, [0x1401cc718]
call fcn.14016bfdc
test rax, rax
jne 0x140058ac3
cmp qword [rsi + 0x360], r15
je 0x140058adf
lea r8, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae r8, qword [rbp - 0x30]
mov r9, r14
mov rdx, rdi
mov rcx, rsi
call fcn.140057c98
test dword [rdi + 0x10], 0x10000000
je 0x140058af6
lea rcx, [rsi + 0xb8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x30]
call fcn.14003d54c
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400dd830
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x140058b20
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x840
mov rax, qword [0x140216b40]
xor rax, rsp
mov qword [rsp + 0x830], rax
mov rsi, rcx
mov r8d, edx
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
xor ebx, ebx
mov rdi, rax
test rax, rax
je 0x140058bb8
lea r9, [rsp + 0x20]
mov r8d, 0x800
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x140058baf
test dword [rsp + 0x20], 0xfffffff8
jbe 0x140058baf
mov ecx, ebx
lea rdx, [rsi + 0x110]
mov r8d, 0x104
mov rcx, qword [rsp + rcx*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [rsp + 0x20]
inc ebx
shr eax, 3
cmp ebx, eax
jb 0x140058b88
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x830]
xor rcx, rsp
call fcn.1400dd830
lea r11, [rsp + 0x840]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14005e084
Capabilities:
Check mutex on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp - 0x39], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140216b40]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rbx, rcx
mov qword [rbp - 0x31], rcx
xor esi, esi
mov qword [rbp + 0xf], rsi
mov qword [rbp + 0x17], rsi
lea r14d, [rsi + 7]
mov qword [rbp + 0x17], r14
mov qword [rbp + 0xf], rsi
mov word [rbp - 1], si
cmp qword [rcx + 0x10], rsi
jne 0x14005e176
mov qword [rbp - 0x11], rsi
mov qword [rbp - 9], rsi
mov qword [rbp - 9], r14
mov qword [rbp - 0x11], rsi
mov word [rbp - 0x21], si
lea rdx, [rbp - 1]
lea rcx, str.ExtMonitor
call fcn.140060bcc
lea r8, str.Lock
lea rdx, [rbp - 1]
lea rcx, [rbp + 0x1f]
call fcn.14005f714
mov rdi, rax
lea rax, [rbp - 0x21]
cmp rax, rdi
je 0x14005e13e
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x21]
call fcn.14003d54c
mov rdx, rdi
lea rcx, [rbp - 0x21]
call fcn.14003d348
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x1f]
call fcn.14003d54c
lea r8, [rbp - 0x21]
cmp qword [rbp - 9], 8
cmovae r8, qword [rbp - 0x21]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx + 0x10], rax
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x21]
call fcn.14003d54c
mov edx, 0x32
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14005e27d
lea r8, str.MappedFile
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x21]
call fcn.14005f714
nop
lea rax, [rbp - 0x21]
cmp qword [rbp - 9], 8
cmovae rax, qword [rbp - 0x21]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x70
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 4]
or rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rbx + 8], rax
test rax, rax
je 0x14005e264
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, esi
cmp eax, 0xb7
setne dil
mov qword [rsp + 0x20], 0x70
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf001f
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 0x18], rax
test rax, rax
je 0x14005e264
test edi, edi
je 0x14005e251
mov qword [rbp - 0x29], rax
mov dword [rax + 8], esi
lea rcx, vtable.NGLogging::CExtMonitorSettings.0
mov qword [rax], rcx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rsi
mov byte [rax + 0x20], sil
mov qword [rax + 0x40], r14
mov qword [rax + 0x38], rsi
mov word [rax + 0x28], si
mov qword [rax + 0x60], r14
mov qword [rax + 0x58], rsi
mov word [rax + 0x48], si
mov dword [rax + 0x68], esi
mov rax, qword [rbx + 0x18]
lea rcx, [rax + 8]
neg rax
sbb rdx, rdx
and rdx, rcx
inc dword [rdx]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x21]
call fcn.14003d54c
mov rbx, qword [rbx + 0x18]
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 1]
call fcn.14003d54c
mov rax, rbx
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.1400dd830
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140060984
Capabilities:
Query or enumerate registry value

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

Function at 0x1400609d8
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
lea rax, [r11 + 0x20]
mov r15, r8
xor ebx, ebx
mov qword [r11 - 0x30], rax
lea r9, [r11 - 0x28]
mov qword [r11 - 0x38], rbx
xor r8d, r8d
mov dword [rsp + 0x78], ebx
mov rbp, rdx
mov r14, rcx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140060a97
cmp dword [rsp + 0x30], 1
jne 0x140060a97
mov ecx, dword [rsp + 0x78]
lea eax, [rbx + 2]
shr ecx, 1
lea rsi, [rbx - 1]
inc ecx
mul rcx
cmovo rax, rsi
mov rcx, rax
call fcn.1400ddae4
mov rdi, rax
test rax, rax
je 0x140060a97
lea rax, [rsp + 0x78]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
mov rdx, rbp
mov qword [rsp + 0x20], rdi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140060a8f
cmp word [rdi], bx
je 0x140060a81
inc rsi
cmp word [rdi + rsi*2], bx
jne 0x140060a75
mov rbx, rsi
mov r8, rbx
mov rdx, rdi
mov rcx, r15
call fcn.14003c268
mov rcx, rdi
call fcn.1400dce58
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x140061f20
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x140216b40]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
mov dword [rsp + 0x20], VarUI4FromDisp
mov r8d, VarUI4FromDisp
lea rcx, [rsp + 0x24]
call fcn.1400e0460
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140061f83
cmp dword [rsp + 0x24], 6
jb 0x140061f83
mov al, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400dd830
add rsp, 0x158
ret
xor al, al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400dd830
add rsp, 0x158
ret
Function at 0x1400639f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
mov r12, r9
mov r13, r8
mov rbx, rdx
mov r14, rcx
call fcn.14006fdf0
xor edi, edi
mov rdx, rbx
mov rcx, r14
lea r8d, [rdi + 5]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x140063b09
mov r8d, 0xf0
mov qword [rsp + 0x68], r15
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r15d, edi
test rax, rax
je 0x140063a67
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r15, rax
mov rdx, rsi
mov qword [rsp + 0x60], rbp
mov rcx, r14
mov ebx, edi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140063aeb
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x140063aeb
mov rdx, r15
mov rcx, rax
call fcn.14006e9e0
mov rsi, rax
mov r9, r12
mov rax, qword [rsp + 0x80]
mov rdx, rsi
mov r8, r13
mov qword [rsp + 0x20], rax
mov rcx, r14
call qword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov rdi, rax
test rax, rax
jne 0x140063acd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp rsi, rbp
je 0x140063af3
test rsi, rsi
je 0x140063af3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x140063af3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r15, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
test ebx, ebx
je 0x140063b09
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x14006daf0
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rdi, rcx
mov edx, 0x425
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov dword [rdi + 0x4d0], 1
lea rdx, [rsp + 0x50]
mov r12, qword [rdi + 0x4e8]
mov rcx, rdi
sub r12, qword [rdi + 0x4e0]
sar r12, 4
mov dword [rsp + 0x50], 0x41e
call fcn.140068c80
mov r15, rax
lea rcx, [rax + 5]
cmp r12, rcx
jbe 0x14006dbbd
lea rbx, [rax + 1]
lea rbp, [rax + 6]
cmp rbx, rbp
jae 0x14006dbbd
mov rsi, rbx
mov r14, rbx
sub rsi, rax
dec rsi
shl r14, 4
mov r8, qword [rdi + 0x4e0]
mov rax, qword [rdi + 0x4e8]
sub rax, r8
sar rax, 4
cmp rax, rbx
jbe 0x14006dc01
mov r8, qword [r14 + r8]
lea edx, [rsi + 0x41e]
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_SetDlgItemTextW]
inc rbx
add r14, 0x10
inc rsi
cmp rbx, rbp
jb 0x14006db80
lea rax, [r15 + 6]
cmp r12, rax
jne 0x14006dbea
mov rcx, qword [rdi + 8]
mov edx, 0x424
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov dword [rdi + 0x4d4], 0
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
lea rcx, str.invalid_vector_T__subscript
call fcn.1400dcdb0
int3
Function at 0x140072b10
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x40
lea rsi, [rcx + 0x208]
mov rbx, rcx
mov rcx, rsi
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rbx, rbx
je 0x140072bbe
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x140072bb5
mov rcx, qword [rdi]
call qword [sym.imp.OLEAUT32.dll_VariantInit]
mov rdx, qword [rdi]
lea r9, [rsp + 0x58]
mov rcx, rbx
mov qword [rsp + 0x20], 0
lea r8d, [rax + rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rdi]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140072d70
Capabilities:
Check os version

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x4a8]
sub rsp, 0x5a0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x140216b40]
xor rax, rsp
mov qword [rbp + 0x490], rax
mov rbx, rdx
mov qword [rsp + 0x40], rdx
xor eax, eax
mov dword [rsp + 0x30], eax
mov qword [rdx], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x50], VarUI4FromDisp
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140072eec
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x140072e64
cmp eax, 2
je 0x140072df2
lea r8, str.Very_New_Version
jmp 0x140072e6b
mov eax, dword [rsp + 0x58]
test eax, eax
jne 0x140072e28
mov eax, dword [rsp + 0x54]
cmp eax, 4
jne 0x140072e0c
lea r8, str.Windows_NT_4.0
jmp 0x140072e6b
cmp eax, 5
jne 0x140072e1a
lea r8, str.Windows_NT_4.0
jmp 0x140072e6b
cmp eax, 6
jne 0x140072e5b
lea r8, str.Windows_Vista
jmp 0x140072e6b
cmp eax, 1
jne 0x140072e4d
mov eax, dword [rsp + 0x54]
cmp eax, 5
jne 0x140072e3f
lea r8, str.Windows_XP
jmp 0x140072e6b
cmp eax, 6
jne 0x140072e5b
lea r8, str.Windows_7
jmp 0x140072e6b
cmp eax, 2
jne 0x140072e5b
lea r8, str.Windows_Server_2003
jmp 0x140072e6b
lea r8, str.Unknown
jmp 0x140072e6b
lea r8, str.XP_Older
mov edx, 0x104
lea rcx, [rbp + 0x70]
call fcn.14010411c
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x58]
mov r8d, dword [rsp + 0x54]
lea rdx, str.__d._d__Build__ld___s
lea rcx, [rbp + 0x280]
call fcn.140070080
lea r8, [rbp + 0x280]
mov edx, 0x104
lea rcx, [rbp + 0x70]
call fcn.140104030
mov rcx, qword [rbx]
lea rax, [rbp + 0x70]
cmp rax, rcx
je 0x140072f1d
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
lea rcx, [rbp + 0x70]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
jne 0x140072f1d
mov ecx, 0x8007000e
call fcn.14004a980
int3
mov rcx, qword [rbx]
lea rdi, [0x140187250]
cmp rdi, rcx
je 0x140072f1d
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
jne 0x140072f1d
mov ecx, 0x8007000e
call fcn.14004a980
int3
mov rax, rbx
mov rcx, qword [rbp + 0x490]
xor rcx, rsp
call fcn.1400dd830
lea r11, [rsp + 0x5a0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140081460
Capabilities:
Delete file
Get common file path

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x260
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x140216b40]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rsi, rdx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x28], 0
lea rdx, [rsp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
call fcn.14004b618
mov rcx, rax
test rax, rax
jne 0x1400814ca
mov ecx, 0x80004005
call fcn.14004a980
int3
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
lea rcx, [rsp + 0x40]
lea rax, [rsp + 0x40]
or rdi, 0xffffffffffffffff
test rax, 0xffffffffffff0000
jne 0x140081512
movzx ebp, cx
xor edx, edx
mov ecx, ebp
call fcn.14004ae14
test rax, rax
je 0x140081541
mov r8d, ebp
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14004f058
jmp 0x14008153c
lea rcx, [rsp + 0x40]
mov rax, rdi
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140081520
mov r8d, eax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.14004edac
mov rbx, qword [rsp + 0x20]
call fcn.14004b618
mov rcx, rax
test rax, rax
jne 0x140081559
mov ecx, 0x80004005
call fcn.14004a980
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsi], rax
mov dword [rsp + 0x28], 1
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, [0x140189f24]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1400815e1
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rsp + 0x40]
mov rax, rdi
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400815a0
mov r8d, eax
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14004e8f8
mov rcx, rsi
call fcn.14004e4bc
mov rcx, rsi
call fcn.14004e5d4
lea r8, str..html
lea rdx, str..tmp
mov rcx, rsi
call fcn.14004db8c
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1400815f9
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov rax, rsi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400dd830
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret