joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005cef0
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rdx + 8]
mov rbx, rdx
test rax, rax
je 0x14005cf07
mov r8, qword [rax]
jmp 0x14005cf0a
xor r8d, r8d
mov dword [rsp + 0x28], 1
lea rdx, str.open
xor r9d, r9d
mov qword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rcx, qword [rbx + 8]
lea rax, [0x140209838]
mov qword [rbx], rax
test rcx, rcx
je 0x14005cf65
cmp byte [rbx + 0x10], 0
je 0x14005cf59
call sub.libcef.dll_cef_string_utf16_clear
mov rcx, qword [rbx + 8]
mov edx, SafeArrayPutElement
call fcn.140157a40
mov qword [rbx + 8], 0
mov byte [rbx + 0x10], 0
add rsp, 0x30
pop rbx
ret
Function at 0x140068670
Capabilities:
Identify system language via api

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x140278ec8]
xor rax, rsp
mov qword [rbp + 0x3f], rax
movdqa xmm0, xmmword [0x14020a0a0]
mov rdi, rdx
mov rbx, rcx
mov byte [rbp - 0x21], 0
lea rdx, str.SELECT_Caption__Version_FROM_Win32_OperatingSystem
mov r8d, 0x32
lea rcx, [rbp - 0x21]
movdqu xmmword [rbp - 0x11], xmm0
call fcn.140013b20
lea rax, [0x14020e478]
mov qword [rbp + 7], rdi
mov qword [rbp - 1], rax
lea r8, [rbp - 1]
lea rax, [rbp - 1]
mov rcx, rbx
lea rdx, [rbp - 0x21]
mov qword [rbp + 0x37], rax
call fcn.140065f10
mov rdx, qword [rbp - 9]
cmp rdx, 0x10
jb 0x14006871d
mov rcx, qword [rbp - 0x21]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140068718
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006887f
call fcn.140157a40
mov qword [rsp + 0xd0], r14
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edx, ax
lea rcx, [rbp - 1]
call fcn.140069920
lea r14, [0x140209838]
mov qword [rbp - 0x31], 0
mov qword [rbp - 0x39], r14
mov rbx, rax
mov byte [rbp - 0x29], 0
cmp qword [rax + 0x10], 0
je 0x140068796
mov ecx, SafeArrayPutElement
call fcn.140157a04
mov qword [rbp - 0x31], rax
xor ecx, ecx
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], rcx
mov byte [rbp - 0x29], 1
cmp qword [rbx + 0x18], 8
mov rdx, qword [rbx + 0x10]
jb 0x140068784
mov rbx, qword [rbx]
mov r8, qword [rbp - 0x31]
mov r9d, 1
mov rcx, rbx
call sub.libcef.dll_cef_string_utf16_set
lea rdx, str.UserDefaultUILanguage
lea rcx, [rbp - 0x21]
call fcn.140005020
mov rcx, qword [rdi]
lea r8, [rbp - 0x39]
lea rdx, [rbp - 0x21]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SetErrorInfo]
mov rcx, qword [rbp - 0x19]
mov qword [rbp - 0x21], r14
test rcx, rcx
je 0x1400687ec
cmp byte [rbp - 0x11], 0
je 0x1400687e0
call sub.libcef.dll_cef_string_utf16_clear
mov rcx, qword [rbp - 0x19]
mov edx, SafeArrayPutElement
call fcn.140157a40
mov qword [rbp - 0x19], 0
mov byte [rbp - 0x11], 0
mov rcx, qword [rbp - 0x31]
mov qword [rbp - 0x39], r14
mov r14, qword [rsp + 0xd0]
test rcx, rcx
je 0x140068826
cmp byte [rbp - 0x29], 0
je 0x14006881a
call sub.libcef.dll_cef_string_utf16_clear
mov rcx, qword [rbp - 0x31]
mov edx, SafeArrayPutElement
call fcn.140157a40
mov qword [rbp - 0x31], 0
mov byte [rbp - 0x29], 0
mov rdx, qword [rbp + 0x17]
cmp rdx, 8
jb 0x140068862
mov rcx, qword [rbp - 1]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006885d
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140068879
call fcn.140157a40
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140157ae0
add rsp, 0xa0
pop rdi
pop rbx
pop rbp
ret
call fcn.140195efc
int3
call fcn.140195efc
int3
Function at 0x14006fc80
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x2a0
mov rax, qword [0x140278ec8]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov r15, rdx
mov dword [rsp + 0x30], 0x238
xor edx, edx
mov r14, rcx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
xor ebp, ebp
lea rdx, [rsp + 0x30]
mov rcx, rax
mov qword [r14], rbp
mov qword [r14 + 8], rbp
mov rbx, rax
mov qword [r14 + 0x10], rbp
call sub.KERNEL32.dll_Process32FirstW
cmp eax, 1
jne 0x14006fe4f
lea rdx, [rsp + 0x30]
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
jne 0x14006fe4f
mov qword [rsp + 0x280], rbp
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x288], 7
mov r8, 0xffffffffffffffff
mov word [rsp + 0x270], bp
nop dword [rax]
inc r8
cmp word [rax + r8*2], bp
jne 0x14006fd30
lea rdx, [rsp + 0x5c]
lea rcx, [rsp + 0x270]
call fcn.1400258a0
cmp qword [r15 + 0x18], 8
mov rax, r15
jb 0x14006fd59
mov rax, qword [r15]
mov rsi, qword [rsp + 0x288]
lea r8, [rsp + 0x270]
mov rdi, qword [rsp + 0x270]
cmp rsi, 8
mov rdx, qword [rsp + 0x280]
cmovae r8, rdi
cmp rdx, qword [r15 + 0x10]
jne 0x14006fe02
test rdx, rdx
je 0x14006fda4
sub r8, rax
nop
movzx ecx, word [rax]
cmp word [r8 + rax], cx
jne 0x14006fe02
add rax, 2
sub rdx, 1
jne 0x14006fd90
mov r8d, dword [rsp + 0x38]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdx, qword [r14 + 8]
mov ecx, dword [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], ecx
cmp qword [r14 + 0x10], rdx
je 0x14006fddf
mov qword [rdx], rax
mov dword [rdx + 8], ecx
add qword [r14 + 8], 0x10
mov qword [rsp + 0x20], rbp
jmp 0x14006fe02
lea r8, [rsp + 0x20]
mov rcx, r14
call fcn.14006c9f0
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14006fe02
cmp rcx, 0xffffffffffffffff
je 0x14006fe02
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rsi, 8
jb 0x14006fe39
lea rdx, [rsi*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x14006fe31
mov rdi, qword [rdi - 8]
add rdx, 0x27
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006fe92
mov rcx, rdi
call fcn.140157a40
lea rdx, [rsp + 0x30]
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
je 0x14006fd01
lea rcx, [rbx - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x14006fe62
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, r14
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140157ae0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call fcn.140195efc
int3
Function at 0x14006fea0
Capabilities:
Create thread

Disassembly:
push rbx
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rdi, qword [0x14027c9f0]
xor r12d, r12d
mov r15, rdx
mov r14, rcx
test rdi, rdi
jne 0x14006ffbf
mov ecx, 0xf0
call fcn.140157a04
mov rdi, rax
test rax, rax
je 0x14006ff96
mov rbx, qword [0x140278c78]
lea rcx, [rax + 0x48]
xorps xmm0, xmm0
mov dword [rax], 1
mov qword [rax + 8], r12
lea edx, [r12 + 2]
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], r12
mov qword [rax + 0x20], r12
mov qword [rax + 0x28], r12
mov qword [rax + 0x30], r12
movups xmmword [rax + 0x38], xmm0
call fcn.140138740
lea rcx, [rdi + 0x98]
call fcn.140138c2c
lea ecx, [r12 + 0x10]
mov qword [rdi + 0xe0], rbx
mov byte [rdi + 0xe8], r12b
call fcn.140157a04
test rax, rax
je 0x14006ff4f
lea rcx, [0x1400703e0]
mov qword [rax], rdi
mov qword [rax + 8], rcx
jmp 0x14006ff52
mov rax, r12
lea rcx, [rsp + 0x38]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea r8, [0x14006d5a0]
xor ecx, ecx
mov dword [rsp + 0x20], r12d
xor edx, edx
call fcn.1401b1b94
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140070096
movaps xmm1, xmmword [rsp + 0x30]
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x30], xmm0
movups xmmword [rdi + 0x38], xmm1
jmp 0x14006ff99
mov rdi, r12
mov rdx, qword [0x14027c9f0]
mov qword [0x14027c9f0], rdi
test rdx, rdx
je 0x14006ffbf
lea rcx, [0x14027c9f0]
call fcn.14006f270
mov rdi, qword [0x14027c9f0]
lea rcx, [rdi + 0x48]
mov qword [rsp + 0x70], rbp
call fcn.140138770
test eax, eax
jne 0x1400700a6
mov qword [rsp + 0x78], rsi
lea ecx, [rax + 0x38]
mov esi, dword [rdi]
call fcn.140157a04
mov rbx, rax
test rax, rax
je 0x14007000c
mov dword [rax], esi
mov rdx, r15
mov rcx, qword [r14]
mov qword [r14], r12
mov qword [rax + 8], rcx
lea rcx, [rax + 0x10]
call fcn.1400056c0
mov word [rbx + 0x30], 0x100
jmp 0x14007000f
mov rbx, r12
mov rdx, qword [rdi + 0x10]
lea rcx, [rdi + 8]
mov qword [rsp + 0x80], rbx
cmp qword [rcx + 0x10], rdx
je 0x14007002f
mov qword [rdx], rbx
add qword [rcx + 8], 8
jmp 0x140070056
lea r8, [rsp + 0x80]
call fcn.14006cbb0
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x140070056
lea rcx, [rsp + 0x80]
call fcn.14006f120
inc dword [rdi]
lea rcx, [rdi + 0x48]
call fcn.1401387ec
test eax, eax
jne 0x1400700ae
lea rcx, [rdi + 0x98]
call fcn.140138c34
test eax, eax
jne 0x14007008e
mov rbp, qword [rsp + 0x70]
mov eax, esi
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rbx
ret
mov ecx, eax
call fcn.140138d44
int3
mov ecx, 6
mov dword [rsp + 0x38], r12d
call fcn.140138d80
int3
mov ecx, eax
call fcn.140138d44
int3
mov ecx, eax
call fcn.140138d44
int3
Function at 0x14007d8f0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
lea r8, [0x14007d090]
mov rbx, rdx
mov qword [rsp + 0x28], rax
mov r9, rdx
mov dword [rsp + 0x20], eax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0xe8], rax
add rsp, 0x30
pop rbx
ret
Function at 0x140084910
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140278ec8]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400849e5
cmp byte [rcx + 0x71], 0
je 0x1400849e5
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + SafeArrayPutElement]
cmp eax, 0xffffffff
je 0x1400849e1
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
je 0x1400849a4
sub eax, 1
je 0x1400849a8
cmp eax, 2
jne 0x1400849e1
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140157ae0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400849d8
lfence
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call fcn.1401b0d0c
cmp rdi, rax
jne 0x1400849e1
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14008498c
xor al, al
jmp 0x14008498c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140157ae0
add rsp, 0x60
pop rbx
ret
Function at 0x140093f90
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x190
xorps xmm0, xmm0
lea rax, str.open
xor ebx, ebx
cmp qword [rcx + 0x18], 8
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x20], WSACleanup
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x1a0], ebx
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
jb 0x140093fed
mov rcx, qword [rcx]
mov qword [rsp + 0x38], rcx
cmp qword [rdx + 0x10], rbx
jbe 0x140094009
cmp qword [rdx + 0x18], 8
jb 0x140094002
mov rdx, qword [rdx]
mov qword [rsp + 0x40], rdx
jmp 0x14009400e
mov qword [rsp + 0x40], rbx
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x50], 1
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp eax, 1
sete sil
je 0x1400940a0
call sub.libcef.dll_cef_get_min_log_level
cmp eax, 2
jg 0x14009408e
mov r9d, 2
mov qword [rsp + 0x1a8], rdi
mov r8d, 0x33f
lea rdx, str.D:uworkspace03_27cefwinauto_srcquery_handler_win.cc
lea rcx, [rsp + 0x90]
call fcn.1400c7000
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rbx + 8]
mov edi, eax
lea rdx, str.Unable_to_start_process._Error:
call fcn.1400025c0
mov rcx, rax
mov edx, edi
call fcn.140050530
mov rdi, qword [rsp + 0x1a8]
mov ebx, 1
test bl, 1
je 0x1400940a0
lea rcx, [rsp + 0x90]
call fcn.1400c7360
mov rbx, qword [rsp + 0x1b0]
movzx eax, sil
add rsp, 0x190
pop rsi
ret
Function at 0x140098e40
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140278ec8]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140098f17
cmp byte [rcx + 0x72], 0
je 0x140098f17
mov rax, qword [rcx]
mov qword [rsp + 0x78], rdi
mov edi, 0xffff
mov edx, edi
call qword [rax + SafeArrayPutElement]
cmp di, ax
je 0x140098f13
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
je 0x140098ed6
sub eax, 1
je 0x140098eda
cmp eax, 2
jne 0x140098f13
mov byte [rbx + 0x72], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140157ae0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x72], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140098f0a
lfence
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call fcn.1401b0d0c
cmp rdi, rax
jne 0x140098f13
cmp byte [rbx + 0x72], 0
sete al
jmp 0x140098ebe
xor al, al
jmp 0x140098ebe
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140157ae0
add rsp, 0x60
pop rbx
ret

Function at 0x14009a3c0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
mov esi, edi
test rcx, rcx
je 0x14009a49f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebp, eax
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rbx + rdx*2], si
jne 0x14009a3f7
lea ecx, [rax + 1]
add rdx, rcx
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x14009a4a2
mov edx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r8d, eax
lea ecx, [r8 - 1]
cmp word [rsi + rcx*2], 0x5c
je 0x14009a446
mov eax, 0x5c
mov word [rsi + r8*2], ax
inc r8d
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], di
jne 0x14009a450
test rax, rax
je 0x14009a49f
lfence
mov rdx, rdi
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rbx + rdx*2]
lea ecx, [rdi + r8]
inc edi
mov word [rsi + rcx*2], ax
mov edx, edi
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x14009a490
cmp rdx, rax
jb 0x14009a470
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14009f490
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x30
mov rbx, rcx
xor ebp, ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x14009f6be
xor edx, edx
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], dx
jne 0x14009f4c0
test rax, rax
je 0x14009f4f4
xor ecx, ecx
movzx r8d, word [rbx + rcx*2]
cmp r8w, 0x5c
je 0x14009f6be
cmp r8w, 0x2f
je 0x14009f6be
inc edx
mov ecx, edx
cmp rcx, rax
jb 0x14009f4d0
mov qword [rsp + 0x40], rsi
mov rcx, rbx
mov qword [rsp + 0x48], rdi
call fcn.14009f6e0
mov rsi, rax
test rax, rax
je 0x14009f5ee
mov qword [rsp + 0x50], r14
call fcn.1400a0580
mov r14, rax
test rax, rax
je 0x14009f5db
mov rcx, rsi
call fcn.14009a220
test eax, eax
je 0x14009f5c4
lea rax, str.system32_
mov qword [rsp + 0x20], rax
lea rdi, [rsp + 0x20]
lea rax, str.SystemRoot_system32_
mov qword [rsp + 0x28], rax
nop word [rax + rax]
mov rdx, qword [rdi]
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rdx + rbx*2], bp
jne 0x14009f570
mov r8, rbx
mov rcx, rsi
call fcn.1401b545c
test eax, eax
je 0x14009f598
add rdi, 8
lea rax, [rsp + 0x30]
cmp rdi, rax
jb 0x14009f560
jmp 0x14009f5a7
lea rdx, [rsi + rbx*2]
mov rcx, r14
call fcn.14009dc80
mov rbp, rax
lea rax, [rsp + 0x30]
cmp rdi, rax
jne 0x14009f5d2
mov rcx, rsi
call fcn.14009a1d0
test eax, eax
je 0x14009f5d2
mov rbp, rsi
xor esi, esi
jmp 0x14009f5d2
mov rdx, rsi
mov rcx, r14
call fcn.14009dc80
mov rbp, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r14, qword [rsp + 0x50]
jmp 0x14009f68a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7e
jne 0x14009f693
mov rcx, rbx
call fcn.14009a0d0
mov rdi, rax
test rax, rax
je 0x14009f693
mov ecx, 0x37e4
call fcn.14009ced0
test eax, eax
je 0x14009f628
xor ecx, ecx
call fcn.1400a0220
jmp 0x14009f62d
call fcn.1400a0580
mov rbx, rax
test rax, rax
je 0x14009f681
mov rdx, rdi
mov rcx, rax
call fcn.14009dc80
mov rbp, rax
test rax, rax
je 0x14009f678
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14009f65a
test al, 0x50
je 0x14009f678
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14009f66d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor ebp, ebp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbp, rbp
je 0x14009f693
xor ecx, ecx
jmp 0x14009f6a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14009f6a6
lea ecx, [rax + 0x7e]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsp + 0x48]
mov rax, rbp
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop rbp
ret
Function at 0x1400a0580
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov ecx, 0x40
add rdx, rdx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x1400a05e2
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1400a05d7
cmp edi, eax
jb 0x1400a05d7
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x40
mov rbx, rcx
mov r14d, r8d
xor ecx, ecx
mov ebp, edx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x1400a0d17
movzx eax, word [rbx]
cmp eax, 0x5c
je 0x1400a0c03
cmp eax, 0x2f
je 0x1400a0c03
mov ecx, eax
call fcn.1401b4dd0
test eax, eax
je 0x1400a0d17
cmp word [rbx + 2], 0x3a
jne 0x1400a0d17
movzx eax, word [rbx + 4]
cmp ax, 0x5c
je 0x1400a0c03
cmp ax, 0x2f
jne 0x1400a0d17
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400a0cfb
test al, 0x50
jne 0x1400a0cfb
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov edx, 0x80000000
mov rcx, rbx
mov qword [rsp + 0x68], rsi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400a0c70
lea ecx, [rax + 0x21]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [rsp + 0x68]
mov rax, rdi
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
test r14d, r14d
mov dword [rsp + 0x60], edi
lea rdx, [rsp + 0x60]
mov rcx, rbx
cmove rdx, rdi
call fcn.1400a1600
test eax, eax
je 0x1400a0ca2
test r14d, r14d
je 0x1400a0cb6
cmp dword [rsp + 0x60], edi
jne 0x1400a0cb6
mov ecx, 0x80092009
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.14009d240
test eax, eax
je 0x1400a0ccd
and ebp, 0xffffe8f7
xor edx, edx
mov r8d, ebp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rsi, rsi
je 0x1400a0ceb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x1400a0c5a
xor ecx, ecx
jmp 0x1400a0c54
mov ecx, 0x7e
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x70]
mov rax, rdi
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
Function at 0x1400bb4e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea r8, [0x140211e10]
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x1400bb5c8
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400bb5c8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rsi
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_SHCreateMemStream]
mov rdi, rax
test rax, rax
je 0x1400bb5c8
mov ecx, SafeArrayPutElement
call sub.gdiplus.dll_GdipAlloc
mov rbx, rax
test rax, rax
je 0x1400bb5ab
lea rax, [0x140211e00]
mov qword [rbx + 8], 0
lea rdx, [rbx + 8]
mov qword [rbx], rax
mov rcx, rdi
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [rbx + 0x10], eax
mov rcx, rdi
mov rdx, qword [rdi]
call qword [rdx + 0x10]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rdx, qword [rdi]
xor ebx, ebx
mov rcx, rdi
call qword [rdx + 0x10]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret