joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400bded0
Capabilities:
Create thread
Resume thread

Disassembly:
push rdi
sub rsp, 0x200
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x220], rbx
mov rax, qword [0x1402ba4e0]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
mov rbx, rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rdx
lea rax, [0x14022cd50]
mov qword [rcx], rax
add rcx, 0xc8
xor edx, edx
call fcn.1400a3e30
nop
lea rcx, [rbx + 0xf0]
xor edx, edx
call fcn.1400a3e30
nop
lea rcx, [rbx + 0x118]
xor edx, edx
call fcn.1400a3e30
nop
lea rcx, [rbx + 0x140]
xor edx, edx
call fcn.1400a3e30
nop
lea rcx, [rbx + 0x170]
call fcn.1401c3610
nop
mov r8d, 8
lea rdx, [rsp + 0x38]
lea rcx, [rbx + 0x170]
call fcn.1401c33d0
inc dword [0x1402c1f94]
xor edi, edi
mov qword [rbx + 0xc], rdi
mov qword [rbx + 0x14], rdi
mov qword [rbx + 0xa0], rdi
mov rax, qword [rsp + 0x38]
mov qword [rbx + 0xb0], rax
mov qword [rbx + 0xa8], rdi
mov qword [rbx + 0xb8], rdi
mov qword [rbx + 0x80], rdi
mov dword [rbx + 0x90], 5
mov dword [rbx + 0x94], 5
mov dword [rbx + 0x98], 5
mov dword [rbx + 8], edi
mov dword [rbx + 0x9c], edi
mov qword [rbx + 0x88], 1
mov dword [rbx + 0xc0], edi
mov qword [rbx + 0x168], rdi
lea rcx, [rbx + 0x1c]
xor edx, edx
lea r8d, [rdi + 0x64]
call fcn.14010da60
xor edx, edx
mov r8d, 0x104
lea rcx, [0x1402c1e90]
call fcn.14010da60
mov rcx, rbx
call fcn.1400b7880
test eax, eax
je 0x1400be0d8
mov ecx, 0x101
lea rdx, [rsp + 0x50]
call qword [0x1402c1fa8]
test eax, eax
jne 0x1400be0d8
movzx eax, word [rsp + 0x50]
cmp al, 1
jne 0x1400be0d8
shr ax, 8
cmp al, 1
jne 0x1400be0d8
mov dword [rsp + 0x30], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0xa8], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov r9, rbx
lea r8, [0x1400bdec0]
xor edx, edx
xor ecx, ecx
call fcn.14010f7a8
mov qword [rbx + 0xa0], rax
test rax, rax
je 0x1400be0ca
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
or edx, 0xffffffff
mov rcx, qword [rbx + 0xa8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400be0ca
mov rcx, rbx
call fcn.1400bd590
cmp dword [rax + 0x70], edi
je 0x1400be0ca
mov dword [rbx + 0x84], 1
mov rcx, qword [rbx + 0xa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, rbx
jmp 0x1400be0e2
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.14010d170
mov rbx, qword [rsp + 0x220]
add rsp, 0x200
pop rdi
ret
Function at 0x1400c2560
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
jne 0x1400c26a4
lea rcx, str.mapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rbx], rax
test rax, rax
je 0x1400c26af
lea rdx, str.MAPIInitialize
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.MAPILogonEx
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.MAPIUninitialize
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.MAPIAllocateBuffer
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.MAPIAllocateMore
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.MAPIFreeBuffer
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.MAPIAdminProfiles
mov qword [rbx + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.RTFSync
mov qword [rbx + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.WrapCompressedRTFStream
mov qword [rbx + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.HrGetOneProp
mov qword [rbx + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.HrSetOneProp
mov qword [rbx + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.HrQueryAllRows
mov qword [rbx + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.FreeProws
mov qword [rbx + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, [0x14022e740]
mov qword [rbx + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x70], rax
mov eax, 1
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
ret
Function at 0x1400c8d80
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1402ba4e0]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor ebx, ebx
lea rax, [0x14024d112]
mov rdi, rcx
lea r8, [rsp + 0x70]
lea edx, [rbx + 0x10]
mov r9d, reloc.OLEAUT32.dll_SetErrorInfo
mov ecx, 0x400
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea rdx, [rsp + 0x70]
movzx eax, byte [rdx]
test al, al
je 0x1400c8def
nop word [rax + rax]
cmp al, 0x3b
je 0x1400c8def
movzx eax, byte [rdx + 1]
inc rdx
test al, al
jne 0x1400c8de0
cmp byte [rdx], 0
lea rax, [rsp + 0x70]
sete r8b
cmp rdx, rax
jbe 0x1400c8e03
dec rdx
movsx eax, byte [rdx]
lea ecx, [rbx + rbx*4]
add rdx, 2
lea ebx, [rax + rcx*2 - 0x30]
test r8b, r8b
je 0x1400c8dd3
mov eax, 0x66666667
imul ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea ecx, [rdx + rdx*4]
add ecx, ecx
cmp ebx, ecx
je 0x1400c8e35
lea edx, [rbx + rbx*4]
add edx, edx
mov r9d, SafeArrayGetElement
mov dword [rsp + 0x38], edx
lea r8, [rsp + 0x58]
lea edx, [r9 - 5]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea r11, [rsp + 0x58]
lea r8, [rsp + 0x50]
mov r9d, 4
mov edx, 0x20001010
mov ecx, 0x400
mov qword [rsp + 0x48], r11
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea rax, [rsp + 0x140]
lea r9, [rsp + 0x30]
mov r8, rdi
xor edx, edx
mov ecx, 0x400
mov dword [rsp + 0x28], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetNumberFormatA]
lea rax, [rsp + 0x140]
lea r11, [rsp + 0x140]
sub rdi, rax
nop word [rax + rax]
movzx eax, byte [r11]
inc r11
mov byte [rdi + r11 - 1], al
test al, al
jne 0x1400c8ec0
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14010d170
mov rbx, qword [rsp + 0x278]
add rsp, 0x260
pop rdi
ret
Function at 0x1400cd710
Capabilities:
Query environment variable

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x480
mov rax, qword [0x1402ba4e0]
xor rax, rsp
mov qword [rsp + 0x470], rax
xor esi, esi
mov r10, rdx
mov rbx, rcx
mov rdi, r8
lea rcx, [0x1401eebdc]
mov edx, esi
nop word [rax + rax]
movzx eax, word [rdx + rcx]
add rdx, 2
mov word [rsp + rdx + 0x26e], ax
test ax, ax
jne 0x1400cd750
test r9d, r9d
mov eax, esi
mov qword [rbx + 0x214], rsi
sete al
mov dword [rbx + 0x21c], esi
mov dword [rbx + 0x220], eax
cmp dword [rbx + 0x210], esi
je 0x1400cd7a8
mov rcx, qword [rbx + 0x208]
lea r8, [rsp + 0x270]
mov r9d, 0xff
mov rdx, r10
call qword [sym.imp.USERENV.dll_ExpandEnvironmentStringsForUserW]
jmp 0x1400cd7bf
lea rdx, [rsp + 0x270]
mov r8d, 0xff
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rdx, [rsp + 0x270]
xor r8d, r8d
mov rcx, rbx
call fcn.1400cd2a0
cmp dword [rbx + 0x21c], esi
je 0x1400cd801
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x1400cd801
mov rcx, rax
mov qword [rdi], rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
jmp 0x1400cd806
mov eax, esi
mov qword [rdi], rsi
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14010d170
add rsp, 0x480
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400cea60
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
cmp dword [0x1402c2a08], 0
je 0x1400cea7e
xor eax, eax
cmp qword [0x1402c29f0], rax
setne al
add rsp, 0x28
ret
mov qword [rsp + 0x20], rbx
call fcn.1400cea00
lea rcx, str.USER32
mov dword [0x1402c2a0c], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
test rax, rax
je 0x1400ceb8c
lea rdx, [0x140230a00]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402c29d0], rax
test rax, rax
je 0x1400ceb8c
lea rdx, str.MonitorFromWindow
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402c29d8], rax
test rax, rax
je 0x1400ceb8c
lea rdx, str.MonitorFromRect
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402c29e0], rax
test rax, rax
je 0x1400ceb8c
lea rdx, str.MonitorFromPoint
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402c29e8], rax
test rax, rax
je 0x1400ceb8c
lea rdx, str.EnumDisplayMonitors
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402c29f8], rax
test rax, rax
je 0x1400ceb8c
lea rdx, str.GetMonitorInfoA
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402c29f0], rax
test rax, rax
je 0x1400ceb8c
lea rdx, str.EnumDisplayDevicesA
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402c2a00], rax
test rax, rax
je 0x1400ceb8c
mov rbx, qword [rsp + 0x20]
mov eax, 1
mov dword [0x1402c2a08], eax
add rsp, 0x28
ret
mov rbx, qword [rsp + 0x20]
xor eax, eax
mov dword [0x1402c2a08], 1
mov qword [0x1402c29d0], rax
mov qword [0x1402c29d8], rax
mov qword [0x1402c29e0], rax
mov qword [0x1402c29e8], rax
mov qword [0x1402c29f0], rax
mov qword [0x1402c29f8], rax
mov qword [0x1402c2a00], rax
add rsp, 0x28
ret
Function at 0x1400cf280
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x1400cf317
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x30], rdi
xor eax, eax
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
dec rcx
je 0x1400cf30c
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
mov rdx, rcx
lea ecx, [rax + 0x42]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
sub rax, rbx
movzx ecx, byte [rbx]
inc rbx
mov byte [rax + rbx - 1], cl
test cl, cl
jne 0x1400cf2d1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rdx, rdi
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x1400cf730
Capabilities:
Create directory
Get common file path
Set current directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x370
mov rax, qword [0x1402ba4e0]
xor rax, rsp
mov qword [rsp + 0x360], rax
mov rsi, rcx
lea rdx, [rsp + 0x250]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x104
call fcn.14010da60
lea rcx, [rsp + 0x140]
xor edx, edx
mov r8d, 0x104
call fcn.14010da60
lea rcx, [rsp + 0x30]
mov rdx, rsi
sub rcx, rsi
nop dword [rax]
movzx eax, byte [rdx]
inc rdx
mov byte [rcx + rdx - 1], al
test al, al
jne 0x1400cf7a0
lea rcx, [rsp + 0x30]
mov edx, 0x5c
call fcn.140110904
lea rbx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
test rax, rax
je 0x1400cf859
mov byte [rax], 0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x140]
repne scasb al, byte [rdi]
xor ecx, ecx
nop word [rax + rax]
movzx eax, byte [rbx + rcx]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x1400cf7f0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x140]
repne scasb al, byte [rdi]
movzx eax, word [0x1401eb638]
lea rcx, [rsp + 0x140]
xor edx, edx
mov word [rdi - 1], ax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea rcx, [rsp + 0x20]
call fcn.1400c8bf0
mov rbx, qword [rsp + 0x20]
cmp byte [rbx], 0
je 0x1400cf859
mov edx, 0x5c
mov rcx, rbx
call fcn.140110904
mov qword [rsp + 0x20], rax
test rax, rax
jne 0x1400cf7d0
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea rcx, [rsp + 0x250]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, edi
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.14010d170
lea r11, [rsp + 0x370]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400cf920
Capabilities:
Delete file
Enumerate files on windows
Get common file path
Set current directory

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x390
mov rax, qword [0x1402ba4e0]
xor rax, rsp
mov qword [rsp + 0x380], rax
lea rdx, [rsp + 0x160]
xor ebx, ebx
mov rdi, rcx
sub rdx, rcx
nop
movzx eax, byte [rcx]
inc rcx
mov byte [rdx + rcx - 1], al
test al, al
jne 0x1400cf950
lea rcx, [rsp + 0x160]
mov edx, 0x5c
call fcn.14010db4c
test rax, rax
je 0x1400cf977
mov byte [rax], bl
lea rdx, [rsp + 0x270]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400cf9f3
mov qword [rsp + 0x3a8], rsi
mov esi, 1
nop dword [rax]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rdx, [rsp + 0x20]
mov rcx, rdi
test eax, eax
cmovne ebx, esi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1400cf9c0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rsi, qword [rsp + 0x3a8]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, ebx
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.14010d170
mov rbx, qword [rsp + 0x3b0]
add rsp, 0x390
pop rdi
ret

Function at 0x1400d0110
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x170
mov rax, qword [0x1402ba4e0]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov edi, edx
xor ebp, ebp
lea rdx, [rsp + 0x20]
mov ebx, ebp
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rsi, rax
nop dword [rax]
cmp rsi, 0xffffffffffffffff
je 0x1400d0184
test dil, 1
je 0x1400d0163
test byte [rsp + 0x20], 0x10
jne 0x1400d0165
inc ebx
test edi, edi
je 0x1400d017b
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1400d0150
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
setne bpl
mov eax, ebp
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14010d170
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400d01c0
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x1402ba4e0]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbx, rcx
mov rdi, rdx
lea rcx, [rsp + 0x52]
xor esi, esi
xor edx, edx
mov r8d, 0xfe
mov word [rsp + 0x50], si
call fcn.14010da60
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
mov byte [rbx], sil
mov dword [rsp + 0x40], 0x80
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
lea r8, [rsp + 0x50]
or r9d, 0xffffffff
xor edx, edx
mov ecx, 0xfde9
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14010d170
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400d07b0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x1c0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x1402ba4e0]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
xor ebx, ebx
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftInternet_Explorer
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400d0976
mov byte [rsp + 0xa0], al
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0xa1]
call fcn.14010da60
mov dword [rsp + 0x4c], 0x104
mov dword [rsp + 0x48], 1
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, str.Version
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400d096a
mov dword [rsp + 0x58], ebx
mov dword [rsp + 0x5c], ebx
mov byte [rsp + 0x88], al
xor eax, eax
mov qword [rsp + 0x89], rax
mov qword [rsp + 0x91], rax
mov word [rsp + 0x99], ax
mov byte [rsp + 0x9b], al
mov byte [rsp + 0x70], al
mov qword [rsp + 0x71], rax
mov qword [rsp + 0x79], rax
mov word [rsp + 0x81], ax
mov byte [rsp + 0x83], al
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x50], rcx
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x60], rdx
movzx r8d, byte [rax]
test r8b, r8b
je 0x1400d0940
cmp r8b, 0x2e
je 0x1400d0908
mov byte [rcx], r8b
inc rcx
mov qword [rsp + 0x50], rcx
inc rax
mov qword [rsp + 0x40], rax
jmp 0x1400d08e4
movzx ecx, byte [rax]
test cl, cl
je 0x1400d0940
cmp cl, 0x2e
jne 0x1400d0920
inc rax
mov qword [rsp + 0x40], rax
jmp 0x1400d0908
movzx ecx, byte [rax]
test cl, cl
je 0x1400d0940
cmp cl, 0x2e
je 0x1400d0940
mov byte [rdx], cl
inc rdx
mov qword [rsp + 0x60], rdx
inc rax
mov qword [rsp + 0x40], rax
jmp 0x1400d0920
lea rcx, [rsp + 0x88]
call fcn.14010e548
mov ebx, eax
lea rcx, [rsp + 0x70]
call fcn.14010e548
movzx ecx, bx
shl ecx, 0x10
movzx eax, ax
or ecx, eax
mov ebx, ecx
mov dword [rsp + 0x30], ecx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov eax, ebx
jmp 0x1400d097e
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.14010d170
add rsp, 0x1c0
pop rbx
ret
Function at 0x1400d15d0
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x160
mov rax, qword [0x1402ba4e0]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rdx, [0x14024d112]
mov rbx, rcx
call fcn.1400ca6a0
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x1400d161a
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jae 0x1400d1631
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x1400d163a
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 4
jne 0x1400d163a
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersion
jmp 0x1400d1641
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersion
lea rax, [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400d16ef
lea rcx, [rsp + 0x41]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x40], al
call fcn.14010da60
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
lea r9, [rsp + 0x38]
lea rdx, str.ProductID
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov dword [rsp + 0x3c], 0x104
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400d16e4
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.1400ca6a0
lea r8, [0x14024d112]
lea rdx, [0x1401ec7f8]
mov rcx, rbx
call fcn.1400cb7b0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14010d170
add rsp, 0x160
pop rbx
ret
Function at 0x1400d1c10
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
mov eax, 0x2080
call fcn.14010d1a0
sub rsp, rax
mov rax, qword [0x1402ba4e0]
xor rax, rsp
mov qword [rsp + 0x2070], rax
mov esi, edx
mov rbx, rcx
test rcx, rcx
jne 0x1400d1c4f
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rbx, rax
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x1400d1c6c
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov byte [rsp + 0x20], 0
mov rbx, rax
jmp 0x1400d1c80
lea rdx, [rsp + 0x20]
mov r8d, 0x50
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov rcx, qword [rsp + 0x20b0]
mov rax, rcx
shr rax, 0x10
test ax, ax
jne 0x1400d1cbc
movzx edx, cx
mov rcx, qword [0x1402c0178]
lea r8, [rsp + 0x70]
mov r9d, 0x2000
call qword [sym.imp.USER32.dll_LoadStringA]
lea r11, [rsp + 0x70]
mov qword [rsp + 0x20b0], r11
mov edx, 0x4000
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1400d1d13
mov rdx, qword [rsp + 0x20b0]
lea r8, [rsp + 0x20b8]
mov rcx, rax
call fcn.140115fec
bts esi, 0x10
lea r8, [rsp + 0x20]
mov r9d, esi
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
jmp 0x1400d1d16
or eax, 0xffffffff
mov rcx, qword [rsp + 0x2070]
xor rcx, rsp
call fcn.14010d170
add rsp, 0x2080
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400d1d70
Capabilities:
Get disk information

