joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400032c0
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 8
movups xmm0, xmmword [rcx]
xorps xmm4, xmm4
lea rax, [r8 + 0x10]
cmp edx, 0x100
je 0x140003490
cmp edx, 0xc0
je 0x1400033f0
cmp edx, 0x80
jne 0x140003560
mov edx, 9
movdqa xmm5, xmmword [0x140275190]
mov r10d, 8
movdqa xmm4, xmmword [0x1402751b0]
movdqa xmm2, xmm0
movdqu xmmword [r8], xmm0
jmp 0x140003320
pshufb xmm0, xmm5
aesenclast xmm0, xmm4
pslld xmm4, 1
lea rax, [rax + 0x10]
movdqa xmm3, xmm2
pslldq xmm2, 4
pxor xmm3, xmm2
pslldq xmm2, 4
pxor xmm3, xmm2
pslldq xmm2, 4
pxor xmm2, xmm3
pxor xmm0, xmm2
movdqu xmmword [rax - 0x10], xmm0
movdqa xmm2, xmm0
dec r10d
jne 0x140003320
movdqa xmm4, xmmword [0x1402751c0]
pshufb xmm0, xmm5
aesenclast xmm0, xmm4
pslld xmm4, 1
movdqa xmm3, xmm2
pslldq xmm2, 4
pxor xmm3, xmm2
pslldq xmm2, 4
pxor xmm3, xmm2
pslldq xmm2, 4
pxor xmm2, xmm3
pxor xmm0, xmm2
movdqu xmmword [rax], xmm0
movdqa xmm2, xmm0
pshufb xmm0, xmm5
aesenclast xmm0, xmm4
movdqa xmm3, xmm2
pslldq xmm2, 4
pxor xmm3, xmm2
pslldq xmm2, 4
pxor xmm3, xmm2
pslldq xmm2, 4
pxor xmm2, xmm3
pxor xmm0, xmm2
movdqu xmmword [rax + 0x10], xmm0
mov dword [rax + 0x60], edx
xor eax, eax
jmp 0x140003567
movq xmm2, qword [rcx + 0x10]
mov edx, SafeArrayDestroy
movdqa xmm5, xmmword [0x1402751a0]
movdqa xmm4, xmmword [0x1402751b0]
mov r10d, 8
movdqu xmmword [r8], xmm0
jmp 0x140003420
movq qword [rax], xmm2
movdqa xmm1, xmm2
pshufb xmm2, xmm5
aesenclast xmm2, xmm4
pslld xmm4, 1
lea rax, [rax + 0x18]
movdqa xmm3, xmm0
pslldq xmm0, 4
pxor xmm3, xmm0
pslldq xmm0, 4
pxor xmm3, xmm0
pslldq xmm0, 4
pxor xmm0, xmm3
pshufd xmm3, xmm0, 0xff
pxor xmm3, xmm1
pslldq xmm1, 4
pxor xmm3, xmm1
pxor xmm0, xmm2
pxor xmm2, xmm3
movdqu xmmword [rax - 0x10], xmm0
dec r10d
jne 0x140003420
mov dword [rax + 0x20], edx
xor eax, eax
jmp 0x140003567
movups xmm2, xmmword [rcx + 0x10]
mov edx, SafeArrayGetDim
lea rax, [rax + 0x10]
movdqa xmm5, xmmword [0x140275190]
movdqa xmm4, xmmword [0x1402751b0]
mov r10d, 7
movdqu xmmword [r8], xmm0
movdqa xmm1, xmm2
movdqu xmmword [r8 + 0x10], xmm2
jmp 0x1400034d0
pshufb xmm2, xmm5
aesenclast xmm2, xmm4
movdqa xmm3, xmm0
pslldq xmm0, 4
pxor xmm3, xmm0
pslldq xmm0, 4
pxor xmm3, xmm0
pslldq xmm0, 4
pxor xmm0, xmm3
pslld xmm4, 1
pxor xmm0, xmm2
movdqu xmmword [rax], xmm0
dec r10d
je 0x140003552
pshufd xmm2, xmm0, 0xff
pxor xmm3, xmm3
aesenclast xmm2, xmm3
movdqa xmm3, xmm1
pslldq xmm1, 4
pxor xmm3, xmm1
pslldq xmm1, 4
pxor xmm3, xmm1
pslldq xmm1, 4
pxor xmm1, xmm3
pxor xmm2, xmm1
movdqu xmmword [rax + 0x10], xmm2
lea rax, [rax + 0x20]
movdqa xmm1, xmm2
jmp 0x1400034d0
mov dword [rax + 0x10], edx
xor eax, eax
jmp 0x140003567
mov rax, 0xfffffffffffffffe
pxor xmm0, xmm0
pxor xmm1, xmm1
pxor xmm2, xmm2
pxor xmm3, xmm3
pxor xmm4, xmm4
pxor xmm5, xmm5
add rsp, 8
ret
Function at 0x140031be0
Capabilities:
Enumerate gui resources

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rsi, rcx
mov rax, qword [0x14031d040]
xor rax, rsp
mov qword [rsp + 0x60], rax
call fcn.1400a09f0
mov rcx, rsi
call fcn.140034b40
test al, al
jne 0x140031d5a
xorps xmm0, xmm0
lea rdi, [rsp + 0x4c]
movups xmmword [rdi + 4], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rdi], eax
lea rcx, [0x140031d90]
mov rdx, rdi
call qword [sym.imp.USER32.dll_EnumWindows]
cmp dword [rdi + 0xc], 0
jle 0x140031d42
cmp dword [rsp + 0x5c], 0
jle 0x140031d42
mov eax, 0xaaaaaaaa
lea rdi, [rsp + 0x34]
mov dword [rdi], eax
lea rbx, [rsp + 0x44]
mov dword [rbx], eax
mov rax, qword [rsi]
mov rax, qword [rax + 0x510]
mov rcx, rsi
mov rdx, rdi
mov r8, rbx
call qword [0x14030c820]
mov ebp, dword [rbx]
mov r15d, dword [rdi]
mov eax, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x54]
mov r8d, dword [rsp + 0x5c]
mov edx, r8d
shr edx, 0x1f
add edx, r8d
sub r8d, ebp
mov ebx, r8d
shr ebx, 0x1f
add ebx, r8d
sar ebx, 1
add ebx, ecx
mov r8d, dword [rsp + 0x58]
mov r9d, r8d
shr r9d, 0x1f
add r9d, r8d
sub r8d, r15d
mov r14d, r8d
shr r14d, 0x1f
add r14d, r8d
sar r14d, 1
add r14d, eax
sar edx, 1
add edx, ecx
sar r9d, 1
add r9d, eax
mov dword [rdi], r9d
mov dword [rdi + 4], edx
lea rcx, [rsp + 0x34]
call fcn.1400ccc60
cmp eax, 0xffffffff
je 0x140031d11
lea r8, [rsp + 0x34]
mov dword [r8], r14d
mov dword [r8 + 4], ebx
mov dword [r8 + 8], r15d
mov dword [r8 + 0xc], ebp
lea rdi, [rsp + 0x44]
mov rcx, rdi
mov edx, eax
call fcn.140031e70
mov r14, qword [rdi]
mov rbx, r14
shr rbx, 0x20
mov rax, qword [rsi]
mov rax, qword [rax + 0x538]
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0xffffffff
mov rcx, rsi
mov edx, r14d
mov r8d, ebx
mov r9d, 0xffffffff
call qword [0x14030c820]
jmp 0x140031d5a
mov rax, qword [rsi]
mov rax, qword [rax + 0x560]
mov rcx, rsi
mov edx, SafeArrayGetDim
call qword [0x14030c820]
mov rcx, rsi
mov dl, 1
call fcn.14008f640
mov rcx, rsi
call fcn.1400a0a60
mov rcx, rsi
call fcn.140086f00
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401f08b0
nop
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14003c710
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 0x14003c756
mov r15, rbx
test r15, r15
je 0x14003c831
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
mov r12, qword [rsi]
mov r14, qword [rsi + 8]
mov rax, r14
sub rax, r12
jbe 0x14003c7b2
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 0x14003c7a1
mov rcx, r15
mov rdx, r14
mov r8, rbx
call fcn.1402357f0
mov r14, qword [rsi + 8]
add r15, rbx
mov qword [rsi + 0x10], r15
lea rax, [r14 + r12*8]
mov qword [rsi + 8], rax
jmp 0x14003c732
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 0x14003c84d
lea rcx, [r13*8]
call fcn.1401ef3e0
mov rcx, r13
and rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
mov rdx, rbx
mov r15, rcx
sub rdx, r14
je 0x14003c813
xor r15d, r15d
mov r8, rcx
add r8, r15
je 0x14003c831
mov r9, qword [r14 + r15]
mov qword [r8], r9
add r15, 8
cmp rdx, r15
jne 0x14003c7f8
add r15, rcx
lea rdx, [rax + r13*8]
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], rdx
cmp rbx, r14
je 0x14003c833
add rbx, 0xfffffffffffffff8
jne 0x14003c826
ud2
test r12, r12
je 0x14003c732
mov rcx, r12
call fcn.1401ef41c
mov r15, qword [rsi + 0x10]
jmp 0x14003c732
call fcn.140236a70
int3
Function at 0x14004eab0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14031d040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x14032f2d8]
mov ecx, dword [0x14032bc90]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004eb10
lea rsi, [0x14032f2d0]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1401f08b0
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x14032f2d8]
call fcn.1401ef46c
cmp dword [0x14032f2d8], 0xffffffff
jne 0x14004eaec
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140235e90
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x88
call fcn.1401ef3e0
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x14032f320]
mov ecx, dword [0x14032bc90]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004ebd0
lea r8, [0x14032f2f0]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.14004ecd0
mov qword [0x14032f2d0], rsi
lea rcx, [0x14032f2d8]
call fcn.1401ef520
jmp 0x14004eaec
lea rcx, [0x14032f320]
call fcn.1401ef46c
cmp dword [0x14032f320], 0xffffffff
jne 0x14004eba1
xorps xmm0, xmm0
movups xmmword [0x14032f310], xmm0
movups xmmword [0x14032f300], xmm0
movups xmmword [0x14032f2f0], xmm0
lea rcx, [0x14032f2f0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14032f320]
call fcn.1401ef520
jmp 0x14004eba1

Function at 0x14004ec20
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14032f320]
mov ecx, dword [0x14032bc90]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004ec5b
movzx eax, word [0x14032f2f0]
cmp eax, 9
jne 0x14004eca3
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x14032f320]
call fcn.1401ef46c
cmp dword [0x14032f320], 0xffffffff
jne 0x14004ec45
xorps xmm0, xmm0
movups xmmword [0x14032f310], xmm0
movups xmmword [0x14032f300], xmm0
movups xmmword [0x14032f2f0], xmm0
lea rcx, [0x14032f2f0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14032f320]
call fcn.1401ef520
jmp 0x14004ec45
test eax, eax
je 0x14004ec56
cmp eax, 6
jne 0x14004ecb3
mov eax, 2
jmp 0x14004ec56
cmp eax, 0xc
jne 0x14004ecbf
mov eax, 3
jmp 0x14004ec56
mov eax, 4
jmp 0x14004ec56
Function at 0x14004fe70
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x14031d040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, 4
lea r9, [rsp + 0x3c]
mov dword [r9], eax
lea r8, [rsp + 0x38]
mov dword [r8], eax
lea rax, [rsp + 0x34]
mov dword [rax], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14004fef8
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x14004fee2
cmp dword [rsp + 0x38], 4
jne 0x14004fee2
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401f08b0
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
mov edi, eax
jmp 0x14004fee2

Function at 0x14004ff00
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.1401f0850
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14031d040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.140235e90
lea r9, [rsp + 0x3c]
mov dword [r9], 1
lea rax, [rsp + 0x38]
mov dword [rax], 0x800
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14004ffb3
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x14004ffb7
lea rdx, [rsp + 0x840]
mov rcx, rsi
call fcn.14004d7f0
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1401f08b0
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x14004ff94
cmp eax, 2
jne 0x14004ffff
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.140235e90
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
cmp eax, 0xfffffc00
jb 0x140050006
lea rdx, [rsp + 0x40]
jmp 0x14004ff8a
mov edi, 0x3f4
jmp 0x14004ff94
mov edi, 0xea
jmp 0x14004ff94

Function at 0x140050010
Capabilities:
Set registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rcx, r8
call fcn.14021cf84
lea eax, [rax*2 + 2]
mov rcx, qword [rbx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov rdx, rdi
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x140050960
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rsi, r9
mov rdi, r8
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x14031d040]
xor rax, rsp
mov qword [rsp + 0x60], rax
add rcx, 0x68
mov rdx, r8
call fcn.1401be680
movabs r15, 0xfffffffc00000000
mov rax, r14
and rax, r15
cmp rax, qword [0x14031f748]
jne 0x1400509b8
mov rcx, r14
call fcn.140025b30
mov rcx, qword [rbx + 0x70]
and r15, rcx
cmp r15, qword [0x14031f748]
je 0x140050ade
mov qword [rbx + 0x70], r14
lea r15, [rsp + 0x58]
mov qword [r15], 0
mov r13, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call r13
mov r12, rax
mov r14, qword [r14]
call r13
xor ebp, ebp
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], ebp
mov dword [rsp + 0x30], 2
mov rcx, rax
mov rdx, r14
mov r8, r12
mov r9, r15
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x140050a90
mov r14, qword [rsp + 0x58]
cmp qword [rbx + 8], r14
je 0x140050a56
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rbx + 8]
inc rax
cmp rax, 2
jae 0x140050ac3
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140050a4e
mov qword [rbx + 8], r14
call fcn.1401bdb70
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r14, [rbx + 0x10]
lea rdx, str.StartWatching
lea r8, str.....chromium_base_synchronizationwaitable_event_watcher_win.cc
lea r15, [rsp + 0x38]
mov rcx, r15
mov r9d, 0x28
call fcn.1401bdb50
mov rdx, qword [rsp + 0x58]
mov rcx, r14
mov r8, rbx
mov r9, r15
call fcn.1400de150
mov ebp, eax
mov rcx, rdi
call fcn.1401be6f0
test rsi, rsi
je 0x140050aa3
lock dec dword [rsi + 8]
je 0x140050ae8
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401f08b0
mov eax, ebp
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1401bdb70
mov rcx, qword [rbx + 8]
call fcn.1401ae5f0
mov qword [rbx + 8], 0
jmp 0x140050a3b
call fcn.140025c70
jmp 0x1400509cc
mov rcx, rsi
call fcn.1401b2d90
jmp 0x140050aa3

Function at 0x1400516b0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x1400516f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140051711
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400516ef
mov qword [rsi], rdi
call fcn.1401bdb70
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x140051727
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1401bdb70
mov rcx, qword [rsi]
call fcn.1401ae5f0
mov qword [rsi], 0
jmp 0x1400516dd
int3
Function at 0x140051730
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov r14, qword [rdx]
mov qword [rdx], 0
lea r15, [r14 + 1]
cmp r15, 2
jb 0x14005175a
call fcn.1401bdb70
mov qword [rsi], 0
test r14, r14
je 0x140051790
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400517cb
cmp r15, 2
jb 0x140051788
mov qword [rsi], r14
call fcn.1401bdb70
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov al, byte [rdi + 8]
mov byte [rsi + 8], al
mov byte [rdi + 8], 0
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x1400517b5
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1401bdb70
mov rcx, qword [rdi]
call fcn.1401ae5f0
mov qword [rdi], 0
jmp 0x1400517a6
call fcn.1401bdb70
mov rcx, qword [rsi]
call fcn.1401ae5f0
mov qword [rsi], 0
jmp 0x14005177a
Function at 0x1400535d0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
call fcn.1400e1900
mov byte [rsi + 8], 0
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
lea rax, [0x14028a2a0]
mov qword [rsi], rax
mov rcx, 0xffffffffffffffff
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp qword [rsi + 0x18], rax
je 0x140053645
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 0x18]
inc rax
cmp rax, 2
jae 0x140053650
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14005363d
mov qword [rsi + 0x18], rdi
call fcn.1401bdb70
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1401bdb70
mov rcx, qword [rsi + 0x18]
call fcn.1401ae5f0
mov qword [rsi + 0x18], 0
jmp 0x14005362a
Function at 0x1400562b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x14031d040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x1402825c0]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.PathExists
lea r8, str.....chromium_base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x20e
call fcn.1401bdb50
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1401b2b30
cmp byte [rdi + 0x17], 0
jns 0x140056322
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.1401b2bb0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1401f08b0
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x14031d040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x1402825c0]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.DirectoryExists
lea r8, str.....chromium_base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x236
call fcn.1401bdb50
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1401b2b30
cmp byte [rdi + 0x17], 0
jns 0x1400563d2
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
setne al
and edi, 0x10
shr edi, 4
and dil, al
mov rcx, rsi
call fcn.1401b2bb0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1401f08b0
mov eax, edi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

Function at 0x140056420
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x14031d040]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.140235e90
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x1400564bf
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.14021cf84
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.1401be7c0
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.140068f50
mov rcx, rsi
mov rdx, r14
call fcn.140067bb0
mov rcx, r14
call fcn.1401be900
mov rcx, rbx
call fcn.1401be900
cmp edi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1401f08b0
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400564f0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x14031d040]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140235e90
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 0x140056585
cmp word [rsp + 0x70], 0
je 0x140056585
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.14021cf84
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.1401be7c0
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.1401f08b0
mov rax, rsi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1402825c0]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.1401be760
mov rcx, rdi
call fcn.140056420
test al, al
jne 0x1400565d7
lea rax, [0x1402aa078]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.1401be7c0
jmp 0x1400565e4
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140067b30
lea rcx, [rsp + 0x40]
call fcn.1401be900
jmp 0x140056567
Function at 0x140056c40
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x14031d040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x1402825c0]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, [0x1402aa0d6]
lea r8, str.....chromium_base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x44c
call fcn.1401bdb50
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1401b2b30
cmp byte [rdi + 0x17], 0
jns 0x140056cb2
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rsi
call fcn.1401b2bb0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1401f08b0
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

Function at 0x140056cf0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14031d040]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x24]
mov dword [r8], 1
movsxd rcx, ecx
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
sete bl
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401f08b0
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x140056d40
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 [0x14031d040]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea r14, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, r14
mov dl, 0xaa
call fcn.140235e90
mov qword [rsp + 0x20], rsi
xor ebp, ebp
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.140056f80
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1402825c0]
movaps xmmword [rdi], xmm0
mov rcx, r14
mov rdx, rdi
call fcn.140057170
movsx rax, byte [rdi + 0x17]
test rax, rax
jns 0x140056dd8
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x140056f2c
lea r14, [rsp + 0x48]
lea r15, [rsp + 0x298]
mov r12, qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r13d, r13d
jmp 0x140056e97
mov rcx, r14
call fcn.140056f70
test al, al
jne 0x140056e12
mov edx, dword [rsp + 0x48]
jmp 0x140056ec3
mov rcx, r14
call fcn.140056f70
xor ebp, ebp
test al, al
jne 0x140056e4e
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x140056e2f
mov rcx, qword [rsp + 0x30]
call r12
xor ebp, ebp
test eax, eax
jne 0x140056e4e
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, r14
call fcn.140024880
mov rcx, r15
mov rdx, r14
call fcn.140057170
mov rcx, rdi
mov rdx, r14
call fcn.140067bb0
mov rcx, r14
call fcn.1401be900
movsx rax, byte [rsp + 0x47]
test rax, rax
jns 0x140056e8b
mov rax, qword [rsp + 0x38]
mov r13d, ebp
test rax, rax
je 0x140056f2c
mov r8d, 0x250
mov rcx, r14
mov dl, 0xaa
call fcn.140235e90
mov rcx, r15
mov rdx, r14
call fcn.140057120
mov edx, dword [rsp + 0x48]
test dl, 1
je 0x140056edb
test bl, bl
je 0x140056dfd
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x140056ed2
mov rcx, qword [rsp + 0x30]
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, r14
call fcn.140056f70
test al, al
je 0x140056e20
xor ebp, ebp
test bl, bl
je 0x140056e4e
mov rcx, rdi
mov rdx, rsi
mov r8b, 1
call fcn.140056d40
mov ebp, eax
test eax, eax
jne 0x140056e4e
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x140056f1c
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebp, 0
jmp 0x140056e34
lea rcx, [rsp + 0x30]
call fcn.1401be900
lea rcx, [rsp + 0x298]
call fcn.1400570b0
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.1401f08b0
mov eax, ebp
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret