joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18005a220
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp rdi, 0x40000000
jbe 0x18005a260
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x1801aead0]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x18005a29e
cmp rsi, r14
jb 0x18005a296
cmp rsi, r15
jae 0x18005a296
cmp qword [rsi + 8], 0
jne 0x18005a467
mov rsi, qword [rsi]
test rsi, rsi
jne 0x18005a281
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x18005a332
nop dword [rax]
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x18005a329
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualQuery]
test rax, rax
je 0x18005a329
cmp dword [rsp + 0x70], 0x10000
je 0x18005a3ab
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x18005a329
sub rbx, rbp
cmp rbx, r14
jae 0x18005a2f0
test rsi, rsi
jne 0x18005a410
cmp rdi, r15
ja 0x18005a44f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x18005a44f
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualQuery]
test rax, rax
je 0x18005a44f
cmp dword [rsp + 0x70], 0x10000
je 0x18005a3e1
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x18005a362
jmp 0x18005a44f
test rbx, rbx
je 0x18005a329
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x18005a410
cmp rbx, r14
jae 0x18005a2d0
jmp 0x18005a332
test rdi, rdi
je 0x18005a44f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x18005a410
cmp rdi, r15
jbe 0x18005a340
jmp 0x18005a44f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x18005a420
mov rax, qword [0x1801aead0]
mov qword [rsi], rax
mov qword [0x1801aead0], rsi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x18005af40
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
xor esi, esi
mov r14d, edx
mov qword [rcx], rsi
mov rbx, rcx
mov qword [rcx + 8], rsi
xor edx, edx
mov ecx, 4
mov ebp, r8d
call qword [sym.imp.api_ms_win_core_toolhelp_l1_1_0.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18005b066
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.api_ms_win_core_toolhelp_l1_1_0.dll_Thread32First]
test eax, eax
je 0x18005b05d
cmp dword [rsp + 0x20], 0x10
jb 0x18005b03f
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x18005b03f
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x18005b03f
mov rdx, qword [rbx]
test rdx, rdx
jne 0x18005affa
mov rcx, qword [0x1801aeae8]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x18005b05d
jmp 0x18005b02f
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x18005b02f
mov rcx, qword [0x1801aeae8]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x18005b05d
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
lea eax, [rcx + 1]
mov dword [rbx + 0xc], eax
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_toolhelp_l1_1_0.dll_Thread32Next]
test eax, eax
jne 0x18005afa4
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x18005b0b5
cmp dword [rbx + 0xc], esi
jbe 0x18005b0b5
mov r8, qword [rbx]
xor edx, edx
mov eax, esi
mov ecx, 0x5a
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18005b0ae
mov rcx, rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.18005adb0
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x18005b070
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 0x18005b0d0
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rcx
je 0x18005b141
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x18005b12a
mov qword [rsp + 0x38], rsi
mov r8, qword [rdi]
xor edx, edx
mov ecx, 0x5a
mov r8d, dword [r8 + rbx*4]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18005b11e
mov rcx, rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x18005b0f0
mov rsi, qword [rsp + 0x38]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x1801aeae8]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x18005b150
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x20
mov eax, ecx
lea r9, [rsp + 0x38]
imul rbx, rax, 0x38
mov r8d, 0x40
add rbx, qword [0x1801aead8]
mov rdx, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [rdx - 5]
cmove rdi, rdx
lea rsi, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualProtect]
test eax, eax
jne 0x18005b1bc
mov eax, 0xa
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x18005b1d8
mov rax, qword [rbx]
mov word [rax], 0xf9eb
mov r8d, dword [rsp + 0x38]
lea r9, [rsp + 0x38]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualProtect]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_FlushInstructionCache]
or byte [rbx + 0x20], 6
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18005b220
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov eax, dword [0x1801aeae4]
xor edi, edi
mov ebx, edi
test eax, eax
je 0x18005b332
mov rcx, qword [0x1801aead8]
add rcx, 0x20
test byte [rcx], 2
je 0x18005b263
inc ebx
add rcx, 0x38
cmp ebx, eax
jb 0x18005b247
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x18005b332
mov edx, 0xffffffff
lea rcx, [rsp + 0x20]
mov r8d, 1
call fcn.18005af40
mov edx, dword [0x1801aeae4]
cmp ebx, edx
jae 0x18005b2bd
nop dword [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x1801aead8]
test byte [rcx + rax + 0x20], 2
jne 0x18005b2b7
mov ecx, ebx
call fcn.18005b150
mov edi, eax
test eax, eax
jne 0x18005b2bd
mov edx, dword [0x1801aeae4]
inc ebx
cmp ebx, edx
jb 0x18005b290
cmp qword [rsp + 0x20], 0
je 0x18005b332
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18005b31e
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
mov qword [rsp + 0x48], rsi
nop
mov r8d, dword [rbx]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18005b30a
mov rcx, rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x18005b2e0
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1801aeae8]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
mov rbx, qword [rsp + 0x50]
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x2fc4c4fe0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4c60a0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4c59e2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4ea108]
test eax, eax
je 0x2fc4c5a7a
lea rax, [0x2fc4ea0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4ea110]
mov qword [rbp - 8], rax
jmp 0x2fc4c5a5e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4c5a52
cmp qword [rbp - 0x10], 0
je 0x2fc4c5a52
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4c5a18
lea rax, [0x2fc4ea0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4c5a7b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4c5b80
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4c5ba8
mov eax, 0
jmp 0x2fc4c5bf6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4c5bd1
mov eax, 0
jmp 0x2fc4c5bf6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4c5bf1
mov eax, 0
jmp 0x2fc4c5bf6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4c5bfc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4c5c7a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4c5c71
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4c5c71
mov rax, qword [rbp - 8]
jmp 0x2fc4c5c8f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4c5c44
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1800013c0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x1800013ee
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
lea r8, [0x1800011c0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret
Function at 0x140004480
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x140073058]
xor rax, rsp
mov qword [rbp + 0x50], rax
call fcn.140001ee0
mov rdi, rax
test rax, rax
je 0x1400046a9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xor r15d, r15d
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.HARDWAREDESCRIPTIONSystemBIOS
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140004694
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.BIOSVersion
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140004694
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.BIOSVersion
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140004694
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
mov dword [rsp + 0x30], r15d
xor sil, sil
lea r9, [rsp + 0x30]
mov edx, 0x22270c
lea r8d, [r15 + 3]
lea rcx, [rsp + 0x48]
call fcn.14001ec30
mov ebx, dword [rsp + 0x30]
test eax, eax
je 0x1400045a0
mov esi, ebx
shr esi, 0x1f
shr ebx, 0x16
mov dword [rsp + 0x30], r15d
xor r14b, r14b
lea r9, [rsp + 0x30]
mov edx, 0x22270c
mov r8d, 0xa
lea rcx, [rsp + 0x48]
call fcn.14001ec30
test eax, eax
je 0x1400045d5
cmp dword [rsp + 0x30], 0x101
sete r14b
lea rdx, [0x140075f10]
lea rcx, [rsp + 0x60]
call fcn.140004a20
test al, al
je 0x1400045fa
movzx eax, sil
xor eax, 1
lea ebx, [rax*2 + 2]
jmp 0x140004668
lea rdx, [0x140075f38]
lea rcx, [rsp + 0x60]
call fcn.140004a20
test al, al
je 0x140004617
and ebx, 1
add ebx, 3
jmp 0x140004668
lea rdx, [0x140075f60]
lea rcx, [rsp + 0x60]
call fcn.140004a20
test al, al
jne 0x14000465a
test r14b, r14b
jne 0x14000465a
test sil, sil
je 0x140004653
lea rdx, [0x140075ee8]
lea rcx, [rsp + 0x60]
call fcn.140004a20
mov ebx, r15d
test al, al
setne bl
inc ebx
jmp 0x140004668
mov ebx, 3
jmp 0x140004668
movzx eax, sil
xor eax, 1
lea ebx, [rax*4 + 1]
mov eax, 0x64
mov dword [rax + rdi], ebx
mov bl, 1
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140004682
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140004696
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140004696
xor bl, bl
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400046a6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.14002a740
lea r11, [rsp + 0x160]
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 0x1400092d0
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 0x1400093b3
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x1400093b3
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 0x1400093d1
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 0x1400093a3
cmp word [rax], 0x5c
jne 0x14000939c
lea rdx, [rax + 2]
cmp rdx, rcx
je 0x14000939c
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140009387
movzx ecx, word [rdx]
sub cx, 0x28
cmp cx, 1
jbe 0x140009399
test r8b, 0x10
jne 0x14000939c
movzx ecx, word [rdx]
sub cx, 0x7b
test bp, cx
jne 0x14000939c
mov rax, rdx
add rax, 2
mov qword [rbx], rax
mov rcx, rbx
call fcn.1400058d0
test edi, edi
jne 0x140009300
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.1400058c0
int3
Function at 0x14000fbc0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x120
mov rax, qword [0x140073058]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov ebx, ecx
lea rax, [rsp + 0x30]
xor edi, edi
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], rdi
mov r9d, 0x20019
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000fc58
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14000fc58
lea rax, [rsp + 0x38]
mov dword [rsp + 0x3c], edi
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, str.CurrentBuildNumber
mov dword [rsp + 0x38], edi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x14000fc7b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.14002a740
mov rbx, qword [rsp + 0x130]
add rsp, 0x120
pop rdi
ret
lea rax, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x3c]
lea rax, [rsp + 0x40]
lea rdx, str.CurrentBuildNumber
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
test eax, eax
jne 0x14000fc52
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x40]
call fcn.140034fac
cmp eax, ebx
setge al
jmp 0x14000fc5a
Function at 0x140010690
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x8b0
mov rax, qword [0x140073058]
xor rax, rsp
mov qword [rsp + 0x8a0], rax
mov rbx, rcx
test rcx, rcx
je 0x140010869
xor edx, edx
lea rcx, [rsp + 0x270]
mov r8d, 0x208
call fcn.14002d0c0
mov r9, 0xffffffffffffffff
lea rcx, [rsp + 0x270]
mov r8, rbx
mov edx, 0x104
call fcn.140033f80
lea rcx, [rsp + 0x270]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140010700
mov ecx, 0x5c
cmp cx, word [rsp + rax*2 + 0x26e]
je 0x140010738
lea r9, [rcx - 0x5d]
mov edx, 0x104
lea rcx, [rsp + 0x270]
lea r8, [0x140065788]
call fcn.1400353a0
mov r9, 0xffffffffffffffff
lea r8, [rsp + 0x270]
mov edx, 0x104
lea rcx, [rsp + 0x690]
call fcn.140033f80
mov r9, 0xffffffffffffffff
lea r8, [0x140066c90]
mov edx, 0x104
lea rcx, [rsp + 0x690]
call fcn.1400353a0
xor eax, eax
lea rdi, [rsp + 0x20]
mov ecx, 0x250
lea rdx, [rsp + 0x20]
rep stosb byte [rdi], al
lea rcx, [rsp + 0x690]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140010869
nop word [rax + rax]
movzx edx, word [rsp + 0x4c]
movzx ecx, word [rsp + 0x4e]
cmp dx, 0x2e
jne 0x1400107d7
test cx, cx
je 0x140010836
cmp dx, dx
jne 0x1400107d7
cmp cx, dx
jne 0x1400107d7
cmp word [rsp + 0x50], 0
je 0x140010836
mov r9, 0xffffffffffffffff
lea r8, [rsp + 0x270]
mov edx, 0x104
lea rcx, [rsp + 0x480]
call fcn.140033f80
mov r9, 0xffffffffffffffff
lea r8, [rsp + 0x4c]
mov edx, 0x104
lea rcx, [rsp + 0x480]
call fcn.1400353a0
test byte [rsp + 0x20], 0x10
lea rcx, [rsp + 0x480]
je 0x14001082c
call fcn.140010690
jmp 0x140010832
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x140010860
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400107b0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x14001086b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
mov rcx, qword [rsp + 0x8a0]
xor rcx, rsp
call fcn.14002a740
mov rbx, qword [rsp + 0x8c8]
add rsp, 0x8b0
pop rdi
ret
Function at 0x140012da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x140073058]
xor rax, rsp
mov qword [rbp - 8], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
xor ebx, ebx
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], rbx
mov dword [rbp - 0x30], ebx
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesLITSSVCICPSC
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140012f39
lea rax, [rbp - 0xc]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x10]
xor r8d, r8d
lea rdx, str.CurrentSetting
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140012f39
lea rax, [rbp - 0xc]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x10]
xor r8d, r8d
lea rdx, str.CurrentSetting
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140012f39
mov dword [rbp - 0x2c], ebx
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x20], rbx
lea rax, [rbp - 0x28]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesLITSSVCICAMT
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140012eed
lea rax, [rbp - 0x1c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x20]
xor r8d, r8d
lea rdx, str.CurrentSetting
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140012eed
lea rax, [rbp - 0x1c]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x2c]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x20]
xor r8d, r8d
lea rdx, str.CurrentSetting
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rbp - 0x30]
lea eax, [rcx - 5]
cmp eax, 1
jbe 0x140012f0e
lea eax, [rcx - 3]
cmp eax, 1
jbe 0x140012f22
mov byte [0x140075da0], 0
call fcn.140014170
jmp 0x140012f28
cmp dword [rbp - 0x2c], 2
jne 0x140012f22
mov byte [0x140075da0], 0
call fcn.140014170
jmp 0x140012f28
call fcn.140013970
nop
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x140012f40
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140012f40
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140012f4f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14002a740
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rbp
ret