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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
movaps xmmword [rsp + 0x50], xmm6
mov rsi, rcx
mov rax, qword [0x1401e5d38]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor r13d, r13d
lea rbp, [0x140196150]
movaps xmm6, xmmword [section..rdata]
lea r14, [rsp + 0x20]
nop dword [rax]
mov rax, r13
shl rax, 4
movabs rcx, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x40], rcx
movaps xmmword [rsp + 0x30], xmm6
mov rdx, qword [rax + rbp]
mov r8, qword [rax + rbp + 8]
lea rcx, [rsp + 0x30]
call fcn.14000e120
movzx r15d, byte [rsp + 0x30]
test r15b, 1
je 0x140033240
mov r12, qword [rsp + 0x40]
mov r15, qword [rsp + 0x38]
jmp 0x140033248
shr r15, 1
lea r12, [rsp + 0x32]
xor ebx, ebx
mov rcx, rsi
mov rdx, r14
xor r8d, r8d
mov r9, r15
call fcn.140034480
cmp qword [rsp + 0x28], r15
je 0x140033280
test byte [rsp + 0x30], 1
jne 0x1400332e0
test bl, bl
je 0x1400332ee
jmp 0x140033307
test r15, r15
je 0x1400332a3
mov rax, qword [rsp + 0x20]
xor ecx, ecx
nop dword [rax]
movzx edx, word [rax + rcx*2]
cmp dx, word [r12 + rcx*2]
jne 0x1400332cc
inc rcx
cmp r15, rcx
jne 0x140033290
movzx edi, byte [rsp + 0x30]
test dil, 1
jne 0x1400332bc
shr rdi, 1
mov bl, 1
test byte [rsp + 0x30], 1
je 0x140033269
jmp 0x1400332e0
mov bl, 1
mov rdi, qword [rsp + 0x38]
test byte [rsp + 0x30], 1
je 0x140033269
jmp 0x1400332e0
xor ebx, ebx
test byte [rsp + 0x30], 1
je 0x140033269
nop word cs:[rax + rax]
mov rcx, qword [rsp + 0x40]
call fcn.140153cd8
test bl, bl
jne 0x140033307
inc r13
movzx eax, byte [0x1401eb270]
xor rax, 3
cmp r13, rax
jb 0x1400331f0
xor edi, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140154030
mov rax, rdi
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1400386e0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
call fcn.1400564c0
mov qword [rsi], 0
test rax, rax
je 0x140038747
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jb 0x14003872d
call fcn.14003ba10
mov rcx, qword [rsi]
call fcn.14005bb90
mov qword [rsi], 0
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14003873f
mov qword [rsi], rbx
call fcn.14003ba10
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsi + 8]
lea rdx, [rdi + 8]
call fcn.140038840
lea rcx, [rsi + 0x20]
call fcn.1400719e0
mov eax, dword [rdi + 0x24]
mov dword [rsi + 0x24], eax
movzx eax, byte [rdi + 0x28]
mov byte [rsi + 0x28], al
movzx eax, byte [rdi + 0x29]
mov byte [rsi + 0x29], al
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x14003ba20
Capabilities:
Delete file
Get common file path

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.14003bae0
mov eax, dword [rsi]
mov dword [0x1401e4648], eax
test al, 1
jne 0x14003ba41
mov al, 1
add rsp, 0x20
pop rsi
ret
mov rcx, qword [0x1401eb2c8]
test rcx, rcx
je 0x14003ba73
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1401eb2c8], 0
mov rcx, qword [0x1401eb2a0]
test rcx, rcx
jne 0x14003baa1
and byte [0x1401e4648], 0xfe
jmp 0x14003ba7f
mov rcx, qword [0x1401eb2a0]
test rcx, rcx
jne 0x14003baa1
mov ecx, 0x18
call fcn.140153c88
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x1401eb2a0], rax
mov rdx, qword [rsi + 8]
call fcn.14002ef08
cmp dword [rsi + 0x14], 0
jne 0x14003bacc
mov rcx, qword [0x1401eb2a0]
test byte [rcx], 1
je 0x14003bac2
mov rcx, qword [rcx + 0x10]
jmp 0x14003bac6
add rcx, 2
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
add rsp, 0x20
pop rsi
jmp fcn.14003bc30
Function at 0x14003bc30
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x1401e5d38]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x1401eb2c8], 0
jne 0x14003be83
mov rdi, qword [0x1401eb2a0]
test rdi, rdi
je 0x14003bc7b
test byte [0x1401e4648], 1
jne 0x14003bd2e
jmp 0x14003be83
mov ecx, 0x18
call fcn.140153c88
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.140157190
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [section..rdata]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.140001ad8
movzx r8d, byte [rdi]
test r8b, 1
je 0x14003bce1
mov r8, qword [rdi + 8]
jmp 0x14003bce4
shr r8, 1
mov rcx, rdi
mov dx, 0x5c
call fcn.14002eba4
cmp rax, 0xffffffffffffffff
je 0x14003bd0b
inc rax
mov rcx, rdi
mov rdx, rax
mov r8, 0xffffffffffffffff
call fcn.14002ec18
lea rdx, [0x1401963d4]
mov rcx, rdi
call fcn.14002f1aa
mov qword [0x1401eb2a0], rdi
test byte [0x1401e4648], 1
je 0x14003be83
test byte [rdi], 1
jne 0x14003bd39
add rdi, 2
jmp 0x14003bd3d
mov rdi, qword [rdi + 0x10]
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 [0x1401eb2c8], rax
inc rax
cmp rax, 1
ja 0x14003be83
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140157190
mov word [rsp + 0x40], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jb 0x14003be81
mov rcx, qword [0x1401eb2a0]
lea rdx, [rsp + 0x40]
call fcn.14002ef08
mov rcx, qword [0x1401eb2a0]
movzx eax, byte [rcx]
test al, 1
jne 0x14003bdeb
cmp al, 2
jb 0x14003bea0
lea rdx, [rcx + 2]
shr rax, 1
jmp 0x14003bdfc
mov rax, qword [rcx + 8]
test rax, rax
je 0x14003bea0
mov rdx, qword [rcx + 0x10]
cmp word [rdx + rax*2 - 2], 0x5c
je 0x14003be17
lea rdx, [0x1401963d0]
call fcn.14002f1aa
mov rcx, qword [0x1401eb2a0]
lea rdx, [0x1401963d4]
call fcn.14002f1aa
mov rcx, qword [0x1401eb2a0]
test byte [rcx], 1
jne 0x14003be35
add rcx, 2
jmp 0x14003be39
mov rcx, qword [rcx + 0x10]
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 [0x1401eb2c8], rax
inc rax
cmp rax, 1
ja 0x14003be83
mov qword [0x1401eb2c8], 0
xor esi, esi
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.140154030
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
lea rax, str.string::back__:_string_is_empty
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude_string
lea r9, str._empty__
mov r8d, 0xd86
call fcn.140006d88
int3
Function at 0x1400523c0
Capabilities:
Get thread local storage value

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

Function at 0x1400523f0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x1401e5d38]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, dword [0x1401e4680]
cmp ecx, 0xffffffff
je 0x140052421
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140052426
call fcn.1400525d0
mov eax, dword [0x1401ecc38]
mov ecx, dword [0x1401ed290]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 0x24]
jg 0x14005257c
mov rbx, qword [0x1401ecc30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14005256f
mov rcx, qword [0x1401eb420]
inc rcx
mov edx, 0x100
lea rax, [0x1401eb430]
nop dword [rax]
movzx r8d, cl
lea r9, [r8 + r8*2]
cmp dword [rax + r9*8], 0
je 0x1400524ae
lea r8d, [rcx + 1]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rax + r9*8], 0
je 0x1400524ae
add rcx, 2
add rdx, 0xfffffffffffffffe
jne 0x140052480
jmp 0x1400524d2
lea rcx, [rax + r9*8]
mov dword [rcx], 1
lea rcx, [r8 + r8*2]
mov qword [rax + rcx*8 + 8], rdi
mov qword [0x1401eb420], r8
mov qword [rsi], r8
mov eax, dword [rax + rcx*8 + 0x10]
mov dword [rsi + 8], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x30], rax
mov rsi, qword [rsi]
cmp rsi, 0x100
jb 0x140052559
mov ecx, 0x100
call fcn.140031270
mov rdi, rax
mov rcx, rsi
call fcn.140031270
lea rdx, str.slot____kThreadLocalStorageSize
lea rcx, [rsp + 0x30]
mov r8, rax
mov r9, rdi
call fcn.140031520
cmp qword [rsp + 0x30], 0
je 0x140052559
lea rdx, str....._base_threading_thread_local_storage.cc
lea rsi, [rsp + 0x28]
lea r9, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x1c7
call fcn.140030f50
mov rcx, rsi
call fcn.140031080
mov rcx, rsi
call fcn.140031090
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140154030
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
mov rcx, rbx
call fcn.14005aa90
jmp 0x140052463
lea rcx, [0x1401ecc38]
call fcn.140153df0
cmp dword [0x1401ecc38], 0xffffffff
jne 0x14005244b
mov ecx, 8
call fcn.140153c88
mov rbx, rax
mov rcx, rax
call fcn.14005aa80
mov qword [0x1401ecc30], rbx
lea rcx, [0x1401ecc38]
call fcn.140153e88
jmp 0x14005244b
Function at 0x1400525d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.140153fd0
sub rsp, rax
mov rax, qword [0x1401e5d38]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x1401e4680]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
jne 0x1400526c6
lea rcx, [rsp + 0x2c]
call fcn.1400827f0
test al, al
jne 0x14005264b
lea rdx, str....._base_threading_thread_local_storage.cc
lea r9, str.PlatformThreadLocalStorage::AllocTLS_key_
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x101
call fcn.140030ec0
mov rcx, rsi
call fcn.140031080
mov rcx, rsi
call fcn.140031090
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
jne 0x1400526a8
lea rcx, [rsp + 0x2c]
call fcn.1400827f0
test al, al
je 0x140052669
cmp dword [rsp + 0x2c], 0xffffffff
jne 0x14005269a
lea rdx, str....._base_threading_thread_local_storage.cc
lea r9, str.PlatformThreadLocalStorage::AllocTLS_key___key___PlatformThreadLocalStorage::TLS_KEY_OUT_OF_INDEXES
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x10b
call fcn.140030ec0
mov rcx, rsi
call fcn.140031080
mov rcx, rsi
call fcn.140031090
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
mov eax, 0xffffffff
lock cmpxchg dword [0x1401e4680], ecx
je 0x1400526c6
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x1401e4680]
mov dword [rsp + 0x2c], ecx
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
and esi, 3
je 0x140052742
xor ecx, ecx
call fcn.1400310b0
mov rdi, rax
mov ecx, esi
call fcn.1400310b0
lea rdx, str.GetTlsVectorStateAndValue_key___TlsVectorState::kUninitialized
lea rcx, [rsp + 0x30]
mov r8, rax
mov r9, rdi
call fcn.140031520
cmp qword [rsp + 0x30], 0
je 0x140052742
lea rdx, str....._base_threading_thread_local_storage.cc
lea rsi, [rsp + 0x20]
lea r9, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x11d
call fcn.140030f50
mov rcx, rsi
call fcn.140031080
mov rcx, rsi
call fcn.140031090
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.140157190
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.140153d0c
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.140156ae0
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.140154030
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret

Function at 0x140052890
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x1401e4680]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400528c0
mov rcx, qword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 8]
jne 0x1400528c0
mov rax, qword [rax + rcx]
jmp 0x1400528c2
xor eax, eax
add rsp, 0x20
pop rsi
ret
Function at 0x1400528d0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x1401e4680]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14005290e
mov rcx, qword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 8]
mov rdx, qword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
test rdi, rdi
je 0x140052907
call fcn.1400525d0
jmp 0x1400528ee
Function at 0x1400555f0
Capabilities:
Move file

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4b0
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov rax, qword [0x1401e5d38]
xor rax, rsp
mov qword [rsp + 0x4a8], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x4a0], rax
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0x490], xmm0
movaps xmmword [rsp + 0x480], xmm0
movaps xmmword [rsp + 0x470], xmm0
movaps xmmword [rsp + 0x460], xmm0
movaps xmmword [rsp + 0x450], xmm0
lea rdx, [0x14019724e]
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x240]
mov rcx, r14
mov r9d, 0x194
call fcn.14003b9f0
lea rcx, [rsp + 0x450]
mov rdx, r14
xor r8d, r8d
call fcn.140051c40
lea r15, [rsp + 0x240]
mov r8d, 0x208
mov rcx, r15
mov dl, 0xaa
call fcn.140157190
lea r14, [rdi + 2]
test byte [rdi], 1
mov rdx, r14
je 0x1400556bc
mov rdx, qword [rdi + 0x10]
mov r8d, 0x104
mov rcx, r15
call fcn.14004f3c0
mov rcx, r15
call fcn.140002a70
lea r12, [rsp + 0x30]
mov r8d, 0x208
mov rcx, r12
mov dl, 0xaa
call fcn.140157190
lea r15, [rbx + 2]
test byte [rbx], 1
mov rdx, r15
je 0x1400556f7
mov rdx, qword [rbx + 0x10]
mov r8d, 0x104
mov rcx, r12
call fcn.14004f3c0
mov rcx, r12
call fcn.140002a70
test byte [rdi], 1
mov rdx, r14
je 0x140055719
mov rdx, qword [rdi + 0x10]
test byte [rbx], 1
mov rcx, r15
je 0x140055725
mov rcx, qword [rbx + 0x10]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor r8d, r8d
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov r12b, 1
test eax, eax
jne 0x140055790
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140056da0
mov ebp, eax
test byte [rbx], 1
je 0x14005575b
mov r15, qword [rbx + 0x10]
test byte [rdi], 1
je 0x140055764
mov r14, qword [rdi + 0x10]
mov rcx, r14
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne r12b
test rsi, rsi
je 0x140055790
test eax, eax
jne 0x140055790
cmp ebp, 0xfffffffc
jne 0x14005578b
call fcn.140056d80
mov ebp, eax
mov dword [rsi], ebp
xor r12d, r12d
lea rcx, [rsp + 0x450]
call fcn.140051f30
mov rcx, qword [rsp + 0x4a8]
xor rcx, rsp
call fcn.140154030
mov eax, r12d
add rsp, 0x4b0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400557d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rcx
mov rax, qword [0x1401e5d38]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x90], 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
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, 0x1c7
call fcn.14003b9f0
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140051c40
test byte [rsi], 1
je 0x140055863
mov rsi, qword [rsi + 0x10]
jmp 0x140055867
add rsi, 2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rdi
call fcn.140051f30
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140154030
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400558a0
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x1401e5d38]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.140157190
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
add edi, 0xfffffefc
cmp edi, 0xfffffefd
jb 0x140055943
mov qword [rsp + 0x20], rbx
mov rcx, rbx
call fcn.140178b34
mov qword [rsp + 0x28], rax
lea rbx, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140038870
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.140039f40
mov rcx, rsi
mov rdx, r14
call fcn.1400388f0
mov rcx, r14
call fcn.1400388c0
mov rcx, rbx
call fcn.1400388c0
cmp edi, 0xfffffefd
setae bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140154030
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140055970
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x288
mov rsi, rcx
mov rax, qword [0x1401e5d38]
xor rax, rsp
mov qword [rsp + 0x280], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140157190
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 0x1400559e8
cmp word [rsp + 0x70], 0
je 0x1400559e8
mov qword [rsp + 0x60], rdi
mov rcx, rdi
call fcn.140178b34
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.140038870
jmp 0x140055a57
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.140038820
mov rcx, rdi
call fcn.1400558a0
test al, al
je 0x140055a2b
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140038850
jmp 0x140055a4d
lea rax, [0x140197266]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 3
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140038870
lea rcx, [rsp + 0x40]
call fcn.1400388c0
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140154030
mov rax, rsi
add rsp, 0x288
pop rdi
pop rsi
ret
Function at 0x140055e50
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2d8
mov rsi, rcx
mov rax, qword [0x1401e5d38]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x2c0], rax
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0x2b0], xmm0
movaps xmmword [rsp + 0x2a0], xmm0
movaps xmmword [rsp + 0x290], xmm0
movaps xmmword [rsp + 0x280], xmm0
movaps xmmword [rsp + 0x270], xmm0
lea rdx, [0x140197298]
lea r8, str....._base_files_file_util_win.cc
lea rdi, [rsp + 0x60]
mov rcx, rdi
mov r9d, 0x3af
call fcn.14003b9f0
lea rcx, [rsp + 0x270]
mov rdx, rdi
xor r8d, r8d
call fcn.140051c40
lea rbx, [rsp + 0x60]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.140157190
mov word [rsp + 0x60], 0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
add edi, 0xfffffefb
cmp edi, 0xfffffefc
jb 0x140055f6f
mov qword [rsp + 0x20], rbx
mov rcx, rbx
call fcn.140178b34
mov qword [rsp + 0x28], rax
lea rbx, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140038870
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.140039f40
mov rcx, rsi
mov rdx, r14
call fcn.1400388f0
mov rcx, r14
call fcn.1400388c0
mov rcx, rbx
call fcn.1400388c0
cmp edi, 0xfffffefc
setae bl
lea rcx, [rsp + 0x270]
call fcn.140051f30
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140154030
mov eax, ebx
add rsp, 0x2d8
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140055fb0
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rcx
mov rax, qword [0x1401e5d38]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x90], 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
movaps xmmword [rsp + 0x40], xmm0
lea rdx, [0x1401972ad]
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x3bf
call fcn.14003b9f0
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140051c40
test byte [rsi], 1
je 0x140056043
mov rsi, qword [rsi + 0x10]
jmp 0x140056047
add rsi, 2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rdi
call fcn.140051f30
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140154030
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x140056250
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 ebx, r8d
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1401e5d38]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea r14, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, r14
mov dl, 0xaa
call fcn.140157190
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
xor ebp, ebp
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.140071c10
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x40], rax
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.140071df0
movzx eax, byte [rsp + 0x30]
test al, 1
je 0x1400562f6
mov rax, qword [rsp + 0x38]
test rax, rax
jne 0x140056302
jmp 0x14005645e
shr rax, 1
test rax, rax
je 0x14005645e
lea r13, [rsp + 0x32]
lea rdi, [rsp + 0x48]
lea r14, [rsp + 0x298]
lea r15, [rsp + 0x30]
mov r12, qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
jmp 0x140056340
mov rax, qword [rsp + 0x38]
mov esi, ebp
test rax, rax
je 0x14005645e
mov r8d, 0x250
mov rcx, rdi
mov dl, 0xaa
call fcn.140157190
mov rcx, r14
mov rdx, rdi
call fcn.140071db0
mov edx, dword [rsp + 0x48]
test dl, 1
je 0x1400563a3
test bl, bl
jne 0x14005638b
mov rcx, rdi
call fcn.140071c00
test al, al
je 0x140056387
mov rcx, rdi
call fcn.140071c00
xor ebp, ebp
test al, al
je 0x1400563f0
jmp 0x14005641e
mov edx, dword [rsp + 0x48]
and edx, 0xfffffffe
test byte [rsp + 0x30], 1
mov rcx, r13
je 0x14005639d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rdi
call fcn.140071c00
test al, al
je 0x1400563f0
xor ebp, ebp
test bl, bl
je 0x14005641e
mov rcx, r15
mov rdx, qword [rsp + 0x28]
mov r8b, 1
call fcn.140056250
mov ebp, eax
test eax, eax
jne 0x14005641e
test byte [rsp + 0x30], 1
mov rcx, r13
je 0x1400563da
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebp, 0
test eax, eax
jne 0x14005641e
jmp 0x140056408
test byte [rsp + 0x30], 1
mov rcx, r13
je 0x1400563ff
mov rcx, qword [rsp + 0x40]
call r12
xor ebp, ebp
test eax, eax
jne 0x14005641e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove ebp, eax
test esi, esi
cmovne ebp, esi
mov rcx, rdi
call fcn.140002a70
mov rcx, r14
mov rdx, rdi
call fcn.140071df0
mov rcx, r15
mov rdx, rdi
call fcn.1400388f0
mov rcx, rdi
call fcn.1400388c0
movzx eax, byte [rsp + 0x30]
test al, 1
jne 0x140056330
shr rax, 1
jmp 0x140056335
lea rcx, [rsp + 0x30]
call fcn.1400388c0
lea rcx, [rsp + 0x298]
call fcn.140071d40
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.140154030
mov eax, ebp
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret