joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400215d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub r8, rdx
movabs rax, 0xcbf29ce484222325
sar r8, 1
mov r9d, 0
add r8, r8
je 0x140021614
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140021600
ret

Function at 0x140021820
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140021854
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140021840
ret

Function at 0x140022990
Capabilities:
Get system firmware table

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor esi, esi
mov ecx, 0xe0
call fcn.140036b7c
mov rbx, rax
mov qword [rsp + 0x28], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 0xf
mov byte [rax], sil
movups xmmword [rax + 0x20], xmm0
mov qword [rax + 0x30], rsi
mov qword [rax + 0x38], 0xf
mov byte [rax + 0x20], sil
movups xmmword [rax + 0x40], xmm0
mov qword [rax + 0x50], rsi
mov qword [rax + 0x58], 0xf
mov byte [rax + 0x40], sil
movups xmmword [rax + 0x60], xmm0
mov qword [rax + 0x70], rsi
mov qword [rax + 0x78], 0xf
mov byte [rax + 0x60], sil
movups xmmword [rax + 0x80], xmm0
mov qword [rax + 0x90], rsi
mov qword [rax + 0x98], 0xf
mov byte [rax + 0x80], sil
movups xmmword [rax + 0xa0], xmm0
mov qword [rax + 0xb0], rsi
mov qword [rax + 0xb8], 0xf
mov byte [rax + 0xa0], sil
movups xmmword [rax + 0xc0], xmm0
mov qword [rax + 0xd0], rsi
mov qword [rax + 0xd8], 0xf
mov byte [rax + 0xc0], sil
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0x52534d42
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
nop
mov qword [rdi], rbx
mov rax, rdi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1400319a0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
mov ebp, 0xfffd
nop word [rax + rax]
movzx ecx, word [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp ax, 9
ja 0x140031a83
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x140031a83
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x140031aa1
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx + 0x10]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx]
cmp rcx, rax
je 0x140031a73
cmp word [rcx], 0x5c
jne 0x140031a6c
lea rdx, [rcx + 2]
cmp rdx, rax
je 0x140031a6c
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140031a57
movzx eax, word [rdx]
sub ax, 0x28
cmp ax, 1
jbe 0x140031a69
test r8b, 0x10
jne 0x140031a6c
movzx eax, word [rdx]
sub ax, 0x7b
test bp, ax
jne 0x140031a6c
mov rcx, rdx
lea rax, [rcx + 2]
mov qword [rbx], rax
mov rcx, rbx
call fcn.1400283b0
test edi, edi
jne 0x1400319d0
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.1400283a0
int3

Function at 0x140032b40
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140032c05
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x140032c05
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x140032c1e
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx + 0x10]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx]
cmp rcx, rax
je 0x140032bf5
cmp byte [rcx], 0x5c
jne 0x140032bee
lea rdx, [rcx + 1]
cmp rdx, rax
je 0x140032bee
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140032bdc
movzx eax, byte [rdx]
sub al, 0x28
cmp al, 1
jbe 0x140032beb
test r8b, 0x10
jne 0x140032bee
movzx eax, byte [rdx]
sub al, 0x7b
test al, 0xfd
jne 0x140032bee
mov rcx, rdx
lea rax, [rcx + 1]
mov qword [rbx], rax
mov rcx, rbx
call fcn.140029080
test edi, edi
jne 0x140032b60
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.1400283a0
int3

Function at 0x1400378e4
Capabilities:
Parse pe header

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

Disassembly:
retf 0x9525
cld
pop r11
jmp 0x140d24d0d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140d24d1d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140d24d05
lea eax, [rcx + 1]
jmp 0x140d24d2b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140d24d3e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140d24d24
sub eax, 3
jb 0x140d24d5e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140d24dad
sar eax, 1
movsxd rbp, eax
jb 0x140d24d94
jmp 0x140d24d6c
add ebx, ebx
jne 0x140d24d6a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140d24d94
inc ecx
add ebx, ebx
jne 0x140d24d7a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140d24d94
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140d24d8d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140d24d7c
add ecx, 2
jmp 0x140d24d99
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140d24cc2
jmp 0x140d24d0d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
sub rsp, 0x28
lea rdi, [rsi + 0xd1c000]
mov eax, dword [rdi]
or eax, eax
je 0x140d24e0d
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xd25000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140d24dbd
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140d24e07
mov qword [rbx], rax
add rbx, 8
jmp 0x140d24ddd
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140d24e51
cmp al, 0xef
ja 0x140d24e39
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140d24e19
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x140d24e28
mov eax, dword [rdi]
add rdi, 4
jmp 0x140d24e28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x21f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.140d24ed0], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.140d24ed0
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140d24ec0
sub rsp, 0xffffffffffffff80
jmp 0x1409beadc
Function at 0x1b722cfa9f4
Capabilities:
Parse pe header

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

Function at 0x1b722cfd634
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 0x1b722cfd6a3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1b722cfd6a3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1b722cfd6a3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1b722cfd6a3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1b722cfd6a3
cmp dword [rcx + 0x84], 0xe
jbe 0x1b722cfd6a3
cmp dword [rcx + 0xf8], 0
je 0x1b722cfd6a3
mov ecx, ebx
call fcn.1b722cfd754
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.1b722cfd530
nop
cmp dword [rbp + 0x20], 0
je 0x1b722cfd6f1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1b722cfd6fc
int3
xor r8d, r8d
xor edx, edx
jmp 0x1b722cfd634

Function at 0x1b722cfd838
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 0x1b722cfd6a3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1b722cfd6a3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1b722cfd6a3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1b722cfd6a3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1b722cfd6a3
cmp dword [rcx + 0x84], 0xe
jbe 0x1b722cfd6a3
cmp dword [rcx + 0xf8], 0
je 0x1b722cfd6a3
mov ecx, ebx
call fcn.1b722cfd754
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.1b722cfd530
nop
cmp dword [rbp + 0x20], 0
je 0x1b722cfd6f1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1b722cfd6fc
int3
xor r8d, r8d
xor edx, edx
jmp 0x1b722cfd634
Function at 0x1b722d06fe8
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1b722d07018
xor eax, eax
jmp 0x1b722d070db
mov rbp, rbx
cmp word [rax], si
je 0x1b722d0703d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1b722d07024
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1b722d07020
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1b722d06f08
movsxd r14, eax
test eax, eax
jne 0x1b722d0707b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1b722d07011
mov rcx, r14
call fcn.1b722d02ff0
mov rdi, rax
test rax, rax
jne 0x1b722d07094
xor ecx, ecx
call fcn.1b722d02378
jmp 0x1b722d07070
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1b722d06f08
test eax, eax
jne 0x1b722d070c5
mov rcx, rdi
call fcn.1b722d02378
jmp 0x1b722d070cf
xor ecx, ecx
call fcn.1b722d02378
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1b722d0b25c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1b722d0b272
mov al, 1
jmp 0x1b722d0b2d2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1b722d0b283
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1b722d0b2d0
mov ecx, dword [rcx + 0x18]
nop
call fcn.1b722d077ec
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1b722d0b2d0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1b722d0b2d0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1b722d0b2d0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1b722d0b2d2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1b722d0cb48
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1b722cffc4c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1b722d0cbd2
cmp byte [rbp - 0x21], r15b
je 0x1b722d0cbcd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1b722d0cc08
call fcn.1b722d025c8
test eax, eax
jne 0x1b722d0cbf4
cmp byte [rbp - 0x21], r15b
je 0x1b722d0cbec
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1b722d0cc08
cmp byte [rbp - 0x21], r15b
je 0x1b722d0cc05
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1b722d05418
test eax, eax
jne 0x1b722d0cca8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1b722cffc4c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1b722d0cc47
cmp byte [rbp - 0x21], r15b
je 0x1b722d0cc7c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1b722d0cc7c
call fcn.1b722d025c8
test eax, eax
jne 0x1b722d0cc68
cmp byte [rbp - 0x21], r15b
je 0x1b722d0cc61
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1b722d0cc7c
cmp byte [rbp - 0x21], r15b
je 0x1b722d0cc79
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1b722d05418
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1b722d0cca8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1b722d0ccab
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1b722d0ccb9
mov rcx, rdi
call fcn.1b722d02378
cmp byte [rbp + 0x3f], r15b
je 0x1b722d0ccc8
mov rcx, qword [rbp + 0x27]
call fcn.1b722d02378
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x1b722d0f230
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1b722d0f258
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1b722d0f258
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1800019e0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov r11, rsp
sub rsp, 0xe8
cmp byte [0x18021d361], 0
mov qword [r11 - 8], rdi
mov rdi, rcx
jne 0x180001ac4
xorps xmm0, xmm0
lea rdx, str.C:Program_Files__x86_MicrosoftEdgeApplicationmsedge.exe
movups xmmword [rsp + 0x70], xmm0
xor eax, eax
xor r9d, r9d
mov qword [r11 - 0x18], rax
xor r8d, r8d
mov qword [rsp + 0x60], rax
xor ecx, ecx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [r11 - 0x78]
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], eax
movups xmmword [r11 - 0x68], xmm0
movups xmmword [r11 - 0x58], xmm0
movups xmmword [r11 - 0x48], xmm0
movups xmmword [r11 - 0x38], xmm0
movups xmmword [r11 - 0x28], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x180001abd
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0xf0], rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x180001ab5
mov rcx, rax
call fcn.180001310
test al, al
jne 0x180001ab5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0xf0]
mov byte [0x18021d361], 1
mov rcx, qword [0x18021d368]
mov qword [0x18021d368], rdi
mov rdi, qword [rsp + 0xe0]
test rcx, rcx
je 0x180001ae9
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
add rsp, 0xe8
ret
Function at 0x140003c24
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub rsp, 0xa0
mov rcx, 0
mov rdx, 0xa68e
mov r8, 0x1000
lea r9, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x140003c75
mov rbx, rax
call 0x140003c58
pop rsi
mov rcx, rax
add rsi, 0x2d2a1
mov rcx, 0xa68e
mov dl, byte [rsi]
mov byte [rbx], dl
inc rsi
inc rbx
loop 0x140003c6a
hlt
mov rbx, rax
call rbx
mov ecx, 1
ret
Function at 0x14000ddc0
Capabilities:
Get common file path
Set registry value

Disassembly:
push rdi
sub rsp, 0x980
mov rax, qword [0x14002a930]
xor rax, rsp
mov qword [rsp + 0x970], rax
lea rcx, [rsp + 0x860]
xor edx, edx
mov r8d, 0x104
call fcn.140013700
lea rcx, [rsp + 0x860]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryA]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x860]
lea rdx, str.PRINK
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
test ecx, ecx
lea rcx, [0x14002d3a0]
jne 0x14000de4b
call fcn.14000fa40
lea rcx, [rsp + 0x40]
lea rdx, str.SOFTWAREPrinkCustomInstall_
test rax, rax
jne 0x14000de68
lea rdx, str.SOFTWAREKODAK_VERITECustomInstall_
jmp 0x14000de68
call fcn.14000fa40
lea rcx, [rsp + 0x40]
lea rdx, str.SOFTWAREWow6432NodePrinkCustomInstall_
test rax, rax
jne 0x14000de68
lea rdx, str.SOFTWAREWow6432NodeKODAK_VERITECustomInstall_
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, [0x14002d180]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rax, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000deff
cmp dword [0x14002e514], 0
lea rax, str.Failure
lea rdx, str.Interrupted
cmove rdx, rax
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rdx
lea r9d, [rax + 1]
xor r8d, r8d
repne scasb al, byte [rdi]
not rcx
and ecx, ecx
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rdx
lea rdx, str.StartInitialSetup
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x970]
xor rcx, rsp
call fcn.14000fef0
add rsp, 0x980
pop rdi
ret
Function at 0x14000df20
Capabilities:
Get common file path
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x980
mov rax, qword [0x14002a930]
xor rax, rsp
mov qword [rsp + 0x970], rax
mov rbx, rcx
lea rcx, [rsp + 0x860]
xor edx, edx
mov r8d, 0x104
call fcn.140013700
lea rcx, [rsp + 0x860]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryA]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x860]
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
test ecx, ecx
jne 0x14000dfd7
lea rdx, str.PRINK
lea rcx, [0x14002d3a0]
call fcn.14000fa40
test rax, rax
je 0x14000dfb1
lea rdx, str.SOFTWAREPrinkCustomInstall_
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x14000dfc3
lea rdx, str.SOFTWAREKODAK_VERITECustomInstall_
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, [0x14002d180]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x14000e027
lea rdx, str.PRINK
lea rcx, [0x14002d3a0]
call fcn.14000fa40
test rax, rax
je 0x14000e003
lea rdx, str.SOFTWAREWow6432NodePrinkCustomInstall_
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x14000e015
lea rdx, str.SOFTWAREWow6432NodeKODAK_VERITECustomInstall_
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, [0x14002d180]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rax, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000e157
or rcx, 0xffffffffffffffff
xor eax, eax
mov qword [rsp + 0x998], rsi
lea rsi, [0x1400253c7]
lea rdx, str.LatestFWVersion
lea r9d, [rax + 1]
mov rdi, rsi
xor r8d, r8d
repne scasb al, byte [rdi]
not rcx
and ecx, ecx
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
lea rdx, str.FWUpdate
lea r9d, [rax + 1]
repne scasb al, byte [rdi]
xor r8d, r8d
not rcx
and ecx, ecx
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
lea rdx, str.LatestFWVersion
lea r9d, [rax + 1]
repne scasb al, byte [rdi]
xor r8d, r8d
not rcx
and ecx, ecx
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [0x14002e520], 0
lea rax, str.FALSE
lea r11, str.TRUE
lea rdx, str.FWUpdate
cmove r11, rax
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r11
lea r9d, [rax + 1]
xor r8d, r8d
repne scasb al, byte [rdi]
not rcx
and ecx, ecx
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x998]
mov rcx, qword [rsp + 0x970]
xor rcx, rsp
call fcn.14000fef0
mov rbx, qword [rsp + 0x9a0]
add rsp, 0x980
pop rdi
ret