joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001dc0
Capabilities:
Check for debugger via api
Check for process debug object
Check processdebugflags
Check processdebugport

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
call fcn.140025890
mov r14, rax
mov edi, edx
mov ecx, 0x23
call fcn.140033360
call fcn.140025890
mov rsi, rax
mov ebx, edx
mov r8, qword [0x1428220d0]
test r8, r8
jne 0x140001e23
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x38]
call sub.KERNEL32.dll_QueryPerformanceFrequency
test eax, eax
je 0x14000205a
mov r8, qword [rsp + 0x38]
mov qword [0x1428220d0], r8
test r8, r8
je 0x14000205f
cmp r8, 0x3b9aca00
ja 0x140001e38
mov eax, 0x3b9aca00
xor edx, edx
div r8d
jmp 0x140001e3a
xor eax, eax
lea ecx, [rax - 0x3b9aca00]
xor edx, edx
cmp r8, 2
cmovae ecx, eax
setb al
xor r9d, r9d
cmp r14, rsi
setne r9b
mov r8d, 0xff
cmovae r8d, r9d
test r8b, r8b
jne 0x140001e71
cmp edi, ebx
setne r8b
jb 0x140001f10
cmp r8b, 1
jne 0x140001f10
mov r8, r14
sub r8, rsi
jb 0x14000205f
cmp edi, ebx
jae 0x140001eac
test r8, r8
je 0x14000205f
dec r8
lea r9d, [rdi + 0x3b9aca00]
sub r9d, ebx
cmp r9d, 0x3b9aca00
jae 0x140001ebb
jmp 0x140001ee0
mov r9d, edi
sub r9d, ebx
cmp r9d, 0x3b9aca00
jb 0x140001ee0
mov r10d, r9d
shr r10d, 9
imul r10, r10, 0x44b83
shr r10, 0x27
add r8, r10
jb 0x14000205f
imul r10d, r10d, 0x3b9aca00
sub r9d, r10d
mov dl, al
xor eax, eax
cmp r8, rdx
setne al
mov edx, 0xff
cmovb eax, edx
xor r8d, r8d
cmp r9d, ecx
setne r8b
cmovb r8d, edx
test al, al
cmovne r8d, eax
cmp r8b, 1
jne 0x140002055
cmp rsi, r14
jb 0x140002055
sub rsi, r14
cmp ebx, edi
jae 0x140001f32
test rsi, rsi
je 0x140002055
dec rsi
add ebx, 0x3b9aca00
sub ebx, edi
cmp ebx, 0x3b9aca00
jb 0x140001f53
shr ebx, 9
imul rax, rbx, 0x44b83
shr rax, 0x27
add rsi, rax
jb 0x14000205f
cmp rsi, 0x19
jb 0x140002055
lea rcx, [rsp + 0x38]
call fcn.14004e640
cmp byte [rsp + 0x38], 0x12
jne 0x14000205f
call fcn.140036900
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x2c], 0
call sub.KERNEL32.dll_GetCurrentProcess
lea rdx, [rsp + 0x2c]
mov rcx, rax
call sub.KERNEL32.dll_CheckRemoteDebuggerPresent
call sub.KERNEL32.dll_GetCurrentProcess
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x30]
mov rcx, rax
mov edx, 7
mov r9d, 8
call sub.ntdll.dll_NtQueryInformationProcess
call sub.KERNEL32.dll_GetCurrentProcess
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x28]
mov rcx, rax
mov edx, 0x1f
mov r9d, 4
call sub.ntdll.dll_NtQueryInformationProcess
call sub.KERNEL32.dll_GetCurrentProcess
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x38]
mov rcx, rax
mov edx, 0x1e
mov r9d, 8
call sub.ntdll.dll_NtQueryInformationProcess
cmp dword [rsp + 0x2c], 0
jne 0x140002055
cmp qword [rsp + 0x30], 0
jne 0x140002055
cmp dword [rsp + 0x28], 0
je 0x140002055
cmp qword [rsp + 0x38], 0
jne 0x140002055
mov ecx, 0x80000001
call sub.KERNEL32.dll_SetThreadExecutionState
call fcn.140002070
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140032cb0
call sub.KERNEL32.dll_GetLastError
ud2
Function at 0x14001ed50
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 [0x140058120]
test ecx, ecx
je 0x14001ed7a
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14001ed93
add rax, 8
jmp 0x14001ee2a
lea rcx, [0x140058108]
call fcn.14002aa60
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14001ed71
je 0x14001edaf
test rsi, rsi
je 0x14001edb3
mov rdi, qword [rsi]
mov qword [rsi], 0
test rdi, rdi
je 0x14001edb5
mov rdi, qword [rsi + 8]
jmp 0x14001edb5
xor eax, eax
jmp 0x14001ee2a
xor edi, edi
movzx eax, byte [0x142822100]
mov edx, 0x10
xor ecx, ecx
call fcn.140032080
test rax, rax
je 0x14001ee52
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 0x14001ee32
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x140058120]
test ecx, ecx
je 0x14001ee42
dec ecx
add rbx, 8
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x14001ee27
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 0x14001edf1
lea rcx, [0x140058108]
call fcn.14002aa60
mov ecx, eax
jmp 0x14001ee05
ud2
Function at 0x140028bd0
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.14002c630
cmp byte [rbx], 0
jne 0x140028c12
lea rdx, [0x14281ba50]
mov r8d, 3
mov rcx, rsi
call fcn.14002d760
movabs rbx, 0x8000000000000000
mov rdx, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
lea rcx, [rsp + 0x20]
call fcn.140030f90
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
cmp r15, rbx
jne 0x140028c4d
mov rcx, rbx
mov rdx, r14
call fcn.140028cc0
mov qword [rdi], rbx
jmp 0x140028c85
mov r12, qword [rsp + 0x30]
mov rcx, r14
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x140028c6c
mov qword [rdi], r15
mov qword [rdi + 8], r14
mov qword [rdi + 0x10], r12
jmp 0x140028c85
mov qword [rdi], rbx
test r15, r15
je 0x140028c85
mov rcx, qword [0x1428220c8]
xor edx, edx
mov r8, r14
call sub.KERNEL32.dll_HeapFree
cmp qword [rsi], 0
je 0x140028caa
mov r8, qword [rsi + 8]
mov rcx, qword [0x1428220c8]
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 0x14002a6c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov ecx, dword [0x140058040]
test ecx, ecx
je 0x14002a6e7
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14002a700
add rax, 8
jmp 0x14002a79b
lea rcx, [0x140058028]
call fcn.14002aa60
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14002a6de
je 0x14002a799
movzx eax, byte [0x142822100]
mov edx, 0x10
xor ecx, ecx
call fcn.140032080
test rax, rax
je 0x14002a7c3
mov rbx, rax
mov rsi, rax
lea rax, [0x140058028]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140058040]
test ecx, ecx
je 0x14002a7a3
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x140058040]
test ecx, ecx
je 0x14002a7b3
dec ecx
add rbx, 8
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x14002a794
mov rax, qword [rdi + 8]
test rax, rax
je 0x14002a783
lock dec qword [rax]
jne 0x14002a783
mov rcx, qword [rdi + 8]
call fcn.140023250
mov rcx, qword [0x1428220c8]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
mov rax, rbx
jmp 0x14002a79b
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140058028]
call fcn.14002aa60
mov ecx, eax
jmp 0x14002a746
lea rcx, [0x140058028]
call fcn.14002aa60
mov ecx, eax
jmp 0x14002a75a
ud2

Function at 0x14002aa60
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
cmp qword [rcx], 0
je 0x14002aae5
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 0x14002ab1c
cmp dword [rsp + 0x2c], 0
je 0x14002ab0d
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x14002ab1e
mov edi, eax
mov rax, qword [0x142825038]
mov rax, qword [0x1428220c0]
nop dword [rax + rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1428220c0], rsi
jne 0x14002aac0
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 0x14002ab12
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x14002ab1c
mov edi, eax
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
je 0x14002ab12
mov esi, eax
mov ecx, edi
call sub.KERNEL32.dll_TlsFree
dec esi
mov edi, esi
jmp 0x14002ab12
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 0x14002c080
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 0x14002c102
invalid
test r8b, r8b
jne 0x14002c0da
movzx esi, byte [rdx + 0x10]
lea r8d, [rsi - 5]
cmp r8b, 1
ja 0x14002c0da
mov r10, qword [rdx]
mov r8, qword [rdx + 8]
xor r11d, r11d
test r9b, r9b
test cl, cl
jne 0x14002c0d1
cmp sil, 6
je 0x14002c0d1
mov r11d, 2
cmp r8, 1
jbe 0x14002c2b7
cmp r11, r8
jne 0x14002c215
xor r8d, r8d
test r9b, r9b
jne 0x14002c107
movzx r9d, byte [rdx + 0x10]
lea r10, [0x140059ec8]
movsxd r9, dword [r10 + r9*4]
invalid
or al, 0x8a
add r9, r10
jmp r9
mov r9, qword [rdx + 0x20]
add r9, 4
jmp 0x14002c10a
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 0x14002c2b7
mov rsi, qword [rdx]
lea r8, [rsi + r10]
movzx edx, byte [rdx + 0x10]
cmp r10, rax
jne 0x14002c13a
xor r11d, r11d
jmp 0x14002c1b9
add r9, rdi
add r9, r11
sub r9, rax
inc r9
lea rdi, [rax + rsi]
dec rdi
xor r11d, r11d
cmp dl, 3
jae 0x14002c180
nop word cs:[rax + rax]
cmp byte [rdi], 0x5c
je 0x14002c19b
inc r9
dec rdi
cmp r9, 1
jne 0x14002c160
jmp 0x14002c1b9
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x14002c19b
cmp ebx, 0x5c
je 0x14002c19b
inc r9
dec rdi
cmp r9, 1
jne 0x14002c180
jmp 0x14002c1b9
neg r9
add r10, r9
inc r10
cmp r10, rax
ja 0x14002c2b7
add rsi, r10
mov r11d, 1
mov r8, rsi
sub rax, r10
je 0x14002c1fc
mov r9b, 9
cmp rax, 2
je 0x14002c1e7
cmp rax, 1
jne 0x14002c1ff
cmp byte [r8], 0x2e
jne 0x14002c1ff
xor r9d, r9d
cmp dl, 3
setae r9b
lea r9d, [r9 + r9*2]
add r9d, 7
jmp 0x14002c1ff
cmp byte [r8], 0x2e
jne 0x14002c1ff
cmp byte [r8 + 1], 0x2e
sete r9b
sete cl
xor r9b, 9
jmp 0x14002c1ff
mov r9b, 0xa
add r11, rax
mov qword [rcx], r11
mov dword [rcx], ebx
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 0x14002c2a7
cmp r10b, 0x2e
jne 0x14002c2a7
movzx r8d, byte [rsi]
cmp r8b, 0x5c
sete r10b
cmp r8b, 0x2f
sete r8b
or r8b, r10b
or al, dl
jmp 0x14002c0dd
mov r9, qword [rdx + 0x20]
mov r10, qword [rdx + 0x30]
xor byte [rbp - 0x73], cl
pop rdx
add dword [rbp - 0x7b], ecx
ror byte [rbp + 0xf], cl
fimul dword [rbp + 1]
fimul dword [rbp + 1]
invalid
add r9, 8
jmp 0x14002c10a
cmp r10b, 0x2e
sete r10b
and r8b, r10b
jmp 0x14002c0dd
ud2
Function at 0x140030020
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 [0x140058060]
test ecx, ecx
je 0x14003004a
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140030063
add rax, 8
jmp 0x1400300f8
lea rcx, [0x140058048]
call fcn.14002aa60
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x140030041
je 0x1400300f6
xor edi, edi
test rsi, rsi
je 0x14003007f
cmp byte [rsi], 0
mov byte [rsi], 0
movzx eax, byte [rsi + 1]
cmove eax, edi
mov edi, eax
movzx eax, byte [0x142822100]
mov edx, 0x10
xor ecx, ecx
call fcn.140032080
test rax, rax
je 0x140030120
mov rbx, rax
mov rsi, rax
lea rax, [0x140058048]
mov qword [rsi], rax
mov byte [rsi + 8], dil
mov ecx, dword [0x140058060]
test ecx, ecx
je 0x140030100
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x140058060]
test ecx, ecx
je 0x140030110
dec ecx
add rbx, 8
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x1400300f1
mov rcx, qword [0x1428220c8]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
mov rax, rbx
jmp 0x1400300f8
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140058048]
call fcn.14002aa60
mov ecx, eax
jmp 0x1400300bb
lea rcx, [0x140058048]
call fcn.14002aa60
mov ecx, eax
jmp 0x1400300cf
ud2
Function at 0x140031400
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 0x140031490
jmp 0x14003146f
jae 0x140031533
cmp r8, 0x201
jae 0x140031490
mov edi, 0x200
lea r12, [rsp + 0x88]
mov r13, r8
jmp 0x1400314b9
sub r8, r15
mov rax, r14
sub rax, r15
cmp r8, rax
ja 0x140031517
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 0x1400314de
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x1400315c3
mov r8d, ebp
cmp r13, r8
jne 0x140031460
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x140031681
add r13, r13
cmp r13, rsi
cmovae r13, rsi
mov r8, r13
cmp r8, 0x201
jb 0x14003146f
jmp 0x140031490
lea rcx, [rsp + 0x28]
mov rdx, r15
call fcn.14004aa70
mov r14, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x30]
jmp 0x14003149e
cmp rdi, r8
jb 0x140031681
lea r14, [rsp + 0x50]
mov rcx, r14
mov rdx, r12
call fcn.14002fc60
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax]
mov r8, qword [rax + 8]
mov rcx, r14
call fcn.14002c630
mov rax, qword [rsp + 0x48]
cmp byte [rax], 0
jne 0x140031581
lea rdx, [0x14281ba50]
lea rcx, [rsp + 0x50]
mov r8d, 3
call fcn.14002d760
movabs rdi, 0x8000000000000000
mov rdx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x60]
lea rcx, [rsp + 0x70]
call fcn.140030f90
mov rsi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
cmp rsi, rdi
jne 0x1400315f1
mov rcx, rdi
mov rdx, rbx
call fcn.140028cc0
mov rax, qword [rsp + 0x20]
mov qword [rax], rdi
jmp 0x140031636
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 0x140031659
jmp 0x14003166c
mov r14, qword [rsp + 0x80]
mov rcx, rbx
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x140031618
mov rax, qword [rsp + 0x20]
mov qword [rax], rsi
mov qword [rax + 8], rbx
mov qword [rax + 0x10], r14
jmp 0x140031636
mov rax, qword [rsp + 0x20]
mov qword [rax], rdi
test rsi, rsi
je 0x140031636
mov rcx, qword [0x1428220c8]
xor edx, edx
mov r8, rbx
call sub.KERNEL32.dll_HeapFree
cmp qword [rsp + 0x50], 0
je 0x140031651
mov r8, qword [rsp + 0x58]
mov rcx, qword [0x1428220c8]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
cmp qword [rsp + 0x28], 0
je 0x14003166c
mov r8, qword [rsp + 0x30]
mov rcx, qword [0x1428220c8]
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 0x140031980
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 + 0x20], rcx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 2
mov qword [rsp + 0x40], 0
mov r14d, 0x200
mov eax, 2
mov qword [rsp + 0x28], rax
xor r13d, r13d
mov esi, 0xffffffff
xor ebx, ebx
cmp r14, 0x201
jae 0x140031a00
jmp 0x1400319ef
jae 0x140031a9d
cmp r14, 0x201
jae 0x140031a00
mov edi, 0x200
lea r15, [rsp + 0x48]
mov r12, r14
jmp 0x140031a2a
sub r14, rbx
mov rax, r13
sub rax, rbx
cmp r14, rax
ja 0x140031a79
cmp r13, rsi
mov ebx, 0xffffffff
cmovb rbx, r13
mov qword [rsp + 0x40], rbx
mov rdi, rbx
mov r15, qword [rsp + 0x28]
mov r12, rbx
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 0x140031a4b
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x140031ac8
mov r14d, ebp
cmp r12, r14
jne 0x1400319e0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x140031ac6
add r12, r12
cmp r12, rsi
cmovae r12, rsi
mov r14, r12
cmp r14, 0x201
jb 0x1400319ef
jmp 0x140031a00
lea rcx, [rsp + 0x30]
mov rdx, rbx
mov r8, r14
call fcn.14004aa70
mov r13, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x28], rax
jmp 0x140031a0e
cmp rdi, r14
jb 0x140031ac6
test ebp, ebp
je 0x140031af2
lea rdi, [r14 + r14]
movzx eax, byte [0x142822100]
xor ecx, ecx
mov rdx, rdi
call fcn.140032080
mov rbx, rax
mov rsi, r14
test rax, rax
jne 0x140031afb
ud2
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 8], rax
movabs rax, 0x8000000000000000
mov qword [rcx], rax
test r13, r13
jne 0x140031b1e
jmp 0x140031b31
mov ebx, 2
xor edi, edi
xor esi, esi
mov rcx, rbx
mov rdx, r15
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov rax, qword [rsp + 0x20]
mov qword [rax], rsi
mov qword [rax + 8], rbx
mov qword [rax + 0x10], r14
test r13, r13
je 0x140031b31
mov r8, qword [rsp + 0x38]
mov rcx, qword [0x1428220c8]
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 0x140032d50
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 [0x140058080]
test ecx, ecx
je 0x140032d7a
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140032d93
add rax, 8
jmp 0x140032e48
lea rcx, [0x140058068]
call fcn.14002aa60
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x140032d71
je 0x140032daf
test rsi, rsi
je 0x140032db6
mov rdi, qword [rsi]
mov qword [rsi], 0
test rdi, rdi
je 0x140032db8
mov rdi, qword [rsi + 8]
jmp 0x140032db8
xor eax, eax
jmp 0x140032e48
xor edi, edi
movzx eax, byte [0x142822100]
mov edx, 0x10
xor ecx, ecx
call fcn.140032080
test rax, rax
je 0x140032e70
mov rbx, rax
mov rsi, rax
lea rax, [0x140058068]
mov qword [rsi], rax
mov qword [rsi + 8], rdi
mov ecx, dword [0x140058080]
test ecx, ecx
je 0x140032e50
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x140058080]
test ecx, ecx
je 0x140032e60
dec ecx
add rbx, 8
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x140032e45
mov rax, qword [rdi + 8]
test rax, rax
je 0x140032e34
lock dec qword [rax]
jne 0x140032e34
mov rcx, rdi
add rcx, 8
call case.0x14002c8e1.216
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, [0x140058068]
call fcn.14002aa60
mov ecx, eax
jmp 0x140032df4
lea rcx, [0x140058068]
call fcn.14002aa60
mov ecx, eax
jmp 0x140032e08
ud2

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

Function at 0x140033870
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.140031290
mov rax, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
cmp rax, rdi
je 0x1400338d5
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.14002b5f0
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
cmp rbx, rdi
jne 0x1400338e0
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 0x140033908
test rbx, rbx
je 0x140033930
mov rcx, qword [0x1428220c8]
xor edx, edx
mov r8, rsi
call sub.KERNEL32.dll_HeapFree
xor eax, eax
jmp 0x1400338d8
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
test rbx, rbx
je 0x1400338d8
mov rcx, qword [0x1428220c8]
xor edx, edx
mov r8, rsi
mov rsi, rax
call sub.KERNEL32.dll_HeapFree
jmp 0x1400338d5
xor eax, eax
jmp 0x1400338d8
Function at 0x1400346f0
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0xa0
mov rsi, rcx
movups xmm0, xmmword [0x14281bbe0]
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 0x14003475a
mov rcx, rsi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14003478d
test eax, eax
js 0x14003476e
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, [0x14281bc40]
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.14002ab30
mov rcx, rax
call fcn.14002abe0
mov ecx, 7
int 0x29
ud2
Function at 0x140034ec0
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 [0x142822100]
mov edx, 0x10
xor ecx, ecx
call fcn.140032080
test rax, rax
je 0x140034f90
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x140034fa0]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call sub.KERNEL32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x140034f83
mov rdi, qword [rsi]
mov rbx, qword [rsi + 8]
mov rax, qword [rbx]
test rax, rax
je 0x140034f3b
mov rcx, rdi
call rax
cmp qword [rbx + 8], 0
je 0x140034f5e
cmp qword [rbx + 0x10], 0x11
jb 0x140034f4d
mov rdi, qword [rdi - 8]
mov rcx, qword [0x1428220c8]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
mov rcx, qword [0x1428220c8]
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 0x14003ccb0
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 0x14003cd01
mov ebx, eax
lea rcx, [rsp + 0x20]
mov edx, 0x20
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x14003cd51
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x50], xmm1
movaps xmmword [rsp + 0x40], xmm0
mov rax, qword [0x1428220f8]
test rax, rax
je 0x14003cd86
lea rbx, [rsp + 0x70]
test eax, 0x4000
jne 0x14003cd97
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 0x14003cdab
and ebx, 0x7fffffff
je 0x14003cd01
movzx eax, byte [0x142822100]
mov edx, 4
xor ecx, ecx
call fcn.140032080
test rax, rax
je 0x14003cded
mov dword [rax], ebx
mov rcx, qword [0x1428220c8]
xor edx, edx
mov r8, rax
call sub.KERNEL32.dll_HeapFree
jmp 0x14003cdc1
call fcn.1400352f0
lea rbx, [rsp + 0x70]
test eax, 0x4000
je 0x14003cd2d
lea r8, [0x14281c108]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14001df20
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.14001bc80
ud2