joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a220
Capabilities:
Gather firefox profile information
Reference sql statements

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x45a486
sub rsp, 0x50
mov qword [rsp + 0x48], rbp
lea rbp, [rsp + 0x48]
test ebx, ebx
je 0x45a249
mov dword [rsp + 0x60], ebx
lea rcx, [0x007247a0]
jmp 0x45a260
xor eax, eax
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
mov rcx, qword [rcx + 0x210]
nop dword [rax]
test rcx, rcx
je 0x45a297
mov rdx, qword [rcx + 0x118]
cmp rax, rdx
jb 0x45a255
mov rsi, qword [rcx + 0x120]
cmp rax, rsi
jae 0x45a255
movsxd rcx, ebx
lea rax, [rdx + rcx]
cmp rsi, rax
jb 0x45a3f6
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
mov qword [rsp + 0x20], rax
nop
nop
nop
lea rax, [0x00990520]
call fcn.0040c2a0
mov rbx, qword [0x00990530]
lea rax, [0x0076d8e0]
mov ecx, dword [rsp + 0x60]
nop dword [rax]
call fcn.00411520
mov byte [rsp + 0x1f], bl
mov rcx, qword [rax]
mov qword [rsp + 0x38], rcx
nop
nop
nop
lea rax, [0x00990520]
nop dword [rax + rax]
call fcn.0040c4c0
movzx ecx, byte [rsp + 0x1f]
test cl, cl
jne 0x45a356
call fcn.00438580
lea rax, [0x007aac53]
mov ebx, 0x11
nop
call fcn.00438e80
mov eax, dword [rsp + 0x60]
movsxd rax, eax
call fcn.00438ce0
lea rax, [0x007a496a]
mov ebx, 6
nop dword [rax]
call fcn.00438e80
mov rax, qword [rsp + 0x20]
call fcn.00438ce0
lea rax, [0x007a9e85]
mov ebx, 0x10
nop dword [rax + rax]
call fcn.00438e80
call fcn.00438600
lea rax, [0x007247a0]
jmp 0x45a3e0
mov rax, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
mov qword [rsp + 0x40], rax
mov rcx, qword [rax + 0x118]
mov qword [rsp + 0x30], rcx
mov rdx, qword [rax + 0x120]
mov qword [rsp + 0x28], rdx
call fcn.00438580
lea rax, [0x007a5b96]
mov ebx, 7
call fcn.00438e80
mov rax, qword [rsp + 0x30]
nop dword [rax]
call fcn.00438ce0
lea rax, [0x007a6642]
mov ebx, 8
call fcn.00438e80
mov rax, qword [rsp + 0x28]
nop dword [rax + rax]
call fcn.00438ce0
call fcn.004387e0
call fcn.00438600
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x210]
nop dword [rax + rax]
test rax, rax
jne 0x45a365
lea rax, [0x007b5562]
mov ebx, 0x2e
call fcn.00436e00
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rsi
call fcn.00438580
lea rax, [0x007aac53]
mov ebx, 0x11
call fcn.00438e80
mov eax, dword [rsp + 0x60]
movsxd rax, eax
nop dword [rax]
call fcn.00438ce0
lea rax, [0x007a917e]
mov ebx, 0xe
call fcn.00438e80
mov rax, qword [rsp + 0x30]
nop dword [rax + rax]
call fcn.00438ce0
lea rax, [0x007a35f1]
mov ebx, 3
call fcn.00438e80
mov rax, qword [rsp + 0x28]
nop dword [rax + rax]
call fcn.00438ce0
call fcn.004387e0
call fcn.00438600
lea rax, [0x007b19da]
mov ebx, 0x21
nop dword [rax + rax]
call fcn.00436e00
nop
mov qword [rsp + 8], rax
mov dword [rsp + 0x10], ebx
call fcn.00461f00
mov rax, qword [rsp + 8]
mov ebx, dword [rsp + 0x10]
nop dword [rax]
jmp fcn.0045a220
Function at 0x45a4c0
Capabilities:
Gather firefox profile information
Reference sql statements

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x45a74b
sub rsp, 0x50
mov qword [rsp + 0x48], rbp
lea rbp, [rsp + 0x48]
test ebx, ebx
je 0x45a4ee
nop dword [rax]
cmp ebx, 0xffffffff
je 0x45a4ee
lea rcx, [0x007247a0]
jmp 0x45a501
xor eax, eax
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
mov rcx, qword [rcx + 0x210]
test rcx, rcx
je 0x45a51a
cmp qword [rcx + 0x118], rax
ja 0x45a4fa
cmp qword [rcx + 0x120], rax
jbe 0x45a4fa
jmp 0x45a51c
xor ecx, ecx
mov dword [rsp + 0x60], ebx
test rcx, rcx
je 0x45a588
mov qword [rsp + 0x40], rcx
mov rdx, qword [rcx + 0x200]
lea rax, [0x0076dca0]
mov esi, ebx
mov rbx, rdx
mov ecx, esi
nop
call fcn.00411380
mov rax, qword [rax]
test rax, rax
jne 0x45a57e
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rcx + 0x118]
mov ebx, dword [rsp + 0x60]
movsxd rsi, ebx
lea rax, [rdx + rsi]
mov rcx, qword [rcx + 0x120]
cmp rcx, rax
jb 0x45a6c5
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
mov qword [rsp + 0x18], rax
nop
nop
nop
lea rax, [0x00990520]
call fcn.0040c2a0
mov rbx, qword [0x00990530]
lea rax, [0x0076d8e0]
mov ecx, dword [rsp + 0x60]
call fcn.00411380
mov rcx, qword [rax]
mov qword [rsp + 0x30], rcx
nop
nop
nop
lea rax, [0x00990520]
call fcn.0040c4c0
mov rax, qword [rsp + 0x30]
test rax, rax
jne 0x45a633
call fcn.00438580
lea rax, [0x007aac97]
mov ebx, 0x11
call fcn.00438e80
mov eax, dword [rsp + 0x60]
movsxd rax, eax
call fcn.00438ce0
lea rax, [0x007a496a]
mov ebx, 6
call fcn.00438e80
mov rax, qword [rsp + 0x18]
call fcn.00438ce0
lea rax, [0x007a9e85]
mov ebx, 0x10
nop dword [rax]
call fcn.00438e80
call fcn.00438600
lea rax, [0x007247a0]
jmp 0x45a6ab
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
mov qword [rsp + 0x38], rax
mov rcx, qword [rax + 0x118]
mov qword [rsp + 0x28], rcx
mov rdx, qword [rax + 0x120]
mov qword [rsp + 0x20], rdx
call fcn.00438580
lea rax, [0x007a5b96]
mov ebx, 7
call fcn.00438e80
mov rax, qword [rsp + 0x28]
call fcn.00438ce0
lea rax, [0x007a6642]
mov ebx, 8
call fcn.00438e80
mov rax, qword [rsp + 0x20]
call fcn.00438ce0
call fcn.004387e0
call fcn.00438600
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x210]
test rax, rax
jne 0x45a63d
lea rax, [0x007b55ec]
mov ebx, 0x2e
nop dword [rax]
call fcn.00436e00
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rcx
call fcn.00438580
lea rax, [0x007aac97]
mov ebx, 0x11
call fcn.00438e80
mov eax, dword [rsp + 0x60]
movsxd rax, eax
call fcn.00438ce0
lea rax, [0x007a917e]
mov ebx, 0xe
nop dword [rax]
call fcn.00438e80
mov rax, qword [rsp + 0x28]
call fcn.00438ce0
lea rax, [0x007a35f1]
mov ebx, 3
nop dword [rax + rax]
call fcn.00438e80
mov rax, qword [rsp + 0x20]
call fcn.00438ce0
call fcn.004387e0
call fcn.00438600
lea rax, [0x007b1a1c]
mov ebx, 0x21
call fcn.00436e00
nop
mov qword [rsp + 8], rax
mov dword [rsp + 0x10], ebx
call fcn.00461f00
mov rax, qword [rsp + 8]
mov ebx, dword [rsp + 0x10]
jmp fcn.0045a4c0
Function at 0x45d080
Capabilities:
Gather firefox profile information
Reference sql statements

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x45d0c6
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
lea rax, [rsp + 0x20]
call fcn.00436dc0
nop
test rax, rax
jne 0x45d0af
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
lea rax, [0x007b11d5]
mov ebx, 0x20
nop dword [rax + rax]
call fcn.00436e00
nop
call fcn.00461f00
jmp fcn.0045d080

Function at 0x45eee0
Capabilities:
Gather firefox profile information
Reference sql statements

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x20], rbp
lea rbp, [rsp + 0x20]
mov rcx, qword [r14 + 0x30]
inc dword [rcx + 0xd8]
lea rcx, [rsp + 0x30]
nop dword [rax]
cmp qword [r14 + 0x70], rcx
jb 0x45f105
mov qword [rsp + 0x10], r14
mov qword [r14 + 0xa8], 0
mov rcx, qword [r14 + 0x30]
mov rax, qword [rcx + 0xb0]
mov qword [rsp + 0x18], rax
mov qword [rcx + 0xb0], 0
call fcn.004410c0
test al, al
jne 0x45ef65
mov rcx, qword [rsp + 0x10]
mov qword [rcx + 0xd0], 0
cmp byte [0x00997b50], 0
je 0x45f045
mov rax, qword [rsp + 0x18]
jmp 0x45f0c0
cmp byte [0x00997b50], 0
je 0x45efc2
mov rax, qword [rsp + 0x10]
mov rdx, qword [rax + 0x30]
mov rsi, qword [rdx + 0xa0]
mov rdi, qword [rsp + 0x18]
cmp rsi, rdi
jne 0x45ef93
mov edx, dword [rdx + 0x274]
cmp dword [rsi + 0x14], edx
je 0x45efc7
lea rax, fcn.00455a60
mov qword [rsp], rax
nop
call fcn.00461dc0
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rax, qword [rsp + 0x10]
nop
jmp 0x45efc7
mov rax, qword [rsp + 0x10]
mov rdx, qword [rax + 0x30]
mov rdx, qword [rdx + 0xa0]
inc dword [rdx + 0x14]
mov ebx, 3
mov ecx, 2
nop
call fcn.0043b0c0
mov rax, qword [rsp + 0x10]
mov qword [rax + 0x70], 0
mov rdx, qword [rax + 0x30]
dec dword [rdx + 0xd8]
cmp byte [rax + 0xb1], 0
je 0x45f00f
mov qword [rax + 0x10], 0xfffffffffffffade
jmp 0x45f01d
mov rcx, qword [rax]
add rcx, 0x13a0
mov qword [rax + 0x10], rcx
mov byte [rax + 0xb7], 0
cmp byte [0x009924f8], 0
je 0x45f03b
call fcn.00444c00
test al, al
jne 0x45f03b
call fcn.004396c0
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
ret
mov rdx, qword [rcx + 0x30]
dec dword [rdx + 0xd8]
lea rax, vtable.H9.0
call fcn.00461d40
mov rcx, qword [rsp + 0x10]
mov qword [rcx + 0x70], 0
mov rdx, qword [rcx + 0x30]
mov rdx, qword [rdx + 0xa0]
inc dword [rdx + 0x14]
mov byte [rcx + 0xb7], 0
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
ret
nop
lea rax, [0x007bae98]
mov qword [rsp], rax
call fcn.00461dc0
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rax, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rax, rcx
mov rcx, qword [rsp + 0x10]
nop
test rax, rax
je 0x45f0d4
mov rdx, qword [rcx + 0x30]
mov ebx, dword [rax + 0x14]
cmp dword [rdx + 0x274], ebx
je 0x45f087
call fcn.00464000
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x10]
mov qword [rcx + 0xd0], rax
nop dword [rax]
jmp 0x45f045
lea rax, [0x007b5094]
mov ebx, 0x2d
call fcn.00436e00
nop
int3
Function at 0x4640a0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x009e5e60]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x009e5960], 0
je 0x4640d6
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x009e60e0]
aesenc xmm0, xmmword [0x009e60f0]
aesenc xmm0, xmmword [0x009e6100]
movq rax, xmm0
ret
jmp 0x40ac20

Function at 0x466380
Capabilities:
Gather firefox profile information
Reference sql statements

Disassembly:
sub rsp, 0x20
mov qword [rsp + 0x18], rbp
lea rbp, [rsp + 0x18]
mov rbx, qword [0x00736750]
mov rcx, qword [0x00736758]
mov eax, 2
call fcn.004320a0
mov rbp, qword [rsp + 0x18]
add rsp, 0x20
ret
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
jmp 0x43a060
Function at 0x4663a0
Capabilities:
Gather firefox profile information
Reference sql statements

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x43a657
sub rsp, 0x50
mov qword [rsp + 0x48], rbp
lea rbp, [rsp + 0x48]
mov qword [rsp + 0x38], r14
mov dword [0x009924b8], 0x2710
lea rax, [0x007247a0]
jmp 0x43a446
mov qword [rsp + 0x30], rax
call fcn.0044fd40
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx + 0x210]
test rax, rax
jne 0x43a430
call fcn.0044aa00
call fcn.0040cc40
nop
lea rax, [0x009e5c10]
mov ebx, 8
mov rcx, rbx
call fcn.00431d20
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x30]
mov rbx, 0xffffffffffffffff
mov rax, rcx
nop dword [rax]
call fcn.0043a780
call fcn.0043a380
call fcn.00404340
call fcn.0044fb00
call fcn.0045ae40
call fcn.0040b540
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x30]
test byte [rax], al
call fcn.00431dc0
call fcn.004465a0
call fcn.00419e40
nop
nop
lea rax, [0x00992498]
call fcn.0040c2a0
call fcn.00465f20
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rax, qword [rsp]
mov qword [0x00992488], rax
mov eax, dword [0x009e59ac]
mov dword [rsp + 0x1c], eax
mov ebx, 0xa
lea rax, [0x007a78f8]
call fcn.00408a60
call fcn.0044ed40
movsxd rcx, eax
cmp rax, rcx
mov ecx, 0
cmove ecx, eax
sete al
and eax, ebx
nop dword [rax]
test al, al
je 0x43a528
test ecx, ecx
jg 0x43a52c
mov ecx, dword [rsp + 0x1c]
mov eax, ecx
call fcn.00442b20
test rax, rax
jne 0x43a645
nop
nop
lea rax, [0x00992498]
call fcn.0040c4c0
cmp dword [0x009e6000], 1
jle 0x43a585
mov byte [0x009e5e05], 1
mov byte [0x009e5e00], 1
mov rcx, qword [0x009903b0]
mov qword [rsp + 0x40], rcx
mov rdx, qword [0x009903b8]
mov qword [rsp + 0x28], rdx
xor eax, eax
nop dword [rax + rax]
jmp 0x43a638
cmp qword [0x00736778], 0
jne 0x43a5c6
mov qword [0x00736778], 7
cmp dword [0x009e5e00], 0
jne 0x43a5b3
lea rax, [0x007a654b]
mov qword [str.go1.17.5], rax
jmp 0x43a5c6
lea rdi, str.go1.17.5
lea rax, [0x007a654b]
call fcn.00464180
cmp qword [0x007367c8], 1
jne 0x43a5ff
mov qword [0x007367c8], 0
cmp dword [0x009e5e00], 0
jne 0x43a5f1
mov qword [0x007367c0], 0
jmp 0x43a5ff
lea rdi, [0x007367c0]
xor eax, eax
call fcn.00464180
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
mov qword [rsp + 0x20], rax
mov rdx, qword [rcx + rax*8]
test byte [rdx], al
add rdx, 0x16c0
mov rax, rdx
nop
call fcn.0042f360
mov rcx, qword [rsp + 0x20]
lea rax, [rcx + 1]
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x28]
cmp rax, rdx
jl 0x43a609
nop dword [rax]
jmp 0x43a585
lea rax, [0x007b4bbd]
mov ebx, 0x2b
call fcn.00436e00
nop
call fcn.00461f00
nop dword [rax]
jmp 0x43a400
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
jmp 0x43a400
Function at 0x466620
Capabilities:
Gather firefox profile information
Reference sql statements

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
lea rax, [0x007b61e5]
mov ebx, 0x32
call fcn.00436e00
nop
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
jmp 0x45fc40

Function at 0x71a1b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x0097bdc0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x71a1d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x71a1d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x71a1d0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x71a225
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x71a21c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x71a1d0
add rax, 0x28
cmp rax, r9
jne 0x71a208
xor eax, eax
ret

Function at 0x71a230
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x0097bdc0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x71a250
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x71a258
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x71a250
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x71a2e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x0097bdc0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x71a300
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x71a308
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x1809e2000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0x1809e200a
jmp 0x1809e400f
jmp fcn.18066c058
Function at 0x140c5e1b8
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140c5e33f
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 0x140c5e1e9
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c5e1cf
add dl, dl
jne 0x140c5e1f6
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c5e256
xor eax, eax
add dl, dl
jne 0x140c5e205
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c5e30d
add dl, dl
jne 0x140c5e216
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c5e223
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c5e230
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c5e23d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140c5e24a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140c5e1de
mov eax, 1
add dl, dl
jne 0x140c5e266
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c5e273
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c5e25b
sub eax, ebx
mov ebx, 1
jne 0x140c5e2ac
mov ecx, 1
add dl, dl
jne 0x140c5e28e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c5e29b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c5e283
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c5e1de
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140c5e2c8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c5e2d5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c5e2bd
cmp eax, 0x7d00
jae 0x140c5e2fb
cmp eax, 0x500
jb 0x140c5e2f6
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c5e1de
cmp eax, 0x7f
ja 0x140c5e2fe
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c5e1de
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140c5e332
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 0x140c5e1de
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002550
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x260
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea r8, [0x140020b28]
mov edx, 0x66
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
mov rbx, rax
call fcn.140016fc0
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, [0x140020b30]
lea rcx, str.C:windows_temp_
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea rdx, [rsp + 0x40]
lea rcx, str.___MSI_file:__ls_n
call fcn.1400013d0
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rbx
mov rcx, rdi
mov esi, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x40040000
mov dword [rsp + 0x20], 2
mov r8d, 7
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
xor r9d, r9d
mov qword [rsp + 0x20], 0
mov rcx, rax
mov r8d, esi
mov rdx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov ecx, 2
call qword [sym.imp.msi.dll_MsiSetPropertyW]
lea rdx, str.ACTIONINSTALL
lea rcx, [rsp + 0x40]
call qword [sym.imp.msi.dll_MsiOpenDatabaseW]
lea rdx, str.REMOVEALL
lea rcx, [rsp + 0x40]
call qword [sym.imp.msi.dll_MsiOpenDatabaseW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400026f0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140003194
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400031de
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400031de
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400031de
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400031de
cmp dword [rcx + 0x84], 0xe
jbe 0x1400031de
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400031e0
xor al, al
add rsp, 0x28
ret
Function at 0x140005db4
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 0x140005e23
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140005e23
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140005e23
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005e23
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140005e23
cmp dword [rcx + 0x84], 0xe
jbe 0x140005e23
cmp dword [rcx + 0xf8], 0
je 0x140005e23
mov ecx, ebx
call fcn.140005ed4
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.140005cb0
nop
cmp dword [rbp + 0x20], 0
je 0x140005e71
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140005e7c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140005db4

Function at 0x140005fb8
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 0x140005e23
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140005e23
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140005e23
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005e23
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140005e23
cmp dword [rcx + 0x84], 0xe
jbe 0x140005e23
cmp dword [rcx + 0xf8], 0
je 0x140005e23
mov ecx, ebx
call fcn.140005ed4
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.140005cb0
nop
cmp dword [rbp + 0x20], 0
je 0x140005e71
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140005e7c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140005db4
Function at 0x14000fdcc
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 0x14000fe53
mov rsi, rbx
cmp word [rax], bp
je 0x14000fe12
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14000fdfc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14000fdf8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14000cb8c
mov rdi, rax
test rax, rax
je 0x14000fe40
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140017380
mov rbp, rdi
xor ecx, ecx
call fcn.14000bf58
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 0x14001401c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140014032
mov al, 1
jmp 0x140014092
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140014043
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140014090
mov ecx, dword [rcx + 0x18]
nop
call fcn.140010570
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140014090
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140014090
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140014090
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140014092
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140016c40
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140016c68
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140016c68
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140001c50
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001c9a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001c9a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001c9a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001c9a
cmp dword [rcx + 0x84], 0xe
jbe 0x140001c9a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001c9c
xor al, al
add rsp, 0x28
ret