joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140046410
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Hash data with crc32

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x14006eff8], 0
mov r12, rcx
mov rdi, rdx
je 0x140046498
lea rdx, [0x1400654ea]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400465a0
mov rsi, qword [0x14006eff0]
jmp 0x140046455
lea rsi, [rdx + rax + 4]
mov rdx, rsi
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rsi
mov ebx, eax
call sub.msvcrt.dll_strlen
lea rdx, [rsi + rax + 1]
mov eax, dword [rdx]
test ebx, ebx
jne 0x140046450
movzx r8d, word [rdx + 4]
lea r9, [rdx + 6]
mov rcx, r12
mov rdx, r9
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.140043100
mov r8d, 0xa
mov edx, 3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rax
mov r9d, dword [rax]
mov eax, dword [rax + 4]
lea rcx, [rdx + 8]
mov qword [0x14006eff0], rcx
test eax, eax
je 0x140046588
sub eax, 1
lea r8, [rdx + rax + 9]
mov eax, 0xffffffff
nop dword [rax + rax]
movzx edx, byte [rcx]
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
shr eax, 1
and edx, 1
add rcx, 1
neg edx
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor eax, edx
cmp r8, rcx
jne 0x1400464f0
not eax
cmp r9d, eax
jne 0x14004663d
mov byte [0x14006eff8], 1
jmp 0x140046429
cmp byte [0x14006efe8], 0
jne 0x140046440
mov rbx, qword [sym.imp.python310.dll_PyDict_New]
lea rsi, [0x14006f0a8]
call rbx
mov qword [0x14006f040], rax
call rbx
mov qword [0x14006f038], rax
call rbx
mov qword [0x14006f030], rax
call rbx
mov qword [0x14006f070], rax
call rbx
mov qword [0x14006f068], rax
call rbx
mov qword [0x14006f060], rax
call rbx
mov qword [0x14006f050], rax
call rbx
mov rbp, qword [sym.imp.python310.dll_PyLong_FromLong]
mov rbx, 0xfffffffffffffffb
mov qword [0x14006f048], rax
nop dword [rax]
mov ecx, ebx
call rbp
add qword [rax], 1
mov qword [rsi + rbx*8], rax
add rbx, 1
cmp rbx, 0x102
jne 0x140046618
mov byte [0x14006efe8], 1
jmp 0x140046440
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop
Function at 0x1400533e0
Capabilities:
Enumerate pe sections

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xc8
movaps xmmword [rsp + 0xb0], xmm6
mov rbx, qword [0x140067030]
mov r13, qword [rbx]
movq xmm6, rcx
movq xmm1, rdx
mov rsi, rcx
mov r12, rdx
punpcklqdq xmm6, xmm1
test r13, r13
je 0x1400535c0
pxor xmm0, xmm0
lea rax, str.mode
cmp r12, 1
mov ebp, 1
lea rdi, str.file
movq xmm2, rax
movaps xmmword [rsp + 0x40], xmm0
sbb ebp, 0xffffffff
movaps xmmword [rsp + 0x50], xmm0
lea rax, str.encoding
lea rcx, str.errors
mov r14, qword [sym.imp.python310.dll_PyDict_SetItemString]
movaps xmmword [rsp + 0x60], xmm0
movq xmm0, rdi
movq xmm3, rax
lea rdi, str.buffering
punpcklqdq xmm0, xmm2
lea rax, str.newline
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x70], xmm0
movq xmm0, rdi
movq xmm4, rax
lea rax, str.opener
punpcklqdq xmm0, xmm3
movq xmm5, rax
xor eax, eax
test rsi, rsi
movaps xmmword [rsp + 0x80], xmm0
movq xmm0, rcx
cmove ebp, eax
lea rdi, str.closefd
punpcklqdq xmm0, xmm4
xor r15d, r15d
movaps xmmword [rsp + 0x90], xmm0
movq xmm0, rdi
lea ebx, [rbp + 1]
lea rdi, [rsp + 0x30]
punpcklqdq xmm0, xmm5
movsxd rbx, ebx
movaps xmmword [rsp + 0xa0], xmm0
jmp 0x14005350c
mov rdx, qword [rsp + rbx*8 + 0x70]
mov rcx, r15
call r14
add rbx, 1
cmp ebx, 7
jg 0x140053530
mov r8, qword [rdi + rbx*8]
test r8, r8
je 0x140053503
test r15, r15
jne 0x1400534f8
mov qword [rsp + 0x28], r8
call qword [sym.imp.python310.dll_PyDict_New]
mov r8, qword [rsp + 0x28]
mov r15, rax
jmp 0x1400534f8
movsxd rcx, ebp
call qword [sym.imp.python310.dll_PyTuple_New]
mov r14, rax
test ebp, ebp
je 0x140053556
mov qword [rax + 0x18], rsi
add qword [rsi], 1
cmp ebp, 2
jne 0x140053556
mov qword [rax + 0x20], r12
add qword [r12], 1
mov r8, r15
mov rdx, r14
mov rcx, r13
call fcn.14002ffb0
mov r12, rax
test r15, r15
je 0x140053572
sub qword [r15], 1
je 0x1400535b0
sub qword [r14], 1
je 0x1400535a0
movaps xmm6, xmmword [rsp + 0xb0]
mov rax, r12
add rsp, 0xc8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r14
call qword [sym.imp.python310.dll__Py_Dealloc]
jmp 0x140053578
mov rcx, r15
call qword [sym.imp.python310.dll__Py_Dealloc]
jmp 0x140053572
mov rax, qword [0x1400670d0]
lea rdx, [0x14006631b]
mov rcx, qword [rax]
call qword [sym.imp.python310.dll_PyDict_GetItemString]
mov r13, rax
test rax, rax
je 0x1400535e7
mov qword [rbx], rax
jmp 0x140053422
xor ecx, ecx
call qword [sym.imp.python310.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python310.dll_Py_Exit]
nop
nop dword [rax + rax]
Function at 0x140053600
Capabilities:
Enumerate pe sections

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xc8
movaps xmmword [rsp + 0xb0], xmm6
mov rsi, qword [0x140067030]
mov r14, qword [rsi]
movq xmm6, rcx
movq xmm1, rdx
mov rbp, rcx
mov rbx, rdx
mov r12, r8
punpcklqdq xmm6, xmm1
test r14, r14
je 0x140053810
pxor xmm0, xmm0
lea rax, str.mode
mov qword [rsp + 0x40], r12
lea rcx, str.file
movq xmm2, rax
movups xmmword [rsp + 0x48], xmm0
lea rax, str.encoding
movups xmmword [rsp + 0x58], xmm0
movq xmm0, rcx
movq xmm3, rax
lea rcx, str.buffering
punpcklqdq xmm0, xmm2
lea rax, str.newline
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x70], xmm0
movq xmm0, rcx
lea rcx, str.errors
movq xmm4, rax
punpcklqdq xmm0, xmm3
lea rax, str.opener
mov qword [rsp + 0x68], 0
movaps xmmword [rsp + 0x80], xmm0
movq xmm0, rcx
lea rcx, str.closefd
movq xmm5, rax
punpcklqdq xmm0, xmm4
movaps xmmword [rsp + 0x90], xmm0
movq xmm0, rcx
punpcklqdq xmm0, xmm5
movaps xmmword [rsp + 0xa0], xmm0
test rbp, rbp
je 0x140053837
cmp r12, 1
mov edi, 2
mov eax, 1
sbb edi, 0xffffffff
test rbx, rbx
cmovne eax, edi
mov dword [rsp + 0x2c], eax
lea r9d, [rax + 1]
mov r13, qword [sym.imp.python310.dll_PyDict_SetItemString]
xor r15d, r15d
lea rsi, [rsp + 0x30]
movsxd rdi, r9d
jmp 0x14005375c
mov qword [rsp + 0x20], r8
call qword [sym.imp.python310.dll_PyDict_New]
mov r8, qword [rsp + 0x20]
mov r15, rax
nop dword [rax + rax]
mov rdx, qword [rsp + rdi*8 + 0x70]
mov rcx, r15
call r13
add rdi, 1
cmp edi, 7
jg 0x140053770
mov r8, qword [rsi + rdi*8]
test r8, r8
je 0x140053753
test r15, r15
jne 0x140053748
jmp 0x140053730
movsxd rcx, dword [rsp + 0x2c]
mov rsi, rcx
call qword [sym.imp.python310.dll_PyTuple_New]
mov r13, rax
test esi, esi
je 0x1400537a9
mov qword [rax + 0x18], rbp
add qword [rbp], 1
cmp esi, 1
je 0x1400537a9
mov qword [rax + 0x20], rbx
add qword [rbx], 1
cmp esi, 3
jne 0x1400537a9
mov qword [rax + 0x28], r12
add qword [r12], 1
mov r8, r15
mov rdx, r13
mov rcx, r14
call fcn.14002ffb0
mov r12, rax
test r15, r15
je 0x1400537c5
sub qword [r15], 1
je 0x140053800
sub qword [r13], 1
je 0x1400537f0
movaps xmm6, xmmword [rsp + 0xb0]
mov rax, r12
add rsp, 0xc8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r13
call qword [sym.imp.python310.dll__Py_Dealloc]
jmp 0x1400537cc
mov rcx, r15
call qword [sym.imp.python310.dll__Py_Dealloc]
jmp 0x1400537c5
mov rax, qword [0x1400670d0]
lea rdx, [0x14006631b]
mov rcx, qword [rax]
call qword [sym.imp.python310.dll_PyDict_GetItemString]
mov r14, rax
test rax, rax
je 0x140053848
mov qword [rsi], rax
jmp 0x140053645
mov dword [rsp + 0x2c], 0
mov eax, dword [rsp + 0x2c]
jmp 0x140053717
xor ecx, ecx
call qword [sym.imp.python310.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python310.dll_Py_Exit]
nop
nop dword [rax]
Function at 0x1400567c0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14005e620
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14005e620
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140057472
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14006fa28]
test eax, eax
je 0x14005750a
lea rax, [0x14006fa00]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14006fa30]
mov qword [rbp - 8], rax
jmp 0x1400574ee
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1400574e2
cmp qword [rbp - 0x10], 0
je 0x1400574e2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400574a8
lea rax, [0x14006fa00]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14005750b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140057610
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140057638
mov eax, 0
jmp 0x140057686
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140057661
mov eax, 0
jmp 0x140057686
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140057681
mov eax, 0
jmp 0x140057686
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14005768c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14005770a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140057701
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140057701
mov rax, qword [rbp - 8]
jmp 0x14005771f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400576d4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14000d160
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x140054010]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor esi, esi
mov dword [rsp + 0x20], esi
lea rcx, vtable.CVolObject.0
mov qword [rdi], rcx
mov qword [rdi + 8], rsi
mov qword [rdi + 0x10], rsi
lea rax, vtable.CWString.0
mov qword [rdi], rax
lea rbx, [rdi + 0x20]
mov qword [rsp + 0x30], rbx
mov qword [rbx], rcx
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], rsi
lea rax, vtable.CVolMem.0
mov qword [rbx], rax
mov qword [rbx + 0x18], rsi
mov qword [rbx + 0x28], rsi
mov qword [rbx + 0x20], rsi
mov qword [rbx + 0x30], 0x40
mov qword [rdi + 0x18], rsi
mov qword [rdi + 0x50], 0xfe
mov dword [rsp + 0x20], 1
mov word [rsp + 0x40], si
xor r9d, r9d
lea r8d, [rsi + 0x1c]
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x14000d2ab
mov rax, qword [rdi + 0x18]
test rax, rax
jne 0x14000d22e
cmp qword [rdi + 0x48], rax
je 0x14000d238
cmp qword [rbx + 0x28], rax
je 0x14000d238
mov rax, qword [rbx + 0x18]
lea rcx, [rsp + 0x40]
cmp rcx, rax
je 0x14000d2a3
mov qword [rdi + 0x18], rsi
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x14000d24e
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x18]
mov qword [rbx + 0x18], rsi
mov qword [rbx + 0x28], rsi
mov qword [rbx + 0x20], rsi
movzx eax, word [rsp + 0x40]
test ax, ax
je 0x14000d2a3
lea rcx, [rsp + 0x40]
mov rax, 0xffffffffffffffff
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x14000d270
lea rsi, [rax*2 + 2]
test rsi, rsi
jle 0x14000d2a3
mov rdx, rsi
mov rcx, rbx
call fcn.140018b80
mov r8, rsi
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.140025500
mov rcx, rdi
call fcn.14000d440
mov rax, rdi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140023460
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140012c40
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov rax, qword [rdx + 0x28]
xor r8d, r8d
test rax, rax
jne 0x140012c55
mov edx, r8d
jmp 0x140012c59
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 0x1400165a0
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, 0x50
mov rdi, r8
mov ebx, edx
test r8, r8
je 0x140016706
mov rax, qword [rcx]
call qword [rax]
mov rsi, rax
test ebx, ebx
je 0x14001660d
cmp ebx, 3
je 0x14001660d
sub ebx, 1
je 0x1400165fc
cmp ebx, 1
jne 0x140016706
movzx edx, di
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadIconW]
jmp 0x140016708
movzx edx, di
mov rcx, rsi
call qword [sym.imp.USER32.dll_LoadCursorW]
jmp 0x140016708
movzx edx, di
mov r8d, 0xa
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r14, rax
test rax, rax
je 0x140016706
xor r12d, r12d
mov edi, r12d
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbp, rax
test rax, rax
je 0x140016706
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r15, rax
test rax, rax
je 0x1400166d5
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov qword [rsp + 0x40], r12
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r8d, eax
mov rdx, r15
lea rcx, [rsp + 0x20]
call fcn.1400143e0
test rax, rax
je 0x1400166ae
mov rdi, qword [rsp + 0x20]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov qword [rsp + 0x40], r12
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1400166d5
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov qword [rsp + 0x40], r12
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeResource]
test rdi, rdi
je 0x140016706
cmp ebx, 3
jne 0x140016701
mov rcx, rdi
call fcn.140016090
mov rbx, rax
mov rcx, rdi
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rax, rbx
jmp 0x140016708
mov rax, rdi
jmp 0x140016708
xor eax, eax
lea r11, [rsp + 0x50]
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 0x1400167c0
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 0x1400167f2
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 0x1400168e7
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbp, rax
test rax, rax
je 0x1400168e7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x1400168de
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 0x1400168bc
cmp rdi, 1
jne 0x14001687a
movzx ecx, byte [r14]
mov rax, qword [rbx + 0x18]
mov byte [rax], cl
inc qword [rbx + 0x28]
jmp 0x1400168d9
cmp rdi, 2
jne 0x140016891
movzx ecx, word [r14]
mov rax, qword [rbx + 0x18]
mov word [rax], cx
add qword [rbx + 0x28], rdi
jmp 0x1400168d9
cmp rdi, 4
jne 0x1400168a6
mov ecx, dword [r14]
mov rax, qword [rbx + 0x18]
mov dword [rax], ecx
add qword [rbx + 0x28], rdi
jmp 0x1400168d9
cmp rdi, 8
jne 0x1400168bc
mov rcx, qword [r14]
mov rax, qword [rbx + 0x18]
mov qword [rax], rcx
add qword [rbx + 0x28], rdi
jmp 0x1400168d9
test eax, eax
je 0x1400168d9
mov rdx, rdi
mov rcx, rbx
call fcn.140018b80
mov r8, rdi
mov rdx, r14
mov rcx, rax
call fcn.140025500
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 0x140017760
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
test rcx, rcx
je 0x14001789f
cmp word [rcx], 0
je 0x14001789f
lea rdx, vtable.CVolCommonBaseWithMemManager.0
mov qword [rbp - 0x60], rdx
lea rsi, vtable.CVolObject.0
mov qword [rbp - 0x60], rsi
xor edi, edi
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x50], rdi
lea rax, vtable.CWString.0
mov qword [rbp - 0x60], rax
lea rax, [rbp - 0x40]
mov qword [rbp + 0x20], rax
mov qword [rbp - 0x40], rdx
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], rdi
mov qword [rbp - 0x30], rdi
lea r14, vtable.CVolMem.0
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x10], 0x40
mov qword [rbp - 0x48], rdi
mov qword [rbp - 0x10], 0xfe
cmp word [rcx], di
je 0x140017856
cmp word [rcx + 2], di
je 0x140017856
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rcx + r8*2], 0
jne 0x140017810
cmp word [rcx + r8*2 - 2], 0x5c
jne 0x140017856
cmp word [rcx + r8*2 - 4], 0x3a
je 0x140017856
dec r8
mov rdx, rcx
lea rcx, [rbp - 0x60]
call fcn.140019db0
mov rcx, qword [rbp - 0x48]
test rcx, rcx
jne 0x140017856
lea rcx, [0x140043b38]
cmp qword [rbp - 0x18], 0
cmovne rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rbx, rdi
cmp eax, 0xffffffff
setne bl
lea rax, [rbp - 0x40]
mov qword [rbp + 0x20], rax
mov qword [rbp - 0x40], r14
mov rdx, qword [rbp - 0x28]
test rdx, rdx
je 0x140017886
lea rcx, [rbp - 0x40]
mov r8, qword [rbp - 0x40]
call qword [r8 + 0x18]
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x60], rsi
mov rax, rbx
jmp 0x1400178a1
xor eax, eax
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400178c0
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 0x140017a29
cmp word [rcx], 0
je 0x140017a29
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
xor edi, edi
mov word [rbp - 0x20], di
lea rax, vtable.CVolCommonBaseWithMemManager.0
mov qword [rsp + 0x50], rax
lea rsi, vtable.CVolObject.0
mov qword [rsp + 0x50], rsi
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.140018c60
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 0x1400179cb
mov ebx, edi
jmp 0x1400179f3
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]
mov ebx, 1
mov qword [rsp + 0x50], r14
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x140017a10
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 0x140017a2b
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