joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14011b1b4
Capabilities:
Check if file exists
Read .ini file

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r14
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rsi, rdx
mov rbx, rcx
xor r12d, r12d
mov dil, r12b
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp + 0x48], rax
xor r8d, r8d
lea rdx, [rbp - 0x30]
mov rcx, rbx
call fcn.140119cb4
nop
mov rdx, qword [rax]
lea rcx, [rbp + 0x40]
call fcn.14000cb18
nop
mov rdx, qword [rbp - 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14011b232
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov r14d, 1
test eax, eax
je 0x14011b2d6
mov r9d, r14d
lea ebx, [r14 + 0x31]
mov r8d, ebx
lea rdx, [rbp + 0x48]
lea rcx, [rbp - 0x20]
call fcn.14000bd14
mov r9, qword [rax + 8]
mov rax, qword [rbp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
lea r8, [0x140330de8]
lea rdx, str.Version
lea rcx, str.Update
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [rbp - 0x10]
mov rbx, qword [rbp - 0x20]
cmp eax, 0xffffffff
jne 0x14011b2af
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14011b2a6
mov eax, r12d
jmp 0x14011b2b3
movsxd rdx, dword [rcx - 0xc]
call fcn.1400beaac
test eax, eax
js 0x14011b2cb
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x14011b2cb
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], r12w
jmp 0x14011b2d6
mov ecx, 0x80070057
call fcn.14000cbb8
int3
mov rdx, qword [rbp + 0x48]
cmp dword [rdx - 0x10], r12d
je 0x14011b2f2
mov rcx, qword [rsi]
call fcn.140129ff0
movzx edi, dil
test al, al
cmovne edi, r14d
mov rdx, qword [rbp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14011b312
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp + 0x48]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14011b332
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov al, dil
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14011ea5c
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rcx, qword [rcx + 8]
mov rbx, rdx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x14011eadb
call qword [sym.imp.USER32.dll_EmptyClipboard]
lea rsi, [rbx + 0x10]
mov ecx, 0x2000
mov rdx, qword [rsi]
inc rdx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
cmp qword [rbx + 0x18], 0x10
jb 0x14011eaad
mov rbx, qword [rbx]
mov rdx, qword [rsi]
mov r8, rbx
mov rcx, rax
inc rdx
call fcn.1400c5864
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rdi
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14011eb3c
Capabilities:
Get graphical window text

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov rbx, rdx
mov rdi, rcx
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x60], rax
mov esi, 5
lea r9d, [rsi - 4]
mov r8d, esi
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x28]
call fcn.14000bd14
mov r8d, esi
mov rdx, qword [rax + 8]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [rsp + 0x38]
mov rbx, qword [rsp + 0x28]
xor esi, esi
cmp eax, 0xffffffff
jne 0x14011ebc5
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14011ebbc
mov eax, esi
jmp 0x14011ebc9
movsxd rdx, dword [rcx - 0xc]
call fcn.1400beaac
test eax, eax
js 0x14011ec21
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x14011ec21
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], si
mov rax, qword [rsp + 0x60]
cmp dword [rax - 0x10], 4
jne 0x14011ec02
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x28]
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rax, qword [rsp + 0x60]
lea rdx, [rax - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14011ec1d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x14011ec2c
mov ecx, 0x80070057
call fcn.14000cbb8
nop
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14011edfc
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
mov dword [rax + 0x18], ebx
mov qword [rdx + 0x18], 0xf
mov qword [rdx + 0x10], rbx
mov byte [rdx], bl
mov dword [rax + 0x18], 1
lea ecx, [rbx + 1]
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x14011ee95
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x14011ee95
lea ecx, [rbx + 1]
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rdx, rax
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, rsi
call fcn.1400031c0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14011eebc
Capabilities:
Get graphical window text

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rsi
mov rdi, rcx
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x58], rax
mov ebx, 0x800
mov r9d, 1
mov r8d, ebx
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x28]
call fcn.14000bd14
mov r8d, ebx
mov rdx, qword [rax + 8]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [rsp + 0x38]
mov rbx, qword [rsp + 0x28]
xor esi, esi
cmp eax, 0xffffffff
jne 0x14011ef44
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14011ef3b
mov eax, esi
jmp 0x14011ef48
movsxd rdx, dword [rcx - 0xc]
call fcn.1400beaac
test eax, eax
js 0x14011efa2
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x14011efa2
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], si
lea rcx, [rsp + 0x58]
call fcn.14000bbfc
mov rcx, rax
call fcn.14000baec
mov rdx, qword [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowTextW]
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14011ef9e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x14011efad
mov ecx, 0x80070057
call fcn.14000cbb8
nop
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14011efcc
Capabilities:
Get graphical window text

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov bl, r8b
mov rsi, rdx
mov rdi, rcx
xor ebp, ebp
mov dword [rax + 0x20], ebp
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rdi], rax
mov dword [rsp + 0x88], 1
xor r9d, r9d
xor r8d, r8d
mov edx, 0xd2
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_SendMessageW]
test bl, bl
je 0x14011f058
test ax, ax
je 0x14011f058
movzx r8d, ax
mov dword [rsp + 0x28], r8d
mov dword [rsp + 0x20], r8d
mov r9d, r8d
lea rdx, str._c_c_c_c
mov rcx, rdi
call fcn.14000d9c8
jmp 0x14011f0be
mov ebx, 5
lea r9d, [rbx - 4]
mov r8d, ebx
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.14000bd14
mov r8d, ebx
mov rdx, qword [rax + 8]
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [rsp + 0x48]
mov rbx, qword [rsp + 0x38]
cmp eax, 0xffffffff
jne 0x14011f0a5
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14011f09c
mov eax, ebp
jmp 0x14011f0a9
movsxd rdx, dword [rcx - 0xc]
call fcn.1400beaac
test eax, eax
js 0x14011f0c3
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x14011f0c3
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], bp
mov rax, rdi
jmp 0x14011f0ce
mov ecx, 0x80070057
call fcn.14000cbb8
nop
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x140120cc8
Capabilities:
Delete file

Disassembly:
mov rax, rsp
push r12
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rsi, rcx
or r12d, 0xffffffff
cmp qword [rcx + 0x50], 0
je 0x140120d8c
lea rdx, [rcx + 0x50]
lea rcx, [rax - 0x30]
call fcn.14009da88
nop
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x140120d16
mov rax, qword [rcx]
call qword [rax + 0x10]
and qword [rsi + 0x50], 0
mov rbx, qword [rsi + 0x58]
and qword [rsi + 0x58], 0
test rbx, rbx
je 0x140120d56
mov eax, r12d
lock xadd dword [rbx + 8], eax
add eax, r12d
jne 0x140120d56
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
add eax, r12d
jne 0x140120d56
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
nop
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x140120d8c
mov eax, r12d
lock xadd dword [rbx + 8], eax
add eax, r12d
jne 0x140120d8c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
add eax, r12d
jne 0x140120d8c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
cmp qword [rsi + 0x60], 0
je 0x140120e51
lea rdx, [rsi + 0x60]
lea rcx, [rsp + 0x38]
call fcn.14009da88
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140120db6
mov rax, qword [rcx]
call qword [rax + 0x10]
and qword [rsi + 0x60], 0
mov rbx, qword [rsi + 0x68]
and qword [rsi + 0x68], 0
test rbx, rbx
je 0x140120df5
mov eax, r12d
lock xadd dword [rbx + 8], eax
add eax, r12d
jne 0x140120df5
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
add eax, r12d
jne 0x140120df5
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
cmp qword [rsi + 0x48], 0
je 0x140120e1b
mov rcx, qword [rsi + 0x48]
test rcx, rcx
je 0x140120e10
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rsi + 0x48], 0
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x140120e51
mov eax, r12d
lock xadd dword [rbx + 8], eax
add eax, r12d
jne 0x140120e51
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
add eax, r12d
jne 0x140120e51
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop r12
ret
Function at 0x1401217c8
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x60
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov r12d, r8d
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
xor ebp, ebp
or r13d, 0xffffffff
cmp qword [rcx + 0x48], rbx
jne 0x140121883
lea rcx, [rax + 0x20]
call fcn.14002e7e0
nop
xor r8d, r8d
lea rdx, [rsp + 0xa8]
mov rcx, rdi
call fcn.1401214c8
mov ebp, eax
test eax, eax
jne 0x14012185e
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [rbx + 7]
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 0x48], rax
test rax, rax
jne 0x14012185e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rdx, qword [rsp + 0xa8]
add rdx, 0xffffffffffffffe8
mov ecx, r13d
lock xadd dword [rdx + 0x10], ecx
add ecx, r13d
test ecx, ecx
jg 0x140121883
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov rcx, qword [rdi + 0x48]
test rcx, rcx
je 0x1401218c5
test ebp, ebp
jne 0x1401218d1
test ebx, ebx
jne 0x1401218d1
and dword [rsp + 0x90], ebx
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x90]
mov r8d, r12d
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1401219e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebp, ebp
jne 0x1401218d1
test ebx, ebx
je 0x1401219e0
mov ecx, 0x30
call fcn.1400be454
mov rsi, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14012197c
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsi + 0x10], rax
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsi + 0x18], rax
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsi + 0x20], rax
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsi + 0x28], rax
mov dword [rsi], ebx
and dword [rsi + 4], 0
mov dword [rsi + 8], ebp
lea rcx, [rsi + 0x28]
call fcn.14000c82c
cmp dword [rsi + 8], 0xa
jne 0x140121976
lea rdx, [rsi + 0x28]
lea rcx, [rsi + 0x20]
call fcn.14000c244
nop
or r13d, 0xffffffff
jmp 0x14012197e
xor esi, esi
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.14009dd78
nop
lea rcx, [rdi + 0x10]
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdi, qword [rsp + 0x58]
test rdi, rdi
je 0x1401219d2
mov eax, r13d
lock xadd dword [rdi + 8], eax
add eax, r13d
jne 0x1401219d2
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r13d
lock xadd dword [rdi + 0xc], eax
add eax, r13d
jne 0x1401219d2
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
test ebp, ebp
je 0x1401219e0
mov eax, 0xd
test ebx, ebx
cmove ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x98]
add rsp, 0x60
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140121d98
Capabilities:
Check if file exists

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov rbx, rcx
mov ecx, dword [rdx]
test ecx, ecx
je 0x140121e89
dec ecx
jne 0x140121e92
cmp qword [rbx + 0x40], 0
je 0x140121e92
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x140121de0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx + 0x40], 0
mov rdx, qword [rbx + 0x38]
lea rcx, [rsp + 0x50]
call fcn.14000cb18
nop
mov rdx, qword [rbx + 0x38]
lea rcx, [rsp + 0x48]
call fcn.14000cb18
nop
lea rcx, [rsp + 0x48]
call fcn.140050bb8
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140121e45
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x140121e45
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140121e45
cmp qword [rcx + 0x18], 0
je 0x140121e45
mov rcx, qword [rcx + 0x18]
mov rax, qword [rcx]
lea rdx, [rbx + 0x38]
call qword [rax + 0x10]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140121e68
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140121e92
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140121e92
lea rcx, [rbx - 8]
call fcn.140121a08
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140122fd8
Capabilities:
Check if file exists
Get file size
Write file on windows

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp + 0x1f], 0xfffffffffffffffe
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov rax, qword [0x14045cbf0]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rdx, qword [rcx + 0x98]
lea rcx, [rbp - 0x11]
call fcn.14000cb18
nop
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140123147
lea r8, [rbp + 0x27]
xor edx, edx
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
mov r12d, eax
and qword [rbp - 9], 0
and qword [rbp - 1], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov r9d, 3
mov r8d, 0x10000000
mov rdx, qword [rbp - 0x11]
lea rcx, [rbp - 9]
call fcn.14007db5c
test eax, eax
js 0x14012311a
lea rdx, [rbp + 0xb]
mov rcx, qword [rbp - 9]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rbp + 7], eax
cmp eax, 0xffffffff
jne 0x14012309d
call fcn.14001072c
test eax, eax
mov rsi, qword [rbp + 0xf]
js 0x1401230a1
mov rsi, qword [rbp + 7]
xor ecx, ecx
call fcn.1400be8b4
mov rcx, rax
call fcn.1400c6784
xor edi, edi
test rsi, rsi
je 0x14012311a
mov qword [rbp + 0xf], rdi
xor r9d, r9d
lea r8, [rbp + 0x13]
mov edx, edi
mov rcx, qword [rbp - 9]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1401230dc
call fcn.14001072c
test eax, eax
js 0x140123111
xor eax, eax
test eax, eax
js 0x140123111
call fcn.1400c679c
mov byte [rbp - 0x19], al
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x17]
mov r8d, 1
lea rdx, [rbp - 0x19]
mov rcx, qword [rbp - 9]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140123111
call fcn.14001072c
add rdi, 5
cmp rdi, rsi
jb 0x1401230b7
test r12d, r12d
je 0x140123135
lea r9, [rbp + 0x3b]
lea r8, [rbp + 0x33]
lea rdx, [rbp + 0x2b]
mov rcx, qword [rbp - 9]
call qword [sym.imp.KERNEL32.dll_SetFileTime]
cmp qword [rbp - 9], 0
je 0x140123147
mov rcx, qword [rbp - 9]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp - 0x11]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140123166
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1400be110
lea r11, [rsp + 0xa0]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r12, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140125d88
Capabilities:
Hash data using sha1

Disassembly:
mov r9, r8
mov r8, rdx
add rcx, 0xfffffffffffffff8
mov dl, 3
jmp 0x1401252d8

Function at 0x140125da8
Capabilities:
Hash data using sha1

Disassembly:
mov r9, r8
mov r8, rdx
add rcx, 0xfffffffffffffff8
mov dl, 2
jmp 0x1401252d8
Function at 0x140128c04
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0x50
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rsi, r9
mov r12, r8
mov r13, rdx
mov rdi, rcx
xor ebp, ebp
movsxd rcx, dword [rsp + 0x90]
call fcn.1400b9290
mov rbx, rax
mov qword [rsp + 0x40], rax
mov r9, rax
mov r8d, dword [rsp + 0x90]
mov edx, dword [rsi]
mov rcx, rdi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x140128c6c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x140128cce
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x90], ebp
lea r9, [rsp + 0x90]
lea r8, [rsp + 0x30]
lea rdx, [0x140352420]
mov rcx, rbx
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x140128ca0
mov ebp, 0x490
jmp 0x140128cce
mov rcx, qword [rsp + 0x30]
test rcx, rcx
jne 0x140128caf
lea ebp, [rcx + 6]
jmp 0x140128cce
movzx eax, word [rcx + 0xc]
movzx r9d, word [rcx + 8]
movzx r8d, word [rcx + 0xa]
mov dword [rsp + 0x20], eax
mov rdx, qword [r12]
mov rcx, r13
call fcn.14000d9c8
nop
mov rcx, rbx
call fcn.1400bee7c
mov eax, ebp
lea r11, [rsp + 0x50]
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 0x140129000
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rcx
xor eax, eax
lea rdi, [rsp + 0x20]
lea edx, [rax + 0x18]
mov ecx, edx
rep stosb byte [rdi], al
mov rcx, rbx
mov dword [rsp + 0x20], edx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor edx, edx
test eax, eax
jne 0x14012903d
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140128fa0
mov edx, eax
mov eax, edx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140129050
Capabilities:
Extract resource via kernel32 functions
Read file via mapping

Disassembly:
push rdi
push r12
push r13
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rsi
mov rsi, rdx
mov rdi, rcx
mov byte [rsp + 0x80], 0
lea r8, str.BRANDING
mov edx, 0x128
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r13, rax
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r12d, eax
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov qword [rsp + 0x88], rax
and qword [rsp + 0x28], 0
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbx, rax
mov qword [rsp + 0x48], rax
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rsi, rax
mov r8d, r12d
mov rdx, r13
mov rcx, rax
call fcn.1400be580
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov sil, 1
mov byte [rsp + 0x80], sil
test rbx, rbx
je 0x14012915e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test rdi, rdi
je 0x14012916d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x140129177
mov al, sil
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop r13
pop r12
pop rdi
ret