joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b000
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
xor edi, edi
mov rbx, rcx
mov qword [rsp + 0x30], rdi
lea rcx, [0x140036d60]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [rdi + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 0x18], rax
cmp rax, 0xffffffffffffffff
jne 0x14000b06c
mov byte [rbx], 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 4], eax
lea rax, [0x14002a4c8]
mov qword [rbx + 8], rax
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x14000b082
or rax, 0xffffffffffffffff
jmp 0x14000b084
mov eax, eax
mov qword [rbx + 0x20], rax
cmp rax, 0xffffffffffffffff
jne 0x14000b0bd
mov byte [rbx], 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbx + 0x18]
mov dword [rbx + 4], eax
lea rax, [0x14002a4d8]
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov qword [rsp + 0x28], rdi
xor edx, edx
mov dword [rsp + 0x20], edi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rbx + 0x28], rax
test rax, rax
jne 0x14000b111
mov byte [rbx], 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbx + 0x18]
mov dword [rbx + 4], eax
lea rax, [0x14002a4e8]
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x14000b16b
mov byte [rbx], 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbx + 0x28]
mov dword [rbx + 4], eax
lea rax, [0x14002a500]
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov byte [rbx], dil
mov rax, rbx
mov dword [rbx + 4], edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14000b280
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000b2c5
xor al, al
jmp 0x14000b312
cmp word [rbx], 0
je 0x14000b2dd
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000b2d0
cmp word [rsp + 0x30], 0
je 0x14000b30b
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000b333
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000b2f0
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000c720
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000e5fc
int3
Function at 0x14000ba70
Capabilities:
Write file on windows

Disassembly:
test rdx, rdx
je 0x14000bb03
push rbx
push rbp
sub rsp, 0x38
mov qword [rsp + 0x50], rsi
mov rbx, rdx
mov qword [rsp + 0x60], rdi
mov rbp, rcx
mov qword [rsp + 0x30], r14
xor r14d, r14d
nop word [rax + rax]
mov edi, 0x8000
lea rcx, [0x14003bd70]
cmp rbx, rdi
cmovbe edi, ebx
movsxd rsi, edi
mov rdx, rsi
call fcn.14000b930
cmp rbp, 0xffffffffffffffff
je 0x14000bae9
lea r9, [rsp + 0x58]
mov dword [rsp + 0x58], r14d
mov r8d, edi
mov qword [rsp + 0x20], r14
lea rdx, [0x14003bd70]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000bb04
sub rbx, rsi
jne 0x14000baa0
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x30]
add rsp, 0x38
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__couldnt_unpack_file_to_target_path.
call fcn.14000b7f0
int3

Function at 0x14000bb20
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.14001e9a0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x140032d08]
lea rsi, [0x140034d60]
mov rdi, rcx
test r11d, r11d
jne 0x14000bb99
mov r8d, 0x1000
lea rdx, str.HOME
lea rcx, [rsp + 0x20]
call fcn.14000b340
test al, al
je 0x14000bc79
lea rcx, [rsp + 0x20]
call fcn.140012cb4
movsxd r11, dword [0x140032d08]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x140032d08], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000bbd8
mov r10, rsi
mov r8, qword [r10]
mov rax, rdi
sub r8, rdi
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000bbc4
add rax, 2
test ecx, ecx
jne 0x14000bbb0
test edx, edx
je 0x14000bc75
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000bba4
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000bbe0
cmp rax, 2
jne 0x14000bbf7
cmp word [rdi + 2], 0x3a
je 0x14000bc75
xor edx, edx
mov qword [rsp + 0x2048], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test bl, bl
jne 0x14000bc22
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000bc49
mov bl, 1
cmp dword [0x140032d08], 0x400
jge 0x14000bc49
mov rcx, rdi
call fcn.140012cb4
movsxd rdx, dword [0x140032d08]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x140032d08], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000c720
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
mov al, 1
jmp 0x14000bc54
mov ecx, 2
call fcn.14000eafc
mov rcx, rax
lea r8, str.HOME
lea rdx, str.Error__couldnt_runtime_expand_spec__ls._n
call fcn.140001010
call fcn.14000e5fc
int3

Function at 0x14000bdb0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x140034d30]
test rcx, rcx
je 0x14000bdf0
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000bdde
mov rcx, qword [0x140034d30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x140034d30]
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x28
ret
Function at 0x14000e408
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000e477
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000e477
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000e477
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000e477
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000e477
cmp dword [rcx + 0x84], 0xe
jbe 0x14000e477
cmp dword [rcx + 0xf8], 0
je 0x14000e477
mov ecx, ebx
call fcn.14000e51c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000e310
nop
cmp dword [rbp + 0x20], 0
jne 0x14000e4d8
call fcn.140013224
cmp eax, 1
jne 0x14000e4c8
xor dl, dl
jmp 0x14000e4d2
call fcn.1400131f0
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x14000e4e3
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000e4ec
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000e408

Function at 0x14000e5f0
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000e477
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000e477
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000e477
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000e477
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000e477
cmp dword [rcx + 0x84], 0xe
jbe 0x14000e477
cmp dword [rcx + 0xf8], 0
je 0x14000e477
mov ecx, ebx
call fcn.14000e51c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000e310
nop
cmp dword [rbp + 0x20], 0
jne 0x14000e4d8
call fcn.140013224
cmp eax, 1
jne 0x14000e4c8
xor dl, dl
jmp 0x14000e4d2
call fcn.1400131f0
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x14000e4e3
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000e4ec
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000e408
Function at 0x140017dec
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140017e73
mov rsi, rbx
cmp word [rax], bp
je 0x140017e32
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140017e1c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140017e18
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140013000
mov rdi, rax
test rax, rax
je 0x140017e60
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000d370
mov rbp, rdi
xor ecx, ecx
call fcn.140012fa0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001a390
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001a3a6
mov al, 1
jmp 0x14001a412
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001a3b7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001a410
mov ecx, dword [rcx + 0x18]
nop
call fcn.140018590
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001a410
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001a410
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001a410
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001a412
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140055804
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400991a8]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14005584e
call fcn.14004c3ec
mov dword [rax], 0xf
call fcn.14004c40c
mov dword [rax], 0xd
call fcn.140046b10
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140040450
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x140055859
lea eax, [rbx + 1]
jmp 0x14005583b
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 0x140055839
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14005583b

Function at 0x14005ecc8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140040740
sub rsp, rax
mov rax, qword [0x1400991a8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14005d574
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14005ed17
mov rax, rbp
jmp 0x14005ee1f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x9d070]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14005fde8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x9d070]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14005ee1b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14005ee1b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14005fde8
test rax, rax
js 0x14005ee1b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14005ee1b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14005ee0d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14005ee0d
cmp byte [rcx], 0xd
jne 0x14005edf3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14005ee02
cmp byte [rcx + 1], 0xa
jne 0x14005ee02
inc rcx
jmp 0x14005ee02
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x995c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14005edd5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14005ee1f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140040450
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140012300
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x140012342
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 4
jb 0x14001234a
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x14001235b
jmp 0x140012372
xor r10d, r10d
jmp 0x1400123fd
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x140012372
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x140012389
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x1400123a9
add r11, r8
jmp 0x1400124d9
mov rcx, qword [rax + 0x18]
xor rcx, rsi
mov rdi, qword [rax + 0x10]
mov r9, qword [rax]
add r9, rdi
mov r11, qword [rax + 8]
add r11, rcx
rol rdi, 0xd
xor rdi, r9
rol rcx, 0x10
rol r9, 0x20
xor rcx, r11
add r11, rdi
rol rdi, 0x11
add r9, rcx
xor rdi, r11
rol rcx, 0x15
mov qword [rax + 0x10], rdi
xor rcx, r9
rol r11, 0x20
mov qword [rax + 0x18], rcx
mov qword [rax + 8], r11
xor r9, rsi
mov qword [rax], r9
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x140012472
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
mov rbx, qword [rdx + r10]
xor rdi, rbx
add rcx, rsi
rol rsi, 0xd
add r9, rdi
xor rsi, rcx
rol rdi, 0x10
xor rdi, r9
rol rcx, 0x20
add r9, rsi
add rcx, rdi
rol rsi, 0x11
xor rsi, r9
rol rdi, 0x15
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x140012420
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 4
jb 0x14001248f
mov r9d, dword [rdx + r10]
mov r8d, 4
mov ecx, r8d
or ecx, 1
cmp ecx, r11d
jb 0x1400124a0
jmp 0x1400124bb
xor r9d, r9d
xor r8d, r8d
mov ecx, r8d
or ecx, 1
cmp ecx, r11d
jae 0x1400124bb
lea rcx, [rdx + r8]
movzx esi, word [r10 + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8d, r11d
jae 0x1400124d5
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret
Function at 0x140014520
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0xc0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x38], 0xfffffffffffffffe
mov rsi, rdx
mov rdi, rcx
add rcx, 0x48
xorps xmm0, xmm0
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], xmm0
mov rdx, rbp
mov r8d, 0x20
call fcn.14007a9e0
mov qword [rbp + 0x28], rax
test rax, rax
je 0x140014594
mov qword [rbp + 0x30], rdx
mov rax, qword [rdx]
test rax, rax
je 0x140014578
mov rcx, qword [rbp + 0x28]
call rax
mov rax, qword [rbp + 0x30]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1400145dd
mov r8, qword [rax + 0x10]
mov rcx, qword [rbp + 0x28]
call fcn.140018860
jmp 0x1400145dd
movaps xmm0, xmmword [rbp]
movaps xmm1, xmmword [rbp + 0x10]
movaps xmmword [rbp - 0x10], xmm1
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x50]
lea r8, [0x1400b2340]
lea rdx, [rbp - 0x20]
mov r9d, 8
call fcn.14007a7e0
mov rax, qword [rdi + 0x30]
mov qword [rdi + 0x38], rax
movaps xmm0, xmmword [rbp - 0x50]
movaps xmm1, xmmword [rbp - 0x40]
movaps xmm2, xmmword [rbp - 0x30]
movaps xmmword [rdi], xmm0
movaps xmmword [rdi + 0x10], xmm1
movaps xmmword [rdi + 0x20], xmm2
mov qword [rdi + 0x40], 0
mov rax, 0xffffffffffffff00
add rax, qword [rdi + 0x30]
mov qword [rdi + 0x38], rax
mov rcx, rdi
mov edx, 6
mov r8, rsi
add rsp, 0xc0
pop rdi
pop rsi
pop rbp
jmp fcn.1400782d0
Function at 0x1400743e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
movzx eax, byte [rsp + 0x110]
xor al, 1
cmp byte [rsp + 0x118], 0x6d
sete r8b
test r8b, al
je 0x140074e9f
mov esi, dword [rcx + 0x18]
mov r13d, dword [rcx + 0x1c]
mov dword [rsp + 0x6c], r13d
mov r8d, esi
shr r8d, 8
mov dword [rsp + 0x68], r8d
mov r8d, esi
shr r8d, 0x10
mov dword [rsp + 0x78], r8d
mov r12d, esi
shr r12d, 0x18
mov r8d, r13d
shr r8d, 8
mov dword [rsp + 0x64], r8d
mov r15d, r13d
shr r15d, 0x10
shr r13d, 0x18
mov ebx, dword [rcx + 0x20]
mov edi, ebx
shr edi, 8
mov r14d, ebx
shr r14d, 0x10
mov ebp, ebx
shr ebp, 0x18
mov qword [rsp + 0x90], rcx
movzx eax, word [rcx + 0x24]
mov word [rsp + 0x5a], ax
mov qword [rsp + 0x98], rdx
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x98]
call fcn.140075eb0
mov dword [rsp + 0x8c], r12d
mov dword [rsp + 0x38], r12d
mov ecx, dword [rsp + 0x78]
mov dword [rsp + 0x3c], ecx
mov ecx, dword [rsp + 0x68]
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x74], esi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x84], r13d
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x88], r15d
mov dword [rsp + 0x34], r15d
mov ecx, dword [rsp + 0x64]
mov dword [rsp + 0x2c], ecx
mov ecx, dword [rsp + 0x6c]
mov dword [rsp + 0x24], ecx
mov dword [rsp + 0x7c], ebp
mov dword [rsp + 0x4c], ebp
mov dword [rsp + 0x80], r14d
mov dword [rsp + 0x50], r14d
mov dword [rsp + 0x70], edi
mov dword [rsp + 0x54], edi
mov dword [rsp + 0x60], ebx
mov dword [rsp + 0x48], ebx
movzx ecx, word [rsp + 0x5a]
mov ebx, ecx
test rax, rax
je 0x140074d2f
lea r14, [0x1400bb6e8]
lea rbp, [0x1400bb714]
lea r12, [0x1400bb6fc]
xor esi, esi
xor r13d, r13d
mov dword [rsp + 0x5c], ecx
xor r15d, r15d
mov dword [rsp + 0x44], ecx
xor edi, edi
movzx ecx, word [rsp + 0x5a]
pop rdx
Function at 0x14007ac50
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
test rdx, rdx
je 0x14007acc2
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
mov r15, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov r12, qword [sym.imp.advapi32.dll_SystemFunction036]
jmp 0x14007ac88
add rdi, rbx
sub rsi, rbx
je 0x14007acc2
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
xor ecx, ecx
mov rdx, rdi
mov r8d, ebx
mov r9d, 2
call r15
cmp eax, 0xbfffffff
jbe 0x14007ac80
mov ebp, eax
mov rcx, rdi
mov edx, ebx
call r12
test al, al
jne 0x14007ac80
and ebp, 0x7fffffff
jmp 0x14007acc4
xor ebp, ebp
mov eax, ebp
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140082400
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x1400824a0
jmp 0x14008248f
jae 0x14008256e
cmp r8, 0x201
jae 0x1400824a0
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x140082506
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x1400824de
mov qword [rsp + 0x20], 2
mov r9d, 2
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.1400ab4a0
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x14008252f
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x1400825da
mov r8d, r13d
cmp r12, r8
jne 0x140082480
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14008260e
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14008248f
jmp 0x1400824a0
cmp r14, r8
jb 0x140082628
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.1400870a0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x1400825c3
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.140018860
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x1400825ae
jmp 0x1400825c3
lea rcx, str.internal_error:_entered_unreachable_codeh
lea r8, str.std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.1400ac770
jmp 0x14008263d
lea rax, str.std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.1400acb60
ud2