joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001cba0
Capabilities:
Read file on windows

Disassembly:
push rsi
push r14
sub rsp, 0xd8
mov rax, qword [0x1402a87a8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov r14, rdx
mov qword [rsp + 0x20], 0
mov rdx, rcx
lea r8, [0x140266b68]
lea rcx, [rsp + 0x20]
call fcn.1401bb338
cmp qword [rsp + 0x20], 0
je 0x14001cce8
lea rcx, [rsp + 0x30]
call fcn.14002fc10
mov ecx, 0x8000
call fcn.14003159c
mov rsi, rax
test rax, rax
je 0x14001cce8
mov r9, qword [rsp + 0x20]
mov edx, 1
mov qword [rsp + 0x100], rbx
mov r8d, 0x8000
mov qword [rsp + 0x108], rbp
mov rcx, rax
mov qword [rsp + 0xd0], rdi
call fcn.1401c6840
test rax, rax
je 0x14001cc6d
nop
mov r8, rax
lea rcx, [rsp + 0x30]
mov rdx, rsi
call fcn.14002fc80
mov r9, qword [rsp + 0x20]
mov edx, 1
mov r8d, 0x8000
mov rcx, rsi
call fcn.1401c6840
test rax, rax
jne 0x14001cc40
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0xa0]
call fcn.14002f8f0
lea rbx, [rsp + 0xa0]
mov rdi, r14
mov ebp, 0x20
nop
movzx r9d, byte [rbx]
lea r8, str._02x
mov edx, 4
mov rcx, rdi
call fcn.140007760
add rdi, 2
lea rbx, [rbx + 1]
sub rbp, 1
jne 0x14001cc90
mov rcx, qword [rsp + 0x20]
mov byte [r14 + 0x40], bpl
call fcn.1401bb51c
mov rcx, rsi
call fcn.140031594
mov rdi, qword [rsp + 0xd0]
xor eax, eax
mov rbp, qword [rsp + 0x108]
mov rbx, qword [rsp + 0x100]
jmp 0x14001cced
mov eax, 0xffffffff
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1401b2ef0
add rsp, 0xd8
pop r14
pop rsi
ret

Function at 0x14001cd10
Capabilities:
Read file on windows

Disassembly:
push rsi
push r14
sub rsp, 0xd8
mov rax, qword [0x1402a87a8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov r14, rdx
mov qword [rsp + 0x20], 0
mov rdx, rcx
lea r8, [0x140266b6c]
lea rcx, [rsp + 0x20]
call fcn.1401bb2e0
cmp qword [rsp + 0x20], 0
je 0x14001ce58
lea rcx, [rsp + 0x30]
call fcn.14002fc10
mov ecx, 0x8000
call fcn.14003159c
mov rsi, rax
test rax, rax
je 0x14001ce58
mov r9, qword [rsp + 0x20]
mov edx, 1
mov qword [rsp + 0x100], rbx
mov r8d, 0x8000
mov qword [rsp + 0x108], rbp
mov rcx, rax
mov qword [rsp + 0xd0], rdi
call fcn.1401c6840
test rax, rax
je 0x14001cddd
nop
mov r8, rax
lea rcx, [rsp + 0x30]
mov rdx, rsi
call fcn.14002fc80
mov r9, qword [rsp + 0x20]
mov edx, 1
mov r8d, 0x8000
mov rcx, rsi
call fcn.1401c6840
test rax, rax
jne 0x14001cdb0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0xa0]
call fcn.14002f8f0
lea rbx, [rsp + 0xa0]
mov rdi, r14
mov ebp, 0x20
nop
movzx r9d, byte [rbx]
lea r8, str._02x
mov edx, 4
mov rcx, rdi
call fcn.140007760
add rdi, 2
lea rbx, [rbx + 1]
sub rbp, 1
jne 0x14001ce00
mov rcx, qword [rsp + 0x20]
mov byte [r14 + 0x40], bpl
call fcn.1401bb51c
mov rcx, rsi
call fcn.140031594
mov rdi, qword [rsp + 0xd0]
xor eax, eax
mov rbp, qword [rsp + 0x108]
mov rbx, qword [rsp + 0x100]
jmp 0x14001ce5d
mov eax, 0xffffffff
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1401b2ef0
add rsp, 0xd8
pop r14
pop rsi
ret
Function at 0x14001d7c0
Capabilities:
Get mac address on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x940
mov rax, qword [0x1402a87a8]
xor rax, rsp
mov qword [rsp + 0x930], rax
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0x530]
mov r8d, 0x400
call fcn.1401b8ea0
xor edx, edx
lea rcx, [rsp + 0x130]
mov r8d, 0x400
call fcn.1401b8ea0
lea rcx, [rsp + 0x530]
call fcn.14001a2a0
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, reloc.OLEAUT32.dll_SetErrorInfo
call fcn.1401b8ea0
mov dword [rsp + 0x50], 0x2c0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0x2c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x14001d9b1
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x14001d8a6
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x14001d9b1
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x14001d99d
mov rbx, rdi
test rdi, rdi
je 0x14001d99d
mov qword [rsp + 0x958], rbp
mov ebp, 0x8240
nop word [rax + rax]
movzx ecx, byte [rbx + 0x19c]
movzx edx, byte [rbx + 0x19b]
movzx r8d, byte [rbx + 0x19a]
movzx eax, byte [rbx + 0x19d]
movzx r10d, byte [rbx + 0x199]
movzx r9d, byte [rbx + 0x198]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], ecx
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x30], edx
mov edx, reloc.OLEAUT32.dll_SetErrorInfo
mov dword [rsp + 0x28], r8d
lea r8, [0x1402668f8]
mov dword [rsp + 0x20], r10d
call fcn.140007760
lea rcx, [rsp + 0x130]
call fcn.14001c110
test eax, eax
jne 0x14001d953
mov byte [rsp + 0x130], al
jmp 0x14001d972
cmp byte [rsp + 0x130], 0
je 0x14001d972
mov eax, dword [rbx + 0x1a4]
cmp eax, 0xf
ja 0x14001d96d
bt ebp, eax
jb 0x14001d995
cmp eax, 0x47
je 0x14001d995
mov rbx, qword [rbx]
lea r8, [rsp + 0x60]
mov edx, reloc.OLEAUT32.dll_SetErrorInfo
lea rcx, [rsp + 0x130]
call fcn.1401c5914
test rbx, rbx
jne 0x14001d8e0
mov rbp, qword [rsp + 0x958]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rcx, [rsp + 0x130]
call fcn.140002630
lea rcx, [rsp + 0x530]
mov ebx, eax
call fcn.140002630
mov r9d, eax
mov dword [rsp + 0x20], ebx
lea r8, str.__lu__lu
mov edx, 0x104
mov rcx, rsi
call fcn.140007760
mov rcx, qword [rsp + 0x930]
xor rcx, rsp
call fcn.1401b2ef0
lea r11, [rsp + 0x940]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14001dea0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x288
mov rax, qword [0x1402a87a8]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, str.SoftwareNohope92Moss
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000001
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14001dfaa
mov rcx, qword [rsp + 0x50]
lea rax, [0x1403b1510]
mov dword [rsp + 0x28], 4
lea rdx, [0x140266ee0]
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x280], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x208
mov rbx, rax
call fcn.1401b8ea0
mov r8d, 0x104
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 0x208
lea rdx, str.LAST_PATH
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x280]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1401b2ef0
add rsp, 0x288
ret

Function at 0x14001dfd0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x288
mov rax, qword [0x1402a87a8]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x208
call fcn.1401b8ea0
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, str.SoftwareNohope92Moss
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000001
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14001e0a8
lea r8, str.6_9_2
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.1401c573c
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 0x208
lea rdx, str.Version
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1401b2ef0
add rsp, 0x288
ret
xor al, al
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1401b2ef0
add rsp, 0x288
ret
Function at 0x14001e0d0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x288
mov rax, qword [0x1402a87a8]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x208
call fcn.1401b8ea0
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, str.SoftwareNohope92Moss
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000001
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14001e1a8
lea r8, [0x140260f70]
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.1401c573c
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 0x208
lea rdx, str.Version
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1401b2ef0
add rsp, 0x288
ret
xor al, al
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1401b2ef0
add rsp, 0x288
ret

Function at 0x140020280
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1402a87a8]
xor rax, rsp
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x38]
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea r8, [rsp + 0x30]
xor ecx, ecx
lea rdx, [0x140262658]
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x140020328
mov rax, qword [rsp + 0x30]
lea r8, [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor edx, edx
mov qword [rsp + 0x44], rax
xor eax, eax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x4c], 2
lea r9d, [rax + 0x10]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x140020328
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
je 0x140020328
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401b2ef0
add rsp, 0x68
ret
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401b2ef0
add rsp, 0x68
ret
Function at 0x1400276c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 8
mov r10d, r8d
mov r9, rdx
test rdx, rdx
jne 0x1400276d6
xor eax, eax
add rsp, 8
ret
mov qword [rsp], rbx
lea rbx, [0x140263380]
not ecx
cmp r10d, 8
jb 0x1400277c8
mov r11, r10
shr r11, 3
nop dword [rax]
nop dword [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r10d, 0xfffffff8
mov edx, dword [rbx + rax*4]
xor edx, ecx
movzx ecx, byte [r9 + 1]
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 2]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 3]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 4]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 5]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 6]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 7]
add r9, 8
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ecx, dword [rbx + rax*4]
xor ecx, edx
sub r11, 1
jne 0x140027700
test r10d, r10d
je 0x1400277f0
nop dword [rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
xor rdx, rax
shr eax, 8
movzx r8d, dl
mov ecx, dword [rbx + r8*4]
xor ecx, eax
add r10d, 0xffffffff
jne 0x1400277d0
mov rbx, qword [rsp]
not ecx
mov eax, ecx
add rsp, 8
ret

Function at 0x1400280e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov r10, r8
mov rdi, r9
imul r10d, edx
mov rsi, rdx
cmp byte [r9], 0
mov r11, rcx
je 0x14002813a
mov rdx, rcx
mov qword [rsp + 0x20], 0
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x48]
mov r8d, r10d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140028126
mov byte [rdi + 0x10], 1
mov eax, dword [rsp + 0x48]
xor edx, edx
div rsi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov edx, dword [r9 + 0x24]
mov ecx, dword [r9 + 0x20]
sub ecx, edx
mov qword [rsp + 0x40], rbx
lea eax, [rdx + r10]
cmp eax, dword [r9 + 0x20]
cmovbe ecx, r10d
add rdx, qword [r9 + 0x18]
mov ebx, ecx
mov r8d, ecx
mov rcx, r11
call fcn.1401b8a40
add dword [rdi + 0x24], ebx
mov eax, ebx
mov rbx, qword [rsp + 0x40]
xor edx, edx
div rsi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140028180
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
sub rsp, 0x38
cmp byte [rcx], 0
mov r14, rdx
mov qword [rsp + 0x58], rbp
mov rbx, rcx
mov qword [rsp + 0x30], rdi
mov edi, 1
je 0x1400281d0
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x60]
mov r8d, edi
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400281ca
mov byte [rbx + 0x10], dil
mov ebp, dword [rsp + 0x60]
jmp 0x140028207
mov qword [rsp + 0x68], rsi
mov esi, dword [rcx + 0x24]
mov ecx, dword [rcx + 0x20]
lea eax, [rsi + 1]
cmp eax, ecx
jbe 0x1400281e6
mov edi, ecx
sub edi, esi
mov rdx, rsi
mov r8d, edi
add rdx, qword [rbx + 0x18]
lea rcx, [rsp + 0x50]
mov ebp, edi
call fcn.1401b8a40
lea eax, [rsi + rdi]
mov rsi, qword [rsp + 0x68]
mov dword [rbx + 0x24], eax
mov rdi, qword [rsp + 0x30]
cmp ebp, 1
mov rbp, qword [rsp + 0x58]
jne 0x140028228
movzx eax, byte [rsp + 0x50]
mov dword [r14], eax
xor eax, eax
add rsp, 0x38
pop r14
pop rbx
ret
cmp byte [rbx], 0
je 0x14002821e
cmp byte [rbx + 0x10], 0
je 0x14002821e
mov eax, 0xffffffff
add rsp, 0x38
pop r14
pop rbx
ret

Function at 0x140029b30
Capabilities:
Create directory

Disassembly:
test rdx, rdx
je 0x140029c59
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x450
mov rax, qword [0x1402a87a8]
xor rax, rsp
mov qword [rsp + 0x440], rax
movzx eax, word [rdx]
mov rdi, rdx
mov rbx, rcx
test ax, ax
je 0x140029c39
mov qword [rsp + 0x470], rsi
mov rcx, rdx
mov rsi, rdx
cmp ax, 0x2f
je 0x140029b84
cmp ax, 0x5c
jne 0x140029b87
mov rsi, rcx
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x140029b78
cmp rsi, rdi
je 0x140029bd0
sub rsi, rdi
lea rcx, [rsp + 0x20]
sar rsi, 1
mov r8, rsi
call fcn.1401d0490
add rsi, rsi
cmp rsi, 0x208
jae 0x140029c5a
xor eax, eax
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov word [rsp + rsi + 0x20], ax
call fcn.140029b30
lea rcx, [rsp + 0x230]
sub rcx, rbx
nop dword [rax + rax]
movzx eax, word [rbx]
mov word [rcx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x140029be0
lea rcx, [rsp + 0x230]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140029c00
xor edx, edx
nop dword [rax]
movzx eax, word [rdi + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x140029c10
xor edx, edx
lea rcx, [rsp + 0x230]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rsi, qword [rsp + 0x470]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1401b2ef0
mov rbx, qword [rsp + 0x478]
add rsp, 0x450
pop rdi
ret
call fcn.1401b32fc
int3
Function at 0x140029b39
Capabilities:
Create directory

Disassembly:
test rdx, rdx
je 0x140029c59
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x450
mov rax, qword [0x1402a87a8]
xor rax, rsp
mov qword [rsp + 0x440], rax
movzx eax, word [rdx]
mov rdi, rdx
mov rbx, rcx
test ax, ax
je 0x140029c39
mov qword [rsp + 0x470], rsi
mov rcx, rdx
mov rsi, rdx
cmp ax, 0x2f
je 0x140029b84
cmp ax, 0x5c
jne 0x140029b87
mov rsi, rcx
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x140029b78
cmp rsi, rdi
je 0x140029bd0
sub rsi, rdi
lea rcx, [rsp + 0x20]
sar rsi, 1
mov r8, rsi
call fcn.1401d0490
add rsi, rsi
cmp rsi, 0x208
jae 0x140029c5a
xor eax, eax
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov word [rsp + rsi + 0x20], ax
call fcn.140029b30
lea rcx, [rsp + 0x230]
sub rcx, rbx
nop dword [rax + rax]
movzx eax, word [rbx]
mov word [rcx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x140029be0
lea rcx, [rsp + 0x230]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140029c00
xor edx, edx
nop dword [rax]
movzx eax, word [rdi + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x140029c10
xor edx, edx
lea rcx, [rsp + 0x230]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rsi, qword [rsp + 0x470]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1401b2ef0
mov rbx, qword [rsp + 0x478]
add rsp, 0x450
pop rdi
ret
call fcn.1401b32fc
int3
Function at 0x14002a0f0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, rcx
mov ecx, 0x348
call fcn.14003154c
mov qword [rsp + 0x68], rax
mov rsi, rax
test rax, rax
je 0x14002a12e
mov qword [rax], 0
mov dword [rax + 8], 0xffffffff
mov dword [rax + 0x138], 0xffffffff
jmp 0x14002a130
xor esi, esi
cmp qword [rsi], 0
mov qword [rsp + 0x50], rbx
jne 0x14002a234
cmp dword [rsi + 8], 0xffffffff
jne 0x14002a234
lea rbx, [rsi + 0x13c]
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
sub rbx, 2
cmp word [rbx + 2], 0
lea rbx, [rbx + 2]
jne 0x14002a162
mov eax, dword [0x140260f74]
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov rcx, rdi
mov dword [rbx], eax
lea r8d, [r9 + 1]
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x68], rax
cmp rax, 0xffffffffffffffff
je 0x14002a228
mov rcx, rax
mov qword [rsp + 0x58], r14
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
mov ecx, 0x28
mov edi, eax
sete bl
call fcn.14003154c
mov r14, rax
mov byte [rax], 1
mov byte [rax + 1], bl
mov rcx, qword [rsp + 0x68]
mov qword [rax + 8], rcx
mov byte [rax + 0x10], 0
mov dword [rax + 0x14], 0
cmp edi, 1
jne 0x14002a210
mov rcx, qword [rsp + 0x68]
mov r9d, edi
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [r14 + 0x14], eax
mov rcx, r14
call fcn.1400284a0
mov r14, qword [rsp + 0x58]
mov qword [rsi], rax
mov eax, dword [0x1403c0c0c]
jmp 0x14002a239
mov dword [0x1403bbc54], 0x200
jmp 0x14002a243
mov eax, 0x1000000
mov dword [0x1403bbc54], eax
test eax, eax
je 0x14002a262
mov edx, 0x348
mov rcx, rsi
call fcn.1400315dc
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov ecx, 0x10
call fcn.14003154c
mov rbx, qword [rsp + 0x50]
mov qword [rax + 8], rsi
mov rsi, qword [rsp + 0x60]
mov dword [rax], 1
add rsp, 0x40
pop rdi
ret
Function at 0x14002e080
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 8
mov r10, r8
mov r9, rdx
test rdx, rdx
jne 0x14002e096
xor eax, eax
add rsp, 8
ret
mov qword [rsp], rbx
lea rbx, [0x140264b20]
not ecx
cmp r10, 8
jb 0x14002e184
mov r11, r10
shr r11, 3
imul rax, r11, 0xfffffffffffffff8
add r10, rax
nop dword [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
mov edx, dword [rbx + rax*4]
xor edx, ecx
movzx ecx, byte [r9 + 1]
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 2]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 3]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 4]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 5]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 6]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 7]
add r9, 8
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ecx, dword [rbx + rax*4]
xor ecx, edx
sub r11, 1
jne 0x14002e0c0
test r10, r10
je 0x14002e1b0
nop dword [rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
xor rdx, rax
shr eax, 8
movzx r8d, dl
mov ecx, dword [rbx + r8*4]
xor ecx, eax
sub r10, 1
jne 0x14002e190
mov rbx, qword [rsp]
not ecx
mov eax, ecx
add rsp, 8
ret
Function at 0x14002e550
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r14
sub rsp, 0x30
mov rsi, qword [rcx + 0x20]
mov r14, rdx
mov edi, r8d
mov rbx, rcx
test rsi, rsi
je 0x14002e655
mov eax, dword [rcx + 0x28]
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r15
mov r15d, dword [rbx + 0x2c]
lea ecx, [rax + rdi]
cmp ecx, r15d
jb 0x14002e63e
add r15d, r15d
cmp r15d, ecx
cmovbe r15d, ecx
xor eax, eax
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], r15d
lea rcx, [rax - 1]
lea r8d, [rax + 4]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbp, rax
test rax, rax
je 0x14002e5ee
movsxd rax, r15d
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0xf001f
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rsi, rax
test rax, rax
jne 0x14002e60b
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x300
mov rbp, qword [rsp + 0x58]
mov r15, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
mov r8d, dword [rbx + 0x2c]
mov rcx, rsi
mov rdx, qword [rbx + 0x20]
call fcn.1401b8a40
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbx + 0x28]
mov dword [rbx + 0x2c], r15d
mov qword [rbx + 0x20], rsi
mov qword [rbx + 8], rbp
mov ecx, eax
mov r8, rdi
add rcx, rsi
mov rdx, r14
call fcn.1401b8a40
add dword [rbx + 0x28], edi
mov eax, edi
jmp 0x14002e5f3
mov rcx, qword [rcx]
test rcx, rcx
je 0x14002e688
xor eax, eax
lea r9, [rsp + 0x50]
mov r8d, edi
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
mov dword [rbx + 0x14], 0x1000000
xor eax, eax
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret

Function at 0x14002e870
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbp, rdx
mov rcx, qword [rcx + 0x88]
test rcx, rcx
je 0x14002e8dc
mov eax, dword [rdi + 0x94]
mov esi, dword [rdi + 0x90]
cmp eax, esi
jae 0x14002e920
sub esi, eax
lea rdx, [rcx + rax]
cmp esi, r8d
mov rcx, rbp
cmova esi, r8d
mov r8d, esi
call fcn.1401b8a40
mov ecx, dword [rdi + 0x70]
mov rdx, rbp
add dword [rdi + 0x94], esi
add dword [rdi + 0x6c], esi
mov r8d, esi
call fcn.14002e080
mov dword [rdi + 0x70], eax
mov eax, esi
jmp 0x14002e922
mov rcx, qword [rdi + 0x78]
test rcx, rcx
je 0x14002e919
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002e920
mov ebx, dword [rsp + 0x40]
mov rdx, rbp
add dword [rdi + 0x6c], ebx
mov r8d, ebx
mov ecx, dword [rdi + 0x70]
call fcn.14002e080
mov dword [rdi + 0x70], eax
mov eax, ebx
jmp 0x14002e922
mov dword [rdi + 0x14], 0x1000000
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14002fc10
Capabilities:
Hash data using sha256

Disassembly:
push rbx
mov eax, 0x20
call fcn.1401b39e0
sub rsp, rax
lea r8d, [rax + 0x50]
xor edx, edx
mov rbx, rcx
call fcn.1401b8ea0
mov dword [rbx], 0x6a09e667
mov dword [rbx + 4], 0xbb67ae85
mov dword [rbx + 8], 0x3c6ef372
mov dword [rbx + 0xc], 0xa54ff53a
mov dword [rbx + 0x10], 0x510e527f
mov dword [rbx + 0x14], 0x9b05688c
mov dword [rbx + 0x18], 0x1f83d9ab
mov dword [rbx + 0x1c], 0x5be0cd19
mov dword [rbx + 0x6c], 0x20
mov eax, 1
add rsp, 0x20
pop rbx
ret