joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140032c70
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1400e62e0]
cmp ecx, 0xffffffff
je 0x140032c95
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 3
dec eax
cmp eax, 2
setb al
add rsp, 0x28
ret
xor eax, eax
jmp 0x140032c90

Function at 0x140032ca0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r14, rdx
mov r15, rcx
mov ecx, dword [0x1400e62e0]
cmp ecx, 0xffffffff
je 0x140032d70
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x140032d70
mov eax, dword [0x1400f8d18]
mov ecx, dword [0x1400f2494]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140032d7a
mov rbx, qword [0x1400f8d10]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140032dc0
mov rax, qword [0x1400f7500]
inc rax
xor ecx, ecx
lea rdx, [0x1400f7510]
lea edi, [rax + rcx]
movzx edi, dil
lea rsi, [rdi + rdi*2]
cmp dword [rdx + rsi*8], 0
jne 0x140032dcd
lea rax, [rdx + rsi*8]
mov dword [rax], 1
mov qword [rax + 8], r14
mov qword [0x1400f7500], rdi
mov qword [r15], rdi
mov eax, dword [rax + 0x10]
mov dword [r15 + 8], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [r15], 0x100
jae 0x140032de2
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140032df0
jmp 0x140032cce
lea rcx, [0x1400f8d18]
call fcn.140060aa0
cmp dword [0x1400f8d18], 0xffffffff
jne 0x140032cf3
mov ecx, 8
call fcn.14006094c
mov rbx, rax
mov rcx, rax
call fcn.14004a530
mov qword [0x1400f8d10], rbx
lea rcx, [0x1400f8d18]
call fcn.140060b38
jmp 0x140032cf3
mov rcx, rbx
call fcn.14004a540
jmp 0x140032d0b
inc rcx
cmp rcx, 0x100
jne 0x140032d1e
jmp 0x140032d52
int3
Function at 0x140032df0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.140061c30
sub rsp, rax
mov rax, qword [0x1400e3028]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x1400e62e0]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x140032ea4
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140032ee2
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.140063db0
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.1400609bc
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.140063700
mov ecx, dword [rsp + 0x2c]
mov rdx, rdi
or rdx, 3
call sub.KERNEL32.dll_TlsSetValue
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.140061c90
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.140038030
test al, al
je 0x140032ee5
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x140032ee8
mov eax, 0xffffffff
lock cmpxchg dword [0x1400e62e0], ecx
je 0x140032e28
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x1400e62e0]
mov dword [rsp + 0x2c], ecx
jmp 0x140032e28
int3
int3
lea rcx, [rsp + 0x2c]
call fcn.140038030
test al, al
je 0x140032f0d
cmp dword [rsp + 0x2c], 0xffffffff
je 0x140032f0d
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x140032ebb
int3
Function at 0x140038030
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140038045
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret

Function at 0x14004fb50
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x1400e62e0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14004fb84
mov rcx, qword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 8]
jne 0x14004fb84
mov rax, qword [rax + rcx]
add rsp, 0x20
pop rsi
ret
xor eax, eax
jmp 0x14004fb7e
Function at 0x140002060
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rdi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov r9, rcx
movabs rbp, 0xc2b2ae3d27d4eb4f
movabs rsi, 0x9e3779b185ebca87
movabs r14, 0x27d4eb2f165667c5
movabs r15, 0x7a1435883d4d519d
cmp rdi, 0x20
jb 0x140002159
mov r8, qword [r9 + 0x18]
mov rdx, qword [rcx + 8]
mov rax, r8
mov r9, qword [r9 + 0x20]
mov rcx, qword [rcx + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rcx
rol rax, 7
add r10, rax
mov rax, rdx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rdx, rbp
imul rcx, rbp
imul r8, rbp
imul r9, rbp
rol rdx, 0x1f
imul rdx, rsi
rol rcx, 0x1f
xor r10, rdx
rol r8, 0x1f
imul r10, rsi
imul rcx, rsi
imul r8, rsi
sub r10, r15
rol r9, 0x1f
xor r10, rcx
imul r10, rsi
imul r9, rsi
sub r10, r15
xor r10, r8
imul r10, rsi
sub r10, r15
xor r10, r9
imul r10, rsi
add rax, r10
add rax, rdi
jmp 0x140002161
lea rax, [rdi + r14]
add rax, qword [rcx + 0x18]
lea rdx, [r11 + 8]
cmp rdx, rbx
ja 0x14000219a
nop word [rax + rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, rbp
add r11, 8
rol rcx, 0x1f
imul rcx, rsi
xor rax, rcx
rol rax, 0x1b
imul rax, rsi
sub rax, r15
cmp rdx, rbx
jbe 0x140002170
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x1400021c5
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rsi
xor rax, rcx
rol rax, 0x17
imul rax, rbp
add rax, r8
cmp r11, rbx
jae 0x1400021eb
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r14
xor rax, rcx
rol rax, 0xb
imul rax, rsi
cmp r11, rbx
jb 0x1400021d0
mov rbx, qword [rsp + 0x18]
mov rcx, rax
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
shr rcx, 0x21
xor rcx, rax
imul rcx, rbp
mov rbp, qword [rsp + 0x20]
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
ret

Function at 0x14000a500
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor r14d, r14d
mov rbp, rdx
mov word [rsp + 0x30], r14w
mov rsi, rcx
mov edi, 0x28
test al, al
je 0x14000a5b1
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r14b
lea rcx, [rsp + 0x24]
call fcn.14000fc5c
cmp rax, 1
jne 0x14000a5e7
mov rcx, rdi
mov rax, rbx
cmp word [rbx], r14w
je 0x14000a58d
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x14000a580
cmp rcx, 1
jb 0x14000a5e7
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r14w
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14000a550
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000c1a0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.14000f920
int3
Function at 0x14000a670
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000a6b5
xor al, al
jmp 0x14000a702
cmp word [rbx], 0
je 0x14000a6cd
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a6c0
cmp word [rsp + 0x30], 0
je 0x14000a6fb
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a723
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a6e0
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000c1a0
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000f920
int3
Function at 0x14000b580
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x14002fdb8]
test rcx, rcx
je 0x14000b5bb
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000b5ae
mov rcx, qword [0x14002fdb8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002fdb8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14002fdc8], 0
je 0x14000b6ae
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x140029868]
mov qword [rsp + 0x80], rsi
lea rsi, [0x1400325f0]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b68f
test al, 0x10
je 0x14000b68f
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000b635
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x14000ca60
Capabilities:
Parse pe header

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

Function at 0x14000f704
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000f773
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f773
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f773
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f773
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f773
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f773
cmp dword [rcx + 0xf8], 0
je 0x14000f773
mov ecx, ebx
call fcn.14000f830
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000f600
nop
cmp dword [rbp + 0x20], 0
je 0x14000f7c1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000f7cc
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000f704

Function at 0x14000f914
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000f773
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f773
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f773
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f773
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f773
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f773
cmp dword [rcx + 0xf8], 0
je 0x14000f773
mov ecx, ebx
call fcn.14000f830
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000f600
nop
cmp dword [rbp + 0x20], 0
je 0x14000f7c1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000f7cc
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000f704
Function at 0x140018dc0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140018e47
mov rsi, rbx
cmp word [rax], bp
je 0x140018e06
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140018df0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140018dec
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140016600
mov rdi, rax
test rax, rax
je 0x140018e34
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140020030
mov rbp, rdi
xor ecx, ecx
call fcn.140015644
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001f830
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001f858
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001f858
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180001958
Capabilities:
Create directory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r15
sub rsp, 0x20
xor ebp, ebp
xor edx, edx
mov ebx, ebp
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1800019f5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1800019f5
movzx ecx, word [rdi]
mov esi, ebp
mov rdx, rdi
test cx, cx
je 0x1800019f2
lea r15d, [rbp + 0x5c]
cmp cx, r15w
mov rax, rdx
cmovne rax, rsi
add rdx, 2
mov rsi, rax
movzx ecx, word [rdx]
test cx, cx
jne 0x1800019a2
test rax, rax
je 0x1800019f2
mov rcx, rdi
mov word [rax], bp
call fcn.180001958
mov word [rsi], r15w
mov ebx, eax
test eax, eax
jne 0x1800019f5
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1800019f5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1800019f5
or ebx, 0xffffffff
mov rbp, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret

Function at 0x180002a14
Capabilities:
Connect pipe
Create pipe

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
xor ebx, ebx
mov eax, 0x400
and qword [rsp + 0x38], rbx
mov rdi, rcx
and dword [rsp + 0x30], ebx
xor r8d, r8d
mov rcx, qword [rcx + 0x18]
mov edx, 0x40080003
mov dword [rsp + 0x28], eax
lea r9d, [rbx + 1]
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [rdi + 0x20], rax
cmp rax, 0xffffffffffffffff
jne 0x180002a67
and qword [rdi + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180002ab8
lea rdx, [rdi + 0x38]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x180002a7e
mov byte [rdi + 0x76], 1
jmp 0x180002ab8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xe7
jne 0x180002aaa
mov rcx, qword [rdi + 0x18]
mov edx, 0x4e20
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x180002a78
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0x3e5
jne 0x180002ab8
xor ebx, ebx
mov byte [rdi + 0x75], 1
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x180002ac8
Capabilities:
Check if file exists

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x610]
sub rsp, 0x710
mov rax, qword [0x180031008]
xor rax, rsp
mov qword [rbp + 0x600], rax
cmp byte [0x180031af0], 0
mov r15, r8
mov rdi, rdx
mov ebx, ecx
jne 0x180002b16
test rdx, rdx
jne 0x180002b16
mov rdx, r8
call fcn.180002e68
jmp 0x180002c8b
xor r14b, r14b
test rdx, rdx
jne 0x180002b4f
mov rdx, qword [0x180031ae8]
lea r8, [rbp + 0x180]
mov r9d, 0x104
call fcn.1800043d0
test al, al
jne 0x180002b45
mov eax, 0x643
jmp 0x180002c8b
lea rdi, [rbp + 0x180]
mov r14b, 1
mov esi, pe_nt_image_headers64
lea rcx, [rsp + 0x50]
mov edx, esi
mov r8, rdi
call fcn.18000164c
lea r8, str.CustomAction.config
mov edx, esi
lea rcx, [rsp + 0x50]
call fcn.18000157c
lea rcx, [rsp + 0x50]
lea rsi, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov r8, rdi
lea rcx, [rbp + 0x390]
neg eax
sbb r12, r12
and r12, rsi
mov esi, 0x136
mov edx, esi
call fcn.18000164c
lea r8, str.Microsoft.Deployment.WindowsInstaller.dll
mov edx, esi
lea rcx, [rbp + 0x390]
call fcn.18000157c
lea rax, [rsp + 0x38]
mov esi, 0x643
lea r9, [rbp + 0x390]
mov qword [rsp + 0x20], rax
mov r8, r12
mov dword [rsp + 0x30], esi
xor edx, edx
mov ecx, ebx
call fcn.180001378
test al, al
je 0x180002c78
mov rdx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r8, str.CustomAction
mov r9, rdi
mov qword [rsp + 0x20], r12
mov ecx, ebx
call section..text
test al, al
je 0x180002c62
mov rdx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov r8, r15
mov ecx, ebx
call fcn.180002cac
mov ecx, dword [rsp + 0x30]
test al, al
mov rdx, qword [rsp + 0x40]
cmove ecx, esi
mov esi, ecx
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + reloc.msi.dll_MsiDatabaseIsTablePersistentA]
test eax, eax
jns 0x180002c57
mov r8d, eax
lea rdx, str.Failed_to_unload_app_domain._Error_code_0x_X
mov ecx, ebx
call fcn.180004644
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rcx]
call qword [rdx + 0x58]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
test r14b, r14b
je 0x180002c89
lea rcx, [rbp + 0x180]
call fcn.180004214
mov eax, esi
mov rcx, qword [rbp + 0x600]
xor rcx, rsp
call fcn.1800051d0
add rsp, 0x710
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x18000327c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor ebx, ebx
mov ebp, r8d
xor esi, esi
mov r15, rdx
mov rdi, rcx
cmp esi, ebp
jae 0x180003363
mov rcx, qword [rdi + 0x50]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rdi + 0x20]
lea r14, [rdi + 0x38]
mov r8d, ebp
mov edx, esi
sub r8d, esi
mov qword [rsp + 0x20], r14
add rdx, r15
lea r9, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180003357
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x3e5
jne 0x180003357
cmp byte [rdi + 0x74], 0
mov rcx, qword [rdi + 0x50]
je 0x180003319
mov rax, qword [rdi + 0x30]
lea rdx, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x30], rcx
or r9d, 0xffffffff
mov qword [rsp + 0x38], rax
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
jmp 0x180003322
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
test eax, eax
jne 0x180003343
mov rcx, qword [rdi + 0x20]
lea r8, [rsp + 0x78]
xor r9d, r9d
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x180003357
jmp 0x180003348
cmp ebx, 0xffffffff
jne 0x180003352
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180003357
mov ebx, 0x3e3
add esi, dword [rsp + 0x78]
test ebx, ebx
je 0x1800032a1
test ebx, ebx
je 0x180003392
cmp byte [rdi + 0x74], 0
mov rcx, qword [rdi + 0x20]
je 0x180003383
call qword [sym.imp.KERNEL32.dll_CancelIo]
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
jmp 0x18000338e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rdi + 0x20], 0
mov byte [rdi + 0x76], 0
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x180003564
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
cmp byte [rcx + 0x74], 0
mov rbx, rcx
je 0x1800035f4
cmp qword [rcx + 0x30], 0
jne 0x1800035f4
xor edi, edi
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x30], rax
test rax, rax
jne 0x1800035a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1800035f0
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x1800035b3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rsp + 0x28], rdi
lea r8, [0x180003274]
and dword [rsp + 0x20], edi
mov r9, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x28], rax
test rax, rax
jne 0x1800035f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbx + 0x30]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx + 0x30], 0
mov eax, edi
jmp 0x1800035f9
mov eax, 0x10dd
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret