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

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x828
mov esi, dword [0x1400430a0]
test esi, esi
je 0x140026479
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x14002646c
je 0x14002646a
mov rax, qword [0x14009b030]
cmp rax, 3
jne 0x14002649a
mov rdi, qword [0x14009b038]
lock inc qword [rdi]
jle 0x1400264b0
mov eax, 0x60
movups xmm0, xmmword [0x14004a7e0]
movups xmm1, xmmword [0x14004a7d0]
nop dword [rax + rax]
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 0x140026310
movzx eax, byte [0x14009b108]
mov edx, 0x980
xor ecx, ecx
call fcn.14002a8d0
test rax, rax
je 0x1400264b0
mov r14, rax
and r14, 0xffffffffffffff80
lea rbx, [r14 + 0x80]
mov qword [r14 + 0x78], rax
mov qword [r14 + 0x80], 0
mov qword [r14 + 0x88], rdi
lea rcx, [r14 + 0x90]
lea rdx, [rsp + 0x20]
mov r8d, 0x800
call sub.msvcrt.dll_memcpy
xorps xmm0, xmm0
movaps xmmword [r14 + 0x890], xmm0
mov qword [r14 + 0x8a0], 1
mov qword [r14 + 0x8a8], 0
mov qword [r14 + 0x900], 0
mov rax, qword [rdi + 0x200]
mov qword [r14 + 0x80], rax
lock cmpxchg qword [rdi + 0x200], rbx
je 0x1400263ee
nop
mov qword [rbx], rax
lock cmpxchg qword [rdi + 0x200], rbx
jne 0x1400263e0
movzx eax, byte [0x14009b108]
mov edx, 0x10
xor ecx, ecx
call fcn.14002a8d0
test rax, rax
je 0x1400264b0
mov qword [rax], rbx
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x140026465
mov rcx, qword [rdi]
mov rax, qword [rcx + 0x820]
lea rdx, [rax - 1]
mov qword [rcx + 0x820], rdx
cmp qword [rcx + 0x818], 0
jne 0x140026454
cmp rax, 1
je 0x1400264b2
mov rcx, qword [0x14009b0f0]
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapFree
mov rax, rsi
jmp 0x14002646c
xor eax, eax
add rsp, 0x828
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x140043088]
call fcn.14002baa0
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400262cd
jmp 0x14002646c
call fcn.140012800
mov rdi, qword [0x14009b038]
lock inc qword [rdi]
jg 0x1400262f5
ud2
call fcn.140011bf0
jmp 0x140026454
Function at 0x1400285c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
movzx r9d, byte [rdx + 0x38]
movzx r8d, byte [rdx + 0x3a]
test r8b, r8b
setne al
cmp r9b, 1
ja 0x140028642
test r8b, r8b
jne 0x14002861a
movzx esi, byte [rdx + 0x10]
lea r8d, [rsi - 5]
cmp r8b, 1
ja 0x14002861a
mov r10, qword [rdx]
mov r8, qword [rdx + 8]
xor r11d, r11d
test r9b, r9b
jne 0x140028611
cmp sil, 6
je 0x140028611
mov r11d, 2
cmp r8, 1
jbe 0x1400287f7
cmp r11, r8
jne 0x140028755
xor r8d, r8d
test r9b, r9b
jne 0x140028647
movzx r9d, byte [rdx + 0x10]
lea r10, [0x14004516c]
movsxd r9, dword [r10 + r9*4]
add r9, r10
jmp r9
mov r9, qword [rdx + 0x20]
add r9, 4
jmp 0x14002864a
xor eax, eax
xor r8d, r8d
xor r9d, r9d
movzx r11d, r8b
movzx edi, al
lea r10, [r11 + rdi]
add r10, r9
mov rax, qword [rdx + 8]
cmp r10, rax
ja 0x1400287f7
mov rsi, qword [rdx]
lea r8, [rsi + r10]
movzx edx, byte [rdx + 0x10]
cmp r10, rax
jne 0x14002867a
xor r11d, r11d
jmp 0x1400286f9
add r9, rdi
add r9, r11
sub r9, rax
inc r9
lea rdi, [rax + rsi]
dec rdi
xor r11d, r11d
cmp dl, 3
jae 0x1400286c0
nop word cs:[rax + rax]
cmp byte [rdi], 0x5c
je 0x1400286db
inc r9
dec rdi
cmp r9, 1
jne 0x1400286a0
jmp 0x1400286f9
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x1400286db
cmp ebx, 0x5c
je 0x1400286db
inc r9
dec rdi
cmp r9, 1
jne 0x1400286c0
jmp 0x1400286f9
neg r9
add r10, r9
inc r10
cmp r10, rax
ja 0x1400287f7
add rsi, r10
mov r11d, 1
mov r8, rsi
sub rax, r10
je 0x14002873c
mov r9b, 9
cmp rax, 2
je 0x140028727
cmp rax, 1
jne 0x14002873f
cmp byte [r8], 0x2e
jne 0x14002873f
xor r9d, r9d
cmp dl, 3
setae r9b
lea r9d, [r9 + r9*2]
add r9d, 7
jmp 0x14002873f
cmp byte [r8], 0x2e
jne 0x14002873f
cmp byte [r8 + 1], 0x2e
sete r9b
xor r9b, 9
jmp 0x14002873f
mov r9b, 0xa
add r11, rax
mov qword [rcx], r11
mov byte [rcx + 8], r9b
mov qword [rcx + 0x10], r8
mov qword [rcx + 0x18], rax
pop rbx
pop rdi
pop rsi
ret
add r8, r10
lea rsi, [r10 + r11]
inc rsi
cmp rsi, r8
sete r8b
movzx r10d, byte [r10 + r11]
test r8b, 1
jne 0x1400287e7
cmp r10b, 0x2e
jne 0x1400287e7
movzx r8d, byte [rsi]
cmp r8b, 0x5c
sete r10b
cmp r8b, 0x2f
sete r8b
or r8b, r10b
jmp 0x14002861d
mov r9, qword [rdx + 0x20]
mov r10, qword [rdx + 0x30]
lea r11, [r10 + 1]
test r10, r10
cmove r11, r10
add r9, r11
add r9, 8
jmp 0x14002864a
cmp r10b, 0x2e
sete r10b
and r8b, r10b
jmp 0x14002861d
ud2
Function at 0x1400293b0
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa8
test r8, r8
je 0x1400293f8
mov rdi, r9
mov r14, r8
mov rbx, rdx
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
mov eax, 1
test rcx, rcx
je 0x1400293fe
cmp rcx, 0xffffffffffffffff
jne 0x140029415
call sub.kernel32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
jmp 0x140029408
xor edx, edx
xor eax, eax
jmp 0x140029408
movabs rdx, 0x600000002
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r14
ret
mov dword [rsp + 0x78], 0
lea rdx, [rsp + 0x78]
mov rsi, rcx
call sub.kernel32.dll_GetConsoleMode
test eax, eax
je 0x1400294df
movzx ecx, byte [rdi + 4]
test rcx, rcx
je 0x140029559
cmp cl, 4
jae 0x140029681
movzx edx, byte [rbx]
mov eax, edx
and al, 0xc0
cmp al, 0x80
mov eax, 1
jne 0x1400295bd
mov byte [rdi + rcx], dl
movzx eax, byte [rdi + 4]
inc al
mov byte [rdi + 4], al
movzx ecx, byte [rdi]
lea rdx, [0x140095a08]
movzx ebx, byte [rcx + rdx]
cmp al, bl
jb 0x140029609
cmp al, 4
ja 0x140029681
movzx r8d, al
lea rcx, [rsp + 0x78]
mov rdx, rdi
call fcn.140011980
mov byte [rdi + 4], 0
cmp qword [rsp + 0x78], 0
jne 0x140029615
cmp qword [rsp + 0x88], rbx
jne 0x140029681
mov rdx, qword [rsp + 0x80]
mov rcx, rsi
mov r8, rbx
call fcn.140029690
test rax, rax
jne 0x140029408
cmp rbx, rdx
je 0x140029609
jmp 0x140029681
movups xmm0, xmmword [0x140095d48]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r14, rax
cmovb rax, r14
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x140029545
mov rcx, rsi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140029626
test eax, eax
js 0x1400295cd
mov rdx, qword [rsp + 0x68]
xor eax, eax
jmp 0x140029408
cmp r14, 0x1000
mov r8d, 0x1000
cmovb r8, r14
lea rcx, [rsp + 0x60]
mov rdx, rbx
call fcn.140011980
cmp qword [rsp + 0x60], 0
je 0x1400295d9
mov r8, qword [rsp + 0x68]
test r8, r8
je 0x1400295f0
cmp r8, r14
ja 0x140029681
lea rcx, [rsp + 0x78]
mov rdx, rbx
call fcn.140011980
cmp qword [rsp + 0x78], 0
jne 0x140029681
mov rdx, qword [rsp + 0x80]
mov r8, qword [rsp + 0x88]
jmp 0x1400295e3
mov byte [rdi + 4], 0
lea rdx, str._b__t_
jmp 0x140029408
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
jmp 0x1400293e7
mov rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x70]
mov rcx, rsi
call fcn.140029690
jmp 0x140029408
movzx eax, byte [rbx]
lea rcx, [0x140095a08]
movzx ecx, byte [rax + rcx]
cmp rcx, r14
jbe 0x140029615
mov byte [rdi], al
mov byte [rdi + 4], 1
mov edx, 1
xor eax, eax
jmp 0x140029408
mov eax, 1
lea rdx, str._b__t_
jmp 0x140029408
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.X__t_
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140029af0
mov rcx, rax
call fcn.14002bc20
mov ecx, 7
int 0x29
ud2
Function at 0x140029ef0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov esi, dword [0x140043020]
test esi, esi
je 0x140029fac
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x140029fa4
je 0x140029f37
test rdi, rdi
je 0x140029f3b
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x140029f3d
mov rbx, qword [rdi + 8]
jmp 0x140029f3d
xor eax, eax
jmp 0x140029fa4
xor ebx, ebx
movzx eax, byte [0x14009b108]
mov edx, 0x10
xor ecx, ecx
call fcn.14002a8d0
test rax, rax
je 0x140029fcd
mov qword [rax], rbx
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x140029fa1
mov rax, qword [rdi]
test rax, rax
je 0x140029f90
lock dec qword [rax]
jne 0x140029f90
mov rcx, rdi
call fcn.14002bbc0
mov rcx, qword [0x14009b0f0]
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapFree
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140043008]
call fcn.14002baa0
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x140029f1b
jmp 0x140029fa4
ud2

Function at 0x140029fd0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
call sub.kernel32.dll_GetSystemInfo
mov ecx, dword [rsp + 0x40]
xor eax, eax
test rcx, rcx
sete al
lea rdx, str.The_number_of_hardware_threads_is_not_known_for_the_target_platform
cmovne rdx, rcx
add rsp, 0x58
ret

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov esi, dword [0x140043040]
test esi, esi
je 0x14002a611
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x14002a609
je 0x14002a607
movzx eax, byte [0x14009b108]
mov edx, 0x10
xor ecx, ecx
call fcn.14002a8d0
test rax, rax
je 0x14002a632
mov qword [rax], 0
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x14002a602
mov rax, qword [rdi]
test rax, rax
je 0x14002a5f1
lock dec qword [rax]
jne 0x14002a5f1
mov rcx, qword [rdi]
call fcn.14002bb70
mov rcx, qword [0x14009b0f0]
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapFree
mov rax, rsi
jmp 0x14002a609
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140043028]
call fcn.14002baa0
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x14002a594
jmp 0x14002a609
ud2
Function at 0x14002baa0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
cmp qword [rcx], 0
je 0x14002bb25
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
cmp eax, 1
jne 0x14002bb5c
cmp dword [rsp + 0x2c], 0
je 0x14002bb4d
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x14002bb5e
mov edi, eax
mov rax, qword [0x14009e038]
mov rax, qword [0x14009b0f8]
nop dword [rax + rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x14009b0f8], rsi
jne 0x14002bb00
mov eax, edi
inc eax
mov dword [rsi + 0x18], eax
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x14002bb52
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x14002bb5c
mov edi, eax
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
je 0x14002bb52
mov esi, eax
mov ecx, edi
call sub.kernel32.dll_TlsFree
dec esi
mov edi, esi
jmp 0x14002bb52
mov edi, dword [rsi + 0x18]
dec edi
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
ud2
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
ud2

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

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov rdi, rcx
mov esi, dword [0x140043068]
test esi, esi
je 0x14002bf9f
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x14002bfba
add rax, 4
jmp 0x14002c02b
lea rcx, [0x140043050]
call fcn.14002baa0
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x14002bf96
je 0x14002c029
xor ebp, ebp
test rdi, rdi
je 0x14002bfd2
cmp byte [rdi], 0
mov byte [rdi], 0
movzx eax, byte [rdi + 1]
cmove eax, ebp
mov ebp, eax
movzx eax, byte [0x14009b108]
mov edx, 8
xor ecx, ecx
call fcn.14002a8d0
test rax, rax
je 0x14002c036
mov rbx, rax
mov dword [rax], esi
add rax, 4
mov r14, rax
mov byte [rbx + 4], bpl
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x14002c024
mov rcx, qword [0x14009b0f0]
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapFree
mov rax, r14
jmp 0x14002c02b
xor eax, eax
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
ud2
Function at 0x14002da60
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 0x14002dbb6
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 0x14002db8c
shl r13, 3
mov esi, 8
xor ebp, ebp
lea rbx, [rsp + 0x48]
lea r14, [rsp + 0x80]
xor r15d, r15d
jmp 0x14002db09
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 0x14002db8c
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.140035800
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 0x14002dae0
lea rcx, [rsp + 0x28]
call fcn.14002e900
mov rsi, qword [rsp + 0x30]
jmp 0x14002dae0
mov rcx, rdi
call sub.kernel32.dll_LocalFree
test rax, rax
jne 0x14002db9e
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 0x14002dbcd
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 0x14002ed30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
xor ecx, ecx
jmp 0x140035ad0
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov esi, dword [0x1400430c0]
test esi, esi
je 0x140035b72
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x140035b6a
je 0x140035b13
test rdi, rdi
je 0x140035b17
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x140035b19
mov rbx, qword [rdi + 8]
jmp 0x140035b19
xor eax, eax
jmp 0x140035b6a
xor ebx, ebx
movzx eax, byte [0x14009b108]
mov edx, 0x10
xor ecx, ecx
call fcn.14002a8d0
test rax, rax
je 0x140035b93
mov qword [rax], rbx
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x140035b67
mov rcx, qword [0x14009b0f0]
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapFree
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1400430a8]
call fcn.14002baa0
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x140035af7
jmp 0x140035b6a
ud2
Function at 0x14002fcc0
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.1400321a0
test rax, rax
je 0x14002ff7a
movups xmm6, xmmword [rax]
inc qword [rax]
movzx eax, byte [0x14009b108]
mov edx, 0x56410
xor ecx, ecx
call fcn.14002a8d0
test rax, rax
je 0x14002ff7a
mov rdi, rax
add rdi, 0x56000
mov r8d, 0x410
mov rcx, rdi
mov dl, 0xff
call sub.msvcrt.dll_memset
movzx eax, byte [0x14009b108]
mov edx, 9
xor ecx, ecx
call fcn.14002a8d0
test rax, rax
je 0x14002ff7a
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 0x14002fe84
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 0x14002ff1e
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.1400321b0
mov byte [rsp + 0x20], 1
movabs rax, 0x202020202020101
mov qword [rsp + 0x21], rax
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400325c0
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 0x14002ff80
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 0x14002ffc5
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 0x14003005c
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.1400321b0
mov byte [rsp + 0x20], 1
movabs rax, 0x202020202020101
mov qword [rsp + 0x21], rax
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.1400325c0
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa0
pop rsi
ret
Function at 0x1400321a0
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 rdi, rcx
mov esi, dword [0x140043100]
test esi, esi
je 0x14000151a
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x14000150d
je 0x14000150b
test rdi, rdi
je 0x14000149c
movups xmm6, xmmword [rdi + 8]
cmp qword [rdi], 0
mov qword [rdi], 0
jne 0x1400014b8
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 [0x14009b108]
mov edx, 0x18
xor ecx, ecx
call fcn.14002a8d0
test rax, rax
je 0x14000153b
movups xmmword [rax], xmm6
mov dword [rax + 0x10], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x140001506
mov rcx, qword [0x14009b0f0]
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapFree
mov rax, rsi
jmp 0x14000150d
xor eax, eax
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1400430e8]
call fcn.14002baa0
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x140001480
jmp 0x14000150d
ud2
jmp 0x140001450
Function at 0x140034350
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 0x14003439d
lea ebp, [rax - 1]
and ebp, eax
tzcnt eax, eax
shl eax, 5
mov rcx, rdi
sub rcx, rax
mov rcx, qword [rcx - 8]
call sub.pdh.dll_PdhRemoveCounter
mov eax, ebp
sub rbx, 1
jb 0x1400343cf
test ax, ax
jne 0x140034380
nop dword [rax + rax]
movdqa xmm0, xmmword [r14]
pmovmskb eax, xmm0
add rdi, 0xfffffffffffffe00
add r14, 0x10
cmp eax, 0xffff
je 0x1400343b0
not eax
jmp 0x140034380
mov rcx, qword [rsi + 0x38]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x1400343e6
call sub.kernel32.dll_CloseHandle
test eax, eax
je 0x1400343ff
mov rcx, qword [rsi + 0x30]
lea rax, [rcx + 1]
cmp rax, 2
jae 0x140034412
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 0x1400343f4
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
jmp 0x1400414fc
jmp qword [sym.imp.pdh.dll_PdhCloseQuery]