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

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x30
mov rdi, r8
mov r14, rdx
mov ebx, ecx
mov rax, qword [0x14016e028]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x140139000]
lea r8, [rsp + 0x20]
mov qword [r8], rax
lea rcx, [0x14017a578]
lea rdx, [0x140138ff0]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1400aea9d
cmp dword [0x14017a580], 0
jne 0x1400aeaaa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x14017a584]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
jne 0x1400aea53
mov ecx, 0x18
call fcn.140067600
test rax, rax
je 0x1400aeaaa
mov rsi, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov ecx, dword [0x14017a584]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400aeaa2
lea rbp, [0x14017a588]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x14017a590]
mov qword [rax + rbx*8], rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [rsi + rbx*8], r14
mov esi, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14007d5a0
mov eax, esi
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call fcn.14007bcd0
mov rcx, rsi
call fcn.1400457c0
mov rcx, r14
call rdi
xor esi, esi
jmp 0x1400aea83
Function at 0x1400afd90
Capabilities:
Check if file exists
Delete directory
Delete file
Set file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x568
mov r13d, r8d
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x14016e028]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea rsi, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, rsi
mov dl, 0xaa
call fcn.14007f940
mov qword [rsp + 0x20], r14
xor ebp, ebp
mov rcx, rsi
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.1400b0010
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x30]
mov qword [rbx + 0x10], rax
movaps xmm0, xmmword [0x140147b90]
movaps xmmword [rbx], xmm0
mov rcx, rsi
mov rdx, rbx
call fcn.140007780
movzx eax, byte [rbx + 0x17]
test al, al
jns 0x1400afe26
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x1400afef9
lea rdi, [rsp + 0x48]
lea r15, [rsp + 0x298]
mov r12, qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
mov r8d, 0x250
mov rcx, rdi
mov dl, 0xaa
call fcn.14007f940
mov rcx, r15
mov rdx, rdi
call fcn.1400b01e0
mov edx, dword [rsp + 0x48]
test dl, 1
jne 0x1400aff91
mov rcx, rdi
call fcn.1400b0020
test al, al
jne 0x1400aff36
test r13b, 2
jne 0x1400affbe
cmp byte [rsp + 0x47], 0
mov rcx, rbx
jns 0x1400afe96
mov rcx, qword [rsp + 0x30]
call r12
xor ebp, ebp
test eax, eax
jne 0x1400afeb5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove ebp, eax
test esi, esi
cmovne ebp, esi
mov rcx, rdi
call fcn.1400accd0
mov rcx, r15
mov rdx, rdi
call fcn.140007780
mov rcx, rbx
mov rdx, rdi
call fcn.14006d4c0
mov rcx, rdi
call fcn.14004f070
movzx eax, byte [rsp + 0x47]
test al, al
jns 0x1400afeee
mov rax, qword [rsp + 0x38]
mov esi, ebp
test rax, rax
jne 0x1400afe45
lea rcx, [rsp + 0x30]
call fcn.14004f070
lea rcx, [rsp + 0x298]
call fcn.14004ef00
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.14007d5a0
mov eax, ebp
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor ebp, ebp
test r13b, 1
je 0x1400afeb5
lea rcx, [rsp + 0x30]
mov rdx, r14
mov r8d, r13d
call fcn.1400afd90
test eax, eax
jne 0x1400afffc
cmp byte [rsp + 0x47], 0
lea rcx, [rsp + 0x30]
jns 0x1400aff6b
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1400afeb5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor ebp, ebp
cmp ecx, 2
cmovne ebp, eax
jmp 0x1400afeb5
test r13b, 1
jne 0x1400affdb
lea rcx, [rsp + 0x48]
call fcn.1400b0020
test al, al
je 0x1400affd7
lea rcx, [rsp + 0x48]
call fcn.1400b0020
test al, al
je 0x1400afe7d
xor ebp, ebp
jmp 0x1400afeb5
lea rcx, [rsp + 0x30]
call fcn.1400f73c0
xor ebp, ebp
test al, al
jne 0x1400afeb5
jmp 0x1400afe9f
mov edx, dword [rsp + 0x48]
and edx, 0xfffffffe
cmp byte [rsp + 0x47], 0
jns 0x1400affec
mov rcx, qword [rsp + 0x30]
jmp 0x1400afff1
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x1400afe6d
mov ebp, eax
jmp 0x1400afeb5
Function at 0x1400b05c0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x14017a5e0]
cmp rdi, 1
jbe 0x1400b05e9
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14004fe00
lea rcx, [0x14017a5e0]
call fcn.14004bff0
test al, al
je 0x1400b062f
mov qword [0x14017a5e8], 0
lea rbx, [0x14017a5e0]
lea rdi, [0x14017a5e8]
mov rcx, rdi
xor edx, edx
call fcn.140050d20
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.14004be50
jmp 0x1400b05d7
mov rdi, qword [0x14017a5e0]
jmp 0x1400b05d7
Function at 0x1400b0820
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
movaps xmmword [rsp + 0x30], xmm6
mov rsi, rcx
mov rax, qword [0x14016e028]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x14014a2d0]
mov qword [rcx], rax
add rcx, 8
call fcn.140040ac0
lea rcx, [rsi + 0x10]
call fcn.140040ac0
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.140040ac0
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 qword [rsi + 0x1a0], 1
lea rcx, [rsi + 0x1a8]
call fcn.1400b0a50
lea rcx, [rsi + 0x2f0]
movups xmmword [rsi + 0x2d8], xmm6
mov qword [rsi + 0x2e8], rdi
xor edx, edx
call fcn.140050d20
lea rcx, [rsi + 0x2f8]
xor edx, edx
call fcn.140050d20
lea rcx, [rsi + 0x300]
xor edx, edx
call fcn.140050d20
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.140008030
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.1400b0b20
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x20], rax
test rcx, rcx
jne 0x1400b0a44
call fcn.14006dd80
lea r9, [rsp + 0x20]
mov qword [r9], 0
lea r8, str.TraceLog
mov rcx, rax
mov rdx, rsi
call fcn.14006de20
mov qword [0x140175fb8], rsi
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14007d5a0
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
jmp 0x1400b09fd
Function at 0x1400b1860
Capabilities:
Encrypt data using openssl rsa

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rdx
mov rax, qword [0x14016e028]
xor rax, rsp
mov qword [rsp + 0x30], rax
movaps xmm0, xmmword [0x140147b90]
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
mov r8d, 6
call fcn.140051970
xor edi, edi
test eax, eax
je 0x1400b18dd
lea rcx, [rsp + 0x20]
call fcn.140051580
cmp rax, 9
jne 0x1400b18f3
lea rcx, [rsp + 0x20]
call fcn.1400515e0
mov rcx, qword [rax]
xor rcx, qword [0x14015db54]
mov al, byte [rax + 8]
xor al, byte [0x14015db5c]
movzx eax, al
or rax, rcx
jne 0x1400b18f3
lea rax, [0x14015db50]
mov eax, dword [rax]
mov dword [rsi], eax
mov edi, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14007d5a0
mov eax, edi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x20]
call fcn.140051580
cmp rax, 7
jne 0x1400b192b
lea rcx, [rsp + 0x20]
call fcn.1400515e0
mov ecx, dword [rax]
xor ecx, dword [0x14015dc1c]
mov eax, dword [rax + 3]
xor eax, dword [0x14015dc1f]
or eax, ecx
jne 0x1400b192b
lea rax, [0x14015dc18]
jmp 0x1400b18d4
lea rcx, [rsp + 0x20]
call fcn.140051580
cmp rax, 7
jne 0x1400b1966
lea rcx, [rsp + 0x20]
call fcn.1400515e0
mov ecx, dword [rax]
xor ecx, dword [0x14015dce4]
mov eax, dword [rax + 3]
xor eax, dword [0x14015dce7]
or eax, ecx
jne 0x1400b1966
lea rax, [0x14015dce0]
jmp 0x1400b18d4
lea rcx, [rsp + 0x20]
call fcn.140051580
cmp rax, 3
jne 0x1400b19a7
lea rcx, [rsp + 0x20]
call fcn.1400515e0
movzx ecx, word [rax]
xor cx, word [0x14015ddac]
mov al, byte [rax + 2]
xor al, byte [0x14015ddae]
movzx eax, al
or ax, cx
jne 0x1400b19a7
lea rax, [0x14015dda8]
jmp 0x1400b18d4
lea rcx, [rsp + 0x20]
call fcn.140051580
cmp rax, 3
jne 0x1400b18dd
lea rcx, [rsp + 0x20]
call fcn.1400515e0
movzx ecx, word [rax]
xor cx, word [0x14015de7c]
mov al, byte [rax + 2]
xor al, byte [0x14015de7e]
movzx eax, al
or ax, cx
jne 0x1400b18dd
lea rax, [0x14015de78]
jmp 0x1400b18d4

Function at 0x1400b1a50
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x1400b1a8c
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 0x1400b1a96
add rdi, rbx
sub rsi, rbx
jne 0x1400b1a6a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.14007bcd0
int3
Function at 0x1400b1f80
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x14016e028]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x140147b90]
lea rsi, [rsp + 0x40]
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, [0x14014e492]
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x441
call fcn.140038cd0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140043760
cmp byte [rdi + 0x17], 0
jns 0x1400b1ff6
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rsi
call fcn.14003cd60
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14007d5a0
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400b2030
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2c8
mov r14, rcx
mov rax, qword [0x14016e028]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
movaps xmm0, xmmword [0x140147b90]
lea rdi, [rsp + 0x60]
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, [0x14014e47d]
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0xb0]
mov rcx, rbx
mov r9d, 0x431
call fcn.140038cd0
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140043760
lea rbx, [rsp + 0xb0]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.14007f940
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 0x1400b2128
lea rsi, [rsp + 0x20]
mov qword [rsi], rbx
mov rcx, rbx
call fcn.14007adcc
mov qword [rsi + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.14006d500
lea rsi, [rsp + 0x48]
mov rcx, rbx
mov rdx, rsi
call fcn.14005df90
mov rcx, r14
mov rdx, rsi
call fcn.14006d4c0
mov rcx, rsi
call fcn.14004f070
mov rcx, rbx
call fcn.14004f070
cmp edi, 0x104
setb bl
lea rcx, [rsp + 0x60]
call fcn.14003cd60
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.14007d5a0
mov eax, ebx
add rsp, 0x2c8
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400b5640
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov r14, r9
mov r13d, r8d
mov r15d, ecx
mov rax, qword [0x14016e028]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x140139000]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x14017a578]
lea rdx, [0x140138ff0]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1400b57e1
cmp dword [0x14017a580], 0
jne 0x1400b57a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x14017a584]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x1400b57a1
mov rbx, qword [rsi]
test rbx, rbx
je 0x1400b57a1
cmp r15d, 2
jne 0x1400b56eb
test r13d, r13d
jne 0x1400b56eb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13d, eax
mov ecx, dword [rbx + 0x200]
lea eax, [rcx + 1]
and eax, 0xf
mov dword [rbx + 0x200], eax
cmp eax, dword [rbx + 0x204]
jne 0x1400b5711
add ecx, 2
and ecx, 0xf
mov dword [rbx + 0x204], ecx
mov r12d, dword [rsp + 0xa0]
mov ebp, eax
shl rbp, 5
lea rdi, [rbx + rbp]
add rdi, 8
mov rsi, qword [rdi]
test rsi, rsi
jne 0x1400b5779
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
mov qword [rbx + rbp], r14
mov word [rbx + rbp + 0x14], r12w
shl r15d, 0x18
and r13d, 0xfff
or r13d, r15d
mov dword [rbx + rbp + 0x10], r13d
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14007d5a0
nop
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r8, qword [rsi - 8]
add rsi, 0xfffffffffffffff8
add r8, 8
mov rcx, rsi
xor edx, edx
call fcn.14007f940
mov rcx, qword [0x1401715e8]
mov rdx, rsi
xor r8d, r8d
call qword [rcx + 0x28]
jmp 0x1400b572f
mov ecx, 0x210
call fcn.140067600
test rax, rax
je 0x1400b575a
mov rbx, rax
mov r8d, 0x210
mov rcx, rax
xor edx, edx
call fcn.14007f940
lea r8, [0x140138ac0]
xor ecx, ecx
mov rdx, rbx
call fcn.1400ae9a0
test eax, eax
jne 0x1400b56d7
jmp 0x1400b575a
call fcn.14007bcd0
int3
Function at 0x1400b68f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb8
movaps xmmword [rsp + 0xa0], xmm6
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x14016e028]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm6, xmmword [0x140147b90]
lea rsi, [rsp + 0x40]
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, 0x30a
call fcn.140038cd0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140043760
cmp byte [rdi + 0x17], 0
mov rbx, rdi
jns 0x1400b6976
mov rbx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400b69c0
mov sil, 1
test al, 0x10
je 0x1400b6a6d
lea rcx, [rsp + 0x40]
call fcn.14003cd60
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14007d5a0
mov eax, esi
movaps xmm6, xmmword [rsp + 0xa0]
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r14
ret
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x20]
mov qword [rsi + 0x10], rax
movaps xmmword [rsi], xmm6
mov rcx, rdi
mov rdx, rsi
call fcn.140009b40
movzx ecx, byte [rsi + 0x17]
mov r8, rcx
test cl, cl
jns 0x1400b69f1
mov r8, qword [rsp + 0x28]
movzx eax, byte [rdi + 0x17]
mov rdx, rax
test al, al
jns 0x1400b6a00
mov rdx, qword [rdi + 8]
cmp r8, rdx
je 0x1400b6a8b
lea rcx, [rsp + 0x20]
mov rdx, r14
call fcn.1400b68f0
test al, al
je 0x1400b6ad2
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov sil, 1
test eax, eax
je 0x1400b6a3f
lea rcx, [rsp + 0x20]
call fcn.14004f070
jmp 0x1400b698f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xb7
jne 0x1400b6a5a
mov rcx, rdi
call fcn.1400b6ae0
test al, al
jne 0x1400b6a30
test r14, r14
je 0x1400b6a69
mov ecx, ebx
call fcn.1400aab30
mov dword [r14], eax
mov ecx, ebx
jmp 0x1400b6acc
test r14, r14
je 0x1400b6a79
mov dword [r14], 0xfffffff7
mov ecx, 0x50
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x1400b698f
test r8, r8
je 0x1400b6abb
test cl, cl
jns 0x1400b6a99
mov rsi, qword [rsp + 0x20]
mov rcx, rdi
test al, al
jns 0x1400b6aa3
mov rcx, qword [rdi]
xor edx, edx
movzx eax, word [rsi + rdx*2]
cmp ax, word [rcx + rdx*2]
jne 0x1400b6a09
inc rdx
cmp r8, rdx
jne 0x1400b6aa5
test r14, r14
je 0x1400b6ac7
mov dword [r14], 0xfffffffc
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x1400b6a30
Function at 0x1400b6ae0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x14016e028]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x140147b90]
lea rsi, [rsp + 0x40]
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, 0x27d
call fcn.140038cd0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140043760
cmp byte [rdi + 0x17], 0
jns 0x1400b6b56
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.14003cd60
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14007d5a0
mov eax, edi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400b9f3a
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 0x1400b9f64
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
xor eax, eax
test dl, 1
jne 0x1400b9f87
xor ebx, ebx
movzx edx, dx
shr edx, 1
inc ebx
mov r14d, edx
test dl, 1
je 0x1400b9f76
jmp 0x1400b9f8d
movzx r14d, dx
xor ebx, ebx
test r14d, r14d
je 0x1400b9f9c
bsr eax, r14d
xor eax, 0xffffffe0
add eax, 0x21
mov ecx, eax
imul ecx, edi
cmp ecx, 0xde3
jg 0x1400ba067
mov ecx, 1
mov ebp, ecx
lea ecx, [rbp + rbp]
cmp ebp, edi
jle 0x1400b9fb2
xor r8d, r8d
sar ebp, 2
movzx r9d, dx
jne 0x1400ba01a
xor ebp, ebp
mov rdx, r9
mov dword [rsi], 0
test rdx, rdx
je 0x1400b9ff5
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 0x1400b9fda
mov word [rsi], ax
test r8b, 1
jne 0x1400ba08d
test ebp, ebp
jne 0x1400ba06c
imul ebx, edi
mov rcx, rsi
mov edx, ebx
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
jmp fcn.1400b995a
xor r8d, r8d
mov r10d, 1
mov rdx, r9
imul rdx, rdx
test ebp, edi
je 0x1400ba050
mov ecx, eax
neg cl
mov r11, rdx
shr r11, cl
test r11, r11
mov ecx, 1
cmove rcx, r9
movzx r8d, r8b
cmovne r8d, r10d
imul rdx, rcx
sar ebp, 1
je 0x1400b9fcd
mov rcx, rdx
shr rcx, 0x20
jne 0x1400b9fcd
jmp 0x1400ba026
call fcn.1401036fc
mov rcx, rsi
call fcn.14012f096
test ebp, edi
je 0x1400ba083
mov rcx, rsi
mov edx, r14d
call fcn.1400b9cd2
sar ebp, 1
je 0x1400ba003
jmp 0x1400ba06c
mov rcx, rsi
mov edx, r14d
call fcn.1400b9cd2
jmp 0x1400b9fff
Function at 0x1400bacf0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r15, rdx
mov rsi, rcx
mov rax, qword [0x14016e028]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rax, [0x140149098]
mov qword [rcx], rax
lea rax, [0x14014a2c0]
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rdx
xorps xmm0, xmm0
movups xmmword [rcx + 0x18], xmm0
mov rax, qword [rdx + 0x360]
mov dword [rcx + 0x28], eax
mov eax, dword [0x140179c88]
mov ecx, dword [0x1401719a0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400bae74
mov ecx, dword [0x140171588]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400baeb7
movsxd rcx, dword [0x140179c80]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x140179c84]
jne 0x1400baeb7
mov rax, qword [rax + rcx]
lea r14, [rsi + 8]
lea rcx, [rsp + 0x38]
mov qword [rcx], rax
mov rdx, rsi
call fcn.1400baee0
call fcn.14006dd80
mov rbx, rax
call fcn.140008940
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x1400badc6
lock inc dword [rax + 8]
lea r8, str.ThreadLocalEventBuffer
lea r9, [rsp + 0x28]
mov rcx, rbx
mov rdx, r14
call fcn.14006de20
mov dword [rsp + 0x24], 0xaaaaaaaa
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x24], eax
lea r14, [r15 + 8]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400bae6a
call fcn.140008940
mov rdi, qword [rax]
test rdi, rdi
je 0x1400bae11
lock inc dword [rdi + 8]
add r15, 0x308
lea r8, [rsp + 0x24]
lea r9, [rsp + 0x30]
mov qword [r9], r8
lea rbx, [rsp + 0x38]
mov rcx, r15
mov rdx, rbx
call fcn.1400baef0
mov rax, qword [rbx]
mov rcx, qword [rax + 0x18]
mov qword [rax + 0x18], rdi
test rcx, rcx
jne 0x1400baebe
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14007d5a0
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, r14
call fcn.140039d60
jmp 0x1400bae00
lea rcx, [0x140179c88]
call fcn.14007b4e8
cmp dword [0x140179c88], 0xffffffff
jne 0x1400bad5f
mov qword [0x140179c80], 0
lea rcx, [0x140179c80]
xor edx, edx
call fcn.140050d20
lea rcx, [0x140179c88]
call fcn.14007ac34
jmp 0x1400bad5f
xor eax, eax
jmp 0x1400bad94
lock dec dword [rcx + 8]
jne 0x1400bae45
add rcx, 8
add rcx, 0xfffffffffffffff8
call fcn.14004fb70
jmp 0x1400bae45