joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400151f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
xor edx, edx
jmp 0x14001531a
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r12d, edx
mov rsi, rcx
mov rax, qword [0x1400e0338]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp byte [rcx + 0x5e], 0
je 0x140015361
movzx edi, word [rsi + 0x5c]
test r12b, r12b
je 0x14001549c
mov word [rsi + 0x5c], 0xffff
mov byte [rsi + 0x5e], 0
jmp 0x14001549c
movabs r14, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x58], r14
mov eax, dword [rsi + 0x58]
test eax, eax
mov edi, 1
cmovg edi, eax
xor ebp, ebp
mov rcx, qword [rsi + 0x40]
call fcn.1400a5270
cmp eax, 0xffffffff
je 0x140015498
mov byte [rsp + rbp + 0x58], al
inc rbp
cmp rdi, rbp
jne 0x14001537f
mov word [rsp + 0x56], 0xaaaa
cmp byte [rsi + 0x5f], 0
je 0x1400153cb
movsx eax, byte [rsp + 0x58]
mov word [rsp + 0x56], ax
test r12b, r12b
je 0x14001545c
movzx edi, word [rsp + 0x56]
mov word [rsi + 0x5c], di
jmp 0x14001549c
lea rax, [rsp + 0x48]
mov qword [rax], r14
lea rax, [rsp + 0x40]
mov qword [rax], r14
lea r14, [rsp + 0x58]
mov rcx, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x50]
mov r13d, dword [rdx]
movzx ebp, word [rdx + 4]
movzx r15d, word [rdx + 6]
lea r9, [rsp + rdi + 0x58]
mov rax, qword [rcx]
lea rbx, [rsp + 0x40]
mov qword [rsp + 0x38], rbx
lea rbx, [rsp + 0x58]
mov qword [rsp + 0x30], rbx
lea rbx, [rsp + 0x56]
mov qword [rsp + 0x28], rbx
lea rbx, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
mov r8, r14
call qword [rax + 0x18]
cmp eax, 1
jne 0x140015485
mov rax, qword [rsi + 0x50]
mov dword [rax], r13d
mov word [rax + 4], bp
mov word [rax + 6], r15w
cmp rdi, 8
je 0x140015498
mov rcx, qword [rsi + 0x40]
call fcn.1400a5270
cmp eax, 0xffffffff
je 0x140015498
mov byte [rsp + rdi + 0x58], al
inc rdi
jmp 0x1400153e0
mov edi, edi
test rdi, rdi
jle 0x14001547e
mov rdx, qword [rsi + 0x40]
movsx eax, byte [rsp + rdi + 0x57]
dec rdi
movzx ecx, ax
call fcn.1400a6d90
cmp eax, 0xffffffff
jne 0x14001545e
jmp 0x140015498
movzx edi, word [rsp + 0x56]
jmp 0x14001549c
cmp eax, 2
je 0x140015498
cmp eax, 3
je 0x1400153aa
jmp 0x1400153b4
mov di, 0xffff
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14008f710
mov eax, edi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140015500
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rsi, rcx
mov rax, qword [0x1400e0338]
xor rax, rsp
mov qword [rsp + 0x40], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x40]
mov qword [r14 - 8], r12
lea r13, [rsp + 0x30]
lea r15, [rsp + 0x38]
mov ebp, 0xffffffff
mov qword [rsp + 0x30], r12
mov rcx, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x50]
mov rax, qword [rcx]
mov qword [rsp + 0x20], r13
mov r8, r15
mov r9, r14
call qword [rax + 0x20]
mov edi, eax
mov rbx, qword [rsp + 0x30]
sub rbx, r15
mov r9, qword [rsi + 0x40]
mov edx, 1
mov rcx, r15
mov r8, rbx
call fcn.1400a4e94
cmp rax, rbx
jne 0x14001559c
cmp edi, 1
je 0x140015544
cmp edi, 2
je 0x14001559c
mov rcx, qword [rsi + 0x40]
call fcn.1400a4b40
neg eax
sbb ebp, ebp
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14008f710
mov eax, ebp
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1400155c0
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r8
mov r14, rdx
mov rdi, rcx
cmp byte [rcx + 0x58], 0
je 0x1400155f5
mov r9, qword [rdi + 0x40]
mov edx, 1
mov rcx, r14
mov r8, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.1400a4e94
xor ebx, ebx
test rsi, rsi
jle 0x14001561a
movzx edx, byte [r14 + rbx]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x60]
cmp eax, 0xffffffff
je 0x14001561a
inc rbx
cmp rsi, rbx
jne 0x1400155fc
mov rbx, rsi
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140015630
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r15d, edx
mov rax, qword [0x1400e0338]
xor rax, rsp
mov qword [rsp + 0x60], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x58], r12
mov byte [rsp + 0x57], 0xaa
cmp edx, 0xffffffff
je 0x1400156a1
mov rdi, rcx
mov byte [rsp + 0x57], r15b
cmp byte [rcx + 0x58], 0
je 0x1400156b0
mov r9, qword [rdi + 0x40]
lea rcx, [rsp + 0x57]
mov edx, 1
mov r8d, 1
call fcn.1400a4e94
mov esi, 0xffffffff
cmp rax, 1
jne 0x140015765
xor esi, esi
cmp r15d, 0xffffffff
cmovne esi, r15d
jmp 0x140015765
lea rbx, [rsp + 0x58]
lea r13, [rsp + 0x48]
mov qword [r13], rbx
lea rsi, [rsp + 0x57]
lea r14, [rsp + 0x40]
mov qword [rsp + 0x40], r12
mov rcx, qword [rdi + 0x48]
mov rdx, qword [rdi + 0x50]
mov rax, qword [rcx]
mov qword [rsp + 0x38], r13
lea rbp, [rsp + 0x60]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r14
mov r8, rsi
lea r9, [rsp + 0x58]
call qword [rax + 0x10]
cmp qword [rsp + 0x40], rsi
je 0x140015760
mov ebp, eax
cmp eax, 3
je 0x14001573f
cmp ebp, 1
ja 0x140015760
mov rsi, qword [rsp + 0x48]
sub rsi, rbx
mov r9, qword [rdi + 0x40]
mov edx, 1
mov rcx, rbx
mov r8, rsi
call fcn.1400a4e94
cmp rax, rsi
jne 0x140015760
mov rsi, qword [rsp + 0x40]
cmp ebp, 1
je 0x1400156c8
jmp 0x1400156a1
mov r9, qword [rdi + 0x40]
mov edx, 1
mov r8d, 1
mov rcx, rsi
call fcn.1400a4e94
cmp rax, 1
je 0x1400156a1
mov esi, 0xffffffff
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14008f710
mov eax, esi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1400157d0
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r8
mov r14, rdx
mov rdi, rcx
cmp byte [rcx + 0x58], 0
je 0x140015805
mov r9, qword [rdi + 0x40]
mov edx, 2
mov rcx, r14
mov r8, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.1400a4e94
xor ebx, ebx
test rsi, rsi
jle 0x14001582b
movzx edx, word [r14 + rbx*2]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x60]
cmp ax, 0xffff
je 0x14001582b
inc rbx
cmp rsi, rbx
jne 0x14001580c
mov rbx, rsi
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140015840
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov esi, edx
mov rax, qword [0x1400e0338]
xor rax, rsp
mov qword [rsp + 0x60], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x58], r12
mov word [rsp + 0x56], 0xaaaa
cmp dx, 0xffff
je 0x1400158b2
mov rdi, rcx
mov word [rsp + 0x56], si
cmp byte [rcx + 0x58], 0
je 0x1400158c2
mov r9, qword [rdi + 0x40]
lea rcx, [rsp + 0x56]
mov edx, 2
mov r8d, 1
call fcn.1400a4e94
mov di, 0xffff
cmp rax, 1
jne 0x140015976
xor eax, eax
cmp si, 0xffff
cmove esi, eax
mov edi, esi
jmp 0x140015976
lea r15, [rsp + 0x58]
lea r13, [rsp + 0x48]
mov qword [r13], r15
lea rbx, [rsp + 0x56]
lea r14, [rsp + 0x40]
mov qword [rsp + 0x40], r12
mov rcx, qword [rdi + 0x48]
mov rdx, qword [rdi + 0x50]
mov rax, qword [rcx]
mov qword [rsp + 0x38], r13
lea rbp, [rsp + 0x60]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r14
mov r8, rbx
lea r9, [rsp + 0x58]
call qword [rax + 0x10]
cmp qword [rsp + 0x40], rbx
je 0x140015972
mov ebp, eax
cmp eax, 3
je 0x140015951
cmp ebp, 1
ja 0x140015972
mov rbx, qword [rsp + 0x48]
sub rbx, r15
mov r9, qword [rdi + 0x40]
mov edx, 1
mov rcx, r15
mov r8, rbx
call fcn.1400a4e94
cmp rax, rbx
jne 0x140015972
mov rbx, qword [rsp + 0x40]
cmp ebp, 1
je 0x1400158da
jmp 0x1400158b2
mov r9, qword [rdi + 0x40]
mov edx, 1
mov r8d, 1
mov rcx, rbx
call fcn.1400a4e94
cmp rax, 1
je 0x1400158b2
mov di, 0xffff
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14008f710
mov eax, edi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140015a90
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x140015ac7
movabs r9, 0xf000000000000000
shl rax, 4
movsx r10, byte [rdx]
add r10, rax
mov rcx, r10
and rcx, r9
mov rax, rcx
shr rax, 0x38
or rax, rcx
xor rax, r10
inc rdx
cmp r8, rdx
jne 0x140015aa1
ret

Function at 0x140015be0
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x140015c18
movabs r9, 0xf000000000000000
shl rax, 4
movzx r10d, word [rdx]
add r10, rax
mov rcx, r10
and rcx, r9
mov rax, rcx
shr rax, 0x38
or rax, rcx
xor rax, r10
add rdx, 2
cmp r8, rdx
jne 0x140015bf1
ret
Function at 0x1400334d0
Capabilities:
Accept command line arguments

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x1400e0338]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x1400e3870], 0
je 0x1400334f5
xor esi, esi
jmp 0x140033585
mov ecx, 0x38
call fcn.14008f354
mov rsi, rax
mov ecx, 0x18
call fcn.14008f354
mov qword [rsi], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x10], rcx
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [rsi + 8], rcx
lea rax, [rsi + 0x20]
movups xmmword [rsi + 0x20], xmm0
mov qword [rsi + 0x18], rax
mov qword [rsi + 0x30], 1
mov qword [0x1400e3870], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14003356e
cmp word [rax], 0
je 0x14003356e
xor ecx, ecx
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140033560
jmp 0x140033570
xor ecx, ecx
mov qword [rsp + 0x30], rcx
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.1400335a0
mov sil, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14008f710
mov eax, esi
add rsp, 0x40
pop rsi
ret
Function at 0x1400335a0
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
movaps xmmword [rsp + 0x70], xmm6
mov rsi, rdx
mov r14, rcx
mov rax, qword [0x1400e0338]
xor rax, rsp
mov qword [rsp + 0x68], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov r8d, 3
call fcn.140045220
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
cmp qword [rsi + 8], 0
je 0x1400337ec
mov dword [rsp + 0x4c], 0
lea rcx, str.api_ms_win_downlevel_shell32_l1_1_0.dll
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x140033646
lea rdx, [0x1400be80a]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140033659
mov rbx, rax
mov rcx, qword [rsi]
lea rdx, [rsp + 0x4c]
call rax
jmp 0x140033654
mov rcx, qword [rsi]
lea rdx, [rsp + 0x4c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r12, rax
jmp 0x14003365c
xor r12d, r12d
movsxd rbp, dword [rsp + 0x4c]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 0
test rbp, rbp
je 0x14003377c
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], r14
test ebp, ebp
js 0x14003381f
shl rbp, 3
lea rdi, [rbp*2]
add rdi, rbp
mov rcx, rdi
call fcn.14008f354
mov rsi, rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
add rax, rdi
mov qword [rsp + 0x40], rax
xor r15d, r15d
xorps xmm6, xmm6
jmp 0x1400336ff
mov byte [rsi + 0x17], bl
mov rdi, rsi
test rbx, rbx
je 0x1400336ec
mov r8, rbx
add r8, rbx
mov rcx, rdi
mov rdx, r13
call fcn.1400924d0
mov word [rdi + rbx*2], 0
add rsi, 0x18
add r15, 8
cmp rbp, r15
je 0x14003376d
mov r13, qword [r12 + r15]
movups xmmword [rsi], xmm6
mov qword [rsi + 0x10], 0
mov rcx, r13
call fcn.1400a7234
mov rbx, rax
movabs rax, 0x7fffffffffffffef
cmp rbx, rax
ja 0x140033812
cmp rbx, 0xb
jb 0x1400336d0
lea r14, [rbx + 8]
and r14, 0xfffffffffffffff8
js 0x14003381a
lea rcx, [r14 + r14]
call fcn.14008f354
mov rdi, rax
mov qword [rsi], rax
movabs rax, 0x7fffffffffffffef
add rax, 0x11
or rax, r14
mov qword [rsi + 0x10], rax
mov qword [rsi + 8], rbx
jmp 0x1400336db
mov qword [rsp + 0x38], rsi
mov r14, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.140033380
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x1400337a0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rsi, qword [rsp + 0x30]
test rsi, rsi
je 0x1400337ec
mov rax, qword [rsp + 0x38]
cmp rax, rsi
jne 0x1400337c8
mov rcx, rsi
jmp 0x1400337e2
mov rax, rdi
cmp rsi, rdi
je 0x1400337dd
lea rdi, [rax - 0x18]
cmp byte [rax - 1], 0
jns 0x1400337c0
mov rcx, qword [rax - 0x18]
call fcn.14008f3a4
jmp 0x1400337c0
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x38], rsi
call fcn.14008f3a4
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14008f710
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rsi
call fcn.14002c480
call fcn.1400a1448
lea rcx, [rsp + 0x30]
call fcn.14002df4c
int3
Function at 0x140035830
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x1400358b3
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
add rax, 1
cmp rax, 2
jb 0x14003587e
call fcn.140047760
mov r8, qword [rsp + 0x38]
mov rcx, qword [rsi]
mov rdx, rsi
mov r9, rax
call fcn.1400477e0
mov rcx, qword [rsi]
call fcn.140047770
mov qword [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400358a3
mov qword [rsi], rdi
call fcn.140047760
mov r8, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
mov r9, rax
call fcn.1400477a0
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x140037ec0
Capabilities:
Delete file

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
mov r14, rcx
mov rax, qword [0x1400e0338]
xor rax, rsp
mov qword [rsp + 0x70], rax
call fcn.140033830
mov rdi, rax
lea r15, [0x1400bfae6]
mov rcx, rax
mov rdx, r15
call fcn.140033d00
test al, al
jne 0x140037f14
lea rdx, str.vmodule
mov rcx, rdi
call fcn.140033d00
test al, al
je 0x140037fe6
cmp qword [0x1400e3880], 0
je 0x140037f4f
lea rdx, str..._.._base_logging.cc
lea r9, str._g_vlog_info_prev
lea rsi, [rsp + 0x58]
mov rcx, rsi
mov r8d, 0x1ac
call fcn.140044f40
mov rcx, rsi
call fcn.140044fd0
mov rcx, rsi
call fcn.140044fe0
mov rax, qword [0x1400e3888]
mov qword [0x1400e3880], rax
mov ecx, 0x20
call fcn.14008f354
mov rsi, rax
lea rcx, str.vmodule
mov qword [rsp + 0x48], rcx
call fcn.1400a6650
mov qword [rsp + 0x50], rax
lea r12, [rsp + 0x58]
lea r8, [rsp + 0x48]
mov rcx, rdi
mov rdx, r12
call fcn.140033d70
mov qword [rsp + 0x20], r15
mov rcx, r15
call fcn.1400a6650
mov qword [rsp + 0x28], rax
lea rbx, [rsp + 0x30]
lea r8, [rsp + 0x20]
mov rcx, rdi
mov rdx, rbx
call fcn.140033d70
lea r9, [0x1400e3890]
mov rcx, rsi
mov rdx, rbx
mov r8, r12
call fcn.140049450
mov qword [0x1400e3888], rsi
cmp byte [rsp + 0x47], 0
js 0x14003802b
cmp byte [rsp + 0x6f], 0
js 0x14003803c
mov eax, dword [r14]
mov dword [0x1400e02f8], eax
mov bl, 1
test al, 1
je 0x1400380a3
mov rcx, qword [0x1400e38b8]
test rcx, rcx
je 0x140038048
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1400e38b8], 0
mov rcx, qword [0x1400e3898]
test rcx, rcx
jne 0x140038076
and byte [0x1400e02f8], 0xfe
jmp 0x140038054
mov rcx, qword [rsp + 0x30]
call fcn.14008f3a4
cmp byte [rsp + 0x6f], 0
jns 0x140037fe6
mov rcx, qword [rsp + 0x58]
call fcn.14008f3a4
jmp 0x140037fe6
mov rcx, qword [0x1400e3898]
test rcx, rcx
jne 0x140038076
mov ecx, 0x18
call fcn.14008f354
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x1400e3898], rax
mov rdx, qword [r14 + 8]
call fcn.14002d828
cmp dword [r14 + 0x14], 0
jne 0x14003809c
mov rcx, qword [0x1400e3898]
cmp byte [rcx + 0x17], 0
jns 0x140038096
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.1400380c0
mov ebx, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14008f710
mov eax, ebx
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400380c0
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x258
mov rax, qword [0x1400e0338]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r14b, 1
cmp qword [0x1400e38b8], 0
jne 0x14003835c
mov rdi, qword [0x1400e3898]
test rdi, rdi
je 0x140038110
test byte [0x1400e02f8], 1
jne 0x140038222
jmp 0x14003835c
movabs r15, 0x7fffffffffffffef
mov ecx, 0x18
call fcn.14008f354
mov rdi, rax
lea rsi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rsi
mov dl, 0xaa
call fcn.1400928e0
xor ecx, ecx
mov rdx, rsi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
mov rcx, rsi
call fcn.1400a7234
cmp rax, r15
ja 0x14003837f
mov rbx, rax
cmp rax, 0xb
jae 0x140038182
mov byte [rdi + 0x17], bl
mov rsi, rdi
test rbx, rbx
jne 0x1400381b0
jmp 0x1400381c3
lea rbp, [rbx + 8]
and rbp, 0xfffffffffffffff8
js 0x140038387
mov rcx, rbp
add rcx, rbp
call fcn.14008f354
mov rsi, rax
mov qword [rdi], rax
add r15, 0x11
or r15, rbp
mov qword [rdi + 0x10], r15
mov qword [rdi + 8], rbx
mov r8, rbx
add r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400924d0
mov word [rsi + rbx*2], 0
movzx r8d, byte [rdi + 0x17]
test r8b, r8b
jns 0x1400381d7
mov r8, qword [rdi + 8]
mov rcx, rdi
mov dx, 0x5c
call fcn.14002da34
cmp rax, 0xffffffffffffffff
je 0x1400381ff
add rax, 1
mov rcx, rdi
mov rdx, rax
mov r8, 0xffffffffffffffff
call fcn.14002d95c
lea rdx, str.debug.log
mov rcx, rdi
call fcn.14002d654
mov qword [0x1400e3898], rdi
test byte [0x1400e02f8], 1
je 0x14003835c
cmp byte [rdi + 0x17], 0
jns 0x14003822b
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1400e38b8], rax
add rax, 1
cmp rax, 1
ja 0x14003835c
lea rsi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rsi
mov dl, 0xaa
call fcn.1400928e0
mov word [rsp + 0x40], 0
mov ecx, 0x104
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x140038359
cmp eax, 0x104
ja 0x140038359
mov rcx, qword [0x1400e3898]
lea rdx, [rsp + 0x40]
call fcn.14002d828
mov rcx, qword [0x1400e3898]
movzx eax, byte [rcx + 0x17]
test al, al
js 0x1400382d2
mov rdx, rcx
jmp 0x1400382d9
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
cmp word [rdx + rax*2 - 2], 0x5c
je 0x1400382f4
lea rdx, [0x1400be956]
call fcn.14002d654
mov rcx, qword [0x1400e3898]
lea rdx, str.debug.log
call fcn.14002d654
mov rcx, qword [0x1400e3898]
cmp byte [rcx + 0x17], 0
jns 0x140038310
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1400e38b8], rax
add rax, 1
cmp rax, 1
ja 0x14003835c
mov qword [0x1400e38b8], 0
xor r14d, r14d
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14008f710
mov eax, r14d
add rsp, 0x258
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, rdi
call fcn.14002c480
call fcn.1400a1448
int3
Function at 0x14003a240
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x1400e0338]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rdi
mov dl, 0xaa
call fcn.1400928e0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
add eax, 0xffffffff
cmp eax, 0x102
jbe 0x14003a290
xor esi, esi
jmp 0x14003a2f5
mov qword [rsp + 0x20], rdi
cmp word [rsp + 0x60], 0
je 0x14003a2ae
xor eax, eax
nop
cmp word [rsp + rax*2 + 0x62], 0
lea rax, [rax + 1]
jne 0x14003a2a0
jmp 0x14003a2b0
xor eax, eax
mov qword [rsp + 0x28], rax
lea rdi, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140035910
lea rbx, [rsp + 0x48]
mov rcx, rdi
mov rdx, rbx
call fcn.1400377a0
mov rcx, rsi
mov rdx, rbx
call fcn.140035a20
mov rcx, rbx
call fcn.1400359f0
mov rcx, rdi
call fcn.1400359f0
mov sil, 1
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.14008f710
mov eax, esi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret
Function at 0x14003a820
Capabilities:
Check if file exists
Delete directory
Delete file
Set file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x568
mov r15d, r8d
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x1400e0338]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea rbx, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, rbx
mov dl, 0xaa
call fcn.1400928e0
mov qword [rsp + 0x20], r14
xor ebp, ebp
mov rcx, rbx
mov rdx, rsi
xor r8d, r8d
mov r9d, 3
call fcn.140048130
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x40], rax
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0x30], xmm0
lea rdi, [rsp + 0x30]
mov rcx, rbx
mov rdx, rdi
call fcn.1400483a0
movzx eax, byte [rsp + 0x47]
test al, al
jns 0x14003a8ba
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x14003aa12
lea rsi, [rsp + 0x48]
lea rbx, [rsp + 0x298]
mov r12, qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r13d, r13d
jmp 0x14003a8ec
mov r13d, ebp
test rax, rax
je 0x14003aa12
mov r8d, 0x250
mov rcx, rsi
mov dl, 0xaa
call fcn.1400928e0
mov rcx, rbx
mov rdx, rsi
call fcn.140048310
mov edx, dword [rsp + 0x48]
test dl, 1
je 0x14003a950
test r15b, r15b
jne 0x14003a938
mov rcx, rsi
call fcn.1400480b0
test al, al
je 0x14003a934
mov rcx, rsi
call fcn.1400480b0
xor ebp, ebp
test al, al
je 0x14003a9a0
jmp 0x14003a9ce
mov edx, dword [rsp + 0x48]
and edx, 0xfffffffe
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x14003a94a
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rsi
call fcn.1400480b0
test al, al
je 0x14003a9a0
xor ebp, ebp
test r15b, r15b
je 0x14003a9ce
mov rcx, rdi
mov rdx, r14
mov r8b, 1
call fcn.14003a820
mov ebp, eax
test eax, eax
jne 0x14003a9ce
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x14003a986
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebp, 0
test eax, eax
jne 0x14003a9ce
jmp 0x14003a9b8
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x14003a9af
mov rcx, qword [rsp + 0x30]
call r12
xor ebp, ebp
test eax, eax
jne 0x14003a9ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove ebp, eax
test r13d, r13d
cmovne ebp, r13d
mov rcx, rsi
call fcn.14000e6e0
mov rcx, rbx
mov rdx, rsi
call fcn.1400483a0
mov rcx, rdi
mov rdx, rsi
call fcn.140035a20
mov rcx, rsi
call fcn.1400359f0
movzx eax, byte [rsp + 0x47]
test al, al
jns 0x14003a8e0
mov rax, qword [rsp + 0x38]
jmp 0x14003a8e0
lea rcx, [rsp + 0x30]
call fcn.1400359f0
lea rcx, [rsp + 0x298]
call fcn.1400482a0
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.14008f710
mov eax, ebp
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret