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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov r12, rdx
mov rdi, rcx
call fcn.140014e5c
mov edx, 2
mov rcx, rdi
call fcn.140005114
mov ecx, 1
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov rcx, qword [rdi]
xor r13d, r13d
mov dword [rdi + 8], r13d
mov word [rcx], r13w
test eax, eax
je 0x1400052cf
lea ebx, [rax + 1]
mov rcx, rdi
mov edx, ebx
call fcn.140005114
mov ecx, ebx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov r11, qword [rdi]
mov eax, r13d
cmp word [r11], r13w
je 0x1400052c7
mov rcx, r11
add rcx, 2
inc eax
cmp word [rcx], r13w
jne 0x1400052bb
mov dword [rdi + 8], eax
mov word [r11 + rax*2], r13w
movsxd rax, dword [rdi + 8]
mov ebx, r13d
lea esi, [rax + 0xf]
mov rbp, rax
mov edx, esi
mov rcx, rdi
call fcn.140005114
mov r8d, ebx
mov rdx, r12
lea rcx, [rax + rbp*2]
call qword [sym.imp.USER32.dll_wsprintfW]
mov r11, qword [rdi]
mov ecx, r13d
mov rax, r13
cmp word [r11], r13w
je 0x140005311
inc rax
inc ecx
cmp word [r11 + rax*2], r13w
jne 0x140005305
mov dword [rdi + 8], ecx
mov word [r11 + rax*2], r13w
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140005331
inc ebx
cmp ebx, 0xfff
jl 0x1400052dc
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rax, rdi
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x140005530
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
lea rcx, [rax - 0x18]
call fcn.140014e5c
mov rbx, qword [rsi]
lea rcx, [rsp + 0x20]
mov edx, 1
call fcn.140005114
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ebp, ebp
test eax, eax
je 0x1400055d0
mov rdi, qword [rsi]
lea ebx, [rax + 1]
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.140005114
mov r8d, ebx
mov rcx, rdi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, qword [rsp + 0x20]
mov r11d, ebp
cmp word [rcx], bp
je 0x1400055b7
mov rax, rcx
add rax, 2
inc r11d
cmp word [rax], bp
jne 0x1400055ab
mov eax, r11d
mov dword [rsp + 0x28], r11d
lea rdx, [rsp + 0x20]
mov word [rcx + rax*2], bp
mov rcx, rsi
call fcn.140014fbc
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140005884
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r13, rcx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0x20]
mov rdx, r13
movsxd r12, eax
call fcn.140014e94
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.140005114
xor r15d, r15d
cmp word [r13 + r12*2 - 2], 0x5c
mov rdi, rax
lea ebx, [r15 + 1]
je 0x1400058e1
cmp word [r13 + r12*2 - 2], 0x2f
jne 0x1400058ea
mov word [rax + r12*2 - 2], r15w
sub r12d, ebx
movsxd r14, r12d
mov ebp, r12d
mov rcx, rax
mov rsi, r14
jmp 0x14000591b
cmp word [rdi + rsi*2], 0x2f
je 0x14000590f
cmp word [rdi + rsi*2], 0x5c
je 0x14000590f
sub ebp, ebx
sub rsi, rbx
test ebp, ebp
jg 0x1400058f8
test ebp, ebp
je 0x140005969
mov word [rdi + rsi*2], r15w
mov rcx, rdi
call fcn.140003964
test eax, eax
je 0x14000590b
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x140005951
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.1400054a8
test eax, eax
jne 0x140005a10
mov rcx, rdi
call fcn.140003964
test eax, eax
je 0x140005a01
movsxd rsi, ebp
jmp 0x1400059fa
cmp r12d, 2
jne 0x140005990
movzx eax, word [r13]
or ax, 0x20
cmp ax, 0x61
jb 0x140005990
cmp ax, 0x7a
ja 0x140005990
cmp word [r13 + 2], 0x3a
je 0x140005a13
mov r8, r13
mov edx, 0xc
mov ecx, ebx
call fcn.14000c484
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
xor eax, eax
jmp 0x140005a1f
mov eax, r12d
movsxd rcx, ebp
sub eax, ebp
lea rdx, [r13 + rcx*2]
lea rcx, [rdi + rcx*2]
add eax, ebx
movsxd r8, eax
call sub.msvcrt.dll_memcpy
cmp word [rdi + rsi*2], r15w
jmp 0x1400059db
cmp word [rdi + rsi*2], 0x5c
je 0x1400059e9
cmp word [rdi + rsi*2], 0x2f
je 0x1400059e9
add rsi, rbx
add ebp, ebx
cmp word [rdi + rsi*2], r15w
jne 0x1400059cf
mov rcx, rdi
mov word [rdi + rsi*2], r15w
call fcn.140003964
test eax, eax
je 0x140005a01
cmp rsi, r14
jl 0x1400059ad
jmp 0x140005a13
mov r8, rdi
mov edx, 0xc
mov ecx, ebx
call fcn.14000c484
mov ebx, r15d
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov eax, ebx
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140005e4c
Capabilities:
Get graphical window text

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
mov rbp, rdx
mov rdi, rcx
call fcn.140014e5c
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
xor r12d, r12d
mov esi, eax
test eax, eax
jle 0x140005ea8
lea edx, [rsi + 1]
mov rcx, rdi
call fcn.140005114
lea r8d, [rsi + 1]
mov rcx, rbp
mov rdx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rax, qword [rdi]
mov dword [rdi + 8], esi
mov word [rax + rsi*2], r12w
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rax, rdi
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x140006120
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 rbp, rcx
lea rdx, [rax + 8]
mov rcx, rsi
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, rbp
mov edi, eax
call fcn.140014e5c
lea edx, [rdi + 2]
mov rcx, rbp
call fcn.140005114
lea edx, [rdi + 2]
mov rcx, rbp
call fcn.140005114
lea r8d, [rdi + 1]
mov rcx, rsi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov r11, qword [rbp]
xor edx, edx
mov eax, edx
cmp word [r11], dx
je 0x140006199
mov rcx, r11
add rcx, 2
inc eax
cmp word [rcx], dx
jne 0x14000618e
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
mov dword [rbp + 8], eax
mov word [r11 + rax*2], dx
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140006b6c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x290
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x140028b38], rax
call qword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.14001eb70
call fcn.140004a2c
mov ecx, 3
call fcn.140004aa0
mov ecx, 0x28
mov qword [0x140028b40], rax
call fcn.140004aa0
mov ecx, 2
mov qword [0x140028b18], rax
call fcn.140004aa0
mov ecx, 5
mov qword [0x140028af0], rax
call fcn.140004aa0
mov ecx, 0x15
mov qword [0x140028af8], rax
call fcn.140004aa0
mov ecx, 0x16
mov qword [0x140028b28], rax
call fcn.140004aa0
mov ecx, 0x17
mov qword [0x140028b10], rax
call fcn.140004aa0
and qword [0x140028b30], 0
and qword [0x140028b20], 0
mov qword [0x140028b08], 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 0x140006c9f
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.1400064a0
lea rdi, str.CommonDesktop
mov esi, 5
cmp dword [rdi - 8], ebx
jne 0x140006c96
mov rcx, qword [rdi]
lea rdx, [rsp + 0x80]
xor r8d, r8d
call fcn.1400064a0
add rdi, 0x10
dec rsi
jne 0x140006c7e
inc ebx
cmp ebx, 0x40
jl 0x140006c2b
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140006cbc
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.140005530
lea rdx, [0x140028b88]
mov rcx, rbx
call fcn.140004084
lea rdx, [0x140028ba8]
mov rcx, rbx
call fcn.140004170
mov rcx, rbx
call fcn.14000425c
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140005530

Function at 0x140006d00
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.140005530
lea rdx, [0x140028ce0]
mov rcx, rbx
call fcn.140003f98
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140006cbc
Function at 0x14000748c
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], rsi
push rbp
push rdi
push r12
mov rbp, rsp
sub rsp, 0x70
mov rdi, rcx
mov rcx, qword [rcx]
mov edx, 0x3a
cmp word [rcx + 2], dx
jne 0x140007672
lea r8d, [rdx + 0x22]
cmp word [rcx + 4], r8w
je 0x1400074cc
cmp word [rcx + 4], 0x2f
jne 0x140007672
movzx eax, word [rcx]
lea rcx, [rbp + 0x28]
xor r12d, r12d
mov dword [rbp + 0x2a], 0x5c003a
mov word [rbp + 0x2e], r12w
mov word [rbp + 0x28], ax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x14000766f
lea rdx, str.7ZSfx_03x.cmd
lea rcx, [rbp - 0x20]
call fcn.140005244
mov rcx, qword [rbp - 0x20]
mov qword [rsp + 0x30], r12
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]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140007666
lea rcx, [rbp - 0x30]
call fcn.140014e5c
lea rdx, str.:Repeat_r_n
lea rcx, [rbp - 0x30]
call fcn.140014f2c
lea rdx, str.del__
lea rcx, [rbp - 0x30]
call fcn.140015040
lea rcx, [rbp - 0x30]
mov rdx, rdi
call fcn.1400150a8
lea rdx, [0x140023318]
lea rcx, [rbp - 0x30]
call fcn.140015040
lea rdx, str.if_exist__
lea rcx, [rbp - 0x30]
call fcn.140015040
lea rcx, [rbp - 0x30]
mov rdx, rdi
call fcn.1400150a8
lea rdx, str.__goto_Repeat_r_n
lea rcx, [rbp - 0x30]
call fcn.140015040
lea rdx, str.del__
lea rcx, [rbp - 0x30]
call fcn.140015040
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x30]
call fcn.1400150a8
lea rdx, [0x140023318]
lea rcx, [rbp - 0x30]
call fcn.140015040
mov ebx, dword [rbp - 0x28]
lea r8d, [r12 + 1]
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x10]
call fcn.1400053d8
lea r9, [rbp + 0x20]
mov r8d, ebx
mov rdx, qword [rax]
mov rcx, rsi
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbp - 0x10]
mov ebx, eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140007654
mov eax, dword [rbp - 0x28]
cmp dword [rbp + 0x20], eax
jne 0x140007654
mov rcx, qword [rdi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov r8, qword [rbp - 0x20]
lea rdx, str.open
xor r9d, r9d
xor ecx, ecx
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x14000765d
mov rcx, qword [rbp - 0x20]
call fcn.140003e34
mov rcx, qword [rbp - 0x30]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rbp - 0x20]
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 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret
Function at 0x1400077e8
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor ebx, ebx
cmp dword [0x140028b80], ebx
jle 0x140007852
mov edi, ebx
mov rax, qword [0x140028b78]
lea rcx, [rsp + 0x20]
mov rdx, qword [rdi + rax]
add rdx, 0x10
call fcn.140014ef0
lea rcx, [rsp + 0x20]
call fcn.140006d00
mov r11, qword [0x140028b78]
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rdi + r11]
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_
inc ebx
add rdi, 8
cmp ebx, dword [0x140028b80]
jl 0x1400077fe
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140008eb8
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.140008e24
add rsp, 0x30
pop rbx
ret

Function at 0x140008fd0
Capabilities:
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [0x140028b88]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor edi, edi
cmp dword [rbx + 0x10], edi
je 0x14000902d
mov eax, dword [0x140028b90]
cmp dword [rbx + 0x10], eax
jne 0x140009024
mov rax, qword [rbx + 8]
mov rdx, qword [0x140028b88]
sub rdx, rax
movzx ecx, word [rax]
movzx r8d, word [rax + rdx]
sub ecx, r8d
jne 0x140009020
add rax, 2
test r8d, r8d
jne 0x14000900a
test ecx, ecx
je 0x14000902d
mov rcx, qword [rbx + 8]
call fcn.140003e34
mov rax, qword [rbx + 8]
mov dword [rbx + 0x10], edi
mov rbx, qword [rsp + 0x30]
mov word [rax], di
mov al, 1
add rsp, 0x20
pop rdi
ret

Function at 0x14000b610
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x14000b686
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14000b686
mov rbx, qword [rsi + 8]
mov rdx, qword [0x140028af0]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, rbx
call fcn.140005ec8
mov ecx, 0x2d
call fcn.140004aa0
mov rcx, qword [rsi + 8]
mov edx, 0x4b2
mov rdi, rax
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rdx, rdi
mov rcx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, rbx
call fcn.140005ec8
jmp 0x14000b6a5
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x14000a7cc]
mov r9, rsi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14000fb50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
mov r10d, dword [r9]
xor esi, esi
mov r13, r9
and r10d, 7
mov r12d, r8d
mov rdi, rcx
mov r11d, esi
cmp rdx, 5
jae 0x14000fb8a
xor eax, eax
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
pop r13
pop r12
ret
mov qword [rsp + 0x20], rbp
mov ebp, dword [rsp + 0x38]
lea r9, [rcx + rdx - 4]
mov qword [rsp + 0x18], rbx
nop dword [rax]
lea rdx, [r11 + rdi]
cmp rdx, r9
jae 0x14000fbc1
nop dword [rax]
movzx eax, byte [rdx]
and al, 0xfe
cmp al, 0xe8
je 0x14000fbc1
inc rdx
cmp rdx, r9
jb 0x14000fbb0
mov rax, rdx
sub rax, r11
mov r11, rdx
sub r11, rdi
sub rax, rdi
cmp rdx, r9
jae 0x14000fcbc
cmp rax, 2
jbe 0x14000fc22
mov r10d, esi
movzx r8d, byte [rdx + 4]
lea eax, [r8 + 1]
test al, 0xfe
jne 0x14000fc4a
movzx eax, byte [rdx + 3]
shl r8d, 8
lea ebx, [r11 + r12 + 5]
or r8d, eax
movzx eax, byte [rdx + 2]
add r11, 5
shl r8d, 8
or r8d, eax
movzx eax, byte [rdx + 1]
shl r8d, 8
or r8d, eax
test ebp, ebp
je 0x14000fc59
add r8d, ebx
jmp 0x14000fc5c
mov ecx, eax
shr r10d, cl
test r10d, r10d
je 0x14000fbe2
cmp r10d, 4
ja 0x14000fc4a
cmp r10d, 3
je 0x14000fc4a
mov eax, r10d
shr eax, 1
inc eax
movzx ecx, byte [rax + rdx]
inc ecx
test cl, 0xfe
jne 0x14000fbe2
or r10d, 8
shr r10d, 1
inc r11
jmp 0x14000fba0
sub r8d, ebx
test r10d, r10d
je 0x14000fc92
and r10d, 6
mov eax, r8d
shl r10d, 2
mov ecx, r10d
shr eax, cl
inc eax
test al, 0xfe
jne 0x14000fc8f
mov eax, 0x100
shl eax, cl
dec eax
xor r8d, eax
test ebp, ebp
je 0x14000fc8c
add r8d, ebx
jmp 0x14000fc8f
sub r8d, ebx
mov r10d, esi
mov eax, r8d
mov byte [rdx + 1], r8b
shr eax, 8
mov byte [rdx + 2], al
mov eax, r8d
shr r8d, 0x18
shr eax, 0x10
and r8b, 1
neg r8b
mov byte [rdx + 3], al
mov byte [rdx + 4], r8b
jmp 0x14000fba0
mov rbp, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x18]
cmp rax, 2
ja 0x14000fcd4
mov ecx, eax
shr r10d, cl
mov esi, r10d
mov rdi, qword [rsp + 0x30]
mov dword [r13], esi
mov rsi, qword [rsp + 0x28]
mov rax, r11
pop r13
pop r12
ret

Function at 0x140014158
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]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140014188
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140014188
xor al, al
jmp 0x14001419b
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 0x140014210
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 [0x1400289c0]
cmp r8d, eax
cmova r8d, eax
jmp 0x140014210
Function at 0x140014244
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 [0x1400289c0]
cmp r8d, eax
cmova r8d, eax
jmp 0x140014210

Function at 0x140014278
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x1400289c0]
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 0x140014328
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.1400141a8
test al, al
jne 0x140014352
xor al, al
jmp 0x140014367
cmp qword [rsp + 0x40], rdi
jne 0x14001434e
mov rcx, qword [rsi]
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 0x14001eb70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
lea r10, [0x14002b180]
xor edx, edx
mov r8, r10
mov ecx, edx
mov eax, edx
inc edx
shr eax, 1
and ecx, 1
add r8, 4
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
dec eax
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
dec eax
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
dec eax
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
dec eax
not eax
and eax, 0xedb88320
xor eax, ecx
mov dword [r8 - 4], eax
cmp edx, 0x100
jb 0x14001eb82
mov eax, 0x800
movsxd rcx, edx
cmp edx, eax
jae 0x14001ec70
sub eax, edx
lea r8, [r10 + rcx*4]
mov r9d, eax
nop word [rax + rax]
mov edx, dword [r8 - 0x400]
add r8, 4
movzx ecx, dl
shr edx, 8
mov eax, dword [r10 + rcx*4]
xor eax, edx
dec r9
mov dword [r8 - 4], eax
jne 0x14001ec50
lea rax, [0x14001efd0]
lea rbx, [0x14001eee0]
mov qword [0x14002b168], rax
mov qword [0x14002d180], rax
mov qword [0x14002b160], rbx
call fcn.14001eda0
mov rcx, qword [0x14002d180]
test eax, eax
cmove rcx, rbx
mov qword [0x14002d180], rcx
add rsp, 0x20
pop rbx
ret
Function at 0x14001f5b8
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
push r12
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x14002d190], rdi
je 0x14001f611
cmp rax, rdi
jne 0x14001f604
mov esi, 1
jmp 0x14001f611
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001f5eb
mov eax, dword [0x14002d188]
cmp eax, 1
jne 0x14001f626
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x14001f68b
mov eax, dword [0x14002d188]
test eax, eax
jne 0x14001f681
mov dword [0x14002d188], 1
lea r12, [0x140021870]
lea rdi, [0x140021858]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
cmp rdi, r12
jae 0x14001f673
test eax, eax
jne 0x14001f673
mov rcx, qword [rdi]
test rcx, rcx
je 0x14001f668
call rcx
mov dword [rsp + 0x30], eax
add rdi, 8
mov qword [rsp + 0x38], rdi
jmp 0x14001f651
test eax, eax
je 0x14001f68b
mov eax, 0xff
jmp 0x14001f7d5
mov dword [0x14002b14c], 1
mov eax, dword [0x14002d188]
cmp eax, 1
jne 0x14001f6b3
lea rdx, [0x140021850]
lea rcx, [0x140021770]
call sub.msvcrt.dll__initterm
mov dword [0x14002d188], 2
test esi, esi
jne 0x14001f6c0
xor eax, eax
xchg qword [0x14002d190], rax
cmp qword [0x14002d198], 0
je 0x14001f6e9
lea rcx, [0x14002d198]
call fcn.14001f9c8
test eax, eax
je 0x14001f6e9
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x14002d198]
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rdi, qword [rax]
mov qword [rsp + 0x28], rdi
mov esi, dword [rsp + 0x20]
cmp byte [rdi], 0x20
ja 0x14001f774
cmp byte [rdi], 0
je 0x14001f70a
test esi, esi
jne 0x14001f774
cmp byte [rdi], 0
je 0x14001f71e
cmp byte [rdi], 0x20
ja 0x14001f71e
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x14001f70a
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rdi
xor edx, edx
lea rcx, [0x140000000]
call fcn.140008e04
mov dword [0x14002b148], eax
cmp dword [0x14002b12c], 0
jne 0x14001f75d
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14002b14c], 0
jne 0x14001f772
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14002b148]
jmp 0x14001f7d5
cmp byte [rdi], 0x22
jne 0x14001f786
xor eax, eax
test esi, esi
sete al
mov esi, eax
mov dword [rsp + 0x20], eax
movzx ecx, byte [rdi]
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x14001f79b
inc rdi
mov qword [rsp + 0x28], rdi
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x14001f6fc
lea r11, [rsp + 0xb0]
mov rsi, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r12
ret
sub rsp, 0x28
call fcn.14001fab8
add rsp, 0x28
jmp 0x14001f5b8
Function at 0x14001fa18
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x14001fa65
cmp rcx, 0xffffffffffffffff
je 0x14001fa65
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001fa5d
cmp dword [rcx + 0x3c], edx
jl 0x14001fa5d
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14001fa5d
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14001fa65
mov rax, rdx
add rsp, 0x18
ret