joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400231dc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x140086de8]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rbx, qword [0x14008fe10]
mov r15, rcx
mov rcx, rbx
movzx edx, dx
mov r8d, 0xf0
mov edi, 1
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor r12d, r12d
test rax, rax
je 0x14002337e
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14002337e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14002337e
movzx esi, word [rbx]
cmp r12w, si
je 0x14002337e
movzx eax, word [rbx + 2]
mov ecx, 0x403
mov r14d, dword [rbx + 4]
add rbx, 8
cmp cx, ax
jne 0x140023302
xor edx, edx
lea rcx, [rbp + 0x88]
mov r8d, pe_nt_image_headers64
call fcn.14002d0a0
lea rax, [rbp + 0x88]
mov r8d, 3
mov rdx, rbx
mov qword [rbp + 0x80], rax
lea rcx, [rbp + 0x80]
call fcn.14002431c
mov rax, qword [rbp + 0x80]
mov edx, esi
mov rcx, qword [r15 + 8]
xor r9d, r9d
mov r8d, 0x143
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov rcx, qword [rbp + 0x80]
cmp rax, 0xffffffffffffffff
lea rax, [rbp + 0x88]
cmove edi, r12d
cmp rcx, rax
je 0x140023373
call fcn.140032218
jmp 0x140023373
mov ecx, 0x1234
cmp cx, ax
jne 0x140023373
or qword [rbp + 0x48], 0xffffffffffffffff
lea rax, [rsp + 0x38]
mov r8d, 3
mov qword [rsp + 0x30], rax
mov rdx, rbx
mov dword [rbp + 0x40], 1
lea rcx, [rsp + 0x30]
call fcn.14002431c
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rbp + 0x50], rcx
cmp rcx, rax
je 0x14002334d
call fcn.140032218
mov rcx, qword [r15 + 8]
lea rax, [rbp + 0x40]
mov edx, esi
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x40b
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp rax, 0xffffffffffffffff
cmove edi, r12d
add rbx, r14
test edi, edi
jne 0x140023265
mov eax, edi
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1400293b0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret

Function at 0x140023a18
Capabilities:
Get keyboard layout
Identify system language via api

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x120
mov rax, qword [0x140086de8]
xor rax, rsp
mov qword [rsp + 0x110], rax
xor ebx, ebx
lea rdx, [rsp + 0x20]
lea ecx, [rbx + 0x1e]
call qword [sym.imp.USER32.dll_GetKeyboardLayoutList]
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edi, ax
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
cmp di, ax
jne 0x140023a7d
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx ecx, ax
mov eax, ebx
cmp cx, word [rsp + rax*8 + 0x20]
jne 0x140023a72
mov rbx, qword [rsp + rax*8 + 0x20]
inc rax
cmp rax, 0x1e
jl 0x140023a66
jmp 0x140023a95
mov rcx, rbx
cmp di, word [rsp + rcx*8 + 0x20]
jne 0x140023a8c
mov rbx, qword [rsp + rcx*8 + 0x20]
inc rcx
cmp rcx, 0x1e
jl 0x140023a80
mov rax, rbx
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.1400293b0
mov rbx, qword [rsp + 0x130]
add rsp, 0x120
pop rdi
ret
Function at 0x140023f70
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x250
mov rax, qword [0x140086de8]
xor rax, rsp
mov qword [rsp + 0x240], rax
or edi, 0xffffffff
mov r14, r8
mov rbp, rdx
lea r15d, [rdi + 2]
test rdx, rdx
je 0x140024059
mov edx, r15d
mov rcx, rbp
call qword [sym.imp.USER32.dll_ActivateKeyboardLayout]
xor ebx, ebx
lea rsi, [0x140086280]
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.14002d0a0
mov eax, ebx
mov rcx, r14
imul rdx, rax, 0x2c
lea rax, [0x140086284]
add rdx, rax
call fcn.14003f0c8
test eax, eax
je 0x140024057
mov eax, dword [rsi]
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], eax
call fcn.1400225e4
mov ecx, dword [rsp + 0x20]
mov r8, rbp
xor edx, edx
call qword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov edx, 0x1000001
mov r8d, 0x104
mov ecx, eax
lea eax, [rbx - 0xf]
shl ecx, 0x10
cmp eax, 3
cmova edx, r15d
or ecx, edx
lea rdx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetKeyNameTextW]
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.14003f0c8
test eax, eax
je 0x140024057
add ebx, r15d
add rsi, 0x2c
cmp ebx, 0x42
jl 0x140023fc0
jmp 0x140024059
mov edi, ebx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov rcx, rax
mov edx, r15d
call qword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov eax, edi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400293b0
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x140024098
Capabilities:
Get common file path
Get file version info

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x1028]
mov eax, 0x1120
call fcn.140029340
sub rsp, rax
mov rax, qword [0x140086de8]
xor rax, rsp
mov qword [rbp + 0x1010], rax
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x8c8
xor ebx, ebx
call fcn.14002d0a0
xor edx, edx
lea rcx, [rbp + 0x810]
mov r8d, 0x800
call fcn.14002d0a0
mov edx, 0x400
lea rcx, [rbp + 0x810]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, 0x464
lea r8, [rbp + 0x810]
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.140032a00
lea r8, [0x140067b40]
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.14003297c
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x40]
lea ecx, [rbx + 3]
call sub.VERSION.dll_GetFileVersionInfoSizeExW
mov edx, eax
lea ecx, [rbx + 0x40]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x1400241a0
mov r9d, esi
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea ecx, [rbx + 3]
call sub.VERSION.dll_GetFileVersionInfoExW
lea r9, [rsp + 0x3c]
mov rcx, rdi
lea r8, [rsp + 0x30]
lea rdx, [0x140066c60]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140024197
mov rax, qword [rsp + 0x30]
movzx ebx, word [rax + 0x16]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, ebx
mov rcx, qword [rbp + 0x1010]
xor rcx, rsp
call fcn.1400293b0
lea r11, [rsp + 0x1120]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1400241d4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x140086de8]
xor rax, rsp
mov qword [rbp - 8], rax
xor ebx, ebx
lea rdx, str.SoftwareIntelDisplayigfxcuiigfxtrayTrayIcon
xor ecx, ecx
mov qword [rbp - 0x20], rbx
call fcn.140023abc
mov rdi, rax
mov dword [rbp - 0x18], ebx
lea eax, [rbx + 4]
mov r9d, 0xf003f
mov dword [rbp - 0x14], eax
lea rdx, str.SoftwareIntelDisplayigfxcuiigfxtrayTrayIcon
mov dword [rbp - 0x10], eax
xor r8d, r8d
lea rax, [rbp - 0x20]
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140024270
lea rax, [rbp - 0x14]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x10]
lea rax, [rbp - 0x18]
lea rdx, str.ShowTrayIcon
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400242a2
test rdi, rdi
je 0x1400242aa
lea rax, [rbp - 0x14]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x10]
lea rax, [rbp - 0x18]
mov rcx, rdi
lea rdx, str.ShowTrayIcon
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400242aa
cmp dword [rbp - 0x18], ebx
setne bl
jmp 0x1400242b4
mov eax, 1
mov dword [rbp - 0x18], eax
mov ebx, eax
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400293b0
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x50
pop rbp
ret
Function at 0x140024a94
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
call fcn.140024c84
mov ebp, 1
cmp eax, ebp
jne 0x140024abd
mov eax, ebp
jmp 0x140024c07
xor edi, edi
call fcn.14000c190
mov rcx, rax
test rax, rax
je 0x140024c1c
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [0x1400629f0]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
call fcn.14000b730
nop
mov ecx, 0x400
call fcn.140029410
mov rsi, rax
test rax, rax
je 0x140024bdc
mov r8d, 0x200
mov rdx, rax
lea rcx, str._LOCALAPPDATA_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, rsi
call fcn.140032cb4
mov r8d, eax
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.140010b94
mov rbx, qword [rsp + 0x30]
cmp dword [rbx - 0x10], edi
jle 0x140024bd2
lea rbx, [0x140066c60]
mov rcx, rbx
call fcn.140032cb4
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1400147f4
lea rcx, str.Packages
call fcn.140032cb4
mov r8d, eax
lea rdx, str.Packages
lea rcx, [rsp + 0x30]
call fcn.1400147f4
mov rcx, rbx
call fcn.140032cb4
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1400147f4
lea rcx, str.AppUp.IntelGraphicsControlPanel_8j3eq9eme6ctt
call fcn.140032cb4
mov r8d, eax
lea rdx, str.AppUp.IntelGraphicsControlPanel_8j3eq9eme6ctt
lea rcx, [rsp + 0x30]
call fcn.1400147f4
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140024bd2
test al, 0x10
cmovne edi, ebp
mov rcx, rsi
call fcn.140028974
jmp 0x140024be1
mov rbx, qword [rsp + 0x30]
lea rdx, [rbx - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140024c05
lfence
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [0x1400629f0]
mov eax, edi
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80004005
call fcn.1400099e0
int3

Function at 0x140024c84
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rsi
sub rsp, 0x260
mov rax, qword [0x140086de8]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor edx, edx
xor ecx, ecx
xor ebx, ebx
call fcn.14001cbe8
mov rsi, rax
test rax, rax
jne 0x140024cbe
lea ebx, [rax + 1]
jmp 0x140024d3f
xor edx, edx
mov dword [rsp + 0x34], 1
mov r8d, 0x208
mov dword [rsp + 0x30], 0x104
lea rcx, [rsp + 0x40]
call fcn.14002d0a0
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x40]
mov rcx, rsi
lea rdx, str.Version
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140024d36
lea rdx, str.3.0.0.0
lea rcx, [rsp + 0x40]
call fcn.14003efcc
test eax, eax
jne 0x140024d31
call fcn.140024098
cmp eax, 0x3fab
jae 0x140024d36
mov ebx, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400293b0
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rsi
ret
Function at 0x140026fa8
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x868]
sub rsp, 0x960
mov rax, qword [0x140086de8]
xor rax, rsp
mov qword [rbp + 0x850], rax
cmp qword [rcx + 0x78], 0
mov rbx, rcx
mov edi, 0x80004005
je 0x14002704a
call fcn.140024c28
test eax, eax
je 0x14002704a
and dword [rsp + 0x68], 0
and dword [rsp + 0x6c], 0
mov rsi, qword [rbx + 0x78]
test rsi, rsi
je 0x1400271f3
mov rax, qword [rsi]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x6c]
mov edx, SysAllocStringByteLen
mov r8d, 4
mov rcx, rsi
mov rax, qword [rax + 0x38]
call qword [0x1400629f0]
mov edi, eax
test eax, eax
jns 0x140027074
lfence
lea r8, [0x140066708]
mov rdx, rsi
mov ecx, eax
call fcn.140029a40
mov eax, edi
mov rcx, qword [rbp + 0x850]
xor rcx, rsp
call fcn.1400293b0
lea r11, [rsp + 0x960]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
test dword [rsp + 0x68], 0x800
je 0x14002709d
mov rcx, qword [rbx + 0x78]
test rcx, rcx
je 0x1400271f3
mov rax, qword [rcx]
xor edx, edx
mov rax, qword [rax + 0x330]
call qword [0x1400629f0]
test byte [rsp + 0x68], 4
je 0x1400270c3
mov rcx, qword [rbx + 0x78]
test rcx, rcx
je 0x1400271f3
mov rax, qword [rcx]
xor edx, edx
mov rax, qword [rax + 0x480]
call qword [0x1400629f0]
test dword [rsp + 0x68], 0x20000
je 0x140027101
mov rsi, qword [rbx + 0x78]
test rsi, rsi
je 0x140027101
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 0x400]
call qword [0x1400629f0]
test eax, eax
jns 0x140027101
lfence
lea r8, [0x140066708]
mov rdx, rsi
mov ecx, eax
call fcn.140029a40
test dword [rsp + 0x68], 0x400000
je 0x1400271d2
xor eax, eax
lea rcx, [rsp + 0x74]
xorps xmm0, xmm0
mov qword [rsp + 0x60], rax
xor edx, edx
movups xmmword [rsp + 0x50], xmm0
lea r8d, [rax + 0x64]
call fcn.14002d0a0
xor edx, edx
mov dword [rsp + 0x70], 0x68
mov r8d, 0x864
lea rcx, [rbp - 0x20]
call fcn.14002d0a0
mov ebx, 0x432
lea r8, [0x14008e890]
mov edx, ebx
lea rcx, [rbp - 0x20]
call fcn.140032a00
lea r8, str.IntelWiDiUMS64.exe_38CD7AA6_0119_4D26_9717_B80FFFDB147E
mov edx, ebx
lea rcx, [rbp - 0x20]
call fcn.14003297c
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rbp - 0x20]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x4000020
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14002704a
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14002704a
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x14002704a
mov r8d, dword [rbx + 0x74]
add rcx, 0x10
xor edx, edx
call fcn.14002350c
jmp 0x14002704a
mov ecx, 0x80004003
call fcn.140029a30
int3
Function at 0x140027728
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140086de8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov eax, dword [r9]
mov rbx, r8
add eax, eax
mov rdi, r9
mov dword [rsp + 0x30], eax
xor esi, esi
mov dword [r9], esi
lea rax, [r11 - 0x28]
mov rcx, qword [rcx]
lea r9, [r11 - 0x24]
mov qword [r11 - 0x30], rax
xor r8d, r8d
mov qword [r11 - 0x38], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400277a3
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
ja 0x14002779e
mov ecx, dword [rsp + 0x30]
test rbx, rbx
je 0x1400277bb
test ecx, ecx
je 0x1400277b8
test cl, 1
jne 0x14002779e
mov eax, ecx
shr rax, 1
cmp word [rbx + rax*2 - 2], si
je 0x1400277bb
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400293b0
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
mov word [rbx], si
shr ecx, 1
mov dword [rdi], ecx
xor eax, eax
jmp 0x1400277a3

Function at 0x1400277c4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x830
mov rax, qword [0x140086de8]
xor rax, rsp
mov qword [rsp + 0x820], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x800
call fcn.14002d0a0
mov ebx, 0x400
lea rcx, [rsp + 0x20]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, str.User32.dll
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.14003297c
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x140027861
lea rdx, str.RegisterSuspendResumeNotification
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140027858
mov rcx, qword [rdi + 8]
xor edx, edx
call qword [0x1400629f0]
mov qword [rdi + 0x80], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x820]
xor rcx, rsp
call fcn.1400293b0
mov rbx, qword [rsp + 0x848]
add rsp, 0x830
pop rdi
ret

Function at 0x140027a58
Capabilities:
Create thread

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140086de8]
xor rax, rsp
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r8, [0x140024d90]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140027aa1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400293b0
add rsp, 0x48
ret
Function at 0x140027dac
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x830
mov rax, qword [0x140086de8]
xor rax, rsp
mov qword [rsp + 0x820], rax
cmp qword [rcx + 0x80], 0
mov rbx, rcx
je 0x140027e4d
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x800
call fcn.14002d0a0
mov edi, 0x400
lea rcx, [rsp + 0x20]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, str.User32.dll
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.14003297c
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
je 0x140027e4d
lea rdx, str.UnregisterSuspendResumeNotification
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140027e44
mov rcx, qword [rbx + 0x80]
call qword [0x1400629f0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x820]
xor rcx, rsp
call fcn.1400293b0
mov rbx, qword [rsp + 0x848]
add rsp, 0x830
pop rdi
ret

Function at 0x140027ef8
Capabilities:
Create directory
Query environment variable
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rsi, rdx
mov rbx, rcx
and dword [rsp + 0x20], 0
xor eax, eax
mov qword [rcx], rax
call fcn.14000c190
mov rcx, rax
test rax, rax
je 0x140028087
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [0x1400629f0]
add rax, 0x18
mov qword [rbx], rax
mov rcx, rbx
call fcn.14000b730
nop
mov dword [rsp + 0x20], 1
mov ecx, 0x400
call fcn.140029410
mov rdi, rax
test rax, rax
je 0x140028055
mov r8d, 0x200
mov rdx, rax
lea rcx, str._LOCALAPPDATA_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, rdi
call fcn.140032cb4
mov r8d, eax
mov rdx, rdi
mov rcx, rbx
call fcn.140010b94
mov rax, qword [rbx]
cmp dword [rax - 0x10], 0
jle 0x14002804c
lea rcx, [0x140066c60]
call fcn.140032cb4
mov r8d, eax
lea rdx, [0x140066c60]
mov rcx, rbx
call fcn.1400147f4
lea rcx, str.Intel
call fcn.140032cb4
mov r8d, eax
lea rdx, str.Intel
mov rcx, rbx
call fcn.1400147f4
xor edx, edx
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov r8, rsi
lea rdx, [0x140066c60]
lea rcx, [rsp + 0x60]
call fcn.14001333c
nop
mov rdx, qword [rax]
mov r8d, dword [rdx - 0x10]
mov rcx, rbx
call fcn.1400147f4
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140028033
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x1400629f0]
xor edx, edx
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, 6
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rdi
call fcn.140028974
nop
mov rdx, qword [rsi]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002807c
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x1400629f0]
mov rax, rbx
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80004005
call fcn.1400099e0
int3
Function at 0x14004007c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140029340
sub rsp, rax
mov rax, qword [0x140086de8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14004bb44
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400400cb
mov rax, rbp
jmp 0x1400401d3
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x912f0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14004ee10
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x912f0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400401cf
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400401cf
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14004ee10
test rax, rax
js 0x1400401cf
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400401cf
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400401c1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400401c1
cmp byte [rcx], 0xd
jne 0x1400401a7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400401b6
cmp byte [rcx + 1], 0xa
jne 0x1400401b6
inc rcx
jmp 0x1400401b6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x87460]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140040189
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400401d3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400293b0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004db84
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1400912f0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14004dbe2
cmp word [rdx], r12w
jne 0x14004dbe2
or byte [rax + r8*8 + 0x38], cl
jmp 0x14004dbe8
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14004dd43
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14004dd1e
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14004dc21
mov rcx, r9
jmp 0x14004dc44
cmp r9, rdx
jae 0x14004dc5b
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14004dc05
jmp 0x14004dd43
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14004dd18
cmp dword [rsp + 0x80], edi
je 0x14004dd18
mov rdx, r14
lea r11, [0x1400912f0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14004dcf1
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14004dcc4
mov word [rbx], r12w
jmp 0x14004dd3f
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14004dccd
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14004dd3f
cmp word [rsp + 0x70], r12w
jne 0x14004dcfe
cmp rbx, rsi
je 0x14004dcbe
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14004ee18
cmp word [rsp + 0x70], r12w
je 0x14004dd43
mov word [rbx], r13w
jmp 0x14004dd3f
lea r11, [0x1400912f0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14004dd3b
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14004dd43
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret