joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000a82c
Capabilities:
Check if file exists
Get common file path
Get file attributes
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov eax, 0x1040
call fcn.14000c9b0
sub rsp, rax
mov rax, qword [0x140039a88]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov rdi, rdx
lea r9, [0x140029840]
mov sil, r8b
mov dword [rsp + 0x20], edi
mov r8, rcx
lea rdx, str.TempFolder
mov rbx, rcx
lea rcx, str.Paths
call fcn.14000a480
xor ebp, ebp
lea rdx, [rsp + 0x30]
mov r8d, 0x800
mov word [rsp + 0x30], bp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp word [rbx], bp
je 0x14000a8bb
dec eax
cmp eax, 0x7fe
ja 0x14000a8b6
mov r8, rdi
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140008ca4
cmp word [rbx], bp
jne 0x14000a8c2
test sil, sil
je 0x14000a8d0
jmp 0x14000a8f6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000a8f6
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14000a8e4
cmp word [rbx], bp
jne 0x14000a8f6
mov r8, rdi
lea rdx, str._rartemp
mov rcx, rbx
call fcn.140008ca4
mov rdx, rdi
mov rcx, rbx
call fcn.1400065cc
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.14000ca10
mov rbx, qword [rsp + 0x1070]
add rsp, 0x1040
pop rdi
pop rsi
pop rbp
ret

Function at 0x14000ad60
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x28
mov rax, rdx
mov rdx, rcx
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x14000af18
Capabilities:
Copy file
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x1030
call fcn.14000c9b0
sub rsp, rax
mov rax, qword [0x140039a88]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rbx, rcx
mov esi, 0x800
mov edx, esi
lea rcx, [rsp + 0x20]
xor r8d, r8d
call fcn.140006820
mov r9d, esi
lea r8, [rsp + 0x20]
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140006b78
lea rcx, [rsp + 0x20]
call fcn.140005388
xor edi, edi
test al, al
jne 0x14000afd5
mov r8d, esi
mov word [rsp + 0x20], di
lea rdx, [rsp + 0x20]
lea rcx, str.sfxname
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14000afd5
cmp word [rsp + 0x20], di
je 0x14000afd5
mov r8d, esi
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.140006cd4
lea rcx, [rsp + 0x20]
call fcn.140005388
test al, al
je 0x14000afd7
mov r8d, 1
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov al, 1
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14000ca10
lea r11, [rsp + 0x1030]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14000affc
Capabilities:
Copy file
Query environment variable

Disassembly:
sub rsp, 0x28
lea rcx, str.rarreg.key
call fcn.14000af18
test al, al
jne 0x14000b01c
lea rcx, str.rarreg.txt
call fcn.14000af18
lea rcx, str.winrar.ini
add rsp, 0x28
jmp fcn.14000af18
Function at 0x14000c320
Capabilities:
Accept command line arguments
Create process on windows
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x890
mov rax, qword [0x140039a88]
xor rax, rsp
mov qword [rsp + 0x880], rax
mov rbx, rcx
mov cl, 1
call fcn.140008ef4
xor r8d, r8d
lea rcx, [0x14003c620]
mov rdx, rbx
call fcn.140008610
lea rdx, str.uninstall.lng
lea rcx, [0x14003c630]
call fcn.14000753c
xor ecx, ecx
call qword [sym.imp.ole32.dll_OleInitialize]
lea rcx, str.riched20.dll
call fcn.140008e7c
mov rcx, qword [0x14003c610]
lea rdx, str.RARICON
mov rbx, rax
call qword [sym.imp.USER32.dll_LoadIconW]
xor edi, edi
mov qword [0x1400428a0], rax
test rax, rax
jne 0x14000c3cb
mov rcx, qword [0x14003c618]
cmp rcx, qword [0x14003c610]
je 0x14000c3cb
lea rdx, str.RARICON
call qword [sym.imp.USER32.dll_LoadIconW]
mov qword [0x1400428a0], rax
mov ecx, 0xfffffff4
call fcn.14000ad28
mov ecx, eax
xor r9d, r9d
lea rax, str.MS_Shell_Dlg
xor r8d, r8d
mov qword [rsp + 0x68], rax
xor edx, edx
mov dword [rsp + 0x60], edi
mov dword [rsp + 0x58], edi
mov dword [rsp + 0x50], edi
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 0x2bc
call qword [sym.imp.GDI32.dll_CreateFontW]
mov r8d, 0x400
mov byte [rsp + 0x70], dil
lea rdx, [rsp + 0x80]
mov qword [0x1400428a8], rax
lea rcx, str.sfxcmd
mov byte [rsp + 0x71], dil
mov word [rsp + 0x80], di
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea r9, [rsp + 0x71]
mov cl, 1
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x80]
call fcn.14000b3d4
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea r9, [rsp + 0x71]
xor ecx, ecx
mov rdx, rax
lea r8, [rsp + 0x70]
call fcn.14000b3d4
cmp byte [rsp + 0x70], dil
je 0x14000c54b
mov rcx, qword [0x14003c610]
lea r9, [0x14000b670]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, str.SETUPDLG
call qword [sym.imp.USER32.dll_DialogBoxParamW]
test rax, rax
je 0x14000c54b
call fcn.14000affc
mov al, byte [0x140043901]
test al, al
jne 0x14000c4ef
mov rcx, qword [0x14003c610]
lea r9, [0x14000b130]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, str.DONEDLG
call qword [sym.imp.USER32.dll_DialogBoxParamW]
mov al, byte [0x140043901]
cmp word [0x1400428b0], di
je 0x14000c54b
cmp byte [0x140043900], dil
jne 0x14000c54b
test al, al
jne 0x14000c54b
cmp byte [0x140043902], dil
jne 0x14000c54b
lea rcx, [0x1400428b0]
call fcn.140005388
test al, al
je 0x14000c54b
lea rax, [0x140029840]
mov dword [rsp + 0x28], 1
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea r8, [0x1400428b0]
xor ecx, ecx
lea rdx, str.open
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp byte [rsp + 0x71], dil
je 0x14000c557
call fcn.14000bbc8
test rbx, rbx
je 0x14000c565
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
call qword [sym.imp.ole32.dll_OleUninitialize]
mov rcx, qword [0x1400428a8]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, qword [0x1400428a0]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x140043904]
mov rcx, qword [rsp + 0x880]
xor rcx, rsp
call fcn.14000ca10
mov rbx, qword [rsp + 0x8a8]
add rsp, 0x890
pop rdi
ret
Function at 0x14000d314
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000d35e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000d35e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000d35e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000d35e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000d35e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000d360
xor al, al
add rsp, 0x28
ret
Function at 0x14001e0fc
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x14001e0d9
call fcn.14001a6c0
mov dword [rax], 0x16
call fcn.140018024
or eax, 0xffffffff
jmp 0x14001e0f6
sub dword [rcx + 0x10], 1
jns 0x14001e0e8
add rsp, 0x28
jmp 0x140025168
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x14001e0b8
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x14002519a
call fcn.14001a6c0
mov dword [rax], 0x16
call fcn.140018024
jmp 0x1400252b9
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400252b9
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400252b9
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400251c9
lock or dword [rcx + 0x14], 0x10
jmp 0x1400252b9
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400251dd
call fcn.1400244e8
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14001b958
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140023f80
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1400252a7
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x140025272
mov rcx, rsi
call fcn.14001b958
cmp eax, edi
je 0x14002525d
mov rcx, rsi
call fcn.14001b958
cmp eax, 0xfffffffe
je 0x14002525d
mov rcx, rsi
call fcn.14001b958
movsxd rbx, eax
lea r14, [0x140044250]
mov rcx, rsi
sar rbx, 6
call fcn.14001b958
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140025264
lea rdx, [0x140039d80]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140025272
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x140025296
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x140025296
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x140025296
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x1400252bc
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x14001e6c4
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.14000c9b0
sub rsp, rax
mov rax, qword [0x140039a88]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001b958
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001e713
mov rax, rbp
jmp 0x14001e81b
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 + 0x44250]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001e374
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x44250]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001e817
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 0x14001e817
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001e374
test rax, rax
js 0x14001e817
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001e817
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001e809
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001e809
cmp byte [rcx], 0xd
jne 0x14001e7ef
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001e7fe
cmp byte [rcx + 1], 0xa
jne 0x14001e7fe
inc rcx
jmp 0x14001e7fe
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3a3c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001e7d1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001e81b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000ca10
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 0x1400204bc
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400204ec
xor eax, eax
jmp 0x1400205af
mov rbp, rbx
cmp word [rax], si
je 0x140020511
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400204f8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400204f4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14002040c
movsxd r14, eax
test eax, eax
jne 0x14002054f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400204e5
mov rcx, r14
call fcn.14001a6e0
mov rdi, rax
test rax, rax
jne 0x140020568
xor ecx, ecx
call fcn.14001a5b0
jmp 0x140020544
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14002040c
test eax, eax
jne 0x140020599
mov rcx, rdi
call fcn.14001a5b0
jmp 0x1400205a3
xor ecx, ecx
call fcn.14001a5b0
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140023ad4
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x140044250]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x140023b32
cmp word [rdx], r12w
jne 0x140023b32
or byte [rax + r8*8 + 0x38], cl
jmp 0x140023b38
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140023c93
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140023c6e
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140023b71
mov rcx, r9
jmp 0x140023b94
cmp r9, rdx
jae 0x140023bab
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x140023b55
jmp 0x140023c93
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140023c68
cmp dword [rsp + 0x80], edi
je 0x140023c68
mov rdx, r14
lea r11, [0x140044250]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140023c41
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140023c14
mov word [rbx], r12w
jmp 0x140023c8f
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x140023c1d
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140023c8f
cmp word [rsp + 0x70], r12w
jne 0x140023c4e
cmp rbx, rsi
je 0x140023c0e
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14001e37c
cmp word [rsp + 0x70], r12w
je 0x140023c93
mov word [rbx], r13w
jmp 0x140023c8f
lea r11, [0x140044250]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140023c8b
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140023c93
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140026ccc
Capabilities:
Clear file content

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
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001e37c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001e37c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140026e1c
cmp rax, 0xffffffffffffffff
je 0x140026e1c
xor edi, edi
test rbp, rbp
jle 0x140026dc7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001e9b0
mov rbx, rax
test rax, rax
jne 0x140026d54
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140026dbd
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a18c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001d754
cmp eax, 0xffffffff
je 0x140026d9d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140026d64
mov edx, r15d
mov ecx, r14d
call fcn.14001a18c
jmp 0x140026dbd
cmp byte [rsi + 0x38], dil
je 0x140026db4
cmp dword [rsi + 0x34], 5
jne 0x140026db4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140026dbd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001a5b0
jmp 0x140026e30
jns 0x140026e30
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001e37c
cmp rax, 0xffffffffffffffff
jne 0x140026de8
cmp byte [rsi + 0x30], dil
je 0x140026e30
mov edi, dword [rsi + 0x2c]
jmp 0x140026e30
mov ecx, r14d
call fcn.1400213ec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140026e30
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140026e30
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140026e29
mov eax, dword [rsi + 0x2c]
jmp 0x140026e2e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001e37c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14002c540
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x14002c56d
xor al, al
jmp 0x14002c6cf
mov rax, qword [0x14004c6c0]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x14004c6c8]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x14004c6d0]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x14004c6d8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x14004c6e0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x14004c6e8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x14004c6f0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x14004c6f8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x14004c700]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x14002c6c1
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x14002c619
mov r11d, 2
jmp 0x14002c63d
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x14002c633
mov r11d, 1
jmp 0x14002c63d
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x14002c6e5
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x14002c682
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x14002c69a
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x14002c6aa
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x14002c6b8
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x14002c600
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x14002c6ca
Function at 0x1800213cf
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs r9, 0xcbf29ce484222325
test rdx, rdx
je 0x180021403
xor r8d, r8d
movabs r10, 0x100000001b3
movzx eax, byte [rcx + r8]
inc r8
xor rax, r9
imul rax, r10
mov r9, rax
cmp rdx, r8
jne 0x1800213eb
ret
mov rax, r9
ret

Function at 0x18003919a
Capabilities:
Encode data using xor

Disassembly:
push rsi
sub rsp, 0x20
mov eax, dword [rcx + 0x20]
test eax, eax
jle 0x1800391df
mov rdx, qword [rcx + 0x28]
xor r8d, r8d
mov rsi, rax
mov r9, qword [rdx + r8*8 + 8]
inc r8
mov r9, qword [r9 + 0x10]
add rsi, r9
or r9d, 1
lzcnt r9d, r9d
xor r9d, 0x1f
lea r9d, [r9 + r9*8 + 0x49]
shr r9d, 6
add rsi, r9
cmp rax, r8
jne 0x1800391b0
jmp 0x1800391e2
mov rsi, rax
mov eax, dword [rcx + 0x10]
test al, al
je 0x18003930b
test al, 1
je 0x180039216
mov rdx, qword [rcx + 0x30]
and rdx, 0xfffffffffffffffc
mov rdx, qword [rdx + 0x10]
add rsi, rdx
or edx, 1
lzcnt edx, edx
xor edx, 0x1f
lea edx, [rdx + rdx*8 + 0x49]
shr edx, 6
lea rsi, [rdx + rsi + 1]
test al, 2
je 0x18003923f
mov rdx, qword [rcx + 0x38]
and rdx, 0xfffffffffffffffc
mov rdx, qword [rdx + 0x10]
add rsi, rdx
or edx, 1
lzcnt edx, edx
xor edx, 0x1f
lea edx, [rdx + rdx*8 + 0x49]
shr edx, 6
lea rsi, [rdx + rsi + 1]
test al, 4
je 0x180039263
mov rdx, qword [rcx + 0x40]
or rdx, 1
lzcnt rdx, rdx
xor rdx, 0x3f
lea rdx, [rdx + rdx*8 + 0x89]
shr rdx, 6
add rsi, rdx
test al, 8
je 0x180039287
mov rdx, qword [rcx + 0x48]
or rdx, 1
lzcnt rdx, rdx
xor rdx, 0x3f
lea rdx, [rdx + rdx*8 + 0x89]
shr rdx, 6
add rsi, rdx
test al, 0x10
je 0x1800392ab
mov rdx, qword [rcx + 0x50]
or rdx, 1
lzcnt rdx, rdx
xor rdx, 0x3f
lea rdx, [rdx + rdx*8 + 0x89]
shr rdx, 6
add rsi, rdx
test al, 0x20
je 0x1800392c9
mov edx, dword [rcx + 0x58]
or edx, 1
lzcnt edx, edx
xor edx, 0x1f
lea edx, [rdx + rdx*8 + 0x89]
shr edx, 6
add rsi, rdx
test al, 0x40
je 0x1800392e7
mov edx, dword [rcx + 0x5c]
or edx, 1
lzcnt edx, edx
xor edx, 0x1f
lea edx, [rdx + rdx*8 + 0x89]
shr edx, 6
add rsi, rdx
test al, al
jns 0x18003930b
movsxd rdx, dword [rcx + 0x60]
or rdx, 1
lzcnt rdx, rdx
xor rdx, 0x3f
lea rdx, [rdx + rdx*8 + 0x89]
shr rdx, 6
add rsi, rdx
test eax, 0xff00
je 0x1800393e2
bt eax, 8
jae 0x18003933c
movsxd rdx, dword [rcx + 0x64]
or rdx, 1
lzcnt rdx, rdx
xor rdx, 0x3f
lea rdx, [rdx + rdx*8 + 0x89]
shr rdx, 6
add rsi, rdx
lea r8, [rsi + 9]
bt eax, 9
cmovae r8, rsi
bt eax, 0xa
lea rdx, [r8 + 9]
cmovae rdx, r8
bt eax, 0xb
jae 0x18003937a
movsxd r8, dword [rcx + 0x78]
or r8, 1
lzcnt r8, r8
xor r8, 0x3f
lea r8, [r8 + r8*8 + 0x89]
shr r8, 6
add rdx, r8
lea r8, [rdx + 2]
bt eax, 0xc
cmovae r8, rdx
bt eax, 0xd
lea rsi, [r8 + 3]
cmovae rsi, r8
bt eax, 0xe
jae 0x1800393bb
movsxd rdx, dword [rcx + 0x80]
or rdx, 1
lzcnt rdx, rdx
xor rdx, 0x3f
lea rdx, [rdx + rdx*8 + 0x89]
shr rdx, 6
add rsi, rdx
test ax, ax
jns 0x1800393e2
movsxd rax, dword [rcx + 0x84]
or rax, 1
lzcnt rax, rax
xor rax, 0x3f
lea rax, [rax + rax*8 + 0x49]
shr rax, 6
lea rsi, [rsi + rax + 2]
mov rax, qword [rcx + 8]
test al, 1
je 0x1800393f2
and rax, 0xfffffffffffffffc
add rsi, qword [rax + 0x18]
mov edx, esi
call fcn.180030316
mov rax, rsi
add rsp, 0x20
pop rsi
ret