joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14017c2f0
Capabilities:
Clear file content

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xd8
movaps xmmword [rsp + 0xc0], xmm6
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x60]
mov qword [rbx + 0x50], r12
movaps xmm6, xmmword [0x1402ae190]
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.SetLength
lea r8, str..._.._base_files_file_win.cc
lea rsi, [rsp + 0x40]
mov rcx, rsi
mov r9d, 0xa9
call fcn.1400c0870
xor r15d, r15d
mov rcx, rbx
mov rdx, rsi
xor r8d, r8d
call fcn.1400c3400
mov qword [rsi], r12
mov rcx, qword [rdi]
lea r8, [rsp + 0x40]
xor edx, edx
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14017c3e0
mov rcx, qword [rdi]
xor r15d, r15d
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14017c3e0
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x14017c461
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rdi]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
setne r15b
test byte [0x14030f3f0], 0x19
jne 0x14017c41f
lea rcx, [rsp + 0x60]
call fcn.1400c2130
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140115e50
mov eax, r15d
movaps xmm6, xmmword [rsp + 0xc0]
add rsp, 0xd8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x10], r12
movaps xmmword [rsi], xmm6
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov byte [rsp + 0x30], 0
lea r8, [0x14030f3f0]
lea r9, [0x1402bc35a]
mov rcx, rsi
mov dl, 0x45
call fcn.1400c0640
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x14017c3e9
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x14017c3e9
xor r15d, r15d
jmp 0x14017c3e0
Function at 0x14017e220
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov r14, rcx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.140117f60
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x14017e2bf
lea rsi, [rsp + 0x20]
mov qword [rsi], rbx
mov rcx, rbx
call fcn.1401124ec
mov qword [rsi + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.1400e4ea0
lea rsi, [rsp + 0x48]
mov rcx, rbx
mov rdx, rsi
call fcn.1400ff250
mov rcx, r14
mov rdx, rsi
call fcn.1400f94f0
mov rcx, rsi
call fcn.1400e1350
mov rcx, rbx
call fcn.1400e1350
cmp edi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140115e50
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14017f280
Capabilities:
Get disk size

Disassembly:
push rsi
push rbx
sub rsp, 0x48
mov rsi, rdx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0x40], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
cmp byte [rcx + 0x17], 0
jns 0x14017f2ba
mov rcx, qword [rcx]
lea rdx, [rsp + 0x38]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x14017f2f1
test rsi, rsi
je 0x14017f2f1
mov rcx, qword [rsp + 0x38]
movabs rdx, 0x7fffffffffffffff
cmp rcx, rdx
cmovb rdx, rcx
mov qword [rsi], rdx
test eax, eax
setne bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140115e50
mov eax, ebx
add rsp, 0x48
pop rbx
pop rsi
ret

Function at 0x140183296
Capabilities:
Create thread

Disassembly:
push rsi
sub rsp, 0x40
mov rsi, rcx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x140294ad0]
xor ecx, ecx
xor edx, edx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsi + 8], rax
test rax, rax
je 0x1401832ef
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140115e50
nop
add rsp, 0x40
pop rsi
ret
lea rdx, str..._.._third_party_crashpad_crashpad_util_thread_thread_win.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x1b
call fcn.1401ce8d0
mov rcx, rsi
call fcn.1401ce8f0
lea rdx, [0x1402c7234]
mov r8d, 0xc
mov rcx, rax
call fcn.1400ff874
mov rcx, rsi
call fcn.1401ce900
jmp 0x1401832db
Function at 0x1401837ff
Capabilities:
Clear file content

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov rdi, rcx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor esi, esi
xor edx, edx
xor r8d, r8d
call fcn.14017cf67
test rax, rax
jne 0x14018383e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov sil, 1
test eax, eax
je 0x14018385a
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140115e50
mov eax, esi
add rsp, 0x178
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.1400f34e0
test al, al
je 0x1401838b0
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_file_file_io_win.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0xfc
mov r9d, 2
call fcn.14019f9e0
lea rcx, [rsp + 0x40]
lea rdx, [0x1402c796e]
mov r8d, 0xc
call fcn.1400ff874
mov rcx, rsi
call fcn.140183e60
xor esi, esi
jmp 0x14018383e

Function at 0x140184720
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rdx, str.HasValue
lea r8, str..._.._base_win_registry.cc
lea rcx, [rsp + 0x38]
mov r9d, 0xf9
call fcn.1400c0870
mov rcx, qword [rdi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov rdx, rsi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete bl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140115e50
mov eax, ebx
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret

Function at 0x1401850e0
Capabilities:
Get session user name

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x240
mov rsi, rcx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0x238], rax
lea rdi, [rsp + 0x30]
mov r8d, 0x200
mov rcx, rdi
mov dl, 0xaa
call fcn.140117f60
lea rbx, [rsp + 0x2c]
mov dword [rbx], 0x100
mov rcx, rdi
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
sete al
mov edx, dword [rbx]
test rdx, rdx
sete bl
or bl, al
jne 0x14018516b
mov rcx, rsi
call fcn.140162806
mov edx, 1
mov rcx, rsi
mov r8w, 0x2e
call fcn.14014e770
mov r8d, dword [rsp + 0x2c]
dec r8d
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400ebd2e
xor bl, 1
mov rcx, qword [rsp + 0x238]
xor rcx, rsp
call fcn.140115e50
mov eax, ebx
add rsp, 0x240
pop rbx
pop rdi
pop rsi
ret
Function at 0x140187570
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov esi, ecx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0x30], rax
movsxd rbx, edx
movsxd rax, ecx
sub rbx, rax
inc rbx
movabs r14, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x28]
mov qword [rsp + 0x28], r14
mov rcx, rdi
mov edx, 8
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1401875fb
mov rax, 0xffffffffffffffff
xor edx, edx
div rbx
mov rcx, 0xfffffffffffffffe
sub rcx, rdx
mov rax, qword [rsp + 0x28]
cmp rax, rcx
ja 0x1401875a5
xor edx, edx
div rbx
add esi, edx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140115e50
mov eax, esi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
int3
Function at 0x140189700
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov eax, 4
lea r15, [rsp + 0x3c]
mov dword [r15], eax
lea r12, [rsp + 0x38]
mov dword [r12], eax
lea rsi, [rsp + 0x34]
mov dword [rsi], 0
lea rdx, str.ReadValue
lea r8, str..._.._base_win_registry.cc
lea rcx, [rsp + 0x40]
mov r9d, 0x19e
call fcn.1400c0870
mov rcx, qword [rbx]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rsi
mov rdx, rdi
xor r8d, r8d
mov r9, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401897c2
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x1401897a5
cmp dword [rsp + 0x38], 4
jne 0x1401897a5
mov eax, dword [rsp + 0x34]
mov dword [r14], eax
xor edi, edi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140115e50
mov eax, edi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov edi, eax
jmp 0x1401897a5
Function at 0x140189d50
Capabilities:
Get file version info

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb0
mov rdi, rdx
mov r14, rcx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x50]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x1402ae190]
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.CreateFileVersionInfoWin
lea r8, str..._.._base_file_version_info_win.cc
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov r9d, 0x4e
call fcn.1400c0870
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1400c3400
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rdi + 0x17], 0
jns 0x140189de2
mov rdi, qword [rdi]
lea rdx, [rsp + 0x24]
mov rcx, rdi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x140189eff
mov ebp, eax
mov esi, eax
mov rcx, rsi
call fcn.140112048
mov rbx, rax
mov rcx, rax
xor edx, edx
mov r8, rsi
call fcn.140117f60
mov edx, dword [rsp + 0x24]
mov rcx, rdi
mov r8d, ebp
mov r9, rbx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x140189f08
lea r8, [rsp + 0x28]
mov qword [r8], 0
lea r9, [rsp + 0x4c]
mov dword [r9], 0xaaaaaaaa
lea rdx, str.VarFileInfoTranslation
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140189f08
mov rbp, qword [rsp + 0x28]
test rbp, rbp
je 0x140189f08
mov rdi, rbx
add rdi, rsi
mov ecx, 0x38
call fcn.140112048
mov rsi, rax
mov eax, dword [rbp]
lea rcx, fcn.140017760
mov qword [rsi], rcx
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], rdi
mov qword [rsi + 0x20], rbx
mov dword [rsi + 0x28], eax
lea r8, [rsp + 0x28]
mov qword [r8], 0
lea r9, [rsp + 0x4c]
mov dword [r9], 0xaaaaaaaa
lea rdx, [0x1402bc572]
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140189f1e
mov rax, qword [rsp + 0x28]
mov qword [rsi + 0x30], rax
mov qword [r14], rsi
lea rcx, [rsp + 0x50]
call fcn.1400c20a0
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140115e50
mov rax, r14
add rsp, 0xb0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov qword [r14], 0
jmp 0x140189ed4
mov qword [r14], 0
test rbx, rbx
je 0x140189ed4
mov rcx, rbx
call fcn.140112038
jmp 0x140189ed4
int3

Function at 0x14018b0b0
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.140112048
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x1401c4e60]
xor ecx, ecx
xor edx, edx
mov r9, rax
call fcn.140113b84
mov qword [rbx], rax
test rax, rax
je 0x14018b107
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 0x14018b3ae
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov esi, edx
mov rdi, rcx
mov eax, edx
shr eax, 4
inc eax
movzx edx, ax
mov r8d, 6
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
jne 0x14018b3dd
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
mov rcx, rdi
mov rdx, rax
mov r8d, esi
add rsp, 0x28
pop rdi
pop rsi
jmp 0x1401fb58d
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov edi, r8d
mov r14, rdx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1401fb60a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x1401fb60a
mov rsi, rax
mov rcx, rbx
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
setne cl
and edi, 0xf
je 0x1401fb5fa
test eax, eax
je 0x1401fb5fa
mov ecx, eax
mov rax, rsi
add rax, rcx
dec edi
movzx ecx, word [rsi]
lea rsi, [rsi + rcx*2]
add rsi, 2
cmp rsi, rax
setb cl
add edi, 0xffffffff
jae 0x1401fb5fa
cmp rsi, rax
jb 0x1401fb5df
test cl, cl
je 0x1401fb60a
xor eax, eax
cmp word [rsi], 0
cmovne rax, rsi
jmp 0x1401fb60c
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14018c360
Capabilities:
Get hostname

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x260
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0x258], rax
lea rcx, str..._.._base_win_win_util.cc
mov edx, 0x1b
call fcn.1400c7bd0
test eax, eax
jg 0x14018c450
lea rsi, [rsp + 0x50]
mov r8d, 0x200
mov rcx, rsi
mov dl, 0xaa
call fcn.140117f60
mov word [rsi], 0
lea r8, [rsp + 0x4c]
mov dword [r8], 0x100
mov ecx, 3
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x14018c411
lea rax, str..corp.microsoft.com
lea rdi, [rsp + 0x38]
mov qword [rdi], rax
mov qword [rdi + 8], 0x13
lea rbx, [rsp + 0x28]
mov qword [rbx], rsi
mov rcx, rsi
call fcn.1401124ec
mov qword [rbx + 8], rax
mov rcx, rbx
mov rdx, rdi
mov r8d, 1
call fcn.14018c530
test al, al
jne 0x14018c494
xor esi, esi
lea rdx, [rsp + 0x50]
mov qword [rdx], rsi
lea rdi, [rsp + 0x38]
mov qword [rdi], rsi
mov rcx, rdi
call fcn.14018c4b0
mov rax, qword [rdi]
cmp byte [rax], 0
jne 0x14018c499
mov rcx, qword [rsp + 0x258]
xor rcx, rsp
call fcn.140115e50
mov eax, esi
add rsp, 0x260
pop rbx
pop rdi
pop rsi
ret
lea rdx, str..._.._base_win_win_util.cc
lea rsi, [rsp + 0x50]
mov rcx, rsi
mov r8d, 0x549
mov r9d, 0xffffffff
call fcn.14019a740
lea rcx, [rsp + 0x60]
lea rdx, str.Checking_if_internal_user
mov r8d, 0x19
call fcn.1400ff874
mov rcx, rsi
call fcn.140001d00
jmp 0x14018c395
mov sil, 1
jmp 0x14018c433
mov rax, qword [rsp + 0x50]
cmp byte [rax], 0
setne sil
jmp 0x14018c433
Function at 0x14018d20e
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov r14, r8
mov r12, rdx
mov rdi, rcx
lea r15, [rcx + 0x38]
mov rcx, qword [rcx + 0x38]
test rcx, rcx
jne 0x14018d378
lea rbx, [rdi + 0x30]
mov rcx, qword [rdi + 0x30]
test rcx, rcx
jne 0x14018d38a
mov qword [rsp + 0x20], rbx
lea rcx, [0x14029a438]
lea r9, [0x1402d4840]
xor edx, edx
mov r8d, 0x17
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rsi, qword [rbx]
test eax, eax
js 0x14018d39c
mov rcx, qword [r15]
test rcx, rcx
jne 0x14018d3b0
mov rax, qword [rsi]
mov rcx, rsi
mov rdx, r15
call qword [rax + 0x90]
test eax, eax
js 0x14018d3c2
cmp rdi, r12
je 0x14018d326
cmp byte [rdi + 0x17], 0
mov al, byte [r12 + 0x17]
js 0x14018d358
test al, al
jns 0x14018d345
mov r15, qword [r12]
mov rsi, qword [r12 + 8]
cmp rsi, 0xa
jbe 0x14018d3de
lea rax, [rsi - 0xa]
movabs rcx, 0x7fffffffffffffe5
cmp rax, rcx
jae 0x14018d3fe
cmp rsi, 0x14
mov ebx, 0x14
cmova rbx, rsi
add rbx, 8
and rbx, 0xfffffffffffffff8
lea rcx, [rbx + rbx]
call fcn.140112048
mov r12, rax
lea r8, [rsi + rsi]
mov rcx, rax
mov rdx, r15
call fcn.1401178b0
mov qword [rdi], r12
bts rbx, 0x3f
mov qword [rdi + 0x10], rbx
mov qword [rdi + 8], rsi
mov word [r12 + rsi*2], 0
add rdi, 0x18
mov rcx, rdi
mov rdx, r14
call fcn.1400f0080
mov al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rax, qword [r12 + 0x10]
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [r12]
movups xmmword [rdi], xmm0
jmp 0x14018d326
test al, al
jns 0x14018d367
mov r8, qword [r12 + 8]
mov r12, qword [r12]
jmp 0x14018d36b
movzx r8d, al
mov rcx, rdi
mov rdx, r12
call fcn.1401833ba
jmp 0x14018d326
mov qword [r15], 0
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x14018d235
mov qword [rbx], 0
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x14018d246
test rsi, rsi
je 0x14018d3d7
mov qword [rbx], 0
mov rax, qword [rsi]
mov rcx, rsi
jmp 0x14018d3d4
mov qword [r15], 0
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x14018d27e
mov rcx, qword [r15]
test rcx, rcx
je 0x14018d3d7
mov qword [r15], 0
mov rax, qword [rcx]
call qword [rax + 0x10]
xor eax, eax
jmp 0x14018d337
mov byte [rdi + 0x17], sil
test rsi, rsi
je 0x14018d3f6
lea r8, [rsi + rsi]
mov rcx, rdi
mov rdx, r15
call fcn.1401178b0
mov r12, rdi
jmp 0x14018d31f
mov rcx, rdi
call fcn.1401573b4
int3
Function at 0x14018fe80
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
lea rdi, [rcx + 8]
mov rcx, rdi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rsi, qword [rsi]
test rsi, rsi
jne 0x14018feab
mov rcx, rdi
add rsp, 0x28
pop rdi
pop rsi
jmp sub.KERNEL32.dll_ReleaseSRWLockExclusive
lock inc dword [rsi]
mov rcx, rdi
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
mov rcx, rsi
call fcn.140224e80
lock dec dword [rsi]
je 0x14018feca
add rsp, 0x28
pop rdi
pop rsi
ret
mov rcx, rsi
call fcn.140224e20
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1400096d0
Function at 0x1401952f0
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 r12, rcx
mov rbx, qword [rcx + 0x10]
cmp rbx, qword [rcx + 0x18]
jne 0x140195376
mov r15, qword [r12]
mov r13, qword [r12 + 8]
mov rax, r13
sub rax, r15
jbe 0x140195393
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov rsi, rax
neg rsi
shl rax, 3
mov rdi, r13
sub rdi, rax
sub rbx, r13
je 0x14019535e
mov rcx, rdi
mov rdx, r13
mov r8, rbx
call fcn.1401178b0
mov r13, qword [r12 + 8]
add rbx, rdi
mov qword [r12 + 0x10], rbx
lea rax, [rsi*8]
add rax, r13
mov qword [r12 + 8], rax
mov rax, qword [r14]
mov qword [rbx], rax
add qword [r12 + 0x10], 8
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, rbx
sub rax, r15
mov rcx, rax
sar rcx, 2
test rax, rax
mov ebp, 1
cmovne rbp, rcx
mov rax, rbp
shr rax, 0x3d
jne 0x14019542f
mov rsi, rbp
shr rsi, 2
lea rcx, [rbp*8]
call fcn.140112048
lea rdi, [rax + rsi*8]
lea r8, [rax + rbp*8]
mov rdx, rdi
sub rbx, r13
je 0x1401953fe
lea rdx, [rdi + rbx]
sar rbx, 3
shl rbx, 3
lea rbp, [rax + rsi*8]
xor esi, esi
mov rcx, qword [r13 + rsi]
mov qword [rbp + rsi], rcx
add rsi, 8
cmp rbx, rsi
jne 0x1401953eb
mov qword [r12], rax
mov qword [r12 + 8], rdi
mov qword [r12 + 0x10], rdx
mov qword [r12 + 0x18], r8
mov rbx, rdx
test r15, r15
je 0x140195376
mov rcx, r15
call fcn.140112038
mov rbx, qword [r12 + 0x10]
jmp 0x140195376
call fcn.140112370
int3

Function at 0x140197a66
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 0x140197aa2
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 0x140197aff
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 0x140197aee
mov rcx, r15
mov rdx, rdi
mov r8, rbx
call fcn.1401178b0
mov rdi, qword [rbp + 8]
add rbx, r15
mov qword [rbp + 0x10], rbx
lea rax, [rdi + r12*8]
mov qword [rbp + 8], rax
jmp 0x140197a86
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 0x140197b96
mov r12, r13
shr r12, 2
lea rcx, [r13*8]
call fcn.140112048
lea r9, [rax + r12*8]
lea r8, [rax + r13*8]
mov r10, r9
sub rbx, rdi
je 0x140197b69
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 0x140197b58
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 0x140197a86
mov rcx, r15
call fcn.140112038
mov rbx, qword [rbp + 0x10]
jmp 0x140197a86
call fcn.140112370
int3
Function at 0x140197b9c
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 0x140197bdb
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 0x140197c2d
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 0x140197c1f
sub r15, r8
mov rcx, r15
mov rdx, rbx
call fcn.1401178b0
mov rdi, qword [rbp + 0x10]
mov qword [rbp + 8], r15
lea rax, [rdi + r12*8]
mov qword [rbp + 0x10], rax
jmp 0x140197bbe
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 0x140197cbf
lea r12, [r13 + 3]
shr r12, 2
lea rcx, [r13*8]
call fcn.140112048
lea r15, [rax + r12*8]
lea r8, [rax + r13*8]
mov r9, r15
sub rdi, rbx
je 0x140197c95
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 0x140197c84
mov qword [rbp], rax
mov qword [rbp + 8], r15
mov qword [rbp + 0x10], r9
mov qword [rbp + 0x18], r8
test rbx, rbx
je 0x140197bbe
mov rcx, rbx
call fcn.140112038
mov r15, qword [rbp + 8]
jmp 0x140197bbe
call fcn.140112370
int3
Function at 0x14019f760
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov ebp, r8d
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x60]
mov qword [rdi + 0x50], rax
movaps xmm0, xmmword [0x1402ae190]
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, [0x1402bc711]
lea r8, str..._.._base_files_file_util_win.cc
lea rsi, [rsp + 0x40]
mov rcx, rsi
mov r9d, 0x42a
call fcn.1400c0870
xor r15d, r15d
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
call fcn.1400c3400
cmp byte [rbx + 0x17], 0
jns 0x14019f7f2
mov rbx, qword [rbx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
mov rcx, rbx
mov edx, 0x40000000
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
test rax, rax
je 0x14019f849
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp rdi, 0xffffffffffffffff
je 0x14019f8f2
call fcn.1400bb620
mov r15, rdi
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdi, [r15 + 1]
cmp rdi, 2
jb 0x14019f8dd
lea rsi, [rsp + 0x40]
mov dword [rsi], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov rcx, r15
mov rdx, r14
mov r8d, ebp
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [rsi]
xor edx, edx
cmp eax, 1
sbb edx, edx
cmp ecx, ebp
mov esi, 0xffffffff
cmove esi, ecx
or esi, edx
cmp rdi, 2
jb 0x14019f8b1
call fcn.1400bb620
mov rcx, qword [0x1403198a0]
test rcx, rcx
je 0x14019f8e4
mov rax, qword [rcx]
mov rdx, r15
call qword [rax]
lea rcx, [rsp + 0x60]
call fcn.1400c20a0
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140115e50
mov eax, esi
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x14019f892
call fcn.140163330
mov rcx, qword [0x1403198a0]
jmp 0x14019f8a9
xor r15d, r15d
jmp 0x14019f841

Function at 0x14019f9c0
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
mov edx, 1
jmp fcn.140003e00