joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400028dc
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get common file path
Get file attributes
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r15
sub rsp, 0x240
xor edi, edi
mov rsi, rcx
lea r8, [0x14000e910]
mov word [rcx], di
lea edx, [rdi + 0x6e]
xor ecx, ecx
mov r12d, edi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
cmp rax, rdi
mov rbx, rax
je 0x14000294b
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
cmp rax, rdi
mov rbp, rax
je 0x14000294b
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, rbp
mov r12d, eax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
jmp 0x14000294e
mov rbp, rdi
cmp rbp, rdi
je 0x140002a81
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0x208
mov word [rsp + 0x30], di
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x30]
call fcn.140003650
lea rcx, [0x14000e918]
call sub.msvcrt.dll_wcslen
lea rcx, [rsp + 0x30]
mov rbx, rax
call sub.msvcrt.dll_wcslen
mov r15d, 0x104
lea rcx, [rbx + rax + 1]
cmp rcx, r15
jae 0x1400029b7
lea rdx, [0x14000e918]
lea rcx, [rsp + 0x30]
mov r8, rsi
call fcn.1400037b4
jmp 0x1400029ba
mov word [rsi], di
xor edx, edx
mov rcx, rsi
call fcn.14000337c
cmp rax, 0xffffffffffffffff
mov qword [rsi + 0x210], rax
jne 0x140002a3a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140002a3a
lea rdx, [rsp + 0x30]
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rcx, [0x14000e918]
call sub.msvcrt.dll_wcslen
lea rcx, [rsp + 0x30]
mov rbx, rax
call sub.msvcrt.dll_wcslen
lea rcx, [rbx + rax + 1]
cmp rcx, r15
jae 0x140002a26
lea rdx, [0x14000e918]
lea rcx, [rsp + 0x30]
mov r8, rsi
call fcn.1400037b4
jmp 0x140002a29
mov word [rsi], di
xor edx, edx
mov rcx, rsi
call fcn.14000337c
mov qword [rsi + 0x210], rax
mov rcx, qword [rsi + 0x210]
cmp rcx, 0xffffffffffffffff
je 0x140002a81
lea r9, [rsp + 0x260]
mov r8d, r12d
mov rdx, rbp
mov dword [rsp + 0x260], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsi + 0x210]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, qword [rsi + 0x210]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
cmp eax, 0xffffffff
setne dil
mov eax, edi
mov rsp, r11
pop r15
pop r12
pop rdi
ret
Function at 0x1400030b8
Capabilities:
Create process on windows
Create process suspended
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
mov eax, 0x22f0
call fcn.14000d5c0
sub rsp, rax
xor ebx, ebx
mov rdi, r8
mov r13, rcx
mov r12, rdx
lea rcx, [rsp + 0x78]
lea r8d, [rbx + 0x60]
xor edx, edx
mov rbp, r9
mov dword [rsp + 0x70], ebx
call sub.msvcrt.dll_memset
xor eax, eax
lea rcx, [rsp + 0xe2]
xor edx, edx
mov r8d, 0x208
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov word [rsp + 0xe0], bx
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0xe0]
mov r8d, 0x104
mov rdx, rdi
call fcn.140003554
lea rcx, [rsp + 0xe0]
mov dx, 0x5c
call sub.msvcrt.dll_wcsrchr
cmp rax, rbx
je 0x140003158
mov word [rax], bx
lea rcx, [rsp + 0x2f2]
xor edx, edx
mov r8d, 0x1ffe
mov dword [rsp + 0x70], 0x68
mov rsi, rbx
mov word [rsp + 0x2f0], bx
call sub.msvcrt.dll_memset
lea r11, [rdi + 0x20a]
cmp word [r11], bx
je 0x1400031b6
lea r8, str.__s___s
lea rcx, [rsp + 0x2f0]
mov r9, rdi
mov edx, 0xfff
mov qword [rsp + 0x20], r11
call sub.msvcrt.dll__snwprintf
lea rsi, [rsp + 0x2f0]
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov rdx, rsi
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0xe0]
mov rcx, rdi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, ebx
je 0x14000329a
mov eax, dword [rsp + 0x60]
mov dword [rbp], eax
cmp dword [rdi + 0xa0c], ebx
jne 0x140003279
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
lea rcx, [0x14000e948]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x68], rbx
mov byte [rsp + 0x2320], bl
mov rsi, rax
xor eax, eax
mov word [rsp + 0x2321], ax
mov byte [rsp + 0x2323], al
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x68]
lea r8, [rsp + 0x2320]
mov r9d, 4
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp eax, ebx
je 0x140003249
cmp dword [rdi + 0xa0c], ebx
cmovne rbx, qword [rsp + 0x58]
mov r8d, dword [rbp]
mov r9, r12
mov edx, 1
mov rcx, r13
mov qword [rsp + 0x20], rbx
call fcn.140002ab0
jmp 0x1400032a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r11, [rsp + 0x22f0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret

Function at 0x1400033ac
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rcx, rdx
mov rbx, rdx
call sub.msvcrt.dll_wcslen
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
lea r8d, [rax + rax]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400037f4
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
cmp word [0x140013390], 0
mov rbx, rcx
jne 0x14000381f
lea rcx, [0x140013390]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov dword [0x14001359c], eax
lea rdx, [0x140013390]
mov rcx, rbx
call sub.msvcrt.dll_wcscpy
mov eax, dword [0x14001359c]
add rsp, 0x20
pop rbx
ret

Function at 0x140003adc
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x38
lea r9, [0x14000e6a8]
mov r8, rdx
lea rdx, [0x14000ea68]
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], r9
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp rax, 0x20
seta cl
mov eax, ecx
add rsp, 0x38
ret

Function at 0x140004c5c
Capabilities:
Read .ini file

Disassembly:
push rbx
sub rsp, 0x30
and word [rdx], 0
lea rax, [0x140012d90]
mov rbx, rdx
mov r9, rdx
mov qword [rsp + 0x28], rax
mov rdx, rcx
mov dword [rsp + 0x20], r8d
lea r8, [0x14000e6a8]
lea rcx, [0x140012fa0]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x140004ca0
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x2040
call fcn.14000d5c0
sub rsp, rax
and word [rsp + 0x30], 0
mov rbx, rcx
mov rdi, rdx
lea rcx, [rsp + 0x32]
lea r8d, [rax - 0x40]
xor edx, edx
call sub.msvcrt.dll_memset
lea r11, [0x140012d90]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], r11
lea r8, [0x14000e6a8]
lea rcx, [0x140012fa0]
mov rdx, rbx
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [rsp + 0x30], 0
je 0x140004d1b
lea rdx, [rsp + 0x30]
mov rcx, rdi
call sub.msvcrt.dll_wcscpy
mov eax, 1
jmp 0x140004d1d
xor eax, eax
mov rbx, qword [rsp + 0x2050]
add rsp, 0x2040
pop rdi
ret

Function at 0x140004d30
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x2040
call fcn.14000d5c0
sub rsp, rax
and word [rsp + 0x30], 0
mov rbx, rcx
mov rdi, rdx
lea rcx, [rsp + 0x32]
lea r8d, [rax - 0x40]
xor edx, edx
call sub.msvcrt.dll_memset
lea rsi, [0x140012d90]
lea r9, [rsp + 0x30]
lea r8, [0x14000e6a8]
lea rcx, [0x140012fa0]
mov rdx, rbx
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [rsp + 0x30], 0
jne 0x140004db4
lea rcx, [0x140012fa0]
mov r9, rsi
mov r8, rdi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x140004db6
xor eax, eax
lea r11, [rsp + 0x2040]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1400051d0
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push rbx
sub rsp, 0x230
lea rcx, [rsp + 0x22]
xor ebx, ebx
xor edx, edx
mov r8d, 0x208
mov word [rsp + 0x20], bx
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x20]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x20]
mov dx, 0x2e
call sub.msvcrt.dll_wcsrchr
cmp rax, rbx
je 0x14000521b
mov word [rax], bx
lea rdx, str._lng.ini
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcscat
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400052d8
lea rdx, [rsp + 0x20]
lea rcx, [0x140012d90]
call sub.msvcrt.dll_wcscpy
lea rdx, str.general
lea rcx, [0x140012fa0]
call sub.msvcrt.dll_wcscpy
lea r9, [0x140012d90]
lea rdx, [0x14000eb48]
lea rcx, [0x140012fa0]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea rdx, [0x140013030]
lea rcx, str.charset
cmp eax, 1
sete bl
mov dword [0x140012c5c], ebx
mov ebx, 0x3f
mov r8d, ebx
call fcn.140004c5c
lea rdx, [0x1400130b0]
lea rcx, str.TranslatorName
mov r8d, ebx
call fcn.140004c5c
lea rdx, [0x140013130]
lea rcx, str.TranslatorURL
mov r8d, 0xff
call fcn.140004c5c
add rsp, 0x230
pop rbx
ret

Function at 0x1400063a4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x2040
call fcn.14000d5c0
sub rsp, rax
mov rdi, rcx
mov rbx, rdx
lea r8d, [rax - 0x41]
lea rcx, [rsp + 0x41]
xor edx, edx
mov byte [rsp + 0x40], 0
call sub.msvcrt.dll_memset
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
lea rax, [rsp + 0x40]
or r9d, 0xffffffff
mov r8, rbx
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 0x1fff
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rcx, [rsp + 0x40]
call sub.msvcrt.dll_strlen
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x2060]
lea rdx, [rsp + 0x40]
mov r8, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x2050]
add rsp, 0x2040
pop rdi
ret
Function at 0x14000643c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x40
xor edi, edi
mov r13, r8
mov rsi, rdx
cmp dword [rcx + 0x40], edi
mov rbp, rcx
jle 0x140006590
xor r12d, r12d
mov rax, qword [rbp + 0x48]
mov r9, qword [r13]
mov r8, qword [rbp + 0x88]
mov edx, dword [r12 + rax]
mov rcx, r13
call qword [r9]
mov dx, 0x2c
mov rcx, rax
mov rbx, rax
call sub.msvcrt.dll_wcschr
test rax, rax
jne 0x1400064b1
mov dx, 0x22
mov rcx, rbx
call sub.msvcrt.dll_wcschr
test rax, rax
jne 0x1400064b1
mov rdx, rbx
mov rcx, rsi
call fcn.1400063a4
jmp 0x140006567
and qword [rsp + 0x20], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x2c], 0
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x20]
or r8d, 0xffffffff
mov dword [rsp + 0x34], 0x100
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x88], 0x22
call fcn.1400040b4
jmp 0x14000651c
cmp r11w, 0x22
jne 0x140006508
or r8d, 0xffffffff
lea rdx, [0x14000ebd8]
jmp 0x140006513
mov r8d, 1
lea rdx, [rsp + 0x70]
call fcn.1400040b4
add rbx, 2
movzx r11d, word [rbx]
lea rcx, [rsp + 0x20]
test r11w, r11w
mov word [rsp + 0x70], r11w
jne 0x1400064f4
lea rdx, [rsp + 0x88]
or r8d, 0xffffffff
call fcn.1400040b4
mov rax, qword [rsp + 0x20]
lea rdx, [0x14000e6a8]
test rax, rax
mov rcx, rsi
cmovne rdx, rax
call fcn.1400063a4
lea rcx, [rsp + 0x20]
call fcn.140004000
mov eax, dword [rbp + 0x40]
sub eax, 1
cmp edi, eax
jge 0x140006580
lea rdx, [0x14000ebe0]
mov rcx, rsi
call fcn.1400063a4
add edi, 1
add r12, 4
cmp edi, dword [rbp + 0x40]
jl 0x140006463
lea rdx, [0x14000ebe4]
mov rcx, rsi
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r13
pop r12
pop rdi
pop rsi
pop rbp
jmp fcn.1400063a4

Function at 0x140006c48
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x230
mov rdi, rdx
mov rsi, rcx
lea rdx, str._item__r_n
mov rcx, rdi
mov r13, r8
call fcn.1400033ac
xor r12d, r12d
cmp dword [rsi + 0x40], r12d
jle 0x140006d39
xor ebp, ebp
and word [rsp + 0x30], 0
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0x1fc
call sub.msvcrt.dll_memset
mov r11, qword [rsi + 0x48]
mov rax, qword [r13]
movsxd rbx, dword [r11 + rbp]
mov r8, qword [rsi + 0x88]
mov rcx, r13
mov edx, ebx
call qword [rax]
mov rcx, qword [rsi + 0x90]
mov rdx, rax
call fcn.14000cef8
mov r8, qword [rsi + 0x60]
lea rax, [rbx + rbx*2]
mov r8, qword [r8 + rax*8 + 0x10]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400062ac
mov rax, qword [rsi + 0x90]
mov rcx, qword [rsi + 0x98]
lea r11, [rsp + 0x30]
lea r9, [rsp + 0x30]
lea r8, str.__s__s___s__r_n
mov qword [rsp + 0x28], r11
mov edx, 0x2000
mov qword [rsp + 0x20], rax
call sub.msvcrt.dll__snwprintf
mov rdx, qword [rsi + 0x98]
mov rcx, rdi
call fcn.1400033ac
add r12d, 1
add rbp, 4
cmp r12d, dword [rsi + 0x40]
jl 0x140006c8a
lea rdx, str.__item__r_n
mov rcx, rdi
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
jmp fcn.1400033ac
Function at 0x140007148
Capabilities:
Get file system object information

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x2f0
mov ebx, 1
xor edi, edi
mov rbp, rcx
cmp dword [rcx + 0x320], edi
lea r12d, [rbx + 0xf]
mov esi, 0x1003
je 0x140007214
cmp dword [rcx + 0x328], edi
je 0x1400071d0
lea rcx, [rsp + 0x38]
xor edx, edx
mov r8d, 0x2b0
mov qword [rsp + 0x30], rdi
call sub.msvcrt.dll_memset
lea r8, [rsp + 0x30]
lea rcx, [0x14000e6a8]
mov r9d, 0x2b8
xor edx, edx
mov dword [rsp + 0x20], 0x4001
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov qword [rbp + 0x308], rax
mov r9, rax
jmp 0x140007202
mov r9d, ebx
mov r8d, 0x19
mov edx, r12d
mov ecx, r12d
mov dword [rsp + 0x20], ebx
call qword [sym.imp.COMCTL32.dll_ImageList_Create]
mov edx, ebx
mov rcx, rax
mov qword [rbp + 0x308], rax
call qword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
mov r9, qword [rbp + 0x308]
mov rcx, qword [rbp + 0x2f8]
mov r8, rbx
mov edx, esi
call qword [sym.imp.USER32.dll_SendMessageW]
cmp dword [rbp + 0x324], edi
je case.default.0x140007372
mov ecx, 0x20
mov r9d, ebx
mov dword [rsp + 0x20], ebx
lea r8d, [rcx - 7]
mov edx, ecx
call qword [sym.imp.COMCTL32.dll_ImageList_Create]
mov edx, ebx
mov rcx, rax
mov qword [rbp + 0x310], rax
call qword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
mov r9, qword [rbp + 0x310]
mov rcx, qword [rbp + 0x2f8]
xor r8d, r8d
mov edx, esi
call qword [sym.imp.USER32.dll_SendMessageW]
mov r9d, ebx
mov r8d, 0x19
mov edx, r12d
mov ecx, r12d
mov dword [rsp + 0x20], ebx
call qword [sym.imp.COMCTL32.dll_ImageList_Create]
xor ecx, ecx
mov qword [rbp + 0x300], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, 0x1000
mov r9d, r12d
xor r8d, r8d
mov edx, 0x85
mov rcx, rax
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], r12d
call qword [sym.imp.USER32.dll_LoadImageW]
xor ecx, ecx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r9d, r12d
xor r8d, r8d
mov edx, 0x86
mov rcx, rax
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], r12d
call qword [sym.imp.USER32.dll_LoadImageW]
mov rcx, qword [rbp + 0x300]
xor edx, edx
mov rdi, rax
call qword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
mov ecx, InitCommonControls
call qword [sym.imp.USER32.dll_GetSysColor]
mov rcx, qword [rbp + 0x300]
mov rdx, rsi
mov r8d, eax
mov ebx, eax
call qword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
mov rcx, qword [rbp + 0x300]
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, rdi
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, qword [rbp + 0x2f8]
mov rbx, qword [rbp + 0x300]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x101f
call qword [sym.imp.USER32.dll_SendMessageW]
mov r9, rbx
xor r8d, r8d
mov rcx, rax
mov edx, 0x1208
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
jmp qword [sym.imp.USER32.dll_SendMessageW]
Function at 0x140007cd4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x50
mov rax, rdx
mov rbx, rcx
xor edx, edx
mov rcx, rax
mov rsi, r8
call fcn.14000337c
cmp rax, 0xffffffffffffffff
mov rdi, rax
je 0x140007e62
test rsi, rsi
mov r9, qword [rbx + 0xae8]
mov edx, dword [r9 + 0x10]
mov dword [rbx + 0x1a2c], edx
mov rcx, qword [r9 + 0x18]
mov qword [rbx + 0x1a30], rcx
je 0x140007d31
mov rax, qword [rsi]
mov qword [rbx + 0x1a30], rax
cmp dword [r9 + 0x10], 5
jne 0x140007d6f
and dword [rsp + 0x40], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x88]
mov r8d, 2
mov rcx, rdi
mov byte [rsp + 0x88], 0xff
mov byte [rsp + 0x89], 0xfe
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rsi, [rbx + 0x1a38]
lea rcx, [rbx + 0x1968]
mov rdx, rsi
call fcn.14000c378
mov r11, qword [rbx + 0xae8]
mov rcx, rsi
cmp dword [r11 + 0x10], 5
jne 0x140007dd5
cmp qword [rsi], 0
lea rbp, [0x14000e6a8]
cmovne rbp, qword [rsi]
call fcn.14000408c
and dword [rsp + 0x88], 0
and qword [rsp + 0x20], 0
lea r8d, [rax + rax]
lea r9, [rsp + 0x88]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140007e57
call fcn.14000408c
mov ebx, eax
add ebx, ebx
movsxd rcx, ebx
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
cmp qword [rsi], 0
lea rbp, [0x14000e6a8]
cmovne rbp, qword [rsi]
mov rcx, rsi
mov r12, rax
call fcn.14000408c
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov r9d, eax
mov r8, rbp
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
and dword [rsp + 0x88], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x88]
mov r8d, eax
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test r12, r12
je 0x140007e57
mov rcx, r12
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140007e70
mov rcx, qword [rbx + 0x210]
xor edx, edx
call fcn.140003420
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop r12
pop rdi
pop rsi
ret

Function at 0x140008ff4
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x1520], 0
mov rbx, rcx
je 0x140009047
mov r8d, dword [rbx + 0x1740]
and qword [rsp + 0x20], 0
add rcx, 0x1528
xor r9d, r9d
xor edx, edx
call fcn.140002ab0
mov rcx, qword [rbx + 0x210]
and dword [rbx + 0x1520], 0
lea rdx, [0x14000e690]
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, rbx
call fcn.140009a68
lea rcx, [rbx + 0x1528]
cmp word [rcx], 0
je 0x14000905a
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
add rsp, 0x30
pop rbx
ret
Function at 0x1400091ec
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
mov rsi, rcx
xor ecx, ecx
mov r13d, edx
call fcn.1400059a4
lea rcx, [rsi + 0x6d4]
xor edx, edx
call fcn.14000337c
cmp rax, 0xffffffffffffffff
mov rdi, rax
je 0x140009385
and dword [rsp + 0x60], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
lea rdx, [0x14000eeb0]
mov r8d, 2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, 0x7f02
xor ecx, ecx
mov ebp, 1
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
lea r8d, [rbp + 4]
mov rdx, rdi
mov qword [0x140012250], rax
mov rax, qword [pe_dos_header]
xor ecx, ecx
call qword [rax + 0xa8]
mov rcx, qword [0x2f8]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1004
call qword [sym.imp.USER32.dll_SendMessageW]
xor ebx, ebx
test eax, eax
mov r14, rax
jle 0x14000933d
lea rdx, [rsp + 0x70]
mov r8d, ebx
xor ecx, ecx
call fcn.140005d30
test eax, eax
je 0x14000932f
cmp dword [0x350], 0
mov rcx, qword [0x2f8]
movsxd r8, ebx
mov edx, 0x102c
je 0x1400092ef
mov r9d, 0xf000
call qword [sym.imp.USER32.dll_SendMessageW]
shr eax, 0xc
sub eax, ebp
jmp 0x140009304
mov r9d, 2
call qword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
test r13d, r13d
je 0x14000930d
test eax, eax
je 0x14000932f
mov rax, qword [pe_dos_header]
mov r8, qword [rsp + 0x70]
mov r9d, 5
mov rdx, rdi
xor ecx, ecx
call qword [rax + 0xf0]
test eax, eax
je 0x14000933b
add ebx, ebp
cmp ebx, r14d
jge 0x14000933d
jmp 0x1400092af
xor ebp, ebp
mov rax, qword [pe_dos_header]
mov r8d, 5
mov rdx, rdi
xor ecx, ecx
call qword [rax + 0xa0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140012250]
call qword [sym.imp.USER32.dll_SetCursor]
test ebp, ebp
je 0x140009385
mov rcx, qword [rsi + 0x210]
lea rdx, [rsi + 0x6d4]
call fcn.140003adc
jmp 0x140009393
mov rcx, qword [rsi + 0x210]
xor edx, edx
call fcn.140003420
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x78]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x14000aaec
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rbx
mov rdi, rax
call fcn.14000aaac
test eax, eax
je 0x14000abdb
mov rcx, qword [rbx]
lea rdx, str.OpenProcessToken
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000abdb
lea r8, [rsp + 0x60]
mov edx, 0x28
mov rcx, rdi
call rax
test eax, eax
je 0x14000abdb
mov rcx, rbx
call fcn.14000aaac
test eax, eax
je 0x14000ab73
mov rcx, qword [rbx]
lea rdx, str.LookupPrivilegeValueW
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000ab73
lea r8, [rsp + 0x34]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call rax
mov rdi, qword [rsp + 0x60]
mov rcx, rbx
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x3c], 2
call fcn.14000aaac
test eax, eax
je 0x14000abc4
mov rcx, qword [rbx]
lea rdx, str.AdjustTokenPrivileges
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000abc4
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x30]
xor r9d, r9d
xor edx, edx
mov rcx, rdi
call rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x14000abe1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x14000abec
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140013338], 0
jne 0x14000acba
lea rcx, [0x14000e948]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
mov rbx, rax
je 0x14000acba
lea rdx, str.CreateToolhelp32Snapshot
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x140012a08], rax
je 0x14000acba
lea rdx, str.Module32First
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x1400129f8], rax
je 0x14000acba
lea rdx, str.Module32Next
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x1400129f0], rax
je 0x14000acba
lea rdx, str.Process32First
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x1400127c8], rax
je 0x14000acba
lea rdx, str.Process32Next
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x140013338]
mov edx, 1
test rax, rax
mov qword [0x1400129e0], rax
cmovne ecx, edx
mov dword [0x140013338], ecx
add rsp, 0x20
pop rbx
ret