joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180018584
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rsi
sub rsp, 0x110
xor edx, edx
mov rbx, rcx
lea rcx, [rax - 0x70]
lea r8d, [rdx + 0x60]
call fcn.180086e90
and qword [rsp + 0x50], 0
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
or eax, 0xffffffff
test rbx, rbx
mov dword [rsp + 0xa0], VarBstrFromR4
mov dword [rsp + 0x120], eax
je 0x1800186a9
cmp word [rbx], 0
je 0x1800186a9
lea rax, [rsp + 0x50]
mov esi, 1
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xa0]
xor r8d, r8d
mov qword [rsp + 0x40], rax
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov rdx, rbx
xor ecx, ecx
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
mov dword [rsp + 0x120], eax
je 0x1800186a9
mov rax, qword [rsp + 0x50]
lea rdx, [rsp + 0x128]
xor r9d, r9d
xor r8d, r8d
mov ecx, esi
mov qword [rsp + 0x128], rax
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0x102
jne 0x180018675
lea rdx, [rsp + 0x128]
or r9d, 0xffffffff
xor r8d, r8d
mov ecx, esi
mov dword [rsp + 0x20], 0x4ff
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
test eax, eax
jne 0x1800186d7
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x120]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x120]
mov rbx, qword [rsp + 0x130]
add rsp, 0x110
pop rsi
ret
cmp dword [rsp + 0x70], 0x12
je 0x1800186d7
lea rcx, [rsp + 0x68]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x68]
call qword [sym.imp.USER32.dll_DispatchMessageW]
lea rcx, [rsp + 0x68]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], esi
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x1800186ba
jmp 0x18001862c

Function at 0x180018d48
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov rdi, rcx
xor ebx, ebx
test rcx, rcx
je 0x180018d6d
call fcn.180018c30
jmp 0x180018d72
mov eax, 1
test eax, eax
jne 0x180018dd4
lea edx, [rax + 0x14]
xor ecx, ecx
lea r9d, [rax + 0x40]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x180018dd4
mov r8d, SafeArrayGetElement
lea rdx, [0x18010ff30]
mov rcx, rax
call fcn.180086b10
mov qword [rbx + 4], rdi
jmp 0x180018db8
and dword [rsp + 0x40], 0
lea r9, [rsp + 0x40]
mov edx, SafeArrayGetElement
lea r8d, [rdx + 0xc]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180018f48
Capabilities:
Enumerate threads

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edx, edx
lea ecx, [rdx + 4]
mov r12d, eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
xor ebx, ebx
test rax, rax
mov rdi, rax
je 0x180018ffc
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
mov esi, eax
je 0x180018ff3
test rbx, rbx
jne 0x180018ff3
cmp dword [rsp + 0x2c], ebp
jne 0x180018fe0
mov ecx, dword [rsp + 0x28]
cmp ecx, r12d
je 0x180018fe0
call fcn.180018a70
mov rcx, rax
call fcn.180018cb8
test al, al
jne 0x180018fe0
mov r8d, dword [rsp + 0x28]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenThread]
test rax, rax
mov rbx, rax
jne 0x180018fef
lea rdx, [rsp + 0x20]
mov rcx, rdi
call sub.KERNEL32.dll_Thread32Next
mov esi, eax
test esi, esi
jne 0x180018fa1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop r12
ret
jmp 0x180018f48

Function at 0x18001901c
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x20], 0
mov rbx, rcx
je 0x180019056
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x18], eax
je 0x180019043
mov rcx, qword [rbx + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx + 0x20], 0
and dword [rbx + 0x18], 0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x18001906a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx + 0x30], 0
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x18001907e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx + 0x28], 0
add rsp, 0x20
pop rbx
ret
Function at 0x1800191c8
Capabilities:
Enumerate threads

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edx, edx
lea ecx, [rdx + 4]
mov r12d, eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
xor ebx, ebx
test rax, rax
mov rdi, rax
je 0x180018ffc
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
mov esi, eax
je 0x180018ff3
test rbx, rbx
jne 0x180018ff3
cmp dword [rsp + 0x2c], ebp
jne 0x180018fe0
mov ecx, dword [rsp + 0x28]
cmp ecx, r12d
je 0x180018fe0
call fcn.180018a70
mov rcx, rax
call fcn.180018cb8
test al, al
jne 0x180018fe0
mov r8d, dword [rsp + 0x28]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenThread]
test rax, rax
mov rbx, rax
jne 0x180018fef
lea rdx, [rsp + 0x20]
mov rcx, rdi
call sub.KERNEL32.dll_Thread32Next
mov esi, eax
test esi, esi
jne 0x180018fa1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop r12
ret
jmp 0x180018f48

Function at 0x180019610
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x18010e350]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x118
xor ebx, ebx
call fcn.180086e90
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x30], 2
jne 0x18001967d
cmp dword [rsp + 0x24], 6
ja 0x180019668
jne 0x18001967d
cmp dword [rsp + 0x28], ebx
jbe 0x18001966c
mov bl, 1
jmp 0x18001967d
cmp dword [rsp + 0x28], ebx
movzx eax, bl
mov ecx, 1
cmove eax, ecx
mov bl, al
mov al, bl
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180086e60
add rsp, 0x150
pop rbx
ret

Function at 0x1800197e4
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x30
xor ebx, ebx
mov rsi, r9
mov rbp, r8
cmp r9, rbx
mov r12, rdx
mov rdi, rcx
je 0x18001985d
cmp qword [rcx], rbx
je 0x180019824
mov rcx, qword [rcx]
call fcn.180018e38
cmp rax, rsi
jne 0x18001985d
jmp 0x180019834
mov rcx, r9
call fcn.180018d48
cmp rax, rbx
mov qword [rdi], rax
je 0x18001985d
mov rax, qword [rsp + 0x70]
mov r9, qword [rsp + 0x60]
mov r8, qword [rdi]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x68]
mov rdx, rbp
mov rcx, r12
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop r12
ret
Function at 0x18001b66c
Capabilities:
Query environment variable
Set environment variable

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov r12, r8
mov r13d, edx
mov rbp, rcx
mov esi, 0x80004005
mov rax, qword [r8]
cmp dword [rax - 0x10], 0
jle 0x18001b7bb
lea rcx, [0x18010e058]
mov rax, qword [0x18010e058]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x70], rbx
xor r8d, r8d
xor edx, edx
lea rcx, [0x1800da770]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
movsxd rdi, eax
test eax, eax
je 0x18001b751
mov edx, 1
sub edx, dword [rbx - 8]
mov ecx, dword [rbx - 0xc]
sub ecx, edi
or ecx, edx
jge 0x18001b6fa
mov edx, edi
lea rcx, [rsp + 0x70]
call fcn.180009098
mov rbx, qword [rsp + 0x70]
test edi, edi
js 0x18001b746
cmp edi, dword [rbx - 0xc]
jg 0x18001b746
mov dword [rbx - 0x10], edi
and word [rbx + rdi*2], 0
mov r8d, edi
mov rdx, rbx
lea rcx, [0x1800da770]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, rbx
call fcn.180088f10
test eax, eax
js 0x18001b73b
cmp eax, dword [rbx - 0xc]
jg 0x18001b73b
mov dword [rbx - 0x10], eax
cdqe
and word [rbx + rax*2], 0
jmp 0x18001b751
mov ecx, 0x80070057
call fcn.1800012c4
int3
mov ecx, 0x80070057
call fcn.1800012c4
int3
cmp dword [rbx - 0x10], 0
je 0x18001b777
lea rcx, [0x1800da76c]
call fcn.180088f10
mov r8d, eax
lea rdx, [0x1800da76c]
lea rcx, [rsp + 0x70]
call fcn.18000fa54
mov rdx, qword [r12]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x70]
call fcn.18000fa54
mov rbx, qword [rsp + 0x70]
mov rdx, rbx
lea rcx, [0x1800da770]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x18001b7bb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x18001b810
test r13d, r13d
je 0x18001b7ed
lea rdx, [0x1800da758]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18001b806
call rax
mov esi, eax
jmp 0x18001b806
lea rdx, [0x1800da740]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18001b806
call rax
mov esi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
mov rdx, qword [rbp]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x18001b830
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, esi
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18001cfa0
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov rdi, rcx
mov esi, dword [rcx]
add esi, esi
cmp qword [rcx + 0x10], 0
jne 0x18001cfe7
test esi, esi
je 0x18001cfe7
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8d, esi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rdi + 0x10], rax
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x18001d05d
mov word [rax], 0
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x18001d059
lea rcx, [rdi + 0x18]
call fcn.18001cb70
nop
mov r8, rsi
mov rdx, rbx
mov rcx, qword [rdi + 0x10]
call fcn.180086b10
nop
jmp 0x18001d041
lea rcx, [rdi + 0x18]
call fcn.18001cbd0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rax, qword [rdi + 0x10]
jmp 0x18001d05d
mov rax, qword [rdi + 0x10]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x18001d6f0
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x110
xor edx, edx
mov rbx, rcx
lea rcx, [rsp + 0xa0]
lea r8d, [rdx + 0x68]
call fcn.180086e90
xor eax, eax
mov dword [rsp + 0xa0], VarBstrFromR4
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea r11, [rsp + 0x50]
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x18001d82a
nop
nop
xor r8d, r8d
lea rdx, [rsp + 0x50]
or r9d, 0xffffffff
lea ecx, [r8 + 1]
mov dword [rsp + 0x20], 0x4ff
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, 1
jne 0x18001d7f7
lea rcx, [rsp + 0x68]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x18001d780
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x68]
call qword [sym.imp.USER32.dll_DispatchMessageW]
lea rcx, [rsp + 0x68]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 1
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x18001d7c0
jmp 0x18001d780
test eax, eax
je 0x18001d800
cmp eax, 0xffffffff
jne 0x18001d780
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x110
pop rbx
ret
xor eax, eax
add rsp, 0x110
pop rbx
ret
Function at 0x18001e190
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov rdi, rcx
mov rcx, qword [rcx + 0x70]
mov rsi, rdx
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x18001e1bc
mov eax, 1
add rsp, 0x78
pop rdi
pop rsi
ret
mov eax, dword [rsp + 0x38]
mov qword [rsp + 0x70], rbx
mov ecx, 1
mov edx, eax
mov ebx, 0
and edx, 1
cmovne ebx, ecx
test al, 2
je 0x18001e1de
or ebx, 2
test al, 4
je 0x18001e1e5
or ebx, 4
mov ecx, eax
and ecx, 0x10
je 0x18001e1ef
or ebx, 0x10
test al, 0x20
je 0x18001e1f6
or ebx, 0x20
test ecx, ecx
je 0x18001e200
bts ebx, 0x1e
jmp 0x18001e204
bts ebx, 0x1f
bts ebx, 0x18
test edx, edx
jne 0x18001e210
bts ebx, 0x17
mov rcx, qword [rdi + 0x70]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x28
mov dword [rdi + 0x60], eax
jbe 0x18001e33a
cmp dword [rdi + 0x1c], 0
jne 0x18001e33a
mov rcx, qword [rdi + 0x70]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rdi + 0x70]
lea r9, [rsp + 0xa0]
lea rdx, [rsp + 0x90]
mov r8d, 2
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [rdi + 0x70]
xor r9d, r9d
lea edx, [r9 + 0x24]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rdi + 0x70]
lea r9, [rsp + 0xa0]
lea rdx, [rsp + 0xa8]
mov r8d, 4
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [rsp + 0x90], 0x54ad
jne 0x18001e328
mov edx, dword [rsp + 0xa8]
lea eax, [rdx + 0x34]
cmp dword [rdi + 0x60], eax
jbe 0x18001e328
mov rcx, qword [rdi + 0x70]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rdi + 0x70]
lea r9, [rsp + 0xa0]
lea rdx, [rsp + 0x30]
mov r8d, 4
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r11d, dword [rsp + 0x30]
cmp r11d, 0x5a4d
je 0x18001e324
cmp r11d, 0x454e
je 0x18001e324
cmp r11d, 0x454c
je 0x18001e324
cmp r11d, 0x4550
jne 0x18001e328
bts ebx, 0x16
mov rcx, qword [rdi + 0x70]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rsp + 0x44]
mov dword [rsi + 0x10], ebx
call fcn.18001e100
mov r9, qword [rsp + 0x4c]
mov rcx, r9
mov dword [rsi], eax
call fcn.18001e100
mov rcx, qword [rsp + 0x3c]
mov dword [rsi + 4], eax
call fcn.18001e100
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0x90]
mov rcx, r9
mov dword [rsi + 8], eax
call fcn.18001e0b0
movzx eax, word [rsp + 0xa0]
movzx r11d, word [rsp + 0x90]
mov rbx, qword [rsp + 0x70]
shl r11d, 0x10
or r11d, eax
xor eax, eax
mov dword [rsi + 0xc], r11d
add rsp, 0x78
pop rdi
pop rsi
ret
Function at 0x18001ecc0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 8
test rdx, rdx
mov r11d, r8d
mov r10, rdx
mov r9d, ecx
jne 0x18001ecd9
xor eax, eax
add rsp, 8
ret
cmp r11d, 8
mov qword [rsp], rdi
not r9d
lea rdi, [0x1800dced0]
jb 0x18001edba
mov qword [rsp + 0x10], rbx
mov rbx, r11
shr rbx, 3
nop
movzx ecx, byte [r10]
add r10, 8
add r11d, 0xfffffff8
xor cl, r9b
shr r9d, 8
movzx eax, cl
movzx ecx, byte [r10 - 7]
mov edx, dword [rdi + rax*4]
xor edx, r9d
xor cl, dl
shr edx, 8
movzx eax, cl
movzx ecx, byte [r10 - 6]
mov r8d, dword [rdi + rax*4]
xor r8d, edx
xor cl, r8b
shr r8d, 8
movzx eax, cl
movzx ecx, byte [r10 - 5]
mov edx, dword [rdi + rax*4]
xor edx, r8d
xor cl, dl
shr edx, 8
movzx eax, cl
movzx ecx, byte [r10 - 4]
mov r8d, dword [rdi + rax*4]
xor r8d, edx
xor cl, r8b
shr r8d, 8
movzx eax, cl
movzx ecx, byte [r10 - 3]
mov edx, dword [rdi + rax*4]
xor edx, r8d
xor cl, dl
shr edx, 8
movzx eax, cl
movzx ecx, byte [r10 - 2]
mov r8d, dword [rdi + rax*4]
xor r8d, edx
xor cl, r8b
shr r8d, 8
movzx eax, cl
movzx ecx, byte [r10 - 1]
mov edx, dword [rdi + rax*4]
xor edx, r8d
xor cl, dl
shr edx, 8
movzx eax, cl
mov r9d, dword [rdi + rax*4]
xor r9d, edx
sub rbx, 1
jne 0x18001ed00
mov rbx, qword [rsp + 0x10]
test r11d, r11d
je 0x18001ede1
nop
movzx ecx, byte [r10]
mov eax, r9d
add r10, 1
xor cl, r9b
shr eax, 8
movzx edx, cl
mov r9d, dword [rdi + rdx*4]
xor r9d, eax
add r11d, 0xffffffff
jne 0x18001edc0
mov rdi, qword [rsp]
not r9d
mov eax, r9d
add rsp, 8
ret

Function at 0x18001edf0
Capabilities:
Hash data with crc32

Disassembly:
mov r9d, dword [rcx]
mov r10, rcx
movzx r8d, r9b
shr r9d, 8
xor r8b, dl
movzx eax, r8b
lea r8, [0x1800dced0]
mov edx, dword [r8 + rax*4]
xor edx, r9d
mov dword [rcx], edx
movzx eax, dl
mov edx, dword [rcx + 8]
add eax, dword [rcx + 4]
imul eax, eax, 0x8088405
add eax, 1
mov dword [rcx + 4], eax
movzx eax, byte [r10 + 7]
movzx ecx, dl
xor rcx, rax
shr edx, 8
mov eax, dword [r8 + rcx*4]
xor eax, edx
mov dword [r10 + 8], eax
ret
Function at 0x18001eea0
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x20], 0
mov rdi, rcx
jne 0x18001ef6d
mov qword [rsp + 0x58], rsi
mov esi, edx
mov byte [rsp + 0x40], dl
shr esi, 8
test byte [rcx], 0x10
mov byte [rsp + 0x41], sil
je 0x18001eef3
add rcx, 0x38
mov qword [rsp + 0x48], rbx
call fcn.18001ee70
lea rcx, [rdi + 0x38]
movzx edx, sil
mov byte [rsp + 0x40], al
call fcn.18001ee70
mov rbx, qword [rsp + 0x48]
mov byte [rsp + 0x41], al
test byte [rdi], 1
mov rsi, qword [rsp + 0x58]
je 0x18001ef2b
mov ecx, dword [rdi + 0x30]
lea eax, [rcx + 2]
cmp eax, dword [rdi + 0x34]
jb 0x18001ef15
mov dword [rdi + 0x20], SafeArrayGetDim
add rsp, 0x30
pop rdi
ret
movzx eax, word [rsp + 0x40]
mov rdx, rcx
mov rcx, qword [rdi + 8]
mov word [rdx + rcx], ax
add dword [rdi + 0x30], 2
jmp 0x18001ef60
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x50]
lea rdx, [rsp + 0x40]
mov r8d, 2
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18001ef59
cmp dword [rsp + 0x50], 2
je 0x18001ef60
mov dword [rdi + 0x20], 3
bt dword [rdi], 0x1e
jae 0x18001ef6d
mov dword [rdi + 0x20], SafeArrayGetElement
add rsp, 0x30
pop rdi
ret

Function at 0x18001ef80
Capabilities:
Write file on windows

Disassembly:
test r8d, r8d
je 0x18001f0c1
push rbx
push rsi
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x20], 0
mov edi, r8d
mov rsi, rdx
mov rbx, rcx
jne 0x18001f0ba
test byte [rcx], 0x10
je 0x18001f051
mov rcx, qword [rcx + 0x48]
test rcx, rcx
je 0x18001efc8
cmp dword [rbx + 0x50], edi
jae 0x18001efc8
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [rbx + 0x48], 0
cmp qword [rbx + 0x48], 0
jne 0x18001eff4
lea eax, [rdi + rdi]
xor ecx, ecx
mov edx, eax
mov dword [rbx + 0x50], eax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
test rax, rax
mov qword [rbx + 0x48], rax
jne 0x18001eff4
mov dword [rbx + 0x20], 2
jmp 0x18001f0ad
mov rcx, qword [rbx + 0x48]
mov r8, rdi
mov rdx, rsi
mov qword [rsp + 0x50], rbp
mov rbp, rdi
call fcn.180086b10
test edi, edi
je 0x18001f048
mov qword [rsp + 0x58], r12
xor esi, esi
nop
nop
nop
mov rax, qword [rbx + 0x48]
lea rcx, [rbx + 0x38]
movzx edx, byte [rsi + rax]
call fcn.18001ee70
mov rcx, qword [rbx + 0x48]
add rsi, 1
sub rbp, 1
mov byte [rsi + rcx - 1], al
jne 0x18001f020
mov r12, qword [rsp + 0x58]
mov rsi, qword [rbx + 0x48]
mov rbp, qword [rsp + 0x50]
test byte [rbx], 1
je 0x18001f07e
mov ecx, dword [rbx + 0x30]
lea eax, [rcx + rdi]
cmp eax, dword [rbx + 0x34]
jb 0x18001f06a
mov dword [rbx + 0x20], SafeArrayGetDim
jmp 0x18001f0ad
add rcx, qword [rbx + 8]
mov r8, rdi
mov rdx, rsi
call fcn.180086b10
add dword [rbx + 0x30], edi
jmp 0x18001f0ad
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x60]
mov r8d, edi
mov rdx, rsi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18001f0a6
cmp dword [rsp + 0x60], edi
je 0x18001f0ad
mov dword [rbx + 0x20], 3
bt dword [rbx], 0x1e
jae 0x18001f0ba
mov dword [rbx + 0x20], SafeArrayGetElement
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret 0
Function at 0x18001f1c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov eax, dword [rcx]
mov rsi, rdx
mov rbx, rcx
bt eax, 0x1e
jae 0x18001f1f6
mov dword [rcx + 0x20], SafeArrayGetElement
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test al, al
jns 0x18001f228
mov eax, dword [rcx + 0x7c]
mov edi, dword [rcx + 0x78]
cmp eax, edi
jae 0x18001f24b
sub edi, eax
mov rdx, rax
cmp edi, r8d
cmova edi, r8d
add rdx, qword [rcx + 0x70]
mov rcx, rsi
mov r8d, edi
mov dword [rsp + 0x40], edi
call fcn.180086b10
add dword [rbx + 0x7c], edi
jmp 0x18001f261
mov rcx, qword [rcx + 0x70]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18001f25d
mov dword [rbx + 0x20], 7
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov edi, dword [rsp + 0x40]
mov ecx, dword [rbx + 0x68]
add dword [rbx + 0x64], edi
mov r8d, edi
mov rdx, rsi
call fcn.18001ecc0
mov rsi, qword [rsp + 0x50]
mov dword [rbx + 0x68], eax
mov rbx, qword [rsp + 0x48]
mov eax, edi
add rsp, 0x30
pop rdi
ret

Function at 0x18001f790
Capabilities:
Hash data using sha1

Disassembly:
xor eax, eax
mov dword [rcx + 8], 0x67452301
mov dword [rcx + 0xc], 0xefcdab89
mov dword [rcx + 0x10], 0x98badcfe
mov dword [rcx + 0x14], 0x10325476
mov dword [rcx + 0x18], 0xc3d2e1f0
mov dword [rcx + 0x1c], eax
mov dword [rcx + 0x20], eax
mov word [rcx + 0x24], ax
mov qword [rcx + 0x68], rax
mov qword [rcx + 0x70], rax
mov dword [rcx + 0x78], eax
mov qword [rcx + 0x7c], rax
mov qword [rcx + 0x84], rax
mov qword [rcx + 0x8c], rax
mov qword [rcx + 0x94], rax
mov qword [rcx + 0x9c], rax
mov byte [rcx + 0xa4], al
ret

Function at 0x18001fe70
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
movzx eax, word [rcx + 0x24]
mov rbx, rcx
cmp ax, 0x37
movzx eax, ax
mov byte [rax + rcx + 0x26], 0x80
jbe 0x18001fee7
add word [rcx + 0x24], 1
movzx eax, word [rcx + 0x24]
cmp ax, 0x40
jae 0x18001feb7
nop
nop
movzx eax, ax
mov byte [rax + rcx + 0x26], 0
add word [rcx + 0x24], 1
mov ax, word [rcx + 0x24]
cmp ax, 0x40
jb 0x18001fea0
call fcn.18001f960
cmp word [rbx + 0x24], 0x38
jae 0x18001ff17
nop
nop
nop
nop
movzx eax, word [rbx + 0x24]
mov byte [rax + rbx + 0x26], 0
add word [rbx + 0x24], 1
cmp word [rbx + 0x24], 0x38
jb 0x18001fed0
jmp 0x18001ff17
add word [rcx + 0x24], 1
movzx eax, word [rcx + 0x24]
cmp ax, 0x38
jae 0x18001ff17
nop
nop
nop
movzx eax, ax
mov byte [rax + rcx + 0x26], 0
add word [rcx + 0x24], 1
mov ax, word [rcx + 0x24]
cmp ax, 0x38
jb 0x18001ff00
mov ecx, dword [rbx + 0x20]
mov eax, ecx
shr eax, 0x18
mov byte [rbx + 0x5e], al
mov eax, ecx
shr ecx, 8
shr eax, 0x10
mov byte [rbx + 0x60], cl
mov ecx, dword [rbx + 0x1c]
mov byte [rbx + 0x5f], al
movzx eax, byte [rbx + 0x20]
mov byte [rbx + 0x61], al
mov eax, ecx
shr eax, 0x18
mov byte [rbx + 0x62], al
mov eax, ecx
shr ecx, 8
shr eax, 0x10
mov byte [rbx + 0x64], cl
mov rcx, rbx
mov byte [rbx + 0x63], al
movzx eax, byte [rbx + 0x1c]
mov byte [rbx + 0x65], al
add rsp, 0x20
pop rbx
jmp fcn.18001f960