joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140033ece
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov rbx, r9
mov rsi, r8
mov rdi, rdx
mov r14, rcx
call fcn.14004053a
mov ebp, eax
test rdi, rdi
je 0x140033f03
mov rax, qword [rdi + 0x18]
cmp rax, qword [rdi + 0x20]
je 0x140033f18
movzx eax, word [rax]
jmp 0x140033f28
xor r15d, r15d
mov eax, 6
test bpl, bpl
jne 0x140033fb2
xor edi, edi
jmp 0x140033f40
mov rax, qword [rdi]
mov rax, qword [rax + 0x40]
mov rcx, rdi
call qword [0x1400f7008]
xor r15d, r15d
cmp ax, 0xffff
sete cl
cmove rdi, r15
mov eax, 6
cmp bpl, cl
je 0x140033fb2
mov rcx, qword [r14]
mov rax, qword [rcx + 0x18]
cmp rax, qword [rcx + 0x20]
je 0x140033f52
movzx ebp, word [rax]
jmp 0x140033f61
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [0x1400f7008]
mov ebp, eax
mov rax, qword [rbx]
mov rax, qword [rax + 0x18]
mov rcx, rbx
mov dx, 4
mov r8d, ebp
call qword [0x1400f7008]
test al, al
je 0x140033faa
mov rax, qword [rbx]
mov rax, qword [rax + 0x68]
mov rcx, rbx
mov edx, ebp
xor r8d, r8d
call qword [0x1400f7008]
mov ebp, eax
mov rcx, qword [r14]
mov rax, qword [rcx + 0x18]
cmp rax, qword [rcx + 0x20]
je 0x140033fc6
add rax, 2
mov qword [rcx + 0x18], rax
jmp 0x140033fd3
xor r15d, r15d
mov eax, 4
or dword [rsi], eax
mov eax, r15d
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [0x1400f7008]
mov r12d, dword [rsp + 0x80]
movsx r15d, bpl
mov rcx, r14
call fcn.14004053a
mov ebp, eax
test rdi, rdi
je 0x140033ffd
mov rax, qword [rdi + 0x18]
cmp rax, qword [rdi + 0x20]
je 0x140034001
movzx eax, word [rax]
jmp 0x140034011
mov al, 1
jmp 0x14003401a
mov rax, qword [rdi]
mov rax, qword [rax + 0x40]
mov rcx, rdi
call qword [0x1400f7008]
cmp ax, 0xffff
sete al
jne 0x14003401c
xor edi, edi
add r15d, 0xffffffd0
cmp bpl, al
je 0x1400340c2
cmp r12d, 2
jl 0x1400340c2
mov rcx, qword [r14]
mov rax, qword [rcx + 0x18]
cmp rax, qword [rcx + 0x20]
je 0x140034045
movzx ebp, word [rax]
jmp 0x140034054
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [0x1400f7008]
mov ebp, eax
mov rax, qword [rbx]
mov rax, qword [rax + 0x18]
mov rcx, rbx
mov dx, 4
mov r8d, ebp
call qword [0x1400f7008]
test al, al
je 0x140033fb4
mov rax, qword [rbx]
mov rax, qword [rax + 0x68]
mov rcx, rbx
mov edx, ebp
xor r8d, r8d
call qword [0x1400f7008]
mov ebp, eax
mov rcx, qword [r14]
mov rax, qword [rcx + 0x18]
cmp rax, qword [rcx + 0x20]
je 0x1400340a1
add rax, 2
mov qword [rcx + 0x18], rax
jmp 0x1400340ae
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [0x1400f7008]
lea eax, [r15 + r15*4]
movsx ecx, bpl
lea r15d, [rcx + rax*2]
dec r12d
jmp 0x140033fdf
mov rcx, r14
call fcn.14004053a
mov ebx, eax
test rdi, rdi
je 0x1400340e0
mov rax, qword [rdi + 0x18]
cmp rax, qword [rdi + 0x20]
je 0x1400340f2
movzx eax, word [rax]
jmp 0x140034102
mov eax, 2
test bl, bl
jne 0x140033fb2
jmp 0x140033fb4
mov rax, qword [rdi]
mov rax, qword [rax + 0x40]
mov rcx, rdi
call qword [0x1400f7008]
cmp ax, 0xffff
sete al
xor bl, al
mov eax, 2
je 0x140033fb2
jmp 0x140033fb4
Function at 0x1400439b0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov r15, qword [rcx + 0x10]
cmp r15, qword [rcx + 0x18]
jne 0x140043abf
mov r14, qword [rsi]
mov rbx, qword [rsi + 8]
mov rax, rbx
sub rax, r14
jbe 0x140043a1e
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
lea r14, [rax + rcx]
inc r14
shr r14, 1
shl r14, 3
mov rcx, rbx
sub rcx, r14
mov r8, r15
sub r8, rbx
mov rdx, rbx
call fcn.140083b80
sub r15, r14
mov qword [rsi + 0x10], r15
sub qword [rsi + 8], r14
jmp 0x140043abf
mov rax, r15
sub rax, r14
sar rax, 2
cmp r15, r14
mov r12d, 1
cmovne r12, rax
mov rax, r12
shr rax, 0x3d
jne 0x140043b09
lea rcx, [r12*8]
call fcn.140080b60
mov rcx, r12
and rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
mov rdx, rcx
sub r15, rbx
je 0x140043a98
mov r8, r15
sar r8, 3
and r15, 0xfffffffffffffff8
mov rdx, r15
add rdx, rcx
shl r8, 3
xor r9d, r9d
nop word [rax + rax]
mov r10, rcx
add r10, r9
je 0x140043add
mov r11, qword [rbx + r9]
mov qword [r10], r11
add r9, 8
cmp r8, r9
jne 0x140043a80
lea r8, [rax + r12*8]
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
mov qword [rsi + 0x18], r8
mov r15, rdx
test r14, r14
je 0x140043abf
mov rcx, r14
call fcn.140080b9c
mov r15, qword [rsi + 0x10]
test r15, r15
je 0x140043add
mov rax, qword [rdi]
mov qword [r15], rax
add qword [rsi + 0x10], 8
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x25
call fcn.140020b04
call fcn.14001bba0
int3
Function at 0x140044220
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x38
movaps xmmword [rsp + 0x20], xmm6
mov edi, edx
mov rsi, rcx
lea rax, [0x1400bfec8]
mov qword [rcx], rax
add rcx, 8
call fcn.14004c6c0
lea rcx, [rsi + 0x10]
call fcn.14004c6c0
mov byte [rsi + 0x18], 0
lea rcx, [rsi + 0x40]
xorps xmm6, xmm6
movups xmmword [rsi + 0x1c], xmm6
movups xmmword [rsi + 0x2c], xmm6
mov dword [rsi + 0x3c], 0
call fcn.14004c6c0
mov byte [rsi + 0x48], 0
movups xmmword [rsi + 0x50], xmm6
mov qword [rsi + 0x60], 0
lea rax, [rsi + 0x70]
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 dword [rsi + 0xd0], 0x3f800000
mov dword [rsi + 0xd8], 0
movups xmmword [rsi + 0xe0], xmm6
movups xmmword [rsi + 0xf0], xmm6
mov dword [rsi + 0x100], 0x3f800000
movups xmmword [rsi + 0x108], xmm6
movups xmmword [rsi + 0x118], xmm6
mov dword [rsi + 0x128], 0x3f800000
movups xmmword [rsi + 0x140], xmm6
movups xmmword [rsi + 0x130], xmm6
mov dword [rsi + 0x150], 0x3f800000
movups xmmword [rsi + 0x158], xmm6
movups xmmword [rsi + 0x168], xmm6
mov dword [rsi + 0x178], 0x3f800000
mov qword [rsi + 0x198], 0
movups xmmword [rsi + 0x180], xmm6
mov dword [rsi + 0x190], 0
mov eax, dword [0x1400c5d30]
mov dword [rsi + 0x1a0], eax
lea rcx, [rsi + 0x1a8]
call fcn.14005de60
lea rcx, [rsi + 0x2e0]
xor edx, edx
call fcn.14004e6d0
lea rcx, [rsi + 0x2f0]
xor edx, edx
call fcn.14004e6d0
lea rcx, [rsi + 0x300]
xor edx, edx
call fcn.14004e6d0
movups xmmword [rsi + 0x310], xmm6
movups xmmword [rsi + 0x320], xmm6
mov dword [rsi + 0x330], 0x3f800000
movups xmmword [rsi + 0x338], xmm6
movups xmmword [rsi + 0x348], xmm6
movups xmmword [rsi + 0x358], xmm6
mov byte [rsi + 0x368], 0
mov dword [rsi + 0x36c], edi
mov byte [rsi + 0x370], 0
movups xmmword [rsi + 0x378], xmm6
mov qword [rsi + 0x388], 0
call fcn.140019ae0
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rsi + 0x190], eax
mov eax, eax
movabs rcx, 0xcbf29ce484222325
xor rcx, rax
movabs rax, 0x100000001b3
imul rax, rcx
mov qword [rsi + 0x188], rax
mov edx, dword [rsi + 0x1a0]
mov rax, qword [rsi + 0x1b0]
mov rcx, rax
shr rcx, 6
test dword [0x1400c5d34], edx
je 0x14004442a
cmp rax, 0x40
mov eax, 0x3e8
jmp 0x14004443b
test dword [0x1400c5d38], edx
je 0x140044492
cmp rax, 0x40
mov eax, 0x100
cmovb rcx, rax
call fcn.14005cd70
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x20], rax
test rcx, rcx
je 0x140044462
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [0x1400f7008]
call fcn.140049d20
lea r8, str.TraceLog
mov rcx, rax
mov rdx, rsi
xor r9d, r9d
call fcn.140049eb0
mov qword [0x1400e7810], rsi
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rdi
pop rsi
ret
test dword [0x1400c5d3c], edx
je 0x1400444a5
cmp rax, 0x40
mov eax, 0x7a1200
jmp 0x1400444ae
cmp rax, 0x40
mov eax, 0xfa0
cmovb rcx, rax
call fcn.14005ce20
jmp 0x140044444
Function at 0x1400448d0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
add rcx, 0x2f0
call fcn.14004e640
test rax, rax
jne 0x14004491c
call fcn.14004ebe0
test al, al
je 0x14004491c
call fcn.14004eb20
test al, al
je 0x14004491c
lea rdi, [rsi + 0x2e0]
mov rcx, rdi
call fcn.14004e640
test rax, rax
je 0x140044931
mov ecx, dword [rsi + 0x36c]
cmp ecx, dword [rax + 0x28]
jne 0x140044924
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov rcx, rax
mov edx, 1
call fcn.1400472b0
mov ecx, 0x30
call fcn.140080b60
mov rbx, rax
mov rcx, rax
mov rdx, rsi
call fcn.140043b10
mov rcx, rdi
mov rdx, rbx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14004e680

Function at 0x14004acc0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x1400d5038]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rcx, [rsp + 0x38]
mov r8d, 0x118
xor edx, edx
call fcn.140084230
mov dword [rsp + 0x34], 0x11c
lea rcx, [rsp + 0x34]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [rsp + 0x30], 0
mov ecx, dword [rsp + 0x38]
mov edx, dword [rsp + 0x3c]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.140080b60
mov rsi, rax
mov edi, dword [rsp + 0x30]
mov eax, dword [0x1400e7888]
mov ecx, dword [0x1400e47b4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004ad8c
lea r8, [0x1400e7858]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.14004ae40
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400820f0
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1400e7888]
call fcn.140080cc0
cmp dword [0x1400e7888], 0xffffffff
jne 0x14004ad58
xorps xmm0, xmm0
movups xmmword [0x1400e7878], xmm0
movups xmmword [0x1400e7868], xmm0
movups xmmword [0x1400e7858], xmm0
lea rcx, [0x1400e7858]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1400e7888]
call fcn.140080d58
jmp 0x14004ad58

Function at 0x14004bc90
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x1400d5038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x3c], 4
mov dword [rsp + 0x38], 4
mov dword [rsp + 0x34], 0
mov rcx, qword [rcx]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x14004bd0b
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x14004bd0b
cmp dword [rsp + 0x38], 4
jne 0x14004bd0b
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400820f0
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x14004bd30
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.140082090
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1400d5038]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.140084230
mov dword [rsp + 0x3c], 1
mov dword [rsp + 0x38], 0x800
mov rcx, qword [rbx]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x3c]
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x14004be1b
mov eax, dword [rsp + 0x3c]
cmp eax, 2
je 0x14004bdcb
mov edi, 0x3f4
cmp eax, 1
jne 0x14004be1b
lea rdx, [rsp + 0x840]
jmp 0x14004be11
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.140084230
lea rcx, [rsp + 0x840]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
mov edi, 0xea
cmp eax, 0xfffffc00
jb 0x14004be1b
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140041aba
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400820f0
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14004c110
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
movaps xmmword [rsp + 0x30], xmm6
mov rax, qword [0x1400d5038]
xor rax, rsp
mov qword [rsp + 0x28], rax
movsd xmm6, qword [0x1400e7898]
xorpd xmm0, xmm0
ucomisd xmm6, xmm0
jne 0x14004c264
jp 0x14004c264
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov esi, eax
call rdi
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x1400e78a8]
mov ecx, dword [0x1400e47b4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004c284
mov eax, dword [0x1400e78b8]
mov ecx, dword [0x1400e47b4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004c2be
rdtsc
mov rdi, rax
mov rbx, rdx
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r14, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, esi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub r14, qword [0x1400e78b0]
xorps xmm0, xmm0
cvtsi2sd xmm0, r14
cvtsi2sd xmm1, qword [rsp + 0x20]
divsd xmm0, xmm1
xorpd xmm6, xmm6
movsd xmm1, qword [0x1400c48e8]
ucomisd xmm1, xmm0
ja 0x14004c264
shl rbx, 0x20
or rdi, rbx
sub rdi, qword [0x1400e78a0]
movq xmm1, rdi
punpckldq xmm1, xmmword [0x1400c48c0]
subpd xmm1, xmmword [0x1400c48d0]
movapd xmm6, xmm1
unpckhpd xmm6, xmm1
addsd xmm6, xmm1
divsd xmm6, xmm0
movsd qword [0x1400e7898], xmm6
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400820f0
movapd xmm0, xmm6
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x1400e78a8]
call fcn.140080cc0
cmp dword [0x1400e78a8], 0xffffffff
jne 0x14004c192
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x1400e78a0], rdx
lea rcx, [0x1400e78a8]
call fcn.140080d58
jmp 0x14004c192
lea rcx, [0x1400e78b8]
call fcn.140080cc0
cmp dword [0x1400e78b8], 0xffffffff
jne 0x14004c1b7
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x20]
mov qword [0x1400e78b0], rax
lea rcx, [0x1400e78b8]
call fcn.140080d58
jmp 0x14004c1b7

Function at 0x14004cc00
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
movzx eax, byte [0x1400e78c8]
test al, 1
jne 0x14004cc5c
test rsi, rsi
je 0x14004cc52
mov r14d, 0xffffffff
nop word cs:[rax + rax]
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x14004cc75
add rdi, rbx
sub rsi, rbx
jne 0x14004cc30
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140061210
mov rcx, rdi
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp 0x140062d70
int3
sub rsp, 0x28
lea r8, [0x1400c8740]
call fcn.140062d90
mov eax, 1
add rsp, 0x28
ret
Function at 0x14004e320
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 [0x1400d8548]
cmp ecx, 0xffffffff
je 0x14004e342
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14004e347
call fcn.14004e450
mov eax, dword [0x1400e90e8]
mov ecx, dword [0x1400e47b4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004e3fc
mov rbx, qword [0x1400e90e0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x14004e388
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rcx, qword [0x1400e78d8]
inc rcx
xor edx, edx
lea rax, [0x1400e78e0]
nop dword [rax + rax]
lea r8d, [rcx + rdx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rax + r9*8], 0
je 0x14004e3c1
inc rdx
cmp rdx, 0x100
jne 0x14004e3a0
jmp 0x14004e3e2
lea rcx, [rax + r9*8]
mov dword [rcx], 1
mov qword [rax + r9*8 + 8], rdi
mov qword [0x1400e78d8], r8
mov qword [rsi], r8
mov eax, dword [rax + r9*8 + 0x10]
mov dword [rsi + 8], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsi], 0x100
jae 0x14004e442
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1400e90e8]
call fcn.140080cc0
cmp dword [0x1400e90e8], 0xffffffff
jne 0x14004e36c
mov ecx, 8
call fcn.140080b60
mov rbx, rax
mov rcx, rax
call fcn.14004c6c0
mov qword [0x1400e90e0], rbx
lea rcx, [0x1400e90e8]
call fcn.140080d58
jmp 0x14004e36c
int3

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

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.140082090
sub rsp, rax
mov rax, qword [0x1400d5038]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x1400d8548]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
jne 0x14004e4ec
lea rcx, [rsp + 0x2c]
call fcn.140069be0
test al, al
je 0x14004e567
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
jne 0x14004e4ce
lea rcx, [rsp + 0x2c]
call fcn.140069be0
test al, al
je 0x14004e56a
cmp dword [rsp + 0x2c], 0xffffffff
je 0x14004e56a
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
mov eax, 0xffffffff
lock cmpxchg dword [0x1400d8548], ecx
je 0x14004e4ec
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x1400d8548]
mov dword [rsp + 0x2c], ecx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14004e564
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.140084230
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.140080bdc
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.140083b80
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.1400820f0
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
int3
int3
int3
Function at 0x14004e640
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x1400d8548]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14004e670
mov rcx, qword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 8]
jne 0x14004e670
mov rax, qword [rax + rcx]
jmp 0x14004e672
xor eax, eax
add rsp, 0x20
pop rsi
ret

Function at 0x14004e680
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x1400d8548]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14004e6be
mov rcx, qword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 8]
mov rdx, qword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
test rdi, rdi
je 0x14004e6b7
call fcn.14004e450
jmp 0x14004e69e
Function at 0x140056bf0
Capabilities:
Set thread local storage value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x1400d5038]
xor rax, rsp
mov qword [rsp + 0x50], rax
test rcx, rcx
je 0x140056e03
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x1400d8580], rax
jne 0x140056e06
mov rsi, rcx
mov r14d, dword [rcx + 0xc]
add r14, 0x518
mov byte [rsp + 0x3f], 0xaa
movzx edx, byte [rcx + 2]
mov rcx, r14
call fcn.1400516d0
movzx eax, ax
lea r12, [rax + rax*4]
lea r15, [rsi + r12*8]
add r15, 0x48
lea rdi, [rsi + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x140056c73
mov rcx, rdi
call fcn.140057e30
mov rax, qword [r15]
mov rbx, qword [rax]
test rbx, rbx
je 0x140056d65
mov byte [rsp + 0x3f], 0
mov r8, qword [rbx]
test r8, r8
je 0x140056cc4
lea rdx, [rsi + 0x48]
mov rcx, r8
bswap rcx
mov r14d, dword [rdx + r12*8 + 0x18]
mov rdx, rcx
xor rdx, rbx
cmp rdx, 0x1fffff
ja 0x140056dcc
mov edx, ecx
and edx, 0x1fc000
je 0x140056dcc
prefetcht0 byte [rcx]
jmp 0x140056cc6
xor ecx, ecx
mov qword [rax], rcx
mov ecx, dword [rax + 0x18]
lea edx, [rcx + 2]
and edx, 0x3ffe
and ecx, 0xffffc001
or ecx, edx
mov dword [rax + 0x18], ecx
mov rax, qword [rax + 0x10]
mov eax, dword [rax + 0x18]
add rax, qword [rsi + 0x1498]
mov qword [rsi + 0x1498], rax
mov rcx, qword [rsi + 0x14a0]
cmp rcx, rax
cmova rax, rcx
mov qword [rsi + 0x14a0], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, rbx
mov rdx, rsi
call fcn.140056e20
mov ecx, dword [0x1400e91e8]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x1400e47b4]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x180], rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400820f0
mov rax, rbx
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rax, [rsp + 0x3f]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x4000
mov rcx, r15
mov rdx, rsi
mov r8d, 2
mov r9, r14
call fcn.14006a110
test rax, rax
je 0x140056dfc
mov rbx, rax
mov rcx, rax
and rcx, 0xffffffffffe00000
mov rdx, rax
shr rdx, 9
and edx, 0xfe0
lea rax, [rdx + rcx]
movzx ecx, byte [rdx + rcx + 0x101e]
and ecx, 0x3f
shl rcx, 5
sub rax, rcx
add rax, 0x1000
jmp 0x140056ce0
movaps xmm0, xmmword [0x1400bea10]
movaps xmmword [rsp + 0x40], xmm0
lea rdx, str.first
lea rsi, [rsp + 0x40]
mov rcx, rsi
call fcn.140051800
mov rcx, rsi
call fcn.140019ae0
mov rcx, r14
call fcn.140057bb0
xor ebx, ebx
jmp 0x140056d0a
int3
int3
Function at 0x140060f30
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov edi, r9d
mov rsi, rcx
mov rax, qword [0x1400d5038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], 0
test r8b, r8b
je 0x140060f95
lea r8, [rsp + 0x30]
mov rcx, rdx
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140060fc8
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x140060fd0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp rbx, 0xffffffffffffffff
je 0x140060fd4
call fcn.140054190
jmp 0x140060fd6
or edi, 8
lea r8, [rsp + 0x30]
mov rcx, rdx
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140060fc8
mov r14, qword [rsp + 0x30]
mov qword [rsp + 0x38], 0
test r14, r14
jne 0x140061045
jmp 0x140061069
mov byte [rsi], 0
jmp 0x1400610b1
xor ebx, ebx
jmp 0x140060fde
xor ebx, ebx
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
or edi, 8
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 2
xor r15d, r15d
mov rcx, rbx
mov edx, edi
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
mov r14, qword [rsp + 0x38]
cmovne r15, r14
mov qword [rsp + 0x30], r15
test r15, r15
je 0x140061097
lea rax, [rbx + 1]
cmp rax, 2
jae 0x1400610ce
mov qword [rsp + 0x38], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140061061
mov qword [rsp + 0x38], r14
call fcn.140054190
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi], 1
mov rcx, rsi
add rcx, 8
lea rdx, [rsp + 0x38]
call fcn.14001c6d8
mov rax, qword [rsp + 0x38]
inc rax
cmp rax, 2
jb 0x1400610b1
call fcn.140054190
mov rcx, qword [rsp + 0x38]
jmp 0x1400610ac
mov byte [rsi], 0
lea rax, [rbx + 1]
cmp rax, 2
jb 0x1400610b1
call fcn.140054190
mov rcx, rbx
call fcn.14004bb60
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400820f0
mov rax, rsi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140054190
mov rcx, rbx
call fcn.14004bb60
jmp 0x140060fac