joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400051c0
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.1400194f8
mov edx, 2
mov rcx, rdi
call fcn.140005090
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 0x14000524b
lea ebx, [rax + 1]
mov rcx, rdi
mov edx, ebx
call fcn.140005090
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 0x140005243
mov rcx, r11
add rcx, 2
inc eax
cmp word [rcx], r13w
jne 0x140005237
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.140005090
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 0x14000528d
inc rax
inc ecx
cmp word [r11 + rax*2], r13w
jne 0x140005281
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 0x1400052ad
inc ebx
cmp ebx, 0xfff
jl 0x140005258
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 0x1400054ac
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.1400194f8
mov rbx, qword [rsi]
lea rcx, [rsp + 0x20]
mov edx, 1
call fcn.140005090
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
xor ebp, ebp
test eax, eax
je 0x14000554c
mov rdi, qword [rsi]
lea ebx, [rax + 1]
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.140005090
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 0x140005533
mov rax, rcx
add rax, 2
inc r11d
cmp word [rax], bp
jne 0x140005527
mov eax, r11d
mov dword [rsp + 0x28], r11d
lea rdx, [rsp + 0x20]
mov word [rcx + rax*2], bp
mov rcx, rsi
call fcn.140019658
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 0x140005800
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.140019530
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.140005090
xor r15d, r15d
cmp word [r13 + r12*2 - 2], 0x5c
mov rdi, rax
lea ebx, [r15 + 1]
je 0x14000585d
cmp word [r13 + r12*2 - 2], 0x2f
jne 0x140005866
mov word [rax + r12*2 - 2], r15w
sub r12d, ebx
movsxd r14, r12d
mov ebp, r12d
mov rcx, rax
mov rsi, r14
jmp 0x140005897
cmp word [rdi + rsi*2], 0x2f
je 0x14000588b
cmp word [rdi + rsi*2], 0x5c
je 0x14000588b
sub ebp, ebx
sub rsi, rbx
test ebp, ebp
jg 0x140005874
test ebp, ebp
je 0x1400058e5
mov word [rdi + rsi*2], r15w
mov rcx, rdi
call fcn.1400038e0
test eax, eax
je 0x140005887
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 0x1400058cd
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.140005424
test eax, eax
jne 0x14000598c
mov rcx, rdi
call fcn.1400038e0
test eax, eax
je 0x14000597d
movsxd rsi, ebp
jmp 0x140005976
cmp r12d, 2
jne 0x14000590c
movzx eax, word [r13]
or ax, 0x20
cmp ax, 0x61
jb 0x14000590c
cmp ax, 0x7a
ja 0x14000590c
cmp word [r13 + 2], 0x3a
je 0x14000598f
mov r8, r13
mov edx, 0xc
mov ecx, ebx
call fcn.14000c52c
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
xor eax, eax
jmp 0x14000599b
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 0x140005957
cmp word [rdi + rsi*2], 0x5c
je 0x140005965
cmp word [rdi + rsi*2], 0x2f
je 0x140005965
add rsi, rbx
add ebp, ebx
cmp word [rdi + rsi*2], r15w
jne 0x14000594b
mov rcx, rdi
mov word [rdi + rsi*2], r15w
call fcn.1400038e0
test eax, eax
je 0x14000597d
cmp rsi, r14
jl 0x140005929
jmp 0x14000598f
mov r8, rdi
mov edx, 0xc
mov ecx, ebx
call fcn.14000c52c
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 0x140005dc8
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.1400194f8
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
xor r12d, r12d
mov esi, eax
test eax, eax
jle 0x140005e24
lea edx, [rsi + 1]
mov rcx, rdi
call fcn.140005090
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 0x14000609c
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.1400194f8
lea edx, [rdi + 2]
mov rcx, rbp
call fcn.140005090
lea edx, [rdi + 2]
mov rcx, rbp
call fcn.140005090
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 0x140006115
mov rcx, r11
add rcx, 2
inc eax
cmp word [rcx], dx
jne 0x14000610a
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 0x140006ae8
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 [0x14002cb38], rax
call qword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.140023560
call fcn.1400049a8
mov ecx, 3
call fcn.140004a1c
mov ecx, 0x28
mov qword [0x14002cb40], rax
call fcn.140004a1c
mov ecx, 2
mov qword [0x14002cb18], rax
call fcn.140004a1c
mov ecx, 5
mov qword [0x14002caf0], rax
call fcn.140004a1c
mov ecx, 0x15
mov qword [0x14002caf8], rax
call fcn.140004a1c
mov ecx, 0x16
mov qword [0x14002cb28], rax
call fcn.140004a1c
mov ecx, 0x17
mov qword [0x14002cb10], rax
call fcn.140004a1c
and qword [0x14002cb30], 0
and qword [0x14002cb20], 0
mov qword [0x14002cb08], 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 0x140006c1b
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.14000641c
lea rdi, str.CommonDesktop
mov esi, 5
cmp dword [rdi - 8], ebx
jne 0x140006c12
mov rcx, qword [rdi]
lea rdx, [rsp + 0x80]
xor r8d, r8d
call fcn.14000641c
add rdi, 0x10
dec rsi
jne 0x140006bfa
inc ebx
cmp ebx, 0x40
jl 0x140006ba7
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140007408
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 0x1400075ee
lea r8d, [rdx + 0x22]
cmp word [rcx + 4], r8w
je 0x140007448
cmp word [rcx + 4], 0x2f
jne 0x1400075ee
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 0x1400075eb
lea rdx, str.7ZSfx_03x.cmd
lea rcx, [rbp - 0x20]
call fcn.1400051c0
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 0x1400075e2
lea rcx, [rbp - 0x30]
call fcn.1400194f8
lea rdx, str.:Repeat_r_n
lea rcx, [rbp - 0x30]
call fcn.1400195c8
lea rdx, str.del__
lea rcx, [rbp - 0x30]
call fcn.1400196dc
lea rcx, [rbp - 0x30]
mov rdx, rdi
call fcn.140019744
lea rdx, [0x140027328]
lea rcx, [rbp - 0x30]
call fcn.1400196dc
lea rdx, str.if_exist__
lea rcx, [rbp - 0x30]
call fcn.1400196dc
lea rcx, [rbp - 0x30]
mov rdx, rdi
call fcn.140019744
lea rdx, str.__goto_Repeat_r_n
lea rcx, [rbp - 0x30]
call fcn.1400196dc
lea rdx, str.del__
lea rcx, [rbp - 0x30]
call fcn.1400196dc
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x30]
call fcn.140019744
lea rdx, [0x140027328]
lea rcx, [rbp - 0x30]
call fcn.1400196dc
mov ebx, dword [rbp - 0x28]
lea r8d, [r12 + 1]
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x10]
call fcn.140005354
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 0x1400075d0
mov eax, dword [rbp - 0x28]
cmp dword [rbp + 0x20], eax
jne 0x1400075d0
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 0x1400075d9
mov rcx, qword [rbp - 0x20]
call fcn.140003db0
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 0x140007764
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor ebx, ebx
cmp dword [0x14002cb80], ebx
jle 0x1400077ce
mov edi, ebx
mov rax, qword [0x14002cb78]
lea rcx, [rsp + 0x20]
mov rdx, qword [rdi + rax]
add rdx, 0x10
call fcn.14001958c
lea rcx, [rsp + 0x20]
call fcn.140006c7c
mov r11, qword [0x14002cb78]
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 [0x14002cb80]
jl 0x14000777a
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140008f60
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.140008ecc
add rsp, 0x30
pop rbx
ret

Function at 0x140009078
Capabilities:
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [0x14002cb88]
call qword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
xor edi, edi
cmp dword [rbx + 0x10], edi
je 0x1400090d5
mov eax, dword [0x14002cb90]
cmp dword [rbx + 0x10], eax
jne 0x1400090cc
mov rax, qword [rbx + 8]
mov rdx, qword [0x14002cb88]
sub rdx, rax
movzx ecx, word [rax]
movzx r8d, word [rax + rdx]
sub ecx, r8d
jne 0x1400090c8
add rax, 2
test r8d, r8d
jne 0x1400090b2
test ecx, ecx
je 0x1400090d5
mov rcx, qword [rbx + 8]
call fcn.140003db0
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 0x14000b6b8
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 0x14000b72e
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14000b72e
mov rbx, qword [rsi + 8]
mov rdx, qword [0x14002caf0]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, rbx
call fcn.140005e44
mov ecx, 0x2d
call fcn.140004a1c
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.140005e44
jmp 0x14000b74d
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x14000a874]
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 0x14000bde8
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.140004478
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.140009b64
mov r8d, ebx
mov ebx, 0x4b7
mov rcx, rdi
mov edx, ebx
call fcn.140009b64
and qword [rsp + 0x40], 0
lea rcx, [rsp + 0x48]
xor edx, edx
mov r8d, 0x2b0
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x300]
mov edx, 0x104
call qword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x300]
mov r9d, 0x2b8
xor edx, edx
mov dword [rsp + 0x20], 0x103
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov r11, qword [rsp + 0x40]
mov rcx, qword [rdi + 8]
mov edx, ebx
mov qword [rdi + 0x70], r11
call qword [sym.imp.USER32.dll_GetDlgItem]
lea r8, [0x14000a51c]
mov edx, 0xfffffffc
mov rcx, rax
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov rcx, rdi
mov qword [rdi + 0x78], rax
call fcn.14000b970
mov rcx, rdi
mov ebx, eax
call fcn.14000ac6c
mov eax, ebx
mov rbx, qword [rsp + 0x520]
add rsp, 0x510
pop rdi
ret
Function at 0x14000fc70
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 0x14000fcaa
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 0x14000fce1
nop dword [rax]
movzx eax, byte [rdx]
and al, 0xfe
cmp al, 0xe8
je 0x14000fce1
inc rdx
cmp rdx, r9
jb 0x14000fcd0
mov rax, rdx
sub rax, r11
mov r11, rdx
sub r11, rdi
sub rax, rdi
cmp rdx, r9
jae 0x14000fddc
cmp rax, 2
jbe 0x14000fd42
mov r10d, esi
movzx r8d, byte [rdx + 4]
lea eax, [r8 + 1]
test al, 0xfe
jne 0x14000fd6a
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 0x14000fd79
add r8d, ebx
jmp 0x14000fd7c
mov ecx, eax
shr r10d, cl
test r10d, r10d
je 0x14000fd02
cmp r10d, 4
ja 0x14000fd6a
cmp r10d, 3
je 0x14000fd6a
mov eax, r10d
shr eax, 1
inc eax
movzx ecx, byte [rax + rdx]
inc ecx
test cl, 0xfe
jne 0x14000fd02
or r10d, 8
shr r10d, 1
inc r11
jmp 0x14000fcc0
sub r8d, ebx
test r10d, r10d
je 0x14000fdb2
and r10d, 6
mov eax, r8d
shl r10d, 2
mov ecx, r10d
shr eax, cl
inc eax
test al, 0xfe
jne 0x14000fdaf
mov eax, 0x100
shl eax, cl
dec eax
xor r8d, eax
test ebp, ebp
je 0x14000fdac
add r8d, ebx
jmp 0x14000fdaf
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 0x14000fcc0
mov rbp, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x18]
cmp rax, 2
ja 0x14000fdf4
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 0x1400187f4
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 0x140018824
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x140018824
xor al, al
jmp 0x140018837
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 0x1400188ac
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 [0x14002c9c0]
cmp r8d, eax
cmova r8d, eax
jmp 0x1400188ac
Function at 0x1400188e0
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 [0x14002c9c0]
cmp r8d, eax
cmova r8d, eax
jmp 0x1400188ac

Function at 0x140018914
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x14002c9c0]
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 0x1400189c4
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.140018844
test al, al
jne 0x1400189ee
xor al, al
jmp 0x140018a03
cmp qword [rsp + 0x40], rdi
jne 0x1400189ea
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 0x140023560
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
lea r10, [0x14002f280]
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 0x140023572
mov eax, 0x800
movsxd rcx, edx
cmp edx, eax
jae 0x140023660
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 0x140023640
lea rax, [0x1400239c0]
lea rbx, [0x1400238d0]
mov qword [0x14002f278], rax
mov qword [0x140031280], rax
mov qword [0x14002f270], rbx
call fcn.140023790
mov rcx, qword [0x140031280]
test eax, eax
cmove rcx, rbx
mov qword [0x140031280], rcx
add rsp, 0x20
pop rbx
ret
Function at 0x140023fa8
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 [0x140031290], rdi
je 0x140024001
cmp rax, rdi
jne 0x140023ff4
mov esi, 1
jmp 0x140024001
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x140023fdb
mov eax, dword [0x140031288]
cmp eax, 1
jne 0x140024016
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x14002407b
mov eax, dword [0x140031288]
test eax, eax
jne 0x140024071
mov dword [0x140031288], 1
lea r12, [0x140025890]
lea rdi, [0x140025878]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
cmp rdi, r12
jae 0x140024063
test eax, eax
jne 0x140024063
mov rcx, qword [rdi]
test rcx, rcx
je 0x140024058
call rcx
mov dword [rsp + 0x30], eax
add rdi, 8
mov qword [rsp + 0x38], rdi
jmp 0x140024041
test eax, eax
je 0x14002407b
mov eax, 0xff
jmp 0x1400241c5
mov dword [0x14002f25c], 1
mov eax, dword [0x140031288]
cmp eax, 1
jne 0x1400240a3
lea rdx, [0x140025870]
lea rcx, [0x140025770]
call sub.msvcrt.dll__initterm
mov dword [0x140031288], 2
test esi, esi
jne 0x1400240b0
xor eax, eax
xchg qword [0x140031290], rax
cmp qword [0x140031298], 0
je 0x1400240d9
lea rcx, [0x140031298]
call fcn.1400243b8
test eax, eax
je 0x1400240d9
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x140031298]
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 0x140024164
cmp byte [rdi], 0
je 0x1400240fa
test esi, esi
jne 0x140024164
cmp byte [rdi], 0
je 0x14002410e
cmp byte [rdi], 0x20
ja 0x14002410e
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x1400240fa
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.140008eac
mov dword [0x14002f258], eax
cmp dword [0x14002f23c], 0
jne 0x14002414d
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14002f25c], 0
jne 0x140024162
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14002f258]
jmp 0x1400241c5
cmp byte [rdi], 0x22
jne 0x140024176
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 0x14002418b
inc rdi
mov qword [rsp + 0x28], rdi
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x1400240ec
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.1400244a8
add rsp, 0x28
jmp 0x140023fa8
Function at 0x140007420
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x28
test rdx, rdx
je 0x140007435
mov r8d, r8d
add rsp, 0x28
jmp fcn.140006b40
test r8d, r8d
jne 0x14000743f
call fcn.140006ad0
xor eax, eax
add rsp, 0x28
ret