joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400f0e90
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov r14d, r9d
mov r15, r8
mov r13, rdx
mov r12, rcx
mov rax, qword [0x14024f018]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movabs rbp, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x60]
mov qword [rsi + 0x50], rbp
movaps xmm0, xmmword [0x1402183e0]
movaps xmmword [rsi + 0x40], xmm0
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.Write
lea r8, str..._.._base_files_file_win.cc
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov r9d, 0x73
call fcn.1400ed980
xor ebx, ebx
mov rcx, rsi
mov rdx, rdi
xor r8d, r8d
call fcn.1400f44c0
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], 0
call fcn.1400f41f0
test al, al
jne 0x1400f0fac
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r13
lea rsi, [rsp + 0x2c]
mov dword [rsi], 0xaaaaaaaa
mov rcx, qword [r12]
mov qword [rsp + 0x20], rdi
mov rdx, r15
mov r8d, r14d
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sbb ebx, ebx
or ebx, dword [rsi]
lea rcx, [rsp + 0x30]
call fcn.1400f4210
lea rcx, [rsp + 0x60]
call fcn.1400f4520
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140106490
mov eax, ebx
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movsxd r9, r14d
lea rdx, str.File::Write
lea rcx, [rsp + 0x30]
mov r8, r12
call fcn.140174b50
jmp 0x1400f0f36

Function at 0x1400f0fd0
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 0x1400f1017
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400f1031
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400f100f
mov qword [rsi], rdi
call fcn.1400ed9a0
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 0x1400f1047
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400ed9a0
mov rcx, qword [rsi]
call fcn.1400f1110
mov qword [rsi], 0
jmp 0x1400f0ffd
int3
Function at 0x1400f26b0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14024f018]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x14025c0a8]
mov ecx, dword [0x140256f3c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400f2711
mov rax, qword [0x14025c0a0]
mov esi, dword [rax]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140106490
mov eax, esi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x14025c0a8]
call fcn.140105cd0
cmp dword [0x14025c0a8], 0xffffffff
jne 0x1400f26ec
lea rsi, [rsp + 0x34]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140109290
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x2c]
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, 0x80
call fcn.140105b78
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x14025c0e0]
mov ecx, dword [0x140256f3c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400f27d1
lea r8, [0x14025c0b0]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r9d, edi
call fcn.140072250
mov qword [0x14025c0a0], rsi
lea rcx, [0x14025c0a8]
call fcn.140105d68
jmp 0x1400f26ec
lea rcx, [0x14025c0e0]
call fcn.140105cd0
cmp dword [0x14025c0e0], 0xffffffff
jne 0x1400f27a2
xorps xmm0, xmm0
movups xmmword [0x14025c0d0], xmm0
movups xmmword [0x14025c0c0], xmm0
movups xmmword [0x14025c0b0], xmm0
lea rcx, [0x14025c0b0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14025c0e0]
call fcn.140105d68
jmp 0x1400f27a2
Function at 0x1400fab90
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x1400fabba
xor r9d, r9d
xor eax, eax
nop word [rax + rax]
movzx r10d, byte [rdx + r9]
xor r10b, byte [rcx + r9]
movzx r10d, r10b
or eax, r10d
add r9, 1
cmp r8, r9
jne 0x1400faba0
ret
xor eax, eax
jmp 0x1400fabb9

Function at 0x1400fabd0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x1400fac0c
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1400fac16
add rdi, rbx
sub rsi, rbx
jne 0x1400fabea
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
int3

Function at 0x1400fb6e0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x140252b08]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400fb714
movsxd rcx, dword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 4]
jne 0x1400fb714
mov rax, qword [rax + rcx]
add rsp, 0x20
pop rsi
ret
xor eax, eax
jmp 0x1400fb70e

Function at 0x1400fb720
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x140252b08]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400fb75e
movsxd rcx, dword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 4]
movsxd rdx, dword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
test rdi, rdi
je 0x1400fb757
call fcn.14009f370
jmp 0x1400fb73e

Function at 0x1400fba40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
test r8, r8
je 0x1400fba6c
xor ecx, ecx
lea r9, [0x140232060]
movzx r10d, al
movzx r11d, byte [rdx + rcx]
xor r11d, r10d
shr eax, 8
xor eax, dword [r9 + r11*4]
add rcx, 1
cmp r8, rcx
jne 0x1400fba50
ret

Function at 0x1400ffec0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x1402618d0]
cmp rsi, 1
jbe 0x1400ffee3
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1400fb720
lea rcx, [0x1402618d0]
call fcn.14008c440
test al, al
je 0x1400fff29
mov qword [0x1402618d8], 0
lea rdi, [0x1402618d0]
lea rsi, [0x1402618d8]
mov rcx, rsi
xor edx, edx
call fcn.14009f4a0
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.14008c4e0
jmp 0x1400ffed3
mov rsi, qword [0x1402618d0]
jmp 0x1400ffed3

Function at 0x1401002b0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x140261d00]
cmp rsi, 1
jbe 0x1401002d3
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1400fb720
lea rcx, [0x140261d00]
call fcn.14008c440
test al, al
je 0x140100319
mov qword [0x140261d08], 0
lea rdi, [0x140261d00]
lea rsi, [0x140261d08]
mov rcx, rsi
xor edx, edx
call fcn.14009f4a0
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.14008c4e0
jmp 0x1401002c3
mov rsi, qword [0x140261d00]
jmp 0x1401002c3
Function at 0x140103200
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140261d58]
mov ecx, dword [0x140256f3c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140103235
lea rcx, [0x140261d50]
add rsp, 0x28
jmp fcn.1400fb6e0
lea rcx, [0x140261d58]
call fcn.140105cd0
cmp dword [0x140261d58], 0xffffffff
jne 0x140103225
mov qword [0x140261d50], 0
lea rcx, [0x140261d50]
xor edx, edx
call fcn.14009f4a0
lea rcx, [0x140261d58]
call fcn.140105d68
jmp 0x140103225

Function at 0x140105480
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1402622a0]
mov ecx, dword [0x140256f3c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1401054e6
lea rcx, [0x140262298]
xor edx, edx
call fcn.1400fb720
mov eax, dword [0x1402622b0]
mov ecx, dword [0x140256f3c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140105522
lea rcx, [0x1402622a8]
xor edx, edx
add rsp, 0x28
jmp fcn.1400fb720
lea rcx, [0x1402622a0]
call fcn.140105cd0
cmp dword [0x1402622a0], 0xffffffff
jne 0x1401054a5
mov qword [0x140262298], 0
lea rcx, [0x140262298]
xor edx, edx
call fcn.14009f4a0
lea rcx, [0x1402622a0]
call fcn.140105d68
jmp 0x1401054a5
lea rcx, [0x1402622b0]
call fcn.140105cd0
cmp dword [0x1402622b0], 0xffffffff
jne 0x1401054d4
mov qword [0x1402622a8], 0
lea rcx, [0x1402622a8]
xor edx, edx
call fcn.14009f4a0
lea rcx, [0x1402622b0]
call fcn.140105d68
jmp 0x1401054d4

Function at 0x140105570
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov eax, dword [0x1402622c0]
mov ecx, dword [0x140256f3c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1401055ad
lea rcx, [0x1402622b8]
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.1400fb720
lea rcx, [0x1402622c0]
call fcn.140105cd0
cmp dword [0x1402622c0], 0xffffffff
jne 0x140105599
mov qword [0x1402622b8], 0
lea rcx, [0x1402622b8]
xor edx, edx
call fcn.14009f4a0
lea rcx, [0x1402622c0]
call fcn.140105d68
jmp 0x140105599
Function at 0x140136b90
Capabilities:
Check mutex on windows

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov byte [rcx], 0
mov qword [rcx + 8], 0
lea r8, str.A946A6A9_917E_4949_B9BC_6BADA8C7FD63
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rsi + 8], rax
test rax, rax
je 0x140136bd0
mov rcx, rax
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete byte [rsi]
mov rax, rsi
add rsp, 0x20
pop rsi
ret

Function at 0x140139710
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r14, rdx
mov rbp, rcx
mov rbx, qword [rcx + 0x10]
cmp rbx, qword [rcx + 0x18]
je 0x14013974c
mov rax, qword [r14]
mov qword [rbx], rax
add qword [rbp + 0x10], 8
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r15, qword [rbp]
mov rdi, qword [rbp + 8]
mov rax, rdi
sub rax, r15
jbe 0x1401397a9
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, rdi
sub r15, rax
sub rbx, rdi
je 0x140139798
mov rcx, r15
mov rdx, rdi
mov r8, rbx
call fcn.140108e80
mov rdi, qword [rbp + 8]
add rbx, r15
mov qword [rbp + 0x10], rbx
lea rax, [rdi + r12*8]
mov qword [rbp + 8], rax
jmp 0x140139730
mov rax, rbx
sub rax, r15
mov rcx, rax
sar rcx, 2
test rax, rax
mov r13d, 1
cmovne r13, rcx
mov rax, r13
shr rax, 0x3d
jne 0x140139840
mov r12, r13
shr r12, 2
lea rcx, [r13*8]
call fcn.140105b78
lea r9, [rax + r12*8]
lea r8, [rax + r13*8]
mov r10, r9
sub rbx, rdi
je 0x140139813
lea r10, [r9 + rbx]
sar rbx, 3
shl rbx, 3
lea rcx, [rax + r12*8]
xor edx, edx
mov rsi, qword [rdi + rdx]
mov qword [rcx + rdx], rsi
add rdx, 8
cmp rbx, rdx
jne 0x140139802
mov qword [rbp], rax
mov qword [rbp + 8], r9
mov qword [rbp + 0x10], r10
mov qword [rbp + 0x18], r8
mov rbx, r10
test r15, r15
je 0x140139730
mov rcx, r15
call fcn.140105bb4
mov rbx, qword [rbp + 0x10]
jmp 0x140139730
call fcn.140119940
int3
Function at 0x140139850
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r14, rdx
mov rbp, rcx
mov rbx, qword [rcx + 8]
cmp rbx, qword [rcx]
je 0x14013988f
mov r15, rbx
mov rax, qword [r14]
mov qword [r15 - 8], rax
add qword [rbp + 8], 0xfffffffffffffff8
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rdi, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
cmp rdi, rax
jae 0x1401398e1
sub rax, rdi
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
lea r12, [rax + rcx]
inc r12
sar r12, 1
lea r15, [rdi + r12*8]
mov r8, rdi
sub r8, rbx
je 0x1401398d3
sub r15, r8
mov rcx, r15
mov rdx, rbx
call fcn.140108e80
mov rdi, qword [rbp + 0x10]
mov qword [rbp + 8], r15
lea rax, [rdi + r12*8]
mov qword [rbp + 0x10], rax
jmp 0x140139872
sub rax, rbx
mov rcx, rax
sar rcx, 2
test rax, rax
mov r13d, 1
cmovne r13, rcx
mov rax, r13
shr rax, 0x3d
jne 0x140139973
lea r12, [r13 + 3]
shr r12, 2
lea rcx, [r13*8]
call fcn.140105b78
lea r15, [rax + r12*8]
lea r8, [rax + r13*8]
mov r9, r15
sub rdi, rbx
je 0x140139949
lea r9, [r15 + rdi]
sar rdi, 3
shl rdi, 3
lea rcx, [rax + r12*8]
xor edx, edx
mov rsi, qword [rbx + rdx]
mov qword [rcx + rdx], rsi
add rdx, 8
cmp rdi, rdx
jne 0x140139938
mov qword [rbp], rax
mov qword [rbp + 8], r15
mov qword [rbp + 0x10], r9
mov qword [rbp + 0x18], r8
test rbx, rbx
je 0x140139872
mov rcx, rbx
call fcn.140105bb4
mov r15, qword [rbp + 8]
jmp 0x140139872
call fcn.140119940
int3

Function at 0x14013aff0
Capabilities:
Encode data using base64

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov r14, rcx
mov edi, 2
cmp rdx, 1
jne 0x14013b02a
mov rsi, qword [r14 + 8]
cmp rdi, rsi
ja 0x14013b125
jae 0x14013b11b
mov rax, qword [r14 + 0x18]
test rax, rax
js 0x14013b045
cvtsi2ss xmm0, rax
jmp 0x14013b05a
lea rax, [rdx - 1]
test rdx, rax
jne 0x14013b038
mov rdi, rdx
jmp 0x14013b007
mov rcx, rdx
call fcn.1400ea260
mov rdi, rax
jmp 0x14013b007
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [r14 + 0x20]
call fcn.140134a80
cvttss2si rcx, xmm0
mov rdx, rcx
subss xmm0, dword [0x140219fd0]
cvttss2si rax, xmm0
sar rdx, 0x3f
and rax, rdx
or rax, rcx
cmp rsi, 3
jb 0x14013b107
mov rcx, rsi
shr rcx, 1
movabs rdx, 0x5555555555555555
and rdx, rcx
mov rbx, rsi
sub rbx, rdx
movabs rdx, 0x3333333333333333
mov rcx, rbx
shr rcx, 2
and rbx, rdx
and rcx, rdx
add rcx, rbx
mov rdx, rcx
shr rdx, 4
add rdx, rcx
movabs rcx, 0xf0f0f0f0f0f0f0f
and rcx, rdx
movabs rdx, 0x101010101010101
imul rdx, rcx
shr rdx, 0x38
cmp edx, 1
ja 0x14013b107
cmp rax, 2
jb 0x14013b10f
dec rax
bsr rcx, rax
xor ecx, 0x3f
neg cl
mov eax, 1
shl rax, cl
jmp 0x14013b10f
mov rcx, rax
call fcn.1400ea260
cmp rdi, rax
cmovb rdi, rax
cmp rdi, rsi
jb 0x14013b125
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, r14
mov rdx, rdi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp 0x14013a880
Function at 0x14013d330
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov r15, rdx
mov r14, rcx
mov rax, qword [0x14024f018]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, qword [rdx]
lea r12, [rdx + 8]
test rax, rax
mov rcx, r12
cmove rcx, rax
mov edx, dword [rcx + 8]
xor ebp, ebp
test edx, edx
setne bpl
lea rbx, [r15 + 0x28]
xor ecx, ecx
cmp rax, 2
cmovb rbx, rcx
mov dword [rsp + 0x20], edx
mov edx, dword [rbx + 8]
mov dword [rsp + 0x24], edx
test edx, edx
mov edx, 2
cmove rdx, rbp
lea rbp, [r15 + 0x48]
cmp rax, 3
cmovb rbp, rcx
mov ebp, dword [rbp + 8]
test ebp, ebp
mov ebx, 3
cmove rbx, rdx
lea rdx, [r15 + 0x68]
cmp rax, 4
cmovb rdx, rcx
mov dword [rsp + 0x28], ebp
mov edx, dword [rdx + 8]
mov dword [rsp + 0x2c], edx
test edx, edx
mov edx, 4
cmove rdx, rbx
lea rbp, [r15 + 0x88]
cmp rax, 5
cmovb rbp, rcx
mov ebp, dword [rbp + 8]
test ebp, ebp
mov ebx, 5
cmove rbx, rdx
lea rdx, [r15 + 0xa8]
cmp rax, 6
cmovb rdx, rcx
mov dword [rsp + 0x30], ebp
mov edx, dword [rdx + 8]
mov dword [rsp + 0x34], edx
test edx, edx
mov edx, 6
cmove rdx, rbx
lea rbp, [r15 + 0xc8]
cmp rax, 7
cmovb rbp, rcx
mov ebp, dword [rbp + 8]
test ebp, ebp
mov ebx, 7
cmove rbx, rdx
lea rdx, [r15 + 0xe8]
cmp rax, 8
cmovb rdx, rcx
mov dword [rsp + 0x38], ebp
mov edx, dword [rdx + 8]
mov dword [rsp + 0x3c], edx
test edx, edx
mov edx, 8
cmove rdx, rbx
lea rbp, [r15 + 0x108]
cmp rax, 9
cmovb rbp, rcx
mov ebp, dword [rbp + 8]
test ebp, ebp
mov ebx, 9
cmove rbx, rdx
cmp rax, 0xa
lea rax, [r15 + 0x128]
cmovb rax, rcx
mov dword [rsp + 0x40], ebp
mov eax, dword [rax + 8]
mov dword [rsp + 0x44], eax
test eax, eax
mov r13d, 0xa
cmove r13, rbx
mov rsi, qword [r14]
lea rdi, [r14 + 8]
test rsi, rsi
cmovne rsi, rdi
mov rcx, rsi
mov rdx, r13
call fcn.14013ca00
mov ebx, eax
test al, al
je 0x14013d4df
test r13, r13
je 0x14013d4df
mov ebp, 1
mov edx, dword [rsp + rbp*4 + 0x1c]
mov rcx, rsi
call fcn.14013ca00
mov ebx, eax
test al, al
je 0x14013d4df
lea rax, [rbp + 1]
cmp rbp, r13
mov rbp, rax
jb 0x14013d4c1
test bl, bl
je 0x14013d524
test r13, r13
je 0x14013d524
mov esi, 1
lea rax, [rsi - 1]
mov rcx, rdi
cmp qword [r14], rax
ja 0x14013d4fb
xor ecx, ecx
mov rdx, r12
cmp qword [r15], rax
ja 0x14013d505
xor edx, edx
call fcn.14013caf0
mov ebx, eax
test al, al
je 0x14013d524
lea rax, [rsi + 1]
add r12, 0x20
add rdi, 0x20
cmp rsi, r13
mov rsi, rax
jb 0x14013d4ed
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140106490
mov eax, ebx
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140154930
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov ecx, 0x10
call fcn.140105b78
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x1401549a0]
xor ecx, ecx
xor edx, edx
mov r9, rax
call fcn.140113a90
mov qword [rbx], rax
test rax, rax
je 0x140154987
xor eax, eax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
add rsp, 0x30
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x140156370
Capabilities:
Move file

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
call fcn.1400ed680
test al, al
jne 0x140156391
mov rcx, rsi
call fcn.1400ed680
test al, al
je 0x14015639a
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
mov rcx, rdi
mov rdx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp 0x14015b150
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa0
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x14024f018]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x50], rax
movaps xmm0, xmmword [0x1402183e0]
movaps xmmword [rbp + 0x40], xmm0
movaps xmmword [rbp + 0x30], xmm0
movaps xmmword [rbp + 0x20], xmm0
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], xmm0
lea rdx, str.MoveUnsafe
lea r8, str..._.._base_files_file_util_win.cc
lea rsi, [rsp + 0x20]
mov rcx, rsi
mov r9d, 0x40b
call fcn.1400ed980
xor ebx, ebx
mov rcx, rbp
mov rdx, rsi
xor r8d, r8d
call fcn.1400f44c0
movzx eax, byte [rdi + 0x17]
mov rcx, rax
test al, al
jns 0x14015b1e3
mov rcx, qword [rdi + 8]
cmp rcx, 0x103
jbe 0x14015b216
lea rcx, [rsp + 0x40]
call fcn.1400f4520
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140106490
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
movzx ecx, byte [r14 + 0x17]
mov rdx, rcx
test cl, cl
jns 0x14015b226
mov rdx, qword [r14 + 8]
cmp rdx, 0x103
jbe 0x14015b233
xor ebx, ebx
jmp 0x14015b1ec
mov rdx, r14
test cl, cl
jns 0x14015b23d
mov rdx, qword [r14]
mov rcx, rdi
test al, al
jns 0x14015b247
mov rcx, qword [rdi]
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov bl, 1
test eax, eax
jne 0x14015b1ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rcx, rdi
call fcn.1400511d0
test al, al
jne 0x14015b277
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14015b22f
mov rcx, rdi
mov rdx, r14
call fcn.14015b290
test al, al
jne 0x14015b1ec
jmp 0x14015b26d
Function at 0x14015a220
Capabilities:
Move file

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov rsi, rcx
mov rax, qword [0x14024f018]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x40]
mov qword [rbx + 0x50], rax
movaps xmm0, xmmword [0x1402183e0]
movaps xmmword [rbx + 0x40], xmm0
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.DeleteFileAfterReboot
lea r8, str..._.._base_files_file_util_win.cc
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r9d, 0x171
call fcn.1400ed980
xor ebp, ebp
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
call fcn.1400f44c0
movzx eax, byte [rsi + 0x17]
mov rcx, rax
test al, al
jns 0x14015a2ad
mov rcx, qword [rsi + 8]
cmp rcx, 0x103
ja 0x14015a2d4
test al, al
jns 0x14015a2bd
mov rsi, qword [rsi]
mov rcx, rsi
xor edx, edx
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne bpl
lea rcx, [rsp + 0x40]
call fcn.1400f4520
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140106490
mov eax, ebp
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x14015ae40
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2d8
mov r14, rcx
mov rax, qword [0x14024f018]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x270]
mov qword [rdi + 0x50], rax
movaps xmm0, xmmword [0x1402183e0]
movaps xmmword [rdi + 0x40], xmm0
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, [0x14021fe97]
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x60]
mov rcx, rbx
mov r9d, 0x391
call fcn.1400ed980
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.1400f44c0
lea rbx, [rsp + 0x60]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.140109290
mov word [rbx], 0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
dec edi
cmp edi, 0x103
ja 0x14015af43
lea rsi, [rsp + 0x20]
mov qword [rsi], rbx
mov rcx, rbx
call fcn.140121344
mov qword [rsi + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.1400494b0
lea rsi, [rsp + 0x48]
mov rcx, rbx
mov rdx, rsi
call fcn.14004af50
mov rcx, r14
mov rdx, rsi
call fcn.1400495f0
mov rcx, rsi
call fcn.1400ec550
mov rcx, rbx
call fcn.1400ec550
cmp edi, 0x104
setb bl
lea rcx, [rsp + 0x270]
call fcn.1400f4520
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140106490
mov eax, ebx
add rsp, 0x2d8
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14015af90
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd0
movaps xmmword [rsp + 0xc0], xmm6
mov r14d, r8d
mov r15, rdx
mov rdi, rcx
mov rax, qword [0x14024f018]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x60]
mov qword [rbx + 0x50], r12
movaps xmm6, xmmword [0x1402183e0]
movaps xmmword [rbx + 0x40], xmm6
movaps xmmword [rbx + 0x30], xmm6
movaps xmmword [rbx + 0x20], xmm6
movaps xmmword [rbx + 0x10], xmm6
movaps xmmword [rbx], xmm6
lea rdx, str.DoCopyFile
lea r8, str..._.._base_files_file_util_win.cc
lea rsi, [rsp + 0x20]
mov rcx, rsi
mov r9d, 0x7b
call fcn.1400ed980
xor ebp, ebp
mov rcx, rbx
mov rdx, rsi
xor r8d, r8d
call fcn.1400f44c0
mov rcx, rdi
call fcn.1400ed680
test al, al
je 0x14015b064
lea rcx, [rsp + 0x60]
call fcn.1400f4520
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140106490
mov eax, ebp
movaps xmm6, xmmword [rsp + 0xc0]
add rsp, 0xd0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, r15
call fcn.1400ed680
test al, al
je 0x14015b074
xor ebp, ebp
jmp 0x14015b02e
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x14015b080
mov rax, qword [rdi + 8]
cmp rax, 0x103
ja 0x14015b070
movzx eax, byte [r15 + 0x17]
test al, al
jns 0x14015b095
mov rax, qword [r15 + 8]
cmp rax, 0x103
ja 0x14015b070
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x10], r12
movaps xmmword [rsi], xmm6
lea rdx, str.DoCopyFile
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x88
call fcn.1400ed980
lea r8, [0x140259d24]
mov rcx, rsi
mov rdx, rbx
call fcn.14007e480
cmp byte [r15 + 0x17], 0
jns 0x14015b0e6
mov r15, qword [r15]
movzx r8d, r14b
cmp byte [rdi + 0x17], 0
jns 0x14015b0f3
mov rdi, qword [rdi]
mov rcx, rdi
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x14015b13e
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
je 0x14015b128
mov eax, edi
and eax, 1
je 0x14015b128
mov edx, edi
and edx, 0xfffffffe
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp edi, 0xffffffff
setne bpl
lea rcx, [rsp + 0x40]
call fcn.14007e580
jmp 0x14015b02e
xor ebp, ebp
jmp 0x14015b12f