joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002b430
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov r14, rcx
mov rax, qword [0x1400ec028]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.140069150
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x14002b4cf
lea rsi, [rsp + 0x20]
mov qword [rsi], rbx
mov rcx, rbx
call fcn.14007cc48
mov qword [rsi + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.140047720
lea rsi, [rsp + 0x48]
mov rcx, rbx
mov rdx, rsi
call fcn.1400274e0
mov rcx, r14
mov rdx, rsi
call fcn.140047810
mov rcx, rsi
call fcn.140047800
mov rcx, rbx
call fcn.140047800
cmp edi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140066890
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14002b500
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x1400ec028]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140069150
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov edx, 0x28
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14002b595
cmp word [rsp + 0x70], 0
je 0x14002b595
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.14007cc48
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.140047720
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.140066890
mov rax, rsi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1400d5930]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.1400476e0
mov rcx, rdi
call fcn.14002b430
test al, al
je 0x14002b5d5
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140047700
jmp 0x14002b5f4
lea rax, [0x1400d969a]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.140047720
lea rcx, [rsp + 0x40]
call fcn.140047800
jmp 0x14002b577
Function at 0x14002c510
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x190
mov rax, qword [0x1400ec028]
xor rax, rsp
mov qword [rsp + 0x188], rax
mov eax, dword [0x1400f2060]
mov ecx, dword [0x1400ef384]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14002c572
lea rsi, [0x1400f2058]
mov rcx, qword [rsp + 0x188]
xor rcx, rsp
call fcn.140066890
mov rax, rsi
add rsp, 0x190
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1400f2060]
call fcn.140065c70
cmp dword [0x1400f2060], 0xffffffff
jne 0x14002c54d
lea rsi, [rsp + 0x6c]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140069150
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x68]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x2c]
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.140065b1c
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1400f2098]
mov ecx, dword [0x1400ef384]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14002c632
lea r8, [0x1400f2068]
lea rdx, [rsp + 0x68]
mov rcx, rsi
mov r9d, edi
call fcn.14002c7b0
mov qword [0x1400f2058], rsi
lea rcx, [0x1400f2060]
call fcn.140065d08
jmp 0x14002c54d
lea rcx, [0x1400f2098]
call fcn.140065c70
cmp dword [0x1400f2098], 0xffffffff
jne 0x14002c603
xorps xmm0, xmm0
lea rbx, [rsp + 0x30]
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movaps xmm0, xmmword [rbx]
movaps xmm1, xmmword [rbx + 0x10]
movaps xmm2, xmmword [rbx + 0x20]
movups xmmword [0x1400f2088], xmm2
movups xmmword [0x1400f2078], xmm1
movups xmmword [0x1400f2068], xmm0
lea rcx, [0x1400f2098]
call fcn.140065d08
jmp 0x14002c603

