joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140065b60
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x140131038]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [0x140137730]
mov ecx, dword [0x140134a78]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140065bbc
movzx eax, word [0x140137700]
cmp ax, 9
jne 0x140065c1e
mov esi, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140079ea0
mov eax, esi
add rsp, 0x60
pop rsi
ret
lea rcx, [0x140137730]
call fcn.140076f64
cmp dword [0x140137730], 0xffffffff
jne 0x140065b95
xorps xmm0, xmm0
lea rsi, [rsp + 0x20]
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movaps xmm0, xmmword [rsi]
movaps xmm1, xmmword [rsi + 0x10]
movaps xmm2, xmmword [rsi + 0x20]
movups xmmword [0x140137720], xmm2
movups xmmword [0x140137710], xmm1
movups xmmword [0x140137700], xmm0
lea rcx, [0x140137730]
call fcn.140076f04
jmp 0x140065b95
cmp ax, 5
jg 0x140065c3f
xor esi, esi
test ax, ax
je 0x140065ba7
cmp ax, 5
jne 0x140065c5f
mov esi, 3
jmp 0x140065ba7
cmp ax, 6
jne 0x140065c4f
mov esi, 2
jmp 0x140065ba7
cmp ax, 0xc
jne 0x140065c5f
mov esi, 4
jmp 0x140065ba7
mov esi, 5
jmp 0x140065ba7
Function at 0x140071680
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rsi
push rdi
mov r9, qword [rcx]
mov r10, qword [rcx + 8]
mov r8, r10
sub r8, r9
je 0x14007170f
mov rax, r8
shr rax, 2
mov rdx, r9
not rdx
add rdx, r10
jne 0x1400716a7
xor edx, edx
jmp 0x1400716ec
mov r10, r8
and r10, 0xfffffffffffffffe
xor edx, edx
lea r11, [0x14011f1a0]
nop word [rax + rax]
movzx esi, al
movzx edi, byte [r9 + rdx]
xor edi, esi
shr eax, 8
xor eax, dword [r11 + rdi*4]
movzx esi, al
movzx edi, byte [r9 + rdx + 1]
xor edi, esi
shr eax, 8
xor eax, dword [r11 + rdi*4]
add rdx, 2
cmp r10, rdx
jne 0x1400716c0
test r8b, 1
je 0x140071709
movzx edi, al
movzx edx, byte [r9 + rdx]
xor edx, edi
lea rdi, [0x14011f1a0]
shr eax, 8
xor eax, dword [rdi + rdx*4]
mov dword [rcx + 0x18], eax
pop rdi
pop rsi
ret
xor eax, eax
jmp 0x140071709

Function at 0x140072430
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov r12, rdx
mov rsi, rcx
mov rbx, qword [rdx]
mov qword [rdx], 0
lea rbp, [rbx + 1]
cmp rbp, 2
jb 0x14007245d
call fcn.14003e3b0
mov qword [rsi], 0
test rbx, rbx
je 0x140072499
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14007254f
cmp rbp, 2
jb 0x140072490
mov qword [rsi], rbx
call fcn.14003e3b0
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsi + 8]
cmp byte [r12 + 0x1f], 0
jns 0x140072534
mov r14, qword [r12 + 8]
mov rbp, qword [r12 + 0x10]
cmp rbp, 0xa
jbe 0x140072549
movabs rbx, 0x7fffffffffffffef
cmp rbp, rbx
ja 0x140072585
lea rdi, [rbp + 8]
and rdi, 0xfffffffffffffff8
lea rcx, [rdi + rdi]
call fcn.140076ec8
mov rcx, rax
mov qword [rsi + 8], rax
add rbx, 0x11
or rbx, rdi
mov qword [rsi + 0x18], rbx
mov qword [rsi + 0x10], rbp
lea r8, [rbp + 2]
add r8, rbp
mov rdx, r14
call fcn.14007be20
mov eax, dword [r12 + 0x24]
mov dword [rsi + 0x24], eax
mov al, byte [r12 + 0x28]
mov byte [rsi + 0x28], al
mov al, byte [r12 + 0x29]
mov byte [rsi + 0x29], al
mov rax, rsi
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rax, [r12 + 8]
mov rdx, qword [rax + 0x10]
mov qword [rcx + 0x10], rdx
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
jmp 0x14007250a
mov byte [rcx + 0x17], bpl
jmp 0x1400724f7
call fcn.14003e3b0
mov r14, qword [rsi]
mov rcx, qword [0x14013bd18]
test rcx, rcx
je 0x140072577
mov rax, qword [rcx]
mov rdx, r14
call qword [rax]
mov qword [rsi], 0
jmp 0x140072482
call fcn.1400b6d10
mov rcx, qword [0x14013bd18]
jmp 0x140072563
call fcn.1400ac2dc
int3
Function at 0x140073550
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x14013bc90]
cmp rsi, 1
jbe 0x140073594
mov ecx, dword [0x140134758]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400735e3
movsxd rcx, dword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 4]
jne 0x1400735e3
cmp qword [rax + rcx], 0
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x14013bc90]
call fcn.1400498e0
test al, al
je 0x1400735da
mov qword [0x14013bc98], 0
lea rdi, [0x14013bc90]
lea rsi, [0x14013bc98]
mov rcx, rsi
xor edx, edx
call fcn.14003f000
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.1400498c0
jmp 0x140073563
mov rsi, qword [0x14013bc90]
jmp 0x140073563
xor eax, eax
jmp 0x14007358d

Function at 0x140073d60
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov qword [rcx], rdx
mov rdi, qword [0x14013bc90]
cmp rdi, 1
jbe 0x140073db0
mov ecx, dword [0x140134758]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140073df6
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
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x14013bc90]
call fcn.1400498e0
test al, al
je 0x140073e02
mov qword [0x14013bc98], 0
lea rbx, [0x14013bc90]
lea rdi, [0x14013bc98]
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 0x140073d7a
test rsi, rsi
je 0x140073da5
call fcn.140006d10
jmp 0x140073d8c
mov rdi, qword [0x14013bc90]
jmp 0x140073d7a

Function at 0x1400744d0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov edi, dword [0x14013bdb8]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test esi, esi
jne 0x1400744fd
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400744f3

Function at 0x1400745f0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov byte [rcx], dl
mov rdi, qword [0x14013be88]
cmp rdi, 1
jbe 0x14007463f
mov ecx, dword [0x140134758]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140074685
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
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x14013be88]
call fcn.1400498e0
test al, al
je 0x140074691
mov qword [0x14013be90], 0
lea rbx, [0x14013be88]
lea rdi, [0x14013be90]
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 0x140074609
test rsi, rsi
je 0x140074634
call fcn.140006d10
jmp 0x14007461b
mov rdi, qword [0x14013be88]
jmp 0x140074609
Function at 0x1400746a0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x14013be88]
cmp rsi, 1
jbe 0x1400746e9
mov ecx, dword [0x140134758]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400746e2
movsxd rcx, dword [rsi]
shl rcx, 4
mov qword [rax + rcx], 0
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
lea rcx, [0x14013be88]
call fcn.1400498e0
test al, al
je 0x14007472f
mov qword [0x14013be90], 0
lea rdi, [0x14013be88]
lea rsi, [0x14013be90]
mov rcx, rsi
xor edx, edx
call fcn.14003f000
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.1400498c0
jmp 0x1400746b3
mov rsi, qword [0x14013be88]
jmp 0x1400746b3

Function at 0x140075020
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov eax, dword [0x14013d8f8]
mov ecx, dword [0x140134a78]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140075085
mov ecx, dword [0x140134758]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400750c1
movsxd rcx, dword [0x14013d8f0]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [0x14013d8f4]
movsxd rdx, dword [0x14013d8f0]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14013d8f8]
call fcn.140076f64
cmp dword [0x14013d8f8], 0xffffffff
jne 0x140075049
mov qword [0x14013d8f0], 0
lea rcx, [0x14013d8f0]
xor edx, edx
call fcn.14003f000
lea rcx, [0x14013d8f8]
call fcn.140076f04
jmp 0x140075049
test rsi, rsi
je 0x14007507f
call fcn.140006d10
jmp 0x14007505b
Function at 0x1400750f0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov eax, dword [rdx]
mov dword [rcx], eax
mov eax, 1
lock xadd dword [0x14013d8cc], eax
mov dword [rcx + 4], eax
mov eax, dword [0x14013d8c8]
mov ecx, dword [0x140134a78]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400751d9
mov ecx, dword [0x140134758]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14007525f
movsxd rcx, dword [0x14013d8c0]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [0x14013d8c4]
movsxd rdx, dword [0x14013d8c0]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov eax, dword [0x14013d8d8]
mov ecx, dword [0x140134a78]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14007521c
lea rdi, [rsi + 4]
mov ecx, dword [0x140134758]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140075272
movsxd rcx, dword [0x14013d8d0]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [0x14013d8d4]
movsxd rdx, dword [0x14013d8d0]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rax, rsi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x14013d8c8]
call fcn.140076f64
cmp dword [0x14013d8c8], 0xffffffff
jne 0x140075132
mov qword [0x14013d8c0], 0
lea rcx, [0x14013d8c0]
xor edx, edx
call fcn.14003f000
lea rcx, [0x14013d8c8]
call fcn.140076f04
jmp 0x140075132
lea rcx, [0x14013d8d8]
call fcn.140076f64
cmp dword [0x14013d8d8], 0xffffffff
jne 0x140075191
mov qword [0x14013d8d0], 0
lea rcx, [0x14013d8d0]
xor edx, edx
call fcn.14003f000
lea rcx, [0x14013d8d8]
call fcn.140076f04
jmp 0x140075191
test rsi, rsi
je 0x14007516c
call fcn.140006d10
jmp 0x140075148
test rdi, rdi
je 0x1400751cf
call fcn.140006d10
jmp 0x1400751ab

Function at 0x140075290
Capabilities:
Get thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [0x14013d8e0]
cmp rbx, 1
jbe 0x1400752e4
mov ecx, dword [0x140134758]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14007532a
movsxd rcx, dword [rbx]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rbx + 4]
movsxd rdx, dword [rbx]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x14013d8e0]
call fcn.1400498e0
test al, al
je 0x140075336
mov qword [0x14013d8e8], 0
lea r14, [0x14013d8e0]
lea rbx, [0x14013d8e8]
mov rcx, rbx
xor edx, edx
call fcn.14003f000
mov rcx, r14
mov rdx, rbx
xor r8d, r8d
mov r9, r14
call fcn.1400498c0
jmp 0x1400752ac
test rdi, rdi
je 0x1400752d7
call fcn.140006d10
jmp 0x1400752be
mov rbx, qword [0x14013d8e0]
jmp 0x1400752ac
Function at 0x140075350
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x14013d8e0]
cmp rsi, 1
jbe 0x140075399
mov ecx, dword [0x140134758]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140075392
movsxd rcx, dword [rsi]
shl rcx, 4
mov qword [rax + rcx], 0
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
lea rcx, [0x14013d8e0]
call fcn.1400498e0
test al, al
je 0x1400753df
mov qword [0x14013d8e8], 0
lea rdi, [0x14013d8e0]
lea rsi, [0x14013d8e8]
mov rcx, rsi
xor edx, edx
call fcn.14003f000
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.1400498c0
jmp 0x140075363
mov rsi, qword [0x14013d8e0]
jmp 0x140075363

Function at 0x140075450
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14013d8c8]
mov ecx, dword [0x140134a78]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140075517
mov ecx, dword [0x140134758]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400754b3
movsxd rcx, dword [0x14013d8c0]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [0x14013d8c4]
movsxd rdx, dword [0x14013d8c0]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov eax, dword [0x14013d8d8]
mov ecx, dword [0x140134a78]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14007555a
mov ecx, dword [0x140134758]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140075512
movsxd rcx, dword [0x14013d8d0]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [0x14013d8d4]
movsxd rdx, dword [0x14013d8d0]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
ret
lea rcx, [0x14013d8c8]
call fcn.140076f64
cmp dword [0x14013d8c8], 0xffffffff
jne 0x140075479
mov qword [0x14013d8c0], 0
lea rcx, [0x14013d8c0]
xor edx, edx
call fcn.14003f000
lea rcx, [0x14013d8c8]
call fcn.140076f04
jmp 0x140075479
lea rcx, [0x14013d8d8]
call fcn.140076f64
cmp dword [0x14013d8d8], 0xffffffff
jne 0x1400754d8
mov qword [0x14013d8d0], 0
lea rcx, [0x14013d8d0]
xor edx, edx
call fcn.14003f000
lea rcx, [0x14013d8d8]
call fcn.140076f04
jmp 0x1400754d8
Function at 0x1400a6520
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov esi, dword [0x14013bdb8]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test edi, edi
jne 0x1400a6557
cmp rsi, 2
jb 0x1400a6561
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14003fbc0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400a6543
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x1400a6eb0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x14013bca8]
cmp rdi, 1
jbe 0x1400a6f15
mov ecx, dword [0x140134758]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400a6ef6
movsxd rcx, dword [rdi]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [rdi + 4]
movsxd rdx, dword [rdi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
lea rcx, [rsi + 8]
call fcn.14003ede0
mov rcx, qword [rsi]
test rcx, rcx
je 0x1400a6f0d
lock dec dword [rcx + 8]
je 0x1400a6f6a
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x14013bca8]
call fcn.1400498e0
test al, al
je 0x1400a6f5e
mov qword [0x14013bcb0], 0
lea rbx, [0x14013bca8]
lea rdi, [0x14013bcb0]
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 0x1400a6ec7
mov rdi, qword [0x14013bca8]
jmp 0x1400a6ec7
add rcx, 8
add rcx, 0xfffffffffffffff8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14003eeb0

Function at 0x1400a6f90
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1400a6fa5
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret
Function at 0x1400a8f90
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.PathExists
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x281
call fcn.1400498a0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140048980
cmp byte [rdi + 0x17], 0
jns 0x1400a9014
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
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 0x1400a9cea
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rdi, rcx
mov rax, qword [0x140131038]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp byte [rcx + 0x17], 0
mov rsi, rcx
jns 0x1400a9d10
mov rsi, qword [rdi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400a9d57
test al, 0x10
je 0x1400a9dcc
lea rcx, str._hs___ls_directory_exists___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.1400a9eb8
mov dil, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140079ea0
mov eax, edi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
ret
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
movzx r9d, byte [rdi + 0x17]
mov rax, rdi
test r9b, r9b
jns 0x1400a9d7c
mov r9, qword [rdi + 8]
mov rax, qword [rdi]
add r9, r9
test r9, r9
je 0x1400a9da4
movzx ecx, word [rax + r9 - 2]
add r9, 0xfffffffffffffffe
cmp cx, 0x2f
je 0x1400a9d9a
cmp cx, 0x5c
jne 0x1400a9d7f
cmp r9, 0xfffffffffffffffe
jne 0x1400a9e6b
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
je 0x1400a9de9
cmp byte [rsp + 0x57], 0
jns 0x1400a9d3f
mov rcx, qword [rsp + 0x40]
call fcn.140076eb8
jmp 0x1400a9d3f
lea rcx, str._hs___ls_directory_conflicts_with_an_existing_file.___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.1400a9eb8
xor edi, edi
jmp 0x1400a9d3f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xb7
jne 0x1400a9e52
mov rcx, rsi
call fcn.140077408
lea rbp, [rsp + 0x28]
mov rcx, rbp
mov rdx, rsi
mov r8, rax
call fcn.140070e26
cmp byte [rbp + 0x17], 0
jns 0x1400a9e1e
mov rbp, qword [rsp + 0x28]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, eax
cmp eax, 0xffffffff
setne al
and ebp, 0x10
shr ebp, 4
and bpl, al
cmp byte [rsp + 0x3f], 0
jns 0x1400a9e49
mov rcx, qword [rsp + 0x28]
call fcn.140076eb8
test bpl, bpl
jne 0x1400a9db6
lea rcx, str.Failed_to_create_directory__ls__last_error_is__d_n
mov rdx, rsi
mov r8d, ebx
call fcn.1400a9eb8
xor edi, edi
jmp 0x1400a9db6
sar r9, 1
lea rax, [rdi + 0x18]
mov qword [rsp + 0x20], rax
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
call fcn.1400549fe
movups xmm0, xmmword [rbx]
lea rcx, [rsp + 0x40]
movaps xmmword [rcx], xmm0
mov rax, qword [rbx + 0x10]
mov qword [rcx + 0x10], rax
call fcn.1400a9cea
test al, al
jne 0x1400a9da4
lea rcx, str.Failed_to_create_one_of_the_parent_directories
call fcn.1400a9eb8
jmp 0x1400a9e64
Function at 0x1400a9eb8
Capabilities:
Print debug messages

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rcx
lea rdi, [rsp + 0x68]
mov qword [rdi], rdx
mov qword [rdi + 8], r8
mov qword [rdi + 0x10], r9
mov rax, qword [0x140131038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
call fcn.14003dd58
mov rcx, qword [rax]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
lea rdi, [0x1401377a0]
mov r8d, 0x400
mov rdx, rdi
mov r9, rsi
call fcn.140077248
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140079ea0
nop
add rsp, 0x48
pop rdi
pop rsi
ret

Function at 0x1400ab150
Capabilities:
Move file

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4b0
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140131038]
xor rax, rsp
mov qword [rsp + 0x4a8], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbp, [rsp + 0x450]
mov qword [rbp + 0x50], rax
movaps xmm0, xmmword [0x1401146a0]
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, [0x140117802]
lea r8, str..._.._base_files_file_util_win.cc
lea rsi, [rsp + 0x240]
mov rcx, rsi
mov r9d, 0x242
call fcn.1400498a0
mov rcx, rbp
mov rdx, rsi
xor r8d, r8d
call fcn.140048980
lea rbp, [rsp + 0x240]
mov r8d, 0x208
mov rcx, rbp
mov dl, 0xaa
call fcn.14007c4d0
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x1400ab1ff
mov rdx, qword [rbx]
mov r8d, 0x104
mov rcx, rbp
call fcn.1400484b0
mov rcx, rbp
call fcn.14003e3a0
lea rbp, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbp
mov dl, 0xaa
call fcn.14007c4d0
cmp byte [rdi + 0x17], 0
mov rdx, rdi
jns 0x1400ab236
mov rdx, qword [rdi]
mov r8d, 0x104
mov rcx, rbp
call fcn.1400484b0
mov rcx, rbp
call fcn.14003e3a0
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x1400ab258
mov rdx, qword [rbx]
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x1400ab264
mov rcx, qword [rdi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor r8d, r8d
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_ReplaceFileW]
test eax, eax
jne 0x1400ab2e6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400aba30
mov ebp, eax
cmp byte [rdi + 0x17], 0
jns 0x1400ab297
mov rdi, qword [rdi]
cmp byte [rbx + 0x17], 0
jns 0x1400ab2a0
mov rbx, qword [rbx]
mov rcx, rbx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne dil
jne 0x1400ab2b9
test r14, r14
jne 0x1400ab2eb
lea rcx, [rsp + 0x450]
call fcn.140043a50
mov rcx, qword [rsp + 0x4a8]
xor rcx, rsp
call fcn.140079ea0
mov eax, edi
add rsp, 0x4b0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov dil, 1
jmp 0x1400ab2b9
cmp ebp, 0xfffffffc
jne 0x1400ab2f7
call fcn.1400e4e30
mov ebp, eax
mov dword [r14], ebp
xor edi, edi
jmp 0x1400ab2b9
Function at 0x1400b1010
Capabilities:
Create thread

Disassembly:
jmp 0x1400b1010
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov edi, r9d
mov rbp, r8
mov rsi, rdx
mov r15, rcx
xor ebx, ebx
test rcx, rcx
setne bl
mov rax, qword [0x140131038]
xor rax, rsp
mov qword [rsp + 0x60], rax
shl ebx, 0x10
mov ecx, 0x10
call fcn.140076ec8
mov r14, rax
mov qword [rax], rsi
test rbp, rbp
setne byte [rax + 8]
mov dword [rax + 0xc], edi
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x28], 0
lea r8, [0x1400a57a0]
xor ecx, ecx
mov rdx, r15
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x1400b10b1
test rbp, rbp
je 0x1400b10e1
mov qword [rbp], rdi
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140079ea0
mov eax, ebx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x1400b10ca
mov ebp, eax
cmp eax, 0x5af
je 0x1400b10ca
cmp ebp, 0xe
jne 0x1400b10ec
mov rcx, r15
call fcn.1400e4e90
test r14, r14
je 0x1400b108f
mov rcx, r14
call fcn.140076eb8
jmp 0x1400b108f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400b108f
mov eax, dword [0x1401380b8]
mov ecx, dword [0x140134a78]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400b115b
lea rsi, [rsp + 0x38]
mov rcx, rsi
mov edx, ebp
call fcn.1400bde00
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
cmovs rax, qword [rsi + 8]
lea rdx, [rsp + 0x50]
mov qword [rdx], rcx
mov qword [rdx + 8], rax
mov rcx, qword [0x1401380b0]
call fcn.14003e3a0
cmp byte [rsi + 0x17], 0
jns 0x1400b10d2
mov rcx, qword [rsp + 0x38]
call fcn.140076eb8
jmp 0x1400b10d2
lea rcx, [0x1401380b8]
call fcn.140076f64
cmp dword [0x1401380b8], 0xffffffff
jne 0x1400b110d
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.1400a6570
mov qword [0x1401380b0], rax
lea rcx, [0x1401380b8]
call fcn.140076f04
jmp 0x1400b110d

Function at 0x1400b30c0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x14013d3f0]
cmp rdi, 1
jbe 0x1400b30e9
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14005a6f0
lea rcx, [0x14013d3f0]
call fcn.1400498e0
test al, al
je 0x1400b312f
mov qword [0x14013d3f8], 0
lea rbx, [0x14013d3f0]
lea rdi, [0x14013d3f8]
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 0x1400b30d7
mov rdi, qword [0x14013d3f0]
jmp 0x1400b30d7