joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400051b0
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.140019458
mov edx, 2
mov rcx, rdi
call fcn.140005080
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 0x14000523b
lea ebx, [rax + 1]
mov rcx, rdi
mov edx, ebx
call fcn.140005080
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 0x140005233
mov rcx, r11
add rcx, 2
inc eax
cmp word [rcx], r13w
jne 0x140005227
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.140005080
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 0x14000527d
inc rax
inc ecx
cmp word [r11 + rax*2], r13w
jne 0x140005271
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 0x14000529d
inc ebx
cmp ebx, 0xfff
jl 0x140005248
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 0x14000549c
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.140019458
mov rbx, qword [rsi]
lea rcx, [rsp + 0x20]
mov edx, 1
call fcn.140005080
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ebp, ebp
test eax, eax
je 0x14000553c
mov rdi, qword [rsi]
lea ebx, [rax + 1]
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.140005080
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 0x140005523
mov rax, rcx
add rax, 2
inc r11d
cmp word [rax], bp
jne 0x140005517
mov eax, r11d
mov dword [rsp + 0x28], r11d
lea rdx, [rsp + 0x20]
mov word [rcx + rax*2], bp
mov rcx, rsi
call fcn.1400195b8
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 0x1400057f0
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.140019490
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.140005080
xor r15d, r15d
cmp word [r13 + r12*2 - 2], 0x5c
mov rdi, rax
lea ebx, [r15 + 1]
je 0x14000584d
cmp word [r13 + r12*2 - 2], 0x2f
jne 0x140005856
mov word [rax + r12*2 - 2], r15w
sub r12d, ebx
movsxd r14, r12d
mov ebp, r12d
mov rcx, rax
mov rsi, r14
jmp 0x140005887
cmp word [rdi + rsi*2], 0x2f
je 0x14000587b
cmp word [rdi + rsi*2], 0x5c
je 0x14000587b
sub ebp, ebx
sub rsi, rbx
test ebp, ebp
jg 0x140005864
test ebp, ebp
je 0x1400058d5
mov word [rdi + rsi*2], r15w
mov rcx, rdi
call fcn.1400038d0
test eax, eax
je 0x140005877
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 0x1400058bd
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.140005414
test eax, eax
jne 0x14000597c
mov rcx, rdi
call fcn.1400038d0
test eax, eax
je 0x14000596d
movsxd rsi, ebp
jmp 0x140005966
cmp r12d, 2
jne 0x1400058fc
movzx eax, word [r13]
or ax, 0x20
cmp ax, 0x61
jb 0x1400058fc
cmp ax, 0x7a
ja 0x1400058fc
cmp word [r13 + 2], 0x3a
je 0x14000597f
mov r8, r13
mov edx, 0xc
mov ecx, ebx
call fcn.14000c420
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
xor eax, eax
jmp 0x14000598b
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 0x140005947
cmp word [rdi + rsi*2], 0x5c
je 0x140005955
cmp word [rdi + rsi*2], 0x2f
je 0x140005955
add rsi, rbx
add ebp, ebx
cmp word [rdi + rsi*2], r15w
jne 0x14000593b
mov rcx, rdi
mov word [rdi + rsi*2], r15w
call fcn.1400038d0
test eax, eax
je 0x14000596d
cmp rsi, r14
jl 0x140005919
jmp 0x14000597f
mov r8, rdi
mov edx, 0xc
mov ecx, ebx
call fcn.14000c420
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 0x140005db8
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.140019458
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
xor r12d, r12d
mov esi, eax
test eax, eax
jle 0x140005e14
lea edx, [rsi + 1]
mov rcx, rdi
call fcn.140005080
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 0x14000608c
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.140019458
lea edx, [rdi + 2]
mov rcx, rbp
call fcn.140005080
lea edx, [rdi + 2]
mov rcx, rbp
call fcn.140005080
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 0x140006105
mov rcx, r11
add rcx, 2
inc eax
cmp word [rcx], dx
jne 0x1400060fa
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 0x140006ad8
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.140023480
call fcn.140004998
mov ecx, 3
call fcn.140004a0c
mov ecx, 0x28
mov qword [0x14002cb40], rax
call fcn.140004a0c
mov ecx, 2
mov qword [0x14002cb18], rax
call fcn.140004a0c
mov ecx, 5
mov qword [0x14002caf0], rax
call fcn.140004a0c
mov ecx, 0x15
mov qword [0x14002caf8], rax
call fcn.140004a0c
mov ecx, 0x16
mov qword [0x14002cb28], rax
call fcn.140004a0c
mov ecx, 0x17
mov qword [0x14002cb10], rax
call fcn.140004a0c
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 0x140006c0b
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.14000640c
lea rdi, str.CommonDesktop
mov esi, 5
cmp dword [rdi - 8], ebx
jne 0x140006c02
mov rcx, qword [rdi]
lea rdx, [rsp + 0x80]
xor r8d, r8d
call fcn.14000640c
add rdi, 0x10
dec rsi
jne 0x140006bea
inc ebx
cmp ebx, 0x40
jl 0x140006b97
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140006c28
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.14000549c
lea rdx, [0x14002cb88]
mov rcx, rbx
call fcn.140003ff0
lea rdx, [0x14002cba8]
mov rcx, rbx
call fcn.1400040dc
mov rcx, rbx
call fcn.1400041c8
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14000549c

Function at 0x140006c6c
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.14000549c
lea rdx, [0x14002cce0]
mov rcx, rbx
call fcn.140003f04
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140006c28
Function at 0x140007428
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 0x14000760e
lea r8d, [rdx + 0x22]
cmp word [rcx + 4], r8w
je 0x140007468
cmp word [rcx + 4], 0x2f
jne 0x14000760e
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 0x14000760b
lea rdx, str.7ZSfx_03x.cmd
lea rcx, [rbp - 0x20]
call fcn.1400051b0
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 0x140007602
lea rcx, [rbp - 0x30]
call fcn.140019458
lea rdx, str.:Repeat_r_n
lea rcx, [rbp - 0x30]
call fcn.140019528
lea rdx, str.del__
lea rcx, [rbp - 0x30]
call fcn.14001963c
lea rcx, [rbp - 0x30]
mov rdx, rdi
call fcn.1400196a4
lea rdx, [0x140027318]
lea rcx, [rbp - 0x30]
call fcn.14001963c
lea rdx, str.if_exist__
lea rcx, [rbp - 0x30]
call fcn.14001963c
lea rcx, [rbp - 0x30]
mov rdx, rdi
call fcn.1400196a4
lea rdx, str.__goto_Repeat_r_n
lea rcx, [rbp - 0x30]
call fcn.14001963c
lea rdx, str.del__
lea rcx, [rbp - 0x30]
call fcn.14001963c
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x30]
call fcn.1400196a4
lea rdx, [0x140027318]
lea rcx, [rbp - 0x30]
call fcn.14001963c
mov ebx, dword [rbp - 0x28]
lea r8d, [r12 + 1]
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x10]
call fcn.140005344
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 0x1400075f0
mov eax, dword [rbp - 0x28]
cmp dword [rbp + 0x20], eax
jne 0x1400075f0
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 0x1400075f9
mov rcx, qword [rbp - 0x20]
call fcn.140003da0
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 0x140007784
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor ebx, ebx
cmp dword [0x14002cb80], ebx
jle 0x1400077ee
mov edi, ebx
mov rax, qword [0x14002cb78]
lea rcx, [rsp + 0x20]
mov rdx, qword [rdi + rax]
add rdx, 0x10
call fcn.1400194ec
lea rcx, [rsp + 0x20]
call fcn.140006c6c
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 0x14000779a
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140008e54
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.140008dc0
add rsp, 0x30
pop rbx
ret

Function at 0x140008f6c
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 0x140008fc9
mov eax, dword [0x14002cb90]
cmp dword [rbx + 0x10], eax
jne 0x140008fc0
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 0x140008fbc
add rax, 2
test r8d, r8d
jne 0x140008fa6
test ecx, ecx
je 0x140008fc9
mov rcx, qword [rbx + 8]
call fcn.140003da0
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 0x14000b5ac
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 0x14000b622
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14000b622
mov rbx, qword [rsi + 8]
mov rdx, qword [0x14002caf0]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, rbx
call fcn.140005e34
mov ecx, 0x2d
call fcn.140004a0c
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.140005e34
jmp 0x14000b641
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x14000a768]
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 0x14000bcdc
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.140004468
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.140009a58
mov r8d, ebx
mov ebx, 0x4b7
mov rcx, rdi
mov edx, ebx
call fcn.140009a58
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, [0x14000a410]
mov edx, 0xfffffffc
mov rcx, rax
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov rcx, rdi
mov qword [rdi + 0x78], rax
call fcn.14000b864
mov rcx, rdi
mov ebx, eax
call fcn.14000ab60
mov eax, ebx
mov rbx, qword [rsp + 0x520]
add rsp, 0x510
pop rdi
ret
Function at 0x14000fb30
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 0x14000fb6a
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 0x14000fba1
nop dword [rax]
movzx eax, byte [rdx]
and al, 0xfe
cmp al, 0xe8
je 0x14000fba1
inc rdx
cmp rdx, r9
jb 0x14000fb90
mov rax, rdx
sub rax, r11
mov r11, rdx
sub r11, rdi
sub rax, rdi
cmp rdx, r9
jae 0x14000fc9c
cmp rax, 2
jbe 0x14000fc02
mov r10d, esi
movzx r8d, byte [rdx + 4]
lea eax, [r8 + 1]
test al, 0xfe
jne 0x14000fc2a
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 0x14000fc39
add r8d, ebx
jmp 0x14000fc3c
mov ecx, eax
shr r10d, cl
test r10d, r10d
je 0x14000fbc2
cmp r10d, 4
ja 0x14000fc2a
cmp r10d, 3
je 0x14000fc2a
mov eax, r10d
shr eax, 1
inc eax
movzx ecx, byte [rax + rdx]
inc ecx
test cl, 0xfe
jne 0x14000fbc2
or r10d, 8
shr r10d, 1
inc r11
jmp 0x14000fb80
sub r8d, ebx
test r10d, r10d
je 0x14000fc72
and r10d, 6
mov eax, r8d
shl r10d, 2
mov ecx, r10d
shr eax, cl
inc eax
test al, 0xfe
jne 0x14000fc6f
mov eax, 0x100
shl eax, cl
dec eax
xor r8d, eax
test ebp, ebp
je 0x14000fc6c
add r8d, ebx
jmp 0x14000fc6f
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 0x14000fb80
mov rbp, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x18]
cmp rax, 2
ja 0x14000fcb4
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 0x140018754
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 0x140018784
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140018784
xor al, al
jmp 0x140018797
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 0x14001880c
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 0x14001880c
Function at 0x140018840
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 0x14001880c

Function at 0x140018874
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 0x140018924
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.1400187a4
test al, al
jne 0x14001894e
xor al, al
jmp 0x140018963
cmp qword [rsp + 0x40], rdi
jne 0x14001894a
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 0x140023480
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
lea r10, [0x14002f260]
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 0x140023492
mov eax, 0x800
movsxd rcx, edx
cmp edx, eax
jae 0x140023580
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 0x140023560
lea rax, [0x1400238e0]
lea rbx, [0x1400237f0]
mov qword [0x14002f250], rax
mov qword [0x140031260], rax
mov qword [0x14002f248], rbx
call fcn.1400236b0
mov rcx, qword [0x140031260]
test eax, eax
cmove rcx, rbx
mov qword [0x140031260], rcx
add rsp, 0x20
pop rbx
ret
Function at 0x140023e70
Capabilities:
Parse pe header
Terminate process

Disassembly:
mov rax, rsp
sub rsp, 0xc8
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
nop
cmp word [0x140000000], 0x5a4d
je 0x140023ead
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
lea rdi, [0x140000000]
jmp 0x140023f3b
movsxd rax, dword [0x14000003c]
lea rdi, [0x140000000]
add rax, rdi
cmp dword [rax], 0x4550
je 0x140023ed1
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x140023f3b
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x140023f18
cmp ecx, 0x20b
je 0x140023ef0
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x140023f3b
cmp dword [rax + 0x84], 0xe
ja 0x140023f04
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x140023f3b
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
jmp 0x140023f3b
cmp dword [rax + 0x74], 0xe
ja 0x140023f29
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x140023f3b
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
mov ecx, 2
call qword [sym.imp.msvcrt.dll___set_app_type]
mov qword [0x140031268], 0xffffffffffffffff
mov qword [0x140031270], 0xffffffffffffffff
mov rcx, qword [sym.imp.msvcrt.dll__fmode]
mov eax, dword [0x14002f244]
mov dword [rcx], eax
mov rcx, qword [sym.imp.msvcrt.dll__commode]
mov eax, dword [0x14002f240]
mov dword [rcx], eax
call fcn.140024290
cmp dword [0x14002ca80], 0
jne 0x140023f95
lea rcx, [fcn.140024290]
call qword [sym.imp.msvcrt.dll___setusermatherr]
lea rdx, [0x140025850]
lea rcx, [0x140025848]
call sub.msvcrt.dll__initterm
mov r11d, dword [0x14002f23c]
mov dword [rsp + 0xd8], r11d
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x14002f238]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x3c]
call qword [sym.imp.msvcrt.dll___getmainargs]
lea rdx, [0x140025840]
lea rcx, [0x140025748]
call sub.msvcrt.dll__initterm
mov r11, qword [sym.imp.msvcrt.dll__acmdln]
mov r8, qword [r11]
mov qword [rsp + 0x30], r8
cmp byte [r8], 0x22
jne 0x140024036
nop
nop
inc r8
mov qword [rsp + 0x30], r8
movzx eax, byte [r8]
test al, al
je 0x140024026
cmp al, 0x22
je 0x140024026
jmp 0x140024010
cmp byte [r8], 0x22
jne 0x140024046
inc r8
mov qword [rsp + 0x30], r8
jmp 0x140024046
cmp byte [r8], 0x20
jbe 0x140024046
inc r8
mov qword [rsp + 0x30], r8
jmp 0x140024036
movzx eax, byte [r8]
test al, al
je 0x14002405c
cmp al, 0x20
ja 0x14002405c
inc r8
mov qword [rsp + 0x30], r8
jmp 0x140024046
test byte [rsp + 0x8c], 1
je 0x140024071
movzx r9d, word [rsp + 0x90]
jmp 0x140024077
mov r9d, 0xa
xor edx, edx
mov rcx, rdi
call fcn.140008da0
mov edi, eax
mov dword [rsp + 0x38], eax
test ebx, ebx
jne 0x140024093
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
call qword [sym.imp.msvcrt.dll__cexit]
jmp 0x1400240b7
mov eax, edi
jmp 0x1400240c0
mov rbx, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xe8]
add rsp, 0xc8
ret