Disassembly:
push rdi
sub rsp, 0x150
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x168], rbx
mov rax, qword [0x1402ba4e0]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rdi, rcx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov byte [rsp + 0x30], bl
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0x31]
call fcn.14010da60
test rdi, rdi
je 0x1400d1dd9
cmp byte [rdi], bl
je 0x1400d1dd9
mov r8d, 0x104
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.1400c9950
jmp 0x1400d1dec
mov r8d, 0x104
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rdx, [0x1401eb64c]
lea rcx, [rsp + 0x30]
call fcn.14010d30c
test rax, rax
je 0x1400d1e24
mov byte [rax + 2], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x1400d1e1b
cmp eax, 5
jne 0x1400d1e20
mov ebx, 1
mov dword [rsp + 0x20], ebx
mov eax, ebx
jmp 0x1400d1e2c
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14010d170
mov rbx, qword [rsp + 0x168]
add rsp, 0x150
pop rdi
ret
Function at 0x1400d2050
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
mov rdi, rcx
movzx edx, dx
lea r8, str.RT_RCDATA
test r9, r9
je 0x1400d2077
mov r8, r9
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbx, rax
test rax, rax
je 0x1400d20bd
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rbx
mov rcx, rdi
mov dword [rsi], eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400d20c3
mov rcx, rax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LockResource]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x1400d2fb0
Capabilities:
Shutdown system

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1402ba4e0]
xor rax, rsp
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x1400d307d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400d3069
lea r8, [rsp + 0x3c]
lea rdx, str.SeShutdownPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x44], 2
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov r9d, 1
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownA]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14010d170
add rsp, 0x58
ret
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14010d170
add rsp, 0x58
ret
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.USER32.dll_ExitWindowsEx]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14010d170
add rsp, 0x58
ret