joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140031c60
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm6
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14010d038]
xor rax, rsp
mov qword [rsp + 0x68], rax
movups xmm0, xmmword [rdx]
lea rdx, [rsp + 0x50]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 3
call fcn.14002c7d0
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x140031df4
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x4c], 0
lea rcx, [0x1400f6708]
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x140031e2b
lea rdx, [0x1400f6758]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140031e19
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [0x140131008]
mov r14, rax
movsxd r12, dword [rsp + 0x4c]
xorps xmm6, xmm6
movaps xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x40], 0
test r12, r12
je 0x140031e21
test r12d, r12d
js 0x140031e96
shl r12, 3
lea r15, [r12 + r12*2]
mov rcx, r15
call fcn.140078874
mov rbx, rax
mov qword [rsp + 0x30], rax
add r15, rax
mov qword [rsp + 0x40], r15
xor r13d, r13d
xor r15d, r15d
mov rcx, rbx
add rcx, r13
je 0x140031e3e
mov rdx, qword [r14 + r15]
call fcn.1400b7680
add r15, 8
add r13, 0x18
cmp r12, r15
jne 0x140031d62
mov r15, rbx
add r15, r13
mov qword [rsp + 0x38], r15
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140031860
movups xmmword [rsi], xmm6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x140031db6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test rbx, rbx
je 0x140031df4
cmp r15, rbx
je 0x140031dec
add r15, 0xffffffffffffffe8
jmp 0x140031dda
mov rcx, qword [r15]
call fcn.1400788b0
lea rax, [r15 - 0x18]
cmp r15, rbx
mov r15, rax
je 0x140031dec
test r15, r15
je 0x140031e6a
cmp byte [r15 + 0x17], 0
jns 0x140031dce
jmp 0x140031dc6
mov rcx, rbx
call fcn.1400788b0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140079e40
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor r14d, r14d
jmp 0x140031d14
xor r15d, r15d
xor ebx, ebx
jmp 0x140031d8f
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x140031d11
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x28
call fcn.1400ac940
lea rax, str.null_pointer_given_to_destroy_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__loc___nullptr
mov r8d, 0x44
call fcn.1400ac940
lea rcx, [rsp + 0x30]
call fcn.1400ac8b0
int3
Function at 0x1400346a0
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x238
mov rsi, rcx
mov rax, qword [0x14010d038]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14007bf80
mov word [rdi], 0
lea rcx, str.PROGRAMFILES
mov rdx, rdi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140034735
mov eax, eax
inc rax
cmp rax, 1
je 0x140034735
lea r14, [rax - 1]
cmp word [rsp + rax*2 + 0x1c], 0x5c
mov rax, r14
je 0x140034701
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140034722
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.1400904ac
test eax, eax
je 0x14003486e
lea rdx, [rsp + 0x20]
mov word [rdx], 0
lea rcx, str.PROGRAMFILES_X86_
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140034796
mov eax, eax
inc rax
cmp rax, 1
je 0x140034796
lea r14, [rax - 1]
cmp word [rsp + rax*2 + 0x1c], 0x5c
mov rax, r14
je 0x140034762
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140034783
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.1400904ac
test eax, eax
je 0x14003483f
lea rdx, [rsp + 0x20]
mov word [rdx], 0
lea rcx, str.PROGRAMW6432
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x1400347f3
mov eax, eax
inc rax
cmp rax, 1
je 0x1400347f3
lea r14, [rax - 1]
cmp word [rsp + rax*2 + 0x1c], 0x5c
mov rax, r14
je 0x1400347c3
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x1400347e4
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.1400904ac
test eax, eax
je 0x140034814
xor ebx, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140079e40
mov eax, ebx
add rsp, 0x238
pop rbx
pop rdi
pop rsi
pop r14
ret
movzx eax, byte [rsi + 0x17]
test al, al
js 0x140034821
and eax, 0x7f
jmp 0x140034825
mov rax, qword [rsi + 8]
mov bl, 1
cmp rax, r14
je 0x1400347f5
mov rcx, rsi
mov rdx, r14
call fcn.1400b7cb0
cmp word [rax], 0x5c
jne 0x1400347f3
jmp 0x1400347f5
movzx eax, byte [rsi + 0x17]
test al, al
js 0x14003484c
and eax, 0x7f
jmp 0x140034850
mov rax, qword [rsi + 8]
mov bl, 1
cmp rax, r14
je 0x1400347f5
mov rcx, rsi
mov rdx, r14
call fcn.1400b7cb0
cmp word [rax], 0x5c
jne 0x140034796
jmp 0x1400347f5
movzx eax, byte [rsi + 0x17]
test al, al
js 0x14003487b
and eax, 0x7f
jmp 0x14003487f
mov rax, qword [rsi + 8]
mov bl, 1
cmp rax, r14
je 0x1400347f5
mov rcx, rsi
mov rdx, r14
call fcn.1400b7cb0
cmp word [rax], 0x5c
jne 0x140034735
jmp 0x1400347f5
Function at 0x140037d70
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14010d038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x140125468]
mov ecx, dword [0x14011c780]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140037dd0
lea rsi, [0x140125460]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140079e40
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x140125468]
call fcn.1400789d0
cmp dword [0x140125468], 0xffffffff
jne 0x140037dac
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.14007bf80
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.140078874
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1401254b0]
mov ecx, dword [0x14011c780]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140037e90
lea r8, [0x140125480]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140037f90
mov qword [0x140125460], rsi
lea rcx, [0x140125468]
call fcn.140078a68
jmp 0x140037dac
lea rcx, [0x1401254b0]
call fcn.1400789d0
cmp dword [0x1401254b0], 0xffffffff
jne 0x140037e61
xorps xmm0, xmm0
movups xmmword [0x1401254a0], xmm0
movups xmmword [0x140125490], xmm0
movups xmmword [0x140125480], xmm0
lea rcx, [0x140125480]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1401254b0]
call fcn.140078a68
jmp 0x140037e61

