joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401963b4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140173768
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14019643e
cmp byte [rbp - 0x21], r15b
je 0x140196439
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140196474
call fcn.14018d084
test eax, eax
jne 0x140196460
cmp byte [rbp - 0x21], r15b
je 0x140196458
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140196474
cmp byte [rbp - 0x21], r15b
je 0x140196471
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140178d7c
test eax, eax
jne 0x140196514
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140173768
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1401964b3
cmp byte [rbp - 0x21], r15b
je 0x1401964e8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1401964e8
call fcn.14018d084
test eax, eax
jne 0x1401964d4
cmp byte [rbp - 0x21], r15b
je 0x1401964cd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1401964e8
cmp byte [rbp - 0x21], r15b
je 0x1401964e5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140178d7c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140196514
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140196517
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140196525
mov rcx, rdi
call fcn.1400ec9c0
cmp byte [rbp + 0x3f], r15b
je 0x140196534
mov rcx, qword [rbp + 0x27]
call fcn.1400ec9c0
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140196774
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14026c040]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1401967be
call fcn.14017c088
mov dword [rax], 0xf
call fcn.14017c068
mov dword [rax], 0xd
call fcn.14017de98
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140169190
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1401967c9
lea eax, [rbx + 1]
jmp 0x1401967ab
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1401967a9
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1401967ab
Function at 0x140197128
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rbx, rcx
mov ebp, 0x7ff
movzx ecx, word [rcx + 6]
mov esi, edx
shr cx, 4
and cx, bp
cmp cx, bp
jne 0x140197189
test byte [rbx + 6], 0xf
jne 0x14019717c
xor edi, edi
cmp word [rbx + 4], di
jne 0x14019717c
cmp word [rbx + 2], di
jne 0x14019717c
cmp word [rbx], di
jne 0x14019717c
lea esi, [rdi + 1]
jmp 0x140197181
mov esi, 2
movzx eax, si
jmp 0x140197381
xor edi, edi
test cx, cx
jne 0x1401971a4
mov rcx, rbx
call fcn.14019c48c
movzx ecx, ax
cmp di, ax
jl 0x14019737e
movsx edx, cx
test esi, esi
jle 0x1401971d4
sub ebp, edx
cmp ebp, esi
jg 0x1401971d4
movsd xmm0, qword [0x140236f00]
cmp word [rbx + 6], di
jge 0x1401971c6
xorps xmm0, xmmword [0x140234040]
movsd qword [rbx], xmm0
mov eax, 1
jmp 0x140197381
movzx r11d, word [rbx + 6]
mov eax, edx
neg eax
cmp eax, esi
jge 0x140197201
add si, cx
mov eax, 0x800f
shl si, 4
and r11w, ax
or si, r11w
mov word [rbx + 6], si
or eax, 0xffffffff
jmp 0x140197381
movzx r15d, r11w
lea ebp, [rsi - 1]
and r11w, 0xf
mov r13d, 0x8000
mov r12d, 0x10
and r15w, r13w
or r11w, r12w
add ebp, edx
cmp ebp, 0xffffffcb
jl 0x140197373
test ebp, ebp
jns 0x140197373
lea esi, [r12 - 0xf]
movzx r14d, di
cmp bp, 0xfff0
jg 0x140197296
movzx edx, word [rbx + 4]
mov eax, 0xfff0
movzx r8d, word [rbx + 2]
sub ax, bp
shr ax, 4
add ax, si
movzx ecx, ax
movzx eax, cx
shl ax, 4
add bp, ax
test r14w, r14w
mov eax, edi
setne al
movzx r14d, ax
or r14w, word [rbx]
mov word [rbx], r8w
movzx r8d, dx
movzx edx, r11w
mov r11d, edi
sub rcx, rsi
jne 0x140197268
mov word [rbx + 4], dx
mov word [rbx + 2], r8w
neg bp
je 0x140197315
movzx r8d, word [rbx]
mov eax, edi
movzx r9d, word [rbx + 2]
movzx edx, r8w
movsx r10d, bp
sub r12d, r10d
mov ecx, r12d
shl dx, cl
test r14w, r14w
movzx r14d, dx
movzx edx, word [rbx + 4]
setne al
or r14w, ax
movzx eax, r9w
shl ax, cl
movzx ecx, bp
shr r8w, cl
mov ecx, r12d
or ax, r8w
mov word [rbx], ax
movzx eax, dx
shl ax, cl
movzx ecx, bp
shr r9w, cl
mov ecx, r12d
or ax, r9w
mov word [rbx + 2], ax
movzx eax, r11w
shl ax, cl
movzx ecx, bp
shr dx, cl
mov ecx, r10d
or ax, dx
mov word [rbx + 4], ax
shr r11w, cl
or r11w, r15w
mov word [rbx + 6], r11w
cmp r13w, r14w
jb 0x14019732b
jne 0x14019734a
test byte [rbx], sil
je 0x14019734a
add word [rbx], si
jne 0x14019734a
add word [rbx + 2], si
jne 0x14019734a
add word [rbx + 4], si
jne 0x14019734a
add r11w, si
mov word [rbx + 6], r11w
jmp 0x1401971f9
cmp r11w, r15w
jne 0x1401971f9
cmp word [rbx + 4], di
jne 0x1401971f9
cmp word [rbx + 2], di
jne 0x1401971f9
movzx eax, word [rbx]
neg ax
sbb ax, ax
jmp 0x140197381
mov word [rbx + 6], r15w
mov dword [rbx + 2], edi
mov word [rbx], di
movzx eax, di
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140197c10
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140197c26
mov al, 1
jmp 0x140197c86
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140197c37
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140197c84
mov ecx, dword [rcx + 0x18]
nop
call fcn.14017d1dc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140197c84
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140197c84
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140197c84
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140197c86
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1401cb750
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov edi, edx
mov rsi, rcx
mov rax, qword [0x14026c040]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 1
je 0x1401cb779
mov rcx, qword [rsi]
jmp 0x1401cb782
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x1401cb7d5
mov dil, 1
test bl, bl
je 0x1401cb7b4
cmp byte [rsi + 8], 1
je 0x1401cb7a0
mov rcx, qword [rsi]
jmp 0x1401cb7a9
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
cmp rcx, qword [0x14026c040]
je 0x1401cb7cb
call fcn.140169190
int3
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rsi + 8], 1
jne 0x1401cb7ec
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x1401cb7ef
mov rcx, qword [rsi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1401cb802
xor edi, edi
jmp 0x1401cb7b4
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rsi + 8], 1
je 0x1401cb815
mov rcx, qword [rsi]
jmp 0x1401cb81e
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dil, 1
jmp 0x1401cb7b4
Function at 0x1401cbf00
Capabilities:
Move file

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rsi, rcx
mov rax, qword [0x14026c040]
xor rax, rsp
mov qword [rsp + 0x80], rax
movaps xmm0, xmmword [0x14023d9f0]
lea rbx, [rsp + 0x40]
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.DeleteFileAfterReboot
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x20]
mov rcx, r14
mov r9d, 0x1cd
call fcn.14013e100
xor edi, edi
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.1401348d0
mov al, byte [rsi + 0x17]
test al, al
jns 0x1401cbf7e
cmp qword [rsi + 8], 0x103
ja 0x1401cbf9c
test al, al
jns 0x1401cbf85
mov rsi, qword [rsi]
mov rcx, rsi
xor edx, edx
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne dil
lea rcx, [rsp + 0x40]
call fcn.140134960
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
cmp rcx, qword [0x14026c040]
je 0x1401cbfc0
call fcn.140169190
int3
mov eax, edi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1401cd980
Capabilities:
Access the windows event log
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x860
mov rsi, rcx
mov rax, qword [0x14026c040]
xor rax, rsp
mov qword [rsp + 0x858], rax
mov rdx, qword [0x14027ddf0]
test rdx, rdx
setne al
and al, byte [0x14026e5b0]
cmp al, 1
jne 0x1401cdb39
cmp byte [rdx + 0x17], 0
jns 0x1401cd9ca
mov rdx, qword [rdx]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
test rax, rax
je 0x1401cdb5b
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.14013e120
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsi + 0x18]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x60]
mov qword [r14 + 0x10], rax
movaps xmm0, xmmword [0x14023d9f0]
movaps xmmword [r14], xmm0
lea rbx, [rsp + 0x80]
mov rdx, rbx
call fcn.140120e50
lea r15, [rsp + 0x48]
mov rcx, r14
mov rdx, rbx
mov r8, r15
call fcn.1401203d0
mov eax, dword [rsi + 8]
mov bp, 1
lea ecx, [rax - 2]
cmp ecx, 2
jb 0x1401cdb85
cmp eax, 1
je 0x1401cda5a
test eax, eax
jne 0x1401cda5e
mov bp, 4
jmp 0x1401cda5e
mov bp, 2
cmp byte [rsp + 0x77], 0
jns 0x1401cda6a
mov r14, qword [rsp + 0x60]
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x48], 0
mov rcx, qword [0x14027de00]
cmp byte [rcx + 0x17], 0
jns 0x1401cda8b
mov rcx, qword [rcx]
lea rdx, [rsp + 0x48]
call sub.ADVAPI32.dll_ConvertStringSidToSidW
test eax, eax
jne 0x1401cdaaf
lea rcx, [rsi + 0x10]
lea rdx, str.___ERROR_GETTING_USER_SID__
mov r8d, 0x1b
call fcn.14011f4a0
mov rax, qword [rsp + 0x48]
mov r9d, dword [0x14027ddfc]
movzx r8d, word [0x14027ddf8]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x30], 0
mov word [rsp + 0x28], 1
mov rcx, rdi
mov edx, ebp
call qword [sym.imp.ADVAPI32.dll_ReportEventA]
test eax, eax
jne 0x1401cdb0a
lea rcx, [rsi + 0x10]
lea rdx, str.___NOT_ADDED_TO_EVENTLOG__
mov r8d, 0x1a
call fcn.14011f4a0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1401cdb1a
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp byte [rsp + 0x77], 0
jns 0x1401cdb2b
mov rcx, qword [rsp + 0x60]
call fcn.140167ca8
call fcn.14013e120
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, rsi
call fcn.1400e3710
mov rcx, qword [rsp + 0x858]
xor rcx, rsp
cmp rcx, qword [0x14026c040]
je 0x1401cdb73
call fcn.140169190
int3
lea rcx, [rsi + 0x10]
lea rdx, str.___NOT_ADDED_TO_EVENTLOG__
mov r8d, 0x1a
call fcn.14011f4a0
jmp 0x1401cdb39
add rsp, 0x860
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r12, [rsp + 0x80]
mov r8d, 0x7d8
mov rcx, r12
mov dl, 0xaa
call fcn.1401a3560
mov rcx, r12
call fcn.140101f70
mov rcx, r12
mov rdx, r15
call fcn.1401f56a0
movsx r8, byte [rsp + 0x5f]
test r8, r8
jns 0x1401cdbc5
mov r8, qword [rsp + 0x50]
mov r15, qword [rsp + 0x48]
lea rcx, [rsp + 0x60]
mov rdx, r15
call fcn.140130ce0
cmp byte [rsp + 0x5f], 0
jns 0x1401cda5e
mov rcx, qword [rsp + 0x48]
call fcn.140167ca8
jmp 0x1401cda5e
Function at 0x1401cf850
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x14026c040]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x14027dea0], 0
je 0x1401cf8a0
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
cmp rcx, qword [0x14026c040]
je 0x1401cf893
call fcn.140169190
int3
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
mov rdi, qword [0x14027dea8]
test rdi, rdi
jne 0x1401cf96d
mov ecx, 0x18
call fcn.140167c6c
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.1401a3560
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x14023d9f0]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.14012b500
movsx rax, byte [rdi + 0x17]
mov rcx, rdi
test rax, rax
jns 0x1401cf91a
mov rax, qword [rdi + 8]
mov rcx, qword [rdi]
test rax, rax
je 0x1401cf951
add rax, rax
test rax, rax
je 0x1401cf951
lea rdx, [rax - 2]
cmp word [rcx + rax - 2], 0x5c
mov rax, rdx
jne 0x1401cf922
cmp rdx, 0xfffffffffffffffe
je 0x1401cf951
sar rdx, 1
inc rdx
mov rcx, rdi
mov r8, 0xffffffffffffffff
call fcn.14012b960
lea rdx, str.debug.log
mov r8d, 9
mov rcx, rdi
call fcn.140131840
mov qword [0x14027dea8], rdi
test byte [0x14026e5b4], 1
je 0x1401cf879
cmp byte [rdi + 0x17], 0
jns 0x1401cf983
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x14027dea0], rax
inc rax
cmp rax, 1
ja 0x1401cf879
lea rsi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rsi
mov dl, 0xaa
call fcn.1401a3560
mov word [rsi], 0
mov ecx, 0x104
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jb 0x1401cfabb
mov rcx, qword [0x14027dea8]
lea rdx, [rsp + 0x40]
call fcn.1400d68c0
mov rcx, qword [0x14027dea8]
movsx rax, byte [rcx + 0x17]
test rax, rax
js 0x1401cfaca
test al, al
je 0x1401cfadb
mov rdx, rcx
cmp word [rdx + rax*2 - 2], 0x5c
je 0x1401cfa51
lea rdx, [0x1402439f8]
mov r8d, 1
call fcn.140131840
mov rcx, qword [0x14027dea8]
lea rdx, str.debug.log
mov r8d, 9
call fcn.140131840
mov rcx, qword [0x14027dea8]
cmp byte [rcx + 0x17], 0
jns 0x1401cfa73
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x14027dea0], rax
inc rax
cmp rax, 1
ja 0x1401cfac2
mov qword [0x14027dea0], 0
xor esi, esi
jmp 0x1401cf879
mov sil, 1
jmp 0x1401cf879
mov rax, qword [rcx + 8]
test rax, rax
je 0x1401cfadb
mov rdx, qword [rcx]
jmp 0x1401cfa30
ud2
Function at 0x1401d9a90
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
cmp rdx, r9
mov r10, r9
cmovb r10, rdx
xor eax, eax
test r10, r10
je 0x1401d9aef
xor r11d, r11d
mov rsi, qword [r8 + r11*8]
mov rdi, qword [rcx + r11*8]
mov rbx, rdi
xor rbx, rsi
lea r14, [rbx - 1]
mov r15, rdi
sub r15, rsi
xor r15, rdi
or r15, rbx
not rbx
and r14, rbx
sar r14, 0x3f
xor r15, rdi
sar r15, 0x3f
or r15, 1
xor rax, r15
and rax, r14
xor rax, r15
inc r11
cmp r10, r11
jne 0x1401d9aab
cmp rdx, r9
jb 0x1401d9afe
ja 0x1401d9b22
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
xor ecx, ecx
or rcx, qword [r8 + rdx*8]
inc rdx
cmp r9, rdx
jne 0x1401d9b00
mov rdx, rcx
not rdx
dec rcx
and rcx, rdx
sar rcx, 0x3f
not ecx
or eax, ecx
jmp 0x1401d9af6
xor r8d, r8d
or r8, qword [rcx + r9*8]
inc r9
cmp rdx, r9
jne 0x1401d9b25
mov rcx, r8
not rcx
dec r8
and r8, rcx
sar r8, 0x3f
xor eax, 1
and eax, r8d
xor eax, 1
jmp 0x1401d9af6
Function at 0x1401e3010
Capabilities:
Hash data using sha512

Disassembly:
movabs rax, 0x6a09e667f3bcc908
mov qword [rcx], rax
movabs rax, 0xbb67ae8584caa73b
mov qword [rcx + 8], rax
movabs rax, 0x3c6ef372fe94f82b
mov qword [rcx + 0x10], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rcx + 0x18], rax
movabs rax, 0x510e527fade682d1
mov qword [rcx + 0x20], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rcx + 0x28], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rcx + 0x30], rax
movabs rax, 0x5be0cd19137e2179
mov qword [rcx + 0x38], rax
movabs rax, 0x4000000000
mov qword [rcx + 0xd0], rax
xorps xmm0, xmm0
movups xmmword [rcx + 0x40], xmm0
mov eax, 1
ret
Function at 0x140208a10
Capabilities:
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
cmp dword [r8], 0
jle 0x140208a4f
xor eax, eax
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
cmp ecx, 0x8007000e
jne 0x140208a1f
mov dword [rsi], 7
jmp 0x140208a1f
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
call fcn.140112500
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000080
mov dword [rsp + 0x20], 3
mov rcx, rbx
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x140208a2b
mov r14, rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
xor edx, edx
mov r8d, 2
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x140208a2b
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rdi + 8], rax
test rax, rax
je 0x140208b01
mov qword [rdi + 0x28], rbx
mov al, 1
jmp 0x140208a21
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140208a1f
Function at 0x140001030
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x188
mov rax, qword [0x1402326d0]
xor rax, rsp
mov qword [rsp + 0x170], rax
lea rdx, [0x1402347f0]
lea rcx, [0x14022be20]
call 0x1400153e0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14000107a
xor eax, eax
jmp 0x140001174
mov rdx, qword [rsp + 0x190]
mov rcx, qword [rsp + 0x20]
call 0x140015710
mov dword [rsp + 0x160], eax
cmp dword [rsp + 0x160], 0
je 0x1400010ae
mov rcx, qword [rsp + 0x20]
call 0x140015790
xor eax, eax
jmp 0x140001174
lea r8, [rsp + 0x30]
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x20]
call 0x140015450
mov dword [rsp + 0x160], eax
cmp dword [rsp + 0x160], 0
je 0x1400010e4
mov rcx, qword [rsp + 0x20]
call 0x140015790
xor eax, eax
jmp 0x140001174
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x164], eax
mov dword [rsp + 0x168], 0
jmp 0x14000110c
mov eax, dword [rsp + 0x168]
inc eax
mov dword [rsp + 0x168], eax
mov eax, dword [rsp + 0x164]
cmp dword [rsp + 0x168], eax
jge 0x140001158
lea r8, [rsp + 0x30]
mov edx, dword [rsp + 0x168]
mov rcx, qword [rsp + 0x20]
call 0x140015450
mov dword [rsp + 0x160], eax
lea r8, [rsp + 0x34]
mov edx, dword [rsp + 0x168]
mov rcx, qword [rsp + 0x20]
call 0x140015680
mov dword [rsp + 0x160], eax
jmp 0x1400010fc
mov rcx, qword [rsp + 0x20]
call 0x140015790
lea rcx, [0x14022be20]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14019e850
add rsp, 0x188
ret

Function at 0x1400011a0
Capabilities:
Encrypt data using tea

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov dword [rsp + 8], 0
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
mov dword [rsp], eax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax]
mov dword [rsp + 4], eax
mov dword [rsp + 0xc], 0x9e3779b9
mov eax, dword [rsp + 0xc]
shl eax, 3
mov dword [rsp + 8], eax
mov dword [rsp + 0x10], 0
jmp 0x1400011f7
mov eax, dword [rsp + 0x10]
inc eax
mov dword [rsp + 0x10], eax
cmp dword [rsp + 0x10], 8
jge 0x140001285
mov eax, dword [rsp]
shl eax, 4
mov rcx, qword [rsp + 0x40]
add eax, dword [rcx + 8]
mov ecx, dword [rsp + 8]
mov edx, dword [rsp]
add edx, ecx
mov ecx, edx
xor eax, ecx
mov ecx, dword [rsp]
shr ecx, 5
mov rdx, qword [rsp + 0x40]
add ecx, dword [rdx + 0xc]
xor eax, ecx
mov ecx, dword [rsp + 4]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
shl eax, 4
mov rcx, qword [rsp + 0x40]
add eax, dword [rcx]
mov ecx, dword [rsp + 8]
mov edx, dword [rsp + 4]
add edx, ecx
mov ecx, edx
xor eax, ecx
mov ecx, dword [rsp + 4]
shr ecx, 5
mov rdx, qword [rsp + 0x40]
add ecx, dword [rdx + 4]
xor eax, ecx
mov ecx, dword [rsp]
sub ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp + 0xc]
mov ecx, dword [rsp + 8]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 8], eax
jmp 0x1400011ed
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp]
mov dword [rax], ecx
mov rax, qword [rsp + 0x38]
mov ecx, dword [rsp + 4]
mov dword [rax], ecx
add rsp, 0x28
ret
Function at 0x140001340
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x20], 0
lea r8, [0x1402347f4]
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x28]
call fcn.14019f294
mov dword [rsp + 0x3c], eax
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x28]
call fcn.14019f134
mov rcx, qword [rsp + 0x28]
call fcn.14019f028
mov dword [rsp + 0x38], eax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x28]
call fcn.14019f134
mov eax, dword [rsp + 0x38]
mov ecx, eax
call fcn.140015ae4
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov eax, dword [rsp + 0x38]
mov r9, qword [rsp + 0x28]
mov r8d, eax
mov edx, 1
mov rcx, qword [rsp + 0x20]
call fcn.14019ee50
mov dword [rsp + 0x38], eax
mov rcx, qword [rsp + 0x28]
call fcn.14019eb08
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call fcn.1400012b0
lea r8, [0x1402347f8]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.14019f294
mov eax, dword [rsp + 0x38]
mov r9, qword [rsp + 0x30]
mov r8d, eax
mov edx, 1
mov rcx, qword [rsp + 0x20]
call fcn.14019e9fc
mov rcx, qword [rsp + 0x30]
call fcn.14019eb08
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.140015aec
add rsp, 0x58
ret

Function at 0x140007980
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
mov r9, qword [rax + 0x10]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call fcn.14019e9fc
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x14000faa0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
movsx eax, byte [rsp + 0x10]
mov rcx, qword [rsp + 8]
mov ecx, dword [rcx]
xor ecx, eax
mov eax, ecx
and eax, 0xff
cdqe
lea rcx, [0x140239c40]
mov rdx, qword [rsp + 8]
mov edx, dword [rdx]
shr edx, 8
mov eax, dword [rcx + rax*4]
xor eax, edx
mov rcx, qword [rsp + 8]
mov dword [rcx], eax
mov rax, qword [rsp + 8]
mov eax, dword [rax]
and eax, 0xff
mov rcx, qword [rsp + 8]
add eax, dword [rcx + 4]
mov rcx, qword [rsp + 8]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 4]
imul eax, eax, 0x8088405
inc eax
mov rcx, qword [rsp + 8]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 4]
shr eax, 0x18
mov rcx, qword [rsp + 8]
mov ecx, dword [rcx + 8]
xor ecx, eax
mov eax, ecx
and eax, 0xff
mov eax, eax
lea rcx, [0x140239c40]
mov rdx, qword [rsp + 8]
mov edx, dword [rdx + 8]
shr edx, 8
mov eax, dword [rcx + rax*4]
xor eax, edx
mov rcx, qword [rsp + 8]
mov dword [rcx + 8], eax
ret