joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003c3d0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x140
mov rax, qword [0x140176808]
xor rax, rsp
mov qword [rsp + 0x138], rax
mov r15, r8
mov r13, rdx
mov qword [rsp + 0x20], rcx
movabs rbx, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
xor edi, edi
mov qword [rsp + 0x118], rdi
mov qword [rsp + 0x128], rdi
mov qword [rsp + 0x130], 0xf
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [r15 + r8], 0
jne 0x14003c440
mov rdx, r15
lea rcx, [rsp + 0x118]
call fcn.1400062b0
lea r8, [rsp + 0x118]
mov rsi, qword [rsp + 0x118]
mov r14, qword [rsp + 0x130]
cmp r14, 0x10
cmovae r8, rsi
mov rdx, rbp
mov rcx, rdi
mov rdi, qword [rsp + 0x128]
test rdi, rdi
je 0x14003c4a4
nop dword [rax]
movzx eax, byte [rcx + r8]
xor rdx, rax
imul rdx, rbx
inc rcx
cmp rcx, rdi
jb 0x14003c490
mov rcx, qword [r13 + 0x30]
and rcx, rdx
add rcx, rcx
mov rax, qword [r13 + 0x18]
mov rbx, qword [rax + rcx*8 + 8]
mov r12, qword [r13 + 8]
cmp rbx, r12
je 0x14003c513
mov rbp, qword [rax + rcx*8]
nop dword [rax]
nop dword [rax + rax]
lea rdx, [rbx + 0x10]
mov rax, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x14003c4e2
mov rdx, qword [rdx]
lea rcx, [rsp + 0x118]
cmp r14, 0x10
cmovae rcx, rsi
cmp rdi, rax
jne 0x14003c503
mov r8, rdi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14003c50e
cmp rbx, rbp
je 0x14003c513
mov rbx, qword [rbx + 8]
jmp 0x14003c4d0
test rbx, rbx
jne 0x14003c516
mov rbx, r12
cmp r14, 0x10
jb 0x14003c54d
lea rdx, [r14 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x14003c545
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003c5d0
mov rcx, rsi
call fcn.1400499f8
cmp rbx, qword [r13 + 8]
je 0x14003c55d
mov rax, qword [rbx + 0x30]
cmp rax, qword [rbx + 0x38]
jne 0x14003c5d7
mov rdx, qword [0x1401767b0]
test rdx, rdx
je 0x14003c5b1
lea rcx, [rsp + 0x28]
call fcn.140041b30
nop
mov rcx, rax
call fcn.140041e00
mov rcx, rax
lea rdx, str.Couldnt_translate:
call fcn.140037140
mov rcx, rax
mov rdx, r15
call fcn.140037140
lea rdx, [0x140037310]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
lea rcx, [rsp + 0x28]
call fcn.140041bf0
mov rax, qword [rsp + 0x20]
cmp byte [rax + 0xb0], 0
je 0x14003c5e3
mov r13, qword [rax + 0xb8]
mov qword [rsp + 0x20], r13
jmp 0x14003c404
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp qword [rax + 0x18], 0x10
jb 0x14003c5e6
mov rax, qword [rax]
jmp 0x14003c5e6
mov rax, r15
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.140049d60
mov rbx, qword [rsp + 0x188]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r8, rdx
mov rdx, rcx
jmp 0x14003c3d0
Function at 0x14003c620
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x140
mov rax, qword [0x140176808]
xor rax, rsp
mov qword [rsp + 0x138], rax
mov r15, r8
mov r13, rdx
mov qword [rsp + 0x20], rcx
movabs rbx, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
xor edi, edi
mov qword [rsp + 0x118], rdi
mov qword [rsp + 0x128], rdi
mov qword [rsp + 0x130], 0xf
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [r15 + r8], 0
jne 0x14003c440
mov rdx, r15
lea rcx, [rsp + 0x118]
call fcn.1400062b0
lea r8, [rsp + 0x118]
mov rsi, qword [rsp + 0x118]
mov r14, qword [rsp + 0x130]
cmp r14, 0x10
cmovae r8, rsi
mov rdx, rbp
mov rcx, rdi
mov rdi, qword [rsp + 0x128]
test rdi, rdi
je 0x14003c4a4
nop dword [rax]
movzx eax, byte [rcx + r8]
xor rdx, rax
imul rdx, rbx
inc rcx
cmp rcx, rdi
jb 0x14003c490
mov rcx, qword [r13 + 0x30]
and rcx, rdx
add rcx, rcx
mov rax, qword [r13 + 0x18]
mov rbx, qword [rax + rcx*8 + 8]
mov r12, qword [r13 + 8]
cmp rbx, r12
je 0x14003c513
mov rbp, qword [rax + rcx*8]
nop dword [rax]
nop dword [rax + rax]
lea rdx, [rbx + 0x10]
mov rax, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x14003c4e2
mov rdx, qword [rdx]
lea rcx, [rsp + 0x118]
cmp r14, 0x10
cmovae rcx, rsi
cmp rdi, rax
jne 0x14003c503
mov r8, rdi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14003c50e
cmp rbx, rbp
je 0x14003c513
mov rbx, qword [rbx + 8]
jmp 0x14003c4d0
test rbx, rbx
jne 0x14003c516
mov rbx, r12
cmp r14, 0x10
jb 0x14003c54d
lea rdx, [r14 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x14003c545
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003c5d0
mov rcx, rsi
call fcn.1400499f8
cmp rbx, qword [r13 + 8]
je 0x14003c55d
mov rax, qword [rbx + 0x30]
cmp rax, qword [rbx + 0x38]
jne 0x14003c5d7
mov rdx, qword [0x1401767b0]
test rdx, rdx
je 0x14003c5b1
lea rcx, [rsp + 0x28]
call fcn.140041b30
nop
mov rcx, rax
call fcn.140041e00
mov rcx, rax
lea rdx, str.Couldnt_translate:
call fcn.140037140
mov rcx, rax
mov rdx, r15
call fcn.140037140
lea rdx, [0x140037310]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
lea rcx, [rsp + 0x28]
call fcn.140041bf0
mov rax, qword [rsp + 0x20]
cmp byte [rax + 0xb0], 0
je 0x14003c5e3
mov r13, qword [rax + 0xb8]
mov qword [rsp + 0x20], r13
jmp 0x14003c404
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp qword [rax + 0x18], 0x10
jb 0x14003c5e6
mov rax, qword [rax]
jmp 0x14003c5e6
mov rax, r15
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.140049d60
mov rbx, qword [rsp + 0x188]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r8, rdx
mov rdx, rcx
jmp 0x14003c3d0
Function at 0x140043470
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140176808]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140043543
cmp byte [rcx + 0x71], 0
je 0x140043543
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14004353f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140043504
sub eax, 1
je 0x140043508
cmp eax, 2
jne 0x14004353f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140049d60
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140043536
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14004353f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400434ec
xor al, al
jmp 0x1400434ec
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140049d60
add rsp, 0x60
pop rbx
ret
Function at 0x140044970
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140176808]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14004499d
xor eax, eax
jmp 0x140044af2
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x1400449c8
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x1400449c8
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x140044af2
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140044ae5
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140044a0b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140044a36
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140044aea
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140044aa5
sub eax, 1
je 0x140044aa5
cmp eax, 2
jne 0x140044ae5
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140044aea
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140044ad3
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140044ae5
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov eax, edi
jne 0x140044aea
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140049d60
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140045450
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140045481
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140045498
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rdi
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400454c0
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400454c2
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400454f4
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rbx
sub rdi, rbx
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
mov rbx, rdi
je 0x140045591
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140045532
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rdi, 0xfff
jbe 0x140045571
nop dword [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rdi, rax
add r14, rax
mov rbx, rdi
cmp rax, 0xfff
jne 0x1400455b2
cmp rdi, rax
ja 0x140045540
test rbx, rbx
je 0x140045591
mov r9, qword [rsi + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
sub rbp, rdi
jmp 0x140045594
pop rdx
div dword [rdi - 0x52e8a77d]
mov cl, 0xb2
mov esi, 0x2ce17260
invalid
Function at 0x1400455c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je case.default.0x1400455f0
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x140045618
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14004561a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140045673
test ecx, ecx
jle 0x140045653
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140045673
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140045673
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140002f48
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x1400270c0]
xor rax, rsp
mov qword [rbp + 0x380], rax
and dword [rsp + 0x44], 0
lea rdx, [rsp + 0x60]
and dword [rsp + 0x40], 0
mov r8d, 0x104
mov rbx, qword [str.unknown]
xor ecx, ecx
and qword [rsp + 0x50], 0
mov dword [rsp + 0x48], r8d
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140002fb8
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x208
call fcn.140018450
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x44]
lea rcx, [rsp + 0x60]
call fcn.140005b3c
test eax, eax
jns 0x140002fda
and dword [rsp + 0x44], 0
and dword [rsp + 0x40], 0
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x140002ffe
lea rdi, [rbp + 0x170]
mov ecx, 0x208
rep stosb byte [rdi], al
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.1400062dc
mov r8, qword [rsp + 0x50]
lea rdx, str._Logging_started:__ls_
mov edi, 2
mov ecx, edi
call fcn.14000339c
mov edx, dword [rsp + 0x40]
lea r8, [rsp + 0x60]
mov r9d, dword [rsp + 0x44]
movzx ecx, dx
mov dword [rsp + 0x30], ecx
mov ecx, edi
shr edx, 0x10
mov dword [rsp + 0x28], edx
lea rdx, str.Executable:__ls_v_d._d._d._d
movzx eax, r9w
shr r9d, 0x10
mov dword [rsp + 0x20], eax
call fcn.14000339c
lea r8, [rbp + 0x170]
mov ecx, edi
lea rdx, str.Computer__:__ls
call fcn.14000339c
mov ecx, dword [0x140027008]
test ecx, ecx
je 0x1400030af
sub ecx, 1
je 0x1400030a6
sub ecx, 1
je 0x14000309d
sub ecx, 1
je 0x140003094
cmp ecx, 1
jne 0x1400030b6
mov rbx, qword [str.debug]
jmp 0x1400030b6
mov rbx, qword [str.verbose]
jmp 0x1400030b6
mov rbx, qword [str.standard]
jmp 0x1400030b6
mov rbx, qword [str.warning]
jmp 0x1400030b6
mov rbx, qword [str.none]
mov r8, rbx
lea rdx, str.____logging_level:__hs____
mov ecx, edi
call fcn.14000339c
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400030d6
call fcn.1400052dc
xor eax, eax
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.140006760
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x1400033ec
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rbp, rcx
and dword [rax + 0x10], ebx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [section..data]
mov esi, eax
cmp rcx, 0xffffffffffffffff
jne 0x14000343b
xor r8d, r8d
lea rcx, [0x140027bf8]
mov rdx, rbp
call fcn.140004f0c
mov ebx, eax
test eax, eax
js 0x14000349c
xor ebx, ebx
jmp 0x14000349c
test esi, esi
je 0x14000349c
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, esi
mov edx, edi
sub r8d, edi
add rdx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140003477
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140003488
add edi, dword [rsp + 0x48]
cmp edi, esi
jae 0x14000349c
mov rcx, qword [section..data]
jmp 0x14000343f
mov r8d, ebx
lea rcx, str.c:_agent_work36_swix_srclibsdutillogutil.cpp
mov edx, 0x310
call fcn.140005eb4
mov rbp, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140005624
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
lea rdx, [0x140027c88]
lea rcx, [0x14001b990]
call fcn.140005ec0
mov ebx, eax
test eax, eax
js 0x1400057c4
mov rcx, qword [rsp + 0x30]
lea r8, [0x140027cd0]
lea rdx, [0x140027ccc]
call fcn.140005b3c
mov rcx, qword [0x140027c88]
lea rdx, str.MsiDeterminePatchSequenceW
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140027c50]
lea rdx, str.MsiDetermineApplicablePatchesW
test rcx, rcx
mov qword [0x140027c90], rax
cmove rcx, rax
mov qword [0x140027c50], rcx
mov rcx, qword [0x140027c88]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140027c58]
lea rdx, str.MsiEnumProductsExW
test rcx, rcx
mov qword [0x140027c98], rax
cmove rcx, rax
mov qword [0x140027c58], rcx
mov rcx, qword [0x140027c88]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140027c60]
lea rdx, str.MsiGetPatchInfoExW
test rcx, rcx
mov qword [0x140027ca0], rax
cmove rcx, rax
mov qword [0x140027c60], rcx
mov rcx, qword [0x140027c88]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140027c68]
lea rdx, str.MsiGetProductInfoExW
test rcx, rcx
mov qword [0x140027ca8], rax
cmove rcx, rax
mov qword [0x140027c68], rcx
mov rcx, qword [0x140027c88]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140027c70]
lea rdx, str.MsiSetExternalUIRecord
test rcx, rcx
mov qword [0x140027cb0], rax
cmove rcx, rax
mov qword [0x140027c70], rcx
mov rcx, qword [0x140027c88]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140027c78]
lea rdx, str.MsiSourceListAddSourceExW
test rcx, rcx
mov qword [0x140027cb8], rax
cmove rcx, rax
mov qword [0x140027c78], rcx
mov rcx, qword [0x140027c88]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140027c80]
test rcx, rcx
mov qword [0x140027cc0], rax
mov dword [0x140027cc8], 1
cmove rcx, rax
mov qword [0x140027c80], rcx
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400057d3
call fcn.1400052dc
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x140005840
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rbx, rcx
mov ecx, esi
mov edi, esi
mov qword [rsp + 0x30], rcx
test rbx, rbx
je 0x1400058a5
cmp word [rbx], si
je 0x14000589b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x140005896
lea rdx, [rsp + 0x30]
mov rcx, rbx
inc edi
call fcn.140003ca4
test eax, eax
js 0x140005896
mov rcx, qword [rsp + 0x30]
mov rbx, rcx
test rcx, rcx
jne 0x140005862
jmp 0x14000589b
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400058a5
call fcn.1400052dc
mov rbx, qword [rsp + 0x38]
mov eax, edi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400058b8
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r14
sub rsp, 0x20
xor r14d, r14d
mov rbp, rdx
mov ebx, r14d
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400059b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1400059b0
cmp eax, 3
je 0x140005912
xor edx, edx
mov rcx, rdi
call fcn.1400059cc
test eax, eax
jne 0x1400059b0
movzx ecx, word [rdi]
mov rsi, r14
mov rdx, rdi
test cx, cx
je 0x140005997
mov r12d, 0x5c
cmp cx, r12w
mov rax, rdx
cmovne rax, rsi
add rdx, 2
mov rsi, rax
movzx ecx, word [rdx]
test cx, cx
jne 0x140005926
test rax, rax
je 0x140005997
mov rdx, rbp
mov word [rax], r14w
mov rcx, rdi
call fcn.1400058b8
mov word [rsi], r12w
mov ebx, eax
test eax, eax
js 0x1400059b0
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140005992
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140005982
mov ebx, 1
jmp 0x1400059b0
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400059b0
mov ebx, r14d
jmp 0x1400059b0
mov ebx, 0x80070003
lea rcx, str.c:_agent_work36_swix_srclibsdutildirutil.cpp
mov r8d, ebx
mov edx, 0x72
call fcn.140005eb4
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop r12
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400059f6
test al, 0x10
je 0x1400059f6
test rdi, rdi
je 0x1400059f1
mov dword [rdi], eax
mov ebx, 1
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140005a04
Capabilities:
Delete file
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
or dword [rsp + 0x38], 0xffffffff
lea rdx, [rsp + 0x38]
mov rdi, rcx
xor ebx, ebx
call fcn.140005aa4
test eax, eax
je 0x140005a97
test byte [rsp + 0x38], 7
je 0x140005a5e
mov edx, 0x80
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x140005a5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x140005a5e
mov edx, 0x5c4
jmp 0x140005a88
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140005a97
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x140005a97
mov edx, 0x5ca
mov r8d, ebx
lea rcx, str.c:_agent_work36_swix_srclibsdutil_fileutil.cpp
call fcn.140005eb4
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret