joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b3cc
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push rbp
lea rbp, [rsp - 0xf90]
mov eax, 0x1090
call fcn.1400fc480
sub rsp, rax
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x10a0], rbx
mov qword [rsp + 0x10a8], rsi
mov qword [rsp + 0x10b0], rdi
mov rax, qword [0x140160370]
xor rax, rsp
mov qword [rbp + 0xf80], rax
xor ebx, ebx
cmp qword [0x14017fe30], rbx
je 0x14000b65d
xor r9d, r9d
mov r8b, 1
lea rdx, [0x14017edfa]
lea rdi, [0x14018a710]
mov rcx, rdi
call fcn.140006db4
cmp eax, 1
jne 0x14000b65d
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x30], rbx
mov eax, dword [0x1401778a0]
add eax, 0xfffffffd
mov r9b, 1
lea r8, [rsp + 0x30]
mov rcx, rdi
cmp eax, 1
jbe 0x14000b47d
lea rdx, [rsp + 0x38]
call fcn.140006084
jmp 0x14000b487
lea rdx, [rsp + 0x40]
call fcn.1400061b0
cmp qword [rsp + 0x30], rbx
je 0x14000b65d
mov edi, 0x800
mov r8d, edi
lea rdx, [rbp - 0x80]
lea rcx, [0x14017fe00]
call fcn.1400963dc
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b4f8
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
movabs r9, 0x7fffffff7fffffff
mov r8d, edi
lea rdx, [rbp - 0x80]
lea rcx, [0x140173880]
call fcn.140098ae8
cmp eax, 6
ja 0x14000b4f8
mov ecx, 0x4a
bt ecx, eax
jae 0x14000b4f8
mov rcx, qword [rsp + 0x38]
jmp 0x14000b658
lea rdx, [0x14011cb30]
lea rcx, [rbp - 0x80]
call fcn.1400706c8
mov rdi, rax
test rax, rax
jne 0x14000b52f
mov ecx, 0x1f6
call fcn.1400901c8
mov rdx, rax
lea r8, [rbp - 0x80]
lea rcx, [0x14017edfa]
call fcn.1400d5224
jmp 0x14000b4ee
mov eax, dword [0x1401778a0]
cmp eax, 3
jne 0x14000b591
mov rdx, rdi
mov ecx, 0xff
call fcn.140103a34
mov rdx, rdi
mov ecx, 0xfe
call fcn.140103a34
cmp qword [rsp + 0x30], rbx
jbe 0x14000b641
mov rax, qword [rsp + 0x40]
movzx ecx, word [rax + rbx*2]
mov rdx, rdi
call fcn.140103a34
mov rax, qword [rsp + 0x40]
movzx ecx, byte [rax + rbx*2 + 1]
mov rdx, rdi
call fcn.140103a34
inc rbx
cmp rbx, qword [rsp + 0x30]
jb 0x14000b55f
jmp 0x14000b641
cmp eax, 4
jne 0x14000b612
mov rdx, rdi
mov ecx, 0xef
call fcn.140103a34
mov rdx, rdi
mov ecx, 0xbb
call fcn.140103a34
mov rdx, rdi
mov ecx, 0xbf
call fcn.140103a34
mov rdx, qword [rsp + 0x30]
shl rdx, 2
lea rcx, [rsp + 0x50]
call fcn.140009f58
nop
mov r8, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
call fcn.140099194
or r8, 0xffffffffffffffff
inc r8
cmp byte [rsi + r8], bl
jne 0x14000b5ec
mov r9, rdi
mov edx, 1
mov rcx, rsi
call fcn.140103d94
nop
lea rcx, [rsp + 0x50]
call fcn.140009f84
jmp 0x14000b641
cmp eax, 2
jne 0x14000b62a
mov r8d, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov rdx, rcx
call qword [sym.imp.USER32.dll_CharToOemBuffA]
mov r9, rdi
mov r8, qword [rsp + 0x30]
mov edx, 1
mov rcx, qword [rsp + 0x38]
call fcn.140103d94
mov rcx, rdi
call fcn.1401039c8
mov rcx, qword [rsp + 0x38]
call fcn.1400fc59c
mov rcx, qword [rsp + 0x40]
call fcn.1400fc59c
mov rcx, qword [rbp + 0xf80]
xor rcx, rsp
call fcn.1400fc4f0
lea r11, [rsp + 0x1090]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14000c24c
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x830
mov rax, qword [0x140160370]
xor rax, rsp
mov qword [rsp + 0x820], rax
xor ebp, ebp
mov rdi, rcx
mov word [rcx], bp
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov r8d, 0x400
lea rdx, [rsp + 0x20]
mov rcx, rax
mov ebx, ebp
call fcn.1400959d4
mov rsi, rax
test rax, rax
je 0x14000c2fb
test ebx, ebx
jne 0x14000c2ab
mov ebx, 1
jmp 0x14000c2d8
movzx edx, word [rsp + 0x20]
lea rcx, [0x140173880]
call fcn.140062c64
test al, al
jne 0x14000c2d8
cmp ebx, 1
jne 0x14000c2d6
movzx eax, word [rsp + 0x20]
mov word [rdi], ax
movzx eax, word [rsp + 0x22]
mov word [rdi + 2], ax
inc ebx
mov r8d, 0x400
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.1400959d4
mov rsi, rax
test rax, rax
jne 0x14000c2a0
cmp ebx, 2
jne 0x14000c2fb
mov word [rdi], bp
mov rcx, qword [rsp + 0x820]
xor rcx, rsp
call fcn.1400fc4f0
lea r11, [rsp + 0x830]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140011760
Capabilities:
Check mutex on windows
Log keystrokes via polling

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov rbx, rdx
mov bpl, cl
cmp dword [0x140166ce0], 0
jne 0x140011925
lea r8, str.WinRAR_DragDrop
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rsi, rax
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1400117d5
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x5b9
call fcn.1400901c8
mov rcx, rax
call fcn.1400d4974
jmp 0x140011925
mov edi, 0x10
mov ecx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [0x14016101a], al
mov ecx, edi
call fcn.1400fc108
mov rdi, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x140011814
lea rax, [0x14011d8c8]
mov qword [rdi], rax
mov dword [rdi + 8], 1
jmp 0x140011816
xor edi, edi
mov ecx, 0xd960
call fcn.1400fc108
mov qword [rsp + 0x68], rax
test rax, rax
je 0x140011840
xor r9d, r9d
mov r8, rbx
mov dl, bpl
mov rcx, rax
call fcn.140010a00
mov r14, rax
jmp 0x140011843
xor r14d, r14d
mov qword [0x140161020], r14
mov byte [0x140161019], 0
mov byte [0x140161018], 1
mov byte [0x14016101b], 0
lea r9, [rsp + 0x60]
mov r8d, 3
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.ole32.dll_DoDragDrop]
mov ebp, eax
mov byte [0x140161018], 0
mov rdx, qword [r14]
mov rbx, qword [rdx + 0x10]
mov rcx, rbx
call qword [fcn.1400fd580]
mov rcx, r14
call rbx
mov rdx, qword [rdi]
mov rbx, qword [rdx + 0x10]
mov rcx, rbx
call qword [fcn.1400fd580]
mov rcx, rdi
call rbx
cmp byte [0x14016101a], 0
je 0x1400118d4
cmp byte [0x140166ce4], 0
je 0x1400118d4
cmp ebp, 0x40100
jne 0x1400118d4
call fcn.1400dc8d8
lea rcx, [0x14018d510]
call fcn.140048730
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [rbp - 0x40100]
cmp eax, 1
jbe 0x140011925
cmp byte [0x14016101b], 0
jne 0x140011925
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
je 0x140011925
mov ecx, 0x53c
call fcn.1400901c8
mov rcx, rax
call fcn.1400d4974
lea rcx, [0x14019bd38]
call fcn.140069744
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140012538
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x2f60]
mov eax, 0x3060
call fcn.1400fc480
sub rsp, rax
mov rax, qword [0x140160370]
xor rax, rsp
mov qword [rbp + 0x2f50], rax
mov sil, dl
mov rdi, rcx
call fcn.140072f20
cmp eax, 0x600
jb 0x1400126eb
mov rcx, rdi
call fcn.1400ceb30
xor ebx, ebx
test al, al
jne 0x1400126eb
mov r14d, 0x800
lea r8, [rsp + 0x50]
mov r9d, r14d
lea rcx, [0x14018d510]
mov rdx, rdi
call fcn.140044d84
mov r8d, r14d
lea rdx, [rbp + 0xf50]
lea rcx, [rsp + 0x50]
call fcn.14007f840
lea rcx, [rbp + 0xf50]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x1400126eb
mov dword [rsp + 0x38], ebx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rbx
lea rcx, [rbp + 0xf50]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x14001261e
mov eax, dword [rsp + 0x40]
and eax, 0x80008
cmp eax, 8
jne 0x1400126eb
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140012651
test al, 0x10
jne 0x140012651
lea rcx, [rsp + 0x50]
call fcn.140012388
and eax, 6
cmp al, 6
jne 0x1400126e7
lea rcx, [rsp + 0x50]
call fcn.140080444
lea rcx, [rsp + 0x50]
mov dil, bl
call fcn.14006f794
test al, al
jne 0x1400126b8
mov dil, 1
mov r8, r14
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x1f50]
call fcn.140096298
lea rcx, [rsp + 0x50]
call fcn.140080444
lea rax, [rsp + 0x50]
lea r8, [rbp + 0x1f50]
sub r8, rax
movzx ecx, word [rax]
movzx edx, word [rax + r8]
sub ecx, edx
jne 0x1400126a6
add rax, 2
test edx, edx
jne 0x140012692
test ecx, ecx
je 0x1400126b8
lea rcx, [rsp + 0x50]
call fcn.14006f794
test al, al
je 0x140012665
lea rcx, [rsp + 0x50]
call fcn.140012388
mov ecx, eax
shr eax, 2
shr ecx, 1
and cl, 1
test al, 1
je 0x1400126de
test dil, dil
je 0x1400126da
test sil, sil
je 0x1400126e3
test cl, cl
jne 0x1400126e3
mov ebx, 1
mov al, bl
jmp 0x1400126ed
mov al, 1
jmp 0x1400126ed
xor al, al
mov rcx, qword [rbp + 0x2f50]
xor rcx, rsp
call fcn.1400fc4f0
lea r11, [rsp + 0x3060]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140013a04
Capabilities:
Delete file
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x1fb8]
mov eax, 0x20b0
call fcn.1400fc480
sub rsp, rax
mov rax, qword [0x140160370]
xor rax, rsp
mov qword [rbp + 0x1fa0], rax
xor r9d, r9d
mov rdi, rcx
mov rcx, qword [rcx]
mov edx, 0x110a
lea r8d, [r9 + 9]
call qword [sym.imp.USER32.dll_SendMessageW]
xor esi, esi
test rax, rax
je 0x140013b49
mov rcx, qword [rdi]
lea r9, [rsp + 0x58]
xor r8d, r8d
mov dword [rsp + 0x58], 4
mov edx, 0x113e
mov qword [rsp + 0x60], rax
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x140013b49
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140013b49
mov rcx, qword [rcx + 0x10]
lea rdx, [rbp - 0x70]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x140013b49
lea ecx, [rsi + 0x10]
call qword [sym.imp.USER32.dll_GetKeyState]
mov r8d, 0x800
lea rdx, [rbp - 0x70]
movzx ebx, ax
lea rcx, [rbp + 0xf90]
shr ebx, 0xf
not bl
and bl, 1
call fcn.140096298
lea rax, [rbp + 0xf90]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], si
jne 0x140013adf
lea rcx, [rcx*2 + 2]
cmp rcx, 0x1002
jae 0x140013b71
xor edx, edx
mov word [rbp + rcx + 0xf90], si
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x38]
call fcn.1400fd700
neg bl
mov dword [rsp + 0x28], 3
lea rcx, [rsp + 0x20]
sbb ax, ax
and ax, 0x40
mov word [rsp + 0x40], ax
lea rax, [rbp + 0xf90]
mov qword [rsp + 0x30], rax
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov dl, byte [rdi + 0x10]
mov rcx, rdi
call fcn.1400159cc
mov rcx, qword [rbp + 0x1fa0]
xor rcx, rsp
call fcn.1400fc4f0
lea r11, [rsp + 0x20b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.1400fc254
int3
Function at 0x1400144d4
Capabilities:
Get file system object information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x300
mov rax, qword [0x140160370]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov rbx, rdx
mov dword [rsp + 0x20], 0x4009
mov rdi, r8
mov rcx, rbx
mov r9d, 0x2b8
lea r8, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [rsp + 0x38]
lea r8, [rsp + 0x30]
mov r9d, 0x2b8
mov dword [rdi + 0x24], eax
xor edx, edx
mov dword [rsp + 0x20], 0x400b
mov rcx, rbx
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [rsp + 0x38]
mov dword [rdi + 0x28], eax
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.1400fc4f0
mov rbx, qword [rsp + 0x310]
add rsp, 0x300
pop rdi
ret
Function at 0x140015708
Capabilities:
Get file system object information

Disassembly:
push rbx
mov eax, 0x1300
call fcn.1400fc480
sub rsp, rax
mov rax, qword [0x140160370]
xor rax, rsp
mov qword [rsp + 0x12f0], rax
mov qword [rcx], rdx
lea r8, [rsp + 0x30]
mov rbx, rcx
mov dword [rsp + 0x20], 0x4001
xor edx, edx
lea rcx, [0x14011c97c]
mov r9d, 0x2b8
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
jne 0x14001578e
xor r8d, r8d
lea rcx, [rsp + 0x2f0]
mov edx, 0x800
call fcn.1400ce934
mov r9d, 0x2b8
mov dword [rsp + 0x20], 0x4001
lea r8, [rsp + 0x30]
xor edx, edx
lea rcx, [rsp + 0x2f0]
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov rcx, qword [rbx]
mov r9, rax
xor r8d, r8d
mov edx, 0x1109
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rsp + 0x12f0]
xor rcx, rsp
call fcn.1400fc4f0
add rsp, 0x1300
pop rbx
ret

Function at 0x140016d4c
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
lea rdi, [rcx + 0x1042]
mov byte [rcx + 0x40], sil
lea r9, [rsp + 0x30]
mov word [rdi], si
mov rbx, rcx
mov rdx, qword [rcx + 8]
lea r8, [rdx + 0x5030]
add rdx, 0xb57a
call fcn.140016dec
test al, al
jne 0x140016dae
cmp byte [rsp + 0x30], sil
jne 0x140016dda
mov rdx, qword [rbx + 8]
lea rcx, [0x14019bd38]
add rdx, 0xb57a
call fcn.140069630
jmp 0x140016dda
mov rdx, qword [rbx + 0x10]
mov rcx, rbx
mov rdx, qword [rdx + 8]
call fcn.140016a00
mov rcx, rbx
call fcn.1400164d8
cmp byte [rbx + 0x40], sil
je 0x140016dda
cmp word [rdi], si
je 0x140016dda
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140016fc0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rdx
mov r8, rcx
cmp byte [rcx + 0x20], bl
je 0x140016fff
mov qword [rdx], rbx
cmp dword [rcx + 0x30], ebx
jbe 0x140017034
mov rcx, qword [r8 + 0x28]
mov edx, ebx
inc ebx
add rdx, rdx
mov rdx, qword [rcx + rdx*8 + 8]
add qword [rdi], rdx
cmp ebx, dword [r8 + 0x30]
jb 0x140016fe4
jmp 0x140017034
mov rcx, qword [rcx + 0x10]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp eax, 0xffffffff
jne 0x140017023
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140017023
xor al, al
jmp 0x140017036
mov ecx, dword [rsp + 0x30]
mov rax, rsi
shl rcx, 0x20
add rcx, rsi
mov qword [rdi], rcx
mov al, 1
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140018868
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x48
cmp byte [rcx + 0x20], 0
mov eax, r8d
mov rbx, rcx
je 0x140018955
mov ecx, dword [rcx + 0x30]
xor edi, edi
test ecx, ecx
je 0x1400188b8
mov r8, qword [rbx + 0x28]
mov r9, qword [rbx + 0x10]
mov eax, edi
add rax, rax
cmp r9, qword [r8 + rax*8]
je 0x1400188b1
inc edi
cmp edi, ecx
jb 0x1400188a0
mov eax, dword [rsp + 0x80]
cmp edi, ecx
jb 0x1400188c3
xor al, al
jmp 0x14001896a
xor ebp, ebp
mov esi, edi
test eax, eax
je 0x140018947
mov rax, qword [rbx + 0x28]
mov ecx, esi
add rcx, rcx
mov rcx, qword [rax + rcx*8]
mov qword [rbx + 0x10], rcx
mov byte [rbx + 0x20], 0
cmp esi, edi
jbe 0x1400188fb
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.140018bc0
mov rdx, qword [rsp + 0x78]
mov r8d, dword [rsp + 0x80]
lea r9, [rsp + 0x70]
and dword [rsp + 0x70], 0
mov rcx, rbx
call fcn.140018868
mov byte [rbx + 0x20], 1
test al, al
je 0x1400188bc
mov ecx, dword [rsp + 0x70]
inc esi
mov rdx, qword [rsp + 0x78]
add ebp, ecx
mov eax, dword [rsp + 0x80]
add rdx, rcx
sub eax, ecx
mov qword [rsp + 0x78], rdx
mov dword [rsp + 0x80], eax
cmp esi, dword [rbx + 0x30]
jb 0x1400188c7
mov rcx, qword [rsp + 0x88]
mov al, 1
mov dword [rcx], ebp
jmp 0x14001896a
mov rcx, qword [rcx + 0x10]
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne al
add rsp, 0x48
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140018e78
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdi, rdx
mov rsi, rcx
call fcn.140018bc0
test al, al
jne 0x140018ea2
xor al, al
jmp 0x140018eb8
cmp qword [rsp + 0x40], rdi
jne 0x140018e9e
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140019178
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebp, r8d
mov rsi, rdx
add qword [rcx + 0x40], rbp
mov rbx, rcx
mov r10, qword [rcx + 0x40]
mov dil, 1
je 0x1400191c5
mov rcx, qword [rcx + 0x48]
cmp r10, rcx
jae 0x1400191c5
mov rax, qword [rbx + 0x18]
and qword [rax + 0x28], 0
and qword [rax + 0x30], 0
mov qword [rax + 0x18], r10
mov qword [rax + 0x20], rcx
mov byte [rax + 0x38], dil
cmp byte [rbx + 9], 0
je 0x1400191d0
mov dword [r9], r8d
jmp 0x1400191e6
mov rcx, qword [rbx + 0x10]
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne dil
mov rcx, qword [rbx + 0x18]
mov r8, rbp
mov rdx, rsi
mov rcx, qword [rcx + 8]
call fcn.14001e40c
mov rbx, qword [rsp + 0x40]
mov al, dil
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14001bf10
Capabilities:
Encode data using xor
Hash data using crc32b

Disassembly:
xor r9d, r9d
lea r10, [0x140162050]
mov r8d, r9d
mov r11d, 8
shl r8d, 0x18
lea eax, [r8 + r8]
mov ecx, r8d
mov edx, eax
mov r8d, eax
xor edx, 0x4c11db7
test ecx, ecx
cmovs r8d, edx
dec r11d
test r11d, r11d
jg 0x14001bf27
mov dword [r10], r8d
inc r9d
add r10, 4
cmp r9d, 0x100
jl 0x14001bf1a
ret

Function at 0x14001d420
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movzx ecx, cx
call fcn.14010a524
xor edi, edi
mov ebx, eax
cmp word [0x140163480], di
je 0x14001d453
lea rcx, [0x140163480]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov word [0x140163480], di
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14001e1f4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rsi, rcx
mov rdi, r8
xor ecx, ecx
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rcx, rbx
call fcn.1400803f0
xor ebp, ebp
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
mov word [rax], bp
call fcn.140096270
mov rcx, rbx
call fcn.14006f794
test al, al
je 0x14001e247
mov al, 1
jmp 0x14001e2cc
lea rax, [rsp + 0x38]
mov word [rbx], bp
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionApp_Pathswinrar.exe
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001e2ab
mov rcx, qword [rsp + 0x38]
lea eax, [rdi + rdi]
mov dword [rsp + 0x68], eax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
call fcn.1400803f0
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
mov word [rax], bp
call fcn.140096270
mov rcx, rbx
call fcn.14006f794
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140025a04
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
lea rdx, [0x1401664a0]
mov r10d, 0x100
mov r9, r8
mov r11d, 8
mov rcx, r9
movabs rax, 0xc96c5795d7870f42
and ecx, 1
dec rcx
not rcx
and rcx, rax
mov rax, r9
shr rax, 1
mov r9, rcx
xor r9, rax
sub r11, 1
jne 0x140025a1d
mov qword [rdx], r9
inc r8
add rdx, 8
sub r10, 1
jne 0x140025a14
ret

Function at 0x140025a5c
Capabilities:
Encode data using xor

Disassembly:
mov r9, r8
test r8, r8
je 0x140025a8c
movzx eax, byte [rdx]
lea r10, [0x1401664a0]
xor rax, rcx
inc rdx
movzx r8d, al
mov rax, rcx
shr rax, 8
mov rcx, qword [r10 + r8*8]
xor rcx, rax
sub r9, 1
jne 0x140025a64
mov rax, rcx
ret

Function at 0x140029a5c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], r9
push rdi
push r13
push r14
push r15
mov r10d, dword [r9]
xor r13d, r13d
and r10d, 7
mov edi, r8d
mov rbp, rcx
mov r11d, r13d
cmp rdx, 5
jae 0x140029a96
xor eax, eax
jmp 0x140029c03
add edi, 5
lea rsi, [rdx - 4]
or rbx, 0xffffffffffffffff
lea r14, [0x140000000]
add rsi, rbp
lea r8, [r11 + rbp]
jmp 0x140029abd
mov al, byte [r8]
and al, 0xfe
cmp al, 0xe8
je 0x140029ac2
inc r8
cmp r8, rsi
jb 0x140029ab1
mov r11, r8
sub r11, rbp
mov rax, r11
cmp r8, rsi
jae 0x140029be3
sub rax, rbx
cmp rax, 3
jbe 0x140029b28
mov r10d, r13d
mov al, byte [r8 + 4]
mov rbx, r11
dec al
cmp al, 0xfd
jbe 0x140029b5f
movzx eax, byte [r8 + 3]
movzx r9d, byte [r8 + 4]
shl r9d, 8
or r9d, eax
mov r15d, r10d
movzx eax, byte [r8 + 2]
shl r9d, 8
or r9d, eax
movzx eax, byte [r8 + 1]
shl r9d, 8
or r9d, eax
cmp dword [rsp + 0x48], r13d
je 0x140029b72
lea edx, [r11 + r9]
add edx, edi
jmp 0x140029b7a
lea ecx, [rax - 1]
shl r10d, cl
and r10d, 7
je 0x140029ae0
movzx eax, byte [r10 + r14 + 0x11f1f8]
mov ecx, 4
sub ecx, eax
movsxd rax, ecx
mov cl, byte [rax + r8]
cmp byte [r10 + r14 + 0x11f1f0], r13b
je 0x140029b5c
inc cl
test cl, 0xfe
jne 0x140029ae0
mov rbx, r11
and r10d, 3
add r10d, r10d
or r10d, 1
inc r11
jmp 0x140029aab
mov edx, r9d
sub edx, r11d
sub edx, edi
test r10d, r10d
je 0x140029bb5
movzx r9d, byte [r15 + r14 + 0x11f1f8]
mov eax, edx
shl r9d, 3
neg r9d
lea ecx, [r9 + 0x18]
shr eax, cl
inc al
test al, 0xfe
jne 0x140029bb5
lea ecx, [r9 + 0x20]
mov r9d, 1
shl r9d, cl
dec r9d
xor r9d, edx
jmp 0x140029b19
mov eax, edx
mov byte [r8 + 1], dl
shr eax, 0x18
and al, 1
dec al
not al
mov byte [r8 + 4], al
mov eax, edx
shr eax, 0x10
mov byte [r8 + 3], al
mov eax, edx
shr eax, 8
mov byte [r8 + 2], al
add r11, 5
jmp 0x140029aab
mov r14, qword [rsp + 0x40]
mov rdx, r11
sub rdx, rbx
lea ecx, [rdx - 1]
shl r10d, cl
and r10d, 7
cmp rdx, 3
cmova r10d, r13d
mov dword [r14], r10d
mov rbx, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
pop r15
pop r14
pop r13
pop rdi
ret

Function at 0x14003124c
Capabilities:
Encode data using xor

Disassembly:
xor r10d, r10d
mov r11, rcx
test r8, r8
je 0x140031282
movzx eax, byte [rdx]
mov r9d, r10d
mov ecx, r10d
shr r9, 8
xor r9, rax
shl ecx, 8
movzx eax, r9b
inc rdx
mov r10d, dword [r11 + rax*4 + 0x1aa8]
xor r10d, ecx
sub r8, 1
jne 0x140031257
movzx eax, r10w
ret