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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
movaps xmmword [rsp + 0x30], xmm6
mov ecx, dword [0x140058100]
test ecx, ecx
je 0x14003ef6c
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14003ef85
add rax, 8
jmp case.0x14003e6e9.36
lea rcx, [0x1400580e8]
call fcn.14002aa60
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14003ef63
je 0x14003f01e
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
mov edx, 0x10
call sub.bcryptprimitives.dll_ProcessPrng
movaps xmm6, xmmword [rsp + 0x20]
movzx eax, byte [0x142822100]
mov edx, 0x18
xor ecx, ecx
call fcn.140032080
test rax, rax
je 0x14003f04d
mov rbx, rax
mov rsi, rax
lea rax, [0x1400580e8]
mov qword [rsi], rax
movups xmmword [rsi + 8], xmm6
mov ecx, dword [0x140058100]
test ecx, ecx
je 0x14003f02d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x140058100]
test ecx, ecx
je case.0x14003e6e9.35
dec ecx
add rbx, 8
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x14003f019
mov rcx, qword [0x1428220c8]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
mov rax, rbx
jmp case.0x14003e6e9.36
xor eax, eax
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1400580e8]
call fcn.14002aa60
mov ecx, eax
jmp 0x14003efe3
lea rcx, [0x1400580e8]
call fcn.14002aa60
mov ecx, eax
jmp 0x14003eff7
ud2

Function at 0x140040670
Capabilities:
Set registry value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
mov r14, r9
mov rdi, r8
mov rbx, rdx
mov r15, rcx
movzx eax, byte [0x142822100]
mov edx, 4
xor ecx, ecx
call fcn.140032080
test rax, rax
je 0x14004074d
mov rsi, rax
mov eax, dword [r14]
mov dword [rsi], eax
mov r14, qword [r15]
add rdi, rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rdi
mov word [rsp + 0x48], 0
mov dword [rsp + 0x50], 1
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x38]
call fcn.14003c560
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x28], 4
mov rcx, r14
mov rdx, rbx
xor r8d, r8d
mov r9d, 4
call sub.ADVAPI32.dll_RegSetValueExW
mov edi, eax
cmp qword [rsp + 0x58], 0
je 0x14004071a
mov rcx, qword [0x1428220c8]
xor edx, edx
mov r8, rbx
call sub.KERNEL32.dll_HeapFree
mov rcx, qword [0x1428220c8]
xor ebx, ebx
xor edx, edx
mov r8, rsi
call sub.KERNEL32.dll_HeapFree
mov rax, rdi
shl rax, 0x20
or rax, 2
test edi, edi
cmovne rbx, rax
mov rax, rbx
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
ud2
Function at 0x140041d20
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov rax, rdx
mov rsi, rcx
lea rdx, [rsp + 0x24]
mov rcx, rax
call sub.shell32.dll_CommandLineToArgvW
test rax, rax
je 0x140041e76
mov rdi, rax
mov qword [rsp + 0x40], rsi
movsxd r13, dword [rsp + 0x24]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 8
mov qword [rsp + 0x38], 0
test r13, r13
je 0x140041e4c
shl r13, 3
mov esi, 8
xor ebp, ebp
lea rbx, [rsp + 0x48]
lea r14, [rsp + 0x80]
xor r15d, r15d
jmp 0x140041dc9
mov rax, qword [rsp + 0x70]
mov qword [rsi + rbp + 0x10], rax
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rsi + rbp], xmm0
inc r15
mov qword [rsp + 0x38], r15
add rbp, 0x18
add r13, 0xfffffffffffffff8
je 0x140041e4c
mov r12, qword [rdi + r15*8]
mov rcx, r12
call sub.msvcrt.dll_wcslen
lea rax, [r12 + rax*2]
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x88], rax
mov word [rsp + 0x90], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 1
mov qword [rsp + 0x58], 0
mov rcx, rbx
mov rdx, r14
call fcn.140042b00
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [rsp + 0x48]
movaps xmmword [rsp + 0x60], xmm0
cmp r15, qword [rsp + 0x28]
jne 0x140041da0
lea rcx, [rsp + 0x28]
call fcn.140042770
mov rsi, qword [rsp + 0x30]
jmp 0x140041da0
mov rcx, rdi
call sub.KERNEL32.dll_LocalFree
test rax, rax
jne 0x140041e5e
call sub.KERNEL32.dll_GetLastError
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rcx], xmm0
jmp 0x140041e8d
mov qword [rsi], 0
mov qword [rsi + 8], 8
mov qword [rsi + 0x10], 0
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x1400580c0]
test ecx, ecx
je 0x140042dfa
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140042e13
add rax, 8
jmp 0x140042eaa
lea rcx, [0x1400580a8]
call fcn.14002aa60
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x140042df1
je 0x140042ea8
test rsi, rsi
je 0x140042e2f
cmp dword [rsi], 0
mov dword [rsi], 0
je 0x140042e2f
mov rdi, qword [rsi + 4]
jmp 0x140042e31
xor edi, edi
movzx eax, byte [0x142822100]
mov edx, 0x10
xor ecx, ecx
call fcn.140032080
test rax, rax
je 0x140042ed2
mov rbx, rax
mov rsi, rax
lea rax, [0x1400580a8]
mov qword [rsi], rax
mov qword [rsi + 8], rdi
mov ecx, dword [0x1400580c0]
test ecx, ecx
je 0x140042eb2
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x1400580c0]
test ecx, ecx
je 0x140042ec2
dec ecx
add rbx, 8
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x140042ea3
mov rcx, qword [0x1428220c8]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
mov rax, rbx
jmp 0x140042eaa
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1400580a8]
call fcn.14002aa60
mov ecx, eax
jmp 0x140042e6d
lea rcx, [0x1400580a8]
call fcn.14002aa60
mov ecx, eax
jmp 0x140042e81
ud2
Function at 0x140042ee0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x140046f30
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x140058120]
test ecx, ecx
je 0x140046f5a
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140046f73
add rax, 8
jmp 0x14004700a
lea rcx, [0x140058108]
call fcn.14002aa60
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x140046f51
je 0x140046f8f
test rsi, rsi
je 0x140046f93
mov rdi, qword [rsi]
mov qword [rsi], 0
test rdi, rdi
je 0x140046f95
mov rdi, qword [rsi + 8]
jmp 0x140046f95
xor eax, eax
jmp 0x14004700a
xor edi, edi
movzx eax, byte [0x142822100]
mov edx, 0x10
xor ecx, ecx
call fcn.140032080
test rax, rax
je 0x140047032
mov rbx, rax
mov rsi, rax
lea rax, [0x140058108]
mov qword [rsi], rax
mov qword [rsi + 8], rdi
mov ecx, dword [0x140058120]
test ecx, ecx
je 0x140047012
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x140058120]
test ecx, ecx
je 0x140047022
dec ecx
add rbx, 8
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x140047007
mov rcx, qword [0x1428220c8]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
mov rax, rbx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140058108]
call fcn.14002aa60
mov ecx, eax
jmp 0x140046fd1
lea rcx, [0x140058108]
call fcn.14002aa60
mov ecx, eax
jmp 0x140046fe5
ud2
Function at 0x1400441e0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x140044222
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 4
jb 0x14004422a
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x14004423b
jmp 0x140044252
xor r10d, r10d
jmp 0x1400442dd
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x140044252
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x140044269
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x140044289
add r11, r8
jmp 0x1400443bb
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x140044352
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x140044300
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 4
jb 0x140044370
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x140044382
jmp 0x14004439d
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x14004439d
lea rcx, [rdx + r8]
movzx esi, word [r10 + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x1400443b7
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret
Function at 0x140045730
Capabilities:
Get memory capacity

Disassembly:
push rsi
push rdi
sub rsp, 0x1d8
movaps xmmword [rsp + 0x1c0], xmm7
movaps xmmword [rsp + 0x1b0], xmm6
mov rsi, rcx
xor ecx, ecx
call fcn.140047250
test rax, rax
je 0x1400459ea
movups xmm6, xmmword [rax]
inc qword [rax]
movzx eax, byte [0x142822100]
mov edx, 0x56410
xor ecx, ecx
call fcn.140032080
test rax, rax
je 0x1400459ea
mov rdi, rax
add rdi, 0x56000
mov r8d, 0x410
mov rcx, rdi
mov dl, 0xff
call sub.msvcrt.dll_memset
movzx eax, byte [0x142822100]
mov edx, 9
xor ecx, ecx
call fcn.140032080
test rax, rax
je 0x1400459ea
movabs rcx, 0x5043206c61746f54
mov qword [rax], rcx
mov byte [rax + 8], 0x55
mov qword [rsp + 0x90], 9
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 9
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 1
xorps xmm7, xmm7
movups xmmword [rsp + 0xb8], xmm7
mov qword [rsp + 0xc8], 1
mov qword [rsp + 0xd0], 0
movabs rax, 0x8000000000000000
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xf0], 0
mov dword [rsp + 0xf8], 0
mov qword [rsp + 0x100], 0
mov qword [rsp + 0x108], 8
mov qword [rsp + 0x110], 0
mov byte [rsp + 0x118], 0
mov qword [rsp + 0x120], rdi
mov qword [rsp + 0x128], 0x3ff
mov qword [rsp + 0x130], 0x380
mov qword [rsp + 0x138], 0
movups xmmword [rsp + 0x140], xmm6
movups xmmword [rsp + 0x160], xmm7
movups xmmword [rsp + 0x150], xmm7
mov qword [rsp + 0x170], 0
movaps xmmword [rsp + 0x20], xmm7
movaps xmmword [rsp + 0x50], xmm7
movaps xmmword [rsp + 0x40], xmm7
movaps xmmword [rsp + 0x30], xmm7
mov dword [rsp + 0x20], 0x40
lea rcx, [rsp + 0x20]
call sub.KERNEL32.dll_GlobalMemoryStatusEx
test eax, eax
jne 0x1400458f4
call sub.KERNEL32.dll_GetLastError
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rsp + 0x150], xmm0
movaps xmmword [rsp + 0x70], xmm7
movaps xmmword [rsp + 0x60], xmm7
movaps xmmword [rsp + 0x50], xmm7
movaps xmmword [rsp + 0x40], xmm7
movaps xmmword [rsp + 0x30], xmm7
movaps xmmword [rsp + 0x20], xmm7
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x20]
mov edx, 0x68
call sub.KERNEL32.dll_K32GetPerformanceInfo
test eax, eax
je 0x14004598e
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x30]
xor r9d, r9d
sub rdx, r8
cmovb rdx, r9
mov rcx, qword [rsp + 0x70]
mov rax, rcx
mul rdx
mov r10, 0xffffffffffffffff
cmovo rax, r10
mov rdx, qword [rsp + 0x28]
sub rdx, r8
cmovb rdx, r9
mov qword [rsp + 0x160], rax
mov rax, rcx
mul rdx
cmovo rax, r10
mov qword [rsp + 0x168], rax
lea rdi, [rsp + 0x90]
mov rcx, rdi
call fcn.140048060
mov byte [rsp + 0x20], 1
movabs rax, 0x202020202020101
mov qword [rsp + 0x21], rax
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140048470
mov r8d, 0x120
mov rcx, rsi
mov rdx, rdi
call sub.msvcrt.dll_memcpy
movaps xmm6, xmmword [rsp + 0x1b0]
movaps xmm7, xmmword [rsp + 0x1c0]
add rsp, 0x1d8
pop rdi
pop rsi
ret
ud2
Function at 0x1400459f0
Capabilities:
Get memory capacity

Disassembly:
push rsi
sub rsp, 0xa0
movaps xmmword [rsp + 0x90], xmm6
mov rsi, rcx
xorps xmm6, xmm6
movaps xmmword [rsp + 0x20], xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x20], 0x40
lea rcx, [rsp + 0x20]
call sub.KERNEL32.dll_GlobalMemoryStatusEx
test eax, eax
jne 0x140045a35
call sub.KERNEL32.dll_GetLastError
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rsi + 0xc0], xmm0
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x20], xmm6
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x20]
mov edx, 0x68
call sub.KERNEL32.dll_K32GetPerformanceInfo
test eax, eax
je 0x140045acc
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x30]
xor r9d, r9d
sub rdx, r8
cmovb rdx, r9
mov rcx, qword [rsp + 0x70]
mov rax, rcx
mul rdx
mov r10, 0xffffffffffffffff
cmovo rax, r10
mov rdx, qword [rsp + 0x28]
sub rdx, r8
cmovb rdx, r9
mov qword [rsi + 0xd0], rax
mov rax, rcx
mul rdx
cmovo rax, r10
mov qword [rsi + 0xd8], rax
mov rcx, rsi
call fcn.140048060
mov byte [rsp + 0x20], 1
movabs rax, 0x202020202020101
mov qword [rsp + 0x21], rax
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140048470
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa0
pop rsi
ret
Function at 0x140046290
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x820
mov ecx, dword [0x1400580e0]
test ecx, ecx
je 0x1400462ba
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400462d3
add rax, 8
jmp 0x1400464a5
lea rcx, [0x1400580c8]
call fcn.14002aa60
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x1400462b1
je 0x1400464a3
mov rax, qword [0x142822030]
cmp rax, 3
jne 0x1400464b0
mov rsi, qword [0x142822038]
lock inc qword [rsi]
jle 0x1400464c6
mov eax, 0x60
movups xmm0, xmmword [0x14281b468]
movups xmm1, xmmword [0x14281b458]
nop
movups xmmword [rsp + rax - 0x30], xmm0
movups xmmword [rsp + rax - 0x40], xmm1
movups xmmword [rsp + rax - 0x20], xmm1
movups xmmword [rsp + rax - 0x10], xmm0
movups xmmword [rsp + rax], xmm1
movups xmmword [rsp + rax + 0x10], xmm0
movups xmmword [rsp + rax + 0x20], xmm1
movups xmmword [rsp + rax + 0x30], xmm0
sub rax, 0xffffffffffffff80
cmp rax, 0x860
jne 0x140046310
movzx eax, byte [0x142822100]
mov edx, 0x980
xor ecx, ecx
call fcn.140032080
test rax, rax
je 0x1400464c6
mov rbx, rax
and rbx, 0xffffffffffffff80
lea rdi, [rbx + 0x80]
mov qword [rbx + 0x78], rax
mov qword [rbx + 0x80], 0
mov qword [rbx + 0x88], rsi
lea rcx, [rbx + 0x90]
lea rdx, [rsp + 0x20]
mov r8d, 0x800
call sub.msvcrt.dll_memcpy
xorps xmm0, xmm0
movaps xmmword [rbx + 0x890], xmm0
mov qword [rbx + 0x8a0], 1
mov qword [rbx + 0x8a8], 0
mov qword [rbx + 0x900], 0
mov rcx, qword [0x142822038]
mov rax, qword [rcx + 0x200]
mov qword [rbx + 0x80], rax
lock cmpxchg qword [rcx + 0x200], rdi
je 0x1400463fe
nop word cs:[rax + rax]
mov qword [rdi], rax
lock cmpxchg qword [rcx + 0x200], rdi
jne 0x1400463f0
movzx eax, byte [0x142822100]
mov edx, 0x10
xor ecx, ecx
call fcn.140032080
test rax, rax
je 0x1400464c6
mov rbx, rax
mov rsi, rax
lea rax, [0x1400580c8]
mov qword [rsi], rax
mov qword [rsi + 8], rdi
mov ecx, dword [0x1400580e0]
test ecx, ecx
je 0x1400464c8
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x1400580e0]
test ecx, ecx
je 0x1400464db
dec ecx
add rbx, 8
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x14004649e
mov rcx, qword [rdi + 8]
mov rax, qword [rcx + 0x820]
lea rdx, [rax - 1]
mov qword [rcx + 0x820], rdx
cmp qword [rcx + 0x818], 0
jne 0x14004648d
cmp rax, 1
je 0x1400464ee
mov rcx, qword [0x1428220c8]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
mov rax, rbx
jmp 0x1400464a5
xor eax, eax
add rsp, 0x820
pop rbx
pop rdi
pop rsi
ret
call fcn.140014fb0
mov rsi, qword [0x142822038]
lock inc qword [rsi]
jg 0x1400462fb
ud2
lea rcx, [0x1400580c8]
call fcn.14002aa60
mov ecx, eax
jmp 0x14004643e
lea rcx, [0x1400580c8]
call fcn.14002aa60
mov ecx, eax
jmp 0x140046456
call fcn.140014bf0
jmp 0x14004648d
Function at 0x140046f30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x140046f30
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x140058120]
test ecx, ecx
je 0x140046f5a
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140046f73
add rax, 8
jmp 0x14004700a
lea rcx, [0x140058108]
call fcn.14002aa60
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x140046f51
je 0x140046f8f
test rsi, rsi
je 0x140046f93
mov rdi, qword [rsi]
mov qword [rsi], 0
test rdi, rdi
je 0x140046f95
mov rdi, qword [rsi + 8]
jmp 0x140046f95
xor eax, eax
jmp 0x14004700a
xor edi, edi
movzx eax, byte [0x142822100]
mov edx, 0x10
xor ecx, ecx
call fcn.140032080
test rax, rax
je 0x140047032
mov rbx, rax
mov rsi, rax
lea rax, [0x140058108]
mov qword [rsi], rax
mov qword [rsi + 8], rdi
mov ecx, dword [0x140058120]
test ecx, ecx
je 0x140047012
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x140058120]
test ecx, ecx
je 0x140047022
dec ecx
add rbx, 8
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x140047007
mov rcx, qword [0x1428220c8]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
mov rax, rbx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140058108]
call fcn.14002aa60
mov ecx, eax
jmp 0x140046fd1
lea rcx, [0x140058108]
call fcn.14002aa60
mov ecx, eax
jmp 0x140046fe5
ud2

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
movaps xmmword [rsp + 0x30], xmm6
mov rsi, rcx
mov ecx, dword [0x140058100]
test ecx, ecx
je 0x14004706f
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140047088
add rax, 8
jmp 0x140047139
lea rcx, [0x1400580e8]
call fcn.14002aa60
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x140047066
je 0x140047137
test rsi, rsi
je 0x1400470a4
movups xmm6, xmmword [rsi + 8]
cmp qword [rsi], 0
mov qword [rsi], 0
jne 0x1400470c0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
mov edx, 0x10
call sub.bcryptprimitives.dll_ProcessPrng
movaps xmm6, xmmword [rsp + 0x20]
movzx eax, byte [0x142822100]
mov edx, 0x18
xor ecx, ecx
call fcn.140032080
test rax, rax
je 0x140047166
mov rbx, rax
mov rsi, rax
lea rax, [0x1400580e8]
mov qword [rsi], rax
movups xmmword [rsi + 8], xmm6
mov ecx, dword [0x140058100]
test ecx, ecx
je 0x140047146
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x140058100]
test ecx, ecx
je 0x140047156
dec ecx
add rbx, 8
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x140047132
mov rcx, qword [0x1428220c8]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
mov rax, rbx
jmp 0x140047139
xor eax, eax
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1400580e8]
call fcn.14002aa60
mov ecx, eax
jmp 0x1400470fc
lea rcx, [0x1400580e8]
call fcn.14002aa60
mov ecx, eax
jmp 0x140047110
ud2
jmp 0x140047040
Function at 0x140047170
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [rcx]
mov rbx, qword [rcx + 0x18]
movdqa xmm0, xmmword [rdi]
pmovmskb eax, xmm0
not eax
lea r14, [rdi + 0x10]
jmp 0x1400471bd
tzcnt ecx, eax
shl ecx, 5
mov rdx, rdi
sub rdx, rcx
lea ebp, [rax - 1]
and ebp, eax
mov rcx, qword [rdx - 8]
call sub.pdh.dll_PdhRemoveCounter
mov eax, ebp
sub rbx, 1
jb 0x1400471ef
test ax, ax
jne 0x1400471a0
nop dword [rax + rax]
movdqa xmm0, xmmword [r14]
pmovmskb eax, xmm0
add rdi, 0xfffffffffffffe00
add r14, 0x10
cmp eax, 0xffff
je 0x1400471d0
not eax
jmp 0x1400471a0
mov rcx, qword [rsi + 0x38]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x140047206
call sub.KERNEL32.dll_CloseHandle
test eax, eax
je 0x14004721f
mov rcx, qword [rsi + 0x30]
lea rax, [rcx + 1]
cmp rax, 2
jae 0x140047232
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [rsi + 0x30]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x140047214
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
jmp 0x14005599c
jmp qword [sym.imp.pdh.dll_PdhCloseQuery]

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
movaps xmmword [rsp + 0x30], xmm6
mov rsi, rcx
mov ecx, dword [0x140058100]
test ecx, ecx
je 0x14004706f
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140047088
add rax, 8
jmp 0x140047139
lea rcx, [0x1400580e8]
call fcn.14002aa60
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x140047066
je 0x140047137
test rsi, rsi
je 0x1400470a4
movups xmm6, xmmword [rsi + 8]
cmp qword [rsi], 0
mov qword [rsi], 0
jne 0x1400470c0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
mov edx, 0x10
call sub.bcryptprimitives.dll_ProcessPrng
movaps xmm6, xmmword [rsp + 0x20]
movzx eax, byte [0x142822100]
mov edx, 0x18
xor ecx, ecx
call fcn.140032080
test rax, rax
je 0x140047166
mov rbx, rax
mov rsi, rax
lea rax, [0x1400580e8]
mov qword [rsi], rax
movups xmmword [rsi + 8], xmm6
mov ecx, dword [0x140058100]
test ecx, ecx
je 0x140047146
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x140058100]
test ecx, ecx
je 0x140047156
dec ecx
add rbx, 8
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x140047132
mov rcx, qword [0x1428220c8]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
mov rax, rbx
jmp 0x140047139
xor eax, eax
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1400580e8]
call fcn.14002aa60
mov ecx, eax
jmp 0x1400470fc
lea rcx, [0x1400580e8]
call fcn.14002aa60
mov ecx, eax
jmp 0x140047110
ud2
jmp 0x140047040