joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004130
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
and qword [rcx], 0
and dword [rcx + 8], 0
and dword [rcx + 0xc], 0
mov rbp, rdx
mov edx, 3
mov rbx, rcx
call fcn.1400011b8
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
movsxd rsi, eax
jle 0x14000419c
lea edi, [rsi + 1]
cmp edi, dword [rbx + 0xc]
jl 0x140004182
mov edx, edi
mov rcx, rbx
call fcn.1400011b8
mov rdx, qword [rbx]
mov r8d, edi
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rax, qword [rbx]
and word [rax + rsi*2], 0
mov dword [rbx + 8], esi
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000439c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
lea rdx, [rax + 8]
mov rcx, rsi
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
and qword [rbx], 0
and dword [rbx + 8], 0
and dword [rbx + 0xc], 0
mov edx, 3
mov rcx, rbx
mov ebp, eax
call fcn.1400011b8
lea edi, [rbp + 2]
cmp edi, dword [rbx + 0xc]
jl 0x140004405
mov edx, edi
mov rcx, rbx
call fcn.1400011b8
cmp edi, dword [rbx + 0xc]
jl 0x140004405
mov edx, edi
mov rcx, rbx
call fcn.1400011b8
mov rdx, qword [rbx]
lea r8d, [rbp + 1]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rbx]
xor r11d, r11d
cmp word [rcx], r11w
je 0x140004432
mov rax, rcx
add rax, 2
add r11d, 1
cmp word [rax], 0
jne 0x140004424
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
movsxd rax, r11d
and word [rcx + rax*2], 0
mov dword [rbx + 8], r11d
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140004624
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rdi, rdx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140004646
xor eax, eax
jmp 0x1400046a7
mov ecx, InitCommonControls
test cl, al
je 0x14000465a
call qword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x1400046a7
mov eax, dword [0x140026da8]
test eax, eax
jne 0x14000466e
mov rcx, rbx
call fcn.1400045f0
jmp 0x1400046a7
cmp eax, 2
jne 0x1400046a2
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x140004664
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, [rsp + 0x34]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
js 0x140004664
mov eax, 1
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
Function at 0x140004c68
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0x20]
mov rdx, rbp
movsxd r13, eax
call fcn.140003140
cmp dword [rsp + 0x2c], 0
jg 0x140004caa
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.1400011b8
cmp word [rbp + r13*2 - 2], 0x5c
mov rbx, qword [rsp + 0x20]
mov edi, 1
je 0x140004cc6
cmp word [rbp + r13*2 - 2], 0x2f
jne 0x140004cd0
and word [rbx + r13*2 - 2], 0
sub r13d, edi
movsxd r14, r13d
mov r12d, r13d
mov rsi, r14
jmp 0x140004cfe
cmp word [rbx + rsi*2], 0x2f
je 0x140004cf4
cmp word [rbx + rsi*2], 0x5c
je 0x140004cf4
sub r12d, edi
sub rsi, rdi
test rsi, rsi
jg 0x140004cdb
test rsi, rsi
je 0x140004d4f
and word [rbx + rsi*2], 0
mov rcx, rbx
call fcn.14000234c
test eax, eax
je 0x140004cef
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x140004d37
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.140004624
test eax, eax
jne 0x140004df4
mov rcx, rbx
call fcn.14000234c
test eax, eax
je 0x140004de5
movsxd rsi, r12d
jmp 0x140004dde
cmp r13d, 2
jne 0x140004d74
movzx eax, word [rbp]
or ax, 0x20
cmp ax, 0x61
jb 0x140004d74
cmp ax, 0x7a
ja 0x140004d74
cmp word [rbp + 2], 0x3a
je 0x140004df6
mov r8, rbp
mov edx, 0xc
mov ecx, edi
call fcn.14000d318
mov rcx, rbx
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
xor eax, eax
jmp 0x140004e00
mov eax, r13d
movsxd rcx, r12d
sub eax, r12d
lea rdx, [rbp + rcx*2]
lea rcx, [rbx + rcx*2]
add eax, edi
movsxd r8, eax
call sub.msvcrt.dll_memcpy
cmp word [rbx + rsi*2], 0
jmp 0x140004dbe
cmp word [rbx + rsi*2], 0x5c
je 0x140004dcd
cmp word [rbx + rsi*2], 0x2f
je 0x140004dcd
add rsi, rdi
add r12d, edi
cmp word [rbx + rsi*2], 0
jne 0x140004db2
and word [rbx + rsi*2], 0
mov rcx, rbx
call fcn.14000234c
test eax, eax
je 0x140004de5
cmp rsi, r14
jl 0x140004d8f
jmp 0x140004df6
mov r8, rbx
mov edx, 0xc
mov ecx, edi
call fcn.14000d318
xor edi, edi
mov rcx, rbx
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov eax, edi
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140005e28
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x290
call qword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.14001ec80
call fcn.140002b48
mov ecx, 3
call fcn.140002bb8
mov ecx, 0x28
mov qword [0x140026d88], rax
call fcn.140002bb8
mov ecx, 2
mov qword [0x140026d80], rax
call fcn.140002bb8
mov ecx, 5
mov qword [0x140026d78], rax
call fcn.140002bb8
mov ecx, 0x15
mov qword [0x140026d70], rax
call fcn.140002bb8
mov ecx, 0x16
mov qword [0x140026d68], rax
call fcn.140002bb8
mov ecx, 0x17
mov qword [0x140026d60], rax
call fcn.140002bb8
and qword [0x140026d48], 0
and qword [0x140026d50], 0
mov qword [0x140026d58], rax
xor ebx, ebx
lea rdx, [rsp + 0x80]
xor r9d, r9d
mov r8d, ebx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x140005f48
lea rdx, str.SfxFolder_02d
lea rcx, [rsp + 0x20]
mov r8d, ebx
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x20]
mov r8d, 1
call fcn.1400044d8
lea rdi, str.CommonDesktop
mov esi, 5
cmp dword [rdi - 8], ebx
jne 0x140005f3e
mov rcx, qword [rdi]
lea rdx, [rsp + 0x80]
xor r8d, r8d
call fcn.1400044d8
add rdi, 0x10
sub rsi, 1
jne 0x140005f26
add ebx, 1
cmp ebx, 0x40
jl 0x140005ed3
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140005f68
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.1400037bc
lea rdx, [0x140026dd8]
mov rcx, rbx
call fcn.140005a5c
lea rdx, [0x140026de8]
mov rcx, rbx
call fcn.140005bd4
mov rcx, rbx
call fcn.140005d4c
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400037bc

Function at 0x140005fac
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.1400037bc
lea rdx, [0x140026dc8]
mov rcx, rbx
call fcn.1400058e4
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140005f68
Function at 0x140006478
Capabilities:
Check if file exists
Get common file path
Get file attributes

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, 0x20
and qword [rcx], 0
and dword [rcx + 8], 0
and dword [rcx + 0xc], 0
mov r12, rdx
mov edx, 3
mov rbx, rcx
call fcn.1400011b8
cmp dword [rbx + 0xc], 2
jg 0x1400064c0
mov edx, 2
mov rcx, rbx
call fcn.1400011b8
mov rdx, qword [rbx]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov rcx, qword [rbx]
and word [rcx], 0
and dword [rbx + 8], 0
test eax, eax
je 0x140006523
lea edi, [rax + 1]
cmp edi, dword [rbx + 0xc]
jl 0x1400064ef
mov edx, edi
mov rcx, rbx
call fcn.1400011b8
mov rdx, qword [rbx]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov rcx, qword [rbx]
xor r11d, r11d
cmp word [rcx], r11w
je 0x140006517
mov rax, rcx
add rax, 2
add r11d, 1
cmp word [rax], 0
jne 0x140006509
movsxd rax, r11d
and word [rcx + rax*2], 0
mov dword [rbx + 8], r11d
movsxd rax, dword [rbx + 8]
xor edi, edi
lea esi, [rax + 0xf]
mov rbp, rax
cmp esi, dword [rbx + 0xc]
jl 0x14000653e
mov edx, esi
mov rcx, rbx
call fcn.1400011b8
mov rax, qword [rbx]
mov r8d, edi
mov rdx, r12
lea rcx, [rax + rbp*2]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, qword [rbx]
xor ecx, ecx
xor r11d, r11d
cmp word [rdx], cx
je 0x140006573
mov rax, rdx
add rax, 2
add r11d, 1
add rcx, 1
cmp word [rax], 0
jne 0x140006561
and word [rdx + rcx*2], 0
mov rcx, qword [rbx]
mov dword [rbx + 8], r11d
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140006595
add edi, 1
cmp edi, 0xfff
jl 0x14000652f
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop r12
ret

Function at 0x1400065b4
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor edi, edi
cmp dword [0x14002669c], edi
jle 0x14000665f
xor ebx, ebx
mov rax, qword [0x1400266a0]
lea rcx, [rsp + 0x20]
mov rsi, qword [rbx + rax]
and qword [rsp + 0x20], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x2c], 0
mov edx, dword [rsi + 0x18]
call fcn.1400011b8
mov r11, qword [rsi + 0x10]
mov rcx, qword [rsp + 0x20]
movzx eax, word [r11]
add r11, 2
mov word [rcx], ax
add rcx, 2
test ax, ax
jne 0x140006604
mov eax, dword [rsi + 0x18]
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x28], eax
call fcn.140005fac
mov r11, qword [0x1400266a0]
mov rcx, qword [rbx + r11]
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
add edi, 1
add rbx, 8
cmp edi, dword [0x14002669c]
jl 0x1400065d3
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140007280
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xb0
and qword [rsp + 0x20], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x2c], 0
mov rdi, rcx
mov ebp, edx
mov esi, 3
lea rcx, [rsp + 0x20]
mov edx, esi
mov rbx, r8
call fcn.1400011b8
and qword [rsp + 0x30], 0
and dword [rsp + 0x38], 0
and dword [rsp + 0x3c], 0
lea rcx, [rsp + 0x30]
mov edx, esi
call fcn.1400011b8
mov esi, 0x70
lea rcx, [rsp + 0x40]
mov r8, rsi
xor edx, edx
call sub.msvcrt.dll_memset
mov qword [rsp + 0x68], rbx
lea ebx, [rsi - 0x6f]
test bl, bpl
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x44], 0x740
mov dword [rsp + 0x70], ebx
je 0x14000731a
and dword [rsp + 0x70], 0
mov dword [rsp + 0x44], 0x8740
lea rax, str.runas
test bpl, 2
lea rdx, [rsp + 0x20]
cmove rax, qword [rsp + 0x50]
mov rcx, rdi
mov qword [rsp + 0x50], rax
call fcn.140006bc0
lea rcx, [rsp + 0x30]
mov rdx, rax
call fcn.140001424
cmp dword [rsp + 0x28], 0
jne 0x140007362
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rsp + 0x20]
jmp 0x1400073b9
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x30]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rsi
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x1400073ac
bt ebp, 0x10
jb 0x14000739c
mov rcx, qword [rsp + 0xa8]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400073ae
xor ebx, ebx
mov rcx, rsi
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, rdi
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
lea r11, [rsp + 0xb0]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140007824
Capabilities:
Create process on windows
Get disk information
Self delete
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x70
mov rdi, rcx
mov rcx, qword [rcx]
cmp word [rcx + 2], 0x3a
jne 0x140007a4a
cmp word [rcx + 4], 0x5c
je 0x140007856
cmp word [rcx + 4], 0x2f
jne 0x140007a4a
movzx eax, word [rcx]
and word [rsp + 0x8e], 0
lea rcx, [rsp + 0x88]
mov word [rsp + 0x88], ax
mov word [rsp + 0x8a], 0x3a
mov word [rsp + 0x8c], 0x5c
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x140007a47
lea rdx, str.7ZSfx_03x.cmd
lea rcx, [rsp + 0x50]
call fcn.140006478
and qword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rbp, rax
je 0x140007a3d
and qword [rsp + 0x40], 0
and dword [rsp + 0x48], 0
and dword [rsp + 0x4c], 0
lea rcx, [rsp + 0x40]
mov edx, 3
call fcn.1400011b8
lea rdx, str.:Repeat_r_n
lea rcx, [rsp + 0x40]
call fcn.140001424
lea rdx, str.del__
lea rcx, [rsp + 0x40]
call fcn.1400031ac
lea rcx, [rsp + 0x40]
mov rdx, rdi
call fcn.140001490
lea rdx, [0x140022010]
lea rcx, [rsp + 0x40]
call fcn.1400031ac
lea rdx, str.if_exist__
lea rcx, [rsp + 0x40]
call fcn.1400031ac
lea rcx, [rsp + 0x40]
mov rdx, rdi
call fcn.140001490
lea rdx, str.__goto_Repeat_r_n
lea rcx, [rsp + 0x40]
call fcn.1400031ac
lea rdx, str.del__
lea rcx, [rsp + 0x40]
call fcn.1400031ac
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x40]
call fcn.140001490
lea rdx, [0x140022010]
lea rcx, [rsp + 0x40]
call fcn.1400031ac
mov ebx, dword [rsp + 0x48]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
mov r8d, 1
call fcn.140003720
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov rdx, qword [rax]
mov r8d, ebx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140007a29
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x80], eax
jne 0x140007a29
mov rcx, qword [rdi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
and dword [rsp + 0x28], 0
mov r8, qword [rsp + 0x50]
and qword [rsp + 0x20], 0
lea rdx, str.open
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x140007a33
mov rcx, qword [rsp + 0x50]
call fcn.140003fd0
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rsp + 0x50]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rdi]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000a410
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x40]
mov r9, r8
mov rbx, rcx
mov r8, rdx
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov rcx, rax
mov qword [rbx], rax
call fcn.14000a37c
add rsp, 0x30
pop rbx
ret
Function at 0x14000cc64
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x510
mov rdi, rcx
mov rcx, qword [rcx + 8]
mov edx, 0x4b6
call qword [sym.imp.USER32.dll_GetDlgItem]
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.1400025e4
mov r11d, dword [rsp + 0x3c]
mov ebx, 1
sub r11d, dword [rsp + 0x34]
mov r8d, ebx
mov edx, 0x4b6
add r11d, 2
mov rcx, rdi
mov dword [rdi + 0x80], r11d
call fcn.14000a8c4
mov r8d, ebx
mov ebx, 0x4b7
mov rcx, rdi
mov edx, ebx
call fcn.14000a8c4
lea rcx, [rsp + 0x40]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, [rsp + 0x250]
lea rcx, [rsp + 0x40]
mov r9d, 0x2b8
xor edx, edx
mov dword [rsp + 0x20], 0x103
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov r11, qword [rsp + 0x250]
mov rcx, qword [rdi + 8]
mov edx, ebx
mov qword [rdi + 0x70], r11
call qword [sym.imp.USER32.dll_GetDlgItem]
lea r8, [0x14000b190]
mov edx, 0xfffffffc
mov rcx, rax
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov rcx, rdi
mov qword [rdi + 0x78], rax
call fcn.14000c7e4
mov rcx, rdi
mov ebx, eax
call fcn.14000b650
mov eax, ebx
mov rbx, qword [rsp + 0x520]
add rsp, 0x510
pop rdi
ret
Function at 0x14000e8f0
Capabilities:
Hash data using sha256

Disassembly:
mov dword [rcx], 0x6a09e667
mov dword [rcx + 4], 0xbb67ae85
mov dword [rcx + 8], 0x3c6ef372
mov dword [rcx + 0xc], 0xa54ff53a
mov dword [rcx + 0x10], 0x510e527f
mov dword [rcx + 0x14], 0x9b05688c
mov dword [rcx + 0x18], 0x1f83d9ab
mov dword [rcx + 0x1c], 0x5be0cd19
mov qword [rcx + 0x20], 0
ret
Function at 0x140010510
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 8], rcx
push rsi
push r14
push r15
sub rsp, 0x20
mov r10d, dword [r9]
xor r15d, r15d
mov esi, r8d
and r10d, 7
cmp rdx, 5
mov r14, rcx
mov r11, r15
jae 0x140010548
xor eax, eax
add rsp, 0x20
pop r15
pop r14
pop rsi
ret
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x10], rdi
mov qword [rsp + 8], r12
add esi, 5
mov qword [rsp], r13
mov r13d, dword [rsp + 0x60]
or r12, 0xffffffffffffffff
lea rdi, [rcx + rdx - 4]
lea r9, [0x140000000]
nop
nop
lea r8, [r11 + r14]
cmp r8, rdi
jae 0x1400105a3
nop
nop
movzx eax, byte [r8]
and al, 0xfe
cmp al, 0xe8
je 0x1400105a3
add r8, 1
cmp r8, rdi
jb 0x140010590
mov r11, r8
sub r11, r14
cmp r8, rdi
jae 0x1400106f1
mov rax, r11
sub rax, r12
cmp rax, 3
jbe 0x1400105e2
mov r10d, r15d
movzx eax, byte [r8 + 4]
mov r12, r11
test al, al
je 0x14001062a
cmp al, 0xff
je 0x14001062a
and r10d, 3
add r10d, r10d
or r10d, 1
add r11, 1
jmp 0x140010580
lea ecx, [rax - 1]
shl r10d, cl
and r10d, 7
je 0x1400105c1
movzx eax, byte [r10 + r9 + 0x22818]
mov rcx, r8
sub rcx, rax
cmp byte [r10 + r9 + 0x22810], r15b
movzx eax, byte [rcx + 4]
je 0x140010613
test al, al
je 0x140010613
cmp al, 0xff
jne 0x1400105c1
and r10d, 3
mov r12, r11
add r10d, r10d
or r10d, 1
add r11, 1
jmp 0x140010580
movzx r9d, al
movzx eax, byte [r8 + 3]
movsxd rbp, r10d
shl r9d, 8
lea r14, [0x140000000]
or r9d, eax
movzx eax, byte [r8 + 2]
shl r9d, 8
or r9d, eax
movzx eax, byte [r8 + 1]
shl r9d, 8
or r9d, eax
nop
test r13d, r13d
je 0x14001066d
lea edx, [r11 + r9]
add edx, esi
jmp 0x140010675
mov edx, r9d
sub edx, r11d
sub edx, esi
test r10d, r10d
je 0x1400106b7
movzx ebx, byte [r14 + rbp + 0x22818]
mov ecx, 0x18
mov r9d, edx
shl ebx, 3
sub ecx, ebx
shr r9d, cl
test r9b, r9b
je 0x14001069e
cmp r9b, 0xff
jne 0x1400106b7
mov ecx, 0x20
mov r9d, 1
sub ecx, ebx
shl r9d, cl
sub r9d, 1
xor r9d, edx
jmp 0x140010660
mov r14, qword [rsp + 0x40]
mov eax, edx
mov byte [r8 + 1], dl
shr eax, 0x18
lea r9, [0x140000000]
and al, 1
sub al, 1
not al
mov byte [r8 + 4], al
mov eax, edx
shr eax, 0x10
mov byte [r8 + 3], al
mov eax, edx
shr eax, 8
add r11, 5
mov byte [r8 + 2], al
jmp 0x140010580
mov r13, qword [rsp]
mov rdi, qword [rsp + 0x10]
mov rbp, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x48]
mov rax, r11
sub rax, r12
mov r12, qword [rsp + 8]
cmp rax, 3
ja 0x140010722
lea ecx, [rax - 1]
shl r10d, cl
and r10d, 7
mov r15d, r10d
mov rax, qword [rsp + 0x58]
mov dword [rax], r15d
mov rax, r11
add rsp, 0x20
pop r15
pop r14
pop rsi
ret

Function at 0x1400143b4
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [rcx]
mov rdi, rdx
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov ebx, eax
jne 0x1400143e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400143e4
xor al, al
jmp 0x1400143f7
mov ecx, dword [rsp + 0x40]
mov rax, rbx
mov al, 1
shl rcx, 0x20
add rcx, rbx
mov qword [rdi], rcx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14001450c
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
and dword [rsp + 0x58], 0
and qword [rsp + 0x20], 0
mov rbx, r9
lea r9, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x58]
test eax, eax
mov dword [rbx], ecx
setne al
add rsp, 0x30
pop rbx
ret
mov eax, dword [0x140026bf0]
cmp r8d, eax
cmova r8d, eax
jmp 0x14001450c

Function at 0x140014540
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
and dword [rsp + 0x58], 0
and qword [rsp + 0x20], 0
mov rbx, r9
lea r9, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x58]
test eax, eax
mov dword [rbx], ecx
setne al
add rsp, 0x30
pop rbx
ret
mov eax, dword [0x140026bf0]
cmp r8d, eax
cmova r8d, eax
jmp 0x14001450c

Function at 0x1400145a8
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x140026bf0]
mov rcx, qword [rcx]
mov rbx, r9
cmp r8d, eax
lea r9, [rsp + 0x50]
cmova r8d, eax
and dword [rsp + 0x50], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [rsp + 0x50]
test eax, eax
mov dword [rbx], ecx
setne al
add rsp, 0x30
pop rbx
ret

Function at 0x1400145e8
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.140014404
xor ebx, ebx
cmp al, bl
jne 0x140014614
xor al, al
jmp 0x140014629
cmp qword [rsp + 0x40], rdi
jne 0x140014610
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, ebx
setne al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14001ec80
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x28
lea r10, [0x140029240]
xor edx, edx
mov r8, r10
mov ecx, edx
mov eax, edx
add edx, 1
shr eax, 1
and ecx, 1
add r8, 4
sub ecx, 1
not ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
xor eax, ecx
cmp edx, 0x100
mov dword [r8 - 4], eax
jb 0x14001ec90
mov eax, 0x800
movsxd rcx, edx
cmp edx, eax
jae 0x14001ed81
sub eax, edx
lea r8, [r10 + rcx*4]
mov r9d, eax
nop
nop
mov edx, dword [r8 - 0x400]
add r8, 4
movzx ecx, dl
shr edx, 8
mov eax, dword [r10 + rcx*4]
xor eax, edx
sub r9, 1
mov dword [r8 - 4], eax
jne 0x14001ed60
lea rax, [0x14001efe0]
mov qword [0x1400291f8], rax
call fcn.14001edc0
mov rcx, qword [0x1400291f8]
lea rdx, [0x14001eef0]
test eax, eax
cmove rcx, rdx
mov qword [0x1400291f8], rcx
add rsp, 0x28
ret