joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a1a90
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 0x1400a1ad2
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 4
jb 0x1400a1ada
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x1400a1aeb
jmp 0x1400a1b02
xor r10d, r10d
jmp 0x1400a1b8d
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x1400a1b02
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x1400a1b19
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 0x1400a1b39
add r11, r8
jmp 0x1400a1c6b
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 0x1400a1c02
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 0x1400a1bb0
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 4
jb 0x1400a1c20
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x1400a1c32
jmp 0x1400a1c4d
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x1400a1c4d
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 0x1400a1c67
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 0x1400cc010
Capabilities:
Encode data using xor

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov r14, r8
mov rsi, rcx
mov rdi, r8
sub rdi, rdx
shr rdi, 3
sub r14, rdx
je 0x1400cc09e
movabs rax, 0x7ffffffffffffff8
cmp r14, rax
ja 0x1400cc262
mov rbx, rdx
movzx eax, byte [0x141936118]
xor ecx, ecx
mov rdx, r14
call fcn.1400dee70
test rax, rax
je 0x1400cc262
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 0
cmp r14, 0xc0
jae 0x1400cc0c9
xor ecx, ecx
mov r8, rcx
or r8, 1
test r14b, 8
jne 0x1400cc196
mov r9, rcx
cmp rdi, r8
jne 0x1400cc1c3
jmp 0x1400cc231
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 4
mov qword [rsp + 0x30], 0
test rdi, rdi
jne 0x1400cc24c
xor edx, edx
jmp 0x1400cc231
lea rdx, [rax + rdi*8]
add rdx, 0xfffffffffffffff8
xor ecx, ecx
cmp rdx, rax
jb 0x1400cc07c
lea rdx, [rax + 4]
lea r8, [rax + rdi*8]
add r8, 0xfffffffffffffffc
cmp r8, rdx
jb 0x1400cc07c
movabs rdx, 0x1ffffffffffffffe
lea r8, [rdi - 1]
lea r9, [rdx + 1]
cmp r8, r9
ja 0x1400cc07c
mov rcx, r14
and rcx, 0xfffffffffffffff8
lea r8, [rbx + rcx]
cmp rax, r8
jae 0x1400cc120
add rcx, rax
cmp rcx, rbx
ja 0x1400cc07a
and rdx, rdi
xor ecx, ecx
movdqa xmm0, xmmword [0x140112270]
nop dword [rax]
movdqu xmm1, xmmword [rbx + rcx*8]
pshufd xmm2, xmm1, 0xe8
pshufd xmm1, xmm1, 0xed
movdqa xmm3, xmm2
pxor xmm3, xmm0
movdqa xmm4, xmm1
pxor xmm4, xmm0
pcmpgtd xmm4, xmm3
movdqa xmm3, xmm4
pandn xmm3, xmm1
movdqa xmm5, xmm4
pandn xmm5, xmm2
pand xmm2, xmm4
por xmm2, xmm3
pand xmm4, xmm1
por xmm4, xmm5
punpckldq xmm2, xmm4
movdqu xmmword [rax + rcx*8], xmm2
add rcx, 2
cmp rdx, rcx
jne 0x1400cc130
mov rcx, rdx
cmp rdi, rdx
jne 0x1400cc07c
jmp 0x1400cc231
mov edx, dword [rbx + rcx*8]
mov r9d, dword [rbx + rcx*8 + 4]
cmp edx, r9d
mov r10d, r9d
cmovb r10d, edx
cmova r9d, edx
mov dword [rax + rcx*8], r10d
mov dword [rax + rcx*8 + 4], r9d
inc rcx
mov rdx, rcx
mov r9, r8
cmp rdi, r8
je 0x1400cc231
lea rax, [rax + rcx*8]
add rax, 0xc
lea rdx, [rbx + r9*8]
add rdx, 0xc
sub rdi, r9
xor r8d, r8d
nop dword [rax]
mov r9d, dword [rdx + r8*8 - 0xc]
mov r10d, dword [rdx + r8*8 - 8]
cmp r9d, r10d
mov r11d, r10d
cmovb r11d, r9d
cmova r10d, r9d
mov dword [rax + r8*8 - 0xc], r11d
mov dword [rax + r8*8 - 8], r10d
mov r9d, dword [rdx + r8*8 - 4]
mov r10d, dword [rdx + r8*8]
cmp r9d, r10d
mov r11d, r10d
cmovb r11d, r9d
cmova r10d, r9d
mov dword [rax + r8*8 - 4], r11d
mov dword [rax + r8*8], r10d
add r8, 2
cmp rdi, r8
jne 0x1400cc1e0
add rcx, r8
mov rdx, rcx
mov qword [rsp + 0x30], rdx
mov qword [rsi + 0x10], rdx
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8, rdi
call fcn.1400d6e40
mov rdx, qword [rsp + 0x30]
jmp 0x1400cc231
ud2
Function at 0x1400dfc30
Capabilities:
Read file on windows

Disassembly:
push rsi
sub rsp, 0xa0
mov rsi, rcx
movups xmm0, xmmword [0x14192a810]
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_NtReadFile
cmp eax, 0x103
jne 0x1400dfc93
mov rcx, rsi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x1400dfc9e
xor edx, edx
jmp 0x1400dfcae
cmp eax, 0x103
je 0x1400dfcd8
test eax, eax
js 0x1400dfcb9
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, [0x14192a870]
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.1400e4ee0
mov rcx, rax
call fcn.1400e46e0
mov ecx, 7
int 0x29
ud2

Function at 0x1400dfe00
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0xa0
mov rsi, rcx
movups xmm0, xmmword [0x14192a810]
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 0x1400dfe6a
mov rcx, rsi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1400dfe9d
test eax, eax
js 0x1400dfe7e
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, [0x14192a870]
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.1400e4ee0
mov rcx, rax
call fcn.1400e46e0
mov ecx, 7
int 0x29
ud2
Function at 0x1400e0490
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
cmp qword [rcx], 0
je 0x1400e050e
mov rax, qword [0x141939038]
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 0x1400e0545
cmp dword [rsp + 0x2c], 0
je 0x1400e0536
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1400e0547
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x141936068]
nop dword [rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x141936068], rsi
jne 0x1400e04f0
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x1400e053b
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1400e0545
mov edi, eax
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
je 0x1400e053b
mov esi, eax
mov ecx, edi
call sub.KERNEL32.dll_TlsFree
dec esi
mov edi, esi
jmp 0x1400e053b
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 0x1400e0740
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x30
mov ecx, dword [0x14010e0e8]
test ecx, ecx
je 0x1400e0827
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400e076b
cmp qword [rax + 8], 0
jne 0x1400e081d
mov ecx, dword [0x14010e0e8]
test ecx, ecx
je 0x1400e0849
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400e0866
test rax, rax
jne 0x1400e07db
movzx eax, byte [0x141936118]
mov edx, 0x18
xor ecx, ecx
call fcn.1400dee70
test rax, rax
je 0x1400e0887
lea rcx, [0x14010e0d0]
mov qword [rax], rcx
mov qword [rax + 8], 0
mov ecx, dword [0x14010e0e8]
test ecx, ecx
je 0x1400e086e
dec ecx
mov rdx, rax
mov rsi, rax
call sub.KERNEL32.dll_TlsSetValue
mov rax, rsi
mov rdx, qword [rax + 8]
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], rcx
mov qword [rax + 8], 1
mov qword [rax + 0x10], 0
test rdx, rdx
je 0x1400e081d
test rcx, rcx
je 0x1400e081d
lock dec qword [rcx]
jne 0x1400e081d
lea rcx, [rsp + 0x28]
mov rsi, rax
call fcn.1400ed1a0
mov rax, rsi
add rax, 0x10
add rsp, 0x30
pop rsi
ret
lea rcx, [0x14010e0d0]
call fcn.1400e0490
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x1400e0760
jmp 0x1400e076b
lea rcx, [0x14010e0d0]
call fcn.1400e0490
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x1400e078a
xor eax, eax
add rsp, 0x30
pop rsi
ret
lea rcx, [0x14010e0d0]
mov rsi, rax
call fcn.1400e0490
mov ecx, eax
mov rax, rsi
jmp 0x1400e07cd
ud2
Function at 0x1400e0890
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 [0x141936118]
mov edx, 0x10
xor ecx, ecx
call fcn.1400dee70
test rax, rax
je 0x1400e0958
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400e0960]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call sub.KERNEL32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x1400e094b
mov rdi, qword [rsi]
mov rbx, qword [rsi + 8]
mov rcx, rdi
call qword [rbx]
cmp qword [rbx + 8], 0
je 0x1400e0926
cmp qword [rbx + 0x10], 0x11
jb 0x1400e0915
mov rdi, qword [rdi - 8]
mov rcx, qword [0x141936088]
xor edx, edx
mov r8, rdi
call fcn.140102ef8
mov rcx, qword [0x141936088]
xor edx, edx
mov r8, rsi
call fcn.140102ef8
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 0x1400e0ac0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x14010e130]
test ecx, ecx
je 0x1400e0aed
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400e0b06
cmp qword [rax + 8], 0
je 0x1400e0b06
add rax, 0x10
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14010e118]
call fcn.1400e0490
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x1400e0adc
mov ecx, dword [0x14010e130]
test ecx, ecx
je 0x1400e0bbc
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400e0bd9
test rax, rax
jne 0x1400e0b72
movzx eax, byte [0x141936118]
mov edx, 0x18
xor ecx, ecx
call fcn.1400dee70
test rax, rax
je 0x1400e0bfa
lea rcx, [0x14010e118]
mov qword [rax], rcx
mov qword [rax + 8], 0
mov ecx, dword [0x14010e130]
test ecx, ecx
je 0x1400e0be1
dec ecx
mov rdx, rax
mov rsi, rax
call sub.KERNEL32.dll_TlsSetValue
mov rax, rsi
mov rdx, rax
add rax, 0x10
mov rcx, qword [rdx + 0x10]
cmp qword [rdx + 8], 0
mov qword [rdx + 8], 1
mov qword [rdx + 0x10], 0
je 0x1400e0ae7
test rcx, rcx
je 0x1400e0ae7
lock dec qword [rcx]
jne 0x1400e0ae7
mov rsi, rax
call fcn.1400ed200
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14010e118]
call fcn.1400e0490
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x1400e0b25
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14010e118]
mov rsi, rax
call fcn.1400e0490
mov ecx, eax
mov rax, rsi
jmp 0x1400e0b64
ud2
Function at 0x1400e20f0
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 r15, 0x8000000000000000
lea rcx, [rsp + 0x40]
call fcn.1400e9060
mov rax, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
cmp rax, r15
je 0x1400e2153
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.1400dfab0
mov rbx, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
cmp rbx, r15
jne 0x1400e21bb
mov eax, edi
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x1400e21ac
test rax, rax
je 0x1400e21ac
lea rbx, [rdi - 1]
mov r14, qword [rdi - 1]
mov rdi, qword [rdi + 7]
mov rcx, r14
call qword [rdi]
cmp qword [rdi + 8], 0
je 0x1400e219b
cmp qword [rdi + 0x10], 0x11
jb 0x1400e218a
mov r14, qword [r14 - 8]
mov rcx, qword [0x141936088]
xor edx, edx
mov r8, r14
call fcn.140102ef8
mov rcx, qword [0x141936088]
xor edx, edx
mov r8, rbx
call fcn.140102ef8
mov qword [rsi], r15
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov r14, qword [rsp + 0x38]
mov rcx, rdi
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x1400e21da
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r14
jmp 0x1400e21af
mov qword [rsi], r15
test rbx, rbx
je 0x1400e21af
mov rcx, qword [0x141936088]
xor edx, edx
mov r8, rdi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.140102ef8
Function at 0x1400e5f90
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, [0x14192aea0]
cmovne rdx, rcx
add rsp, 0x58
ret
Function at 0x1400e99a0
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x498
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 2
mov qword [rsp + 0x38], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x48], rax
xor r14d, r14d
mov edi, 0xffffffff
xor esi, esi
xor r15d, r15d
cmp r8, 0x201
jae 0x1400e9a40
jmp 0x1400e9a1f
jae 0x1400e9aea
cmp r8, 0x201
jae 0x1400e9a40
mov ebx, 0x200
lea r12, [rsp + 0x98]
mov r13, r8
jmp 0x1400e9a6b
sub r8, r15
sub rsi, r15
cmp rsi, r8
jb 0x1400e9ac9
cmp r14, rdi
mov r15d, 0xffffffff
cmovb r15, r14
mov qword [rsp + 0x38], r15
mov rsi, r14
mov rbx, r15
mov r12, qword [rsp + 0x48]
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 0x1400e9a90
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x1400e9bb7
mov r8d, ebp
cmp r13, r8
jne 0x1400e9a10
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x1400e9be4
add r13, r13
cmp r13, rdi
cmovae r13, rdi
mov r8, r13
cmp r8, 0x201
jb 0x1400e9a1f
jmp 0x1400e9a40
lea rcx, [rsp + 0x28]
mov rdx, r15
call fcn.1400fe050
mov r14, qword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
jmp 0x1400e9a4b
cmp rbx, r8
jb 0x1400e9be4
lea r14, [rsp + 0x60]
mov rcx, r14
mov rdx, r12
call fcn.1400ed960
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax]
mov r8, qword [rax + 8]
mov rcx, r14
call fcn.1400eb720
mov rax, qword [rsp + 0x58]
cmp byte [rax], 0
jne 0x1400e9b38
lea rdx, [0x14192aeb8]
lea rcx, [rsp + 0x60]
mov r8d, 3
call fcn.1400eca10
mov rdi, qword [rsp + 0x68]
mov r8, qword [rsp + 0x70]
lea rcx, [rsp + 0x80]
mov rdx, rdi
call fcn.1400e20f0
cmp qword [rsp + 0x60], 0
je 0x1400e9b6b
mov rcx, qword [0x141936088]
xor edx, edx
mov r8, rdi
call fcn.140102ef8
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rsp + 0x80]
movups xmmword [rcx], xmm0
cmp qword [rsp + 0x28], 0
je 0x1400e9ba2
mov r8, qword [rsp + 0x30]
mov rcx, qword [0x141936088]
xor edx, edx
call fcn.140102ef8
nop
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 8], rax
movabs rax, 0x8000000000000001
mov qword [rcx], rax
cmp qword [rsp + 0x28], 0
jne 0x1400e9b8f
jmp 0x1400e9ba2
ud2
Function at 0x1400e9bf0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x14010e0c8]
test ecx, ecx
je 0x1400e9cdc
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400e9c1f
cmp qword [rax + 8], 0
jne 0x1400e9cd6
mov ecx, dword [0x14010e0c8]
test ecx, ecx
je 0x1400e9cfe
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400e9d1b
test rax, rax
jne 0x1400e9c8f
movzx eax, byte [0x141936118]
mov edx, 0x20
xor ecx, ecx
call fcn.1400dee70
test rax, rax
je 0x1400e9d3d
lea rcx, [0x14010e0b0]
mov qword [rax], rcx
mov qword [rax + 8], 0
mov ecx, dword [0x14010e0c8]
test ecx, ecx
je 0x1400e9d24
dec ecx
mov rdx, rax
mov rdi, rax
call sub.KERNEL32.dll_TlsSetValue
mov rax, rdi
test rsi, rsi
je 0x1400e9ca8
mov rcx, qword [rsi]
movups xmm0, xmmword [rsi + 8]
mov qword [rsi], 0
cmp rcx, 1
je 0x1400e9cca
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
mov edx, 0x10
mov rsi, rax
call sub.bcryptprimitives.dll_ProcessPrng
mov rax, rsi
movaps xmm0, xmmword [rsp + 0x20]
mov qword [rax + 8], 1
movups xmmword [rax + 0x10], xmm0
add rax, 0x10
jmp 0x1400e9d1d
lea rcx, [0x14010e0b0]
call fcn.1400e0490
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x1400e9c14
jmp 0x1400e9c1f
lea rcx, [0x14010e0b0]
call fcn.1400e0490
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x1400e9c3e
xor eax, eax
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [0x14010e0b0]
mov rdi, rax
call fcn.1400e0490
mov ecx, eax
mov rax, rdi
jmp 0x1400e9c81
ud2
Function at 0x1400ea470
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov dword [rsp + 0x34], 0
add byte [rax], al
add byte [rax], al
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x50], 0

Function at 0x1400ead50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
movzx r9d, byte [rdx + 0x38]
cmp r9b, 1
ja 0x1400eadca
movzx eax, byte [rdx + 0x3a]
test al, al
jne 0x1400eada2
movzx esi, byte [rdx + 0x10]
lea r8d, [rsi - 5]
cmp r8b, 1
ja 0x1400eada2
mov r10, qword [rdx]
mov r8, qword [rdx + 8]
xor r11d, r11d
test r9b, r9b
test cl, cl
xor eax, eax
xor r8d, r8d

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

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x14010e108]
test ecx, ecx
je 0x1400ed62e
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400ed5b6
cmp byte [rax + 8], 0
jne 0x1400ed624
mov ecx, dword [0x14010e108]
test ecx, ecx
je 0x1400ed650
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400ed66d
test rax, rax
jne 0x1400ed61e
movzx eax, byte [0x141936118]
mov edx, 0x10
xor ecx, ecx
call fcn.1400dee70
test rax, rax
je 0x1400ed68b
lea rcx, [0x14010e0f0]
mov qword [rax], rcx
mov byte [rax + 8], 0
mov ecx, dword [0x14010e108]
test ecx, ecx
je 0x1400ed675
dec ecx
mov rdx, rax
mov rsi, rax
call sub.KERNEL32.dll_TlsSetValue
mov rax, rsi
mov word [rax + 8], 1
add rax, 9
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14010e0f0]
call fcn.1400e0490
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x1400ed5b0
jmp 0x1400ed5b6
lea rcx, [0x14010e0f0]
call fcn.1400e0490
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x1400ed5d5
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14010e0f0]
mov rsi, rax
call fcn.1400e0490
mov ecx, eax
mov rax, rsi
jmp 0x1400ed610
ud2
Function at 0x1400f80b0
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xe0
movdqa xmmword [rsp + 0xd0], xmm7
movdqa xmmword [rsp + 0xc0], xmm6
mov rsi, rdx
mov rdi, rcx
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x90], xmm0
movdqa xmmword [rsp + 0x80], xmm0
lea rdx, [rsp + 0x80]
xor ecx, ecx
mov r8d, 0x20
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
cmp eax, 0xc0000000
jb 0x1400f8122
mov ebx, eax
lea rcx, [rsp + 0x80]
mov edx, 0x20
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1400f819f
movdqa xmm7, xmmword [rsp + 0x80]
movdqa xmm6, xmmword [rsp + 0x90]
movdqu xmmword [rsp + 0xb0], xmm6
movdqu xmmword [rsp + 0xa0], xmm7
mov rax, qword [0x141936110]
test rax, rax
je 0x1400f81df
test eax, 0x4000
jne 0x1400f81ef
pshufd xmm0, xmm7, 0xee
pshufd xmm1, xmm6, 0xee
movq rax, xmm7
movq rcx, xmm0
movq rdx, xmm6
movq r8, xmm1
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x68], r8
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x70], xmm0
jmp 0x1400f820d
and ebx, 0x7fffffff
je 0x1400f8122
movzx eax, byte [0x141936118]
mov edx, 4
xor ecx, ecx
call fcn.1400dee70
test rax, rax
je 0x1400f82ac
mov dword [rax], ebx
mov rcx, qword [0x141936088]
xor edx, edx
mov r8, rax
call fcn.140102ef8
jmp 0x1400f826f
call fcn.1400ee7b0
test eax, 0x4000
je 0x1400f8161
lea r8, [0x14192b580]
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0xa0]
call fcn.14004afd0
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x68]
mov r9, qword [rsp + 0x70]
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x38], r9
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x40], rcx
mov qword [rdi], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rcx
mov qword [rdi + 0x18], rdx
mov qword [rdi + 0x20], r8
mov rax, qword [rsp + 0x40]
mov qword [rdi + 0x28], rax
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.140048d30
movaps xmm6, xmmword [rsp + 0xc0]
movaps xmm7, xmmword [rsp + 0xd0]
add rsp, 0xe0
pop rbx
pop rdi
pop rsi
ret
ud2