joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400058a0
Capabilities:
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 0x1400058f5
mov ebx, eax
lea rcx, [rsp + 0x20]
mov edx, 0x20
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1400059a6
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x50], xmm1
movaps xmmword [rsp + 0x40], xmm0
mov rax, qword [0x142486100]
test rax, rax
je 0x1400059d9
and eax, 0x4000
xor ecx, ecx
lea rbx, [rsp + 0x70]
or rax, rcx
je 0x140005940
lea r8, [0x1424800b8]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.1400285d0
jmp 0x140005962
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
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
call fcn.1400285f0
nop
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
movzx eax, byte [0x142486110]
mov edx, 4
xor ecx, ecx
call fcn.14003f640
test rax, rax
je 0x1400059e3
and ebx, 0x7fffffff
mov dword [rax], ebx
mov rcx, qword [0x1424860d8]
xor edx, edx
mov r8, rax
call fcn.14004d290
jmp 0x140005978
call fcn.14003fdd0
jmp 0x140005919
ud2

Function at 0x140007d50
Capabilities:
Set registry value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
mov r15, r9
mov rbx, r8
mov r14, rdx
mov rdi, rcx
movzx eax, byte [0x142486110]
mov edx, 4
xor ecx, ecx
call fcn.14003f640
test rax, rax
je 0x140007e2a
mov rsi, rax
mov eax, dword [r15]
mov dword [rsi], eax
add rbx, r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x48], 0
mov dword [rsp + 0x50], 1
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x38]
call fcn.140008530
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x28], 4
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
mov r9d, 4
call sub.ADVAPI32.dll_RegSetValueExW
mov edi, eax
cmp qword [rsp + 0x58], 0
je 0x140007df7
mov rcx, qword [0x1424860d8]
xor edx, edx
mov r8, rbx
call fcn.14004d290
mov rcx, qword [0x1424860d8]
xor ebx, ebx
xor edx, edx
mov r8, rsi
call fcn.14004d290
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 0x140007e30
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 0x140007e72
mov r10d, 8
sub r10, r11
cmp r10, r8
mov rdi, r8
cmovb rdi, r10
cmp rdi, 4
jb 0x140007e7a
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x140007e8b
jmp 0x140007ea2
xor r10d, r10d
jmp 0x140007f2d
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x140007ea2
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x140007eb9
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 0x140007ed9
add r11, r8
jmp 0x140008009
mov rcx, qword [rax + 0x18]
xor rcx, rsi
mov rdi, qword [rax + 0x10]
mov r9, qword [rax]
add r9, rdi
mov r11, qword [rax + 8]
add r11, rcx
rol rdi, 0xd
xor rdi, r9
rol rcx, 0x10
rol r9, 0x20
xor rcx, r11
add r11, rdi
rol rdi, 0x11
add r9, rcx
xor rdi, r11
rol rcx, 0x15
mov qword [rax + 0x10], rdi
xor rcx, r9
rol r11, 0x20
mov qword [rax + 0x18], rcx
mov qword [rax + 8], r11
xor r9, rsi
mov qword [rax], r9
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x140007fa2
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
mov rbx, qword [rdx + r10]
xor rdi, rbx
add rcx, rsi
rol rsi, 0xd
add r9, rdi
xor rsi, rcx
rol rdi, 0x10
xor rdi, r9
rol rcx, 0x20
add r9, rsi
add rcx, rdi
rol rsi, 0x11
xor rsi, r9
rol rdi, 0x15
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x140007f50
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 4
jb 0x140007fbf
mov r9d, dword [rdx + r10]
mov r8d, 4
mov ecx, r8d
or ecx, 1
cmp ecx, r11d
jb 0x140007fd0
jmp 0x140007feb
xor r9d, r9d
xor r8d, r8d
mov ecx, r8d
or ecx, 1
cmp ecx, r11d
jae 0x140007feb
lea rcx, [rdx + r8]
movzx esi, word [r10 + rcx]
lea ecx, [r8*8]
invalid
add byte [rax], al
add byte [rax], al
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8d, r11d
jae 0x140008005
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 0x14002ba00
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 [0x14005d0f0]
test esi, esi
je 0x14002bbd6
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14002bbc9
je 0x14002bbc7
mov eax, dword [0x142486038]
cmp eax, 3
jne 0x14002bbf7
mov rdi, qword [0x142486030]
lock inc qword [rdi]
jle 0x14002bc0d
mov eax, 0x60
movups xmm0, xmmword [0x142480098]
movups xmm1, xmmword [0x142480088]
nop word cs:[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 0x14002ba70
movzx eax, byte [0x142486110]
mov edx, 0x980
xor ecx, ecx
call fcn.14003f640
test rax, rax
je 0x14002bc0d
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.api_ms_win_crt_private_l1_1_0.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 0x14002bb4e
nop
mov qword [rbx], rax
lock cmpxchg qword [rdi + 0x200], rbx
jne 0x14002bb40
movzx eax, byte [0x142486110]
mov edx, 0x10
xor ecx, ecx
call fcn.14003f640
test rax, rax
je 0x14002bc0d
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 0x14002bbc2
mov rcx, qword [rdi]
mov rax, qword [rcx + 0x820]
lea rdx, [rax - 1]
mov qword [rcx + 0x820], rdx
xor rax, 1
or rax, qword [rcx + 0x818]
je 0x14002bc0f
mov rcx, qword [0x1424860d8]
xor edx, edx
mov r8, rdi
call fcn.14004d290
mov rax, rsi
jmp 0x14002bbc9
xor eax, eax
add rsp, 0x828
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x14005d0d8]
call fcn.140030340
mov esi, eax
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14002ba2d
jmp 0x14002bbc9
call fcn.140022ed0
mov rdi, qword [0x142486030]
lock inc qword [rdi]
jg 0x14002ba53
ud2
call fcn.1400222c0
jmp 0x14002bbb1
Function at 0x14002bc20
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [rdx + 0x28]
mov qword [rsp + 0x30], rax
movzx eax, byte [rdx + 0x30]
mov byte [rsp + 0x27], al
movzx eax, byte [0x142486110]
mov edx, 0x5f0
xor ecx, ecx
call fcn.14003f640
test rax, rax
je 0x14002be7a
mov rbx, rax
lea r15, [rsi + 0x38]
movabs r12, 0x800000000000000
mov r8d, 0x5f0
mov rcx, rax
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov rax, qword [rsi + 0x60]
mov qword [rsp + 0x28], rax
movabs rcx, 0x7465646279746573
movabs rdx, 0x6c7967656e657261
movabs r8, 0xded7d4e2d7dedfc6
movabs r9, 0xa60c596fc19fead0
movabs r10, 0xe414a674f0de7325
nop
mov ebp, 1
lock xadd qword [0x142486050], rbp
mov r11, rbp
xor r11, rcx
mov rax, r11
rol rax, 0x10
lea r14, [r11 + rdx]
xor rax, r14
lea r14, [rax + r8]
xor rbp, r14
add r11, r9
mov r13, r11
rol r13, 0x20
rol rax, 0x15
xor r11, r10
xor r14, r12
xor r14, rax
add rbp, r11
rol r11, 0xd
add r13, r14
xor r11, rbp
rol r14, 0x10
xor r14, r13
rol rbp, 0x20
add r13, r11
add rbp, r14
rol r11, 0x11
xor r11, r13
rol r14, 0x15
rol r13, 0x20
xor r14, rbp
xor rbp, r12
xor r13, 0xff
add rbp, r11
add r13, r14
rol r11, 0xd
xor r11, rbp
rol r14, 0x10
rol rbp, 0x20
xor r14, r13
add r13, r11
rol r11, 0x11
add rbp, r14
xor r11, r13
rol r14, 0x15
xor r14, rbp
rol r13, 0x20
add rbp, r11
add r13, r14
rol r11, 0xd
xor r11, rbp
rol r14, 0x10
rol rbp, 0x20
xor r14, r13
add r13, r11
rol r11, 0x11
add rbp, r14
xor r11, r13
rol r14, 0x15
xor r14, rbp
rol r13, 0x20
add rbp, r11
add r13, r14
rol r11, 0xd
xor r11, rbp
rol r14, 0x10
xor r14, r13
add r13, r11
rol r11, 0x11
rol r14, 0x15
mov rbp, r13
rol rbp, 0x20
xor rbp, r11
xor rbp, r14
cmp rbp, r13
je 0x14002bcc0
xor rbp, r13
mov rax, qword [rsi + 0x58]
movups xmm0, xmmword [r15]
movups xmm1, xmmword [r15 + 0x10]
movups xmmword [rdi + 0x128], xmm1
movups xmmword [rdi + 0x118], xmm0
mov rcx, qword [rsp + 0x30]
mov qword [rdi + 0x138], rcx
movzx ecx, byte [rsp + 0x27]
mov byte [rdi + 0x140], cl
mov qword [rdi], 0
mov qword [rdi + 8], rbx
mov qword [rdi + 0x80], 0
mov qword [rdi + 0x88], rbx
mov rcx, qword [rsp + 0x28]
mov qword [rdi + 0x100], rcx
mov qword [rdi + 0x108], rbp
mov qword [rdi + 0x110], rax
mov rax, qword [rsi + 0x10]
shl rax, 1
test rax, rax
jne 0x14002be58
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r8, qword [rsi + 0x18]
mov rcx, qword [0x1424860d8]
xor edx, edx
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.14004d290
ud2
Function at 0x14002be80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov esi, dword [0x14005d0b0]
test esi, esi
je 0x14002bf03
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14002befb
je 0x14002bef9
movzx eax, byte [0x142486110]
mov edx, 0x10
xor ecx, ecx
call fcn.14003f640
test rax, rax
je 0x14002bf20
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 0x14002bef4
mov rcx, qword [0x1424860d8]
xor edx, edx
mov r8, rdi
call fcn.14004d290
mov rax, rsi
jmp 0x14002befb
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x14005d098]
call fcn.140030340
mov esi, eax
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14002bea0
jmp 0x14002befb
ud2
Function at 0x14002f6f0
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 [0x14005d070]
test esi, esi
je 0x14002f792
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14002f78a
je 0x14002f733
test rdi, rdi
je 0x14002f737
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x14002f739
mov rbx, qword [rdi + 8]
jmp 0x14002f739
xor eax, eax
jmp 0x14002f78a
xor ebx, ebx
movzx eax, byte [0x142486110]
mov edx, 0x10
xor ecx, ecx
call fcn.14003f640
test rax, rax
je 0x14002f7b3
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 0x14002f787
mov rcx, qword [0x1424860d8]
xor edx, edx
mov r8, rdi
call fcn.14004d290
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x14005d058]
call fcn.140030340
mov esi, eax
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14002f717
jmp 0x14002f78a
ud2

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov esi, dword [0x14005d090]
test esi, esi
je 0x14002f861
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14002f859
je 0x14002f857
movzx eax, byte [0x142486110]
mov edx, 0x10
xor ecx, ecx
call fcn.14003f640
test rax, rax
je 0x14002f882
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 0x14002f852
mov rax, qword [rdi]
test rax, rax
je 0x14002f841
lock dec qword [rax]
jne 0x14002f841
mov rcx, qword [rdi]
call fcn.14002c0b0
mov rcx, qword [0x1424860d8]
xor edx, edx
mov r8, rdi
call fcn.14004d290
mov rax, rsi
jmp 0x14002f859
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x14005d078]
call fcn.140030340
mov esi, eax
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14002f7e4
jmp 0x14002f859
ud2
Function at 0x14002fb10
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0xa0
mov rsi, rcx
movups xmm0, xmmword [0x142480470]
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 0x14002fb7a
mov rcx, rsi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14002fbad
test eax, eax
js 0x14002fb8e
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, [0x1424804d0]
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.14002fde0
mov rcx, rax
call fcn.140034d10
mov ecx, 7
int 0x29
ud2

Function at 0x140030340
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
cmp qword [rcx], 0
je 0x1400303c5
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 0x1400303fc
cmp dword [rsp + 0x2c], 0
je 0x1400303ed
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1400303fe
mov edi, eax
mov rax, qword [0x142489038]
mov rax, qword [0x1424860f8]
nop dword [rax + rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1424860f8], rsi
jne 0x1400303a0
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 0x1400303f2
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1400303fc
mov edi, eax
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
je 0x1400303f2
mov esi, eax
mov ecx, edi
call sub.KERNEL32.dll_TlsFree
dec esi
mov edi, esi
jmp 0x1400303f2
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 0x140031390
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
movzx r9d, byte [rdx + 0x38]
cmp r9b, 1
Function at 0x140035170
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov esi, dword [0x14005d050]
test esi, esi
je 0x140035211
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x140035209
je 0x140035207
movzx eax, byte [0x142486110]
mov edx, 0x10
xor ecx, ecx
call fcn.14003f640
test rax, rax
je 0x140035232
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 0x140035202
mov rax, qword [rdi]
test rax, rax
je 0x1400351f1
lock dec qword [rax]
jne 0x1400351f1
mov rcx, qword [rdi]
call fcn.14002bf30
mov rcx, qword [0x1424860d8]
xor edx, edx
mov r8, rdi
call fcn.14004d290
mov rax, rsi
jmp 0x140035209
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x14005d038]
call fcn.140030340
mov esi, eax
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140035194
jmp 0x140035209
ud2
Function at 0x140035ae0
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Encode data using base64
Encrypt data using speck
Get common file path
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x628
movdqa xmmword [rsp + 0x610], xmm6
mov qword [rsp + 0x1c8], r8
mov qword [rsp + 0xc0], rcx
movzx eax, byte [rdx + 0xa0]
mov qword [rsp + 0xa8], rdx
mov r10, qword [rdx + 0x98]
test r10, r10
setne cl
or cl, al
mov byte [rsp + 0x56], cl
cmp cl, 1
jne 0x140035d53
mov qword [rsp + 0x1d0], 0
mov qword [rsp + 0x1e0], 0
test al, al
jne 0x140035d68
mov qword [rsp + 0x78], r10
call sub.KERNEL32.dll_GetEnvironmentStringsW
test rax, rax
je 0x1400397e4
mov rsi, rax
cmp word [rax], 0
je 0x140035d5b
lea rdi, [rsp + 0x230]
lea r14, [rsp + 0x120]
lea r13, [rsp + 0x1a0]
mov rbp, rsi
jmp 0x140035baf
cmp word [r12], 0
mov rbp, r12
je 0x140035d5b
mov rcx, 0xfffffffffffffffe
xor edx, edx
nop dword [rax + rax]
mov rbx, rdx
mov rax, rcx
inc rdx
add rcx, 2
cmp word [rbp + rbx*2], 0
jne 0x140035bc0
lea rcx, [rbx + rbx]
lea r12, [rcx + rbp]
add r12, 2
cmp rbx, 1
je 0x140035ba0
test rbx, rbx
je 0x1400396a7
xor r15d, r15d
nop word cs:[rax + rax]
cmp word [rbp + r15*2 + 2], 0x3d
je 0x140035c20
inc r15
add rax, 0xfffffffffffffffe
jne 0x140035c00
jmp 0x140035ba0
cmp r15, rbx
jae 0x1400396a7
lea r8, [r15 + 1]
mov rcx, r14
mov rdx, rbp
call fcn.1400308a0
add r15, 2
sub rbx, r15
jb 0x1400396a7
lea rdx, [r15*2]
add rdx, rbp
mov rcx, rdi
mov r8, rbx
call fcn.1400308a0
movups xmm0, xmmword [rsp + 0x120]
movups xmm1, xmmword [rsp + 0x130]
movaps xmmword [rsp + 0x220], xmm1
movaps xmmword [rsp + 0x210], xmm0
mov rbx, qword [rsp + 0x210]
mov r15, qword [rsp + 0x218]
movdqa xmm6, xmmword [rsp + 0x220]
movups xmm0, xmmword [rdi]
movups xmm1, xmmword [rdi + 0x10]
movaps xmmword [rsp + 0x1a0], xmm0
movaps xmmword [rsp + 0x1b0], xmm1
movabs rax, 0x8000000000000000
cmp rbx, rax
je 0x140035d5b
movq rax, xmm6
add rax, r15
mov qword [rsp + 0x120], r15
mov qword [rsp + 0x128], rax
mov word [rsp + 0x130], 0
lea rcx, [rsp + 0x230]
mov rdx, r14
call fcn.1400397f0
mov qword [rsp + 0x210], rbx
mov qword [rsp + 0x218], r15
movdqu xmmword [rsp + 0x220], xmm6
mov rcx, r14
lea rdx, [rsp + 0x1d0]
lea r8, [rsp + 0x210]
mov r9, r13
call fcn.1400399b0
mov rax, qword [rsp + 0x120]
shl rax, 1
test rax, rax
je 0x140035ba0
mov r8, qword [rsp + 0x128]
mov rcx, qword [0x1424860d8]
xor edx, edx
call fcn.14004d290
jmp 0x140035ba0
xor r14d, r14d
jmp 0x140036804
mov rcx, rsi
call sub.KERNEL32.dll_FreeEnvironmentStringsW
mov r10, qword [rsp + 0x78]
test r10, r10
setne cl
mov rax, qword [rsp + 0xa8]
mov rax, qword [rax + 0x88]
test rax, rax
setne dl
test dl, cl
je 0x140036673
mov rcx, qword [rsp + 0xa8]
mov rdx, qword [rcx + 0x90]
xor esi, esi
jmp 0x140035dc7
Function at 0x14003b640
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rsi, rcx
movabs r14, 0x8000000000000000
lea rcx, [rsp + 0x40]
call fcn.140031ab0
mov rax, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov rcx, rax
neg rcx
jo 0x14003b6a6
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rcx
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x58]
call fcn.14003b750
mov rbx, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
cmp rbx, r14
jne 0x14003b70b
mov eax, edi
and eax, 3
cmp eax, 1
jne 0x14003b6fc
mov rbx, qword [rdi - 1]
mov r15, qword [rdi + 7]
mov rax, qword [r15]
test rax, rax
je 0x14003b6c5
mov rcx, rbx
call rax
dec rdi
cmp qword [r15 + 8], 0
je 0x14003b6eb
cmp qword [r15 + 0x10], 0x11
jb 0x14003b6da
mov rbx, qword [rbx - 8]
mov rcx, qword [0x1424860d8]
xor edx, edx
mov r8, rbx
call fcn.14004d290
mov rcx, qword [0x1424860d8]
xor edx, edx
mov r8, rdi
call fcn.14004d290
mov qword [rsi], r14
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov r15, qword [rsp + 0x38]
mov rcx, rdi
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x14003b72a
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r15
jmp 0x14003b6ff
mov qword [rsi], r14
test rbx, rbx
je 0x14003b6ff
mov rcx, qword [0x1424860d8]
xor edx, edx
mov r8, rdi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.14004d290