joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140042c18
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140039668
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140042ca2
cmp byte [rbp - 0x21], r15b
je 0x140042c9d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140042cd8
call fcn.14003bd3c
test eax, eax
jne 0x140042cc4
cmp byte [rbp - 0x21], r15b
je 0x140042cbc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140042cd8
cmp byte [rbp - 0x21], r15b
je 0x140042cd5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400394ec
test eax, eax
jne 0x140042d78
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140039668
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140042d17
cmp byte [rbp - 0x21], r15b
je 0x140042d4c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140042d4c
call fcn.14003bd3c
test eax, eax
jne 0x140042d38
cmp byte [rbp - 0x21], r15b
je 0x140042d31
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140042d4c
cmp byte [rbp - 0x21], r15b
je 0x140042d49
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400394ec
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140042d78
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140042d7b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140042d89
mov rcx, rdi
call fcn.1400387b8
cmp byte [rbp + 0x3f], r15b
je 0x140042d98
mov rcx, qword [rbp + 0x27]
call fcn.1400387b8
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140045880
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400458a8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400458a8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0xc043d0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0xc043dd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0xc043ed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0xc043d5
lea eax, [rcx + 1]
jmp 0xc043fb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0xc0440e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0xc043f4
sub eax, 3
jb 0xc0442e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0xc0447d
sar eax, 1
movsxd rbp, eax
jb 0xc04464
jmp 0xc0443c
add ebx, ebx
jne 0xc0443a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xc04464
inc ecx
add ebx, ebx
jne 0xc0444a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xc04464
call r11
adc ecx, ecx
add ebx, ebx
jne 0xc0445d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0xc0444c
add ecx, 2
jmp 0xc04469
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00c04392
jmp 0xc043dd
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x7fd000]
mov eax, dword [rdi]
or eax, eax
je 0xc044d9
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x804000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0xc04489
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0xc044d3
mov qword [rbx], rax
add rbx, 8
jmp 0xc044a9
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0xc0451d
cmp al, 0xef
ja 0xc04505
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0xc044e5
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0xc044f4
mov eax, dword [rdi]
add rdi, 4
jmp 0xc044f4
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0xc04571
sub rsp, 0xffffffffffffff80
jmp 0x4688a0
Function at 0x140006e30
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov rax, qword [rdx + 0x28]
xor r8d, r8d
test rax, rax
jne 0x140006e45
mov edx, r8d
jmp 0x140006e49
mov rdx, qword [rdx + 0x18]
mov dword [rsp + 0x48], r8d
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], r8
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x140006e70
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
movsxd r14, r8d
mov r15, rdx
mov rdi, rcx
xor r12d, r12d
lea rax, vtable.CVolCommonBaseWithMemManager.0
mov qword [rbp - 0x38], rax
lea rax, vtable.CVolObject.0
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x28], r12
lea r13, vtable.CVolMem.0
mov qword [rbp - 0x38], r13
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x10], r12
mov qword [rbp - 0x18], r12
mov eax, 0x40
mov qword [rbp - 8], rax
mov rsi, r14
test r8d, r8d
je 0x140006f0b
mov rbx, qword [rbp - 8]
mov rax, r14
cqo
idiv rbx
sub rbx, rdx
add rbx, r14
mov rdx, rbx
lea rcx, [rbp - 0x38]
mov rax, qword [rbp - 0x38]
call qword [rax]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], r14
jmp 0x140006f13
mov rsi, qword [rbp - 0x10]
mov rax, qword [rbp - 0x20]
mov r8, rsi
xor edx, edx
mov rcx, rax
call fcn.140023920
mov rdx, qword [rbp - 0x20]
cmp qword [rbp - 0x10], 0
cmove rdx, r12
mov dword [rbp + 0x50], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x50]
mov r8d, r14d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rax, dword [rbp + 0x50]
test eax, eax
jns 0x140006fd4
mov qword [rbp - 0x10], r12
mov r14d, 0x40
lea rbx, vtable.CVolObject.0
mov qword [rdi], rbx
mov qword [rdi + 8], r12
mov qword [rdi + 0x10], r12
mov qword [rdi], r13
mov qword [rdi + 0x18], r12
mov qword [rdi + 0x28], r12
mov qword [rdi + 0x20], r12
mov qword [rdi + 0x30], r14
mov qword [rdi], r13
lea rdx, [rbp - 0x38]
mov rcx, rdi
call fcn.140004ca0
nop
mov qword [rbp - 0x38], r13
mov rdx, qword [rbp - 0x20]
test rdx, rdx
je 0x140006fa9
lea rcx, [rbp - 0x38]
mov rax, qword [rbp - 0x38]
call qword [rax + 0x18]
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x10], r12
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x38], rbx
mov rax, rdi
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
cmp eax, r14d
jge 0x140006f56
mov rsi, rax
cmp rax, qword [rbp - 0x10]
je 0x140006f56
test eax, eax
jne 0x140007013
mov rdx, qword [rbp - 0x20]
test rdx, rdx
je 0x140007002
lea rcx, [rbp - 0x38]
mov rax, qword [rbp - 0x38]
call qword [rax + 0x18]
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x10], r12
mov qword [rbp - 0x18], r12
jmp 0x140006f56
mov rcx, qword [rbp - 0x20]
mov rbx, qword [rbp - 8]
mov r14d, 0x40
test rcx, rcx
jne 0x140007056
test rbx, rbx
cmovle rbx, r14
cqo
idiv rbx
sub rbx, rdx
add rbx, rsi
mov rdx, rbx
lea rcx, [rbp - 0x38]
mov rax, qword [rbp - 0x38]
call qword [rax]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], rsi
jmp 0x140006f5c
test rbx, rbx
cmovle rbx, r14
mov rax, qword [rbp - 0x18]
cmp rax, rsi
jl 0x140007077
sub rax, rsi
cmp rax, rbx
jg 0x140007077
mov qword [rbp - 0x10], rsi
jmp 0x140006f5c
mov rax, rsi
cqo
idiv rbx
sub rbx, rdx
add rbx, rsi
mov r8, rbx
mov rdx, rcx
lea rcx, [rbp - 0x38]
mov rax, qword [rbp - 0x38]
call qword [rax + 0x10]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], rsi
jmp 0x140006f5c
Function at 0x140007a10
Capabilities:
Check if file exists

Disassembly:
push rbx
sub rsp, 0x290
mov rax, qword [0x140057010]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbx, rcx
mov rcx, qword [rcx + 0x18]
test rcx, rcx
jne 0x140007a48
cmp qword [rbx + 0x48], rcx
lea rcx, [0x140047278]
je 0x140007a48
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140007a9d
mov rcx, qword [rbx + 0x18]
test rcx, rcx
jne 0x140007a6c
cmp qword [rbx + 0x48], rcx
lea rcx, [0x140047278]
je 0x140007a6c
mov rcx, qword [rbx + 0x38]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x140007a9d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x20]
jmp 0x140007a9f
xor eax, eax
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140021650
add rsp, 0x290
pop rbx
ret
Function at 0x140008940
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x140057010]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor edi, edi
mov dword [rsp + 0x24], edi
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x40]
call fcn.140023920
mov dword [rsp + 0x20], 0x104
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea rcx, vtable.CVolObject.0
mov qword [rbx], rcx
mov qword [rbx + 8], rdi
mov qword [rbx + 0x10], rdi
lea rdx, vtable.CWString.0
mov qword [rbx], rdx
lea rax, [rbx + 0x20]
mov qword [rsp + 0x30], rax
mov qword [rax], rcx
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rdi
lea rcx, vtable.CVolMem.0
mov qword [rax], rcx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x28], rdi
mov qword [rax + 0x20], rdi
mov qword [rax + 0x30], 0x40
mov qword [rbx + 0x18], rdi
mov qword [rbx + 0x50], 0xfe
mov qword [rbx], rdx
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14001f850
nop
mov dword [rsp + 0x24], 1
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140021650
mov rbx, qword [rsp + 0x278]
add rsp, 0x260
pop rdi
ret
Function at 0x14001c8b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x80
mov rbx, r8
mov edi, edx
test r8, r8
je 0x14001ca80
mov rax, qword [rcx]
call qword [rax]
mov rbp, rax
test edi, edi
je 0x14001c920
cmp edi, 3
je 0x14001c920
sub edi, 1
je 0x14001c90f
cmp edi, 1
jne 0x14001ca80
movzx edx, bx
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadIconW]
jmp 0x14001ca82
movzx edx, bx
mov rcx, rbp
call qword [sym.imp.USER32.dll_LoadCursorW]
jmp 0x14001ca82
movzx edx, bx
mov r8d, 0xa
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r15, rax
test rax, rax
je 0x14001ca80
xor ebx, ebx
mov esi, ebx
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
test rax, rax
je 0x14001ca80
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r12, rax
test rax, rax
je 0x14001c9e6
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov qword [rsp + 0x70], rbx
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r8d, eax
mov rdx, r12
lea rcx, [rsp + 0x50]
call fcn.14001a5e0
test rax, rax
je 0x14001c9bf
mov rsi, qword [rsp + 0x50]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov qword [rsp + 0x70], rbx
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14001c9e6
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov qword [rsp + 0x70], rbx
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeResource]
test rsi, rsi
je 0x14001ca80
cmp edi, 3
jne 0x14001ca7b
lea r8, [rsp + 0x30]
lea edx, [rdi + 0x1d]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x14001ca6d
mov edx, dword [rsp + 0x38]
test edx, edx
je 0x14001ca6d
lea ecx, [rdx + 1]
and ecx, 0xfffffffe
mov dword [rsp + 0x20], 1
xor r9d, r9d
lea r8d, [rdi + 0x1e]
call qword [sym.imp.COMCTL32.dll_ImageList_Create]
mov rdi, rax
test rax, rax
je 0x14001ca6d
mov r8d, 0xff00ff
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
test eax, eax
jns 0x14001ca6a
mov rcx, rdi
call qword [sym.imp.COMCTL32.dll_ImageList_Destroy]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rax, rbx
jmp 0x14001ca82
mov rbx, rdi
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rax, rbx
jmp 0x14001ca82
mov rax, rsi
jmp 0x14001ca82
xor eax, eax
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x14001cb40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
sub rsp, 0x20
xor esi, esi
mov r14, r9
mov qword [r8 + 0x28], rsi
mov rbx, r8
mov rbp, rdx
test rdx, rdx
jne 0x14001cb72
lea eax, [rdx + 1]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rsi
pop rbp
ret
mov rax, qword [rcx]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], r15
call qword [rax]
movzx edx, bp
mov r8, r14
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r15, rax
test rax, rax
je 0x14001cc67
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbp, rax
test rax, rax
je 0x14001cc67
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x14001cc5e
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov qword [rbx + 0x28], rsi
cmp qword [rbx + 0x20], rdi
jl 0x14001cc3c
cmp rdi, 1
jne 0x14001cbfa
movzx ecx, byte [r14]
mov rax, qword [rbx + 0x18]
mov byte [rax], cl
inc qword [rbx + 0x28]
jmp 0x14001cc59
cmp rdi, 2
jne 0x14001cc11
movzx ecx, word [r14]
mov rax, qword [rbx + 0x18]
mov word [rax], cx
add qword [rbx + 0x28], rdi
jmp 0x14001cc59
cmp rdi, 4
jne 0x14001cc26
mov ecx, dword [r14]
mov rax, qword [rbx + 0x18]
mov dword [rax], ecx
add qword [rbx + 0x28], rdi
jmp 0x14001cc59
cmp rdi, 8
jne 0x14001cc3c
mov rcx, qword [r14]
mov rax, qword [rbx + 0x18]
mov qword [rax], rcx
add qword [rbx + 0x28], rdi
jmp 0x14001cc59
test eax, eax
je 0x14001cc59
mov rdx, rdi
mov rcx, rbx
call fcn.14001e380
mov r8, rdi
mov rdx, r14
mov rcx, rax
call fcn.1400271a0
mov esi, 1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov r15, qword [rsp + 0x48]
mov rax, rsi
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rsi
pop rbp
ret
Function at 0x14001d270
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x10]
sub rsp, 0x110
test rcx, rcx
je 0x14001d3da
cmp word [rcx], 0
je 0x14001d3da
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], rax
mov dword [rbp - 0x60], 0x68
psrldq xmm0, 0xc
movd eax, xmm0
or eax, 1
mov dword [rbp - 0x24], eax
mov ebx, 1
mov word [rbp - 0x20], bx
lea rax, vtable.CVolCommonBaseWithMemManager.0
mov qword [rsp + 0x50], rax
lea rsi, vtable.CVolObject.0
mov qword [rsp + 0x50], rsi
xor edi, edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rdi
lea r14, vtable.CVolMem.0
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x70], rdi
mov qword [rbp - 0x80], 0x40
mov rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.14001e460
mov rdx, qword [rsp + 0x68]
cmp qword [rsp + 0x78], rdi
cmove rdx, rdi
lea rax, [rbp - 0x78]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x14001d380
mov ebx, edi
jmp 0x14001d3a4
mov edx, 0x1f4
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.USER32.dll_WaitForInputIdle]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov qword [rsp + 0x50], r14
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x14001d3c1
lea rcx, [rsp + 0x50]
mov r8, qword [rsp + 0x50]
call qword [r8 + 0x18]
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x50], rsi
mov rax, rbx
jmp 0x14001d3dc
xor eax, eax
lea r11, [rsp + 0x110]
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 0x1400280d8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140027f37
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140027f37
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140027f37
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140027f37
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140027f37
cmp dword [rcx + 0x84], 0xe
jbe 0x140027f37
cmp dword [rcx + 0xf8], 0
je 0x140027f37
mov ecx, ebx
call fcn.140027ff4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140027dc4
nop
cmp dword [rbp + 0x20], 0
je 0x140027f85
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140027f90
int3
xor r8d, r8d
xor edx, edx
jmp 0x140027ec8
Function at 0x140030d18
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14005b0c0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x140030d76
cmp word [rdx], r12w
jne 0x140030d76
or byte [rax + r8*8 + 0x38], cl
jmp 0x140030d7c
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140030ed7
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140030eb2
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140030db5
mov rcx, r9
jmp 0x140030dd8
cmp r9, rdx
jae 0x140030def
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x140030d99
jmp 0x140030ed7
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140030eac
cmp dword [rsp + 0x80], edi
je 0x140030eac
mov rdx, r14
lea r11, [0x14005b0c0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140030e85
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140030e58
mov word [rbx], r12w
jmp 0x140030ed3
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x140030e61
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140030ed3
cmp word [rsp + 0x70], r12w
jne 0x140030e92
cmp rbx, rsi
je 0x140030e52
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14002e410
cmp word [rsp + 0x70], r12w
je 0x140030ed7
mov word [rbx], r13w
jmp 0x140030ed3
lea r11, [0x14005b0c0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140030ecf
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140030ed7
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140032cfc
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140032d83
mov rsi, rbx
cmp word [rax], bp
je 0x140032d42
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140032d2c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140032d28
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14002f798
mov rdi, rax
test rax, rax
je 0x140032d70
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400271a0
mov rbp, rdi
xor ecx, ecx
call fcn.14002d520
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400377d0
Capabilities:
Clear file content

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
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14002e410
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14002e410
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140037920
cmp rax, 0xffffffffffffffff
je 0x140037920
xor edi, edi
test rbp, rbp
jle 0x1400378cb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14002d4a8
mov rbx, rax
test rax, rax
jne 0x140037858
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400378c1
mov edx, 0x8000
mov ecx, r14d
call fcn.14002c9c4
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14002f104
cmp eax, 0xffffffff
je 0x1400378a1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140037868
mov edx, r15d
mov ecx, r14d
call fcn.14002c9c4
jmp 0x1400378c1
cmp byte [rsi + 0x38], dil
je 0x1400378b8
cmp dword [rsi + 0x34], 5
jne 0x1400378b8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400378c1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14002d520
jmp 0x140037934
jns 0x140037934
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14002e410
cmp rax, 0xffffffffffffffff
jne 0x1400378ec
cmp byte [rsi + 0x30], dil
je 0x140037934
mov edi, dword [rsi + 0x2c]
jmp 0x140037934
mov ecx, r14d
call fcn.1400337f4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140037934
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140037934
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14003792d
mov eax, dword [rsi + 0x2c]
jmp 0x140037932
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14002e410
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret