joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000c850
Capabilities:
Reference wmi statements

Disassembly:
push rbp
push rbx
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14001e010]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor r15d, r15d
lea r8, str.ROOTCIMV2
lea rdx, [rbp - 0x38]
mov qword [rbp - 0x48], r15
lea rcx, [rbp - 0x48]
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x50], r15
mov ebx, r15d
call fcn.140010de0
test eax, eax
je 0x14000ca7a
mov qword [rsp + 0xa0], rsi
lea rcx, [0x140019b50]
mov qword [rsp + 0xa8], rdi
mov qword [rsp + 0xb0], r12
mov qword [rsp + 0xb8], r14
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea rcx, [0x140017cf0]
mov rsi, rax
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov r12d, 1
mov rdi, rax
mov r14d, r12d
test rsi, rsi
je 0x14000c94d
test rax, rax
je 0x14000c944
mov rcx, qword [rbp - 0x48]
lea rax, [rbp - 0x50]
mov qword [rsp + 0x28], rax
lea r9d, [r15 + 0x30]
mov r8, rdi
mov qword [rsp + 0x20], r15
mov rdx, qword [rcx]
mov r10, qword [rdx + 0xa0]
mov rdx, rsi
call r10
test eax, eax
jns 0x14000c944
lea rcx, str.ExecQuery
mov r14d, r15d
call fcn.14000e770
mov rcx, qword [rbp - 0x48]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x38]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rsi, qword [rsp + 0xa0]
test rdi, rdi
je 0x14000c963
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rdi, qword [rsp + 0xa8]
test r14d, r14d
mov r14, qword [rsp + 0xb8]
je 0x14000ca58
mov rcx, qword [rbp - 0x50]
mov qword [rbp - 0x40], r15
mov dword [rbp - 0x18], r15d
test rcx, rcx
je 0x14000ca38
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rcx]
lea rdx, [rbp - 0x18]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x40]
mov edx, 0xffffffff
mov r8d, r12d
call qword [rax + 0x20]
cmp dword [rbp - 0x18], r15d
je 0x14000ca34
mov rcx, qword [rbp - 0x40]
lea r9, [rbp - 0x30]
mov qword [rsp + 0x28], r15
lea rdx, str.MACAddress
xor r8d, r8d
mov qword [rsp + 0x20], r15
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
js 0x14000ca17
movzx eax, word [rbp - 0x30]
cmp ax, r12w
je 0x14000ca17
test al, 8
je 0x14000ca0d
mov rcx, qword [rbp - 0x28]
lea rdx, str.08:00:27
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
cmovne ebx, r12d
lea rcx, [rbp - 0x30]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 0x40]
mov rax, qword [rcx]
call qword [rax + 0x10]
test ebx, ebx
jne 0x14000ca34
mov rcx, qword [rbp - 0x50]
test rcx, rcx
jne 0x14000c9a0
jmp 0x14000ca38
mov rcx, qword [rbp - 0x50]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rbp - 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rbp - 0x38]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov r12, qword [rsp + 0xb0]
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400116f0
add rsp, 0x80
pop r15
pop rbx
pop rbp
ret
mov eax, ebx
jmp 0x14000ca62
Function at 0x14000cbf0
Capabilities:
Reference wmi statements

Disassembly:
push rbp
push rbx
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14001e010]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor r15d, r15d
lea r8, str.ROOTCIMV2
lea rdx, [rbp - 0x38]
mov qword [rbp - 0x50], r15
lea rcx, [rbp - 0x50]
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x48], r15
mov ebx, r15d
call fcn.140010de0
test eax, eax
je 0x14000ce11
mov qword [rsp + 0xa0], rsi
lea rcx, [0x140019b50]
mov qword [rsp + 0xa8], rdi
mov qword [rsp + 0xb0], r12
mov qword [rsp + 0xb8], r14
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea rcx, str.SELECT__FROM_Win32_PnPEntity
mov rsi, rax
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov r12d, 1
mov rdi, rax
mov r14d, r12d
test rsi, rsi
je 0x14000cced
test rax, rax
je 0x14000cce4
mov rcx, qword [rbp - 0x50]
lea rax, [rbp - 0x48]
mov qword [rsp + 0x28], rax
lea r9d, [r15 + 0x30]
mov r8, rdi
mov qword [rsp + 0x20], r15
mov rdx, qword [rcx]
mov r10, qword [rdx + 0xa0]
mov rdx, rsi
call r10
test eax, eax
jns 0x14000cce4
lea rcx, str.ExecQuery
mov r14d, r15d
call fcn.14000e770
mov rcx, qword [rbp - 0x50]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x38]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rsi, qword [rsp + 0xa0]
test rdi, rdi
je 0x14000cd03
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rdi, qword [rsp + 0xa8]
test r14d, r14d
mov r14, qword [rsp + 0xb8]
je 0x14000cdef
mov rcx, qword [rbp - 0x48]
mov qword [rbp - 0x40], r15
mov dword [rbp - 0x18], r15d
test rcx, rcx
je 0x14000cdcb
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rcx]
lea rdx, [rbp - 0x18]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x40]
mov edx, 0xffffffff
mov r8d, r12d
call qword [rax + 0x20]
cmp dword [rbp - 0x18], r15d
je 0x14000cdcb
mov rcx, qword [rbp - 0x40]
lea r9, [rbp - 0x30]
mov qword [rsp + 0x28], r15
lea rdx, str.DeviceId
xor r8d, r8d
mov qword [rsp + 0x20], r15
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
js 0x14000cdb0
cmp word [rbp - 0x30], 8
jne 0x14000cda6
mov rcx, qword [rbp - 0x28]
lea rdx, str.PCIVEN_80EEDEV_CAFE
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
cmovne ebx, r12d
lea rcx, [rbp - 0x30]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 0x40]
mov rax, qword [rcx]
call qword [rax + 0x10]
test ebx, ebx
jne 0x14000cdcb
mov rcx, qword [rbp - 0x48]
test rcx, rcx
jne 0x14000cd40
mov rcx, qword [rbp - 0x50]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rbp - 0x38]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rbp - 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov r12, qword [rsp + 0xb0]
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400116f0
add rsp, 0x80
pop r15
pop rbx
pop rbp
ret
mov eax, ebx
jmp 0x14000cdf9
Function at 0x14000ecb0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x850
mov rax, qword [0x14001e010]
xor rax, rsp
mov qword [rsp + 0x840], rax
mov rsi, r8
mov qword [rsp + 0x30], 0
mov rbx, rdx
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x800
mov rdi, r9
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x30]
mov dword [rsp + 0x38], 0x104
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000ed7c
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x40]
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000ed71
mov rdx, rdi
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
je 0x14000ed71
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x14000ed7e
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.1400116f0
add rsp, 0x850
pop rdi
pop rsi
pop rbx
ret

Function at 0x14000eda0
Capabilities:
Get mac address on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x14001e010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rsi, rcx
mov dword [rsp + 0x20], 0x2c0
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0x2c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x14000edfe
lea rcx, str.Error_allocating_memory_needed_to_call_GetAdaptersinfo._n
call fcn.1400063d0
lea eax, [rdi - 1]
jmp 0x14000eec2
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x14000ee64
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x14000ee56
lea rcx, str.Error_allocating_memory_needed_to_call_GetAdaptersinfo_n
call fcn.14000b0e0
lea eax, [rbx + 1]
jmp 0x14000eec2
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x14000eeac
movzx eax, byte [rsi]
movzx ecx, byte [rsi + 4]
mov byte [rsp + 0x24], al
movzx eax, byte [rsi + 2]
mov byte [rsp + 0x25], al
mov rax, rbx
movzx edx, word [rsp + 0x24]
cmp dword [rax + 0x194], 6
jne 0x14000ee9d
cmp dx, word [rax + 0x198]
jne 0x14000ee9d
cmp cl, byte [rax + 0x19a]
je 0x14000eea7
mov rax, qword [rax]
test rax, rax
jne 0x14000ee83
jmp 0x14000eeac
mov edi, 1
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400116f0
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140010cd0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x14001e010]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rcx
lea rdi, [rsp + 0x20]
xor eax, eax
mov ecx, 0x238
rep stosb byte [rdi], al
lea ecx, [rax + 2]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140010d27
lea rcx, [0x140019a20]
call fcn.14000e770
xor eax, eax
jmp 0x140010dbe
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x140010d5a
lea rcx, str.Process32First
call fcn.14000e770
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140010dbe
mov rdx, rbx
lea rcx, [rsp + 0x4c]
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x140010db1
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x140010da4
nop
mov rdx, rbx
lea rcx, [rsp + 0x4c]
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x140010db1
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140010d80
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140010dbe
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400116f0
mov rbx, qword [rsp + 0x288]
add rsp, 0x270
pop rdi
ret
Function at 0x140010de0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rdi, rdx
mov rsi, rcx
xor edx, edx
xor ecx, ecx
mov rbx, r8
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x140010e24
lea rcx, [0x140019a90]
call fcn.14000e770
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
mov qword [rsp + 0x60], rbp
xor r9d, r9d
xor ebp, ebp
xor r8d, r8d
mov qword [rsp + 0x40], rbp
xor ecx, ecx
mov dword [rsp + 0x38], ebp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 3
lea edx, [rbp - 1]
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jns 0x140010e73
lea rcx, [0x140019ab0]
call fcn.14000e770
call qword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x140010f70
xor edx, edx
mov qword [rsp + 0x20], rdi
lea r9, [0x140019be0]
lea rcx, [0x140013830]
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x140010eaf
lea rcx, [0x140019ae0]
call fcn.14000e770
call qword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x140010f70
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
test rax, rax
je 0x140010f13
mov rcx, qword [rdi]
xor r9d, r9d
mov qword [rsp + 0x40], rsi
xor r8d, r8d
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov rdx, qword [rcx]
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], rbp
mov r10, qword [rdx + 0x18]
mov rdx, rax
call r10
mov rcx, rbx
test eax, eax
jns 0x140010f0d
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
lea rcx, str.ConnectServer
call fcn.14000e770
jmp 0x140010f58
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rsi]
xor r9d, r9d
mov dword [rsp + 0x38], ebp
xor r8d, r8d
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 3
lea edx, [r9 + 0xa]
mov dword [rsp + 0x20], 3
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x140010f6b
lea rcx, [0x140019b28]
call fcn.14000e770
mov rcx, qword [rsi]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rdi]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x140010f70
mov eax, 1
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x140012250
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001229a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001229a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001229a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001229a
cmp dword [rcx + 0x84], 0xe
jbe 0x14001229a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001229c
xor al, al
add rsp, 0x28
ret
Function at 0x1407dd058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1407dd1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1407dd089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407dd06f
add dl, dl
jne 0x1407dd096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407dd0f6
xor eax, eax
add dl, dl
jne 0x1407dd0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407dd1ad
add dl, dl
jne 0x1407dd0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407dd0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407dd0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407dd0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407dd0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1407dd07e
mov eax, 1
add dl, dl
jne 0x1407dd106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407dd113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407dd0fb
sub eax, ebx
mov ebx, 1
jne 0x1407dd14c
mov ecx, 1
add dl, dl
jne 0x1407dd12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407dd13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407dd123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407dd07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1407dd168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407dd175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407dd15d
cmp eax, 0x7d00
jae 0x1407dd19b
cmp eax, 0x500
jb 0x1407dd196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407dd07e
cmp eax, 0x7f
ja 0x1407dd19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407dd07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407dd1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1407dd07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001487
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14000c9d0]
mov dword [rax], 1
mov rax, qword [0x14000c9e0]
mov dword [rax], 1
mov rax, qword [0x14000c9f0]
mov dword [rax], 1
mov rax, qword [0x14000c960]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014d8
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140001504
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000152a
cmp eax, 0x20b
je 0x140001551
jmp 0x140001580
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000153d
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000156c
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001f20
Capabilities:
Create directory

Disassembly:
push r14
mov eax, 0x2020
push r13
push r12
push rsi
push rbx
call fcn.140003f40
sub rsp, rax
mov eax, dword [0x1400200e0]
mov r12, rcx
test eax, eax
je 0x140001ff0
xor ebx, ebx
lea rsi, [0x14001e0e0]
test eax, eax
jg 0x140001f64
jmp 0x140001f90
add rbx, 1
cmp dword [0x1400200e0], ebx
jle 0x140001f90
mov rdx, qword [rsi + rbx*8]
mov rcx, r12
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140001f58
mov eax, 1
add rsp, 0x2020
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret
mov rcx, r12
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x140001fa7
cmp word [r12 + 2], 0x3a
je 0x140001f74
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140002040
movsxd rbx, dword [0x1400200e0]
cmp ebx, 0x3ff
jg 0x140001f74
mov rcx, r12
call sub.msvcrt.dll__wcsdup
add dword [0x1400200e0], 1
mov r8, rax
lea rax, [0x14001e0e0]
mov qword [rax + rbx*8], r8
jmp 0x140001f74
lea r13, [rsp + 0x20]
lea r14, str._HOME_
mov r8d, 0x1000
mov rdx, r14
mov rcx, r13
call fcn.140001860
test al, al
je 0x140002058
movsxd rbx, dword [0x1400200e0]
mov rcx, r13
lea rsi, [0x14001e0e0]
call sub.msvcrt.dll__wcsdup
mov qword [rsi + rbx*8], rax
mov eax, dword [0x1400200e0]
add eax, 1
mov dword [0x1400200e0], eax
jmp 0x140001f46
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140001fba
xor eax, eax
jmp 0x140001f79
mov rcx, r14
call fcn.140001ef0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002210
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
lea rsi, [0x14000c11a]
lea rdi, [0x14001c0e0]
mov rcx, qword [0x1400110a0]
movq xmm6, rdi
movq xmm0, rsi
punpcklqdq xmm6, xmm0
test rcx, rcx
je 0x140002267
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140002288
mov rcx, qword [0x1400110a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14001c0c0], 0
jne 0x1400022a0
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [0x1400110a0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x14000225a
mov edx, 0x414
lea r12, [rsp + 0x20]
mov qword [rsp + 0x20], 0
mov rbp, qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov dword [rsp + 0x28], 3
mov rcx, r12
mov ebx, 0x14
mov word [rsp + 0x40], dx
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rsi
movaps xmmword [rsp + 0x30], xmm6
call rbp
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140002354
test al, 0x10
je 0x140002270
mov ecx, 0x64
call r14
mov eax, 0x414
mov qword [rsp + 0x50], rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
movaps xmmword [rsp + 0x30], xmm6
call rbp
sub ebx, 1
je 0x140002270
mov rcx, rdi
call r13
cmp eax, 0xffffffff
jne 0x140002300
jmp 0x140002270
Function at 0x140002c40
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.140009b40
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140009b40
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x1400038f2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400201c8]
test eax, eax
je 0x14000398a
lea rax, [0x1400201a0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400201d0]
mov qword [rbp - 8], rax
jmp 0x14000396e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140003962
cmp qword [rbp - 0x10], 0
je 0x140003962
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140003928
lea rax, [0x1400201a0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000398b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140003a90
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140003ab8
mov eax, 0
jmp 0x140003b06
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140003ae1
mov eax, 0
jmp 0x140003b06
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140003b01
mov eax, 0
jmp 0x140003b06
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140003b0c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140003b8a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140003b81
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140003b81
mov rax, qword [rbp - 8]
jmp 0x140003b9f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140003b54
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140badc23
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140ba2310
not eax
jmp 0x140baa85b
mov dword [rbp + riz], eax
jmp 0x140bbd341
jmp 0x140bb0da9
lea rsp, [rsp + 0x10]
je 0x140b93394
mov r11d, 0x67071615
push rdi
lea rdi, [0x140ba5e98]
mov r11d, 0x12059532
push r11
movzx r11d, byte [rcx + r11*4 - 0x481654c8]
add dword [rsp + 4], 0x917ad91
xor r11d, eax
and r11d, 0xff
mov r11d, dword [rdi + r11*4]
shr eax, 8
xor eax, r11d
inc byte [rsp + 6]
inc rcx
rol word [rsp + 5], 0xa5
shr byte [rsp + 7], 0xc1
xor eax, 0x6c3fa41b
dec r10
lea rsp, [rsp + 8]
jne 0x140bb0dc2
call fcn.140b9338a
jmp fcn.140b8acdc