joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002b184
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.14001ee64
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001ee64
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002b2d4
cmp rax, 0xffffffffffffffff
je 0x14002b2d4
xor edi, edi
test rbp, rbp
jle 0x14002b27f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140019aa0
mov rbx, rax
test rax, rax
jne 0x14002b20c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002b275
mov edx, 0x8000
mov ecx, r14d
call fcn.140016584
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.14001b1d4
cmp eax, 0xffffffff
je 0x14002b255
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14002b21c
mov edx, r15d
mov ecx, r14d
call fcn.140016584
jmp 0x14002b275
cmp byte [rsi + 0x38], dil
je 0x14002b26c
cmp dword [rsi + 0x34], 5
jne 0x14002b26c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002b275
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140019b18
jmp 0x14002b2e8
jns 0x14002b2e8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001ee64
cmp rax, 0xffffffffffffffff
jne 0x14002b2a0
cmp byte [rsi + 0x30], dil
je 0x14002b2e8
mov edi, dword [rsi + 0x2c]
jmp 0x14002b2e8
mov ecx, r14d
call fcn.140023280
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14002b2e8
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 0x14002b2e8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14002b2e1
mov eax, dword [rsi + 0x2c]
jmp 0x14002b2e6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001ee64
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

Function at 0x14002baf0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002bb18
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002bb18
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140b3e210
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140b3e397
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140b3e241
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b3e227
add dl, dl
jne 0x140b3e24e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b3e2ae
xor eax, eax
add dl, dl
jne 0x140b3e25d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b3e365
add dl, dl
jne 0x140b3e26e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b3e27b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b3e288
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b3e295
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140b3e2a2
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140b3e236
mov eax, 1
add dl, dl
jne 0x140b3e2be
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b3e2cb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b3e2b3
sub eax, ebx
mov ebx, 1
jne 0x140b3e304
mov ecx, 1
add dl, dl
jne 0x140b3e2e6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140b3e2f3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b3e2db
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b3e236
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140b3e320
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140b3e32d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b3e315
cmp eax, 0x7d00
jae 0x140b3e353
cmp eax, 0x500
jb 0x140b3e34e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b3e236
cmp eax, 0x7f
ja 0x140b3e356
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b3e236
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140b3e38a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140b3e236
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000770c
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x140007732
mov r8, rdx
mov rdx, qword [rbx]
call fcn.140008200
jmp 0x14000779a
cmp byte [0x14001dd30], 0
jne 0x140007776
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140007766
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001dd28], rax
jmp 0x14000776d
mov rax, qword [0x14001dd28]
mov byte [0x14001dd30], 1
jmp 0x14000777d
mov rax, qword [0x14001dd28]
mov rdx, rdi
mov rcx, qword [rbx]
test rax, rax
je 0x140007793
xor r9d, r9d
mov r8d, dword [rbx + 8]
call rax
jmp 0x14000779a
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140008200
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x140008263
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140008277
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140008277
mov rcx, qword [rbx]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rdi
mov rcx, rsi
call rax
jmp 0x14000827c
cmp dword [rcx + 8], 0
je 0x140008277
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x14000827c
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140008a88
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov rax, qword [0x14001c508]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov r14, r8
mov rbx, rdx
xor edi, edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x70], rdi
xor edx, edx
lea r8d, [rdi + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140008b0c
xor edx, edx
lea r8d, [rdi + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140008b0c
call fcn.140006eb8
mov ebx, eax
jmp 0x140008c17
mov r8, r15
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x140008b2d
call fcn.140006eb8
jmp 0x140008c06
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140008b23
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x140008b68
mov ebx, 0x8007000e
jmp 0x140008c08
mov ecx, eax
test eax, eax
je 0x140008b9a
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140008c4f
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x140008b9a
lea rcx, [rsp + 0x70]
call fcn.140006d48
jmp 0x140008ba4
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x140008bb6
cmp qword [rsp + 0x70], rdi
je 0x140008b5e
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x140008b23
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], di
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1400086bc
mov ebx, eax
test rsi, rsi
je 0x140008c17
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x140008c2e
lea rcx, [rsp + 0x70]
call fcn.14000781c
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.14000df40
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.140001da0
int3
Function at 0x140009524
Capabilities:
Set registry value

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 r14
sub rsp, 0x30
xor ebx, ebx
mov rdi, r8
mov rbp, rdx
mov r14, rcx
test r8, r8
jne 0x140009552
lea eax, [rbx + 0xd]
jmp 0x140009588
mov rsi, rdi
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
inc eax
lea rsi, [rsi + rax*2]
lea ebx, [rbx + rax*2]
cmp eax, 1
jne 0x140009555
mov rcx, qword [r14]
lea r9d, [rax + 6]
mov dword [rsp + 0x28], ebx
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x14000964c
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
xor r9d, r9d
xor ecx, ecx
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x58], rax
test rax, rax
je 0x140009697
lea rax, [rsp + 0x40]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x140007914]
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
setne al
add rsp, 0x30
pop rbx
ret
Function at 0x14000a60c
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
mov rbx, r9
and dword [rsp + 0x58], 0
lea r9, [rsp + 0x58]
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x58]
test eax, eax
mov dword [rbx], ecx
setne al
add rsp, 0x30
pop rbx
ret

Function at 0x14000a688
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
mov rbx, r9
and dword [rsp + 0x58], 0
lea r9, [rsp + 0x58]
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [rsp + 0x58]
test eax, eax
mov dword [rbx], ecx
setne al
add rsp, 0x30
pop rbx
ret

Function at 0x14000c638
Capabilities:
Create directory
Get common file path

Disassembly:
push rbx
sub rsp, 0x450
mov rax, qword [0x14001c508]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rbx, rdx
lea rcx, [rsp + 0x230]
xor edx, edx
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x230]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14000c6e3
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
lea r9, [rsp + 0x20]
xor r8d, r8d
lea rdx, [0x140012fb8]
lea rcx, [rsp + 0x230]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x14000c6e3
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wunlink]
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000c6e3
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.mfc140u.dll_CMFCControlRendererInfo::CMFCControlRendererInfo]
mov al, 1
jmp 0x14000c6e5
xor al, al
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.14000df40
add rsp, 0x450
pop rbx
ret
Function at 0x14000ce88
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x30
mov rsi, rcx
call fcn.14000dbd4
mov rdx, rax
lea rcx, [rbp - 0x10]
call sub.mfc140u.dll_AFX_MAINTAIN_STATE::AFX_MAINTAIN_STATE
lea rcx, [0x14001d180]
call fcn.140004aa8
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call fcn.14000c700
xor r15d, r15d
test al, al
jne 0x14000ced9
mov ebx, 0x80004005
jmp 0x14000cfe7
lea rcx, [rbp + 0x38]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
lea rdx, [rbp + 0x38]
mov rcx, rsi
call fcn.14000c638
test al, al
jne 0x14000cefd
mov ebx, 0x80004005
jmp 0x14000cfdd
mov r9, qword [rsi + 0x10]
mov rcx, r15
mov qword [rbp + 0x40], rcx
test r9, r9
je 0x14000cf2e
mov rax, qword [r9]
lea r8, [rbp + 0x40]
lea rdx, [0x140012f90]
mov rcx, r9
call qword [rax]
mov rcx, qword [rbp + 0x40]
test eax, eax
cmovs rcx, r15
mov qword [rbp + 0x40], rcx
test rcx, rcx
jne 0x14000cf3d
mov ebx, 0x80004005
jmp 0x14000cfd1
mov qword [rbp + 0x48], r15
mov rax, qword [rcx]
lea rdx, [rbp + 0x48]
call qword [rax + 0x98]
test eax, eax
js 0x14000cfb8
mov rdi, qword [rbp + 0x48]
mov rax, qword [rdi]
mov r14, qword [rax + 0x40]
lea rcx, [rbp + 0x38]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator__]
test rax, rax
jne 0x14000d003
mov rbx, r15
mov rdx, rbx
mov rcx, rdi
call r14
test eax, eax
js 0x14000cf94
mov rcx, qword [rbp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x88]
test eax, eax
mov dil, r15b
jns 0x14000cf97
mov dil, 1
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test dil, dil
je 0x14000d019
lea rcx, [rbp + 0x38]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator__]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebx, 0x80004005
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x14000cfcd
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x14000cfdd
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
lea rcx, [rbp + 0x38]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
lea rcx, [rbp - 0x10]
call sub.mfc140u.dll_CMFCRibbonInfo::XRibbonBar::XRibbonBar
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rcx, rax
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
test rax, rax
je 0x14000d048
jmp 0x14000cf73
lea rdx, [rbp + 0x38]
mov rcx, rsi
call fcn.14000c460
lea rcx, [rbp + 0x38]
test al, al
je 0x14000cfa9
call qword [sym.imp.mfc140u.dll_CDumpContext::operator__]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebx, r15d
jmp 0x14000cfbd
mov ecx, 0x8007000e
call fcn.140001da0
int3
Function at 0x14000d410
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
mov r14, rdx
mov rbx, rcx
lea rcx, [rbp - 0x20]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
lea rdx, [rbp - 0x20]
mov rcx, rbx
call fcn.14000d1f0
mov ebx, eax
test eax, eax
js 0x14000d542
lea rcx, [rbp - 0x20]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator__]
mov rcx, rax
lea rdx, [rbp + 0x38]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp eax, 1
jb 0x14000d4c0
mov ecx, esi
call sub.mfc140u.dll_operator
mov rdi, rax
test rax, rax
je 0x14000d4c0
mov ebx, dword [rbp + 0x38]
lea rcx, [rbp - 0x20]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator__]
mov r9, rdi
mov r8d, esi
mov edx, ebx
mov rcx, rax
call sub.VERSION.dll_GetFileVersionInfoW
mov rcx, rdi
test eax, eax
je 0x14000d4bb
and dword [rbp + 0x30], 0
lea r9, [rbp + 0x30]
lea r8, [rbp - 0x10]
lea rdx, str.VarFileInfoTranslation
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x14000d4c7
mov rcx, rdi
call sub.mfc140u.dll_operator_1
mov ebx, 0x80004005
jmp 0x14000d542
lea rcx, [rbp - 0x18]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
mov rax, qword [rbp - 0x10]
movzx r9d, word [rax + 2]
movzx r8d, word [rax]
lea rdx, str.StringFileInfo_04x_04xFileVersion
lea rcx, [rbp - 0x18]
call qword [sym.imp.mfc140u.dll_CMFCZoomKernel::Filter]
lea rcx, [rbp - 0x18]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator__]
mov rdx, rax
lea r9, [rbp + 0x30]
lea r8, [rbp - 8]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x14000d520
mov rcx, rdi
call sub.mfc140u.dll_operator_1
mov ebx, 0x80004005
jmp 0x14000d537
mov rdx, qword [rbp - 8]
mov rcx, r14
call qword [sym.imp.mfc140u.dll_CMFCControlRendererInfo::CMFCControlRendererInfo]
mov rcx, rdi
call sub.mfc140u.dll_operator_1
xor ebx, ebx
lea rcx, [rbp - 0x18]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rbp - 0x20]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400054a0]
mov dword [rax], 1
mov rax, qword [0x1400054b0]
mov dword [rax], 1
mov rax, qword [0x1400054c0]
mov dword [rax], 1
mov rax, qword [0x140005460]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
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 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400016d0
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
call sym.__main
mov dword [rbp - 4], 0
jmp 0x140001744
lea rax, str.copy_nul__random_.exe
mov rcx, rax
call sym.system
mov ecx, 0
call sym.sleep
lea rax, str.copy_nul__random_.bat
mov rcx, rax
call sym.system
mov ecx, 0
call sym.sleep
lea rax, str.copy_nul__random_.png
mov rcx, rax
call sym.system
mov ecx, 0
call sym.sleep
lea rax, str.copy_nul__random_.vbs
mov rcx, rax
call sym.system
add dword [rbp - 4], 1
cmp dword [rbp - 4], 0x3e7
jle 0x1400016e6
mov eax, 0
add rsp, 0x30
pop rbp
ret

Function at 0x140001a90
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop
Function at 0x1409a4058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1409a41df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1409a4089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409a406f
add dl, dl
jne 0x1409a4096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409a40f6
xor eax, eax
add dl, dl
jne 0x1409a40a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409a41ad
add dl, dl
jne 0x1409a40b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409a40c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409a40d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409a40dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1409a40ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1409a407e
mov eax, 1
add dl, dl
jne 0x1409a4106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409a4113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409a40fb
sub eax, ebx
mov ebx, 1
jne 0x1409a414c
mov ecx, 1
add dl, dl
jne 0x1409a412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409a413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409a4123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409a407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1409a4168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409a4175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409a415d
cmp eax, 0x7d00
jae 0x1409a419b
cmp eax, 0x500
jb 0x1409a4196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409a407e
cmp eax, 0x7f
ja 0x1409a419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409a407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1409a41d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1409a407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002a62
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
test rdx, rdx
mov rsi, rcx
mov rbx, rdx
je 0x140002a81
mov rcx, rdx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140021028

Function at 0x1400056cb
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rsi, rcx
mov qword [rsp + 0x28], rdx
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rsp + 0x28]
mov rcx, rsi
mov edx, 1
mov rbx, rax
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rcx, rbx
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.140021028

Function at 0x14000570a
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
cmp qword [0x14014d0f0], 0
jne 0x140005722
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.1400056cb
lea rsi, [rsp + 0x20]
mov rdx, rcx
mov rcx, rsi
call fcn.140005644
mov rbx, qword [rsp + 0x28]
mov rcx, rsi
call qword [0x14014d0f0]
test rbx, rbx
je 0x140005753
test byte [rbx + 7], 0x40
jne 0x140005753
mov rcx, rbx
call fcn.140003aef
lea rcx, [0x140027320]
call fcn.14001bc70
cmp byte [rax], 0
je 0x14000578b
lea rcx, [0x140027220]
mov byte [rax], 0
call fcn.14001bc70
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.140004054
add rsp, 0x38
pop rbx
pop rsi
ret

Function at 0x140005df7
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
lea r12, [0x14014d0c0]
xor ebx, ebx
lea r14, [0x140027320]
lea r13, [rsp + 0x20]
mov rsi, rcx
mov rdi, rdx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbp, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rdi
mov ecx, 1
jl 0x140005e7d
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x14002835b]
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov ecx, 1
call rbp
mov rcx, rax
call fcn.140021028
mov rcx, r12
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rbp
xor r8d, r8d
mov rdx, r13
mov rcx, rax
mov rax, rbx
shl rax, 4
movups xmm0, xmmword [rsi + rax]
movaps xmmword [rsp + 0x20], xmm0
call fcn.140005cd0
mov rcx, r14
call fcn.14001bc70
cmp byte [rax], 0
jne 0x140005eaf
inc rbx
jmp 0x140005e30
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret