joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140020510
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 [0x14005a100]
test esi, esi
je 0x1400205b2
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x1400205aa
je 0x140020553
test rdi, rdi
je 0x140020557
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x140020559
mov rbx, qword [rdi + 8]
jmp 0x140020559
xor eax, eax
jmp 0x1400205aa
xor ebx, ebx
movzx eax, byte [0x141d2e108]
mov edx, 0x10
xor ecx, ecx
call fcn.140031680
test rax, rax
je 0x1400205d3
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 0x1400205a7
mov rcx, qword [0x141d2e0f8]
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, [0x14005a0e8]
call fcn.140031070
mov esi, eax
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140020537
jmp 0x1400205aa
ud2
Function at 0x140023c80
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 [0x14005a0c0]
test esi, esi
je 0x140023e59
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x140023e4c
je 0x140023e4a
mov rax, qword [0x141d2e030]
cmp rax, 3
jne 0x140023e7a
mov rdi, qword [0x141d2e038]
lock inc qword [rdi]
jle 0x140023e90
mov eax, 0x60
movups xmm0, xmmword [0x141d27d68]
movups xmm1, xmmword [0x141d27d58]
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 0x140023cf0
movzx eax, byte [0x141d2e108]
mov edx, 0x980
xor ecx, ecx
call fcn.140031680
test rax, rax
je 0x140023e90
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 0x140023dce
nop
mov qword [rbx], rax
lock cmpxchg qword [rdi + 0x200], rbx
jne 0x140023dc0
movzx eax, byte [0x141d2e108]
mov edx, 0x10
xor ecx, ecx
call fcn.140031680
test rax, rax
je 0x140023e90
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 0x140023e45
mov rcx, qword [rdi]
mov rax, qword [rcx + 0x820]
lea rdx, [rax - 1]
mov qword [rcx + 0x820], rdx
cmp qword [rcx + 0x818], 0
jne 0x140023e34
cmp rax, 1
je 0x140023e92
mov rcx, qword [0x141d2e0f8]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
mov rax, rsi
jmp 0x140023e4c
xor eax, eax
add rsp, 0x828
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x14005a0a8]
call fcn.140031070
mov esi, eax
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140023cad
jmp 0x140023e4c
call fcn.140016fb0
mov rdi, qword [0x141d2e038]
lock inc qword [rdi]
jg 0x140023cd5
ud2
call fcn.1400163a0
jmp 0x140023e34
Function at 0x14002a0c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, r9
mov rbx, r8
mov rdi, rcx
mov rax, qword [rdx]
mov r8, qword [rdx + 8]
mov rcx, r9
mov rdx, rax
call fcn.1400355f0
cmp byte [rbx], 0
jne 0x14002a102
lea rdx, [0x141d27fe9]
mov r8d, 3
mov rcx, rsi
call fcn.140036720
movabs rbx, 0x8000000000000000
mov rdx, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
lea rcx, [rsp + 0x20]
call fcn.14002bfd0
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
cmp r15, rbx
jne 0x14002a13d
mov rcx, rbx
mov rdx, r14
call fcn.14002a1b0
mov qword [rdi], rbx
jmp 0x14002a175
mov r12, qword [rsp + 0x30]
mov rcx, r14
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x14002a15c
mov qword [rdi], r15
mov qword [rdi + 8], r14
mov qword [rdi + 0x10], r12
jmp 0x14002a175
mov qword [rdi], rbx
test r15, r15
je 0x14002a175
mov rcx, qword [0x141d2e0f8]
xor edx, edx
mov r8, r14
call sub.KERNEL32.dll_HeapFree
cmp qword [rsi], 0
je 0x14002a19a
mov r8, qword [rsi + 8]
mov rcx, qword [0x141d2e0f8]
xor edx, edx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp sub.KERNEL32.dll_HeapFree
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x14002b0c0
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 [0x14005a040]
test esi, esi
je 0x14002b0ef
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14002b10a
add rax, 4
jmp 0x14002b17b
lea rcx, [0x14005a028]
call fcn.140031070
mov esi, eax
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14002b0e6
je 0x14002b179
xor ebp, ebp
test rdi, rdi
je 0x14002b122
cmp byte [rdi], 0
mov byte [rdi], 0
movzx eax, byte [rdi + 1]
cmove eax, ebp
mov ebp, eax
movzx eax, byte [0x141d2e108]
mov edx, 8
xor ecx, ecx
call fcn.140031680
test rax, rax
je 0x14002b186
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 0x14002b174
mov rcx, qword [0x141d2e0f8]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
mov rax, r14
jmp 0x14002b17b
xor eax, eax
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
ud2
Function at 0x14002ddf0
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x448
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 2
mov qword [rsp + 0x40], 0
mov ebx, 0x200
mov edi, 2
xor r13d, r13d
xor r14d, r14d
cmp rbx, 0x201
jae 0x14002de60
jmp 0x14002de4f
jae 0x14002df09
cmp rbx, 0x201
jae 0x14002de60
mov esi, 0x200
lea r15, [rsp + 0x48]
mov r12, rbx
jmp 0x14002de8e
sub rbx, r14
mov rax, r13
sub rax, r14
cmp rbx, rax
ja 0x14002deea
mov eax, 0xffffffff
cmp r13, rax
mov r14d, 0xffffffff
cmovb r14, r13
mov qword [rsp + 0x40], r14
mov rsi, r14
mov r15, rdi
mov r12, r14
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, r15
mov edx, r12d
call sub.KERNEL32.dll_GetSystemDirectoryW
mov ebp, eax
test eax, eax
jne 0x14002deb3
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x14002df34
mov ebx, ebp
cmp r12, rbx
jne 0x14002de40
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x14002df32
lea rbx, [r12 + r12]
cmp r12, 0x7fffffff
mov eax, 0xffffffff
cmova rbx, rax
cmp rbx, 0x201
jb 0x14002de4f
jmp 0x14002de60
lea rcx, [rsp + 0x30]
mov rdx, r14
mov r8, rbx
call fcn.1400312b0
mov r13, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
jmp 0x14002de6e
cmp rsi, rbx
jb 0x14002df32
test ebp, ebp
je 0x14002df5e
lea rdi, [rbx + rbx]
movzx eax, byte [0x141d2e108]
xor ecx, ecx
mov rdx, rdi
call fcn.140031680
mov r14, rax
mov rsi, rbx
test rax, rax
jne 0x14002df68
ud2
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 8], rax
movabs rax, 0x8000000000000000
mov qword [rcx], rax
test r13, r13
jne 0x14002df8b
jmp 0x14002df9e
mov r14d, 2
xor edi, edi
xor esi, esi
mov rcx, r14
mov rdx, r15
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov rax, qword [rsp + 0x28]
mov qword [rax], rsi
mov qword [rax + 8], r14
mov qword [rax + 0x10], rbx
test r13, r13
je 0x14002df9e
mov r8, qword [rsp + 0x38]
mov rcx, qword [0x141d2e0f8]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
nop
add rsp, 0x448
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14002e290
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x488
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 2
mov qword [rsp + 0x38], 0
mov r8d, 0x200
mov ebx, 2
xor r14d, r14d
mov esi, 0xffffffff
xor r15d, r15d
cmp r8, 0x201
jae 0x14002e320
jmp 0x14002e2ff
jae 0x14002e3c9
cmp r8, 0x201
jae 0x14002e320
mov edi, 0x200
lea r12, [rsp + 0x88]
mov r13, r8
jmp 0x14002e349
sub r8, r15
mov rax, r14
sub rax, r15
cmp r8, rax
ja 0x14002e3ad
cmp r14, rsi
mov r15d, 0xffffffff
cmovb r15, r14
mov qword [rsp + 0x38], r15
mov rdi, r15
mov r12, rbx
mov r13, r15
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, r12
mov edx, r13d
call sub.KERNEL32.dll_GetWindowsDirectoryW
mov ebp, eax
test eax, eax
jne 0x14002e36e
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x14002e459
mov r8d, ebp
cmp r13, r8
jne 0x14002e2f0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x14002e517
lea r8, [r13*2]
cmp r13, 0x7fffffff
cmova r8, rsi
cmp r8, 0x201
jb 0x14002e2ff
jmp 0x14002e320
lea rcx, [rsp + 0x28]
mov rdx, r15
call fcn.1400312b0
mov r14, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x30]
jmp 0x14002e32e
cmp rdi, r8
jb 0x14002e517
lea r14, [rsp + 0x50]
mov rcx, r14
mov rdx, r12
call fcn.140033010
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax]
mov r8, qword [rax + 8]
mov rcx, r14
call fcn.1400355f0
mov rax, qword [rsp + 0x48]
cmp byte [rax], 0
jne 0x14002e417
lea rdx, [0x141d27fe9]
lea rcx, [rsp + 0x50]
mov r8d, 3
call fcn.140036720
movabs rdi, 0x8000000000000000
mov rdx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x60]
lea rcx, [rsp + 0x70]
call fcn.14002bfd0
mov rsi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
cmp rsi, rdi
jne 0x14002e487
mov rcx, rdi
mov rdx, rbx
call fcn.14002a1b0
mov rax, qword [rsp + 0x20]
mov qword [rax], rdi
jmp 0x14002e4cc
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 8], rax
movabs rax, 0x8000000000000000
or rax, 1
mov qword [rcx], rax
test r14, r14
jne 0x14002e4ef
jmp 0x14002e502
mov r14, qword [rsp + 0x80]
mov rcx, rbx
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x14002e4ae
mov rax, qword [rsp + 0x20]
mov qword [rax], rsi
mov qword [rax + 8], rbx
mov qword [rax + 0x10], r14
jmp 0x14002e4cc
mov rax, qword [rsp + 0x20]
mov qword [rax], rdi
test rsi, rsi
je 0x14002e4cc
mov rcx, qword [0x141d2e0f8]
xor edx, edx
mov r8, rbx
call sub.KERNEL32.dll_HeapFree
cmp qword [rsp + 0x50], 0
je 0x14002e4e7
mov r8, qword [rsp + 0x58]
mov rcx, qword [0x141d2e0f8]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
cmp qword [rsp + 0x28], 0
je 0x14002e502
mov r8, qword [rsp + 0x30]
mov rcx, qword [0x141d2e0f8]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
nop
add rsp, 0x488
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
Function at 0x14002f540
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 [0x14005a060]
test esi, esi
je 0x14002f5fc
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14002f5f4
je 0x14002f587
test rdi, rdi
je 0x14002f58b
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x14002f58d
mov rbx, qword [rdi + 8]
jmp 0x14002f58d
xor eax, eax
jmp 0x14002f5f4
xor ebx, ebx
movzx eax, byte [0x141d2e108]
mov edx, 0x10
xor ecx, ecx
call fcn.140031680
test rax, rax
je 0x14002f61d
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 0x14002f5f1
mov rax, qword [rdi]
test rax, rax
je 0x14002f5e0
lock dec qword [rax]
jne 0x14002f5e0
mov rcx, rdi
call fcn.14002f980
mov rcx, qword [0x141d2e0f8]
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, [0x14005a048]
call fcn.140031070
mov esi, eax
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14002f56b
jmp 0x14002f5f4
ud2

Function at 0x14002f760
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, [0x141d28288]
cmovne rdx, rcx
add rsp, 0x58
ret

Function at 0x14002fc90
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0xa0
mov rsi, rcx
movups xmm0, xmmword [0x141d28188]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x14002fcfa
mov rcx, rsi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14002fd2d
test eax, eax
js 0x14002fd0e
mov rdx, qword [rsp + 0x68]
xor eax, eax
add rsp, 0xa0
pop rsi
ret
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa0
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x141d281e8]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x80], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x88], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x70]
call fcn.140031d30
mov rcx, rax
call fcn.14002f9e0
mov ecx, 7
int 0x29
ud2
Function at 0x140030460
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rbx, r8
mov r14, rdx
mov rdi, rcx
movzx eax, byte [0x141d2e108]
mov edx, 0x10
xor ecx, ecx
call fcn.140031680
test rax, rax
je 0x140030530
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x140030540]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call sub.KERNEL32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x140030523
mov rdi, qword [rsi]
mov rbx, qword [rsi + 8]
mov rax, qword [rbx]
test rax, rax
je 0x1400304db
mov rcx, rdi
call rax
cmp qword [rbx + 8], 0
je 0x1400304fe
cmp qword [rbx + 0x10], 0x11
jb 0x1400304ed
mov rdi, qword [rdi - 8]
mov rcx, qword [0x141d2e0f8]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
mov rcx, qword [0x141d2e0f8]
xor edx, edx
mov r8, rsi
call sub.KERNEL32.dll_HeapFree
call sub.KERNEL32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ebx, 1
mov rax, rbx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
ud2

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov esi, dword [0x14005a088]
test esi, esi
je 0x140030db1
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x140030da9
je 0x140030da7
movzx eax, byte [0x141d2e108]
mov edx, 0x10
xor ecx, ecx
call fcn.140031680
test rax, rax
je 0x140030dd2
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 0x140030da2
mov rax, qword [rdi]
test rax, rax
je 0x140030d91
lock dec qword [rax]
jne 0x140030d91
mov rcx, qword [rdi]
call fcn.14002f7a0
mov rcx, qword [0x141d2e0f8]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
mov rax, rsi
jmp 0x140030da9
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x14005a070]
call fcn.140031070
mov esi, eax
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140030d34
jmp 0x140030da9
ud2
Function at 0x140031070
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
cmp qword [rcx], 0
je 0x1400310f5
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 0x14003112c
cmp dword [rsp + 0x2c], 0
je 0x14003111d
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x14003112e
mov edi, eax
mov rax, qword [0x141d31038]
mov rax, qword [0x141d2e0e8]
nop dword [rax + rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x141d2e0e8], rsi
jne 0x1400310d0
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 0x140031122
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x14003112c
mov edi, eax
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
je 0x140031122
mov esi, eax
mov ecx, edi
call sub.KERNEL32.dll_TlsFree
dec esi
mov edi, esi
jmp 0x140031122
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 0x140032ba0
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov r8, rdx
mov rdx, rcx
movabs rdi, 0x8000000000000000
lea rcx, [rsp + 0x28]
call fcn.14002d9b0
mov rax, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
cmp rax, rdi
je 0x140032c05
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x40]
mov r8b, 1
call fcn.140033d00
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
cmp rbx, rdi
jne 0x140032c10
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov rcx, rsi
xor edx, edx
call sub.KERNEL32.dll_CreateDirectoryW
test eax, eax
je 0x140032c38
test rbx, rbx
je 0x140032c60
mov rcx, qword [0x141d2e0f8]
xor edx, edx
mov r8, rsi
call sub.KERNEL32.dll_HeapFree
xor eax, eax
jmp 0x140032c08
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
test rbx, rbx
je 0x140032c08
mov rcx, qword [0x141d2e0f8]
xor edx, edx
mov r8, rsi
mov rsi, rax
call sub.KERNEL32.dll_HeapFree
jmp 0x140032c05
xor eax, eax
jmp 0x140032c08

Function at 0x140035040
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 0x1400350c2
test r8b, r8b
jne 0x14003509a
movzx esi, byte [rdx + 0x10]
lea r8d, [rsi - 5]
cmp r8b, 1
ja 0x14003509a
mov r10, qword [rdx]
mov r8, qword [rdx + 8]
xor r11d, r11d
test r9b, r9b
jne 0x140035091
cmp sil, 6
je 0x140035091
mov r11d, 2
cmp r8, 1
jbe 0x140035277
cmp r11, r8
jne 0x1400351d5
xor r8d, r8d
xor eax, eax
xor r8d, r8d
add r8, r10
lea rsi, [r10 + r11]
inc rsi
cmp rsi, r8
sete r8b
movzx r10d, byte [r10 + r11]
test r8b, 1
jne 0x140035267
cmp r10b, 0x2e
jne 0x140035267
movzx r8d, byte [rsi]
cmp r10b, 0x2e
sete r10b
and r8b, r10b
jmp 0x14003509d
Function at 0x14003ea50
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 [0x141d2e108]
mov edx, 4
xor ecx, ecx
call fcn.140031680
test rax, rax
je 0x14003eb2d
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.14003dfb0
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 0x14003eafa
mov rcx, qword [0x141d2e0f8]
xor edx, edx
mov r8, rbx
call sub.KERNEL32.dll_HeapFree
mov rcx, qword [0x141d2e0f8]
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 0x14003eb30
Capabilities:
Encode data using xor
Encrypt data using salsa20 or chacha
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rdx
mov rdi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x20
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
cmp eax, 0xc0000000
jb 0x14003eb81
mov ebx, eax
lea rcx, [rsp + 0x20]
mov edx, 0x20
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x14003ebd1
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x50], xmm1
movaps xmmword [rsp + 0x40], xmm0
mov rax, qword [0x141d2e100]
test rax, rax
je 0x14003ec06
lea rbx, [rsp + 0x70]
test eax, 0x4000
jne 0x14003ec17
movaps xmm0, xmmword [rsp + 0x40]
movaps xmm1, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x80], xmm1
xorps xmm0, xmm0
movaps xmmword [rsp + 0x90], xmm0
jmp 0x14003ec2b
and ebx, 0x7fffffff
je 0x14003eb81
movzx eax, byte [0x141d2e108]
mov edx, 4
xor ecx, ecx
call fcn.140031680
test rax, rax
je 0x14003ec6d
mov dword [rax], ebx
mov rcx, qword [0x141d2e0f8]
xor edx, edx
mov r8, rax
call sub.KERNEL32.dll_HeapFree
jmp 0x14003ec41
call fcn.140036c80
lea rbx, [rsp + 0x70]
test eax, 0x4000
je 0x14003ebad
lea r8, [0x141d289c8]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14001f5c0
movaps xmm0, xmmword [rbx]
movaps xmm1, xmmword [rbx + 0x10]
movaps xmm2, xmmword [rbx + 0x20]
movaps xmmword [rdi + 0x20], xmm2
movaps xmmword [rdi + 0x10], xmm1
movaps xmmword [rdi], xmm0
mov qword [rdi + 0x40], 0
mov rax, 0xffffffffffffff00
add rax, qword [rdi + 0x30]
mov qword [rdi + 0x38], rax
mov rcx, rdi
mov rdx, rsi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
jmp fcn.14001d320
ud2