joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003b6f0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x14003b72f
mov rax, qword [rbp - 0x20]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x1400291b0]
mov qword [rbp - 0x28], rax
lea rax, [0x1412fe6a8]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, [0x1412fe6e0]
lea rcx, [rbp - 0x60]
call fcn.1400509b0
ud2

Function at 0x14003d630
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
cmp qword [rdx], 0
jne 0x14003d787
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx + 8]
test rax, rax
jne 0x14003d668
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x14003d74a
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x14003d769
sub rax, rdx
add rdx, qword [rbx]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x2c], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x2c]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003d6cb
mov ecx, dword [rsp + 0x2c]
mov eax, 2
test rcx, rcx
je 0x14003d6f4
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov byte [rsi + 1], 1
xor eax, eax
jmp 0x14003d736
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rsp + 0x40], rcx
cmp eax, 0x6d
je 0x14003d6fc
cmp eax, 0x3e5
jne 0x14003d730
lea rax, [rsp + 0x30]
jmp 0x14003d70a
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x14003d736
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x38]
mov qword [rax], 0
lea rcx, [rsp + 0x40]
call fcn.140022b70
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test rax, rax
je 0x14003d740
cmp rax, 1
je 0x14003d6b2
mov qword [rsi + 8], rcx
mov al, 1
mov byte [rsi], al
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov eax, 1
jmp 0x14003d6bc
mov r8d, 0x10
mov rcx, rbx
call fcn.140050820
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x14003d675
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.140050820
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
jmp 0x14003d675
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140051c80
ud2

