joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001d00
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x278
mov rbx, rcx
or rsi, 0xffffffffffffffff
nop dword [rax]
nop word [rax + rax]
add rsi, 1
cmp word [rbx + rsi*2], 0
jne 0x140001d20
lea rdx, [rbx + rsi*2]
lea r8, [0x14001a7ca]
xor ecx, ecx
nop dword [rax + rax]
mov ax, word [r8 + rcx]
mov word [rdx + rcx], ax
add rcx, 2
test ax, ax
jne 0x140001d40
mov rcx, rbx
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
mov word [rbx + rsi*2], 0
cmp rdi, 0xffffffffffffffff
je 0x140001e9c
xor r12d, r12d
lea rdx, [rsp + 0x4c]
lea r8, [0x14001a7c6]
xor ecx, ecx
mov ax, word [rdx + rcx]
cmp ax, word [r8 + rcx]
jne 0x140001d9c
add rcx, 2
test ax, ax
jne 0x140001d84
xor eax, eax
jmp 0x140001da1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x140001e4e
lea rdx, [rsp + 0x4c]
lea r8, [0x14001a7c0]
xor ecx, ecx
mov ax, word [rdx + rcx]
cmp ax, word [r8 + rcx]
jne 0x140001dcf
add rcx, 2
test ax, ax
jne 0x140001db7
xor eax, eax
jmp 0x140001dd4
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x140001e4e
lea rdx, [rbx + rsi*2]
lea r8, [rsp + 0x4c]
xor ecx, ecx
nop dword [rax]
nop word [rax + rax]
mov ax, word [r8 + rcx]
mov word [rdx + rcx], ax
add rcx, 2
test ax, ax
jne 0x140001df0
test dword [rsp + 0x20], 0x10
je 0x140001e28
mov rcx, rbx
lea rdx, [0x14001a912]
call fcn.14000e600
mov rcx, rbx
call fcn.140001d00
mov r12d, eax
jmp 0x140001e49
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140001e49
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
test r12d, r12d
jne 0x140001e76
mov rcx, rdi
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140001d76
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
cmp r12d, 0x12
jne 0x140001e76
xor r12d, r12d
mov word [rbx + rsi*2], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
test r12d, r12d
jne 0x140001e97
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x140001ea4
mov eax, r12d
jmp 0x140001ead
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140001ead
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
add rsp, 0x278
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140002730
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
mov eax, 0x1048
call fcn.14000cd90
sub rsp, rax
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
mov dword [rsi], 0
mov qword [rbx], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
lea rcx, [0x140023320]
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp r12, 0xffffffffffffffff
je 0x140002908
mov qword [rsp + 0x20], 0
mov rcx, r12
lea rdx, [rsp + 0x40]
mov r8d, 0x1000
lea r9, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000290c
cmp word [rsp + 0x40], 0x5a4d
jne 0x140002919
mov eax, dword [rsp + 0x7c]
movsxd rdx, eax
cmp rdx, 0xef8
jae 0x140002919
movsxd rax, eax
lea rax, [rsp + rax + 0x40]
cmp dword [rax], 0x4550
jne 0x140002919
lea rdx, [rax + 0x108]
lea rcx, [rsp + 0x1040]
cmp rdx, rcx
jae 0x140002919
cmp word [rax + 6], 0
jbe 0x14000284c
xor ecx, ecx
xor r8d, r8d
cmp dword [rdx + 0x14], ecx
ja 0x140002826
mov r9d, ecx
jmp 0x140002837
mov r10d, dword [rdx + 0x14]
mov r11d, r10d
add r11d, dword [rdx + 0x10]
mov dword [rsi], r11d
mov r9d, r10d
mov ecx, r9d
add rdx, 0x28
add r8d, 1
movzx r9d, word [rax + 6]
cmp r8d, r9d
jl 0x14000281c
mov eax, dword [rsi]
lea edx, [eax + 2]
mov rcx, r12
xor r8, r8
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x140002919
mov qword [rsp + 0x1040], 0
mov qword [rsp + 0x20], 0
mov rcx, r12
lea rdx, [rsp + 0x1040]
mov r8d, 8
lea r9, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000290c
mov rax, qword [rsp + 0x1040]
mov qword [rbx], rax
cmp dword [rsp + 0x3c], 8
jb 0x14000290c
mov qword [rsp + 0x1040], 0
mov qword [rsp + 0x20], 0
mov rcx, r12
lea rdx, [rsp + 0x1040]
mov r8d, 8
lea r9, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000290c
mov rax, qword [rsp + 0x1040]
mov qword [rdi], rax
cmp dword [rsp + 0x3c], 8
jb 0x14000290c
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140002924
xor eax, eax
jmp 0x140002924
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140002924
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x1048
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140003510
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x38
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
mov r12, qword [rdi]
test r12, r12
je 0x140003586
mov qword [rdi], 0
cmp r12, 0x400000
jbe 0x140003542
mov r8d, 0x400000
jmp 0x140003545
mov r8d, r12d
mov dword [rsp + 0x2c], 0
mov qword [rsp + 0x20], 0
mov rcx, qword [rbx]
mov rdx, rsi
lea r9, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [rsp + 0x2c]
mov edx, edx
add rsi, rdx
sub r12, rdx
add qword [rdi], rdx
test eax, eax
je 0x14000358a
cmp dword [rsp + 0x2c], 0
je 0x140003586
test r12, r12
jne 0x140003531
xor eax, eax
jmp 0x140003590
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x38
pop r12
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400035a0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x38
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
mov r12, qword [rdi]
test r12, r12
je 0x140003616
mov qword [rdi], 0
cmp r12, 0x400000
jbe 0x1400035d2
mov r8d, 0x400000
jmp 0x1400035d5
mov r8d, r12d
mov dword [rsp + 0x2c], 0
mov qword [rsp + 0x20], 0
mov rcx, qword [rbx]
mov rdx, rsi
lea r9, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [rsp + 0x2c]
mov edx, edx
add rsi, rdx
sub r12, rdx
add qword [rdi], rdx
test eax, eax
je 0x14000361a
cmp dword [rsp + 0x2c], 0
je 0x140003616
test r12, r12
jne 0x1400035c1
xor eax, eax
jmp 0x140003620
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x38
pop r12
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400036c0
Capabilities:
Get file size

Disassembly:
push rbx
push rsi
sub rsp, 0x28
mov rbx, rdx
mov rcx, qword [rcx]
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1400036e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400036fa
mov eax, dword [rsp + 0x24]
shl rax, 0x20
mov edx, esi
add rax, rdx
mov qword [rbx], rax
xor eax, eax
add rsp, 0x28
pop rsi
pop rbx
ret
Function at 0x140006c00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x28
lea rax, [0x140024000]
xor edx, edx
nop dword [rax]
mov ecx, edx
shr ecx, 1
mov r8d, edx
and r8d, 1
neg r8d
and r8d, 0xedb88320
xor ecx, r8d
mov r8d, ecx
shr r8d, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor r8d, ecx
mov ecx, r8d
shr ecx, 1
and r8d, 1
neg r8d
and r8d, 0xedb88320
xor ecx, r8d
mov r8d, ecx
shr r8d, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor r8d, ecx
mov ecx, r8d
shr ecx, 1
and r8d, 1
neg r8d
and r8d, 0xedb88320
xor ecx, r8d
mov r8d, ecx
shr r8d, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor r8d, ecx
mov ecx, r8d
shr ecx, 1
and r8d, 1
neg r8d
and r8d, 0xedb88320
xor ecx, r8d
mov r8d, ecx
shr r8d, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor r8d, ecx
mov dword [rax], r8d
add rax, 4
add edx, 1
cmp edx, 0x100
jb 0x140006c10
lea rax, [0x140024400]
lea rdx, [0x140024400]
nop
mov ecx, dword [rdx - 0x400]
lea r8, [0x140024000]
mov r9d, ecx
and r9d, 0xff
mov r8d, dword [r8 + r9*4]
shr ecx, 8
xor r8d, ecx
mov dword [rax], r8d
add rax, 4
add rdx, 4
lea rcx, [0x140026000]
cmp rdx, rcx
jb 0x140006ce0
lea rax, [0x140008180]
mov qword [0x140026020], rax
lea rax, [0x140008180]
mov qword [0x140026000], rax
lea rax, [0x140008260]
mov qword [0x140026040], rax
call fcn.140008480
test eax, eax
jne 0x140006d59
lea rax, [0x140008260]
mov qword [0x140026000], rax
add rsp, 0x28
ret

Function at 0x140006d60
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0xa60
mov rbx, rcx
lea rcx, [rsp + 0x648]
mov edx, 0x208
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, 0x208
ja 0x140006db7
lea rcx, [rsp + 0x648]
call fcn.140016c10
mov qword [rsp + 0x20], rbx
lea rcx, [rsp + 0x2c]
mov edx, 0x30e
lea r8, str._ls_ls
lea r9, [rsp + 0x648]
call fcn.14000e8d0
jmp 0x140006dca
lea rcx, [rsp + 0x2c]
mov rdx, rbx
mov r8d, 0x30e
call fcn.14000ee10
lea rcx, [rsp + 0x2c]
xor edx, edx
mov r8d, 8
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
add rsp, 0xa60
pop rbx
ret
Function at 0x14000d130
Capabilities:
Terminate process

Disassembly:
push rbx
push rsi
sub rsp, 0x88
mov ecx, 0x2000000
call fcn.140010530
mov qword [0x140026060], rax
call fcn.14000efa0
test eax, eax
je 0x14000d207
call fcn.14000f230
call fcn.14000f330
call fcn.14000f3e0
call fcn.14000f7b0
call fcn.14000f870
lea rbx, [0x14001c8b0]
jmp 0x14000d17f
call qword [rbx]
add rbx, 8
lea rax, [0x14001c8b0]
cmp rbx, rax
jb 0x14000d179
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
call fcn.14000f970
mov r8, rax
movzx eax, word [rsp + 0x60]
mov edx, 0xa
test dword [rsp + 0x5c], 1
cmove r9d, edx
cmovne r9d, eax
mov rcx, rbx
xor edx, edx
call fcn.140001ce0
mov ebx, eax
lea rsi, [0x14001c8b0]
jmp 0x14000d1e6
call qword [rsi]
add rsi, 8
lea rax, [0x14001c8b0]
cmp rsi, rax
jb 0x14000d1e0
mov ecx, ebx
jmp 0x14000f9c0
mov ecx, 0xfffffffe
call fcn.14000fa30
jmp 0x14000d157
push rbx
sub rsp, 0x20
mov ebx, ecx
jmp 0x14000f9e5
mov rax, qword [0x14001d070]
lea rdx, [rax + 1]
mov qword [0x14001d070], rdx
lea rdx, [0x1400267a0]
call qword [rdx + rax*8]
cmp qword [0x14001d070], 0x50
jb 0x14000f9c9
cmp qword [0x140026a20], 0
je 0x14000fa1f
mov rax, qword [0x140026a20]
sub rax, 1
mov qword [0x140026a20], rax
lea rdx, [0x1400267a0]
call qword [rdx + rax*8]
cmp qword [0x140026a20], 0
jne 0x14000f9f9
mov ecx, ebx
jmp fcn.140010730

Function at 0x14000f7b0
Capabilities:
Accept command line arguments

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x140
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rbx, rax
cmp byte [rbx], 0
jne 0x14000f7e0
xor ecx, ecx
lea rdx, [rsp + 0x3c]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rbx, [rsp + 0x3c]
lea rax, [rsp + 0x28]
mov qword [rsp + 0x20], rax
mov rcx, rbx
xor edx, edx
xor r8, r8
lea r9, [rsp + 0x30]
call fcn.14000f600
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
lea rcx, [rdx + rax*8]
call fcn.14000db00
mov rsi, rax
test rsi, rsi
je 0x14000f84f
lea rax, [rsp + 0x28]
mov qword [rsp + 0x20], rax
mov rdi, qword [rsp + 0x30]
lea r8, [rsi + rdi*8]
mov rcx, rbx
mov rdx, rsi
lea r9, [rsp + 0x30]
call fcn.14000f600
sub rdi, 1
mov eax, edi
mov dword [0x140026180], eax
mov qword [0x1400261a0], rsi
jmp 0x14000f859
mov ecx, 0xfffffffc
call fcn.14000fa30
add rsp, 0x140
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000f870
Capabilities:
Query environment variable

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
cmovne rbx, rax
cmove rbx, qword [0x14001d060]
mov rsi, rbx
xor eax, eax
cmp byte [rsi], 0
je 0x14000f8ce
nop
nop word [rax + rax]
or rdx, 0xffffffffffffffff
nop dword [rax]
nop word [rax + rax]
add rdx, 1
cmp byte [rsi + rdx], 0
jne 0x14000f8b0
lea rdi, [rdx + 1]
cmp byte [rsi], 0x3d
je 0x14000f8c6
add rax, rdi
add rsi, rdi
cmp byte [rsi], 0
jne 0x14000f8a0
lea rcx, [rax + 1]
call fcn.14000db00
mov rdx, rax
mov qword [0x1400261c0], rax
test rax, rax
je 0x14000f950
mov rsi, rbx
cmp byte [rsi], 0
je 0x14000f939
nop
or rax, 0xffffffffffffffff
nop dword [rax]
nop word [rax + rax]
add rax, 1
cmp byte [rsi + rax], 0
jne 0x14000f900
lea rdi, [rax + 1]
cmp byte [rsi], 0x3d
je 0x14000f931
xor ecx, ecx
nop
nop word [rax + rax]
mov al, byte [rsi + rcx]
mov byte [rdx + rcx], al
add rcx, 1
test al, al
jne 0x14000f920
add rdx, rdi
add rsi, rdi
cmp byte [rsi], 0
jne 0x14000f8f0
mov byte [rdx], 0
cmp rbx, qword [0x14001d060]
je 0x14000f95a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x14000f95a
mov ecx, 0xfffffffc
call fcn.14000fa30
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret

Function at 0x14000f970
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
cmp byte [rax], 0x22
jne 0x14000f999
nop
add rax, 1
cmp byte [rax], 0x22
je 0x14000f993
cmp byte [rax], 0
jne 0x14000f980
cmp byte [rax], 0x22
jne 0x14000f9a4
add rax, 1
jmp 0x14000f9a4
cmp byte [rax], 0x20
jbe 0x14000f9a4
add rax, 1
jmp 0x14000f999
mov dl, byte [rax]
test dl, dl
je 0x14000f9af
cmp dl, 0x20
jbe 0x14000f993
add rsp, 0x28
ret
Function at 0x14000f9c0
Capabilities:
Terminate process

Disassembly:
push rbx
push rsi
sub rsp, 0x88
mov ecx, 0x2000000
call fcn.140010530
mov qword [0x140026060], rax
call fcn.14000efa0
test eax, eax
je 0x14000d207
call fcn.14000f230
call fcn.14000f330
call fcn.14000f3e0
call fcn.14000f7b0
call fcn.14000f870
lea rbx, [0x14001c8b0]
jmp 0x14000d17f
call qword [rbx]
add rbx, 8
lea rax, [0x14001c8b0]
cmp rbx, rax
jb 0x14000d179
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
call fcn.14000f970
mov r8, rax
movzx eax, word [rsp + 0x60]
mov edx, 0xa
test dword [rsp + 0x5c], 1
cmove r9d, edx
cmovne r9d, eax
mov rcx, rbx
xor edx, edx
call fcn.140001ce0
mov ebx, eax
lea rsi, [0x14001c8b0]
jmp 0x14000d1e6
call qword [rsi]
add rsi, 8
lea rax, [0x14001c8b0]
cmp rsi, rax
jb 0x14000d1e0
mov ecx, ebx
jmp 0x14000f9c0
mov ecx, 0xfffffffe
call fcn.14000fa30
jmp 0x14000d157
push rbx
sub rsp, 0x20
mov ebx, ecx
jmp 0x14000f9e5
mov rax, qword [0x14001d070]
lea rdx, [rax + 1]
mov qword [0x14001d070], rdx
lea rdx, [0x1400267a0]
call qword [rdx + rax*8]
cmp qword [0x14001d070], 0x50
jb 0x14000f9c9
cmp qword [0x140026a20], 0
je 0x14000fa1f
mov rax, qword [0x140026a20]
sub rax, 1
mov qword [0x140026a20], rax
lea rdx, [0x1400267a0]
call qword [rdx + rax*8]
cmp qword [0x140026a20], 0
jne 0x14000f9f9
mov ecx, ebx
jmp fcn.140010730

Function at 0x14000fa30
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
lea eax, [ecx + 0x11]
cmp eax, 0xf
ja 0x14000fae8
lea rax, [0x14001af30]
sub ecx, 0xffffffef
movsxd rdx, ecx
jmp qword [rax + rdx*8]
lea rbx, str.unexpected_error
lea rcx, str.CRT:
lea rdx, [0x14001d1a0]
call fcn.140010780
mov rcx, rbx
lea rdx, [0x14001d1a0]
call fcn.140010780
lea rcx, [0x14001afc2]
lea rdx, [0x14001d1a0]
call fcn.140010780
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x14000fb52
int3
mov ecx, 0xff
jmp fcn.140010730
Function at 0x140012210
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
sub rsp, 0x30
mov rbx, rcx
mov esi, edx
mov qword [rsp + 0x20], rbx
mov rdi, rbx
mov ax, word [rdi + 6]
and ax, 0x7ff0
shr ax, 4
mov r12w, ax
cmp r12w, 0x7ff
je 0x140012356
test r12w, r12w
je 0x140012383
movsx eax, r12w
add esi, eax
cmp esi, 0x7ff
jge 0x14001239d
test esi, esi
jg 0x1400123c9
mov ax, word [rdi + 6]
mov r14w, ax
and r14w, 0x8000
and ax, 0xf
or ax, 0x10
mov word [rdi + 6], ax
lea eax, [esi - 1]
cmp eax, 0xffffffcc
jl 0x1400123e4
cmp ax, 0xfff0
jg 0x1400122c7
nop
nop word [rax + rax]
mov dx, word [rdi + 2]
mov word [rdi], dx
mov dx, word [rdi + 4]
mov word [rdi + 2], dx
mov dx, word [rdi + 6]
mov word [rdi + 4], dx
mov word [rdi + 6], 0
add ax, 0x10
cmp ax, 0xfff0
jle 0x1400122a0
mov dx, ax
neg dx
mov ax, dx
test dx, dx
je 0x140012349
movsx eax, ax
mov edx, eax
neg edx
add edx, 0x10
movzx r8d, word [rdi]
mov ecx, eax
sar r8d, cl
movzx r9d, word [rdi + 2]
mov ecx, edx
shl r9d, cl
or r8d, r9d
mov cx, r8w
mov word [rdi], cx
movzx r8d, word [rdi + 2]
mov ecx, eax
sar r8d, cl
movzx r9d, word [rdi + 4]
mov ecx, edx
shl r9d, cl
or r8d, r9d
mov cx, r8w
mov word [rdi + 2], cx
movzx r8d, word [rdi + 4]
mov ecx, eax
sar r8d, cl
movzx r9d, word [rdi + 6]
mov ecx, edx
shl r9d, cl
or r8d, r9d
mov dx, r8w
mov word [rdi + 4], dx
movzx edx, word [rdi + 6]
mov ecx, eax
sar edx, cl
mov ax, dx
mov word [rdi + 6], ax
or word [rdi + 6], r14w
or eax, 0xffffffff
jmp 0x1400123fc
test word [rdi + 6], 0xf
jne 0x140012372
cmp word [rdi + 4], 0
jne 0x140012372
cmp word [rdi + 2], 0
jne 0x140012372
cmp word [rdi], 0
je 0x14001237c
mov eax, 2
jmp 0x1400123fc
mov eax, 1
jmp 0x1400123fc
mov rcx, rdi
call fcn.140013a60
test ax, ax
jg 0x140012399
mov r12w, ax
jmp 0x14001224e
xor eax, eax
jmp 0x1400123fc
cmp word [rdi + 6], 0
jge 0x1400123b6
movsd xmm0, qword [0x14001bcc0]
xorpd xmm0, xmmword [0x14001bd00]
jmp 0x1400123be
movsd xmm0, qword [0x14001bcc0]
movsd qword [rbx], xmm0
mov eax, 1
jmp 0x1400123fc
mov ax, word [rdi + 6]
and ax, 0x800f
mov dx, si
shl dx, 4
or ax, dx
mov word [rdi + 6], ax
or eax, 0xffffffff
jmp 0x1400123fc
mov word [rdi + 6], r14w
mov word [rdi + 4], 0
mov word [rdi + 2], 0
mov word [rdi], 0
xor eax, eax
add rsp, 0x30
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret

Function at 0x140013c80
Capabilities:
Terminate process

Disassembly:
cmp dword [0x140022900], 0
jne 0x140013c9f
mov dword [0x140022900], 1
lea rcx, [0x140013c40]
jmp 0x140014680
ret
mov rax, qword [0x140026a20]
cmp qword [0x14001d070], rax
ja 0x140014695
jmp 0x140014e70
lea rdx, [rax + 1]
mov qword [0x140026a20], rdx
lea rdx, [0x1400267a0]
mov qword [rdx + rax*8], rcx
ret
sub rsp, 0x28
mov ecx, 6
call fcn.140014ec0
mov ecx, 1
jmp 0x14000f9c0
Function at 0x140013de0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
sub rsp, 0x850
mov rbx, rcx
mov esi, edx
lea rdi, [r8 + r9]
mov qword [rsp + 0x830], 0
mov qword [rsp + 0x838], 0
mov dword [rsp + 0x840], 0
mov r12, r8
cmp r12, rdi
jae 0x140013efb
lea rax, [rsp + 0x82f]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x30]
cmp rax, rcx
jbe 0x140013e71
nop dword [rax]
cmp r12, rdi
jae 0x140013e71
cmp byte [r12], 0xa
jne 0x140013e5c
add qword [rsp + 0x838], 1
mov byte [rdx], 0xd
add rdx, 1
add rdx, 1
add r12, 1
mov cl, byte [r12 - 1]
mov byte [rdx - 1], cl
cmp rdx, rax
jb 0x140013e40
lea rax, [rsp + 0x30]
sub rdx, rax
mov r14d, edx
mov ecx, esi
call fcn.140014a10
test eax, eax
je 0x140013ea2
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov ecx, eax
mov r9d, r14d
mov edx, dword [0x140026a40]
lea r8, [rsp + 0x30]
call fcn.140014bd0
mov ecx, esi
call fcn.1400149b0
mov rcx, rax
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x30]
mov r8d, r14d
lea r9, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140013eee
mov eax, dword [rsp + 0x2c]
add qword [rsp + 0x830], rax
cmp dword [rsp + 0x2c], r14d
jb 0x140013efb
add r12, 1
cmp r12, rdi
jb 0x140013e26
jmp 0x140013efb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x840], eax
movups xmm0, xmmword [rsp + 0x830]
movups xmmword [rbx], xmm0
mov rax, qword [rsp + 0x840]
mov qword [rbx + 0x10], rax
mov rax, rbx
add rsp, 0x850
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140013f30
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
sub rsp, 0x850
mov rbx, rcx
mov esi, edx
lea rdi, [r8 + r9]
mov qword [rsp + 0x830], 0
mov qword [rsp + 0x838], 0
mov dword [rsp + 0x840], 0
mov r12, r8
cmp r12, rdi
jae 0x14001407f
lea rax, [rsp + 0x82e]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x30]
cmp rax, rcx
jbe 0x140013fc6
nop dword [rax]
cmp r12, rdi
jae 0x140013fc6
cmp word [r12], 0xa
jne 0x140013faf
add qword [rsp + 0x838], 2
mov word [rdx], InitCommonControls
add rdx, 2
add rdx, 2
add r12, 2
mov cx, word [r12 - 2]
mov word [rdx - 2], cx
cmp rdx, rax
jb 0x140013f90
lea rax, [rsp + 0x30]
sub rdx, rax
mov r14d, edx
mov ecx, esi
call fcn.140014a10
test eax, eax
je 0x140014039
mov ecx, esi
call fcn.1400149b0
mov rcx, rax
mov qword [rsp + 0x20], 0
mov eax, r14d
shr rax, 1
mov r8d, eax
lea rdx, [rsp + 0x30]
lea r9, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
je 0x140014072
mov eax, dword [rsp + 0x2c]
add rax, rax
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x2c]
add qword [rsp + 0x830], rax
cmp dword [rsp + 0x2c], r14d
jb 0x14001407f
add r12, 2
cmp r12, rdi
jb 0x140013f76
jmp 0x14001407f
mov ecx, esi
call fcn.1400149b0
mov rcx, rax
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x30]
mov r8d, r14d
lea r9, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140014017
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x840], eax
jmp 0x14001407f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x840], eax
movups xmm0, xmmword [rsp + 0x830]
movups xmmword [rbx], xmm0
mov rax, qword [rsp + 0x840]
mov qword [rbx + 0x10], rax
mov rax, rbx
add rsp, 0x850
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400140b0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
push r15
push r13
sub rsp, 0xc50
mov qword [rsp + 0xc90], rcx
mov ebx, edx
mov rsi, r8
lea rdi, [rsi + r9]
mov r12, rsi
xor r14, r14
cmp r12, rdi
jae 0x140014199
lea rax, [rsp + 0xc46]
lea rdx, [rsp + 0x848]
lea rcx, [rsp + 0x848]
cmp rax, rcx
jbe 0x14001412d
nop
cmp r12, rdi
jae 0x14001412d
cmp word [r12], 0xa
jne 0x140014116
mov word [rdx], InitCommonControls
add rdx, 2
add rdx, 2
add r12, 2
mov cx, word [r12 - 2]
mov word [rdx - 2], cx
cmp rdx, rax
jb 0x140014100
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x800
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x848]
sub rdx, rax
sar rdx, 1
mov eax, edx
mov r9d, eax
mov ecx, 0xfde9
xor edx, edx
lea r8, [rsp + 0x848]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x1400141a3
mov eax, eax
lea r15, [rsp + rax + 0x48]
lea rax, [rsp + 0x48]
cmp r15, rax
jbe 0x14001421e
lea r13, [rsp + 0x48]
jmp 0x1400141e4
mov dword [rsp + 0x40], 0
jmp 0x1400141ad
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0xc90]
mov qword [rax], r14
mov rax, qword [rsp + 0xc90]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0xc90]
mov edx, dword [rsp + 0x40]
mov dword [rax + 0x10], edx
mov rax, qword [rsp + 0xc90]
jmp 0x14001426a
mov ecx, ebx
call fcn.1400149b0
mov rcx, rax
mov qword [rsp + 0x20], 0
mov rax, r15
sub rax, r13
mov r8d, eax
mov rdx, r13
lea r9, [rsp + 0x44]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140014236
mov eax, dword [rsp + 0x44]
add r13, rax
cmp r13, r15
jb 0x1400141e4
mov r14, r12
sub r14, rsi
add r12, 2
cmp r12, rdi
jb 0x1400140e2
jmp 0x140014199
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [rsp + 0xc90]
mov qword [rdx], r14
mov rdx, qword [rsp + 0xc90]
mov qword [rdx + 8], 0
mov rdx, qword [rsp + 0xc90]
mov dword [rdx + 0x10], eax
mov rax, qword [rsp + 0xc90]
add rsp, 0xc50
pop r13
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret

Function at 0x140014280
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
mov ecx, edx
mov rsi, r8
mov rdi, r9
call fcn.1400149b0
mov rcx, rax
mov qword [rsp + 0x20], 0
mov r8d, edi
mov rdx, rsi
lea r9, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400142c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
jmp 0x1400142c8
mov edx, dword [rsp + 0x2c]
xor eax, eax
mov qword [rbx], rdx
mov qword [rbx + 8], 0
mov dword [rbx + 0x10], eax
mov rax, rbx
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret

Function at 0x140014790
Capabilities:
Delete file

Disassembly:
jmp 0x140014e90
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x140014eb0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140014d90
or eax, 0xffffffff
jmp 0x140014eb2
xor eax, eax
add rsp, 0x28
ret