joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140023d9c
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push r14
sub rsp, 0x40
and qword [rax - 0x10], 0
mov r14, r9
mov rbp, r8
lea r9, [rax - 0x10]
xor ebx, ebx
mov rcx, 0xffffffff80000002
lea r8d, [rbx + 1]
call fcn.14002a384
mov esi, eax
test eax, eax
jns 0x140023de3
mov ecx, eax
jmp 0x140023eaa
and dword [rsp + 0x50], ebx
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
je 0x140023e28
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jne 0x140023e64
test rbx, rbx
jne 0x140023e6f
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x140023e68
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x140023de7
mov esi, 0x8007000e
mov ecx, esi
jmp 0x140023eaa
mov esi, 0x8000ffff
jmp 0x140023e64
cmp dword [rsp + 0x30], 4
je 0x140023e7d
mov esi, 0x8007000d
jmp 0x140023e64
xor ebp, ebp
cmp dword [rsp + 0x50], 4
je 0x140023e96
mov esi, 0x8007000d
mov ecx, esi
mov ebp, esi
call fcn.140025d30
jmp 0x140023e9b
mov eax, dword [rbx]
mov dword [r14], eax
mov ecx, ebp
int3
call fcn.140025d30
mov ecx, esi
int3

Function at 0x140024a30
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x1400c5a08]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov r14, rdx
mov edi, 0x104
xor ebx, ebx
lea rdx, [rsp + 0x30]
mov r8d, edi
mov qword [rsp + 0x20], rbx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
mov esi, eax
test eax, eax
jne 0x140024ab4
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jne 0x140024a9a
mov edi, 0x80004005
jmp 0x140024aa8
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov ecx, edi
call fcn.140025d30
jmp 0x140024b51
cmp esi, edi
ja 0x140024af8
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.140029fcc
mov edi, eax
test eax, eax
js 0x140024ae4
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r8, r14
call fcn.140028308
mov edi, eax
test eax, eax
jns 0x140024aeb
mov ecx, eax
call fcn.140025d30
mov ecx, edi
int3
mov rdx, rsi
lea r8, [rsp + 0x20]
call fcn.140002ac4
mov edi, eax
test eax, eax
jns 0x140024b19
mov ecx, eax
call fcn.140025d30
mov rbx, qword [rsp + 0x20]
jmp 0x140024b51
mov rbx, qword [rsp + 0x20]
mov r8d, esi
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
je 0x140024a83
cmp eax, esi
je 0x140024b49
mov edi, 0x8007007a
jmp 0x140024aa8
mov rax, rbx
xor ebx, ebx
mov qword [r14], rax
mov ecx, edi
int3
Function at 0x14002a790
Capabilities:
Copy file
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov ebx, dword [rsp + 0xb8]
xor edi, edi
mov rsi, rdx
mov r15, rcx
test ebx, 0xffffffe0
je 0x14002a7db
lea ecx, [rdi + 0x57]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x14002a9f4
mov ecx, ebx
mov eax, ebx
and ecx, 1
and eax, 8
mov r14d, ecx
bts r14d, 0xc
test al, al
cmove r14d, ecx
xor edx, edx
mov rcx, r15
call fcn.14002bad0
mov qword [rsp + 0xb0], rax
mov r13, rax
test rax, rax
je 0x14002a9f2
xor edx, edx
mov rcx, rsi
call fcn.14002bad0
mov qword [rsp + 0x40], rax
mov rbp, rax
test rax, rax
je 0x14002a9ad
mov rbp, qword [rsp + 0xa8]
xor r12d, r12d
mov r8, qword [rsp + 0xa0]
mov r9, rbp
and dword [rsp + 0xb8], 0
mov rdx, rsi
mov dword [rsp + 0x28], r14d
mov rcx, r15
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CopyFileExW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x14002a8e9
mov ecx, ebx
and ecx, 2
test cl, cl
je 0x14002a8e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
inc r12d
lea r8, [rsp + 0xb8]
mov edx, eax
mov ecx, r12d
mov r13d, eax
int3
mov rbp, qword [rsp + 0x40]
test edi, edi
je 0x14002a9a5
and ebx, 4
test bl, bl
je 0x14002a9a5
mov edx, 0x80
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x14002a9a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea r15d, [rdi + 0x1f]
mov r14d, 0x2000000
test eax, eax
lea r8, str.WdsCopyFileEx:_Failed_to_strip_file_attributes_for__s__will_delete._GLE__0x_x
mov ebx, eax
lea rcx, [0x1400c8aa0]
cmove ebx, r15d
mov r9, rsi
mov edx, r14d
mov dword [rsp + 0x20], ebx
call fcn.14002a5d8
xor edx, edx
mov rcx, rsi
call fcn.14002ae08
test eax, eax
jne 0x14002a997
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r9, rsi
lea r8, str.WdsCopyFileEx:_Failed_to_delete__s._GLE__0x_x
test eax, eax
lea rcx, [0x1400c8aa0]
mov edx, r14d
cmove eax, r15d
mov dword [rsp + 0x20], eax
call fcn.14002a5d8
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov r13, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, r13
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
test rbp, rbp
je 0x14002a9f2
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbp
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov eax, edi
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140056410
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], r9
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
xor r13d, r13d
mov r12, rdx
mov qword [rbp + 0x60], r13
mov r15, rcx
mov qword [rbp - 0x20], r13
mov edi, r13d
test rcx, rcx
je 0x14005666a
or rsi, 0xffffffffffffffff
cmp rdx, rsi
je 0x14005666a
mov r14d, 0x80070000
test r8, r8
je 0x140056534
test byte [r8 + 0x40], 8
jne 0x140056534
mov rcx, r8
int3
mov ebx, r13d
test ebx, ebx
js 0x14005665a
mov r14, qword [r15]
test r14, r14
je 0x140056583
lea rdx, [rbp - 0x10]
mov rcx, r14
call fcn.140033628
mov ebx, eax
test eax, eax
js 0x140056588
movaps xmm0, xmmword [rbp - 0x10]
lea r9, [rbp - 0x20]
lea r8, [rbp + 0x60]
movdqa xmmword [rbp - 0x10], xmm0
lea rdx, [rbp - 0x10]
mov dword [rsp + 0x20], r13d
mov rcx, r14
call fcn.1400333b4
mov rdi, qword [rbp + 0x60]
mov ebx, eax
jmp 0x140056588
mov ebx, 0x80070057
test ebx, ebx
js 0x140056635
inc rsi
cmp word [rdi + rsi*2], r13w
jne 0x140056590
lea rax, [rsi*2 + 2]
mov ecx, 0xffffffff
cmp rax, rcx
mov esi, ecx
cmovbe esi, eax
cmp rcx, rax
sbb ebx, ebx
and ebx, 0x80070216
cmp rax, rcx
ja 0x140056635
lea r8d, [rsi - 2]
mov dword [rbp + 0x58], r13d
lea r9, [rbp + 0x58]
mov qword [rsp + 0x20], r13
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
je 0x1400565f9
mov eax, dword [rbp + 0x58]
mov ecx, esi
sub rcx, 2
cmp rax, rcx
jne 0x1400565f9
mov ebx, r13d
jmp 0x140056635
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
mov esi, 0x80070000
or ecx, esi
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x140056630
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
jmp 0x140056635
mov ebx, 0x80004005
test rdi, rdi
je 0x14005665a
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov ecx, ebx
call fcn.140055034
not ebx
shr ebx, 0x1f
mov eax, ebx
jmp 0x14005667d
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14007f1e4
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, dword [0x1400c9a68]
test eax, eax
je 0x14007f3f9
add eax, 0xffffffff
mov dword [0x1400c9a68], eax
jne 0x14007f3f9
mov rsi, qword [0x1400c9a80]
lea rbx, [0x14007e280]
and qword [0x1400c9a80], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
nop dword [rax + rax]
cmp rbx, rax
cmove rax, qword [0x1400c9a70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
nop dword [rax + rax]
mov ecx, dword [0x1400c5b84]
and qword [0x1400c9a70], 0
call qword [sym.imp.KERNEL32.dll_TlsFree]
nop dword [rax + rax]
mov ecx, dword [0x1400c5b8c]
or dword [0x1400c5b84], 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x14007f309
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14007f2c1
mov rax, qword [rax]
jmp 0x14007f2ac
mov rcx, rdi
int3
mov rdi, qword [rax + rdx*8 - 8]
mov rcx, rbx
dec rdx
call fcn.1400804a8
test rdi, rdi
jne 0x14007f298
mov rdi, qword [rbx]
test rdi, rdi
je 0x14007f2e9
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov ecx, dword [0x1400c5b8c]
call qword [sym.imp.KERNEL32.dll_TlsFree]
nop dword [rax + rax]
or dword [0x1400c5b8c], 0xffffffff
lea rcx, [0x1400c9138]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
mov rdx, qword [0x1400c9a60]
test rdx, rdx
je 0x14007f3c7
mov ecx, dword [0x1400c9a88]
xor ebx, ebx
test ecx, ecx
je 0x14007f38d
mov rdi, qword [rdx + rbx*8]
test rdi, rdi
je 0x14007f387
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov rdx, qword [0x1400c9a60]
mov ecx, dword [0x1400c9a88]
inc ebx
cmp ebx, ecx
jb 0x14007f351
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, qword [0x1400c9a60]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
and qword [0x1400c9a60], 0
and dword [0x1400c9a88], 0
and dword [0x1400c9a90], 0
lea rcx, [0x1400c9138]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
test rsi, rsi
je 0x14007f3e7
mov rcx, rsi
int3
and dword [0x1400c9a7c], 0
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400800f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor esi, esi
mov ecx, dword [0x1400c5b84]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x1400802b9
lea rcx, [0x1400c9138]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
nop
cmp qword [0x1400c9a60], rdi
jne 0x140080180
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
xor edx, edx
lea r8d, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov qword [0x1400c9a60], rax
lea ebx, [rsi + 1]
test rax, rax
je 0x14008024e
xor eax, eax
mov dword [0x1400c9a90], eax
mov dword [0x1400c9a88], ebx
jmp 0x1400801e6
mov eax, dword [0x1400c9a90]
mov ecx, dword [0x1400c9a88]
cmp eax, ecx
jne 0x1400801e1
lea ebx, [rcx + 1]
shl rbx, 3
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r9, rbx
mov r8, qword [0x1400c9a60]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
nop dword [rax + rax]
mov ebx, 1
test rax, rax
je 0x14008024e
mov qword [0x1400c9a60], rax
add dword [0x1400c9a88], ebx
mov eax, dword [0x1400c9a90]
jmp 0x1400801e6
mov ebx, 1
mov ecx, eax
mov rax, qword [0x1400c9a60]
and qword [rax + rcx*8], 0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
xor edx, edx
mov r8d, 0x8018
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rdi, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x14008024e
add rax, 0x18
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], 0x8000
mov rdx, rdi
mov ecx, dword [0x1400c5b84]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop dword [rax + rax]
test eax, eax
cmovne esi, ebx
test esi, esi
je 0x14008026d
mov edx, dword [0x1400c9a90]
mov rax, qword [0x1400c9a60]
mov qword [rax + rdx*8], rdi
add edx, ebx
mov dword [0x1400c9a90], edx
jmp 0x1400802a3
xor edx, edx
mov ecx, dword [0x1400c5b84]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
xor edi, edi
lea rcx, [0x1400c9138]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140085b10
Capabilities:
Copy file

Disassembly:
sub rsp, 0x38
xor eax, eax
mov r10, r8
test r9d, r9d
mov rcx, rdx
mov rdx, r10
setne al
xor r9d, r9d
mov dword [rsp + 0x28], eax
xor r8d, r8d
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CopyFileExW]
nop dword [rax + rax]
add rsp, 0x38
ret
Function at 0x1400860e0
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x40
mov eax, dword [rsp + 0x90]
mov r10d, r9d
mov r9, qword [rsp + 0x70]
mov r11, r8
mov dword [rsp + 0x38], eax
mov rcx, rdx
mov rax, qword [rsp + 0x88]
mov r8d, r10d
mov qword [rsp + 0x30], rax
mov rdx, r11
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
nop dword [rax + rax]
add rsp, 0x40
pop rbx
ret

Function at 0x1400861a0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rsp + 0x70]
mov r10, r9
mov r9, qword [rsp + 0x60]
mov r11, r8
mov qword [rsp + 0x28], rax
mov rcx, rdx
mov eax, dword [rsp + 0x68]
mov r8, r10
mov rdx, r11
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop dword [rax + rax]
add rsp, 0x30
pop rbx
ret

Function at 0x140086580
Capabilities:
Read .ini file

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rsp + 0x70]
mov r10, r9
mov r9, qword [rsp + 0x60]
mov r11, r8
mov qword [rsp + 0x28], rax
mov rcx, rdx
mov eax, dword [rsp + 0x68]
mov r8, r10
mov rdx, r11
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
nop dword [rax + rax]
add rsp, 0x30
pop rbx
ret

Function at 0x14008b588
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov r8, qword [rdx + 0x10]
xor ebp, ebp
mov rdi, rdx
mov rsi, rcx
mov ebx, ebp
test r8, r8
je 0x14008b65e
mov rax, rbp
cmp rbx, r8
jae 0x14008b5d4
mov rax, rbx
mul qword [rdi + 8]
test rdx, rdx
jne 0x14008b5d1
add rax, qword [rdi + 0x28]
cmp rax, qword [rdi + 0x28]
jae 0x14008b5d4
mov rax, rbp
mov r10, qword [rax]
mov rax, rbp
cmp rbx, r8
jae 0x14008b5f8
mov rax, rbx
mul qword [rdi + 8]
test rdx, rdx
jne 0x14008b5f5
add rax, qword [rdi + 0x28]
cmp rax, qword [rdi + 0x28]
jae 0x14008b5f8
mov rax, rbp
mov rcx, qword [rax]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bp
jne 0x14008b5ff
inc rax
lea r8, [rcx + rax*2]
or rax, 0xffffffffffffffff
inc rax
cmp word [r8 + rax*2], bp
jne 0x14008b613
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
mov rdx, r10
mov qword [rsp + 0x20], r8
mov rcx, rsi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov ecx, eax
test eax, eax
jne 0x14008b676
mov r8, qword [rdi + 0x10]
inc rbx
cmp rbx, r8
jb 0x14008b5b3
mov eax, ebp
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x14008b660
Function at 0x14009403d
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
mov rax, qword [rsp + 8]
and rdx, 0
dec rax
cmp word [rax], 0x5a4d
jne 0x14009405b
je 0x140094066
call 0x1400940b5
mov bl, 0xc7
lahf
pop rsi
jne 0x140094046
call 0x14009405e
mov ecx, edi
xor eax, 0x3c508b0b
mov edx, dword [rax + 0x3c]
cmp edx, 0x400
jae 0x140094046
sub rax, 0x48b5
add rdx, rax
add rdx, 0x48b5
add rax, 0x48b5
cmp word [rdx], 0x4550
jne 0x140094094
je 0x1400940d2
invalid
je 0x1400940e3
jne 0x140094046
lea rax, [0x140093f6c]
sub rsp, 8
mov qword [rsp], rcx
mov rcx, 0xffffffffffff2810
add rcx, 0xd960
add rcx, rax
push rcx
xchg rcx, rax
add rsp, 8
mov rcx, qword [rsp - 8]
mov rcx, qword [rsp]
add rsp, 8
call rax
lodsd eax, dword [rsi]
push rbp
movabs byte [0x894808ec8348c391], al
sub al, 0x24
mov rbp, rsp
mov qword [rsp - 8], 0
ret
add byte [rax], al
add byte [rax], al
sub rsp, 8
pop rax
add rax, rcx
sub rsp, 0x1e0
sub rsp, 0x20
and spl, 0xf0
mov byte [rbp - 0xd], 0x56
mov byte [rbp - 0xc], 0x69
mov byte [rbp - 0xb], 0x72
mov byte [rbp - 0xa], 0x74
mov byte [rbp - 9], 0x75
mov byte [rbp - 8], 0x61
mov byte [rbp - 7], 0x6c
mov byte [rbp - 6], 0x41
mov byte [rbp - 5], 0x6c
mov byte [rbp - 4], 0x6c
mov byte [rbp - 3], 0x6f
mov byte [rbp - 2], 0x63
mov byte [rbp - 1], 0
mov qword [rsp - 8], rsi
sub rsp, 8
add rsp, 8
mov rcx, qword [rsp - 8]
lea rdx, [rbp - 0xd]
call rax
sub rsp, 8
mov qword [rsp], 0
add rsp, 8
mov rcx, qword [rsp - 8]
mov rdx, 0x61be
mov r8, 0x3000
mov r9, 0x40
call rax
mov rcx, 0x4615
lea r9, [0x14008fccd]
dec rcx
mov dl, byte [r9 + rcx]
mov byte [rax + rcx], dl
test rcx, rcx
jne 0x140094184
mov rcx, 0x3fe0
mov r9d, 0x15c13
mov r10d, 0x92819200
dec rcx
mov dl, byte [rax + rcx]
xor dl, r9b
mov byte [rax + rcx], dl
sub r10d, 0x26fe2
add r9d, r10d
add r9d, 0x26fe2
add r10d, 0x26fe2
rol r9d, 1
test rcx, rcx
jne 0x1400941dd
je 0x1400941e3
call 0x1400941d4
fild qword [rdi - 0x7c]
jmp 0x174fd0956
jne 0x1400941a6
xor al, 1
add byte [rbp - 0x7f], dh
jne 0x140094166
add rax, 0x1ed4
mov rsp, rbp
pop rbp
ret
Function at 0x1400940b5
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov rax, qword [rsp + 8]
and rdx, 0
dec rax
cmp word [rax], 0x5a4d
jne 0x14009405b
je 0x140094066
call 0x1400940b5
mov bl, 0xc7
lahf
pop rsi
jne 0x140094046
call 0x14009405e
mov ecx, edi
xor eax, 0x3c508b0b
mov edx, dword [rax + 0x3c]
cmp edx, 0x400
jae 0x140094046
sub rax, 0x48b5
add rdx, rax
add rdx, 0x48b5
add rax, 0x48b5
cmp word [rdx], 0x4550
jne 0x140094094
je 0x1400940d2
invalid
je 0x1400940e3
jne 0x140094046
lea rax, [0x140093f6c]
sub rsp, 8
mov qword [rsp], rcx
mov rcx, 0xffffffffffff2810
add rcx, 0xd960
add rcx, rax
push rcx
xchg rcx, rax
add rsp, 8
mov rcx, qword [rsp - 8]
mov rcx, qword [rsp]
add rsp, 8
call rax
lodsd eax, dword [rsi]
push rbp
movabs byte [0x894808ec8348c391], al
sub al, 0x24
mov rbp, rsp
mov qword [rsp - 8], 0
ret
add byte [rax], al
add byte [rax], al
sub rsp, 8
pop rax
add rax, rcx
sub rsp, 0x1e0
sub rsp, 0x20
and spl, 0xf0
mov byte [rbp - 0xd], 0x56
mov byte [rbp - 0xc], 0x69
mov byte [rbp - 0xb], 0x72
mov byte [rbp - 0xa], 0x74
mov byte [rbp - 9], 0x75
mov byte [rbp - 8], 0x61
mov byte [rbp - 7], 0x6c
mov byte [rbp - 6], 0x41
mov byte [rbp - 5], 0x6c
mov byte [rbp - 4], 0x6c
mov byte [rbp - 3], 0x6f
mov byte [rbp - 2], 0x63
mov byte [rbp - 1], 0
mov qword [rsp - 8], rsi
sub rsp, 8
add rsp, 8
mov rcx, qword [rsp - 8]
lea rdx, [rbp - 0xd]
call rax
sub rsp, 8
mov qword [rsp], 0
add rsp, 8
mov rcx, qword [rsp - 8]
mov rdx, 0x61be
mov r8, 0x3000
mov r9, 0x40
call rax
mov rcx, 0x4615
lea r9, [0x14008fccd]
dec rcx
mov dl, byte [r9 + rcx]
mov byte [rax + rcx], dl
test rcx, rcx
jne 0x140094184
mov rcx, 0x3fe0
mov r9d, 0x15c13
mov r10d, 0x92819200
dec rcx
mov dl, byte [rax + rcx]
xor dl, r9b
mov byte [rax + rcx], dl
sub r10d, 0x26fe2
add r9d, r10d
add r9d, 0x26fe2
add r10d, 0x26fe2
rol r9d, 1
test rcx, rcx
jne 0x1400941dd
je 0x1400941e3
call 0x1400941d4
fild qword [rdi - 0x7c]
jmp 0x174fd0956
jne 0x1400941a6
xor al, 1
add byte [rbp - 0x7f], dh
jne 0x140094166
add rax, 0x1ed4
mov rsp, rbp
pop rbp
ret
Function at 0x140001569
Capabilities:
Check if file exists
Create directory

Disassembly:
jmp 0x14000cdbc
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x1401350f3]
call fcn.140004160
mov rcx, qword [rbp + 0x100]
call fcn.14000149c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0xffffffff
jne 0x14000ce20
mov rcx, qword [rbp + 0x100]
call fcn.14000149c
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x14000ce1a
mov al, 1
jmp 0x14000ce32
xor al, al
jmp 0x14000ce32
mov eax, dword [rbp + 4]
and eax, 0x10
test eax, eax
je 0x14000ce30
mov al, 1
jmp 0x14000ce32
xor al, al
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x140002617
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1400375f0
mov rax, rcx
neg rcx
test rax, 7
je 0x14003760d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x140037668
test al, 7
jne 0x140037600
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x140037621
mov rdx, qword [rax - 8]
test dl, dl
je 0x140037692
test dh, dh
je 0x14003768c
shr rdx, 0x10
test dl, dl
je 0x140037686
test dh, dh
je 0x140037680
shr rdx, 0x10
test dl, dl
je 0x14003767a
test dh, dh
je 0x140037674
shr edx, 0x10
test dl, dl
je 0x14003766e
test dh, dh
jne 0x140037621
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x140002932
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400336c0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140033040
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400336ff
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140136020]
jmp 0x140033709
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret