joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001a050
Capabilities:
Encode data using xor

Disassembly:
cmp rdx, r8
je 0x14001a078
movabs rcx, 0xf000000000000000
mov r9, r8
sub r9, rdx
dec r8
cmp r8, rdx
jne 0x14001a07b
xor r8d, r8d
test r9b, 1
jne 0x14001a0de
jmp 0x14001a0f5
xor eax, eax
ret
mov r8, r9
and r8, 0xfffffffffffffffe
xor eax, eax
nop word cs:[rax + rax]
shl rax, 4
movsx r10, byte [rdx]
add r10, rax
mov rax, r10
shr rax, 0x38
and eax, 0xfffffff0
xor rax, r10
shl rax, 4
movsx r10, byte [rdx + 1]
add r10, rax
mov r11, r10
and r11, rcx
mov rax, r11
shr rax, 0x38
or rax, r11
xor rax, r10
add rdx, 2
add r8, 0xfffffffffffffffe
jne 0x14001a090
mov r8, rax
shl r8, 4
test r9b, 1
je 0x14001a0f5
movsx rax, byte [rdx]
add r8, rax
and rcx, r8
mov rax, rcx
shr rax, 0x38
or rax, rcx
xor rax, r8
ret

Function at 0x14001a220
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x14001a267
movabs rcx, 0xf000000000000000
nop word cs:[rax + rax]
shl rax, 4
movzx r9d, word [rdx]
add r9, rax
mov r10, r9
and r10, rcx
mov rax, r10
shr rax, 0x38
or rax, r10
xor rax, r9
add rdx, 2
cmp rdx, r8
jne 0x14001a240
ret
Function at 0x14002c230
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 0x14002c258
add rax, 2
mov qword [rcx + 0x18], rax
mov rcx, qword [rbx]
mov bpl, 1
test rcx, rcx
je 0x14002c2ba
mov rax, qword [rcx + 0x18]
cmp rax, qword [rcx + 0x20]
je 0x14002c2a0
movzx eax, word [rax]
cmp ax, 0xffff
je 0x14002c2b3
mov rcx, qword [rbx]
test rcx, rcx
sete bpl
test rdi, rdi
jne 0x14002c2c1
mov edi, 0
test bpl, bpl
je 0x14002c2f3
jmp 0x14002c35b
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [0x1401ec708]
cmp ax, 0xffff
jne 0x14002c276
mov qword [rbx], 0
xor ecx, ecx
test rdi, rdi
je 0x14002c285
mov rax, qword [rdi + 0x18]
cmp rax, qword [rdi + 0x20]
je 0x14002c2d0
movzx eax, word [rax]
jmp 0x14002c2e3
mov rax, qword [rdi]
mov rax, qword [rax + 0x40]
mov rcx, rdi
call qword [0x1401ec708]
mov rcx, qword [rbx]
cmp ax, 0xffff
sete al
jne 0x14002c2ee
xor edi, edi
cmp bpl, al
je 0x14002c35b
mov rax, qword [rcx + 0x18]
cmp rax, qword [rcx + 0x20]
je 0x14002c310
movzx r8d, word [rax]
jmp 0x14002c320
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [0x1401ec708]
mov r8d, eax
mov rax, qword [r14]
mov rax, qword [rax + 0x18]
mov rcx, r14
mov dx, 8
call qword [0x1401ec708]
mov rcx, qword [rbx]
test al, al
je 0x14002c35b
mov rax, qword [rcx + 0x18]
cmp rax, qword [rcx + 0x20]
jne 0x14002c250
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [0x1401ec708]
jmp 0x14002c258
mov bpl, 1
test rcx, rcx
je 0x14002c37e
mov rax, qword [rcx + 0x18]
cmp rax, qword [rcx + 0x20]
je 0x14002c392
movzx eax, word [rax]
cmp ax, 0xffff
je 0x14002c3a5
cmp qword [rbx], 0
sete bpl
test rdi, rdi
je 0x14002c3b1
mov rax, qword [rdi + 0x18]
cmp rax, qword [rdi + 0x20]
je 0x14002c3b8
movzx eax, word [rax]
jmp 0x14002c3c8
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [0x1401ec708]
cmp ax, 0xffff
jne 0x14002c376
mov qword [rbx], 0
test rdi, rdi
jne 0x14002c383
test bpl, bpl
jne 0x14002c3d4
jmp 0x14002c3d7
mov rax, qword [rdi]
mov rax, qword [rax + 0x40]
mov rcx, rdi
call qword [0x1401ec708]
cmp ax, 0xffff
sete al
xor bpl, al
jne 0x14002c3d7
or byte [rsi], 2
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x140040b30
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x1401fdbb8]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rcx, [rsp + 0x38]
mov r8d, 0x118
xor edx, edx
call fcn.1401772e0
mov dword [rsp + 0x34], 0x11c
lea rcx, [rsp + 0x34]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [rsp + 0x30], 0
mov ecx, dword [rsp + 0x38]
mov edx, dword [rsp + 0x3c]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x88
call fcn.140173ca0
mov rsi, rax
mov edi, dword [rsp + 0x30]
mov eax, dword [0x140200ff0]
mov ecx, dword [0x140201350]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 0x30]
jg 0x140040bfc
lea r8, [0x140200fc0]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140040d60
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140174050
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x140200ff0]
call fcn.140173e10
cmp dword [0x140200ff0], 0xffffffff
jne 0x140040bc8
xorps xmm0, xmm0
movups xmmword [0x140200fe0], xmm0
movups xmmword [0x140200fd0], xmm0
movups xmmword [0x140200fc0], xmm0
lea rcx, [0x140200fc0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140200ff0]
call fcn.140173ea8
jmp 0x140040bc8

Function at 0x140040cb0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140200ff0]
mov ecx, dword [0x140201350]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 0x30]
jg 0x140040d11
movzx eax, word [0x140200fc0]
cmp rax, 0xc
ja case.0x140040cf0.1
lea rcx, [0x1401c0094]
movsxd rdx, dword [rcx + rax*4]
add rdx, rcx
jmp rdx
mov eax, 2
jmp case.0x140040cf0.0
mov eax, 1
jmp case.0x140040cf0.0
mov eax, 3
jmp case.0x140040cf0.0
mov eax, 4
add rsp, 0x28
ret
lea rcx, [0x140200ff0]
call fcn.140173e10
cmp dword [0x140200ff0], 0xffffffff
jne 0x140040cd5
xorps xmm0, xmm0
movups xmmword [0x140200fe0], xmm0
movups xmmword [0x140200fd0], xmm0
movups xmmword [0x140200fc0], xmm0
lea rcx, [0x140200fc0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140200ff0]
call fcn.140173ea8
jmp 0x140040cd5

Function at 0x140041a60
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x1401fdbb8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x3c], 4
mov dword [rsp + 0x38], 4
mov dword [rsp + 0x34], 0
mov rcx, qword [rcx]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x140041adb
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x140041adb
cmp dword [rsp + 0x38], 4
jne 0x140041adb
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140174050
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x140041b00
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.140173ff0
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1401fdbb8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.1401772e0
mov dword [rsp + 0x3c], 1
mov dword [rsp + 0x38], 0x800
mov rcx, qword [rbx]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x3c]
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x140041beb
mov eax, dword [rsp + 0x3c]
cmp eax, 2
je 0x140041b9b
mov edi, 0x3f4
cmp eax, 1
jne 0x140041beb
lea rdx, [rsp + 0x840]
jmp 0x140041be1
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.1401772e0
lea rcx, [rsp + 0x840]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
mov edi, 0xea
cmp eax, 0xfffffc00
jb 0x140041beb
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14003e7c0
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140174050
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140042100
Capabilities:
Create thread

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov edi, r9d
mov r14, r8
mov r15, rdx
mov rbx, rcx
xor ebp, ebp
test rcx, rcx
setne bpl
mov r12d, dword [rsp + 0xc0]
mov rax, qword [0x1401fdbb8]
xor rax, rsp
mov qword [rsp + 0x58], rax
shl ebp, 0x10
mov ecx, 0x18
call fcn.140173ca0
mov rsi, rax
mov qword [rax], r15
test r14, r14
setne byte [rax + 8]
mov dword [rax + 0xc], edi
mov dword [rax + 0x10], r12d
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x28], 0
lea r8, [0x1400426f0]
xor ecx, ecx
mov rdx, rbx
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x14004218f
test r14, r14
je 0x1400421aa
mov qword [r14], rdi
jmp 0x1400421da
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp eax, 0x27a
jg 0x1400421b5
cmp ebp, 8
je 0x1400421c5
cmp ebp, 0xe
je 0x1400421c5
jmp 0x1400421fe
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400421da
cmp ebp, 0x5af
je 0x1400421c5
cmp ebp, 0x27b
jne 0x1400421fe
mov rcx, rbx
call fcn.1400722a0
test rsi, rsi
je 0x1400421da
mov rcx, rsi
call fcn.140173cf0
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140174050
mov eax, ebx
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov eax, dword [0x140201040]
mov ecx, dword [0x140201350]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 0x30]
jg 0x1400422c5
lea rcx, [rsp + 0x30]
mov edx, ebp
call fcn.140053cc0
movzx eax, byte [rsp + 0x30]
test al, 1
jne 0x14004224b
shr eax, 1
lea rcx, [rsp + 0x31]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rax
jmp 0x140042264
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rax
test rax, rax
js 0x14004229f
test rax, rax
sete al
test rcx, rcx
setne cl
or cl, al
je 0x1400422b2
mov rcx, qword [0x140201038]
lea rdx, [rsp + 0x48]
call fcn.14004bb40
test byte [rsp + 0x30], 1
je 0x1400421cd
mov rcx, qword [rsp + 0x40]
call fcn.140173cf0
jmp 0x1400421cd
lea rcx, [0x1401b1076]
lea rdx, str....._third_partylibc_srcinclude_string_view:318:_assertion___len___static_cast_size_type__numeric_limits_difference_type_::max____failed:_string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type_n
call fcn.14003f000
lea rcx, [0x1401b1076]
lea rdx, str....._third_partylibc_srcinclude_string_view:320:_assertion___len__0____s___nullptr_failed:_string_view::string_view__CharT___size_t_:_received_nullptr_n
call fcn.14003f000
lea rcx, [0x140201040]
call fcn.140173e10
cmp dword [0x140201040], 0xffffffff
jne 0x140042223
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.14004bb10
mov qword [0x140201038], rax
lea rcx, [0x140201040]
call fcn.140173ea8
jmp 0x140042223
Function at 0x140043080
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov edi, edx
mov rsi, rcx
mov rax, qword [0x1401fdbb8]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 1
jne 0x1400430af
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x1400430b2
mov rcx, qword [rsi]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x1400430d6
mov dil, 1
test bl, bl
je 0x14004313d
cmp byte [rsi + 8], 1
jne 0x140043103
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x140043106
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rsi + 8], 1
jne 0x1400430ed
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x1400430f0
mov rcx, qword [rsi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140043113
xor edi, edi
jmp 0x14004313d
mov rcx, qword [rsi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x14004313d
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rsi + 8], 1
jne 0x14004312c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14004312f
mov rcx, qword [rsi]
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dil, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140174050
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400483d0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov esi, r9d
mov rdi, r8
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x1401fdbb8]
xor rax, rsp
mov qword [rsp + 0xa0], 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.Read
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x42
call fcn.140063850
lea rcx, [rsp + 0x60]
mov rdx, r15
xor r8d, r8d
call fcn.14004f6c0
test esi, esi
sets al
test r14, r14
sets cl
or cl, al
mov ebp, 0xffffffff
jne 0x1400484fe
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
call fcn.140083200
test al, al
je 0x14004849f
mov r9d, esi
lea rdx, str.File::Read
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.1400832b0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x2c]
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400484e3
mov ebp, dword [rsp + 0x2c]
test ebp, ebp
jns 0x1400484f4
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ebp, ebp
cmp eax, 0x26
setne bpl
neg ebp
lea rcx, [rsp + 0x30]
call fcn.140083280
lea rcx, [rsp + 0x60]
call fcn.14004f740
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140174050
mov eax, ebp
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140048530
Capabilities:
Read file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x98
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1401fdbb8]
xor rax, rsp
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
lea rdx, str.ReadAtCurrentPos
lea r8, str....._base_files_file_win.cc
lea r14, [rsp + 0x30]
mov rcx, r14
mov r9d, 0x5f
call fcn.140063850
lea rcx, [rsp + 0x50]
mov rdx, r14
xor r8d, r8d
call fcn.14004f6c0
test esi, esi
js 0x140048618
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
call fcn.140083200
test al, al
je 0x1400485e2
mov r9d, esi
lea rdx, str.File::ReadAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.1400832b0
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x2c]
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14004861f
mov esi, dword [rsp + 0x2c]
test esi, esi
jns 0x140048630
int3
mov esi, 0xffffffff
jmp 0x14004863a
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
lea rcx, [rsp + 0x30]
call fcn.140083280
lea rcx, [rsp + 0x50]
call fcn.14004f740
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140174050
mov eax, esi
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140048670
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov esi, r9d
mov rdi, r8
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x1401fdbb8]
xor rax, rsp
mov qword [rsp + 0xa0], 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.Write
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x7f
call fcn.140063850
lea rcx, [rsp + 0x60]
mov rdx, r15
xor r8d, r8d
call fcn.14004f6c0
test esi, esi
sets al
test r14, r14
sets cl
or cl, al
mov ebp, 0xffffffff
jne 0x140048787
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
call fcn.140083200
test al, al
je 0x14004873f
mov r9d, esi
lea rdx, str.File::Write
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.1400832b0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x2c]
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor ebp, ebp
cmp eax, 1
sbb ebp, ebp
or ebp, dword [rsp + 0x2c]
lea rcx, [rsp + 0x30]
call fcn.140083280
lea rcx, [rsp + 0x60]
call fcn.14004f740
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140174050
mov eax, ebp
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400487c0
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x98
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1401fdbb8]
xor rax, rsp
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
lea rdx, str.WriteAtCurrentPos
lea r8, str....._base_files_file_win.cc
lea r14, [rsp + 0x30]
mov rcx, r14
mov r9d, 0x97
call fcn.140063850
lea rcx, [rsp + 0x50]
mov rdx, r14
xor r8d, r8d
call fcn.14004f6c0
test esi, esi
js 0x1400488ae
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
call fcn.140083200
test al, al
je 0x140048872
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.1400832b0
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x2c]
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [rsp + 0x2c]
lea rcx, [rsp + 0x30]
call fcn.140083280
jmp 0x1400488b3
mov esi, 0xffffffff
lea rcx, [rsp + 0x50]
call fcn.14004f740
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140174050
mov eax, esi
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400488e0
Capabilities:
Get file size

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rcx
mov rax, qword [0x1401fdbb8]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rbx, 0xaaaaaaaaaaaaaaaa
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, str.GetLength
lea r8, str....._base_files_file_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r9d, 0xac
call fcn.140063850
lea rcx, [rsp + 0x50]
mov rdx, rdi
xor r8d, r8d
call fcn.14004f6c0
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], 0
call fcn.140083200
test al, al
je 0x140048986
lea rdx, str.File::GetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
xor r9d, r9d
call fcn.1400832b0
mov qword [rsp + 0x28], rbx
mov rcx, qword [rsi]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor esi, esi
cmp eax, 1
sbb rsi, rsi
or rsi, qword [rsp + 0x28]
lea rcx, [rsp + 0x30]
call fcn.140083280
lea rcx, [rsp + 0x50]
call fcn.14004f740
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140174050
mov rax, rsi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x140049140
Capabilities:
Move file

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x490
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov rax, qword [0x1401fdbb8]
xor rax, rsp
mov qword [rsp + 0x488], rax
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rdx, [0x1401c0e13]
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x280]
mov rcx, r14
mov r9d, 0x1da
call fcn.140063850
lea rcx, [rsp + 0x30]
mov rdx, r14
xor r8d, r8d
call fcn.14004f6c0
lea r15, [rsp + 0x280]
mov r8d, 0x208
mov rcx, r15
mov dl, 0xaa
call fcn.1401772e0
lea r14, [rdi + 2]
test byte [rdi], 1
mov rdx, r14
je 0x1400491e3
mov rdx, qword [rdi + 0x10]
mov r8d, 0x104
mov rcx, r15
call fcn.140053070
mov rcx, r15
call fcn.140002470
lea r12, [rsp + 0x70]
mov r8d, 0x208
mov rcx, r12
mov dl, 0xaa
call fcn.1401772e0
lea r15, [rbx + 2]
test byte [rbx], 1
mov rdx, r15
je 0x14004921e
mov rdx, qword [rbx + 0x10]
mov r8d, 0x104
mov rcx, r12
call fcn.140053070
mov rcx, r12
call fcn.140002470
test byte [rdi], 1
mov rdx, r14
je 0x140049240
mov rdx, qword [rdi + 0x10]
test byte [rbx], 1
mov rcx, r15
je 0x14004924c
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 0x1400492b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140048a00
mov ebp, eax
test byte [rbx], 1
je 0x140049282
mov r15, qword [rbx + 0x10]
test byte [rdi], 1
je 0x14004928b
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 0x1400492b7
test eax, eax
jne 0x1400492b7
cmp ebp, 0xfffffffc
jne 0x1400492b2
call fcn.1400489e0
mov ebp, eax
mov dword [rsi], ebp
xor r12d, r12d
lea rcx, [rsp + 0x30]
call fcn.14004f740
mov rcx, qword [rsp + 0x488]
xor rcx, rsp
call fcn.140174050
mov eax, r12d
add rsp, 0x490
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rsi, rcx
mov rax, qword [0x1401fdbb8]
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, 0x20d
call fcn.140063850
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14004f6c0
test byte [rsi], 1
je 0x140049369
mov rsi, qword [rsi + 0x10]
jmp 0x14004936d
add rsi, 2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rdi
call fcn.14004f740
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140174050
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret