joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007f20
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
movaps xmmword [rsp + 0x60], xmm6
mov rsi, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor ebx, ebx
mov ecx, 0x65c2937b
xor eax, eax
lock cmpxchg dword [rsi], ecx
jne 0x1400080c8
mov dword [0x14022fcd8], ebx
lea rbp, [0x14022fcd8]
movabs rax, 0x100000000
mov qword [0x14022fdf8], rax
movaps xmm6, xmmword [0x1401ee3a0]
lea rdi, [rsp + 0x20]
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
mov r14, qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rcx, rdi
call r14
mov eax, dword [rdi + 4]
mov ecx, dword [rdi + 0x28]
cmp eax, ecx
cmova ecx, eax
mov qword [0x14022fe00], rcx
mov r15d, 0x20
mov qword [0x14022fe08], r15
mov r12d, 0x40
mov qword [0x14022fe10], r12
mov dword [0x14022fe18], ebx
mov qword [0x14022fce0], rbx
lea rax, [0x14022fce0]
mov r13, 0xffffffffb37cc16a
xor rax, r13
mov qword [0x14022fce8], rax
mov qword [0x14022fcf0], rbp
mov dword [0x14022fd00], ebx
lea rcx, [0x14022fd08]
mov r8d, 0xf0
xor edx, edx
call fcn.140131830
mov dword [0x14022fe20], ebx
lea rbp, [0x14022fe20]
mov qword [0x14022ff40], rbx
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
lea rdi, [rsp + 0x20]
mov rcx, rdi
call r14
mov eax, dword [rdi + 4]
mov ecx, dword [rdi + 0x28]
cmp eax, ecx
cmova ecx, eax
mov qword [0x14022ff48], rcx
mov qword [0x14022ff50], r15
mov qword [0x14022ff58], r12
mov dword [0x14022ff60], ebx
mov qword [0x14022fe28], rbx
lea rax, [0x14022fe28]
xor rax, r13
mov qword [0x14022fe30], rax
mov qword [0x14022fe38], rbp
mov dword [0x14022fe48], ebx
lea rcx, [0x14022fe50]
mov r8d, 0xf0
xor edx, edx
call fcn.140131830
mov eax, 0xdd
xchg dword [rsi], eax
cmp eax, 0x5a308d2
je 0x1400080e8
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14012f6f0
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r9d, edx
lea r8, [0x1401f4ef0]
mov rcx, rsi
mov edx, 3
call fcn.140051d70
test eax, eax
jne 0x1400080a5
jmp 0x140007f5a
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14012f6f0
mov rcx, rsi
mov dl, 1
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.1401693b0
Function at 0x140009560
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x98
mov edi, r8d
mov rbx, rdx
mov r14, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x90], rax
movaps xmm0, xmmword [0x1401ee3a0]
lea r15, [rsp + 0x50]
movaps xmmword [r15 + 0x30], xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
lea rdx, str.WriteAtCurrentPos
lea r8, str....._base_files_file_win.cc
lea r12, [rsp + 0x30]
mov rcx, r12
mov r9d, 0x97
call fcn.1400bab70
xor esi, esi
mov rcx, r15
mov rdx, r12
xor r8d, r8d
call fcn.1400d8580
test edi, edi
js 0x14000963b
lea r15, [rsp + 0x30]
mov dword [r15], 0xaaaaaaaa
mov rcx, qword [r14]
mov qword [rsp + 0x20], 0
mov rdx, rbx
mov r8d, edi
mov r9, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sbb esi, esi
or esi, dword [r15]
lea rcx, [rsp + 0x50]
call fcn.1400ae4f0
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14012f6f0
mov eax, esi
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x14000960e
Function at 0x14000b9d0
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
cmp qword [rcx], rdx
je 0x14000ba1c
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x14000ba27
lea rax, [rsi + 1]
cmp rax, 2
jb 0x14000ba0a
mov qword [rdi], rsi
call fcn.1400b9400
mov ecx, ebx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400b9400
mov r14, qword [rdi]
cmp qword [0x140231c98], 0
je 0x14000ba58
mov rcx, qword [0x140231c98]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [0x140243008]
mov qword [rdi], 0
jmp 0x14000b9f8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x140200159]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000ba99
lea rcx, [sym.chrome.exe_GetHandleVerifier]
cmp rax, rcx
je 0x14000ba93
call qword [0x140243008]
mov rcx, rax
xor edx, edx
call fcn.14002cab0
jmp 0x14000ba39
xor ecx, ecx
mov dl, 1
jmp 0x14000ba8c
xor ecx, ecx
jmp 0x14000ba8a
Function at 0x14000e370
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x140231968]
mov ecx, dword [0x140228d28]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000e3d0
lea rsi, [0x140231960]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14012f6f0
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x140231968]
call fcn.14012ce30
cmp dword [0x140231968], 0xffffffff
jne 0x14000e3ac
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140131830
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.14012cd5c
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1402319b0]
mov ecx, dword [0x140228d28]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000e490
lea r8, [0x140231980]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.14002b8b0
mov qword [0x140231960], rsi
lea rcx, [0x140231968]
call fcn.14012ce98
jmp 0x14000e3ac
lea rcx, [0x1402319b0]
call fcn.14012ce30
cmp dword [0x1402319b0], 0xffffffff
jne 0x14000e461
xorps xmm0, xmm0
movups xmmword [0x1402319a0], xmm0
movups xmmword [0x140231990], xmm0
movups xmmword [0x140231980], xmm0
lea rcx, [0x140231980]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1402319b0]
call fcn.14012ce98
jmp 0x14000e461

Function at 0x1400105a0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1028
call fcn.14012f690
sub rsp, rax
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov esi, dword [0x140228698]
cmp esi, 0xffffffff
je 0x140010653
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140010685
lea rdi, [rsp + 0x20]
mov r8d, 0x1000
mov rcx, rdi
xor edx, edx
call fcn.140131830
lea rdx, [rsp + 0x23]
mov r14, qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, esi
call r14
mov ecx, 0x1000
call fcn.14012cd54
mov rbx, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rdi
call fcn.140131180
mov rdx, rbx
or rdx, 3
mov ecx, esi
call r14
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14012f6f0
mov rax, rbx
add rsp, 0x1028
pop rbx
pop rdi
pop rsi
pop r14
ret
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140010688
mov esi, eax
mov eax, 0xffffffff
lock cmpxchg dword [0x140228698], esi
je 0x1400105d3
mov ecx, esi
call sub.KERNEL32.dll_TlsFree
mov esi, dword [0x140228698]
jmp 0x1400105d3
int3
int3
Function at 0x140011e40
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov byte [rcx + 8], 0
xorps xmm0, xmm0
movups xmmword [rcx + 0x10], xmm0
lea rax, [0x1401f0420]
mov qword [rcx], rax
mov rcx, 0xffffffffffffffff
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp qword [rsi + 0x18], rax
je 0x140011eb0
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 0x18]
inc rax
cmp rax, 2
jae 0x140011ebb
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140011ea8
mov qword [rsi + 0x18], rdi
call fcn.1400b9400
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400b9400
mov rcx, qword [rsi + 0x18]
call fcn.1401142f0
mov qword [rsi + 0x18], 0
jmp 0x140011e95
Function at 0x140015510
Capabilities:
Create thread

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov edi, r9d
mov r14, r8
mov r15, rdx
mov rbx, rcx
xor ebp, ebp
test rcx, rcx
setne bpl
mov r13d, dword [rsp + 0xd0]
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x60], rax
movabs r12, 0xfffffffc00000000
shl ebp, 0x10
mov ecx, 0x18
call fcn.14012cd5c
mov rsi, rax
mov rax, r15
and rax, r12
cmp rax, qword [0x140219dc8]
jne 0x14001557d
mov rcx, r15
call fcn.1400ad040
mov qword [rsi], r15
test r14, r14
setne byte [rsi + 8]
mov dword [rsi + 0xc], edi
mov dword [rsi + 0x10], r13d
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x28], 0
lea r8, [0x140003200]
xor ecx, ecx
mov rdx, rbx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x1400155f1
test r14, r14
je 0x1400155e6
mov qword [r14], rdi
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14012f6f0
mov eax, ebx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400155c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x14001560a
mov ebp, eax
cmp eax, 0x5af
je 0x14001560a
cmp ebp, 0xe
jne 0x140015635
mov rcx, rbx
call fcn.14016bd00
test rsi, rsi
je 0x1400155c0
mov rcx, qword [rsi]
and r12, rcx
cmp r12, qword [0x140219dc8]
jne 0x14001562b
call fcn.1400ad190
mov rcx, rsi
call fcn.14012cd4c
jmp 0x1400155c0
mov eax, dword [0x140231a38]
mov ecx, dword [0x140228d28]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400156b8
lea rbx, [rsp + 0x38]
mov rcx, rbx
mov edx, ebp
call fcn.1400882f0
movzx r8d, byte [rbx + 0x17]
test r8b, r8b
js 0x140015675
and r8d, 0x7f
jmp 0x14001567f
mov r8, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
lea r14, [rsp + 0x50]
mov rcx, r14
mov rdx, rbx
call fcn.14012afc0
mov rcx, qword [0x140231a30]
mov rdx, r14
call fcn.140008120
cmp byte [rsp + 0x4f], 0
jns 0x140015612
mov rcx, qword [rsp + 0x38]
call fcn.14012cd4c
jmp 0x140015612
lea rcx, [0x140231a38]
call fcn.14012ce30
cmp dword [0x140231a38], 0xffffffff
jne 0x140015656
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.140007070
mov qword [0x140231a30], rax
lea rcx, [0x140231a38]
call fcn.14012ce98
jmp 0x140015656
Function at 0x140017000
Capabilities:
Get file size

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rbx, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x80], rax
movaps xmm0, xmmword [0x1401ee3a0]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.GetLength
lea r8, str....._base_files_file_win.cc
lea r14, [rsp + 0x20]
mov rcx, r14
mov r9d, 0xac
call fcn.1400bab70
xor edi, edi
mov rcx, rsi
mov rdx, r14
xor r8d, r8d
call fcn.1400d8580
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [r14], rax
mov rcx, qword [rbx]
lea rbx, [rsp + 0x20]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
sbb rdi, rdi
or rdi, qword [rbx]
mov rcx, rsi
call fcn.1400ae4f0
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14012f6f0
mov rax, rdi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14001af60
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x338
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x330], rax
lea r14, [rsp + 0x68]
mov r8d, 0x2c8
mov rcx, r14
mov dl, 0xaa
call fcn.140131830
xor ebx, ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rsi
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.14001b2d0
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x50]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [0x1401ee3a0]
movaps xmmword [rsi], xmm0
mov rcx, r14
mov rdx, rsi
call fcn.14001b690
movzx eax, byte [rsi + 0x17]
test al, al
js 0x14001affa
mov ecx, eax
and ecx, 0x7f
jmp 0x14001afff
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14001b0c8
xor ebp, ebp
mov r15, qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r12, qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdi, [rsp + 0x68]
lea r14, [rsp + 0x38]
xor r13d, r13d
cmp byte [rsp + 0x68], 0
je 0x14001b10d
mov edx, dword [rsp + 0x6c]
test dl, 1
jne 0x14001b117
test dl, 0x10
jne 0x14001b106
cmp byte [rsp + 0x67], 0
mov rcx, rsi
jns 0x14001b055
mov rcx, qword [rsp + 0x50]
call r15
test eax, eax
jne 0x14001b106
call r12
mov ebx, eax
and eax, 0xfffffffe
cmp eax, 2
cmove ebx, ebp
test r13d, r13d
cmovne ebx, r13d
mov rcx, rdi
mov rdx, r14
call fcn.14001b690
cmp byte [rsp + 0x67], 0
js 0x14001b0ab
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x60], rax
movups xmm0, xmmword [rsp + 0x38]
movaps xmmword [rsp + 0x50], xmm0
movzx eax, byte [rsp + 0x67]
test al, al
js 0x14001b0b7
mov ecx, eax
and ecx, 0x7f
jmp 0x14001b0bc
mov rcx, qword [rsp + 0x50]
call fcn.14012cd4c
jmp 0x14001b087
mov rcx, qword [rsp + 0x58]
mov r13d, ebx
test rcx, rcx
jne 0x14001b025
test al, al
jns 0x14001b0d6
mov rcx, qword [rsp + 0x50]
call fcn.14012cd4c
lea rcx, [rsp + 0x68]
call fcn.14001b140
mov rcx, qword [rsp + 0x330]
xor rcx, rsp
call fcn.14012f6f0
mov eax, ebx
add rsp, 0x338
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x14001b06e
call fcn.140168c50
jmp 0x14001b046
xor ebx, ebx
test dl, 0x10
jne 0x14001b06e
test al, al
js 0x14001b12d
lea rcx, [rsp + 0x50]
jmp 0x14001b132
mov rcx, qword [rsp + 0x50]
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x14001b046
Function at 0x14001fba0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov eax, dword [0x140233af8]
mov ecx, dword [0x140228d28]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14001fcca
mov ecx, dword [0x140228698]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14001fbff
mov rcx, qword [0x140233ae8]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x140233af0]
jne 0x14001fbff
cmp qword [rax + rcx], 0
jne 0x14001fc86
mov ecx, 4
call fcn.14012cd5c
mov rsi, rax
mov dword [rax], 0
mov ecx, dword [0x140228698]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14001fd21
mov rcx, qword [0x140233ae8]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x140233af0]
jne 0x14001fd21
mov rdi, qword [rax + rcx]
mov ecx, dword [0x140228698]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14001fcbe
mov rcx, qword [0x140233ae8]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [0x140233af0]
mov rdx, qword [0x140233ae8]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
test rdi, rdi
jne 0x14001fd28
mov ecx, dword [0x140228698]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14001fd1d
mov rcx, qword [0x140233ae8]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x140233af0]
jne 0x14001fd1d
mov rax, qword [rax + rcx]
add rsp, 0x28
pop rdi
pop rsi
ret
test rsi, rsi
je 0x14001fc7d
call fcn.1400105a0
jmp 0x14001fc59
lea rcx, [0x140233af8]
call fcn.14012ce30
cmp dword [0x140233af8], 0xffffffff
jne 0x14001fbcb
mov qword [0x140233af0], 0
lea rcx, [0x140233ae8]
mov qword [0x140233ae8], 0xffffffffffffffff
lea rdx, [0x140057720]
call fcn.1400223a0
lea rcx, [0x140233af8]
call fcn.14012ce98
jmp 0x14001fbcb
xor eax, eax
jmp 0x14001fcb7
xor edi, edi
jmp 0x14001fc47
mov rcx, rdi
call fcn.14012cd4c
jmp 0x14001fc86
Function at 0x1400223a0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x140228698]
cmp ecx, 0xffffffff
je 0x14002247a
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x14002247a
mov eax, dword [0x1402338d0]
mov ecx, dword [0x140228d28]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140022484
mov rbx, qword [0x1402338c8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400224c6
mov rax, qword [0x1402320b8]
inc rax
xor ecx, ecx
lea rdx, [0x1402320c0]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x1400224d3
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov ecx, dword [0x1402338c0]
inc ecx
mov dword [0x1402338c0], ecx
mov dword [rax + 0x14], ecx
mov qword [0x1402320b8], r8
mov qword [rsi], r8
mov eax, dword [rax + 0x10]
mov dword [rsi + 8], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsi], 0x100
jae 0x1400224e8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400105a0
jmp 0x1400223ca
lea rcx, [0x1402338d0]
call fcn.14012ce30
cmp dword [0x1402338d0], 0xffffffff
jne 0x1400223ef
mov ecx, 8
call fcn.14012cd5c
mov qword [rax], 0
mov qword [0x1402338c8], rax
lea rcx, [0x1402338d0]
call fcn.14012ce98
jmp 0x1400223ef
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x140022407
inc rcx
cmp rcx, 0x100
jne 0x14002241a
jmp 0x140022460
int3

Function at 0x1400241f0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x28
test rdx, rdx
jne 0x14002421f
test r8d, r8d
jne 0x140024218
lea rcx, [0x140231f38]
lea rdx, [0x14008f290]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
xor eax, eax
add rsp, 0x28
ret
mov r8d, r8d
add rsp, 0x28
jmp fcn.140110800
Function at 0x140025a90
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x10], 0
jne 0x140025b85
cmp qword [rsi], 0
jne 0x140025b85
cmp dword [rsi + 0x14], 0
jne 0x140025b85
cmp qword [rsi + 8], 0
jne 0x140025b85
xor eax, eax
mov r14, qword [rdi]
cmp rax, r14
je 0x140025b04
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140025b6c
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140025afc
mov qword [rsi], r14
call fcn.1400b9400
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
cmp qword [rsi + 8], r14
je 0x140025b3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x140025b54
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140025b36
mov qword [rsi + 8], r14
call fcn.1400b9400
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rdi + 0x10]
mov dword [rsi + 0x10], eax
mov eax, dword [rdi + 0x14]
mov dword [rsi + 0x14], eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400b9400
mov rcx, qword [rsi + 8]
call fcn.1401142f0
mov qword [rsi + 8], 0
jmp 0x140025b23
call fcn.1400b9400
mov rcx, qword [rsi]
call fcn.1401142f0
mov qword [rsi], 0
jmp 0x140025aea
mov rcx, rsi
call fcn.1401b0eb0
mov rax, qword [rsi]
jmp 0x140025aca
Function at 0x140025bd0
Capabilities:
Delete file
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x78
mov rsi, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rdi, qword [0x140231be8]
test rdi, rdi
je 0x140025c20
lea rbx, [0x1401fa7c3]
mov rcx, rdi
mov rdx, rbx
call fcn.140111ee0
test al, al
jne 0x140025c49
lea rdx, str.vmodule
mov rcx, rdi
call fcn.140111ee0
test al, al
jne 0x140025c49
mov eax, dword [rsi]
mov dword [0x140228658], eax
test al, 1
jne 0x140025d02
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14012f6f0
mov al, 1
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rax, str.vmodule
lea r8, [rsp + 0x48]
mov qword [r8], rax
mov qword [r8 + 8], 7
lea r14, [rsp + 0x58]
mov rcx, rdi
mov rdx, r14
call fcn.1400e20e0
lea r8, [rsp + 0x20]
mov qword [r8], rbx
mov qword [r8 + 8], 1
lea rbx, [rsp + 0x30]
mov rcx, rdi
mov rdx, rbx
call fcn.1400e20e0
mov ecx, 0x20
call fcn.14012cd5c
mov rdi, rax
lea r9, [0x140231b60]
mov rcx, rax
mov rdx, rbx
mov r8, r14
call fcn.14019dd70
cmp byte [rbx + 0x17], 0
jns 0x140025cc2
mov rcx, qword [rsp + 0x30]
call fcn.14012cd4c
cmp byte [rsp + 0x6f], 0
jns 0x140025cd3
mov rcx, qword [rsp + 0x58]
call fcn.14012cd4c
test rdi, rdi
je 0x140025c20
xor eax, eax
lock cmpxchg qword [0x140231b70], rdi
je 0x140025c20
mov rcx, rdi
call fcn.14019de40
mov rcx, rdi
call fcn.14012cd4c
jmp 0x140025c20
mov rcx, qword [0x140231b68]
test rcx, rcx
jne 0x140025d1c
mov rcx, qword [0x140231b58]
test rcx, rcx
je 0x140025d40
jmp 0x140025d62
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140231b68], 0
mov rcx, qword [0x140231b58]
test rcx, rcx
jne 0x140025d62
and byte [0x140228658], 0xfe
mov ecx, 0x18
call fcn.14012cd5c
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x140231b58], rax
mov rdx, qword [rsi + 8]
call fcn.14005b3f0
cmp dword [rsi + 0x14], 0
jne 0x140025d87
mov rcx, qword [0x140231b58]
cmp byte [rcx + 0x17], 0
jns 0x140025d81
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14012f6f0
nop
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140192270
Function at 0x1400261a0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x48], rax
test rcx, rcx
je 0x140026279
mov rsi, rdx
mov rdi, rcx
lea rbx, [rsp + 0x40]
mov qword [rbx], 0
mov r15, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call r15
mov r14, rax
call r15
xor ecx, ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x30], 2
mov rcx, rax
mov rdx, rdi
mov r8, r14
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
setne bl
je 0x14002627d
mov r14, qword [rsp + 0x40]
cmp qword [rsi], r14
je 0x140026248
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140026263
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140026240
mov qword [rsi], r14
call fcn.1400b9400
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14012f6f0
mov eax, ebx
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400b9400
mov rcx, qword [rsi]
call fcn.1401142f0
mov qword [rsi], 0
jmp 0x14002622e
mov bl, 1
jmp 0x140026248
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x140026240