joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140185e90
Capabilities:
Create directory
Get common file path

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xc8
mov qword [rsp + 0xb8], 0xfffffffffffffffe
mov dword [rsp + 0x50], 0
lea rdx, [0x14042f270]
lea rcx, [rsp + 0x38]
call fcn.1400021f0
nop
lea rdx, [0x14042f270]
lea rcx, [rsp + 0x40]
call fcn.1400021f0
nop
mov qword [rsp + 0x48], 0
lea r8, [rsp + 0x48]
mov edx, 0x23
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.140002360
mov qword [rsp + 0x58], rax
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.1400023a0
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov edx, 0xffffffff
lea rcx, [rsp + 0x40]
call fcn.140001e20
mov rax, qword [rsp + 0xd0]
add rax, 0x50
xor r8d, r8d
lea rdx, [0x14033c0b0]
mov rcx, rax
call fcn.140053110
cmp eax, 0xffffffff
je 0x140185f95
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [0x14033c0c0]
mov qword [rsp + 0x20], rax
lea r9, [0x14033c0e0]
mov r8, qword [rsp + 0x40]
lea rdx, str._s_s_sLanguage_s
lea rcx, [rsp + 0x38]
call fcn.14001bdb0
jmp 0x140185fcf
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [0x14033c128]
mov qword [rsp + 0x20], rax
lea r9, [0x14033c148]
mov r8, qword [rsp + 0x40]
lea rdx, str._s_s_sLanguage_s.xml
lea rcx, [rsp + 0x38]
call fcn.14001bdb0
lea rdx, [0x14042f270]
lea rcx, [rsp + 0x30]
call fcn.1400021f0
nop
lea r9, [0x14033c198]
mov r8, qword [rsp + 0x40]
lea rdx, [0x14033c1b0]
lea rcx, [rsp + 0x30]
call fcn.14001bdb0
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rax, [0x14033c1c0]
mov qword [rsp + 0x20], rax
lea r9, [0x14033c1e0]
mov r8, qword [rsp + 0x40]
lea rdx, str._s_s_s
lea rcx, [rsp + 0x30]
call fcn.14001bdb0
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rax, str.Language
mov qword [rsp + 0x28], rax
lea rax, [0x14033c228]
mov qword [rsp + 0x20], rax
lea r9, [0x14033c248]
mov r8, qword [rsp + 0x40]
lea rdx, str._s_s_s_s
lea rcx, [rsp + 0x30]
call fcn.14001bdb0
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rax, qword [rsp + 0x38]
sub rax, 0x18
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x90]
call fcn.1400026b0
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
add rax, 0x18
mov rcx, qword [rsp + 0xd8]
mov qword [rcx], rax
mov eax, dword [rsp + 0x50]
or eax, 1
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x30]
call fcn.140203610
nop
lea rcx, [rsp + 0x40]
call fcn.140203610
nop
lea rcx, [rsp + 0x38]
call fcn.140203610
mov rax, qword [rsp + 0xd8]
add rsp, 0xc8
ret
Function at 0x140186100
Capabilities:
Get common file path
Get startup folder

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov qword [rsp + 0xa8], 0xfffffffffffffffe
mov dword [rsp + 0x48], 0
lea rdx, [0x14042f270]
lea rcx, [rsp + 0x38]
call fcn.1400021f0
nop
mov qword [rsp + 0x40], 0
lea r8, [rsp + 0x40]
mov edx, 0x23
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edx, 0x104
lea rcx, [rsp + 0x38]
call fcn.140002360
mov qword [rsp + 0x60], rax
mov edx, 0x104
lea rcx, [rsp + 0x38]
call fcn.1400023a0
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov edx, 0xffffffff
lea rcx, [rsp + 0x38]
call fcn.140001e20
lea rdx, [0x14042f270]
lea rcx, [rsp + 0x30]
call fcn.1400021f0
nop
lea rax, [0x14033c278]
mov qword [rsp + 0x20], rax
lea r9, str.ReviverSoft
mov r8, qword [rsp + 0x38]
lea rdx, str._s_s_sLanguage_
lea rcx, [rsp + 0x30]
call fcn.14001bdb0
mov rax, qword [rsp + 0x30]
sub rax, 0x18
mov qword [rsp + 0x88], rax
mov rcx, qword [rsp + 0x88]
call fcn.1400026b0
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
add rax, 0x18
mov rcx, qword [rsp + 0xc8]
mov qword [rcx], rax
mov eax, dword [rsp + 0x48]
or eax, 1
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0x30]
call fcn.140203610
nop
lea rcx, [rsp + 0x38]
call fcn.140203610
mov rax, qword [rsp + 0xc8]
add rsp, 0xb8
ret

Function at 0x140187630
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x20], 0
cmp dword [rsp + 0x24], 0
jne 0x140187673
mov rcx, qword [rsp + 0x80]
call fcn.140001da0
jmp 0x1401876bb
mov edx, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x80]
call fcn.140002360
mov qword [rsp + 0x28], rax
mov r8d, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x80]
call fcn.140001e20
mov dword [rsp + 0x20], 1
mov eax, dword [rsp + 0x20]
add rsp, 0x78
ret

Function at 0x140189990
Capabilities:
Delete file

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x148
movsxd rax, dword [rsp + 0x168]
mov rcx, qword [rsp + 0x150]
add rcx, 0x70
mov r8, rax
mov rdx, qword [rsp + 0x158]
call fcn.14006a9c0
mov rax, qword [rsp + 0x150]
sub rax, 0x40
mov r8d, dword [rsp + 0x178]
mov edx, dword [rsp + 0x170]
mov rcx, rax
call fcn.140189a50
mov rax, qword [rsp + 0x150]
movzx eax, byte [rax + 0x198]
test eax, eax
je 0x140189a42
mov rax, qword [rsp + 0x150]
add rax, 0x70
mov rcx, rax
call fcn.14006b070
mov rax, qword [rsp + 0x150]
mov rax, qword [rax + 0x188]
mov qword [rsp + 0x130], rax
mov rcx, qword [rsp + 0x130]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor al, al
jmp 0x140189a44
mov al, 1
add rsp, 0x148
ret
Function at 0x14018bf90
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
add rax, 0x10
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8003
mov rcx, qword [0x140440d58]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
add rsp, 0x38
ret

Function at 0x14018bfd0
Capabilities:
Hash data via wincrypt

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor r9d, r9d
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
add rsp, 0x28
ret
Function at 0x140191350
Capabilities:
Capture screenshot

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xe8
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.USER32.dll_GetDC]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], 0
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0xf0]
add rax, 0x58
mov qword [rsp + 0x70], rax
xor eax, eax
cmp eax, 1
je 0x1401913e1
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
je 0x1401913e1
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
cmp qword [rax], rcx
je 0x1401913e1
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
mov qword [rax], rcx
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x90], rax
mov edx, 0xa
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [rsp + 0x9c], eax
mov edx, 8
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [rsp + 0x98], eax
mov r8d, dword [rsp + 0x9c]
mov edx, dword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xa0], rax
mov rdx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rax + 0x58]
call qword [sym.imp.GDI32.dll_SelectObject]
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0xb8], rax
mov edx, 0xa
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [rsp + 0xc4], eax
mov edx, 8
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [rsp + 0xc0], eax
mov dword [rsp + 0x40], 0xcc0020
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0xc4]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0xc0]
xor r8d, r8d
xor edx, edx
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rax + 0x58]
call qword [sym.imp.GDI32.dll_BitBlt]
xor eax, eax
cmp eax, 1
je 0x140191570
cmp qword [rsp + 0x50], 0
je 0x140191570
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov dword [rsp + 0xc8], eax
cmp dword [rsp + 0xc8], 0
je 0x140191570
mov qword [rsp + 0x50], 0
xor eax, eax
cmp eax, 1
je 0x1401915a3
cmp qword [rsp + 0x58], 0
je 0x1401915a3
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0x58], 0
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.GDI32.dll_DeleteDC]
add rsp, 0xe8
ret
Function at 0x140194cf0
Capabilities:
Get memory capacity

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov rax, qword [0x140437340]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0x30], 0x40
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0x40000000
jae 0x140194dac
mov rax, qword [rsp + 0x90]
pxor xmm0, xmm0
cvtsi2sd xmm0, rax
test rax, rax
jge 0x140194d5a
addsd xmm0, qword [0x140333f78]
divsd xmm0, qword [0x140338178]
movsd qword [rsp + 0x98], xmm0
movsd xmm2, qword [rsp + 0x98]
movq r8, xmm2
lea rdx, str._.0f
lea rcx, [rsp + 0x70]
call fcn.140251fb4
mov rax, qword [rsp + 0xc0]
add rax, 0x20
lea r8, [rsp + 0x70]
lea rdx, str._s_MB
mov rcx, rax
call fcn.14001bdb0
jmp 0x140194e1a
mov rax, qword [rsp + 0x90]
pxor xmm0, xmm0
cvtsi2sd xmm0, rax
test rax, rax
jge 0x140194dca
addsd xmm0, qword [0x140333f78]
divsd xmm0, qword [0x14033e848]
movsd qword [rsp + 0xa0], xmm0
movsd xmm2, qword [rsp + 0xa0]
movq r8, xmm2
lea rdx, str._.1f
lea rcx, [rsp + 0x70]
call fcn.140251fb4
mov rax, qword [rsp + 0xc0]
add rax, 0x20
lea r8, [rsp + 0x70]
lea rdx, str._s_GB
mov rcx, rax
call fcn.14001bdb0
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140250fd0
add rsp, 0xb8
ret
Function at 0x140195520
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2e0
mov rax, qword [0x140437340]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x40], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.HARDWAREDESCRIPTIONSystemCentralProcessor0
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x140195646
mov dword [rsp + 0x260], 0x100
lea rax, [rsp + 0x260]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.ProcessorNameString
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rax, qword [rsp + 0x2f0]
add rax, 0x10
mov qword [rsp + 0x2c8], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x268], rax
cmp qword [rsp + 0x268], 0
jne 0x140195608
mov dword [rsp + 0x270], 0
jmp 0x14019562c
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, qword [rsp + 0x268]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rax, rcx
mov dword [rsp + 0x270], eax
mov r8d, dword [rsp + 0x270]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x2c8]
call fcn.140002560
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140250fd0
add rsp, 0x2e0
pop rdi
ret
Function at 0x1401a6080
Capabilities:
Capture screenshot

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x70
xor eax, eax
mov rdi, rcx
mov rcx, qword [rcx]
mov r13, rdx
xor esi, esi
lea r8, [r11 - 0x38]
lea edx, [rsi + 0x20]
xor ebp, ebp
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
call qword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x1401a60d0
mov esi, dword [rsp + 0x54]
mov ebp, dword [rsp + 0x58]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rcx, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rdx, qword [rdi]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, rbx
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov r8d, ebp
mov edx, esi
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov rcx, qword [r13]
mov r12, rax
test rcx, rcx
je 0x1401a6121
cmp rcx, rax
je 0x1401a6121
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rdx, r12
mov rcx, rdi
mov qword [r13], r12
call qword [sym.imp.GDI32.dll_SelectObject]
mov dword [rsp + 0x40], 0xcc0020
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov r9d, esi
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebp
call qword [sym.imp.GDI32.dll_BitBlt]
cmp eax, 1
sete sil
test rdi, rdi
je 0x1401a6178
mov rcx, rdi
call qword [sym.imp.GDI32.dll_DeleteDC]
test rbx, rbx
je 0x1401a6186
mov rcx, rbx
call qword [sym.imp.GDI32.dll_DeleteDC]
lea r11, [rsp + 0x70]
movzx eax, sil
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x1401a61b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov rsi, r8
mov r8, qword [r8]
movzx edx, dx
mov r12, r9
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
jne 0x1401a6208
mov rdx, qword [rsi]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1401a61f8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov rdx, rax
mov rcx, rdi
mov qword [rsp + 0x50], rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test eax, eax
je 0x1401a623c
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
jne 0x1401a6261
mov rdx, qword [rsi]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1401a625a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x1401a633d
mov rdx, rbx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x1401a631d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x1401a6314
mov r8, rbx
mov rdx, rbp
mov rcx, rax
call fcn.140250b70
lea r8, [rsp + 0x60]
xor ebp, ebp
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x60], rbp
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x1401a630b
lea ecx, [rbp + 0x18]
call sub.gdiplus.dll_GdipAlloc
mov rbx, rax
test rax, rax
je 0x1401a62f2
mov rcx, qword [rsp + 0x60]
lea rax, vtable.Gdiplus::Bitmap.0
lea rdx, [rsp + 0x20]
mov qword [rbx], rax
mov qword [rsp + 0x20], rbp
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [rbx + 0x10], eax
mov rax, qword [rsp + 0x20]
mov qword [rbx + 8], rax
jmp 0x1401a62f5
mov rbx, rbp
mov rdx, rbx
mov rcx, r12
call fcn.140199ce0
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rdx, qword [rsi]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1401a633b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov al, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x1401a6350
Capabilities:
Get system information on windows

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x70
xor eax, eax
lea rcx, [r11 - 0x38]
mov rdi, rdx
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x18], rax
mov qword [r11 - 0x10], rax
mov dword [rsp + 0x44], 0x30
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea r9, [rsp + 0x90]
lea r8, [rsp + 0x98]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x34]
call fcn.1401eff10
lea rcx, [0x14042f270]
test al, al
mov rax, qword [0x14042f270]
jne 0x1401a63cb
call qword [rax + 0x18]
add rax, 0x18
mov qword [rdi], rax
mov rax, rdi
add rsp, 0x70
pop rdi
ret
mov qword [rsp + 0x80], rbx
call qword [rax + 0x18]
movzx ebx, word [rsp + 0x90]
add rax, 0x18
mov qword [rsp + 0x38], rax
call fcn.1401afc00
mov r9d, dword [rsp + 0x30]
mov r8d, dword [rsp + 0x34]
test al, al
mov eax, dword [rsp + 0x98]
lea rcx, str.NTamd64._d._d._d._d
lea rdx, str.NTx86._d._d._d._d
mov dword [rsp + 0x28], ebx
cmovne rdx, rcx
lea rcx, [rsp + 0x38]
mov dword [rsp + 0x20], eax
call fcn.14001bdb0
mov rbx, qword [rsp + 0x38]
lea rcx, [rbx - 0x18]
call fcn.1400026b0
add rax, 0x18
mov qword [rdi], rax
or eax, 0xffffffff
lock xadd dword [rbx - 8], eax
dec eax
test eax, eax
jg 0x1401a6454
mov rcx, qword [rbx - 0x18]
lea rdx, [rbx - 0x18]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x80]
mov rax, rdi
add rsp, 0x70
pop rdi
ret

Function at 0x1401a7f50
Capabilities:
Get token privileges

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov rbx, rcx
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x1401a7fd2
mov dword [rsp + 0x50], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 3]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov r11d, dword [rsp + 0x50]
test r11d, r11d
je 0x1401a7fd2
mov edx, r11d
lea rcx, [rbx + 0x10]
call fcn.14019de50
nop
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x50]
mov r8, qword [rbx + 0x10]
mov edx, 3
mov rcx, qword [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
setne al
jmp 0x1401a7fd4
xor al, al
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1401aaf00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
add rsp, 0x28
ret

Function at 0x1401aaf20
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x40
mov rcx, rdx
mov edx, 1
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov r8d, edx
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x1401aaf6a
call fcn.1400072d0
test eax, eax
je 0x1401aaf6d
or rax, 0xffffffffffffffff
add rsp, 0x40
pop rbx
ret
mov rbx, rax
lea rdx, [rsp + 0x64]
mov rcx, rbx
mov qword [rsp + 0x50], rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x60], eax
cmp eax, 0xffffffff
jne 0x1401aaf8e
call fcn.1400072d0
mov rdi, qword [rsp + 0x60]
test rbx, rbx
je 0x1401aafa1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
mov rdi, qword [rsp + 0x50]
add rsp, 0x40
pop rbx
ret

Function at 0x1401aafb0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
mov edx, 2
mov rcx, r8
xor ebx, ebx
xor r9d, r9d
mov r8d, edx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x1401aaff9
call fcn.1400072d0
test eax, eax
jne 0x1401ab05d
jmp 0x1401aaffc
mov rbx, rax
lea r8, [rsp + 0x6c]
mov r9d, 2
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x68], 0
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1401ab025
call fcn.1400072d0
mov rdx, qword [rdi]
lea r9, [rsp + 0x68]
mov rcx, rbx
mov r8d, dword [rdx - 0x10]
mov qword [rsp + 0x20], 0
add r8d, r8d
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1401ab04f
call fcn.1400072d0
test rbx, rbx
je 0x1401ab05d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1401ab070
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
movsxd rcx, dword [rdx]
mov r12, rdx
xor ebp, ebp
mov eax, 2
mov r14, 0xffffffffffffffff
mov rdi, r9
mov r13, r8
mov esi, ebp
mul rcx
cmovo rax, r14
mov rcx, rax
call fcn.140218cbc
mov edx, 1
mov qword [rsp + 0x30], rbp
mov r8d, edx
xor r9d, r9d
mov rcx, rdi
mov dword [rsp + 0x28], 0x80
mov rbx, rax
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, r14
jne 0x1401ab0ed
call fcn.1400072d0
test eax, eax
jne 0x1401ab151
jmp 0x1401ab0f0
mov rsi, rax
mov r8d, dword [r12]
lea r9, [rsp + 0x78]
mov rdx, rbx
mov rcx, rsi
mov dword [rsp + 0x78], ebp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1401ab117
call fcn.1400072d0
test rbx, rbx
je 0x1401ab12d
xor eax, eax
mov rcx, r14
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea ebp, [rcx - 1]
mov r8d, ebp
mov rdx, rbx
mov rcx, r13
call fcn.140002560
mov rcx, rbx
call fcn.140250354
test rsi, rsi
je 0x1401ab151
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret