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

Disassembly:
xor edx, edx
jmp 0x14001bce0
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 ebx, edx
mov rsi, rcx
mov rax, qword [0x140155cc0]
xor rax, rsp
mov qword [rsp + 0x68], rax
cmp byte [rcx + 0x60], 1
jne 0x14001bd2d
mov edi, dword [rsi + 0x5c]
test bl, bl
je 0x14001beb2
mov dword [rsi + 0x5c], 0xffffffff
mov byte [rsi + 0x60], 0
jmp 0x14001beb2
cmp byte [rsi + 0x61], 1
jne 0x14001bd58
mov rcx, qword [rsi + 0x40]
call fcn.1400fb7a4
cmp eax, 0xffffffff
je 0x14001be49
test bl, bl
je 0x14001be50
movzx edi, al
mov dword [rsi + 0x5c], edi
jmp 0x14001beb2
movabs rdi, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x60], rdi
mov eax, dword [rsi + 0x58]
cmp eax, 2
mov r15d, 1
cmovge r15d, eax
xor r14d, r14d
nop word [rax + rax]
mov rcx, qword [rsi + 0x40]
call fcn.1400fb7a4
cmp eax, 0xffffffff
je 0x14001be49
mov byte [rsp + r14 + 0x60], al
inc r14
cmp r15, r14
jne 0x14001bd80
mov byte [rsp + 0x5f], 0xaa
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
lea rbp, [rsp + 0x5f]
lea r12, [rsp + 0x50]
lea r14, [rsp + 0x60]
mov edi, 0xffffffff
nop word cs:[rax + rax]
mov rcx, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x50]
mov r13d, dword [rdx]
movss xmm6, dword [rdx + 4]
lea r9, [rsp + r15]
add r9, 0x60
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
lea r8, [rsp + 0x48]
mov qword [rsp + 0x38], r8
lea r8, [rsp + 0x60]
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], r12
mov r8, r14
call qword [0x140146120]
cmp eax, 1
jne 0x14001be66
mov rax, qword [rsi + 0x50]
mov dword [rax], r13d
movss dword [rax + 4], xmm6
cmp r15, 8
je 0x14001beb2
mov rcx, qword [rsi + 0x40]
call fcn.1400fb7a4
cmp eax, 0xffffffff
je 0x14001beb2
mov byte [rsp + r15 + 0x60], al
inc r15
jmp 0x14001bdd0
mov edi, 0xffffffff
jmp 0x14001beb2
mov rdx, qword [rsi + 0x40]
movzx edi, al
mov ecx, edi
call fcn.1400ff1c4
cmp eax, 0xffffffff
cmove edi, eax
jmp 0x14001beb2
cmp eax, 2
je 0x14001beb2
cmp eax, 3
jne 0x14001be79
movzx eax, byte [rsp + 0x60]
mov byte [rsp + 0x5f], al
test bl, bl
je 0x14001be87
movzx edi, byte [rsp + 0x5f]
mov dword [rsi + 0x5c], edi
jmp 0x14001beb2
mov ebx, r15d
nop word [rax + rax]
test rbx, rbx
jle 0x14001bead
mov rdx, qword [rsi + 0x40]
movzx ecx, byte [rsp + rbx + 0x5f]
dec rbx
call fcn.1400ff1c4
cmp eax, 0xffffffff
jne 0x14001be90
jmp 0x14001beb2
movzx edi, byte [rsp + 0x5f]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
cmp rcx, qword [0x140155cc0]
jne 0x14001bede
mov eax, edi
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
call fcn.1400e0180
int3
Function at 0x14001c2d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rcx
mov rax, qword [0x140155cc0]
xor rax, rsp
mov qword [rsp + 0x68], rax
cmp dx, 0xffff
je 0x14001c3e5
mov esi, edx
movzx eax, byte [rdi + 0x5e]
cmp byte [rdi + 0x5f], 1
jne 0x14001c31f
test al, 1
je 0x14001c31f
mov rdx, qword [rdi + 0x40]
movzx ecx, word [rdi + 0x5c]
call fcn.1400ff33c
cmp ax, 0xffff
jne 0x14001c3db
jmp 0x14001c3d5
test al, 1
je 0x14001c3db
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], rax
movzx ecx, word [rdi + 0x5c]
mov word [rsp + 0x56], cx
mov qword [rsp + 0x48], rax
lea r8, [rsp + 0x68]
lea r9, [rsp + 0x58]
mov rcx, qword [rdi + 0x48]
mov rdx, qword [rdi + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
lea r10, [rsp + 0x58]
mov qword [rsp + 0x38], r10
mov qword [rsp + 0x30], r8
lea rbx, [rsp + 0x60]
mov qword [rsp + 0x28], rbx
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x56]
call qword [0x140146120]
lea ecx, [rax - 1]
cmp ecx, 2
jb 0x14001c3d5
cmp eax, 3
jne 0x14001c3b0
lea rax, [rsp + 0x61]
movzx ecx, byte [rdi + 0x5c]
mov byte [rsp + 0x60], cl
mov qword [rsp + 0x58], rax
nop
mov rax, qword [rsp + 0x58]
cmp rax, rbx
jbe 0x14001c3db
mov rdx, qword [rdi + 0x40]
lea rcx, [rax - 1]
mov qword [rsp + 0x58], rcx
movsx ecx, byte [rax - 1]
call fcn.1400ff1c4
cmp eax, 0xffffffff
jne 0x14001c3b0
mov si, 0xffff
jmp 0x14001c3fb
mov word [rdi + 0x5c], si
mov byte [rdi + 0x5e], 1
jmp 0x14001c3fb
mov si, 0xffff
cmp byte [rdi + 0x5e], 0
jne 0x14001c3fb
movzx esi, word [rdi + 0x5c]
cmp si, 0xffff
setne byte [rdi + 0x5e]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
cmp rcx, qword [0x140155cc0]
jne 0x14001c416
mov eax, esi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
call fcn.1400e0180
int3
Function at 0x140031d80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov rsi, r9
mov rdi, r8
mov rbx, rdx
mov r14, qword [rsp + 0x70]
jmp 0x140031da8
add rax, 2
mov qword [rcx + 0x18], rax
mov rcx, qword [rbx]
mov bpl, 1
test rcx, rcx
je 0x140031e0a
mov rax, qword [rcx + 0x18]
cmp rax, qword [rcx + 0x20]
je 0x140031df0
movzx eax, word [rax]
cmp ax, 0xffff
je 0x140031e03
mov rcx, qword [rbx]
test rcx, rcx
sete bpl
test rdi, rdi
jne 0x140031e11
mov edi, 0
test bpl, bpl
je 0x140031e43
jmp 0x140031eab
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [0x140146120]
cmp ax, 0xffff
jne 0x140031dc6
mov qword [rbx], 0
xor ecx, ecx
test rdi, rdi
je 0x140031dd5
mov rax, qword [rdi + 0x18]
cmp rax, qword [rdi + 0x20]
je 0x140031e20
movzx eax, word [rax]
jmp 0x140031e33
mov rax, qword [rdi]
mov rax, qword [rax + 0x40]
mov rcx, rdi
call qword [0x140146120]
mov rcx, qword [rbx]
cmp ax, 0xffff
sete al
jne 0x140031e3e
xor edi, edi
cmp bpl, al
je 0x140031eab
mov rax, qword [rcx + 0x18]
cmp rax, qword [rcx + 0x20]
je 0x140031e60
movzx r8d, word [rax]
jmp 0x140031e70
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [0x140146120]
mov r8d, eax
mov rax, qword [r14]
mov rax, qword [rax + 0x18]
mov rcx, r14
mov dx, 8
call qword [0x140146120]
mov rcx, qword [rbx]
test al, al
je 0x140031eab
mov rax, qword [rcx + 0x18]
cmp rax, qword [rcx + 0x20]
jne 0x140031da0
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [0x140146120]
jmp 0x140031da8
mov bpl, 1
test rcx, rcx
je 0x140031ece
mov rax, qword [rcx + 0x18]
cmp rax, qword [rcx + 0x20]
je 0x140031ee2
movzx eax, word [rax]
cmp ax, 0xffff
je 0x140031ef5
cmp qword [rbx], 0
sete bpl
test rdi, rdi
je 0x140031f01
mov rax, qword [rdi + 0x18]
cmp rax, qword [rdi + 0x20]
je 0x140031f08
movzx eax, word [rax]
jmp 0x140031f18
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [0x140146120]
cmp ax, 0xffff
jne 0x140031ec6
mov qword [rbx], 0
test rdi, rdi
jne 0x140031ed3
test bpl, bpl
jne 0x140031f24
jmp 0x140031f27
mov rax, qword [rdi]
mov rax, qword [rax + 0x40]
mov rcx, rdi
call qword [0x140146120]
cmp ax, 0xffff
sete al
xor bpl, al
jne 0x140031f27
or byte [rsi], 2
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x14003de50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rdi, r9
mov rax, rdx
mov rbx, qword [rsp + 0x90]
mov rdx, qword [0x140155cc0]
xor rdx, rsp
mov qword [rsp + 0x48], rdx
mov qword [rbx], r8
mov byte [rsp + 0x44], 0xaa
mov dword [rsp + 0x40], 0xaaaaaaaa
movups xmm0, xmmword [rcx + 0x10]
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
lea rsi, [rsp + 0x40]
lea r9, [rsp + 0x20]
mov rcx, rsi
xor edx, edx
mov r8, rax
call fcn.140044e90
mov rcx, rax
lea rdx, [rax + 1]
mov eax, 2
cmp rdx, 2
jb 0x14003df84
lea rdx, [rcx - 1]
sub rdi, qword [rbx]
mov eax, 1
cmp rdx, rdi
ja 0x14003df84
xor eax, eax
test rdx, rdx
je 0x14003df84
add rcx, 0xfffffffffffffffe
mov r8, rdx
and r8, 3
je 0x14003df26
xor r9d, r9d
nop word cs:[rax + rax]
movzx r10d, byte [rsp + r9 + 0x40]
mov r11, qword [rbx]
lea rsi, [r11 + 1]
mov qword [rbx], rsi
mov byte [r11], r10b
inc r9
cmp r8, r9
jne 0x14003df00
lea rsi, [rsp + r9]
add rsi, 0x40
sub rdx, r9
cmp rcx, 3
jb 0x14003df84
xor eax, eax
xor ecx, ecx
movzx r8d, byte [rsi + rcx]
mov r9, qword [rbx]
lea r10, [r9 + 1]
mov qword [rbx], r10
mov byte [r9], r8b
movzx r8d, byte [rsi + rcx + 1]
mov r9, qword [rbx]
lea r10, [r9 + 1]
mov qword [rbx], r10
mov byte [r9], r8b
movzx r8d, byte [rsi + rcx + 2]
mov r9, qword [rbx]
lea r10, [r9 + 1]
mov qword [rbx], r10
mov byte [r9], r8b
movzx r8d, byte [rsi + rcx + 3]
mov r9, qword [rbx]
lea r10, [r9 + 1]
mov qword [rbx], r10
mov byte [r9], r8b
add rcx, 4
cmp rdx, rcx
jne 0x14003df30
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
cmp rcx, qword [0x140155cc0]
jne 0x14003df9d
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
call fcn.1400e0180
int3

Function at 0x1400459d0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, rcx
mov rax, qword [0x140155cc0]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor eax, eax
test r8d, r8d
sete al
xor r8d, r8d
test edx, edx
sete r8b
xor ecx, ecx
mov edx, r8d
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], 0
test rax, rax
je 0x140045a74
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140045ad5
lea rax, [rdi + 1]
cmp rax, 2
jae 0x140045af7
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov byte [rsi + 8], 0
inc rax
cmp rax, 1
jbe 0x140045a78
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
cmp rcx, qword [0x140155cc0]
jne 0x140045acf
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
mov byte [rsi + 8], 0
lea rdx, str.WaitableEvent
lea r8, str....._base_synchronizationwaitable_event_win.cc
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r9d, 0x31
call fcn.140054de0
lea rdx, str.handle_.is_valid__
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov r8d, 0xffffffff
mov r9, rdi
call fcn.14005b640
mov rcx, rbx
call fcn.14005b960
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
cmp rcx, qword [0x140155cc0]
je 0x140045a69
call fcn.1400e0180
int3
call fcn.140054e00
mov rcx, qword [rsi]
call fcn.140066da0
mov qword [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140045a40
mov qword [rsi], rdi
call fcn.140054e00
jmp 0x140045a40
Function at 0x140045e50
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140155cc0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov qword [rcx], 0
test rdx, rdx
je 0x140045ea0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140045ed3
lea rax, [rdi + 1]
cmp rax, 2
jae 0x140045ef1
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rdi, rax
je 0x140045efb
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
cmp rcx, qword [0x140155cc0]
jne 0x140045ecd
mov rax, rsi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400e0180
int3
call fcn.140054e00
mov rcx, qword [rsi]
call fcn.140066da0
mov qword [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140045e98
mov qword [rsi], rdi
call fcn.140054e00
jmp 0x140045e98
mov rcx, rax
call fcn.14005b1d0
mov rbx, rax
mov rcx, rdi
call fcn.14005b1d0
lea rcx, str.handle___::GetCurrentProcess__
mov rdx, rax
mov r8, rbx
call fcn.14005b340
test rax, rax
je 0x140045eaf
mov rdi, rax
lea rdx, str.Process
lea r8, str....._baseprocessprocess_win.cc
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov r9d, 0x29
call fcn.140054de0
lea r14, [rsp + 0x48]
mov rcx, r14
mov rdx, rdi
mov r8d, 0xffffffff
mov r9, rbx
call fcn.14005b6f0
mov rcx, r14
call fcn.14005b960
jmp 0x140045eaf
Function at 0x140046c60
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rcx + 0x10]
cmp rbx, qword [rcx + 0x18]
je 0x140046c87
mov r15, rbx
jmp 0x140046d9f
mov r12, qword [rsi]
mov r14, qword [rsi + 8]
mov rax, r14
sub rax, r12
jbe 0x140046ce6
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r12, rax
neg r12
shl rax, 3
mov r15, r14
sub r15, rax
sub rbx, r14
je 0x140046cd2
mov rcx, r15
mov rdx, r14
mov r8, rbx
call fcn.1401145c0
mov r14, qword [rsi + 8]
add r15, rbx
mov qword [rsi + 0x10], r15
lea rax, [r14 + r12*8]
mov qword [rsi + 8], rax
jmp 0x140046d9f
mov rax, rbx
sub rax, r12
sar rax, 2
cmp rbx, r12
mov r13d, 1
cmovne r13, rax
mov rax, r13
shr rax, 0x3d
jne 0x140046dd2
lea rcx, [r13*8]
call fcn.1400dff64
mov rcx, r13
and rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
mov rdx, rbx
mov r15, rcx
sub rdx, r14
je 0x140046d58
lea r15, [rdx + rcx]
xor r8d, r8d
nop word cs:[rax + rax]
mov r9, rcx
add r9, r8
je 0x140046dbf
mov r10, qword [r14 + r8]
mov qword [r9], r10
add r8, 8
cmp rdx, r8
jne 0x140046d40
lea rdx, [rax + r13*8]
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], rdx
nop dword [rax + rax]
cmp rbx, r14
je 0x140046d8e
add rbx, 0xfffffffffffffff8
jne 0x140046d70
lea rcx, [0x140117223]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:66:_assertion___loc___nullptr_failed:_null_pointer_given_to_destroy_at_n
call fcn.140044b40
test r12, r12
je 0x140046d9f
mov rcx, r12
call fcn.1400dffa0
mov r15, qword [rsi + 0x10]
test r15, r15
je 0x140046dbf
mov rax, qword [rdi]
mov qword [r15], rax
add qword [rsi + 0x10], 8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x140117223]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
call fcn.140044b40
call fcn.140001a50
int3
Function at 0x140047410
Capabilities:
Move file

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa0
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140155cc0]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
lea rdx, [0x14011de2b]
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x30]
mov rcx, r14
mov r9d, 0x1d9
call fcn.140054de0
lea rcx, [rsp + 0x50]
mov rdx, r14
xor r8d, r8d
call fcn.140069250
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x140047493
mov rdx, qword [rbx]
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x14004749f
mov rcx, qword [rdi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor r8d, r8d
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov r14b, 1
test eax, eax
jne 0x14004750a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14006a390
mov ebp, eax
cmp byte [rdi + 0x17], 0
jns 0x1400474d5
mov rdi, qword [rdi]
cmp byte [rbx + 0x17], 0
jns 0x1400474de
mov rbx, qword [rbx]
mov rcx, rbx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne r14b
test rsi, rsi
je 0x14004750a
test eax, eax
jne 0x14004750a
cmp ebp, 0xfffffffc
jne 0x140047505
call fcn.14006a310
mov ebp, eax
mov dword [rsi], ebp
xor r14d, r14d
lea rcx, [rsp + 0x50]
call fcn.1400692f0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
cmp rcx, qword [0x140155cc0]
jne 0x140047539
mov eax, r14d
add rsp, 0xa0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call fcn.1400e0180
int3

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rsi, rcx
mov rax, qword [0x140155cc0]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
lea rdx, str.PathExists
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x203
call fcn.140054de0
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140069250
cmp byte [rsi + 0x17], 0
jns 0x1400475b7
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rdi
call fcn.1400692f0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
cmp rcx, qword [0x140155cc0]
jne 0x1400475ef
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
call fcn.1400e0180
int3
Function at 0x140047600
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb0
mov ebp, r8d
mov esi, edx
mov rdi, rcx
mov rax, qword [0x140155cc0]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
lea rdx, str.PathHasAccess
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x40]
mov rcx, r14
mov r9d, 0x20c
call fcn.140054de0
lea rcx, [rsp + 0x60]
xor ebx, ebx
mov rdx, r14
xor r8d, r8d
call fcn.140069250
cmp byte [rdi + 0x17], 0
jns 0x140047684
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14004771c
test al, 0x10
cmove esi, ebp
mov eax, 0x80
mov ecx, 0x2000000
cmove ecx, eax
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 3
xor r14d, r14d
mov rcx, rdi
mov edx, esi
mov r8d, 7
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
test rax, rax
je 0x1400476ff
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp rdi, 0xffffffffffffffff
je 0x1400476f4
call fcn.140054e00
mov r14, rdi
jmp 0x1400476f7
xor r14d, r14d
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
setne bl
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14004771c
call fcn.140054e00
mov rcx, r14
call fcn.140066da0
lea rcx, [rsp + 0x60]
call fcn.1400692f0
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
cmp rcx, qword [0x140155cc0]
jne 0x14004774a
mov eax, ebx
add rsp, 0xb0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call fcn.1400e0180
int3
mov edx, 2
mov r8d, 0x40000000
jmp 0x140047600

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rsi, rcx
mov rax, qword [0x140155cc0]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
lea rdx, str.DirectoryExists
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x22b
call fcn.140054de0
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140069250
cmp byte [rsi + 0x17], 0
jns 0x1400477d7
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp eax, 0xffffffff
setne al
and esi, 0x10
shr esi, 4
and sil, al
mov rcx, rdi
call fcn.1400692f0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
cmp rcx, qword [0x140155cc0]
jne 0x14004781a
mov eax, esi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
call fcn.1400e0180
int3
Function at 0x140047820
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x140155cc0]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.140114c60
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x1400478bf
mov qword [rsp + 0x20], rbx
mov rcx, rbx
call fcn.1400ffa68
mov qword [rsp + 0x28], rax
lea rbx, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140054e90
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.1400573c0
mov rcx, rsi
mov rdx, r14
call fcn.140055070
mov rcx, r14
call fcn.140055000
mov rcx, rbx
call fcn.140055000
cmp edi, 0x103
setb al
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
cmp rcx, qword [0x140155cc0]
jne 0x1400478e9
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400e0180
int3

Function at 0x1400478f0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x288
mov rsi, rcx
mov rax, qword [0x140155cc0]
xor rax, rsp
mov qword [rsp + 0x280], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140114c60
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov edx, 0x28
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140047984
cmp word [rsp + 0x70], 0
je 0x140047984
mov qword [rsp + 0x60], rdi
mov rcx, rdi
call fcn.1400ffa68
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.140054e90
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
cmp rcx, qword [0x140155cc0]
je 0x140047a0b
call fcn.1400e0180
int3
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0x40], xmm0
lea rdi, [rsp + 0x40]
mov rcx, rdi
call fcn.140054e10
mov rcx, rdi
call fcn.140047820
test al, al
je 0x1400479c7
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140054e70
jmp 0x1400479e9
lea rax, [0x14011de54]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 3
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140054e90
lea rcx, [rsp + 0x40]
call fcn.140055000
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
cmp rcx, qword [0x140155cc0]
jne 0x14004797e
mov rax, rsi
add rsp, 0x288
pop rdi
pop rsi
ret
Function at 0x140047e80
Capabilities:
Check if file exists
Create directory

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa0
movaps xmmword [rsp + 0x90], xmm6
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140155cc0]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm6, xmmword [section..rdata]
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
lea rdx, str.CreateDirectoryAndGetError
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x2cb
call fcn.140054de0
lea rcx, [rsp + 0x40]
mov rdx, rbx
xor r8d, r8d
call fcn.140069250
cmp byte [rdi + 0x17], 0
mov rbx, rdi
jns 0x140047f05
mov rbx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140047f3a
mov bl, 1
test al, 0x10
jne 0x140048044
test rsi, rsi
je 0x140047f28
mov dword [rsi], 0xfffffff7
mov ecx, 0x50
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x140048044
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x30], rax
movaps xmmword [rsp + 0x20], xmm6
lea r14, [rsp + 0x20]
mov rcx, rdi
mov rdx, r14
call fcn.140055920
movsx rcx, byte [rdi + 0x17]
mov rax, rcx
test rcx, rcx
js 0x140047f80
movsx r8, byte [rsp + 0x37]
mov rdx, r8
test r8, r8
js 0x140047f92
cmp rdx, rax
je 0x140047f9c
jmp 0x140047fe5
mov rax, qword [rdi + 8]
movsx r8, byte [rsp + 0x37]
mov rdx, r8
test r8, r8
jns 0x140047f79
mov rdx, qword [rsp + 0x28]
cmp rdx, rax
jne 0x140047fe5
test rax, rax
je 0x140047fd4
mov rdx, rdi
test cl, cl
jns 0x140047fab
mov rdx, qword [rdi]
test r8b, r8b
jns 0x140047fb5
mov r14, qword [rsp + 0x20]
xor ecx, ecx
nop word [rax + rax]
movzx r8d, word [r14 + rcx*2]
cmp r8w, word [rdx + rcx*2]
jne 0x140047fe5
inc rcx
cmp rax, rcx
jne 0x140047fc0
mov eax, 0xfffffffc
mov ebp, 2
test rsi, rsi
jne 0x14004802e
jmp 0x140048030
lea rcx, [rsp + 0x20]
mov rdx, rsi
call fcn.140047e80
test al, al
je 0x140048038
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x14004803a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp eax, 0xb7
jne 0x140048022
mov rcx, rdi
call fcn.140047760
test al, al
jne 0x14004803a
test rsi, rsi
je 0x140048030
mov ecx, ebp
call fcn.14006a390
mov dword [rsi], eax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
lea rcx, [rsp + 0x20]
call fcn.140055000
lea rcx, [rsp + 0x40]
call fcn.1400692f0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
cmp rcx, qword [0x140155cc0]
jne 0x14004807a
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call fcn.1400e0180
int3