joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b3310
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x14013a308]
cmp rdi, 1
jbe 0x1400b335a
mov ecx, dword [0x140134758]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400b33a0
movsxd rcx, dword [rdi]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [rdi + 4]
movsxd rdx, dword [rdi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x14013a308]
call fcn.1400498e0
test al, al
je 0x1400b33ac
mov qword [0x14013a310], 0
lea rbx, [0x14013a308]
lea rdi, [0x14013a310]
mov rcx, rdi
xor edx, edx
call fcn.14003f000
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.1400498c0
jmp 0x1400b3327
test rsi, rsi
je 0x1400b3352
call fcn.140006d10
jmp 0x1400b3339
mov rdi, qword [0x14013a308]
jmp 0x1400b3327
Function at 0x1400b48a0
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x140131038]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x1401146a0]
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, [0x14011788c]
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x472
call fcn.1400498a0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140048980
cmp byte [rdi + 0x17], 0
jns 0x1400b4924
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rsi
call fcn.140043a50
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140079ea0
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400b4960
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2d8
mov r14, rcx
mov rax, qword [0x140131038]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x270]
mov qword [rdi + 0x50], rax
movaps xmm0, xmmword [0x1401146a0]
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, [0x140117877]
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x60]
mov rcx, rbx
mov r9d, 0x462
call fcn.1400498a0
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140048980
lea rbx, [rsp + 0x60]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.14007c4d0
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 0x1400b4a63
lea rsi, [rsp + 0x20]
mov qword [rsi], rbx
mov rcx, rbx
call fcn.140077408
mov qword [rsi + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.14005d160
lea rsi, [rsp + 0x48]
mov rcx, rbx
mov rdx, rsi
call fcn.140061100
mov rcx, r14
mov rdx, rsi
call fcn.140068e80
mov rcx, rsi
call fcn.14004e350
mov rcx, rbx
call fcn.14004e350
cmp edi, 0x104
setb bl
lea rcx, [rsp + 0x270]
call fcn.140043a50
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140079ea0
mov eax, ebx
add rsp, 0x2d8
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400b59e0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.140079e30
sub rsp, rax
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140131038]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r15, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r15
mov dl, 0xaa
call fcn.14007c4d0
lea r12, [rsp + 0x3c]
mov dword [r12], 1
lea rsi, [rsp + 0x38]
mov dword [rsi], 0x800
lea rdx, str.ReadValue
lea r8, str..._.._base_win_registry.cc
lea rcx, [rsp + 0x40]
mov r9d, 0x19e
call fcn.1400498a0
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r15
mov rdx, rdi
xor r8d, r8d
mov r9, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400b5abd
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x1400b5ac1
lea rdx, [rsp + 0x840]
mov rcx, r14
call fcn.14005db7e
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140079ea0
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov edi, eax
jmp 0x1400b5a9a
cmp eax, 2
jne 0x1400b5b06
lea rsi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.14007c4d0
lea rcx, [rsp + 0x840]
mov rdx, rsi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
dec eax
cmp eax, 0x3ff
ja 0x1400b5b0d
lea rdx, [rsp + 0x40]
jmp 0x1400b5a90
mov edi, 0x3f4
jmp 0x1400b5a9a
mov edi, 0xea
jmp 0x1400b5a9a

Function at 0x1400b5d50
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 0x1400b5d8a
mov rax, qword [rdi]
mov qword [rbx], 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 r15, qword [rsi]
mov r14, qword [rsi + 8]
mov rax, r14
sub rax, r15
jbe 0x1400b5de6
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 0x1400b5dd5
mov rcx, r15
mov rdx, r14
mov r8, rbx
call fcn.14007be20
mov r14, qword [rsi + 8]
add rbx, r15
mov qword [rsi + 0x10], rbx
lea rax, [r14 + r12*8]
mov qword [rsi + 8], rax
jmp 0x1400b5d6f
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 0x1400b5e7c
mov r12, r13
shr r12, 2
lea rcx, [r13*8]
call fcn.140076ec8
lea r9, [rax + r12*8]
lea r8, [rax + r13*8]
mov r10, r9
sub rbx, r14
je 0x1400b5e50
lea r10, [r9 + rbx]
sar rbx, 3
shl rbx, 3
lea r11, [rax + r12*8]
xor edx, edx
mov rcx, qword [r14 + rdx]
mov qword [r11 + rdx], rcx
add rdx, 8
cmp rbx, rdx
jne 0x1400b5e3f
mov qword [rsi], rax
mov qword [rsi + 8], r9
mov qword [rsi + 0x10], r10
mov qword [rsi + 0x18], r8
mov rbx, r10
test r15, r15
je 0x1400b5d6f
mov rcx, r15
call fcn.140076eb8
mov rbx, qword [rsi + 0x10]
jmp 0x1400b5d6f
call fcn.1400771f0
int3
Function at 0x1400b7e60
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov rax, qword [0x140131038]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x140113258]
mov qword [rcx], rax
lea rdi, [rcx + 8]
lea rax, [0x1401139e0]
mov qword [rcx + 8], rax
lea rbx, [rsp + 0x20]
mov rcx, rbx
call fcn.140040060
mov rcx, rbx
mov rdx, rsi
call fcn.1400b7fc0
call fcn.14003fe30
mov rcx, rax
mov rdx, rdi
call fcn.1400603b0
mov rdi, qword [rsi + 0x10]
add rdi, 8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400b7f69
mov rax, qword [rsi + 0x18]
test rax, rax
jne 0x1400b7f76
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x20]
mov dword [rdx], eax
mov ecx, 0x308
add rcx, qword [rsi + 0x10]
call fcn.1400b7fd0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rdi, qword [rsi + 0x10]
mov ecx, dword [0x140134758]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400b7f42
movsxd rcx, dword [rdi + 0x2f0]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [rdi + 0x2f4]
movsxd rdx, dword [rdi + 0x2f0]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rdi, qword [rsi + 0x18]
mov qword [rsi + 0x18], 0
test rdi, rdi
jne 0x1400b7fad
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140079ea0
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, rdi
call fcn.14003e480
jmp 0x1400b7ed3
mov rcx, qword [rsi + 0x10]
mov rdx, qword [rcx + 0x360]
cmp dword [rsi + 0x28], edx
jne 0x1400b7ee0
mov rcx, qword [rcx + 0x20]
mov qword [rsi + 0x18], 0
lea r8, [rsp + 0x20]
mov qword [r8], rax
mov rdx, qword [rsi + 0x20]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x1400b7ee0
mov rcx, rdi
call fcn.1400a6580
mov rcx, rdi
call fcn.140076eb8
jmp 0x1400b7f53
Function at 0x1400ba0d1
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x230
mov rsi, rcx
mov rax, qword [0x140131038]
xor rax, rsp
mov qword [rsp + 0x228], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14007c4d0
xor ebx, ebx
lea r14, str.PROGRAMFILES
mov r15, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rbx + r14]
mov word [rsp + 0x20], 0
mov rdx, rdi
mov r8d, 0x104
call r15
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x1400ba14c
mov edx, eax
mov rcx, rdi
mov r8, rsi
call fcn.1400ba17e
test al, al
jne 0x1400ba179
add rbx, 8
cmp rbx, 0x18
jne 0x1400ba119
xor esi, esi
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.140079ea0
mov eax, esi
add rsp, 0x230
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov sil, 1
jmp 0x1400ba158

Function at 0x1400ba3c2
Capabilities:
Get common file path
Get file attributes

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x258
mov rax, qword [0x140131038]
xor rax, rsp
mov qword [rsp + 0x250], rax
movabs rbx, 0x7fffffffffffffef
lea rsi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rsi
mov dl, 0xaa
call fcn.14007c4d0
mov word [rsi], 0
mov rcx, rsi
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x30], rax
movaps xmm0, xmmword [0x1401146a0]
movaps xmmword [rsp + 0x20], xmm0
mov rcx, rsi
call fcn.140077408
cmp rax, rbx
ja 0x1400ba4f5
mov rsi, rax
cmp rax, 0xb
jae 0x1400ba457
lea rdi, [rsp + 0x20]
mov byte [rdi + 0x17], sil
test rsi, rsi
jne 0x1400ba481
jmp 0x1400ba494
lea r14, [rsi + 8]
and r14, 0xfffffffffffffff8
lea rcx, [r14 + r14]
call fcn.140076ec8
mov rdi, rax
mov qword [rsp + 0x20], rax
add rbx, 0x11
or rbx, r14
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rsi
mov r8, rsi
add r8, rsi
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14007be20
mov word [rdi + rsi*2], 0
lea rdx, str.usp10.dll
lea rcx, [rsp + 0x20]
call fcn.140052c64
cmp byte [rax + 0x17], 0
jns 0x1400ba4b4
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp byte [rsp + 0x37], 0
jns 0x1400ba4d0
mov rcx, qword [rsp + 0x20]
call fcn.140076eb8
cmp esi, 0xffffffff
setne bl
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140079ea0
mov eax, ebx
add rsp, 0x258
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [rsp + 0x20]
call fcn.1400ac2dc
int3
Function at 0x1400bb07b
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov r12, r8
mov ebx, edx
mov edi, ecx
mov rax, qword [0x140131038]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx eax, byte [r8 + 0x17]
test al, al
jns 0x1400bb0af
mov rax, qword [r12 + 8]
test rax, rax
je 0x1400bb1a7
mov eax, ebx
not eax
test eax, 0x300
je 0x1400bb1a7
cmp edi, 2
lea rax, [0x140139cd0]
lea rcx, [0x140139ed0]
cmove rcx, rax
cmp word [rcx], 0
jne 0x1400bb1a7
xorps xmm0, xmm0
lea rsi, [rsp + 0x40]
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [rsi], 0
je 0x1400bb1a7
cmp byte [0x140139cc0], 0
setne al
bt ebx, 8
jb 0x1400bb1a7
shr ebx, 9
and ebx, 1
or bl, al
je 0x1400bb1a7
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea rsi, str.SOFTWARE
cmove rsi, rax
movzx r13d, byte [r12 + 0x17]
test r13b, r13b
jns 0x1400bb202
mov rbx, qword [r12]
mov r13, qword [r12 + 8]
mov r14d, 1
xor r15d, r15d
xor eax, eax
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x2c], 0
mov rdi, qword [rsi + 8]
mov rbp, r13
sub rbp, rdi
jb 0x1400bb194
mov rdx, qword [rsi]
mov rcx, rbx
mov r8, rdi
call fcn.140077d0c
test eax, eax
je 0x1400bb1c6
add rsi, 0x28
inc r15
cmp r15, r14
jb 0x1400bb176
cmp dword [rsp + 0x2c], 0
jne 0x1400bb20a
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140079ea0
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movzx ecx, word [rbx + rdi*2]
cmp cx, 0x5c
je 0x1400bb1d5
test cx, cx
jne 0x1400bb194
lea rax, [rbx + rdi*2]
mov edx, dword [rsi + 0x10]
mov dword [rsp + 0x2c], edx
cmp edx, 1
je 0x1400bb232
cmp dword [rsp + 0x2c], 2
jne 0x1400bb243
lea rdx, str.WOW6432Node
mov qword [rsp + 0x38], rdx
mov rdx, rax
mov qword [rsp + 0x30], rax
jmp 0x1400bb243
mov rbx, r12
jmp 0x1400bb157
cmp byte [r12 + 0x17], 0
js 0x1400bb272
mov rax, r12
mov rdx, qword [rsp + 0x30]
sub rdx, rax
sar rdx, 1
mov rcx, r12
mov r8, qword [rsp + 0x38]
call fcn.1400e0df4
jmp 0x1400bb1a7
lea rdx, str.WOW6432Node_
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rbx
cmp cx, 0x5c
jne 0x1400bb25c
lea rbx, [rax + 2]
dec rbp
cmp word [rax + 2], 0x5c
mov rax, rbx
je 0x1400bb249
jmp 0x1400bb25f
mov rbx, rax
mov r14, qword [rsi + 0x20]
mov rsi, qword [rsi + 0x18]
xor r15d, r15d
mov r13, rbp
jmp 0x1400bb19b
mov rax, qword [r12]
jmp 0x1400bb215
Function at 0x1400bd0d6
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov rsi, rcx
test r8d, r8d
jne 0x1400bd100
movabs rax, 0x100000001
mov qword [rsi], rax
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov edi, r8d
mov dword [rsi], 0
test dl, 1
jne 0x1400bd121
xor ebx, ebx
movzx edx, dx
shr edx, 1
inc ebx
mov r14d, edx
test dl, 1
je 0x1400bd110
jmp 0x1400bd127
movzx r14d, dx
xor ebx, ebx
bsr eax, r14d
xor eax, 0x1f
mov ecx, 0x20
sub ecx, eax
imul ecx, edi
cmp ecx, 0xde3
jg 0x1400bd1f9
mov ecx, 1
mov ebp, ecx
lea ecx, [rbp + rbp]
cmp ebp, edi
jle 0x1400bd149
xor r8d, r8d
sar ebp, 2
movzx r9d, dx
jne 0x1400bd1b1
xor ebp, ebp
mov rdx, r9
mov dword [rsi], 0
test rdx, rdx
je 0x1400bd18c
xor eax, eax
mov ecx, edx
and ecx, 0xfffffff
mov dword [rsi + rax*4 + 4], ecx
shr rdx, 0x1c
inc rax
test rdx, rdx
jne 0x1400bd171
mov word [rsi], ax
test r8b, 1
jne 0x1400bd21b
test ebp, ebp
jne 0x1400bd1fe
imul ebx, edi
mov rcx, rsi
mov edx, ebx
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
jmp fcn.1400bcafc
xor r8d, r8d
mov r10d, 1
mov rdx, r9
imul rdx, rdx
test ebp, edi
jne 0x1400bd1d4
sar ebp, 1
je 0x1400bd164
mov rcx, rdx
shr rcx, 0x20
jne 0x1400bd164
jmp 0x1400bd1bd
mov ecx, eax
or cl, 0x20
mov r11, rdx
shr r11, cl
test r11, r11
mov ecx, 1
cmove rcx, r9
movzx r8d, r8b
cmovne r8d, r10d
imul rdx, rcx
jmp 0x1400bd1c5
call fcn.1400ec31c
mov rcx, rsi
call fcn.1400fdfd2
test ebp, edi
je 0x1400bd215
mov rcx, rsi
mov edx, r14d
call fcn.1400bcdbe
sar ebp, 1
je 0x1400bd19a
jmp 0x1400bd1fe
mov rcx, rsi
mov edx, r14d
call fcn.1400bcdbe
jmp 0x1400bd196
Function at 0x1400bd400
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb0
movaps xmmword [rsp + 0xa0], xmm6
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x140131038]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], r15
movaps xmm6, xmmword [0x1401146a0]
movaps xmmword [rsi + 0x40], xmm6
movaps xmmword [rsi + 0x30], xmm6
movaps xmmword [rsi + 0x20], xmm6
movaps xmmword [rsi + 0x10], xmm6
movaps xmmword [rsi], xmm6
lea rdx, str.CreateDirectoryAndGetError
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x336
call fcn.1400498a0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140048980
cmp byte [rdi + 0x17], 0
mov rbx, rdi
jns 0x1400bd496
mov rbx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400bd4e2
mov sil, 1
test al, 0x10
je 0x1400bd57c
lea rcx, [rsp + 0x40]
call fcn.140043a50
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140079ea0
mov eax, esi
movaps xmm6, xmmword [rsp + 0xa0]
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rsi, [rsp + 0x20]
mov qword [rsi + 0x10], r15
movaps xmmword [rsi], xmm6
mov rcx, rdi
mov rdx, rsi
call fcn.1400079d0
movzx ecx, byte [rsi + 0x17]
mov r8, rcx
test cl, cl
jns 0x1400bd509
mov r8, qword [rsp + 0x28]
movzx eax, byte [rdi + 0x17]
mov rdx, rax
test al, al
jns 0x1400bd518
mov rdx, qword [rdi + 8]
cmp r8, rdx
je 0x1400bd59a
lea rcx, [rsp + 0x20]
mov rdx, r14
call fcn.1400bd400
test al, al
je 0x1400bd5e4
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov sil, 1
test eax, eax
je 0x1400bd553
lea rcx, [rsp + 0x20]
call fcn.14004e350
jmp 0x1400bd4af
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xb7
jne 0x1400bd56e
mov rcx, rdi
call fcn.1400bd5f0
test al, al
jne 0x1400bd544
test r14, r14
je 0x1400bd5dc
mov ecx, ebx
call fcn.1400aba30
jmp 0x1400bd5d9
test r14, r14
je 0x1400bd588
mov dword [r14], 0xfffffff7
mov ecx, 0x50
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x1400bd4af
test r8, r8
je 0x1400bd5ca
test cl, cl
jns 0x1400bd5a8
mov rsi, qword [rsp + 0x20]
mov rcx, rdi
test al, al
jns 0x1400bd5b2
mov rcx, qword [rdi]
xor edx, edx
movzx eax, word [rsi + rdx*2]
cmp ax, word [rcx + rdx*2]
jne 0x1400bd51d
inc rdx
cmp r8, rdx
jne 0x1400bd5b4
mov eax, 0xfffffffc
mov ebx, 2
test r14, r14
je 0x1400bd5dc
mov dword [r14], eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x1400bd544
Function at 0x1400bd5f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x140131038]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x1401146a0]
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.DirectoryExists
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x2a9
call fcn.1400498a0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140048980
cmp byte [rdi + 0x17], 0
jns 0x1400bd674
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.140043a50
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140079ea0
mov eax, edi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400bf5c0
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
movaps xmmword [rsp + 0x20], xmm6
mov rsi, rcx
lea rax, [0x1401139f0]
mov qword [rcx], rax
add rcx, 8
call fcn.1400587c0
lea rcx, [rsi + 0x10]
call fcn.1400587c0
xor edi, edi
mov byte [rsi + 0x18], dil
lea rcx, [rsi + 0x40]
xorps xmm6, xmm6
movups xmmword [rsi + 0x1c], xmm6
movups xmmword [rsi + 0x2c], xmm6
mov dword [rsi + 0x3c], edi
call fcn.1400587c0
mov byte [rsi + 0x48], dil
lea rax, [rsi + 0x70]
movups xmmword [rsi + 0x50], xmm6
mov qword [rsi + 0x60], rdi
movups xmmword [rsi + 0x70], xmm6
mov qword [rsi + 0x68], rax
movups xmmword [rsi + 0x80], xmm6
movups xmmword [rsi + 0x90], xmm6
movups xmmword [rsi + 0xa0], xmm6
movups xmmword [rsi + 0xb0], xmm6
movups xmmword [rsi + 0xc0], xmm6
mov ebx, 0x3f800000
mov dword [rsi + 0xd0], ebx
mov dword [rsi + 0xd8], edi
movups xmmword [rsi + 0xe0], xmm6
movups xmmword [rsi + 0xf0], xmm6
mov dword [rsi + 0x100], ebx
movups xmmword [rsi + 0x108], xmm6
movups xmmword [rsi + 0x118], xmm6
mov dword [rsi + 0x128], ebx
movups xmmword [rsi + 0x140], xmm6
movups xmmword [rsi + 0x130], xmm6
mov dword [rsi + 0x150], ebx
movups xmmword [rsi + 0x158], xmm6
movups xmmword [rsi + 0x168], xmm6
mov dword [rsi + 0x178], ebx
mov qword [rsi + 0x198], rdi
movups xmmword [rsi + 0x180], xmm6
mov dword [rsi + 0x190], edi
mov dword [rsi + 0x1a0], 1
lea rcx, [rsi + 0x1a8]
call fcn.1400bf880
lea rcx, [rsi + 0x2f0]
movups xmmword [rsi + 0x2d8], xmm6
mov qword [rsi + 0x2e8], rdi
xor edx, edx
call fcn.14003f000
lea rcx, [rsi + 0x2f8]
xor edx, edx
call fcn.14003f000
lea rcx, [rsi + 0x300]
xor edx, edx
call fcn.14003f000
movups xmmword [rsi + 0x308], xmm6
movups xmmword [rsi + 0x318], xmm6
mov dword [rsi + 0x328], ebx
movups xmmword [rsi + 0x330], xmm6
movups xmmword [rsi + 0x340], xmm6
movups xmmword [rsi + 0x350], xmm6
movups xmmword [rsi + 0x359], xmm6
movups xmmword [rsi + 0x370], xmm6
movups xmmword [rsi + 0x380], xmm6
call fcn.140008bc0
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rsi + 0x190], eax
cdqe
movabs rcx, 0xcbf29ce484222325
xor rcx, rax
movabs rax, 0x100000001b3
imul rax, rcx
mov qword [rsi + 0x188], rax
mov rcx, rsi
call fcn.1400bf7d0
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x20], rax
test rcx, rcx
jne 0x1400bf7be
call fcn.14003fe30
lea r8, str.TraceLog
mov rcx, rax
mov rdx, rsi
xor r9d, r9d
call fcn.140040110
mov qword [0x1401384f0], rsi
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
jmp 0x1400bf78d
Function at 0x1400c0edd
Capabilities:
Clear file content

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov rdi, rcx
mov rax, qword [0x140131038]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor esi, esi
xor edx, edx
xor r8d, r8d
call fcn.1400bfd4b
test rax, rax
jne 0x1400c0f1c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov sil, 1
test eax, eax
je 0x1400c0f38
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140079ea0
mov eax, esi
add rsp, 0x178
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140062530
test al, al
je 0x1400c0f8e
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.1400e24c0
lea rcx, [rsp + 0x40]
lea rdx, [0x140118b64]
mov r8d, 0xc
call fcn.14006c36d
mov rcx, rsi
call fcn.1400c3280
xor esi, esi
jmp 0x1400c0f1c

Function at 0x1400c1246
Capabilities:
Check os version

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x170
mov rsi, rcx
mov rax, qword [0x140131038]
xor rax, rsp
mov qword [rsp + 0x168], rax
call qword [sym.imp.KERNEL32.dll_GetVersion]
mov ecx, eax
and ecx, 0xfe
cmp ecx, 6
jb 0x1400c1322
and eax, 0xfeff
cmp eax, 6
je 0x1400c1322
mov eax, dword [0x14013a300]
mov ecx, dword [0x140134a78]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x1400c12e9
lea rcx, [0x14013a300]
call fcn.140076f64
cmp dword [0x14013a300], 0xffffffff
jne 0x1400c12e9
lea rcx, str.kernel32.dll
lea rdx, str.::InitializeCriticalSectionEx
mov r8b, 1
call fcn.1400c138a
mov qword [0x14013a2f8], rax
lea rcx, [0x14013a300]
call fcn.140076f04
mov rcx, rsi
xor edx, edx
mov r8d, 0x10000000
call qword [0x14013a2f8]
mov esi, eax
test eax, eax
je 0x1400c132f
test esi, esi
setne bl
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.140079ea0
mov eax, ebx
add rsp, 0x170
pop rbx
pop rdi
pop rsi
ret
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov bl, 1
jmp 0x1400c1305
mov ecx, 2
call fcn.140062530
test al, al
je 0x1400c1300
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_win_critical_section_with_debug_info.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x21
mov r9d, 2
call fcn.1400e24c0
lea rcx, [rsp + 0x38]
lea rdx, str.InitializeCriticalSectionEx
mov r8d, 0x1b
call fcn.14006c36d
mov rcx, rdi
call fcn.1400c3280
jmp 0x1400c1300
Function at 0x1400c3f50
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov esi, ecx
mov rax, qword [0x140131038]
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 0x1400c3fdb
mov rax, 0xffffffffffffffff
xor edx, edx
div rbx
mov rcx, 0xfffffffffffffffe
sub rcx, rdx
mov rax, qword [rsp + 0x28]
cmp rax, rcx
ja 0x1400c3f85
xor edx, edx
div rbx
add esi, edx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140079ea0
mov eax, esi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
int3