Function at 0x140037ee0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1401254b0]
mov ecx, dword [0x14011c780]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140037f1b
movzx eax, word [0x140125480]
cmp eax, 9
jne 0x140037f63
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x1401254b0]
call fcn.1400789d0
cmp dword [0x1401254b0], 0xffffffff
jne 0x140037f05
xorps xmm0, xmm0
movups xmmword [0x1401254a0], xmm0
movups xmmword [0x140125490], xmm0
movups xmmword [0x140125480], xmm0
lea rcx, [0x140125480]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1401254b0]
call fcn.140078a68
jmp 0x140037f05
test eax, eax
je 0x140037f16
cmp eax, 6
jne 0x140037f73
mov eax, 2
jmp 0x140037f16
cmp eax, 0xc
jne 0x140037f7f
mov eax, 3
jmp 0x140037f16
mov eax, 4
jmp 0x140037f16
Function at 0x140039710
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 0x140039805
cmp qword [rsi], 0
jne 0x140039805
cmp dword [rsi + 0x14], 0
jne 0x140039805
cmp qword [rsi + 8], 0
jne 0x140039805
xor eax, eax
mov r14, qword [rdi]
cmp rax, r14
je 0x140039784
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400397ec
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14003977c
mov qword [rsi], r14
call fcn.14005c650
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
cmp qword [rsi + 8], r14
je 0x1400397be
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x1400397d4
lea rax, [r14 + 1]
cmp rax, 2
jb 0x1400397b6
mov qword [rsi + 8], r14
call fcn.14005c650
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.14005c650
mov rcx, qword [rsi + 8]
call fcn.140056320
mov qword [rsi + 8], 0
jmp 0x1400397a3
call fcn.14005c650
mov rcx, qword [rsi]
call fcn.140056320
mov qword [rsi], 0
jmp 0x14003976a
mov rcx, rsi
call fcn.1400d9bc0
mov rax, qword [rsi]
jmp 0x14003974a
Function at 0x14003d980
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x248
mov rax, qword [0x14010d038]
xor rax, rsp
mov qword [rsp + 0x240], rax
movaps xmm0, xmmword [0x1400f09f0]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
call sub.ntdll.dll_RtlFormatCurrentUserKeyPath
mov esi, eax
test eax, eax
js 0x14003dafc
lea rdi, [rsp + 0x20]
mov rdx, qword [rdi + 8]
lea rbx, [0x140125a60]
mov r14d, 0xff
mov r8d, 0xff
mov rcx, rbx
call fcn.140095a8c
mov rcx, rbx
call fcn.140095638
sub r14, rax
lea rdx, [0x1400f275c]
mov rcx, rbx
mov r8, r14
call fcn.140095a8c
mov rcx, rdi
call sub.ntdll.dll_RtlFreeUnicodeString
lea rbx, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbx
xor edx, edx
call fcn.14007bf80
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdi, rax
lea rcx, str.PROGRAMFILES
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14003da5c
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140095ad4
test eax, eax
je 0x14003db24
lea rcx, str.PROGRAMFILES_X86_
lea rdx, [rsp + 0x30]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14003da97
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140095ad4
test eax, eax
je 0x14003db24
xor eax, eax
mov byte [0x140125655], al
mov dword [rsp + 0x30], 0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1400fa4ac]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14003db20
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rax, rdi
call qword [0x140131008]
test eax, eax
je 0x14003db20
cmp dword [rsp + 0x30], 0
setne al
mov byte [0x140125c60], al
mov byte [0x140125654], 1
test esi, esi
setns bl
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140079e40
mov eax, ebx
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r14
ret
xor eax, eax
jmp 0x14003daef
mov al, 1
jmp 0x14003da99
Function at 0x14003de70
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
mov rsi, r8
mov ebx, edx
mov edi, ecx
mov rax, qword [0x14010d038]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx eax, byte [r8 + 0x17]
test al, al
jns 0x14003dea3
mov rax, qword [rsi + 8]
test rax, rax
je 0x14003df97
bt ebx, 8
jae 0x14003debf
mov eax, ebx
and eax, 0x200
jne 0x14003df97
cmp edi, 2
lea rax, [0x140125660]
lea rcx, [0x140125860]
cmove rcx, rax
cmp word [rcx], 0
jne 0x14003df97
xorps xmm0, xmm0
lea r14, [rsp + 0x40]
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [r14], 0
je 0x14003df97
cmp byte [0x140125c60], 0
setne al
bt ebx, 8
jb 0x14003df97
shr ebx, 9
and ebx, 1
or bl, al
je 0x14003df97
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea r12, str.SOFTWARE
cmove r12, rax
movzx ebp, byte [rsi + 0x17]
test bpl, bpl
jns 0x14003dfb6
mov r14, qword [rsi]
mov rbp, qword [rsi + 8]
mov edi, 1
xor ebx, ebx
xor eax, eax
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x2c], 0
mov r15, qword [r12 + 8]
mov r13, rbp
sub r13, r15
jb 0x14003df84
mov rdx, qword [r12]
mov rcx, r14
mov r8, r15
call fcn.1400904ac
test eax, eax
je 0x14003dfe1
add r12, 0x28
inc rbx
cmp rbx, rdi
jb 0x14003df64
cmp dword [rsp + 0x2c], 0
jne 0x14003dfbb
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140079e40
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r14, rsi
jmp 0x14003df47
cmp byte [rsi + 0x17], 0
mov rax, rsi
jns 0x14003dfc7
mov rax, qword [rsi]
mov rdx, qword [rsp + 0x30]
sub rdx, rax
sar rdx, 1
mov rcx, rsi
mov r8, qword [rsp + 0x38]
call fcn.1400cd1d0
jmp 0x14003df97
movzx ecx, word [r14 + r15*2]
cmp ecx, 0x5c
je 0x14003dfef
test ecx, ecx
jne 0x14003df84
lea rax, [r14 + r15*2]
mov edx, dword [r12 + 0x10]
mov dword [rsp + 0x2c], edx
cmp edx, 1
je 0x14003e01e
cmp dword [rsp + 0x2c], 2
jne 0x14003e02f
lea rdx, str.WOW6432Node
mov qword [rsp + 0x38], rdx
mov rdx, rax
mov qword [rsp + 0x30], rax
jmp 0x14003e02f
lea rdx, str.WOW6432Node_
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], r14
cmp cx, 0x5c
jne 0x14003e048
lea r14, [rax + 2]
dec r13
cmp word [rax + 2], 0x5c
mov rax, r14
je 0x14003e035
jmp 0x14003e04b
mov r14, rax
mov rdi, qword [r12 + 0x20]
mov r12, qword [r12 + 0x18]
xor ebx, ebx
mov rbp, r13
jmp 0x14003df8b
Function at 0x140040b20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r8
mov rsi, rdx
mov ebx, ecx
mov rax, qword [0x14010d038]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x140040af0]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x140125de0]
lea rdx, [0x140040990]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140040c30
cmp dword [0x140125de8], 0
jne 0x140040c20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x140125dec]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x140040bcc
mov ecx, 1
mov edx, 0x28
call fcn.14004bc70
test rax, rax
je 0x140040c20
mov r14, rax
mov ecx, dword [0x140125dec]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140040c18
lea r15, [0x140125df0]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x140125e00]
mov qword [rax + rbx*8], rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [r14 + rbx*8], rsi
mov esi, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140079e40
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, r14
call fcn.14004bbd0
mov rcx, rsi
mov rax, rdi
call qword [0x140131008]
xor esi, esi
jmp 0x140040bfc
call fcn.14008d670
int3

Function at 0x140041080
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 [0x14011c6e0]
cmp ecx, 0xffffffff
je 0x14004115a
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x14004115a
mov eax, dword [0x140127650]
mov ecx, dword [0x14011c780]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140041164
mov rbx, qword [0x140127648]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400411aa
mov rax, qword [0x140125e38]
inc rax
xor ecx, ecx
lea rdx, [0x140125e40]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x1400411b7
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov ecx, dword [0x140127640]
inc ecx
mov dword [0x140127640], ecx
mov dword [rax + 0x14], ecx
mov qword [0x140125e38], 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 0x1400411cc
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400411d0
jmp 0x1400410aa
lea rcx, [0x140127650]
call fcn.1400789d0
cmp dword [0x140127650], 0xffffffff
jne 0x1400410cf
mov ecx, 8
call fcn.140078874
mov rbx, rax
mov rcx, rax
call fcn.1400568c0
mov qword [0x140127648], rbx
lea rcx, [0x140127650]
call fcn.140078a68
jmp 0x1400410cf
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x1400410e7
inc rcx
cmp rcx, 0x100
jne 0x1400410fa
jmp 0x140041140
int3
Function at 0x1400411d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.140079de0
sub rsp, rax
mov rax, qword [0x14010d038]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x14011c6e0]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x140041284
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x1400412e7
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.14007bf80
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.1400788ec
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.14007b8d0
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.140079e40
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.1400449a0
test al, al
je 0x1400412ea
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x1400412c2
mov eax, 0xffffffff
lock cmpxchg dword [0x14011c6e0], ecx
je 0x140041208
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x14011c6e0]
mov dword [rsp + 0x2c], ecx
jmp 0x140041208
lea rcx, [rsp + 0x2c]
call fcn.1400449a0
test al, al
je 0x1400412ed
cmp dword [rsp + 0x2c], 0xffffffff
je 0x1400412ed
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x14004129b
int3
int3
int3

Function at 0x140041300
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x14011c6e0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14004133e
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 0x140041337
call fcn.1400411d0
jmp 0x14004131e

Function at 0x1400449a0
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 0x1400449b5
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret
Function at 0x140056570
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x50
movapd xmmword [rsp + 0x40], xmm6
mov rsi, rcx
mov rax, qword [0x14010d038]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
call fcn.1400568a0
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x140125250]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x1400565ce
jnp 0x140056634
ucomisd xmm0, xmm6
jne 0x1400565d6
jnp 0x140056630
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x1400f1520]
subpd xmm1, xmmword [0x1400f1530]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x1400f6308]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140079e40
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
jmp 0x140056608
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov edi, eax
call rbx
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x140125260]
mov ecx, dword [0x14011c780]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140056749
mov eax, dword [0x140125270]
mov ecx, dword [0x14011c780]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140056783
rdtsc
mov rbx, rax
mov r14, rdx
xor r12d, r12d
lea r15, [rsp + 0x30]
mov qword [r15], r12
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r13, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [r15], r12
lea rdi, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub r13, qword [0x140125268]
cvtsi2sd xmm1, r13
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x1400f6300]
ucomisd xmm2, xmm1
ja 0x1400565ce
shl r14, 0x20
or rbx, r14
sub rbx, qword [0x140125258]
movq xmm0, rbx
punpckldq xmm0, xmmword [0x1400f1520]
subpd xmm0, xmmword [0x1400f1530]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x140125250], xmm0
jmp 0x1400565ce
lea rcx, [0x140125260]
call fcn.1400789d0
cmp dword [0x140125260], 0xffffffff
jne 0x14005667d
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x140125258], rdx
lea rcx, [0x140125260]
call fcn.140078a68
jmp 0x14005667d
lea rcx, [0x140125270]
call fcn.1400789d0
cmp dword [0x140125270], 0xffffffff
jne 0x1400566a2
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x140125268], rax
lea rcx, [0x140125270]
call fcn.140078a68
jmp 0x1400566a2
Function at 0x1400618e0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14010d038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x140125468]
mov ecx, dword [0x14011c780]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140061940
mov rsi, qword [0x140125460]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140079e40
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x140125468]
call fcn.1400789d0
cmp dword [0x140125468], 0xffffffff
jne 0x14006191c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.14007bf80
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.140078874
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1401254b0]
mov ecx, dword [0x14011c780]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140061a00
lea r8, [0x140125480]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140037f90
mov qword [0x140125460], rsi
lea rcx, [0x140125468]
call fcn.140078a68
jmp 0x14006191c
lea rcx, [0x1401254b0]
call fcn.1400789d0
cmp dword [0x1401254b0], 0xffffffff
jne 0x1400619d1
xorps xmm0, xmm0
movups xmmword [0x1401254a0], xmm0
movups xmmword [0x140125490], xmm0
movups xmmword [0x140125480], xmm0
lea rcx, [0x140125480]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1401254b0]
call fcn.140078a68
jmp 0x1400619d1