Function at 0x14002c6c0
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x1400ec028]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [0x1400f2098]
mov ecx, dword [0x1400ef384]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14002c71c
movzx eax, word [0x1400f2068]
cmp ax, 9
jne 0x14002c77e
mov esi, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140066890
mov eax, esi
add rsp, 0x60
pop rsi
ret
lea rcx, [0x1400f2098]
call fcn.140065c70
cmp dword [0x1400f2098], 0xffffffff
jne 0x14002c6f5
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 [0x1400f2088], xmm2
movups xmmword [0x1400f2078], xmm1
movups xmmword [0x1400f2068], xmm0
lea rcx, [0x1400f2098]
call fcn.140065d08
jmp 0x14002c6f5
xor esi, esi
test ax, ax
je 0x14002c707
cmp ax, 6
jne 0x14002c795
mov esi, 2
jmp 0x14002c707
cmp ax, 0xc
jne 0x14002c7a5
mov esi, 3
jmp 0x14002c707
mov esi, 4
jmp 0x14002c707
Function at 0x14002ccf0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x10], 0
jne 0x14002cddc
cmp qword [rsi], 0
jne 0x14002cddc
cmp dword [rsi + 0x14], 0
jne 0x14002cddc
cmp qword [rsi + 8], 0
jne 0x14002cddc
xor eax, eax
mov rbx, qword [rdi]
cmp rax, rbx
je 0x14002cd5f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14002cdae
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14002cd57
mov qword [rsi], rbx
call fcn.14004cfc0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbp, qword [rdi + 8]
cmp qword [rsi + 8], rbp
je 0x14002cd99
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x14002cdc4
lea rax, [rbp + 1]
cmp rax, 2
jb 0x14002cd91
mov qword [rsi + 8], rbp
call fcn.14004cfc0
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 rbp
pop rdi
pop rsi
ret
call fcn.14004cfc0
mov rcx, qword [rsi]
call fcn.14004eee0
mov qword [rsi], 0
jmp 0x14002cd45
call fcn.14004cfc0
mov rcx, qword [rsi + 8]
call fcn.14004eee0
mov qword [rsi + 8], 0
jmp 0x14002cd7e
mov rcx, rsi
call fcn.1400abc50
mov rax, qword [rsi]
jmp 0x14002cd29
Function at 0x14002d2c0
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, [0x1400d4ff8]
mov qword [rcx], rax
add rcx, 8
call fcn.14004cee0
lea rcx, [rsi + 0x10]
call fcn.14004cee0
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.14004cee0
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 eax, dword [0x1400dabf8]
mov dword [rsi + 0x1a0], eax
lea rcx, [rsi + 0x1a8]
call fcn.140033480
lea rcx, [rsi + 0x2f0]
movups xmmword [rsi + 0x2d8], xmm6
mov qword [rsi + 0x2e8], rdi
xor edx, edx
call fcn.140031780
lea rcx, [rsi + 0x2f8]
xor edx, edx
call fcn.140031780
lea rcx, [rsi + 0x300]
xor edx, edx
call fcn.140031780
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.140019a90
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.14002d4d0
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x20], rax
test rcx, rcx
jne 0x14002d4c0
call fcn.140032be0
lea r8, str.TraceLog
mov rcx, rax
mov rdx, rsi
xor r9d, r9d
call fcn.140032c90
mov qword [0x1400f2488], 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 0x14002d48f
Function at 0x140030380
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x1400ec028]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, 4
lea r9, [rsp + 0x3c]
mov dword [r9], eax
lea rdi, [rsp + 0x38]
mov dword [rdi], eax
lea rax, [rsp + 0x34]
mov dword [rax], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x1400303f3
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x1400303f3
cmp dword [rsp + 0x38], 4
jne 0x1400303f3
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140066890
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret

Function at 0x140030410
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.140066820
sub rsp, rax
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1400ec028]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea rsi, [rsp + 0x840]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.140069150
lea r9, [rsp + 0x3c]
mov dword [r9], 1
lea rax, [rsp + 0x38]
mov dword [rax], 0x800
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400304c3
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x1400304c7
lea rdx, [rsp + 0x840]
mov rcx, r14
call fcn.140024aa0
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140066890
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x1400304a4
cmp eax, 2
jne 0x14003050c
lea rsi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.140069150
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 0x140030513
lea rdx, [rsp + 0x40]
jmp 0x14003049a
mov edi, 0x3f4
jmp 0x1400304a4
mov edi, 0xea
jmp 0x1400304a4

Function at 0x1400313e0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1400ef1e8]
cmp ecx, 0xffffffff
je 0x140031405
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 3
dec eax
cmp eax, 2
setb al
add rsp, 0x28
ret
xor eax, eax
jmp 0x140031400
Function at 0x140031410
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r14, rdx
mov r15, rcx
mov ecx, dword [0x1400ef1e8]
cmp ecx, 0xffffffff
je 0x1400314ee
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x1400314ee
mov eax, dword [0x1400f5228]
mov ecx, dword [0x1400ef384]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400314f8
mov rbx, qword [0x1400f5220]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14003153e
mov rax, qword [0x1400f3a18]
inc rax
xor ecx, ecx
lea rdx, [0x1400f3a20]
lea edi, [rax + rcx]
movzx edi, dil
lea rsi, [rdi + rdi*2]
cmp dword [rdx + rsi*8], 0
jne 0x14003154b
lea rax, [rdx + rsi*8]
mov dword [rax], 1
mov qword [rax + 8], r14
mov qword [0x1400f3a18], rdi
mov dword [r15], edi
mov eax, dword [rax + 0x10]
mov dword [r15 + 4], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [r15]
cmp eax, 0xffffffff
je 0x140031560
cmp eax, 0x100
jge 0x140031563
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140031570
jmp 0x14003143e
lea rcx, [0x1400f5228]
call fcn.140065c70
cmp dword [0x1400f5228], 0xffffffff
jne 0x140031463
mov ecx, 8
call fcn.140065b1c
mov rbx, rax
mov rcx, rax
call fcn.14004cee0
mov qword [0x1400f5220], rbx
lea rcx, [0x1400f5228]
call fcn.140065d08
jmp 0x140031463
mov rcx, rbx
call fcn.14004cef0
jmp 0x14003147b
inc rcx
cmp rcx, 0x100
jne 0x14003148e
jmp 0x1400314c2
int3
int3

Function at 0x140031570
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.140066820
sub rsp, rax
mov rax, qword [0x1400ec028]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x1400ef1e8]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x140031624
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140031662
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.140069150
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.140065b8c
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.140068d40
mov ecx, dword [rsp + 0x2c]
mov rdx, rdi
or rdx, 3
call sub.KERNEL32.dll_TlsSetValue
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.140066890
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.140037ca0
test al, al
je 0x140031665
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x140031668
mov eax, 0xffffffff
lock cmpxchg dword [0x1400ef1e8], ecx
je 0x1400315a8
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x1400ef1e8]
mov dword [rsp + 0x2c], ecx
jmp 0x1400315a8
int3
int3
lea rcx, [rsp + 0x2c]
call fcn.140037ca0
test al, al
je 0x14003168d
cmp dword [rsp + 0x2c], 0xffffffff
je 0x14003168d
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x14003163b
int3
Function at 0x1400343e0
Capabilities:
Get thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov r14, r8
mov ebx, edx
mov rdi, rcx
mov esi, dword [0x1400f5420]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test ebp, ebp
jne 0x1400344f2
cmp rsi, 1
je 0x1400344ee
mov eax, dword [rdi + 0x1518]
test eax, eax
jne 0x1400344ee
mov eax, 1
lock xadd dword [rdi + 0x1518], eax
cmp eax, 0x7fffffff
je 0x1400344ff
mov rcx, rdi
call fcn.140034800
lock dec dword [rdi + 0x1518]
mov rdi, rax
inc qword [rax + 0x5a0]
cmp word [0x1400ef230], bx
jb 0x1400344e0
movzx edx, bx
mov rsi, rdx
shl rsi, 4
mov rbx, rdi
add rbx, rsi
mov rax, qword [rdi + rsi]
test rax, rax
jne 0x140034502
inc qword [rdi + 0x5b8]
inc qword [rdi + 0x5b0]
mov rcx, rdi
call fcn.140054c40
mov rax, qword [rbx]
test rax, rax
je 0x1400344ee
mov rcx, qword [rax]
test rcx, rcx
je 0x14003450b
mov rdx, rcx
not rdx
cmp qword [rax + 8], rdx
jne 0x14003450f
bswap rcx
prefetcht0 byte [rcx]
dec byte [rdi + rsi + 8]
mov qword [rbx], rcx
movzx ecx, word [rdi + rsi + 0xa]
mov qword [r14], rcx
movzx ecx, word [rdi + rsi + 0xa]
sub qword [rdi + 0x590], rcx
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
inc qword [rdi + 0x5c0]
inc qword [rdi + 0x5b0]
xor eax, eax
jmp 0x1400344d5
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140034413
int3
inc qword [rdi + 0x5a8]
jmp 0x1400344a0
xor ecx, ecx
jmp 0x1400344ba
call fcn.14008fb00
int3

Function at 0x140034800
Capabilities:
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rax, qword [0x1400ec028]
xor rax, rsp
mov qword [rsp + 0x40], rax
test rcx, rcx
je 0x14003492f
mov rsi, rcx
mov byte [rsp + 0x3f], 0xaa
lea rbx, [rcx + 0x858]
lea r14, [rcx + 8]
mov edi, 1
xor ebp, ebp
mov r15, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov rcx, r14
call r15
test al, al
jne 0x140034879
jmp 0x140034920
pause
dec eax
jne 0x140034854
add ebp, edi
add edi, edi
cmp edi, 0x40
mov eax, 0x40
cmovge edi, eax
cmp ebp, 0x3e8
jl 0x140034845
mov rcx, r14
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rax, qword [rbx]
mov rdi, qword [rax]
test rdi, rdi
je 0x1400348da
mov byte [rsp + 0x3f], 0
mov rcx, qword [rdi]
test rcx, rcx
jne 0x140034909
xor ecx, ecx
mov qword [rax], rcx
inc word [rax + 0x18]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, rdi
mov rdx, rsi
call fcn.140054a90
mov ecx, dword [0x1400f5420]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140066890
mov rax, rdi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea rax, [rsp + 0x3f]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x4000
mov r9d, 0x610
mov rcx, rbx
mov rdx, rsi
mov r8d, 2
call fcn.140040570
mov rdi, rax
jmp 0x14003489a
mov rdx, rcx
not rdx
cmp qword [rdi + 8], rdx
jne 0x140034932
bswap rcx
prefetcht0 byte [rcx]
jmp 0x140034893
mov eax, edi
test edi, edi
jg 0x140034854
jmp 0x14003485c
int3
call fcn.14008fb00
int3
Function at 0x140034940
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov esi, dword [0x1400f5420]
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 0x140034977
cmp rsi, 2
jb 0x140034981
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1400550c0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140034963
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x140037ca0
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 0x140037cb5
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret

Function at 0x140037db0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x1400f54f8]
cmp rdi, 1
jbe 0x140037dd9
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140051720
lea rcx, [0x1400f54f8]
call fcn.140037cf0
test al, al
je 0x140037e1f
mov qword [0x1400f5500], 0
lea rbx, [0x1400f54f8]
lea rdi, [0x1400f5500]
mov rcx, rdi
xor edx, edx
call fcn.140031780
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.140037d90
jmp 0x140037dc7
mov rdi, qword [0x1400f54f8]
jmp 0x140037dc7

Function at 0x14003a700
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x1400f6b48], 0
jne 0x14003a73d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14003a730
mov dword [rdi], eax
mov dword [0x1400f6b50], eax
mov qword [0x1400f6b48], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3
Function at 0x14003d680
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x1400f7040]
cmp rdi, 1
jbe 0x14003d6a9
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140051720
lea rcx, [0x1400f7040]
call fcn.140037cf0
test al, al
je 0x14003d6ef
mov qword [0x1400f7048], 0
lea rbx, [0x1400f7040]
lea rdi, [0x1400f7048]
mov rcx, rdi
xor edx, edx
call fcn.140031780
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.140037d90
jmp 0x14003d697
mov rdi, qword [0x1400f7040]
jmp 0x14003d697
Function at 0x14004a1f0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x14004a237
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14004a251
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14004a22f
mov qword [rsi], rdi
call fcn.14004cfc0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x14004a267
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14004cfc0
mov rcx, qword [rsi]
call fcn.14004eee0
mov qword [rsi], 0
jmp 0x14004a21d
int3

Function at 0x14004cfd0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x190
mov rax, qword [0x1400ec028]
xor rax, rsp
mov qword [rsp + 0x188], rax
mov eax, dword [0x1400f2060]
mov ecx, dword [0x1400ef384]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004d033
mov rax, qword [0x1400f2058]
mov esi, dword [rax]
mov rcx, qword [rsp + 0x188]
xor rcx, rsp
call fcn.140066890
mov eax, esi
add rsp, 0x190
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1400f2060]
call fcn.140065c70
cmp dword [0x1400f2060], 0xffffffff
jne 0x14004d00d
lea rsi, [rsp + 0x6c]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140069150
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x68]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x2c]
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.140065b1c
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1400f2098]
mov ecx, dword [0x1400ef384]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004d0f3
lea r8, [0x1400f2068]
lea rdx, [rsp + 0x68]
mov rcx, rsi
mov r9d, edi
call fcn.14002c7b0
mov qword [0x1400f2058], rsi
lea rcx, [0x1400f2060]
call fcn.140065d08
jmp 0x14004d00d
lea rcx, [0x1400f2098]
call fcn.140065c70
cmp dword [0x1400f2098], 0xffffffff
jne 0x14004d0c4
xorps xmm0, xmm0
lea rbx, [rsp + 0x30]
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movaps xmm0, xmmword [rbx]
movaps xmm1, xmmword [rbx + 0x10]
movaps xmm2, xmmword [rbx + 0x20]
movups xmmword [0x1400f2088], xmm2
movups xmmword [0x1400f2078], xmm1
movups xmmword [0x1400f2068], xmm0
lea rcx, [0x1400f2098]
call fcn.140065d08
jmp 0x14004d0c4