Function at 0x140046bfc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400469f8
Function at 0x140049cbc
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 0x140049cec
xor eax, eax
jmp 0x140049daf
mov rbp, rbx
cmp word [rax], si
je 0x140049d11
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140049cf8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140049cf4
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.140049bdc
movsxd r14, eax
test eax, eax
jne 0x140049d4f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140049ce5
mov rcx, r14
call fcn.14004ab98
mov rdi, rax
test rax, rax
jne 0x140049d68
xor ecx, ecx
call fcn.14004823c
jmp 0x140049d44
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.140049bdc
test eax, eax
jne 0x140049d99
mov rcx, rdi
call fcn.14004823c
jmp 0x140049da3
xor ecx, ecx
call fcn.14004823c
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 0x14004d2a0
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.140048cac
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14004d32a
cmp byte [rbp - 0x21], r15b
je 0x14004d325
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14004d360
call fcn.14004b3a8
test eax, eax
jne 0x14004d34c
cmp byte [rbp - 0x21], r15b
je 0x14004d344
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14004d360
cmp byte [rbp - 0x21], r15b
je 0x14004d35d
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.14004828c
test eax, eax
jne 0x14004d400
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140048cac
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14004d39f
cmp byte [rbp - 0x21], r15b
je 0x14004d3d4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14004d3d4
call fcn.14004b3a8
test eax, eax
jne 0x14004d3c0
cmp byte [rbp - 0x21], r15b
je 0x14004d3b9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14004d3d4
cmp byte [rbp - 0x21], r15b
je 0x14004d3d1
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.14004828c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14004d400
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14004d403
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14004d411
mov rcx, rdi
call fcn.14004823c
cmp byte [rbp + 0x3f], r15b
je 0x14004d420
mov rcx, qword [rbp + 0x27]
call fcn.14004823c
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 0x180008e40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add byte [rcx - 0x48], al
add dword [rax], eax
add byte [rax], al
mov rcx, r12
call rax
mov qword [rsp + 0x48], rax
mov esi, dword [0x18008d321]
mov r14d, dword [0x18008d315]
mov eax, dword [0x18008d2f9]
movsxd rdx, dword [rbx + 0x3c]
mov eax, eax
lea rax, [rbx + rax*8 + 0x80]
mov eax, dword [rdx + rax + 8]
add rax, rbx
mov qword [rsp + 0x50], rax
mov r13d, dword [rax + 0x20]
mov eax, dword [rax + 0x18]
test eax, eax
je 0x180008f84
lea r15d, [rax - 1]
mov ebp, 0
add r13, rbx
jmp 0x180008ec9
mov eax, 0
cmp r14d, eax
je 0x180008f00
lea rax, [rbp + 1]
cmp rbp, r15
je 0x180008f7d
mov rbp, rax
mov edi, dword [r13 + rbp*4]
add rdi, rbx
mov rcx, rdi
call fcn.180008b8a
test eax, eax
je 0x180008eaf
mov rdx, rdi
lea eax, [rax - 1]
lea r8, [rdi + rax + 1]
mov eax, 0
imul eax, esi
movzx ecx, byte [rdx]
add eax, ecx
add rdx, 1
cmp rdx, r8
jne 0x180008eed
jmp 0x180008eb4
mov rdi, qword [rsp + 0x50]
mov eax, dword [rdi + 0x24]
lea rdx, [rbx + rbp*2]
movzx edx, word [rdx + rax]
mov eax, dword [rdi + 0x1c]
lea rdx, [rbx + rdx*4]
mov eax, dword [rdx + rax]
add rax, rbx
mov edx, 0
mov rcx, qword [rsp + 0x48]
call rax
mov dword [rsp + 0x50], eax
mov eax, dword [0x18008d2f9]
mov esi, dword [0x18008d321]
mov r14d, dword [0x18008d329]
mov eax, dword [0x18008d2f9]
movsxd rdx, dword [rbx + 0x3c]
mov eax, eax
lea rax, [rbx + rax*8 + 0x80]
mov eax, dword [rdx + rax + 8]
add rax, rbx
mov qword [rsp + 0x58], rax
mov r13d, dword [rax + 0x20]
mov eax, dword [rax + 0x18]
test eax, eax
je 0x1800090fa
lea r15d, [rax - 1]
mov ebp, 0
add r13, rbx
jmp 0x180008fa5
mov eax, 0
jmp 0x180008f1d
mov eax, 0
jmp 0x180008f1d
mov eax, 0
cmp r14d, eax
je 0x180008fdc
lea rax, [rbp + 1]
cmp rbp, r15
je 0x1800090f0
mov rbp, rax
mov edi, dword [r13 + rbp*4]
add rdi, rbx
mov rcx, rdi
call fcn.180008b8a
test eax, eax
je 0x180008f8b
mov rdx, rdi
lea eax, [rax - 1]
lea r8, [rdi + rax + 1]
mov eax, 0
imul eax, esi
movzx ecx, byte [rdx]
add eax, ecx
add rdx, 1
cmp r8, rdx
jne 0x180008fc9
jmp 0x180008f90
mov rdi, qword [rsp + 0x58]
mov eax, dword [rdi + 0x24]
lea rdx, [rbx + rbp*2]
movzx edx, word [rdx + rax]
mov eax, dword [rdi + 0x1c]
lea rdx, [rbx + rdx*4]
mov eax, dword [rdx + rax]
add rax, rbx
mov dword [rsp + 0x7c], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x7c]
mov r8d, dword [rsp + 0x50]
mov rdx, r12
mov rcx, qword [rsp + 0x48]
call rax
test eax, eax
je 0x18000936d
mov r13d, dword [rsp + 0x7c]
add r13, r12
mov eax, dword [0x18008d2f1]
mov eax, eax
add r12, rax
mov ecx, dword [r12]
mov edx, dword [r12 + 4]
lea rax, [r12 + 8]
test ecx, ecx
je 0x18000905e
lea ecx, [rcx - 1]
lea rcx, [r12 + rcx*4 + 0xc]
add dword [rax], edx
add rax, 4
cmp rax, rcx
jne 0x180009053
mov eax, dword [reloc.OLEAUT32.dll_VariantClear]
mov eax, eax
lea r15, [r12 + rax]
mov qword [rsp + 0x48], r15
mov esi, dword [0x18008d321]
lea rdi, [r15 + 1]
mov r12d, dword [0x18008d321]
mov rcx, rdi
call fcn.180008b8a
mov eax, 0
jmp 0x180008ff9
mov eax, 0
jmp 0x180008ff9
Function at 0x18000906c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add byte [rcx - 0x48], al
add dword [rax], eax
add byte [rax], al
mov rcx, r12
call rax
mov qword [rsp + 0x48], rax
mov esi, dword [0x18008d321]
mov r14d, dword [0x18008d315]
mov eax, dword [0x18008d2f9]
movsxd rdx, dword [rbx + 0x3c]
mov eax, eax
lea rax, [rbx + rax*8 + 0x80]
mov eax, dword [rdx + rax + 8]
add rax, rbx
mov qword [rsp + 0x50], rax
mov r13d, dword [rax + 0x20]
mov eax, dword [rax + 0x18]
test eax, eax
je 0x180008f84
lea r15d, [rax - 1]
mov ebp, 0
add r13, rbx
jmp 0x180008ec9
mov eax, 0
cmp r14d, eax
je 0x180008f00
lea rax, [rbp + 1]
cmp rbp, r15
je 0x180008f7d
mov rbp, rax
mov edi, dword [r13 + rbp*4]
add rdi, rbx
mov rcx, rdi
call fcn.180008b8a
test eax, eax
je 0x180008eaf
mov rdx, rdi
lea eax, [rax - 1]
lea r8, [rdi + rax + 1]
mov eax, 0
imul eax, esi
movzx ecx, byte [rdx]
add eax, ecx
add rdx, 1
cmp rdx, r8
jne 0x180008eed
jmp 0x180008eb4
mov rdi, qword [rsp + 0x50]
mov eax, dword [rdi + 0x24]
lea rdx, [rbx + rbp*2]
movzx edx, word [rdx + rax]
mov eax, dword [rdi + 0x1c]
lea rdx, [rbx + rdx*4]
mov eax, dword [rdx + rax]
add rax, rbx
mov edx, 0
mov rcx, qword [rsp + 0x48]
call rax
mov dword [rsp + 0x50], eax
mov eax, dword [0x18008d2f9]
mov esi, dword [0x18008d321]
mov r14d, dword [0x18008d329]
mov eax, dword [0x18008d2f9]
movsxd rdx, dword [rbx + 0x3c]
mov eax, eax
lea rax, [rbx + rax*8 + 0x80]
mov eax, dword [rdx + rax + 8]
add rax, rbx
mov qword [rsp + 0x58], rax
mov r13d, dword [rax + 0x20]
mov eax, dword [rax + 0x18]
test eax, eax
je 0x1800090fa
lea r15d, [rax - 1]
mov ebp, 0
add r13, rbx
jmp 0x180008fa5
mov eax, 0
jmp 0x180008f1d
mov eax, 0
jmp 0x180008f1d
mov eax, 0
cmp r14d, eax
je 0x180008fdc
lea rax, [rbp + 1]
cmp rbp, r15
je 0x1800090f0
mov rbp, rax
mov edi, dword [r13 + rbp*4]
add rdi, rbx
mov rcx, rdi
call fcn.180008b8a
test eax, eax
je 0x180008f8b
mov rdx, rdi
lea eax, [rax - 1]
lea r8, [rdi + rax + 1]
mov eax, 0
imul eax, esi
movzx ecx, byte [rdx]
add eax, ecx
add rdx, 1
cmp r8, rdx
jne 0x180008fc9
jmp 0x180008f90
mov rdi, qword [rsp + 0x58]
mov eax, dword [rdi + 0x24]
lea rdx, [rbx + rbp*2]
movzx edx, word [rdx + rax]
mov eax, dword [rdi + 0x1c]
lea rdx, [rbx + rdx*4]
mov eax, dword [rdx + rax]
add rax, rbx
mov dword [rsp + 0x7c], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x7c]
mov r8d, dword [rsp + 0x50]
mov rdx, r12
mov rcx, qword [rsp + 0x48]
call rax
test eax, eax
je 0x18000936d
mov r13d, dword [rsp + 0x7c]
add r13, r12
mov eax, dword [0x18008d2f1]
mov eax, eax
add r12, rax
mov ecx, dword [r12]
mov edx, dword [r12 + 4]
lea rax, [r12 + 8]
test ecx, ecx
je 0x18000905e
lea ecx, [rcx - 1]
lea rcx, [r12 + rcx*4 + 0xc]
add dword [rax], edx
add rax, 4
cmp rax, rcx
jne 0x180009053
mov eax, dword [reloc.OLEAUT32.dll_VariantClear]
mov eax, eax
lea r15, [r12 + rax]
mov qword [rsp + 0x48], r15
mov esi, dword [0x18008d321]
lea rdi, [r15 + 1]
mov r12d, dword [0x18008d321]
mov rcx, rdi
call fcn.180008b8a
mov eax, 0
jmp 0x180008ff9
mov eax, 0
jmp 0x180008ff9
Function at 0x140005710
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
lea rcx, str.audioses.dll
call fcn.140003700
test rax, rax
je 0x140005757
mov rdi, rax
xor ecx, ecx
xor edx, edx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x140005761
mov rcx, rsi
mov rdx, rdi
call fcn.140004b50
mov rcx, rsi
mov rdx, rdi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1400051f0
mov eax, 1
xchg dword [rsi + 0x20], eax
jmp 0x14000576f
lea rcx, str.COM_call_failed:_CoInitializeEx_NULL__COINIT_MULTITHREADED__HR:__08X
mov edx, eax
call fcn.140001cb0
nop
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x1400574e8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400500b4
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140057589
cmp ebx, dword [rsp + 0x30]
je 0x140057582
test esi, esi
je 0x140057582
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14005755d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14005756a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140057547
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14005756e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14005758b
mov eax, 1
jmp 0x14005758b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14002e260
Capabilities:
Terminate process

Disassembly:
mov eax, 0x6623ec3c
int 0x86
int3
cld
pop r11
jmp 0x14002e26d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14002e27d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14002e265
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14002e295
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14002e282
sub eax, 3
jb 0x14002e2af
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14002e2e6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14002e2d6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14002e2d4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14002e2c3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14002e222
jmp 0x14002e26d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1dc00
mov dl, 5
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14002e336
cmp rsi, rcx
jae 0x14002e33e
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14002e31d
cmp al, 0x8f
ja 0x14002e31d
cmp byte [rsi - 2], 0xf
je 0x14002e323
sub al, 0xe8
cmp al, 1
ja 0x14002e307
cmp rsi, rcx
jae 0x14002e33e
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14002e30d
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14002e33e
lodsb al, byte [rsi]
jmp 0x14002e31d
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x2c000]
mov eax, dword [rdi]
or eax, eax
je 0x14002e39b
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x2e000]
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 0x14002e34b
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 0x14002e395
mov qword [rbx], rax
add rbx, 8
jmp 0x14002e36b
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 0x14002e3d5
cmp al, 0xef
ja 0x14002e3c7
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14002e3a7
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14002e3b6
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 + 0x20f]
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.14002e454], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.14002e454
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14002e444
sub rsp, 0xffffffffffffff80
jmp 0x14001ca70
Function at 0x140007f80
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
push r14
push r15
sub rsp, 0x60
mov rdi, r8
mov esi, edx
mov rbx, qword [0x1400d80a0]
mov qword [rsp + 0x48], rbx
lea rdx, str.Service_trying_to_start.
mov rcx, qword [rbx + 8]
call qword [sym.imp.Logging.dll_public:_void___cdecl_Hp::Bridge::Logging::TraceLogger::LogInfo_wchar_t_const____ptr64____ptr64]
mov dword [rsp + 0x80], 0x428
mov dword [rbx + 0x1c], 2
xor r15d, r15d
mov dword [rbx + 0x24], r15d
mov dword [rbx + 0x30], r15d
mov ecx, dword [0x1400d3084]
lea eax, [rcx + 1]
mov dword [0x1400d3084], eax
mov dword [rbx + 0x2c], ecx
lea rdx, [rbx + 0x18]
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov rax, qword [rbx]
mov r8, rdi
mov edx, esi
mov rcx, rbx
call qword [rax + 8]
mov dword [rbx + 0x1c], 4
mov dword [rbx + 0x24], r15d
mov qword [rbx + 0x2c], r15
lea rdx, [rbx + 0x18]
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov rcx, rbx
call fcn.140008500
mov qword [rsp + 0x40], r15
lea r8, [rsp + 0x40]
lea rdx, str.SYSTEMCurrentControlSetControlPowerModernSleep
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1400080a4
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x98], 4
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.EnabledActions
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete byte [0x1400d8098]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx r8d, byte [0x1400d8098]
lea rdx, str.System_Supports_Modern_Standby:__d
mov rcx, qword [rbx + 8]
call qword [sym.imp.Logging.dll_public:_void___cdecl_Hp::Bridge::Logging::TraceLogger::LogInfo_wchar_t_const____ptr64____ptr64]
cmp byte [0x1400d8098], r15b
je 0x14000814d
lea rax, [0x1400087c0]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x98], r15
lea r9, [rsp + 0x98]
lea r8, [rsp + 0x50]
mov edx, 2
lea rcx, [0x14009cf10]
call qword [sym.imp.api_ms_win_power_setting_l1_1_0.dll_PowerSettingRegisterNotification]
test eax, eax
je 0x14000811a
mov r8d, eax
lea rdx, str.PowerSettingRegisterNotification_failed:__u
mov rcx, qword [rbx + 8]
call qword [sym.imp.Logging.dll_public:_void___cdecl_Hp::Bridge::Logging::TraceLogger::LogError_wchar_t_const____ptr64____ptr64]
lea r9, str.CE7DC567_F47B_4A07_8489_C9DEB372B88F
xor r8d, r8d
lea edx, [r8 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x1400d8090], rax
test rax, rax
jne 0x14000814d
lea rdx, str.Failed_to_create_notification_event_for_modern_Standby
mov rcx, qword [rbx + 8]
call qword [sym.imp.Logging.dll_public:_void___cdecl_Hp::Bridge::Logging::TraceLogger::LogError_wchar_t_const____ptr64____ptr64]
mov dword [rsp + 0x80], r15d
mov eax, r15d
jmp 0x140008161
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14003fbc0
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 0x14003fca3
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14003fca3
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 0x14003fcc1
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x14003fc93
cmp word [rax], 0x5c
jne 0x14003fc8c
lea rdx, [rax + 2]
cmp rdx, rcx
je 0x14003fc8c
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14003fc77
movzx ecx, word [rdx]
sub cx, 0x28
cmp cx, 1
jbe 0x14003fc89
test r8b, 0x10
jne 0x14003fc8c
movzx ecx, word [rdx]
sub cx, 0x7b
test bp, cx
jne 0x14003fc8c
mov rax, rdx
add rax, 2
mov qword [rbx], rax
mov rcx, rbx
call fcn.1400387e0
test edi, edi
jne 0x14003fbf0
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.1400387d0
int3
Function at 0x140043ea0
Capabilities:
Create directory
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, r8
mov rbx, rdx
mov qword [rsp + 0x40], rdx
xor ebp, ebp
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
mov qword [rsp + 0x58], rbp
mov edx, 0x105
lea rcx, [rsp + 0x48]
call fcn.14000d9d0
nop
xor edx, edx
mov r8d, 0x20a
mov rcx, qword [rsp + 0x48]
call sub.VCRUNTIME140.dll_memset
cmp qword [rsi + 0x18], 7
jbe 0x140043f02
mov rsi, qword [rsi]
mov r8d, 0x105
mov rdx, qword [rsp + 0x48]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x140043ffc
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140043f40
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140043fd9
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], rbp
mov rdx, qword [rsp + 0x48]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140043f60
mov rcx, rbx
call fcn.140006800
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140043fb9
mov rdx, qword [rsp + 0x58]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140043fb4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140043fb4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400688dc
mov rax, rbx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140068890
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.CapDataStore::expandPathAndCreateDirectory___failed_to_create_storage_directory
lea rcx, [rsp + 0x28]
call fcn.140007470
lea rdx, [0x1400c93e8]
lea rcx, [rsp + 0x28]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.CapDataStore::expandPathAndCreateDirectory___failed_to_expanded_environment_variable_pointing_to_output_directory
lea rcx, [rsp + 0x28]
call fcn.140007470
lea rdx, [0x1400c93e8]
lea rcx, [rsp + 0x28]
call sub.VCRUNTIME140.dll__CxxThrowException
int3