joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001ab60
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14001ab82
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x14001ab91
add rsp, 0x30
pop r14
pop rsi
pop rbp
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 + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14001abb4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14001abb6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14001abf2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14001ac8e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14001ac2d
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 rbx, 0xfff
jbe 0x14001ac6e
nop word [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]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14001ac8e
cmp rbx, rax
ja 0x14001ac40
test rbx, rbx
je 0x14001ac8e
mov r9, qword [rsi + 0x80]
mov r8, rbx
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 + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
mov esi, 0xf8830804
sub eax, 0x7a8850f
add byte [rax], al
Function at 0x14001b0c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140025028]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14001b0ed
xor eax, eax
jmp 0x14001b259
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14001b127
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14001b127
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x14001b259
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14001b24c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14001b16a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
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 0x14001b195
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 0x14001b251
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
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 0x14001b204
sub eax, 1
je 0x14001b204
cmp eax, 2
jne 0x14001b24c
movsx ecx, byte [rsp + 0x50]
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 0x14001b251
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14001b232
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 0x14001b24c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14001b251
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14001c860
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14001b5e0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140025028]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14001b6b3
cmp byte [rcx + 0x71], 0
je 0x14001b6b3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14001b6af
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 0x14001b674
sub eax, 1
je 0x14001b678
cmp eax, 2
jne 0x14001b6af
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001c860
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14001b6a6
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 0x14001b6af
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14001b65c
xor al, al
jmp 0x14001b65c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001c860
add rsp, 0x60
pop rbx
ret

Function at 0x14001d318
Capabilities:
Parse pe header

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

Function at 0x180024200
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180024228
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180024228
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x18002a830
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
test edx, edx
je 0x18002a84d
mov eax, 1
cmp edx, eax
jne 0x18002a8a2
mov qword [0x180075668], rcx
add rsp, 0x28
ret
cmp qword [0x180060a70], 0
je 0x18002a89d
cmp qword [0x180060a78], 8
mov qword [rsp + 0x20], rbx
lea rbx, [0x180060a60]
mov rcx, rbx
cmovae rcx, qword [0x180060a60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp qword [0x180060a78], 8
cmovae rbx, qword [0x180060a60]
xor eax, eax
mov qword [0x180060a70], rax
mov word [rbx], ax
mov rbx, qword [rsp + 0x20]
mov eax, 1
add rsp, 0x28
ret
Function at 0x140001f90
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
sub rsp, 0x38
xor eax, eax
lea r9, [0x140079358]
xor edx, edx
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
lea rcx, [0x140079338]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140001ff1
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x38]
test eax, eax
js 0x140001ff1
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x38]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140002001
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140002011
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [rsp + 0x50]
add rsp, 0x38
ret
Function at 0x140027e90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x250
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x20], rax
mov rdi, r8
mov rsi, rdx
mov dword [rsp + 0x28], 0
mov rbp, rcx
mov ebx, 0x200
lea rcx, [rsp + 0x20]
call fcn.140010ed0
test eax, eax
je 0x140027eee
lea rcx, [rsp + 0x20]
call fcn.140010f70
cmp rbx, rdi
lea rcx, [rsp + 0x38]
mov r9, rsi
mov edx, 1
cmova rbx, rdi
mov r8, rbx
call fcn.14005762c
add qword [rsp + 0x20], rax
sub rdi, rax
je 0x140027f19
cmp rax, rbx
je 0x140027ed6
lea rcx, [rsp + 0x20]
call fcn.140010ed0
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call fcn.14000fbe0
mov dword [rsp + 0x28], 1
test rdi, rdi
je 0x140027f4e
or edx, 0xffffffff
mov rcx, rbp
call fcn.14000f1b0
test rax, rax
je 0x140027f53
mov eax, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14003a3d0
mov rbx, qword [rsp + 0x288]
add rsp, 0x250
pop rdi
pop rsi
pop rbp
ret

Function at 0x14002af70
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rdx, [rsp + 0x30]
mov rcx, qword [rcx + 8]
mov r8d, 8
call fcn.14001a0f0
test rax, rax
jne 0x14002aff5
mov qword [rsp + 0x40], rdi
mov rdi, qword [rsp + 0x30]
test rdi, rdi
jne 0x14002afac
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop rbx
ret
mov rdx, qword [rbx + 0x10]
mov r8, rdi
mov rcx, qword [rbx]
mov qword [rsp + 0x38], rsi
call fcn.14001a1b0
mov rcx, qword [rbx + 8]
mov r8, rdi
mov rdx, rax
mov rsi, rax
call fcn.14001a0f0
mov rcx, qword [rbx]
test rax, rax
jne 0x14002b01d
lea r8, [rdi - 1]
mov rdx, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop rbx
jmp fcn.14001a410
mov r8, qword [rbx + 0x18]
lea r9, str.unexpected_end
mov rcx, qword [rbx]
lea rdx, str._s:__s_in_precompiled_chunk
call fcn.1400176f0
mov rcx, qword [rbx]
mov edx, 3
call fcn.140019030
int3
mov r8, qword [rbx + 0x18]
lea r9, str.unexpected_end
lea rdx, str._s:__s_in_precompiled_chunk
call fcn.1400176f0
mov rcx, qword [rbx]
mov edx, 3
call fcn.140019030
int3

Function at 0x14002c580
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, qword [rcx + 0x28]
mov rbx, rcx
mov rax, qword [rdi]
mov qword [rcx + 0x28], rax
mov rax, qword [rcx + 0x18]
movzx r9d, byte [rdi + 0xc]
mov r8, qword [rax + 0x30]
movzx eax, byte [r8 + 0x4a]
cmp eax, r9d
jbe 0x14002c5de
nop
dec byte [r8 + 0x4a]
movzx eax, byte [r8 + 0x4a]
movzx edx, word [r8 + rax*2 + 0xc4]
mov rax, qword [r8]
add rdx, rdx
mov rcx, qword [rax + 0x30]
mov eax, dword [r8 + 0x30]
mov dword [rcx + rdx*8 + 0xc], eax
movzx eax, byte [r8 + 0x4a]
cmp eax, r9d
ja 0x14002c5b0
cmp byte [rdi + 0xd], 0
je 0x14002c5fe
mov rax, qword [rbx + 0x18]
mov rcx, rbx
movzx edx, byte [rdi + 0xc]
shl edx, 6
or edx, 0x23
mov r8d, dword [rax + 8]
call fcn.140031e10
movzx eax, byte [rbx + 0x4a]
lea rdx, [rbx + 0x38]
mov dword [rbx + 0x3c], eax
mov rcx, rbx
mov r8d, dword [rdi + 8]
mov eax, dword [rbx + 0x30]
mov dword [rbx + 0x34], eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400306a0
Function at 0x140032100
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x250], 0
mov rbx, rcx
je 0x14003215d
mov rax, qword [rcx + 0x248]
test rax, rax
je 0x14003215d
mov qword [rsp + 0x30], rdi
xor edi, edi
test rax, rax
je 0x14003214c
nop dword [rax + rax]
mov rcx, qword [rbx + 0x250]
mov rcx, qword [rcx + rdi*8]
call fcn.14003a6d4
inc rdi
cmp rdi, qword [rbx + 0x248]
jb 0x140032130
mov rcx, qword [rbx + 0x250]
call fcn.14003a6d4
mov rdi, qword [rsp + 0x30]
cmp byte [rbx + 0x1298], 0
je 0x140032173
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x140032180
add rsp, 0x20
pop rbx
ret

Function at 0x140032180
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x480
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x470], rax
cmp qword [rcx + 0x14a8], 0
mov rdi, rcx
je 0x1400322ff
mov qword [r11 + 0x10], rbx
lea rcx, [rsp + 0x38]
mov qword [r11 + 0x18], rsi
call fcn.140042a18
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x40]
call fcn.140042978
xor esi, esi
lea r8, str._r_n_r_n
mov edx, 0x200
mov dword [rsp + 0x30], esi
lea rcx, [rsp + 0x70]
call fcn.140002210
or rbx, 0xffffffffffffffff
lea rcx, [rsp + 0x70]
mov rax, rbx
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x140032200
mov rcx, qword [rdi + 0x14a8]
lea r8d, [rax + rax]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rsi
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x40]
lea r8, str._02d:_02d:_02d__Stopping_install_logging_r_n
mov r9d, dword [rsp + 0x48]
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x28], eax
mov edx, 0x200
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x20], eax
call fcn.140002210
lea rcx, [rsp + 0x70]
mov rax, rbx
nop
cmp word [rcx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x140032260
mov rcx, qword [rdi + 0x14a8]
lea r8d, [rax + rax]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rsi
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r8, str._r_n_r_n_r_n
mov edx, 0x200
lea rcx, [rsp + 0x70]
call fcn.140002210
lea rax, [rsp + 0x70]
nop word [rax + rax]
cmp word [rax + rbx*2 + 2], si
lea rbx, [rbx + 1]
jne 0x1400322b0
mov rcx, qword [rdi + 0x14a8]
lea r8d, [rbx + rbx]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rsi
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rdi + 0x14a8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x498]
mov qword [rdi + 0x14a8], rsi
mov rsi, qword [rsp + 0x4a0]
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14003a3d0
add rsp, 0x480
pop rdi
ret
cmp byte [rcx + 0x1298], 0
jne 0x140032180
ret
Function at 0x1400333e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rdi
mov eax, 0x4090
call fcn.14003aa60
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x4070], rax
cmp byte [rcx + 0x1298], 0
mov rdi, rcx
je 0x140033556
cmp qword [rcx + 0x14a8], 0
je 0x140033556
mov qword [rsp + 0x4088], rbx
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x4080], rsi
xor esi, esi
mov dword [rsp + 0x30], esi
call fcn.140042a18
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x40]
call fcn.140042978
mov eax, dword [rsp + 0x40]
lea r8, str._02d:_02d:_02d
mov r9d, dword [rsp + 0x48]
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x28], eax
mov edx, 0x2000
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x20], eax
call fcn.140002210
or rbx, 0xffffffffffffffff
mov dword [rsp + 0x30], esi
mov rax, rbx
lea rcx, [rsp + 0x70]
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x1400334a0
mov rcx, qword [rdi + 0x14a8]
lea r8d, [rax + rax]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rsi
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8, qword [rsp + 0x40a8]
lea r9, [rsp + 0x40b0]
mov edx, 0x2000
lea rcx, [rsp + 0x70]
call fcn.1400339a0
lea rax, [rsp + 0x70]
mov dword [rsp + 0x30], esi
cmp word [rax + rbx*2 + 2], si
lea rbx, [rbx + 1]
jne 0x1400334f3
mov rcx, qword [rdi + 0x14a8]
lea r8d, [rbx + rbx]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rsi
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rdi + 0x14a8]
lea r9, [rsp + 0x30]
mov r8d, 4
mov dword [rsp + 0x30], esi
lea rdx, [0x14006df04]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rsi, qword [rsp + 0x4080]
mov rbx, qword [rsp + 0x4088]
mov rcx, qword [rsp + 0x4070]
xor rcx, rsp
call fcn.14003a3d0
add rsp, 0x4090
pop rdi
ret
Function at 0x140033990
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x480
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x470], rax
cmp qword [rcx + 0x14a8], 0
mov rdi, rcx
je 0x1400322ff
mov qword [r11 + 0x10], rbx
lea rcx, [rsp + 0x38]
mov qword [r11 + 0x18], rsi
call fcn.140042a18
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x40]
call fcn.140042978
xor esi, esi
lea r8, str._r_n_r_n
mov edx, 0x200
mov dword [rsp + 0x30], esi
lea rcx, [rsp + 0x70]
call fcn.140002210
or rbx, 0xffffffffffffffff
lea rcx, [rsp + 0x70]
mov rax, rbx
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x140032200
mov rcx, qword [rdi + 0x14a8]
lea r8d, [rax + rax]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rsi
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x40]
lea r8, str._02d:_02d:_02d__Stopping_install_logging_r_n
mov r9d, dword [rsp + 0x48]
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x28], eax
mov edx, 0x200
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x20], eax
call fcn.140002210
lea rcx, [rsp + 0x70]
mov rax, rbx
nop
cmp word [rcx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x140032260
mov rcx, qword [rdi + 0x14a8]
lea r8d, [rax + rax]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rsi
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r8, str._r_n_r_n_r_n
mov edx, 0x200
lea rcx, [rsp + 0x70]
call fcn.140002210
lea rax, [rsp + 0x70]
nop word [rax + rax]
cmp word [rax + rbx*2 + 2], si
lea rbx, [rbx + 1]
jne 0x1400322b0
mov rcx, qword [rdi + 0x14a8]
lea r8d, [rbx + rbx]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rsi
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rdi + 0x14a8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x498]
mov qword [rdi + 0x14a8], rsi
mov rsi, qword [rsp + 0x4a0]
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14003a3d0
add rsp, 0x480
pop rdi
ret
cmp byte [rcx + 0x1298], 0
jne 0x140032180
ret
Function at 0x140033a60
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x250
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x240], rax
cmp qword [rcx + 0x14b0], 0xffffffffffffffff
mov rsi, r8
mov edi, edx
mov rbx, rcx
je 0x140033b40
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x200
call fcn.14003da30
add dword [rbx + 0x14b8], edi
lea r8, str._d_t_s
mov r9d, dword [rbx + 0x14b8]
lea rcx, [rsp + 0x40]
mov eax, 0x64
mov qword [rsp + 0x20], rsi
cmp r9d, eax
mov edx, 0x100
cmovg r9d, eax
mov dword [rbx + 0x14b8], r9d
call fcn.140033d40
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140033af0
mov rcx, qword [rbx + 0x14b0]
lea r8d, [rax*2 + 2]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140033b40
mov rcx, qword [rbx + 0x14b0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x14b0], 0xffffffffffffffff
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14003a3d0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140035360
Capabilities:
Check if file exists
Get file attributes
Set file attributes
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x80
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rsi, r8
mov r15, rdx
mov rbp, rcx
mov qword [rsp + 0x68], 7
xor r12d, r12d
mov qword [rsp + 0x60], r12
mov word [rsp + 0x50], r12w
lea r8d, [r12 + 0x5c]
lea rdx, str._000214A0_0000_0000_C000_000000000046__r_nProp319__s_r_n_InternetShortcut__r_nURL_s_r_nIDList_r_n
lea rcx, [rsp + 0x50]
call fcn.140003a80
nop
or rdi, 0xffffffffffffffff
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp word [rsi + rax*2], 0
jne 0x1400353d0
test rax, rax
je 0x1400353f6
mov r8d, 0x24
lea rdx, str.HotKey0_r_nIconIndex0_r_nIconFile_s_r_n
lea rcx, [rsp + 0x50]
call fcn.14000d6e0
mov rcx, rdi
nop dword [rax]
inc rcx
cmp word [rsi + rcx*2], 0
jne 0x140035400
mov rdx, rdi
nop dword [rax]
inc rdx
cmp word [rbp + rdx*2], 0
jne 0x140035410
mov r14, qword [rsp + 0x60]
add r14, rcx
add rdx, 5
add r14, rdx
mov eax, 2
mul r14
cmovo rax, rdi
mov rcx, rax
call fcn.14003a944
mov rbx, rax
test rax, rax
je 0x140035543
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140035466
and eax, 0xfffffffe
mov edx, eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80000080
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 3]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
test rax, rax
je 0x140035543
lea r8, [r14 + r14]
xor edx, edx
mov rcx, rbx
call fcn.14003da30
mov rcx, rdi
nop dword [rax]
inc rcx
cmp word [rsi + rcx*2], 0
jne 0x1400354b0
lea r8, [rsp + 0x50]
lea rdx, [r14 - 1]
test rcx, rcx
mov rcx, rbx
je 0x1400354ef
cmp qword [rsp + 0x68], 8
cmovae r8, qword [rsp + 0x50]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rbp
lea r9, [0x14006f12c]
call fcn.140002210
jmp 0x140035510
cmp qword [rsp + 0x68], 8
cmovae r8, qword [rsp + 0x50]
mov qword [rsp + 0x20], rbp
lea r9, [0x14006f130]
call fcn.140002210
nop dword [rax]
inc rdi
cmp word [rbx + rdi*2], 0
jne 0x140035510
add edi, edi
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, edi
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dil, 1
jmp 0x140035546
xor dil, dil
test rbx, rbx
je 0x140035554
mov rcx, rbx
call fcn.14003a6d4
nop
mov r8, qword [rsp + 0x68]
cmp r8, 8
jb 0x140035571
inc r8
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.140003ec0
movzx eax, dil
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14003a3d0
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret