joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400811a0
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x288
mov rcx, rdx
lea rdx, [rsp + 0x30]
xor ebx, ebx
mov ebp, r9d
mov sil, bl
call qword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140081235
lea rdx, [0x1400aa2d8]
lea rcx, [rsp + 0x5c]
call fcn.140027544
test eax, eax
je 0x140081223
lea rdx, [0x1400cdb78]
lea rcx, [rsp + 0x5c]
call fcn.140027544
test eax, eax
je 0x140081223
mov rdx, qword [rsp + 0x2c0]
lea rcx, [rsp + 0x5c]
mov r8d, ebp
call fcn.140074060
test al, al
je 0x140081253
mov sil, 1
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x1400811dd
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_FindClose]
mov bpl, byte [rsp + 0x2d0]
test bpl, bpl
jne 0x140081263
mov al, sil
jmp 0x14008131e
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_FindClose]
xor al, al
jmp 0x14008131e
lea rdx, [rsp + 0x30]
lea rcx, [0x1400cdb70]
call qword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140081311
mov esi, dword [rsp + 0x2c8]
test byte [rsp + 0x30], 0x10
je 0x1400812fb
lea rdx, [0x1400aa2d8]
lea rcx, [rsp + 0x5c]
call fcn.140027544
test eax, eax
je 0x1400812fb
lea rdx, [0x1400cdb78]
lea rcx, [rsp + 0x5c]
call fcn.140027544
test eax, eax
je 0x1400812fb
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
mov r8, qword [rsp + 0x2c0]
mov rdx, qword [rsp + 0x2b8]
mov rcx, qword [rsp + 0x2b0]
mov r9d, esi
mov byte [rsp + 0x20], bpl
call fcn.1400811a0
test al, al
je 0x140081313
lea rcx, [0x1400cdb78]
call qword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x140081289
mov bl, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_FindClose]
mov al, bl
add rsp, 0x288
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140081534
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
lea rbp, [rax - 0x1f8]
sub rsp, 0x2e0
lea rcx, [rsp + 0x48]
call fcn.14001ee7c
mov rax, qword [rsp + 0x48]
lea rdx, [0x1400cdb70]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x50]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
inc dword [rax]
mov qword [rbp - 0x80], rax
call fcn.14001ece0
mov rcx, qword [rsp + 0x48]
lea rdx, [rbp - 0x70]
mov bl, 1
call qword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov qword [rsp + 0x40], rax
cmp rax, 0xffffffffffffffff
je 0x1400816e5
mov sil, byte [rbp + 0x228]
mov rdi, qword [rbp + 0x220]
mov rcx, qword [rbp + 0x200]
call fcn.140006e00
cmp eax, 1
je 0x1400816de
cmp eax, 0xb
jne 0x1400815ef
lea ecx, [rax - 1]
call qword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x1400815ca
lea rdx, [0x1400aa2d8]
lea rcx, [rbp - 0x44]
call fcn.140027544
test eax, eax
je 0x1400816c5
lea rdx, [0x1400cdb78]
lea rcx, [rbp - 0x44]
call fcn.140027544
test eax, eax
je 0x1400816c5
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x48]
call fcn.14001f110
lea rdx, [rbp - 0x44]
lea rcx, [rsp + 0x48]
call fcn.14001ece0
test byte [rbp - 0x70], 0x10
je 0x14008169f
test sil, sil
je 0x14008164a
inc qword [rdi]
cmp byte [rbp + 0x230], 0
je 0x1400816c5
lea rdx, [0x1400aa2ec]
lea rcx, [rsp + 0x48]
call fcn.14001ece0
mov al, byte [rbp + 0x230]
mov r9, qword [rbp + 0x218]
mov r8, qword [rbp + 0x210]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rbp + 0x200]
mov byte [rsp + 0x30], al
mov byte [rsp + 0x28], sil
mov qword [rsp + 0x20], rdi
call fcn.140081534
mov bl, al
test al, al
je 0x1400816e0
jmp 0x1400816c5
mov eax, dword [rbp - 0x50]
mov ecx, dword [rbp - 0x54]
shl rcx, 0x20
or rcx, rax
mov rax, qword [rbp + 0x210]
add qword [rax], rcx
test sil, sil
je 0x1400816c5
mov rax, qword [rbp + 0x218]
inc qword [rax]
mov rcx, qword [rsp + 0x40]
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x1400815ca
jmp 0x1400816e0
xor bl, bl
mov rax, qword [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_FindClose]
lea rcx, [rsp + 0x68]
call fcn.14001c05c
lea rcx, [rsp + 0x48]
call fcn.14001c05c
mov al, bl
mov rbx, qword [rsp + 0x308]
add rsp, 0x2e0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140085768
Capabilities:
Parse url

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov rbx, rdx
xor edx, edx
mov rsi, r8
lea r8d, [rdx + 0x60]
lea rcx, [rbp - 0x31]
call fcn.140026b10
mov r14d, 1
mov rcx, rbx
mov dword [rbp - 9], r14d
mov dword [rbp - 0x19], r14d
mov dword [rbp - 0x29], r14d
mov dword [rbp + 0x27], r14d
mov dword [rbp + 0x17], r14d
mov dword [rbp + 7], r14d
mov dword [rbp - 0x39], 0xf0
call fcn.1400268e8
lea r9, [rbp - 0x39]
xor r8d, r8d
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x1400858cc
mov r9d, dword [rbp - 0x29]
mov rdx, qword [rbp - 0x31]
xor r8d, r8d
mov rcx, rsi
call fcn.14001e4d8
mov r9d, dword [rbp - 0x19]
mov rdx, qword [rbp - 0x21]
lea rcx, [rsi + 0x20]
xor r8d, r8d
call fcn.14001e4d8
mov r9d, dword [rbp - 9]
mov rdx, qword [rbp - 0x11]
lea rcx, [rsi + 0x40]
xor r8d, r8d
call fcn.14001e4d8
mov r9d, dword [rbp + 7]
mov rdx, qword [rbp - 1]
lea rcx, [rsi + 0x60]
xor r8d, r8d
call fcn.14001e4d8
mov r9d, dword [rbp + 0x17]
mov rdx, qword [rbp + 0xf]
lea rdi, [rsi + 0x80]
xor r8d, r8d
mov rcx, rdi
call fcn.14001e4d8
mov r9d, dword [rbp + 0x27]
mov rdx, qword [rbp + 0x1f]
lea rbx, [rsi + 0xa0]
xor r8d, r8d
mov rcx, rbx
call fcn.14001e4d8
lea rdx, [rbp + 0x37]
mov r8, rbx
mov rcx, rdi
call fcn.14006492c
lea rcx, [rsi + 0xc0]
mov rdx, rax
call fcn.14001f110
lea rcx, [rbp + 0x37]
call fcn.14001c05c
mov ecx, dword [rbp - 0x25]
movzx eax, word [rbp - 0x15]
mov dword [rsi + 0xe4], ecx
mov word [rsi + 0xe8], ax
dec ecx
je 0x1400858c2
dec ecx
je 0x1400858b6
mov dword [rsi + 0xe0], 3
jmp 0x1400858c9
mov dword [rsi + 0xe0], 2
jmp 0x1400858c9
mov dword [rsi + 0xe0], r14d
mov al, r14b
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x1400858ec
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rcx
cmp byte [rcx + 0x188], bl
je 0x140085952
test dl, dl
je 0x140085952
mov rcx, qword [rcx + 0x190]
test rcx, rcx
je 0x140085920
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rdi + 0x190], rbx
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.DLL_CreateEventW]
lea rcx, [0x1400859a0]
mov r8, rdi
xor edx, edx
mov qword [rdi + 0x190], rax
call fcn.14002b368
cmp dword [rdi + 0x20], ebx
sete al
jmp 0x140085957
call fcn.1400845d0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140091884
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x1f78]
mov eax, 0x2060
call fcn.1400388f0
sub rsp, rax
lea rcx, [rsp + 0x20]
mov r14, rdx
call fcn.14001e400
lea rcx, [rsp + 0x40]
call fcn.14001e400
mov rcx, r14
call fcn.140006bb4
xor r15d, r15d
movzx ecx, word [rax]
mov rsi, rax
mov dil, r15b
test cx, cx
je 0x140091a0d
mov ebx, r15d
lea r12d, [r15 + 0x25]
inc rbx
cmp cx, r12w
jne 0x1400919bc
cmp word [rsi + rbx*2], r12w
jne 0x140091917
lea rcx, [rsp + 0x20]
mov edx, r12d
mov dil, 1
call fcn.14001e8a8
inc rbx
jmp 0x1400919c9
lea rdx, [0x1400aa2d0]
lea rcx, [rsp + 0x40]
call fcn.14001ebb8
jmp 0x14009193f
test ax, ax
je 0x140091949
lea rcx, [rsp + 0x40]
movzx edx, ax
call fcn.14001e8a8
inc rbx
movzx eax, word [rsi + rbx*2]
cmp ax, r12w
jne 0x14009192a
cmp word [rsi + rbx*2], r15w
je 0x1400919d8
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x60]
mov r8d, 0xfff
inc rbx
mov word [rsp + 0x60], r15w
call qword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
lea rcx, [rsp + 0x20]
test eax, eax
je 0x14009198b
lea rdx, [rsp + 0x60]
call fcn.14001ece0
mov dil, 1
jmp 0x1400919c9
lea rdx, [0x1400ce3a4]
mov dil, 1
call fcn.14001ece0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.14001ea20
lea rdx, [0x1400ce3a4]
lea rcx, [rsp + 0x20]
call fcn.14001ece0
jmp 0x1400919c9
movzx edx, cx
lea rcx, [rsp + 0x20]
call fcn.14001e8a8
movzx ecx, word [rsi + rbx*2]
test cx, cx
jne 0x1400918eb
jmp 0x1400919fb
lea rdx, [0x1400ce3a4]
lea rcx, [rsp + 0x20]
mov dil, 1
call fcn.14001ece0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.14001ea20
test dil, dil
je 0x140091a0d
lea rdx, [rsp + 0x20]
mov rcx, r14
call fcn.140006864
lea rcx, [rsp + 0x40]
call fcn.14001c05c
lea rcx, [rsp + 0x20]
call fcn.14001c05c
lea r11, [rsp + 0x2060]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400a4fa0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
sub rsp, 0x50
mov rbx, rdx
xor edx, edx
lea rbp, [0x1400e41b0]
lea r8d, [rdx + 0x68]
mov rcx, rbp
call fcn.140026b10
xor edx, edx
lea rdi, [0x1400e4218]
lea r8d, [rdx + 0x18]
mov rcx, rdi
call fcn.140026b10
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rbp
xor edi, edi
mov eax, 1
xor r9d, r9d
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
mov dword [rsp + 0x28], reloc.OLEAUT32.dll_RegisterActiveObject
mov dword [0x1400e41b0], 0x68
mov dword [0x1400e41ec], eax
mov word [0x1400e41f0], ax
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x1400a503c
mov rcx, qword [0x1400e4218]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x1400a54f4
Capabilities:
Get file size
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x20], rsi
mov qword [r11 + 8], rcx
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
xor r12d, r12d
mov r14, r9
mov rax, r8
mov rsi, rdx
cmp word [r8], r12w
je 0x1400a567b
mov qword [r11 - 0x68], r12
mov dword [r11 - 0x70], r12d
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, rax
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400a555c
xor eax, eax
jmp 0x1400a56b6
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ecx, 2
mov edx, eax
mov ebx, eax
call qword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov r15, rax
test rax, rax
jne 0x1400a5589
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x1400a5555
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GlobalLock]
lea r9, [rbp + 0x30]
mov r8d, ebx
mov rcx, rdi
mov rdx, rax
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.DLL_ReadFile]
mov rcx, r15
mov ebx, eax
call qword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
test ebx, ebx
je 0x1400a5555
lea r8, [rbp - 0x28]
mov edx, 1
mov rcx, r15
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov rcx, qword [rbp - 0x28]
lea rax, [rbp - 0x30]
lea r9, [0x1400ad980]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
mov qword [rbp - 0x30], r12
call qword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov rcx, qword [rbp - 0x28]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov rcx, r15
call qword [sym.imp.KERNEL32.DLL_GlobalFree]
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x1400a5555
mov rax, qword [rcx]
lea rdx, [rbp + 0x40]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov rcx, qword [rbp + 0x40]
lea r8, [rbp - 0x20]
mov edx, reloc.OLEAUT32.dll_RegisterActiveObject
call qword [sym.imp.GDI32.dll_GetObjectW]
mov rcx, qword [rbp + 0x50]
cmp dword [r14], r12d
jne 0x1400a564d
cmp dword [rcx], r12d
jne 0x1400a564d
mov eax, dword [rbp - 0x1c]
mov dword [r14], eax
mov eax, dword [rbp - 0x18]
mov dword [rcx], eax
mov r9d, dword [rcx]
mov r8d, dword [r14]
mov rcx, qword [rbp + 0x40]
xor edx, edx
mov dword [rsp + 0x20], 0x2000
call qword [sym.imp.USER32.dll_CopyImage]
mov rcx, qword [rbp - 0x30]
mov qword [rbp + 0x40], rax
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov r9, qword [rbp + 0x40]
jmp 0x1400a5682
mov r9, r12
mov qword [rbp + 0x40], r12
mov rcx, qword [rsi + 0xc0]
test rcx, rcx
je 0x1400a5698
call qword [sym.imp.GDI32.dll_DeleteObject]
mov r9, qword [rbp + 0x40]
mov rbx, qword [rsi]
xor r8d, r8d
mov edx, 0x172
mov rcx, rbx
mov qword [rsi + 0xc0], r9
call qword [sym.imp.USER32.dll_SendMessageW]
mov rax, rbx
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140f58a24
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f58a2e
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f58a57
pop rbp
sub rbp, 0x33
sub rbp, 0xf58a24
sub rsp, 0x20
jmp 0x140f58a76
mov rax, 0xf58a24
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xfffffffff1144ab6
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f58a95
jmp 0x140f58aac
invalid
Function at 0x140001d60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140001dd5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140001dd5
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140001dc5
nop
cmp rbx, rcx
jae 0x140001dd5
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140001db0
cmp rbx, rcx
jae 0x140001dd5
cmp word [rbx], 0
je 0x140001dd5
mov rax, rbx
jmp 0x140001dd7
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140001df0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov eax, edx
mov edi, edx
shr eax, 4
mov r8d, 6
inc ax
mov rsi, rcx
movzx edx, ax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
je 0x140001e34
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140001e46
xor eax, eax
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140001e8c
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140001e87
cmp rbx, rcx
jae 0x140001e8c
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140001e72
cmp rbx, rcx
jb 0x140001e90
xor eax, eax
jmp 0x140001e9c
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400054a0
Capabilities:
Read file on windows

Disassembly:
push rdi
push r12
sub rsp, 0x48
mov r9, qword [rcx]
mov rdi, rcx
mov qword [rsp + 0x38], r14
mov r8d, 1
mov r14, rdx
movsxd rdx, dword [rcx + 0xc]
mov rcx, r14
call fcn.14003ee10
mov ecx, dword [rdi + 0xc]
cmp rax, 1
mov r8, rax
mov eax, ecx
sete r12b
cdq
idiv dword [rdi + 0x1c]
mov dword [rdi + 0x20], eax
cmp r8, 1
jne 0x140005652
add dword [rdi + 0x18], ecx
lea r9d, [r8 + 0x17]
mov r8, qword [rdi + 0x30]
lea rdx, str.read
mov qword [rsp + 0x60], rbx
lea rcx, [rdi + 0x28]
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x28], 0xffffffff
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x20], eax
call fcn.140003480
mov ebp, dword [rdi + 0x20]
xor edx, edx
mov r15d, dword [rdi + 0x1c]
xor esi, esi
mov rbx, r14
test ebp, ebp
je 0x1400055e5
mov eax, r15d
dec ebp
xor r8d, r8d
cmp r15d, 1
jne 0x140005552
cmp byte [rbx], r8b
jmp 0x140005556
cmp word [rbx], r8w
sete r8b
mov ecx, eax
test r8d, r8d
je 0x14000558c
test rdx, rdx
je 0x140005584
cmp rbx, rdx
je 0x140005584
imul eax, esi
mov rcx, rdx
mov r8, rbx
sub r8, rdx
cdqe
sub rcx, rax
call fcn.140037f90
mov ecx, dword [rdi + 0x1c]
movsxd rdx, ecx
add rdx, rbx
inc esi
movsxd rax, ecx
add rbx, rax
mov eax, ecx
test ebp, ebp
jne 0x140005542
test rdx, rdx
je 0x1400055b9
cmp rbx, rdx
je 0x1400055b9
imul ecx, esi
sub rbx, rdx
mov r8, rbx
movsxd rax, ecx
mov rcx, rdx
sub rcx, rax
call fcn.140037f90
test esi, esi
je 0x1400055e5
mov dword [rsp + 0x28], 0xffffffff
lea rdx, str.nulls_removed
mov r9d, 1
mov dword [rsp + 0x20], esi
xor r8d, r8d
lea rcx, [rdi + 0x28]
call fcn.140003480
sub dword [rdi + 0x20], esi
cmp dword [rdi + 0x1c], 1
mov r15, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
jle 0x14000564d
test byte [rdi + 8], 0x80
je 0x14000564d
movsxd rdx, dword [rdi + 0x20]
test rdx, rdx
je 0x140005627
nop
movzx eax, word [r14 + rdx*2 - 2]
dec rdx
rol ax, 8
mov word [r14 + rdx*2], ax
test rdx, rdx
jne 0x140005610
mov dword [rsp + 0x28], 0xffffffff
lea rdx, str.endian_swap
xor r9d, r9d
mov dword [rsp + 0x20], 0xffffffff
xor r8d, r8d
lea rcx, [rdi + 0x28]
call fcn.140003480
mov r13, qword [rsp + 0x40]
mov r14, qword [rsp + 0x38]
test r12b, r12b
jne 0x140005664
mov rcx, rdi
call fcn.1400051b0
movzx eax, r12b
add rsp, 0x48
pop r12
pop rdi
ret
Function at 0x140005ec0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov rbx, rcx
mov qword [rsp + 0x40], rbp
movsxd rcx, dword [rcx + 0x20]
mov rsi, rdx
mov eax, dword [rbx + 0x1c]
imul eax, ecx
test r8, r8
cmovne rsi, r8
xor ebp, ebp
test byte [rbx + 8], 0x80
mov dword [rbx + 0xc], eax
lea r14, [rbp - 1]
je 0x140005f7a
test rdx, rdx
jne 0x140005f38
mov eax, 2
mul rcx
cmovo rax, r14
mov rcx, rax
call fcn.140017048
mov ecx, dword [rbx + 0x20]
mov rdx, rsi
add ecx, ecx
mov rbp, rax
movsxd r8, ecx
mov rcx, rax
call fcn.140037f90
mov ecx, dword [rbx + 0x20]
mov rdx, rbp
mov rsi, rbp
movsxd rcx, ecx
test rcx, rcx
je 0x140005f55
movzx eax, word [rdx + rcx*2 - 2]
dec rcx
rol ax, 8
mov word [rdx + rcx*2], ax
test rcx, rcx
jne 0x140005f40
lea rdi, [rbx + 0x28]
mov dword [rsp + 0x28], r14d
mov rcx, rdi
mov dword [rsp + 0x20], r14d
xor r9d, r9d
lea rdx, str.endian_swap
xor r8d, r8d
call fcn.140003480
jmp 0x140005f7e
lea rdi, [rbx + 0x28]
movsxd rdx, dword [rbx + 0xc]
mov r8d, 1
mov r9, qword [rbx]
mov rcx, rsi
call fcn.14003f128
cmp rax, 1
sete sil
test rbp, rbp
je 0x140005fa8
mov rcx, rbp
call fcn.140017040
mov rbp, qword [rsp + 0x40]
test sil, sil
je 0x140005fdf
mov edx, dword [rbx + 0xc]
mov r9d, 0x18
add dword [rbx + 0x18], edx
mov rcx, rdi
mov edx, dword [rbx + 0x20]
mov r8, qword [rbx + 0x30]
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], edx
lea rdx, str.write
call fcn.140003480
jmp 0x140005fe7
mov rcx, rbx
call fcn.1400051b0
mov rbx, qword [rsp + 0x48]
movzx eax, sil
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x14000cde0
Capabilities:
Create process on windows

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov rdi, rdx
mov rbx, rcx
cmp dword [rdx + 0x250], 0
jne 0x14000ce86
mov r9d, 4
lea r8, str.Built_with_Vbsedit
lea rdx, str.This_program_was_built_with_the_evaluation_version_of_Vbsedit._r_n_r_nThe_registered_version_doesnt_include_this_message._r_n_r_nWould_you_like_to_visit_our_website_
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x14000ce86
mov dword [rsp + 0x28], 0xa
lea rsi, [0x140066058]
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea r8, str.https:__www.vbsedit.com
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x20
jae 0x14000ce86
mov dword [rsp + 0x28], 0xa
mov qword [rsp + 0x20], rsi
lea r9, str.https:__www.vbsedit.com
lea r8, str.iexplore.exe
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov qword [rbx + 0x18], rdi
mov r9d, dword [rdi + 0x24c]
mov r8d, dword [rdi + 0x244]
mov rcx, rbx
call fcn.14000cfe0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x58], rax
call fcn.1400179f4
mov rcx, rax
test rax, rax
je 0x14000cfc7
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
lea rdx, str.WScript
lea rcx, [rsp + 0x50]
call fcn.140001f80
test al, al
jne 0x14000cef1
lea rdx, str.WScript
lea rcx, [rsp + 0x50]
call fcn.140003140
nop
lea rdx, [0x1400583d8]
mov rcx, rdi
call fcn.140022434
mov r8, rax
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.14000cb70
mov eax, dword [rdi + 0x24c]
cmp eax, 1
jne 0x14000cf5b
mov rcx, qword [rdi + 0x258]
sub rcx, 0x18
call fcn.140002a10
add rax, 0x18
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.14000f280
mov rcx, rbx
call fcn.14000f5c0
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
cmp eax, 2
jne 0x14000cf88
mov rcx, qword [rdi + 0x258]
sub rcx, 0x18
call fcn.140002a10
add rax, 0x18
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.14000f420
jmp 0x14000cfad
cmp eax, 3
jne 0x14000cfb5
lea rdx, [rdi + 0x258]
mov rcx, rbx
call fcn.14000d470
lea rcx, [rbx + 8]
call fcn.1400255f8
mov rcx, rbx
call fcn.14000f5c0
mov rcx, rbx
call fcn.14000f630
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov ecx, 0x80004005
call fcn.1400024c0
int3