joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140068c10
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 [0x14026de28]
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 0x140068ddf
lea rdx, [rsp + 0x30]
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
jne 0x140068ddf
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 0x140068cc0
lea rdx, [rsp + 0x5c]
lea rcx, [rsp + 0x270]
call fcn.140025490
cmp qword [r15 + 0x18], 8
mov rax, r15
jb 0x140068ce9
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 0x140068d92
test rdx, rdx
je 0x140068d34
sub r8, rax
nop
movzx ecx, word [rax]
cmp word [r8 + rax], cx
jne 0x140068d92
add rax, 2
sub rdx, 1
jne 0x140068d20
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 0x140068d6f
mov qword [rdx], rax
mov dword [rdx + 8], ecx
add qword [r14 + 8], 0x10
mov qword [rsp + 0x20], rbp
jmp 0x140068d92
lea r8, [rsp + 0x20]
mov rcx, r14
call fcn.140065970
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140068d92
cmp rcx, 0xffffffffffffffff
je 0x140068d92
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rsi, 8
jb 0x140068dc9
lea rdx, [rsi*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140068dc1
mov rdi, qword [rdi - 8]
add rdx, 0x27
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140068e22
mov rcx, rdi
call fcn.14014e088
lea rdx, [rsp + 0x30]
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
je 0x140068c91
lea rcx, [rbx - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140068df2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, r14
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.14014e130
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.14018c54c
int3
Function at 0x140068e30
Capabilities:
Create thread

Disassembly:
push rbx
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rdi, qword [0x140271950]
xor r12d, r12d
mov r15, rdx
mov r14, rcx
test rdi, rdi
jne 0x140068f4f
mov ecx, 0xf0
call fcn.14014e04c
mov rdi, rax
test rax, rax
je 0x140068f26
mov rbx, qword [0x14026dbf0]
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.14012ed3c
lea rcx, [rdi + 0x98]
call fcn.14012f228
lea ecx, [r12 + 0x10]
mov qword [rdi + 0xe0], rbx
mov byte [rdi + 0xe8], r12b
call fcn.14014e04c
test rax, rax
je 0x140068edf
lea rcx, [0x140069370]
mov qword [rax], rdi
mov qword [rax + 8], rcx
jmp 0x140068ee2
mov rax, r12
lea rcx, [rsp + 0x38]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea r8, [0x140066520]
xor ecx, ecx
mov dword [rsp + 0x20], r12d
xor edx, edx
call fcn.1401a81e4
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140069026
movaps xmm1, xmmword [rsp + 0x30]
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x30], xmm0
movups xmmword [rdi + 0x38], xmm1
jmp 0x140068f29
mov rdi, r12
mov rdx, qword [0x140271950]
mov qword [0x140271950], rdi
test rdx, rdx
je 0x140068f4f
lea rcx, [0x140271950]
call fcn.140068200
mov rdi, qword [0x140271950]
lea rcx, [rdi + 0x48]
mov qword [rsp + 0x70], rbp
call fcn.14012ed6c
test eax, eax
jne 0x140069036
mov qword [rsp + 0x78], rsi
lea ecx, [rax + 0x38]
mov esi, dword [rdi]
call fcn.14014e04c
mov rbx, rax
test rax, rax
je 0x140068f9c
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.140005600
mov word [rbx + 0x30], 0x100
jmp 0x140068f9f
mov rbx, r12
mov rdx, qword [rdi + 0x10]
lea rcx, [rdi + 8]
mov qword [rsp + 0x80], rbx
cmp qword [rcx + 0x10], rdx
je 0x140068fbf
mov qword [rdx], rbx
add qword [rcx + 8], 8
jmp 0x140068fe6
lea r8, [rsp + 0x80]
call fcn.140065b30
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x140068fe6
lea rcx, [rsp + 0x80]
call fcn.1400680b0
inc dword [rdi]
lea rcx, [rdi + 0x48]
call fcn.14012ede8
test eax, eax
jne 0x14006903e
lea rcx, [rdi + 0x98]
call fcn.14012f230
test eax, eax
jne 0x14006901e
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.14012f340
int3
mov ecx, 6
mov dword [rsp + 0x38], r12d
call fcn.14012f37c
int3
mov ecx, eax
call fcn.14012f340
int3
mov ecx, eax
call fcn.14012f340
int3
Function at 0x140076860
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
lea r8, [0x140076000]
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 0x14007d570
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14026de28]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14007d645
cmp byte [rcx + 0x71], 0
je 0x14007d645
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + SafeArrayPutElement]
cmp eax, 0xffffffff
je 0x14007d641
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 0x14007d604
sub eax, 1
je 0x14007d608
cmp eax, 2
jne 0x14007d641
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14014e130
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14007d638
lfence
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call fcn.1401a735c
cmp rdi, rax
jne 0x14007d641
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14007d5ec
xor al, al
jmp 0x14007d5ec
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14014e130
add rsp, 0x60
pop rbx
ret
Function at 0x14008cc70
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 0x14008cccd
mov rcx, qword [rcx]
mov qword [rsp + 0x38], rcx
cmp qword [rdx + 0x10], rbx
jbe 0x14008cce9
cmp qword [rdx + 0x18], 8
jb 0x14008cce2
mov rdx, qword [rdx]
mov qword [rsp + 0x40], rdx
jmp 0x14008ccee
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 0x14008cd80
call sub.libcef.dll_cef_get_min_log_level
cmp eax, 2
jg 0x14008cd6e
mov r9d, 2
mov qword [rsp + 0x1a8], rdi
mov r8d, 0x33f
lea rdx, str.C:uworkspace03_20cefwinauto_srcquery_handler_win.cc
lea rcx, [rsp + 0x90]
call fcn.1400be000
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.140002500
mov rcx, rax
mov edx, edi
call fcn.140049cc0
mov rdi, qword [rsp + 0x1a8]
mov ebx, 1
test bl, 1
je 0x14008cd80
lea rcx, [rsp + 0x90]
call fcn.1400be360
mov rbx, qword [rsp + 0x1b0]
movzx eax, sil
add rsp, 0x190
pop rsi
ret
Function at 0x140091b70
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14026de28]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140091c47
cmp byte [rcx + 0x72], 0
je 0x140091c47
mov rax, qword [rcx]
mov qword [rsp + 0x78], rdi
mov edi, 0xffff
mov edx, edi
call qword [rax + SafeArrayPutElement]
cmp di, ax
je 0x140091c43
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 0x140091c06
sub eax, 1
je 0x140091c0a
cmp eax, 2
jne 0x140091c43
mov byte [rbx + 0x72], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14014e130
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x72], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140091c3a
lfence
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call fcn.1401a735c
cmp rdi, rax
jne 0x140091c43
cmp byte [rbx + 0x72], 0
sete al
jmp 0x140091bee
xor al, al
jmp 0x140091bee
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14014e130
add rsp, 0x60
pop rbx
ret
Function at 0x1400967a0
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 0x14009687f
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 0x1400967d7
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 0x140096882
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 0x140096826
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 0x140096830
test rax, rax
je 0x14009687f
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 0x140096870
cmp rdx, rax
jb 0x140096850
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 0x14009b0d0
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 0x14009b303
xor edx, edx
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], dx
jne 0x14009b100
test rax, rax
je 0x14009b134
xor ecx, ecx
movzx r8d, word [rbx + rcx*2]
cmp r8w, 0x5c
je 0x14009b303
cmp r8w, 0x2f
je 0x14009b303
inc edx
mov ecx, edx
cmp rcx, rax
jb 0x14009b110
mov qword [rsp + 0x40], rsi
mov rcx, rbx
mov qword [rsp + 0x48], rdi
call fcn.14009b320
mov rsi, rax
test rax, rax
je 0x14009b22e
mov qword [rsp + 0x50], r14
call fcn.14009c080
mov r14, rax
test rax, rax
je 0x14009b21b
mov rcx, rsi
call fcn.140096600
test eax, eax
je 0x14009b204
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 0x14009b1b0
mov r8, rbx
mov rcx, rsi
call fcn.1401abaac
test eax, eax
je 0x14009b1d8
add rdi, 8
lea rax, [rsp + 0x30]
cmp rdi, rax
jb 0x14009b1a0
jmp 0x14009b1e7
lea rdx, [rsi + rbx*2]
mov rcx, r14
call fcn.140099dd0
mov rbp, rax
lea rax, [rsp + 0x30]
cmp rdi, rax
jne 0x14009b212
mov rcx, rsi
call fcn.1400965b0
test eax, eax
je 0x14009b212
mov rbp, rsi
xor esi, esi
jmp 0x14009b212
mov rdx, rsi
mov rcx, r14
call fcn.140099dd0
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 0x14009b2cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7e
jne 0x14009b2d8
mov rcx, rbx
call fcn.1400964b0
mov rdi, rax
test rax, rax
je 0x14009b2d8
mov ecx, 0x37e4
call fcn.140099030
test eax, eax
je 0x14009b26d
lea rcx, [0x140206280]
call fcn.14009bdb0
jmp 0x14009b272
call fcn.14009c080
mov rbx, rax
test rax, rax
je 0x14009b2c6
mov rdx, rdi
mov rcx, rax
call fcn.140099dd0
mov rbp, rax
test rax, rax
je 0x14009b2bd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14009b29f
test al, 0x50
je 0x14009b2bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14009b2b2
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 0x14009b2d8
xor ecx, ecx
jmp 0x14009b2e5
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14009b2eb
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 0x14009c080
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 0x14009c0e2
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14009c0d7
cmp edi, eax
jb 0x14009c0d7
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 0x14009c480
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rbx, rcx
mov ebp, r8d
xor ecx, ecx
mov r14d, edx
xor esi, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x14009c5de
movzx eax, word [rbx]
cmp eax, 0x5c
je 0x14009c4e9
cmp eax, 0x2f
je 0x14009c4e9
mov ecx, eax
call fcn.1401ab420
test eax, eax
je 0x14009c5de
cmp word [rbx + 2], 0x3a
jne 0x14009c5de
movzx eax, word [rbx + 4]
cmp ax, 0x5c
je 0x14009c4e9
cmp ax, 0x2f
jne 0x14009c5de
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14009c5d7
test al, 0x50
jne 0x14009c5d7
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov edx, 0x80000000
mov rcx, rbx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14009c53a
lea ecx, [rax + 0x21]
jmp 0x14009c5e3
mov rcx, rbx
call fcn.140098d60
test eax, eax
jne 0x14009c5ac
test ebp, ebp
mov dword [rsp + 0x60], esi
lea rdx, [rsp + 0x60]
mov rcx, rbx
cmove rdx, rsi
call fcn.14009d280
test eax, eax
je 0x14009c576
test ebp, ebp
je 0x14009c5ac
cmp dword [rsp + 0x60], esi
jne 0x14009c5ac
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.140099390
test eax, eax
jne 0x14009c5ac
test rdi, rdi
je 0x14009c5a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14009c5ec
mov r8d, r14d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
test rdi, rdi
je 0x14009c5e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
jmp 0x14009c5e3
mov ecx, 0x7e
jmp 0x14009c5e3
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x14009c890
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 0x14009c9f6
movzx eax, word [rbx]
cmp eax, 0x5c
je 0x14009c8f3
cmp eax, 0x2f
je 0x14009c8f3
mov ecx, eax
call fcn.1401ab420
test eax, eax
je 0x14009c9f6
cmp word [rbx + 2], 0x3a
jne 0x14009c9f6
movzx eax, word [rbx + 4]
cmp ax, 0x5c
je 0x14009c8f3
cmp ax, 0x2f
jne 0x14009c9f6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14009c9da
test al, 0x50
jne 0x14009c9da
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 0x14009c960
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.14009d280
test eax, eax
je 0x14009c992
test r14d, r14d
je 0x14009c9a6
cmp dword [rsp + 0x60], edi
jne 0x14009c9a6
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.140099390
test eax, eax
je 0x14009c9bd
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 0x14009c94a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
jmp 0x14009c944
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 0x1400b43c0
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, [0x140207c08]
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x1400b44a8
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400b44a8
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 0x1400b44a8
mov ecx, SafeArrayPutElement
call sub.gdiplus.dll_GdipAlloc
mov rbx, rax
test rax, rax
je 0x1400b448b
lea rax, [0x140207bf8]
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
Function at 0x1400ba6f0
Capabilities:
Check os version
Get common file path

Disassembly:
mov qword [rsp + 0x18], rsi
push rbp
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x14026de28]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov rax, qword [0x1402724f0]
xor esi, esi
mov dword [rsp + 0x30], esi
test rax, rax
jne 0x1400ba949
xor edx, edx
lea rcx, [rbp + 0x64]
mov r8d, 0x110
call fcn.14017e440
lea rcx, [rbp + 0x60]
mov dword [rbp + 0x60], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rbp + 0x64], 5
ja 0x1400ba764
jne 0x1400ba942
cmp dword [rbp + 0x68], 1
jb 0x1400ba942
mov edx, 0x104
lea rcx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1400ba7cb
call sub.libcef.dll_cef_get_min_log_level
cmp eax, 2
jg 0x1400ba7b4
mov r9d, 2
lea rdx, str.C:uworkspace03_20cefwinauto_srccbwcef_dark_aero_window.cpp
lea rcx, [rsp + 0x38]
lea r8d, [r9 + 0x49]
call fcn.1400be000
lea rdx, str.Couldnt_find_system_path
lea rcx, [rax + 8]
call fcn.140002500
mov esi, 1
test sil, 1
je 0x1400ba7c4
lea rcx, [rsp + 0x38]
call fcn.1400be360
xor eax, eax
jmp 0x1400ba949
movdqa xmm0, xmmword [0x1402022e0]
lea rax, [rbp + 0x180]
movdqu xmmword [rbp + 0x48], xmm0
mov word [rbp + 0x38], si
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], si
jne 0x1400ba7f0
lea rdx, [rbp + 0x180]
lea rcx, [rbp + 0x38]
call fcn.140025490
mov rdx, qword [rbp + 0x50]
mov rcx, qword [rbp + 0x48]
mov rax, rdx
sub rax, rcx
cmp rax, 0xb
jb 0x1400ba86f
mov qword [rsp + 0x4b0], rbx
cmp rdx, 8
lea rbx, [rbp + 0x38]
mov qword [rsp + 0x4b8], rdi
cmovae rbx, qword [rbp + 0x38]
lea rdi, [rcx + 0xb]
mov r8d, SafeArrayPutElement
mov qword [rbp + 0x48], rdi
lea rdx, [0x1402080a8]
lea rcx, [rbx + rcx*2]
call fcn.14017e030
mov word [rbx + rdi*2], si
mov rdi, qword [rsp + 0x4b8]
mov rbx, qword [rsp + 0x4b0]
jmp 0x1400ba892
lfence
xor r8d, r8d
mov qword [rsp + 0x20], reloc.WS2_32.dll_inet_addr
lea r9, [0x1402080a8]
lea rcx, [rbp + 0x38]
lea edx, [r8 + 0xb]
call fcn.1400364f0
cmp qword [rbp + 0x50], 8
lea rcx, [rbp + 0x38]
cmovae rcx, qword [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1402724f0], rax
test rax, rax
je 0x1400ba906
lea rdx, str.DwmExtendFrameIntoClientArea
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402724f0]
lea rdx, str.DwmDefWindowProc
mov qword [0x1402724f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402724f0]
lea rdx, str.DwmIsCompositionEnabled
mov qword [0x140272500], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140272508], rax
mov rax, qword [0x1402724f0]
mov rdx, qword [rbp + 0x50]
cmp rdx, 8
jb 0x1400ba949
mov rcx, qword [rbp + 0x38]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ba93d
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400ba969
call fcn.14014e088
mov rax, qword [0x1402724f0]
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.14014e130
mov rsi, qword [rsp + 0x4c0]
add rsp, 0x4a0
pop rbp
ret
call fcn.14018c54c
int3