joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004a620
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x14004a62b
xor eax, eax
ret
lea r11, [0x14012fe90]
not ecx
cmp r8d, 8
jb 0x14004a701
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x14004a650
test r8d, r8d
je 0x14004a72d
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x14004a710
not ecx
mov eax, ecx
ret

Function at 0x14004b5e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov r10, r8
mov rdi, r9
imul r10d, edx
mov rsi, rdx
cmp byte [r9], 0
mov r11, rcx
je 0x14004b63a
mov rdx, rcx
mov qword [rsp + 0x20], 0
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x48]
mov r8d, r10d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14004b626
mov byte [rdi + 0x10], 1
mov eax, dword [rsp + 0x48]
xor edx, edx
div rsi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov edx, dword [r9 + 0x2c]
mov ecx, dword [r9 + 0x28]
sub ecx, edx
mov qword [rsp + 0x40], rbx
lea eax, [rdx + r10]
cmp eax, dword [r9 + 0x28]
cmovbe ecx, r10d
add rdx, qword [r9 + 0x20]
mov ebx, ecx
mov r8d, ecx
mov rcx, r11
call fcn.14009de10
add dword [rdi + 0x2c], ebx
mov eax, ebx
mov rbx, qword [rsp + 0x40]
xor edx, edx
div rsi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14004b680
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
sub rsp, 0x38
cmp byte [rcx], 0
mov r14, rdx
mov qword [rsp + 0x58], rbp
mov rbx, rcx
mov qword [rsp + 0x30], rdi
mov edi, 1
je 0x14004b6d0
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x60]
mov r8d, edi
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14004b6ca
mov byte [rbx + 0x10], dil
mov ebp, dword [rsp + 0x60]
jmp 0x14004b707
mov qword [rsp + 0x68], rsi
mov esi, dword [rcx + 0x2c]
mov ecx, dword [rcx + 0x28]
lea eax, [rsi + 1]
cmp eax, ecx
jbe 0x14004b6e6
mov edi, ecx
sub edi, esi
mov rdx, rsi
mov r8d, edi
add rdx, qword [rbx + 0x20]
lea rcx, [rsp + 0x50]
mov ebp, edi
call fcn.14009de10
lea eax, [rsi + rdi]
mov rsi, qword [rsp + 0x68]
mov dword [rbx + 0x2c], eax
mov rdi, qword [rsp + 0x30]
cmp ebp, 1
mov rbp, qword [rsp + 0x58]
jne 0x14004b728
movzx eax, byte [rsp + 0x50]
mov dword [r14], eax
xor eax, eax
add rsp, 0x38
pop r14
pop rbx
ret
cmp byte [rbx], 0
je 0x14004b71e
cmp byte [rbx + 0x10], 0
je 0x14004b71e
mov eax, 0xffffffff
add rsp, 0x38
pop r14
pop rbx
ret
Function at 0x14004c9a0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x14004cba6
cmp dword [rcx + 0x1c], 0
je 0x14004cba6
cmp qword [rcx + 0x80], 0
je 0x14004c9cf
call fcn.14004d060
lea r9, [rsp + 0x50]
mov rcx, rdi
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x58]
call fcn.14004c6f0
test eax, eax
je 0x14004c9f6
mov eax, 0xffffff99
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0xb0
mov qword [rsp + 0x48], rbx
call fcn.1400def74
mov rbx, rax
test rax, rax
jne 0x14004ca1c
lea eax, [rbx - 0x68]
mov rbx, qword [rsp + 0x48]
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0x4000
mov qword [rsp + 0x20], rbp
call fcn.1400def74
mov ecx, dword [rsp + 0x40]
xor ebp, ebp
mov dword [rbx + 0x68], ecx
mov ecx, dword [rsp + 0x50]
mov dword [rbx + 0x6c], ecx
mov qword [rbx], rax
mov dword [rbx + 0x70], ebp
test rax, rax
jne 0x14004ca62
mov rcx, rbx
call fcn.1400aedd0
mov rbx, qword [rsp + 0x48]
lea eax, [rbp - 0x68]
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov eax, dword [rdi + 0x40]
mov ecx, dword [rdi + 0x38]
mov dword [rbx + 0x78], eax
mov rax, qword [rdi]
mov qword [rbx + 0x88], rax
mov eax, dword [rdi + 0x10]
mov dword [rbx + 0x94], eax
mov dword [rbx + 0x64], ebp
mov dword [rbx + 0x74], ebp
mov dword [rbx + 0x90], ecx
mov dword [rbx + 0x24], ebp
test ecx, ecx
je 0x14004cab1
lea rcx, [rbx + 8]
mov qword [rbx + 0x38], rbp
mov qword [rbx + 0x40], rbp
mov qword [rbx + 0x48], rbp
call fcn.14004abb0
test eax, eax
jne 0x14004cab1
mov dword [rbx + 0x64], 1
mov eax, dword [rdi + 0x44]
movzx ecx, byte [rdi + 0x34]
mov dword [rbx + 0x7c], eax
and cl, 1
mov eax, dword [rdi + 0x48]
mov dword [rbx + 0x80], eax
mov eax, dword [rdi + 0x34]
shr eax, 3
mov byte [rbx + 0x98], cl
test al, 1
je 0x14004cadd
movzx eax, byte [rdi + 0x3d]
jmp 0x14004cae1
movzx eax, byte [rdi + 0x43]
mov byte [rbx + 0xac], al
neg cl
mov dword [rbx + 0x9c], 0x12345678
sbb eax, eax
mov dword [rbx + 0xa0], 0x23456789
and eax, 0xc
mov dword [rbx + 0xa4], 0x34567890
mov dword [rbx + 0xa8], eax
test rsi, rsi
je 0x14004cb7a
lea r8, [0x14012fe90]
nop
movzx eax, byte [rsi]
test al, al
je 0x14004cb7a
mov edx, dword [rbx + 0x9c]
xor rax, rdx
movzx ecx, al
shr edx, 8
xor edx, dword [r8 + rcx*4]
mov ecx, dword [rbx + 0xa4]
movzx eax, dl
add eax, dword [rbx + 0xa0]
mov dword [rbx + 0x9c], edx
imul edx, eax, 0x8088405
movzx eax, cl
shr ecx, 8
inc edx
mov dword [rbx + 0xa0], edx
shr rdx, 0x18
xor rax, rdx
xor ecx, dword [r8 + rax*4]
mov dword [rbx + 0xa4], ecx
add rsi, 1
jne 0x14004cb20
mov eax, dword [rsp + 0x58]
mov ecx, dword [rdi + 0x7c]
add eax, 0x1e
add ecx, eax
mov dword [rbx + 0x10], ebp
mov rbp, qword [rsp + 0x20]
xor eax, eax
mov dword [rbx + 0x60], ecx
mov qword [rdi + 0x80], rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x28
pop rdi
pop rsi
ret
mov eax, 0xffffff9a
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x14004d350
Capabilities:
Get common file path

Disassembly:
mov dword [rsp + 0x18], r8d
push rbp
push r13
push r14
sub rsp, 0x50
cmp qword [rcx], 0
mov ebp, r9d
mov r13, rdx
mov r14, rcx
jne 0x14004d53f
cmp dword [rcx + 8], 0xffffffff
jne 0x14004d53f
mov qword [rsp + 0x70], rbx
lea rbx, [rcx + 0x250]
mov rdx, rbx
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x14004d3a0
movzx ecx, word [r14 + rax*2 + 0x24e]
cmp cx, 0x5c
je 0x14004d3d8
cmp cx, 0x2f
je 0x14004d3d8
sub rbx, 2
cmp word [rbx + 2], 0
lea rbx, [rbx + 2]
jne 0x14004d3c5
mov eax, dword [0x14012e6c4]
mov dword [rbx], eax
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x88], rdi
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r15
cmp ebp, 1
jne 0x14004d435
mov r9d, ebp
xor r8d, r8d
xor edx, edx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x14004d446
mov eax, 0x2000000
mov r12, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x78]
mov r15, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop r14
pop r13
pop rbp
ret
lea eax, [rbp - 2]
cmp eax, 1
jbe 0x14004d446
mov ecx, 0x10000
mov eax, ecx
jmp 0x14004d40f
xor edi, edi
xor r12b, r12b
xor r15b, r15b
mov esi, edi
cmp ebp, 1
je 0x14004d49e
cmp ebp, 2
jne 0x14004d4bc
mov qword [rsp + 0x30], rdi
lea r8d, [rdi + 1]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14004d499
mov ecx, 0x200
mov eax, ecx
jmp 0x14004d40f
mov r15b, 1
jmp 0x14004d4a1
mov rsi, r13
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
setne r12b
mov ecx, gethostbyname
call fcn.14009b4d4
lea ecx, [rbp - 1]
mov rbx, rax
cmp ecx, 1
jbe 0x14004d4f0
mov word [rax], 0x100
mov byte [rax + 0x18], dil
mov qword [rax + 0x20], r13
mov eax, dword [rsp + 0x80]
mov dword [rbx + 0x28], eax
mov dword [rbx + 0x2c], edi
mov dword [rbx + 0x14], edi
jmp 0x14004d522
mov byte [rax], 1
mov byte [rax + 0x18], r15b
mov byte [rax + 1], r12b
mov qword [rax + 8], rsi
mov byte [rax + 0x10], dil
mov dword [rax + 0x14], edi
test r12b, r12b
je 0x14004d522
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbx + 0x14], eax
mov rcx, rbx
call fcn.14004bb40
test rax, rax
mov qword [r14], rax
mov ecx, 0x200
cmove edi, ecx
mov eax, edi
jmp 0x14004d40f
mov eax, 0x1000000
add rsp, 0x50
pop r14
pop r13
pop rbp
ret
Function at 0x14004de10
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbx
push rdi
sub rsp, 0x458
mov rax, qword [0x14015a038]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
je 0x14004de4d
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14004de4d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [rdi]
test ax, ax
je 0x14004df5e
mov qword [rsp + 0x480], rbp
mov rdx, rdi
mov rcx, rdi
cmp ax, 0x2f
je 0x14004de73
cmp ax, 0x5c
jne 0x14004de76
mov rdx, rcx
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x14004de67
xor ebp, ebp
mov qword [rsp + 0x450], rsi
cmp rdx, rdi
je 0x14004ded4
sub rdx, rdi
lea rcx, [rsp + 0x230]
sar rdx, 1
lea rsi, [rdx + rdx]
mov rdx, rdi
mov r8, rsi
call fcn.14009de10
cmp rsi, 0x208
jae 0x14004df78
lea rdx, [rsp + 0x230]
mov word [rsp + rsi + 0x230], bp
mov rcx, rbx
call fcn.14004de10
mov word [rsp + 0x20], bp
test rbx, rbx
je 0x14004df00
lea rcx, [rsp + 0x20]
sub rcx, rbx
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rcx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x14004def0
lea rcx, [rsp + 0x20]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], bp
lea rcx, [rcx + 2]
jne 0x14004df10
xor edx, edx
nop dword [rax]
movzx eax, word [rdi + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x14004df20
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14004df4e
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rsi, qword [rsp + 0x450]
mov rbp, qword [rsp + 0x480]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.14009b5b0
add rsp, 0x458
pop rdi
pop rbx
ret
call fcn.14009bfe8
int3
Function at 0x140053450
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x14015a038]
xor rax, rsp
mov qword [rbp - 8], rax
mov r14, qword [rbp + 0x40]
mov rsi, rdx
lea rdx, [rbp - 0x38]
mov rdi, r9
call fcn.140052f50
movzx r8d, byte [rbp - 0x38]
lea rdx, [rsi + 1]
xor r8b, byte [rbp - 0x37]
mov r9d, 8
xor r8b, byte [rbp - 0x36]
mov r10d, r9d
xor r8b, byte [rbp - 0x35]
xor r8b, byte [rbp - 0x34]
xor r8b, byte [rbp - 0x33]
xor r8b, byte [rbp - 0x32]
xor r8b, byte [rbp - 0x31]
movzx r11d, r8b
xor r11b, byte [rsi]
xor ebx, ebx
mov ecx, ebx
nop
movzx eax, r11b
lea rcx, [rcx + 1]
xor al, byte [rdx]
lea rdx, [rdx + 1]
sub al, r8b
xor al, byte [rbp + rcx - 0x39]
mov byte [rbp + rcx - 0x29], al
sub r10, 1
jne 0x1400534c0
movzx edx, byte [rbp - 0x30]
lea r8, [rsi + 0xa]
xor dl, byte [rbp - 0x2f]
mov rcx, rbx
xor dl, byte [rbp - 0x2e]
xor dl, byte [rbp - 0x2d]
xor dl, byte [rbp - 0x2c]
xor dl, byte [rbp - 0x2b]
xor dl, byte [rbp - 0x2a]
xor dl, byte [rbp - 0x29]
movzx r10d, dl
xor r10b, byte [rsi + 9]
nop word [rax + rax]
movzx eax, r10b
lea rcx, [rcx + 1]
xor al, byte [r8]
lea r8, [r8 + 1]
sub al, dl
xor al, byte [rbp + rcx - 0x31]
mov byte [rbp + rcx - 0x21], al
sub r9, 1
jne 0x140053510
mov dword [rbp - 0x40], ebx
mov ecx, ebx
mov rax, rbx
nop word [rax + rax]
cmp rax, 9
jae 0x140053628
mov byte [rbp + rax - 0x18], bl
inc ecx
inc rax
cmp ecx, 9
jb 0x140053540
movzx eax, byte [rbp - 0x28]
lea r8, [rbp - 0x40]
mov byte [rbp - 0x38], al
lea rdx, [0x1401388bc]
movzx eax, byte [rbp - 0x27]
lea rcx, [rbp - 0x18]
mov byte [rbp - 0x18], al
movzx eax, byte [rbp - 0x26]
mov byte [rbp - 0x37], al
movzx eax, byte [rbp - 0x25]
mov byte [rbp - 0x17], al
movzx eax, byte [rbp - 0x24]
mov byte [rbp - 0x36], al
movzx eax, byte [rbp - 0x23]
mov byte [rbp - 0x16], al
movzx eax, byte [rbp - 0x22]
mov byte [rbp - 0x35], al
movzx eax, byte [rbp - 0x21]
mov byte [rbp - 0x15], al
movzx eax, byte [rbp - 0x20]
mov byte [rbp - 0x34], al
movzx eax, byte [rbp - 0x1f]
mov byte [rbp - 0x14], al
movzx eax, byte [rbp - 0x1e]
mov byte [rbp - 0x33], al
movzx eax, byte [rbp - 0x1d]
mov byte [rbp - 0x13], al
movzx eax, byte [rbp - 0x1c]
mov byte [rbp - 0x32], al
movzx eax, byte [rbp - 0x1b]
mov byte [rbp - 0x12], al
movzx eax, byte [rbp - 0x1a]
mov byte [rbp - 0x31], al
movzx eax, byte [rbp - 0x19]
mov byte [rbp - 0x11], al
call fcn.140053840
lea rax, [rbp - 0x38]
sub rdi, rax
lea rcx, [rbp - 0x38]
movzx eax, byte [rcx]
cmp byte [rdi + rcx], al
jne 0x1400535f9
inc ebx
inc rcx
cmp ebx, 8
jb 0x1400535e7
cmp ebx, 8
sete al
jne 0x140053607
mov ecx, dword [rbp - 0x40]
mov dword [r14], ecx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14009b5b0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.14009bfe8
int3
Function at 0x1400607f0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
movzx eax, word [rdx + 0x14]
xor r9d, r9d
movzx r11d, word [rdx + 6]
add rax, 0x18
add rax, rdx
mov rbx, r8
test r11d, r11d
je 0x14006082f
mov r8d, dword [rax + 0xc]
cmp ecx, r8d
jb 0x140060823
mov edx, dword [rax + 8]
add edx, r8d
cmp ecx, edx
jb 0x140060837
inc r9d
add rax, 0x28
cmp r9d, r11d
jb 0x140060810
xor eax, eax
mov rbx, qword [rsp + 8]
ret
mov eax, dword [rax + 0x14]
sub eax, r8d
add eax, ecx
add rax, rbx
mov rbx, qword [rsp + 8]
ret

Function at 0x140060850
Capabilities:
Parse pe header

Disassembly:
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r15, rdx
xor r12d, r12d
mov qword [rsp + 0x30], r12
mov r13d, 1
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov r8d, r13d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
xor sil, sil
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x1400609b3
mov qword [rsp + 0x28], r12
lea r8d, [r12 + 2]
xor r9d, r9d
mov dword [rsp + 0x20], r12d
xor edx, edx
mov qword [rsp + 0x78], rbp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbp, rax
test rax, rax
je 0x1400609a5
xor r9d, r9d
mov qword [rsp + 0x70], rbx
xor r8d, r8d
mov qword [rsp + 0x20], r12
lea edx, [r12 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
test rax, rax
je 0x140060997
mov eax, 0x5a4d
cmp ax, word [rbx]
jne 0x14006098e
mov qword [rsp + 0x80], rdi
movsxd rdi, dword [rbx + 0x3c]
add rdi, rbx
cmp dword [rdi], 0x4550
jne 0x140060986
mov r8, r15
mov rdx, rdi
mov rcx, rbx
call fcn.140060cd0
test al, al
je 0x140060935
movzx esi, r13b
jmp 0x140060986
mov ecx, dword [rdi + 0x88]
test ecx, ecx
je 0x140060986
mov r8, rbx
mov rdx, rdi
call fcn.1400607f0
lea rdx, [r15 + 0x30]
mov r9d, eax
mov qword [rsp + 0x38], rdx
lea rcx, [0x14013a3c8]
mov word [rsp + 0x30], 0x69
mov r8, rax
mov qword [rsp + 0x28], rcx
mov rdx, rbx
mov rcx, rdi
mov dword [rsp + 0x20], r12d
call fcn.1400609d0
test al, al
movzx esi, sil
cmovne esi, r13d
mov rdi, qword [rsp + 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x70]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x78]
movzx eax, sil
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
Function at 0x140066d68
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov rdi, rcx
and dword [rbp - 0x20], 0
mov edx, 0x1c
call fcn.140018a30
mov dword [rbp - 0x20], 3
lea rcx, str.SpreadsheetToolsempty.xls
call fcn.1400acf68
mov r8, rax
lea rdx, str.SpreadsheetToolsempty.xls
mov rcx, rdi
call fcn.14000b610
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140066dc3
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140066f23
call fcn.14006b8c4
mov rbx, rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
and qword [rbp - 8], 0
lea r8, str.RT_ZIPPED_DATA
mov edx, 0x7f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x140066ea8
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r14d, eax
test eax, eax
je 0x140066ea8
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140066ea8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r15, rax
test rax, rax
je 0x140066ea8
mov r8, qword [rbp - 0x10]
mov rcx, r8
mov r9, qword [rbp - 0x18]
sub rcx, r9
cmp r14, rcx
jae 0x140066e5e
lea rcx, [r14 + r9]
mov qword [rbp - 0x10], rcx
jmp 0x140066e9a
jbe 0x140066e9a
mov rax, qword [rbp - 8]
sub rax, r9
cmp r14, rax
jbe 0x140066e7e
lea r8, [rbp + 0x38]
mov rdx, r14
lea rcx, [rbp - 0x18]
call fcn.140019c40
jmp 0x140066e96
mov rbx, r14
sub rbx, rcx
add rbx, r8
mov rdx, rbx
mov rcx, r8
call fcn.140019d50
mov qword [rbp - 0x10], rbx
mov r9, qword [rbp - 0x18]
mov r8, r14
mov rdx, r15
mov rcx, r9
call fcn.14009de10
mov rcx, qword [rbp - 0x18]
cmp rcx, qword [rbp - 0x10]
je 0x140066ef1
lea rcx, [rbp + 0x38]
call fcn.14002bed0
nop
mov r9, rdi
cmp qword [rdi + 0x18], 8
jb 0x140066ec9
mov r9, qword [rdi]
mov r8, qword [rbp - 0x10]
mov rdx, qword [rbp - 0x18]
sub r8, rdx
and qword [rsp + 0x20], 0
lea rcx, [rbp + 0x38]
call fcn.14002c310
nop
lea rcx, [rbp + 0x38]
call fcn.14002bee0
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140066f23
mov rdx, qword [rbp - 8]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140066f1e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140066f3a
call fcn.14009b510
mov rax, rdi
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.1400ac408
int3
Function at 0x1400674bc
Capabilities:
Delete registry key

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x48]
sub rsp, 0x130
mov rax, qword [0x14015a038]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov rsi, rcx
mov ebx, 1
lea rcx, [rbp - 0x70]
call fcn.14002d620
nop
lea rcx, [rbp - 0x70]
call fcn.14002e260
xor r14d, r14d
test eax, eax
je 0x1400676cc
mov qword [rsp + 0x70], r14
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], r14w
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 8
cmovae rdx, qword [rbp - 0x10]
mov r8, qword [rbp]
lea rcx, [rsp + 0x70]
call fcn.1400123a0
lea rcx, str.ExcelResiliencyDisabledItems
call fcn.1400acf68
mov r8, rax
lea rdx, str.ExcelResiliencyDisabledItems
lea rcx, [rsp + 0x70]
call fcn.14000b610
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rdx, qword [rsp + 0x70]
mov r9d, ebx
mov r15, 0xffffffff80000001
mov r8, r15
lea rcx, [rsp + 0x20]
call fcn.140010d80
mov edi, r14d
mov rcx, qword [rsp + 0x20]
test rcx, rcx
cmovne edi, ebx
je 0x14006759e
call qword [rsp + 0x38]
nop
test edi, edi
jne 0x140067614
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 8
cmovae rdx, qword [rbp - 0x10]
mov r8, qword [rbp]
lea rcx, [rsp + 0x70]
call fcn.1400123a0
lea rcx, str.ExcelResiliencyStartupItems
call fcn.1400acf68
mov r8, rax
lea rdx, str.ExcelResiliencyStartupItems
lea rcx, [rsp + 0x70]
call fcn.14000b610
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rdx, qword [rsp + 0x70]
mov r9d, ebx
mov r8, r15
lea rcx, [rsp + 0x20]
call fcn.140010d80
mov rcx, qword [rsp + 0x20]
test rcx, rcx
cmovne edi, ebx
je 0x140067610
call qword [rsp + 0x38]
nop
test edi, edi
je 0x14006768e
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 8
cmovae rdx, qword [rbp - 0x10]
mov r8, qword [rbp]
lea rcx, [rsp + 0x70]
call fcn.1400123a0
lea rcx, str.ExcelResiliency
call fcn.1400acf68
mov r8, rax
lea rdx, str.ExcelResiliency
lea rcx, [rsp + 0x70]
call fcn.14000b610
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rdx, qword [rsp + 0x70]
mov rcx, r15
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
je 0x14006768e
lea rcx, str.Data_can_not_be_removed_from_Registry.
call fcn.1400acf68
mov r8, rax
lea rdx, str.Data_can_not_be_removed_from_Registry.
mov rcx, rsi
call fcn.1400123a0
mov ebx, r14d
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x1400676cc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400676c6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140067700
call fcn.14009b510
nop
lea rcx, [rbp - 0x70]
call fcn.14002dca0
mov eax, ebx
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.14009b5b0
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.1400ac408
nop
int3
Function at 0x1400677e4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xd0
mov rax, qword [0x14015a038]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r14, rdx
mov r13, rcx
xor edi, edi
call fcn.14006b8c4
mov rbx, rax
lea r8, [0x14011ccd4]
lea edx, [rdi + 0x7d]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x1400679a0
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r15d, eax
test eax, eax
je 0x1400679a0
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400679a0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r12, rax
test rax, rax
je 0x1400679a0
lea rcx, [rsp + 0x28]
call fcn.1400332e0
nop
mov r8, qword [rbp - 0x79]
mov rdx, r8
mov rcx, qword [rsp + 0x28]
sub rdx, rcx
cmp r15, rdx
jae 0x1400678a7
lea rax, [rcx + r15]
mov qword [rbp - 0x79], rax
jmp 0x1400678e6
jbe 0x1400678e6
mov rax, qword [rbp - 0x71]
sub rax, rcx
cmp r15, rax
jbe 0x1400678c9
lea r8, [rsp + 0x20]
mov rdx, r15
lea rcx, [rsp + 0x28]
call fcn.140019c40
jmp 0x1400678e1
mov rbx, r15
sub rbx, rdx
add rbx, r8
mov rdx, rbx
mov rcx, r8
call fcn.140019d50
mov qword [rbp - 0x79], rbx
mov rcx, qword [rsp + 0x28]
mov r8, r15
mov rdx, r12
call fcn.14009de10
lea rcx, [rbp - 0x31]
call fcn.1400373d0
nop
lea rdx, [rsp + 0x28]
lea rcx, [rbp - 0x31]
call fcn.140037890
test eax, eax
je 0x14006798c
mov rdx, r14
lea rcx, [rsp + 0x28]
call fcn.140033e30
mov rdx, r14
lea rcx, [rbp - 0x61]
call fcn.140002040
nop
cmp byte [r14 + 4], dil
jne 0x14006797f
xor edx, edx
lea rcx, [rbp - 0x61]
call fcn.140004490
test al, al
jne 0x14006797f
cmp qword [rbp - 0x41], rdi
je 0x140067982
mov rdx, r13
lea rcx, [rbp - 9]
call fcn.14006b630
cmp qword [rax + 0x18], 8
jb 0x140067958
mov rax, qword [rax]
lea rcx, [rbp - 0x51]
cmp qword [rbp - 0x39], 8
cmovae rcx, qword [rbp - 0x51]
mov r8d, 0x1010
mov rdx, rax
call fcn.14006b5bc
lea rcx, [rbp - 9]
call fcn.140012640
jmp 0x140067982
mov dil, 1
lea rcx, [rbp - 0x61]
call fcn.140002080
nop
lea rcx, [rbp - 0x31]
call fcn.140037470
nop
lea rcx, [rsp + 0x28]
call fcn.140033300
mov al, dil
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.14009b5b0
mov rbx, qword [rsp + 0x120]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret