joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003df6c
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x14008b058]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov rbx, rcx
mov rcx, qword [rcx]
call fcn.140042b64
mov rdi, rax
mov rdx, qword [rbx]
lea rcx, [rsp + 0x40]
call fcn.140042b94
nop
and dword [rsp + 0x20], 0
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
and qword [rsp + 0x38], 0
mov r8d, 0x1c
lea rdx, [rsp + 0x60]
lea rcx, [0x1400b2e90]
call fcn.140044110
nop
cmp qword [rax + 0x18], 8
jb 0x14003dff7
mov rax, qword [rax]
lea r8, [rsp + 0x28]
mov rdx, rax
mov ecx, dword [rsp + 0x20]
call fcn.140054590
mov ebx, eax
lea rcx, [rsp + 0x60]
call fcn.140001a7c
cmp ebx, 1
jle 0x14003e092
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp - 0x80]
call fcn.140014220
mov rbx, qword [rsp + 0x28]
cmp rbx, qword [rsp + 0x30]
je 0x14003e0ab
mov r8d, 0x200
lea rdx, [rbp - 0x80]
mov rcx, qword [rbx]
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
lea rax, [rbp - 0x80]
sub rdx, rax
movzx ecx, word [rax]
movzx r8d, word [rax + rdx]
sub ecx, r8d
jne 0x14003e077
add rax, 2
test r8d, r8d
jne 0x14003e061
test ecx, ecx
je 0x14003e088
add rbx, 8
cmp rbx, qword [rsp + 0x30]
jne 0x14003e036
jmp 0x14003e08b
mov rdi, qword [rbx]
mov rbx, qword [rsp + 0x28]
jmp 0x14003e0ab
mov rax, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x28]
sub rax, rbx
sar rax, 3
test rax, rax
je 0x14003e0ab
mov rdi, qword [rbx]
test rbx, rbx
je 0x14003e0fc
mov rax, qword [rsp + 0x38]
sub rax, rbx
sar rax, 3
lea rdx, [rax*8]
mov rax, rbx
cmp rdx, 0x1000
jb 0x14003e0e5
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003e12d
mov rcx, rbx
call fcn.140011b00
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x40]
call fcn.140001a7c
mov rax, rdi
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.1400117c0
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.140018100
nop
int3
Function at 0x14003ec48
Capabilities:
Create thread

Disassembly:
sub rsp, 0xc8
mov rax, qword [0x14008b058]
xor rax, rsp
mov qword [rsp + 0xb8], rax
cmp byte [0x1400b3421], 0
jne 0x14003ecd6
and dword [0x1400b3340], 0
and dword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
lea r9, [0x1400b2ec0]
lea r8, [0x140039904]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
call fcn.140055a24
mov dword [0x1400b3340], eax
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x14003eccd
xor r9d, r9d
xor r8d, r8d
mov edx, 0x502
call qword [sym.imp.USER32.dll_PostThreadMessageW]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x1400b3340], 0
je 0x14003ecee
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1400117c0
add rsp, 0xc8
ret
lea rcx, [rsp + 0x78]
call fcn.140005088
nop
call fcn.140004548
lea rdx, [rsp + 0x98]
test al, al
je 0x14003ed3f
mov r9d, 0x2b
lea r8d, [r9 - 0x18]
call fcn.14003d9e0
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140003c48
lea rcx, [rsp + 0x98]
call fcn.140002c44
lea rcx, [rsp + 0x78]
call fcn.140055610
jmp 0x14003ed68
mov r9d, 0x29
lea r8d, [r9 - 0x18]
call fcn.14003d9e0
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140003c48
lea rcx, [rsp + 0x98]
call fcn.140002c44
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x38]
call fcn.140002ad8
nop
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x58]
call fcn.140002b74
lea rdx, [0x140088648]
lea rcx, [rsp + 0x58]
call fcn.1400143b0
int3

Function at 0x14003eda0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
call fcn.1400181cc
cmp byte [0x1400b3421], 0
mov ebx, eax
jne 0x14003ee49
cmp qword [0x1400b3338], 0
jne 0x14003ee49
cmp word [0x14008f30a], 3
jne 0x14003ee19
mov eax, dword [0x14008f318]
test eax, eax
jne 0x14003ee08
cmp qword [0x14008f3f8], 0
je 0x14003ee08
cmp qword [0x14008f400], 0x10
lea rcx, [0x14008f3e8]
cmovae rcx, qword [0x14008f3e8]
call fcn.14001d3d8
mov dword [0x14008f318], eax
test al, 1
je 0x14003ee19
mov eax, dword [0x1400b3040]
shr eax, 9
test al, 1
je 0x14003ee49
lea rax, [0x1400b3344]
xor edx, edx
mov qword [rsp + 0x28], rax
lea r9, [0x14008f300]
and dword [rsp + 0x20], 0
lea r8, [0x14003caf0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1400b3348], rax
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x14003ef60
Capabilities:
Check mutex on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov rax, qword [0x14008b058]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov eax, dword [0x1400b3040]
shr eax, 0xe
test al, 1
je 0x14003f100
xor ebx, ebx
mov qword [rbp + 0x27], rbx
mov qword [rbp + 0x37], rbx
mov qword [rbp + 0x3f], rbx
lea rdx, [0x1400b2ee0]
lea rcx, [rbp + 0x27]
call fcn.140002cfc
nop
mov qword [rbp + 7], rbx
mov qword [rbp + 0x17], rbx
lea esi, [rbx + 7]
mov qword [rbp + 0x1f], rsi
mov word [rbp + 7], bx
lea rdx, [0x14007da9c]
lea rcx, [rbp + 7]
call fcn.1400024d0
nop
mov qword [rbp - 0x19], rbx
mov qword [rbp - 9], rbx
mov qword [rbp - 1], rsi
mov word [rbp - 0x19], bx
lea rdx, [0x14007da68]
lea rcx, [rbp - 0x19]
call fcn.1400024d0
nop
lea r8, [rbp + 7]
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 0x27]
call fcn.1400480f0
nop
mov edi, 0x1000
mov rdx, qword [rbp - 1]
cmp rdx, 8
jb 0x14003f051
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, rdi
jb 0x14003f04c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003f12b
call fcn.140011b00
mov qword [rbp - 9], rbx
mov qword [rbp - 1], rsi
mov word [rbp - 0x19], bx
mov rdx, qword [rbp + 0x1f]
cmp rdx, 8
jb 0x14003f099
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, rdi
jb 0x14003f094
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003f131
call fcn.140011b00
lea r8, [rbp + 0x27]
cmp qword [rbp + 0x3f], 8
cmovae r8, qword [rbp + 0x27]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x1400b3350], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14003f137
mov rdx, qword [rbp + 0x3f]
cmp rdx, 8
jb 0x14003f100
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, rdi
jb 0x14003f0fb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003f125
call fcn.140011b00
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400117c0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.140018100
nop
call fcn.140018100
nop
call fcn.140018100
int3
mov r9d, 0x2e
lea r8d, [r9 - 5]
lea rdx, [rbp + 7]
call fcn.14003d9e0
nop
lea rcx, [rbp + 7]
call fcn.140055610
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x19]
call fcn.140002ad8
nop
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x39]
call fcn.140002b74
lea rdx, [0x140088648]
lea rcx, [rbp - 0x39]
call fcn.1400143b0
int3
Function at 0x14003f55c
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x14008b058]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor edi, edi
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], send
mov byte [rbp - 0x30], dil
movzx edx, dl
lea edx, [rdx*2 + 0x401]
lea r8, [rbp - 0x30]
call fcn.14003fbbc
test al, al
je 0x14003f64c
cmp qword [rbp - 0x20], rdi
je 0x14003f64c
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rdx, qword [rbp - 0x30]
mov r8d, dword [rbp - 0x20]
lea rsi, [0x1400b32e8]
mov rcx, rsi
call fcn.140003854
test eax, eax
je 0x14003f64c
lea rax, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rax, qword [rbp - 0x30]
mov qword [rbp - 0x20], rdi
mov byte [rax], dil
mov r14, qword [0x1400b32f8]
cmp qword [0x1400b3300], 0x10
cmovae rsi, qword [0x1400b32e8]
cmp r14, qword [rbp - 0x18]
ja 0x14003f63d
lea rbx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rbx, qword [rbp - 0x30]
mov qword [rbp - 0x20], r14
mov r8, r14
mov rdx, rsi
mov rcx, rbx
call fcn.140013b70
mov byte [r14 + rbx], dil
jmp 0x14003f64c
mov r9, rsi
mov rdx, r14
lea rcx, [rbp - 0x30]
call fcn.14000309c
cmp qword [rbp - 0x20], 0xa
jbe 0x14003f691
call fcn.14003fdc8
mov rbx, rax
test rax, rax
je 0x14003f691
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rcx, qword [rbp - 0x30]
mov r9, rax
mov r8d, 1
mov rdx, qword [rbp - 0x20]
call fcn.14001dfc0
cmp rax, 1
sete dil
mov rcx, rbx
call fcn.14001da20
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x14003f6c8
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003f6c3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003f6f1
call fcn.140011b00
mov al, dil
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400117c0
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret
call fcn.140018100
int3
Function at 0x14003f700
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x14008b058]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor edi, edi
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], send
mov byte [rbp - 0x30], dil
lea r8, [rbp - 0x30]
mov edx, 0x3fa
call fcn.14003fbbc
test al, al
je 0x14003f7eb
cmp qword [rbp - 0x20], rdi
je 0x14003f7eb
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rdx, qword [rbp - 0x30]
mov r8d, dword [rbp - 0x20]
lea rsi, [0x1400b32e8]
mov rcx, rsi
call fcn.140003854
test eax, eax
je 0x14003f7eb
lea rax, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rax, qword [rbp - 0x30]
mov qword [rbp - 0x20], rdi
mov byte [rax], dil
mov r14, qword [0x1400b32f8]
cmp qword [0x1400b3300], 0x10
cmovae rsi, qword [0x1400b32e8]
cmp r14, qword [rbp - 0x18]
ja 0x14003f7dc
lea rbx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rbx, qword [rbp - 0x30]
mov qword [rbp - 0x20], r14
mov r8, r14
mov rdx, rsi
mov rcx, rbx
call fcn.140013b70
mov byte [r14 + rbx], dil
jmp 0x14003f7eb
mov r9, rsi
mov rdx, r14
lea rcx, [rbp - 0x30]
call fcn.14000309c
call fcn.14003f898
mov rbx, rax
test rax, rax
je 0x14003f829
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rcx, qword [rbp - 0x30]
mov r9, rax
mov r8d, 1
mov rdx, qword [rbp - 0x20]
call fcn.14001dfc0
cmp rax, 1
sete dil
mov rcx, rbx
call fcn.14001da20
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x14003f860
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003f85b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003f889
call fcn.140011b00
mov al, dil
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400117c0
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret
call fcn.140018100
int3
Function at 0x14003f950
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, dword [0x1400b3040]
mov edi, 1
shr eax, 0x11
test dil, al
je 0x14003f985
cmp qword [0x1400b33f0], 0
je 0x14003f985
lea rbx, [0x1400b33e0]
jmp 0x14003f9bb
cmp qword [0x1400b33f8], 0x10
lea rbx, [0x1400b33e0]
mov rax, rbx
mov r8, rbx
cmovae rax, qword [0x1400b33e0]
mov edx, 0x3fc
and qword [0x1400b33f0], 0
mov byte [rax], 0
call fcn.14003fbbc
test al, al
je 0x14003f9c3
mov rdx, rbx
call fcn.14003fcfc
call fcn.14003ff7c
mov rsi, rax
test rax, rax
je 0x14003fa29
mov r8, qword [0x1400b33f8]
mov rdx, rbx
mov r9, qword [0x1400b33e0]
cmp r8, 0x10
mov ecx, dword [0x140078f83]
cmovae rdx, r9
cmp dword [rdx], ecx
jne 0x14003fa1f
mov rdx, qword [0x1400b33f0]
mov rcx, rbx
add rdx, 0xfffffffffffffffc
cmp r8, 0x10
mov r8, rdi
cmovae rcx, r9
mov r9, rax
add rcx, 4
call fcn.14001dfc0
cmp rax, rdi
sete dil
mov rcx, rsi
call fcn.14001da20
jmp 0x14003fa2c
xor dil, dil
cmp qword [0x1400b33f8], 0x10
mov al, dil
mov rsi, qword [rsp + 0x38]
cmovae rbx, qword [0x1400b33e0]
and qword [0x1400b33f0], 0
mov byte [rbx], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14003fa60
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x830
mov rax, qword [0x14008b058]
xor rax, rsp
mov qword [rsp + 0x820], rax
cmp qword [0x1400b2f10], 0
lea rbx, [0x1400b2f00]
jne 0x14003fb97
lea rdx, [rsp + 0x20]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400024d0
cmp qword [0x1400b2f18], 8
mov rcx, rbx
cmovae rcx, qword [0x1400b2f00]
xor edx, edx
call fcn.14001d404
test eax, eax
je 0x14003fae2
lea rdx, [0x140076670]
mov rcx, rbx
call fcn.1400024d0
mov rcx, rbx
call fcn.140045af0
cmp qword [0x1400b2f10], 0
je 0x14003fb0a
cmp qword [0x1400b2f18], 8
mov rcx, rbx
cmovae rcx, qword [0x1400b2f00]
xor edx, edx
call fcn.14001d404
test eax, eax
je 0x14003fb21
lea rcx, str.TEMP
call fcn.14001e2c0
mov rdx, rax
mov rcx, rbx
call fcn.1400024d0
cmp qword [0x1400b2f10], 0
je 0x14003fb49
cmp qword [0x1400b2f18], 8
mov rcx, rbx
cmovae rcx, qword [0x1400b2f00]
xor edx, edx
call fcn.14001d404
test eax, eax
je 0x14003fb60
lea rcx, [0x14007daa0]
call fcn.14001e2c0
mov rdx, rax
mov rcx, rbx
call fcn.1400024d0
cmp qword [0x1400b2f10], 0
je 0x14003fb88
cmp qword [0x1400b2f18], 8
mov rcx, rbx
cmovae rcx, qword [0x1400b2f00]
xor edx, edx
call fcn.14001d404
test eax, eax
je 0x14003fb97
lea rdx, [0x1400b2ec0]
mov rcx, rbx
call fcn.140002bc0
mov rax, rbx
mov rcx, qword [rsp + 0x820]
xor rcx, rsp
call fcn.1400117c0
add rsp, 0x830
pop rbx
ret
Function at 0x140040970
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1370]
mov eax, 0x1470
call fcn.140012280
sub rsp, rax
mov rax, qword [0x14008b058]
xor rax, rsp
mov qword [rbp + 0x1360], rax
mov rbx, r8
mov rdi, rdx
mov r14, rcx
xor r15d, r15d
test rdx, rdx
je 0x1400409f7
cmp word [rdx], r15w
je 0x1400409f7
xor edx, edx
mov rcx, rdi
call fcn.14001d404
test eax, eax
jne 0x1400409f7
mov esi, r15d
mov rcx, rdi
call fcn.1400456d0
test al, al
je 0x1400409f7
mov rcx, rdi
call fcn.14001d974
test eax, eax
je 0x1400409f7
mov ecx, VarDecRound
call qword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x3e8
jl 0x1400409ca
test rbx, rbx
je 0x140040a40
cmp word [rbx], r15w
je 0x140040a40
xor edx, edx
mov rcx, rbx
call fcn.14001d404
test eax, eax
jne 0x140040a40
mov edi, r15d
mov rcx, rbx
call fcn.1400456d0
test al, al
je 0x140040a40
mov rcx, rbx
call fcn.14001d974
test eax, eax
je 0x140040a40
mov ecx, VarDecRound
call qword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x3e8
jl 0x140040a13
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x30], r15
mov edi, 7
mov qword [rsp + 0x38], rdi
mov word [rsp + 0x20], r15w
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], rdi
mov word [rsp + 0x40], r15w
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140047e10
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0x60]
call fcn.140014220
lea rdx, [rsp + 0x60]
mov ecx, 0x200
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebx, 0x1000
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x360]
call fcn.140014220
mov r8d, 0x800
lea rdx, [rbp + 0x360]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp qword [rsp + 0x30], r15
je 0x140040b46
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
lea rdx, [rbp + 0x360]
call fcn.140018364
test eax, eax
je 0x140040b46
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call fcn.140045760
test al, al
je 0x140040b46
lea r8, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae r8, qword [rsp + 0x20]
call fcn.140005284
cmp byte [r14 + 0x60], r15b
jne 0x140040b46
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call fcn.14001da84
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140040b80
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, rbx
jb 0x140040b7b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040bf6
call fcn.140011b00
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], rdi
mov word [rsp + 0x40], r15w
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140040bca
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, rbx
jb 0x140040bc5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040bf0
call fcn.140011b00
mov rcx, qword [rbp + 0x1360]
xor rcx, rsp
call fcn.1400117c0
mov rbx, qword [rsp + 0x14a0]
add rsp, 0x1470
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.140018100
nop
call fcn.140018100
nop
int3
Function at 0x1400455e0
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rbx, rdx
mov rsi, rcx
xor r15d, r15d
mov dword [rsp + 0x70], r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x78], r15d
lea rdx, [rsp + 0x78]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov r14d, eax
mov ecx, eax
call fcn.140011b70
mov rdi, rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x20], r15d
mov qword [rsp + 0x28], r15
mov r9, rax
mov r8d, r14d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x14004568a
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
lea rdx, [0x14007da68]
mov rcx, rdi
call qword [sym.imp.VERSION.dll_VerQueryValueW]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x14004568a
movzx eax, word [rcx + 0xa]
mov word [rbx], ax
movzx eax, word [rcx + 8]
mov word [rbx + 2], ax
movzx eax, word [rcx + 0xe]
mov word [rbx + 4], ax
movzx eax, word [rcx + 0xc]
mov word [rbx + 6], ax
mov ebx, 1
mov dword [rsp + 0x70], ebx
jmp 0x14004569e
test rdi, rdi
je 0x1400456ab
mov rcx, rdi
call fcn.140011b00
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x1400456d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
xor bl, bl
test rcx, rcx
je 0x140045701
cmp word [rcx], 0
je 0x140045701
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140045701
test al, 0x10
mov ecx, 1
movzx eax, bl
cmove eax, ecx
add rsp, 0x20
pop rbx
ret
movzx eax, bl
add rsp, 0x20
pop rbx
ret
Function at 0x140045eb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x60
xorps xmm0, xmm0
lea rcx, [rsp + 0x30]
mov rbx, rdx
xor eax, eax
lea rdx, [0x14007db48]
mov qword [rsp + 0x50], rax
movups xmmword [rsp + 0x30], xmm0
mov rdi, r9
xor esi, esi
movups xmmword [rsp + 0x40], xmm0
call fcn.140003f10
mov r8, rbx
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x1400460e3
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400460e3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r12, rax
test rax, rax
je 0x1400460e3
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x1400460e3
mov rcx, qword [rdi + 0x10]
lea r15, [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
movsxd rbp, eax
lea rbx, [rbp + 1]
cmp rbx, rcx
ja 0x140045f7d
mov rax, rdi
cmp rdx, 0x10
jb 0x140045f77
mov rax, qword [rdi]
mov byte [rax + rbx], sil
jmp 0x140045fc1
mov rax, rdx
sub rbx, rcx
sub rax, rcx
cmp rbx, rax
ja 0x140045fb3
mov rax, rdi
cmp rdx, 0x10
jb 0x140045f97
mov rax, qword [rdi]
lea r14, [rax + rcx]
test rbx, rbx
je 0x140045fad
mov r8, rbx
xor edx, edx
mov rcx, r14
call fcn.140014220
mov byte [r14 + rbx], sil
jmp 0x140045fc1
mov r9, rbx
mov rdx, rbx
mov rcx, rdi
call fcn.140006140
cmp qword [rdi + 0x18], 0x10
mov rax, rdi
jb 0x140045fce
mov rax, qword [rdi]
mov qword [r15], rsi
mov byte [rax], sil
mov r14, qword [rdi + 0x18]
cmp rbp, r14
ja 0x140046000
cmp r14, 0x10
jb 0x140045fe6
mov rdi, qword [rdi]
mov r8, rbp
mov qword [r15], rbp
mov rdx, r12
mov rcx, rdi
call fcn.140013b70
mov byte [rdi + rbp], sil
jmp 0x1400460de
movabs rbx, 0x7fffffffffffffff
cmp rbp, rbx
ja 0x140046104
mov rcx, rbp
or rcx, 0xf
cmp rcx, rbx
ja 0x140046059
mov rdx, r14
mov rax, rbx
shr rdx, 1
sub rax, rdx
cmp r14, rax
ja 0x140046059
lea rax, [rdx + r14]
mov rbx, rcx
cmp rcx, rax
cmovb rbx, rax
lea rax, [rbx + 1]
cmp rax, 0x1000
jb 0x14004607f
lea rcx, [rax + 0x27]
cmp rcx, rax
jbe 0x14004610a
jmp 0x140046063
movabs rcx, 0x8000000000000027
call fcn.140011b08
test rax, rax
je 0x140046110
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x14004608f
test rax, rax
je 0x14004608f
mov rcx, rax
call fcn.140011b08
mov rsi, rax
mov r8, rbp
mov qword [r15], rbp
mov rdx, r12
mov qword [rdi + 0x18], rbx
mov rcx, rsi
call fcn.140013b70
mov byte [rsi + rbp], 0
cmp r14, 0x10
jb 0x1400460db
mov rcx, qword [rdi]
lea rdx, [r14 + 1]
cmp rdx, 0x1000
jb 0x1400460d6
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140046110
mov rcx, r8
call fcn.140011b00
mov qword [rdi], rsi
mov esi, 1
lea r11, [rsp + 0x60]
mov eax, esi
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
call fcn.14000235c
int3
call fcn.140001814
int3
call fcn.140018100
int3