joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000dbe4
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r15, qword [rsp + 0x90]
mov r14, r9
and dword [rax + 0x20], 0
mov ebp, r8d
and qword [r9], 0
mov r12, rcx
mov rsi, qword [rsp + 0x98]
and dword [r15], 0
test rsi, rsi
jne 0x14000dc36
mov rax, qword gs:[0x30]
mov r9, qword [rax + 0x60]
mov rsi, qword [r9 + 0x30]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
xor r9d, r9d
lea rax, [rsp + 0x88]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
and dword [rsp + 0x20], 0
mov rcx, r12
lea r8d, [r9 + 2]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov ebx, eax
cmp eax, 0xc0000023
jne 0x14000dd29
mov r8d, dword [rsp + 0x88]
mov edx, 8
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x14000dd24
mov ecx, dword [rsp + 0x88]
lea rax, [rsp + 0x88]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x20], ecx
mov r9, rdi
mov rcx, r12
mov r8d, 2
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov ebx, eax
test eax, eax
js 0x14000dd14
cmp dword [rdi + 4], ebp
jne 0x14000dd0f
mov r8d, dword [rdi + 8]
mov edx, 8
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x14000dd08
mov r8d, dword [rdi + 8]
lea rdx, [rdi + 0xc]
mov rcx, rax
call fcn.14001aa10
mov qword [r14], rbx
xor ebx, ebx
mov eax, dword [rdi + 8]
mov dword [r15], eax
jmp 0x14000dd14
mov ebx, 0xc0000017
jmp 0x14000dd14
mov ebx, 0xc0000024
mov r8, rdi
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x14000dd29
mov ebx, 0xc0000017
mov rbp, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x14000dd44
Capabilities:
Create process on windows

Disassembly:
push rdi
sub rsp, 0x90
mov r10, rcx
lea rdi, [rsp + 0x20]
xor eax, eax
lea r11d, [rax + 0x70]
mov ecx, r11d
rep stosb byte [rdi], al
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], r11d
mov dword [rsp + 0x24], 0x440
mov qword [rsp + 0x38], r10
mov qword [rsp + 0x40], rdx
mov dword [rsp + 0x50], r9d
mov qword [rsp + 0x30], r8
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
neg eax
sbb rax, rax
and rax, qword [rsp + 0x88]
add rsp, 0x90
pop rdi
ret

Function at 0x14000dda4
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
call fcn.14000dd44
mov rdi, rax
test rax, rax
je 0x14000ddee
mov edx, dword [rsp + 0x50]
test edx, edx
je 0x14000dde0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, 0x102
cmp eax, edx
jne 0x14000dde0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 1
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000e20c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rsi, rdx
mov r14, rcx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor ebx, ebx
test eax, eax
je 0x14000e331
lea rax, [rbp + 0x1a8]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000e272
cmp eax, 2
je 0x14000e331
xor eax, eax
jmp 0x14000e336
mov rdi, rsi
test rsi, rsi
jne 0x14000e27f
mov rdi, rbx
jmp 0x14000e28d
cmp word [rsi], bx
je 0x14000e28d
add rdi, 2
cmp word [rdi], bx
jne 0x14000e284
mov eax, 0x5c
cmp word [rdi - 2], ax
je 0x14000e2a2
mov word [rdi], ax
add rdi, 2
mov word [rdi], bx
mov r15d, 0x104
jmp 0x14000e2cc
mov r9, r15
lea r8, [rsp + 0x50]
mov rdx, r15
mov rcx, rdi
call fcn.140001b34
mov rdx, rsi
mov rcx, r14
call fcn.14000e20c
test eax, eax
je 0x14000e30b
mov rcx, qword [rbp + 0x1a8]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea r9, [rbp + 0x1a0]
mov qword [rsp + 0x30], rbx
lea r8, [rsp + 0x50]
mov qword [rsp + 0x28], rbx
xor edx, edx
mov qword [rsp + 0x20], rbx
mov dword [rbp + 0x1a0], r15d
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x14000e2aa
mov rcx, qword [rbp + 0x1a8]
mov word [rdi - 2], bx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
sete bl
mov eax, ebx
jmp 0x14000e336
mov eax, 1
mov rbx, qword [rsp + 0x290]
add rsp, 0x260
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000e850
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rax - 0x57]
sub rsp, 0xa0
xor r14d, r14d
mov rdi, r9
mov qword [rbp + 0x5f], r14
mov ecx, r14d
mov qword [rbp + 0x67], rcx
mov esi, r14d
mov qword [rbp - 0x29], r14
mov ebx, 0xc0000001
test r9, r9
je 0x14000e9ea
lea rcx, [rbp - 0x31]
call qword [sym.imp.ntdll.dll_RtlFormatCurrentUserKeyPath]
mov ebx, eax
test eax, eax
js 0x14000e9e6
lea rax, [rbp - 0x31]
mov dword [rbp - 1], 0x30
xorps xmm0, xmm0
mov qword [rbp + 0xf], rax
lea r8, [rbp - 1]
mov qword [rbp + 7], r14
mov edx, 0x2000000
mov dword [rbp + 0x17], 0x40
lea rcx, [rbp + 0x5f]
movdqu xmmword [rbp + 0x1f], xmm0
lea esi, [r14 + 1]
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov ebx, eax
test eax, eax
js 0x14000e9e6
lea rdx, str.Environment
lea rcx, [rbp - 0x21]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rax, qword [rbp + 0x5f]
lea r8, [rbp - 1]
mov qword [rbp + 7], rax
lea rcx, [rbp + 0x67]
lea rax, [rbp - 0x21]
mov edx, 0x2000000
mov qword [rbp + 0xf], rax
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov ebx, eax
test eax, eax
js 0x14000e9e6
lea rdx, str.Path
lea rcx, [rbp - 0x11]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov r9, qword [rbp + 0x7f]
test r9, r9
je 0x14000e976
mov rax, qword [0x14002fa70]
lea r8d, [r14 + 2]
lea rdx, str.Path
mov dword [rbp + 0x6f], r14d
mov rcx, qword [rax + 0x18]
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rbp + 0x67]
mov qword [rsp + 0x20], rax
call fcn.14000dbe4
mov rax, rdi
cmp word [rdi], r14w
je 0x14000e989
add rax, 2
cmp word [rax], r14w
jne 0x14000e97f
mov rcx, qword [rbp + 0x67]
lea rdx, [rbp - 0x11]
sub rax, rdi
mov r9d, 2
sar rax, 1
xor r8d, r8d
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov ebx, eax
test eax, eax
js 0x14000e9e6
xor r8d, r8d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x3e8
lea r9, str.Path
mov ecx, 0xffff
mov dword [rsp + 0x20], esi
lea edx, [r8 + 0x1a]
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
mov rcx, qword [rbp + 0x67]
test rcx, rcx
je 0x14000e9f5
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rbp + 0x5f]
test rcx, rcx
je 0x14000ea04
call qword [sym.imp.ntdll.dll_NtClose]
test esi, esi
je 0x14000ea12
lea rcx, [rbp - 0x31]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
not ebx
shr ebx, 0x1f
mov eax, ebx
add rsp, 0xa0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14000ec38
Capabilities:
Access pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x30
mov r14d, r9d
mov r15, r8
mov r12d, edx
mov rbp, rcx
xor ebx, ebx
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov rdi, rax
test rax, rax
je 0x14000ecd1
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], ebx
mov rcx, rbp
call fcn.14000177c
mov rsi, rax
test rax, rax
je 0x14000ecd1
mov rdx, r15
mov rcx, rax
call fcn.14000190c
test rax, rax
je 0x14000ecc0
sub eax, esi
mov dword [rdi + 0x28], eax
test r14d, r14d
je 0x14000ecad
mov eax, 0xdfff
and word [rdi + 0x16], ax
mov edx, r12d
mov rcx, rbp
call fcn.14000ddfc
mov dword [rdi + 0x58], eax
mov ebx, 1
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret

Function at 0x14000ef00
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x20
mov rcx, qword [0x14002fa70]
mov edi, 0x1000
and dword [rsp + 0x30], 0
mov r8d, edi
mov edx, 8
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x14000efbe
jmp 0x14000ef7d
mov rcx, qword [0x14002fa70]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea eax, [rdi + rdi]
mov edi, eax
cmp eax, 0x20000000
ja 0x14000efbe
mov rcx, qword [0x14002fa70]
mov r8d, edi
mov edx, 8
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
lea r9, [rsp + 0x30]
mov r8d, edi
mov rdx, rax
mov ecx, 5
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x14000ef3f
test eax, eax
js 0x14000efa3
mov rax, rbx
jmp 0x14000efc0
test rbx, rbx
je 0x14000efbe
mov rcx, qword [0x14002fa70]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400100b4
Capabilities:
Create process on windows
Spoof parent pid

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], r9
mov qword [rax + 8], rcx
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x47]
sub rsp, 0xe0
mov rsi, qword [rbp + 0x7f]
xor r12d, r12d
mov rbx, r8
mov r15, rdx
mov r14d, r12d
test rsi, rsi
je 0x1400100f2
mov qword [rsi], r12
xor eax, eax
lea rdi, [rbp - 0x71]
lea ecx, [rax + 0x18]
rep stosb byte [rdi], al
lea rdi, [rbp - 0x51]
lea ecx, [rax + 0x70]
rep stosb byte [rdi], al
test rbx, rbx
jne 0x140010114
mov r8, r12
jmp 0x140010120
add r8, 2
cmp word [r8], r12w
jne 0x140010110
sub r8, rbx
sar r8, 1
mov rcx, qword [0x14002fa70]
lea r8, [r8*2 + 2]
mov edx, 8
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x140010296
mov rdx, rbx
mov rcx, rax
call fcn.140001af4
mov r8d, 0x30
mov dword [rbp - 0x51], 0x70
mov qword [rbp + 0x67], r8
lea ebx, [r8 - 0x28]
cmp r8, 0x400
ja 0x140010280
mov rcx, qword [0x14002fa70]
mov edx, ebx
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rbp + 0x17], rax
test rax, rax
je 0x14001026c
xor r8d, r8d
lea r9, [rbp + 0x67]
mov rcx, rax
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
test eax, eax
je 0x140010255
mov rcx, qword [rbp + 0x17]
lea r9, [rbp + 0x4f]
mov qword [rsp + 0x30], r12
xor edx, edx
mov qword [rsp + 0x28], r12
mov r8d, 0x20000
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
je 0x140010243
lea rax, [rbp - 0x71]
mov dword [rbp - 0x15], 1
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rbp - 0x51]
mov word [rbp - 0x11], r12w
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov qword [rsp + 0x38], r12
mov rdx, rdi
mov qword [rsp + 0x30], r12
mov rcx, r15
mov dword [rsp + 0x28], 0xc080024
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140010243
mov r14, qword [rbp - 0x71]
test rsi, rsi
je 0x140010239
mov rax, qword [rbp - 0x69]
mov qword [rsi], rax
jmp 0x140010243
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, qword [rbp + 0x17]
test r8, r8
je 0x140010259
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
mov r8, qword [rbp + 0x17]
mov rcx, qword [0x14002fa70]
xor edx, edx
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140010280
mov r8, qword [rbp + 0x67]
jmp 0x14001016a
mov rcx, qword [0x14002fa70]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea r11, [rsp + 0xe0]
mov rax, r14
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1400104f8
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5a8]
sub rsp, 0x690
mov r15d, 0x104
mov r8, rcx
mov rsi, rcx
mov ebx, 1
mov r9d, r15d
lea rcx, [rbp + 0x380]
mov edx, r15d
mov edi, ebx
call fcn.140001b34
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x140010562
mov r8d, r15d
lea rdx, [0x140028ba8]
lea rcx, [rbp + 0x380]
call fcn.1400103fc
lea rdx, [rbp + 0x130]
lea rcx, [rbp + 0x380]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x1400105fb
test ebx, ebx
je 0x1400105fb
mov r9, r15
lea rcx, [rsp + 0x20]
mov r8, rsi
mov rdx, r15
call fcn.140001b34
mov r8, r15
lea rdx, [rbp + 0x15c]
lea rcx, [rsp + 0x20]
call fcn.1400103fc
test byte [rbp + 0x130], 0x10
je 0x1400105dc
cmp word [rbp + 0x15c], 0x2e
je 0x1400105e7
lea rcx, [rsp + 0x20]
call fcn.1400104f8
lea rcx, [rsp + 0x20]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg ebx
sbb eax, eax
and edi, eax
jmp 0x1400105e7
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rbp + 0x130]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, eax
jmp 0x14001057f
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x140010620
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb ecx, ecx
and edi, ecx
lea r11, [rsp + 0x690]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140010640
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x50
xor esi, esi
lea r8, [rbp - 0x10]
lea rdx, [0x14001c980]
mov qword [rbp - 0x10], rsi
mov qword [rbp - 0x20], rsi
mov rbx, rcx
call qword [sym.imp.SHELL32.dll_SHAssocEnumHandlersForProtocolByApplication]
test eax, eax
js 0x14001080c
mov rcx, qword [rbp - 0x10]
lea r9, [rbp + 0x28]
mov dword [rbp + 0x28], esi
lea r8, [rbp - 0x18]
mov qword [rbp - 0x18], rsi
mov edx, 1
mov rax, qword [rcx]
call qword [rax + 0x18]
test eax, eax
js 0x1400107f9
cmp dword [rbp + 0x28], esi
je 0x140010802
mov rcx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
lea rdx, [0x14001c970]
mov rax, qword [rcx]
call qword [rax]
test eax, eax
js 0x1400107ef
mov rcx, qword [rbp - 0x20]
lea rdx, [rbp + 0x38]
mov qword [rbp + 0x38], rsi
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
js 0x1400107e5
mov rdx, qword [rbp + 0x38]
test rdx, rdx
je 0x1400107e5
mov rax, rbx
test rbx, rbx
jne 0x1400106f8
mov rax, rsi
jmp 0x14001070c
cmp word [rbx], si
je 0x140010706
add rax, 2
cmp word [rax], si
jne 0x1400106fd
sub rax, rbx
sar rax, 1
mov rcx, rdx
cmp word [rdx], si
je 0x14001071d
add rcx, 2
cmp word [rcx], si
jne 0x140010714
sub rcx, rdx
mov edx, 8
sar rcx, 1
lea r8, [rcx + rax]
mov rcx, qword [0x14002fa70]
lea r8, [r8*2 + 8]
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x1400107db
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x14001077a
cmp rax, rcx
je 0x14001077a
mov rdx, rax
jmp 0x14001076f
mov word [rdx], ax
lea rcx, [rcx + 2]
add rdx, 2
movzx eax, word [rcx]
test ax, ax
jne 0x140010764
mov word [rdx], si
lea rdx, [0x140028bb0]
mov rcx, rdi
call fcn.140001ab8
mov rdx, rbx
mov rcx, rdi
call fcn.140001ab8
lea rax, [rbp + 0x30]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
mov r8, rdi
mov dword [rbp + 0x30], esi
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionApplicationAssociationToasts
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov rcx, qword [0x14002fa70]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rbp - 0x20]
mov rax, qword [rcx]
call qword [rax + InitCommonControls]
mov rcx, qword [rbp - 0x18]
mov rax, qword [rcx]
call qword [rax + InitCommonControls]
cmp dword [rbp + 0x28], esi
jne 0x140010679
mov rcx, qword [rbp - 0x10]
mov rax, qword [rcx]
call qword [rax + InitCommonControls]
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret

Function at 0x140010f90
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140010fb8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140010fb8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400111c8
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 0x140011237
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140011237
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140011237
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140011237
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140011237
cmp dword [rcx + 0x84], 0xe
jbe 0x140011237
cmp dword [rcx + 0xf8], 0
je 0x140011237
mov ecx, ebx
call fcn.1400112e8
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.1400110c4
nop
cmp dword [rbp + 0x20], 0
je 0x140011285
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140011290
int3
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x1400111c8
Function at 0x140024520
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 0x1400245ec
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x1400245ec
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 0x140024605
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 0x1400245dc
cmp byte [rax], 0x5c
jne 0x1400245d6
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x1400245d6
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x1400245c2
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x1400245d3
test r8b, 0x10
jne 0x1400245d6
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x1400245d6
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140027b40
test edi, edi
jne 0x140024540
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
mov rcx, rbx
call fcn.1400256d0
int3

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

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x1400288c4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x1400288b0
ret
Function at 0x1400335a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x1400335d1
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x14003364b
mov rdi, r14
mov rcx, rbx
call fcn.1400260d0
test rax, rax
jle 0x140033623
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.140087e40
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14003363b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140033643
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x1400335e5
sub r14, rdi
jmp 0x14003372f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140033662
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140033664
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140033696
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140087e40
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14003372c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400336d1
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x14003370d
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140097380
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14003372c
cmp rbp, rax
ja 0x1400336e0
test rbp, rbp
je 0x14003372c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140097380
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400369a0
Capabilities:
Load windows common language runtime

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
cmp qword [0x1400ecc90], 0
jne 0x140036a90
xor ebx, ebx
lea r8, [rsp + 0x48]
lea rdx, [0x1400b8038]
mov qword [rsp + 0x48], rbx
lea rcx, [0x1400b8048]
call sub.mscoree.dll_CLRCreateInstance
lea rdi, [0x1400ecc90]
test eax, eax
js 0x140036a54
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x40], rbx
lea r8, [0x1400b8058]
lea rdx, str.v4.0.30319
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov ebx, eax
test eax, eax
js 0x140036a45
mov rcx, qword [rsp + 0x40]
lea r8, [0x1400b8028]
mov r9, rdi
lea rdx, [0x1400b8018]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov ebx, eax
test eax, eax
js 0x140036a3a
mov rcx, qword [0x1400ecc90]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x10]
test ebx, ebx
jns 0x140036a90
cmp qword [0x1400ecc90], 0
jne 0x140036a90
lea r9, [0x1400b8028]
mov qword [rsp + 0x20], rdi
lea r8, [0x1400b8018]
xor edx, edx
lea rcx, str.v2.0.50727
call sub.mscoree.dll_CorBindToRuntime
test eax, eax
js 0x140036a9d
mov rcx, qword [0x1400ecc90]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov al, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
xor r9d, r9d
lea r8, [0x1400b8140]
lea rdx, [0x1400b8160]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rbx, qword [rsp + 0x50]
xor al, al
add rsp, 0x30
pop rdi
ret