joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001c710
Capabilities:
Enumerate threads
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x410]
sub rsp, 0x510
mov rax, qword [0x1800780a8]
cmp byte [rax + 7], 0
je 0x18001c7f5
xor ebx, ebx
mov word [rbp + 0x420], 0x39eb
xorps xmm0, xmm0
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x20]
movdqu xmmword [rsp + 0x20], xmm0
lea edx, [rbx + 2]
call fcn.180019320
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x20]
movzx eax, word [rbp + 0x420]
mov word [rcx], ax
lea rax, [rcx + 2]
movabs rcx, 0x140ceb189
mov qword [rsp + 0x28], rax
call fcn.18001c660
xorps xmm0, xmm0
mov word [rbp + 0x420], 0xeeb
lea edx, [rbx + 2]
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x20]
movdqu xmmword [rsp + 0x20], xmm0
call fcn.180019320
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x20]
movzx eax, word [rbp + 0x420]
mov word [rcx], ax
lea rax, [rcx + 2]
movabs rcx, 0x140ceb59e
mov qword [rsp + 0x28], rax
call fcn.18001c660
movabs rax, 0x140464b1d
mov qword [0x1800789f0], rax
mov rax, qword [0x1800780a8]
cmp byte [rax + 1], 0
jne 0x18001c801
cmp byte [rax + 3], 0
je 0x18001c812
movabs rax, 0x1401f0f45
mov qword [0x1800789e0], rax
lea rdx, [0x18001c1d0]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
xor edx, edx
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18001c92b
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x18001c922
nop word [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x18001c90c
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, dword [rsp + 0x28]
cmp r8d, eax
je 0x18001c90c
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
je 0x18001c90c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x70], 0x10001f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
mov rax, qword [0x1800789f0]
lea rdx, [rsp + 0x40]
mov qword [rbp - 0x78], rax
mov rcx, rbx
mov rax, qword [0x1800789e0]
mov qword [rbp - 0x70], rax
mov rax, qword [0x1800789e8]
mov qword [rbp - 0x68], rax
mov rax, qword [0x1800789f8]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x50], 0x455
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x18001c860
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x510]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x180025150
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x1800251ad
lea rbx, [0x180067140]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180025194
cmp r10, 2
jb 0x180025194
cmp byte [r9], r8b
jne 0x180025194
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x180025170
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1800251ef
lea rbx, [0x180067140]
cmp r8b, 0x23
jne 0x1800251d3
cmp byte [r9], r8b
jne 0x1800251d3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x1800251c0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x180025330
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x18002534a
mov qword [r8], 0
lea rdx, [0x18006cb10]
call fcn.180025200
mov rbx, rax
test rax, rax
jne 0x18002536a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x180025441
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180025441
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x180025441
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180025441
cmp rdi, 0xffffffffffffffff
je 0x180025441
mov rax, qword [0x180078a28]
test rax, rax
je 0x1800253de
inc dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x180025441
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x18002542e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x180078a28]
test rax, rax
je 0x180025423
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x18002544a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x18002543c
mov qword [r14], rdi
mov rax, rsi
jmp 0x18002544c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x1800278e0
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xf0]
lea r10, [0x180067140]
mov rax, qword [rcx + 0xf8]
mov r9, rcx
mov ebx, dword [rax + r8*4 - 4]
not ebx
movzx eax, dl
movzx r8d, bl
shr ebx, 8
xor r8, rax
movzx eax, byte [rsp + 0x39]
xor ebx, dword [r10 + r8*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3a]
xor ebx, dword [r10 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3b]
xor ebx, dword [r10 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [r10 + rcx*4]
mov rcx, qword [r9]
not ebx
cmp dword [rcx + 0x3f18], ebx
jne 0x18002796b
movsxd r8, edx
mov ecx, ebx
mov edx, 4
call fcn.180039940
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x18002aea0
Capabilities:
Hash data with crc32

Disassembly:
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x18002aef0
lea r11, [0x180067140]
nop dword [rax]
cmp r9b, 0x23
jne 0x18002aed3
cmp byte [r8], r9b
jne 0x18002aed3
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x18002aec0
mov rcx, qword [0x180078a28]
not eax
movsxd rdx, dword [rcx + 0x3eb0]
mov r9, qword [rcx + 0x3eb8]
mov r10, rdx
shl r10, 4
add r10, r9
test rdx, rdx
je 0x18002af51
nop word [rax + rax]
mov r8, rdx
shr r8, 1
mov rcx, r8
add rcx, rcx
cmp dword [r9 + rcx*8], eax
jae 0x18002af49
lea r9, [r9 + rcx*8]
mov rcx, 0xffffffffffffffff
sub rcx, r8
add r9, 0x10
add rdx, rcx
jmp 0x18002af4c
mov rdx, r8
test rdx, rdx
jne 0x18002af20
cmp r9, r10
je 0x18002af60
cmp dword [r9], eax
jne 0x18002af60
mov rax, qword [r9 + 8]
ret
xor eax, eax
ret
Function at 0x180038180
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5c60], 0
lea rbx, [rcx + 0x5c68]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x180038227
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x1800381da
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.18003aa70
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.180025790
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5c60]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5c70]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x180078a20]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x18003822f
mov rcx, rbx
call fcn.180025790
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x1800386b0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x180078a28]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x180038713
mov qword [rsp], rbx
lea rbx, [0x180067140]
nop dword [rax]
cmp r9b, 0x23
jne 0x1800386f3
cmp byte [r8], r9b
jne 0x1800386f3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x1800386e0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5bd8]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x180038747
mov r10, qword [r10 + 0x5be0]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x18003874e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x180038734
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x180055d60
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, qword [rcx + 0x130]
mov esi, r8d
mov rbx, rdx
mov rdi, rcx
cmp dword [rax + 0x40], 0xf
lea r9, [rax + 0x28]
jle 0x180055d8c
mov r9, qword [r9]
movabs rdx, 0xcbf29ce484222325
movabs r8, 0x100000001b3
movsx rcx, byte [r9]
lea r9, [r9 + 1]
xor rdx, rcx
imul rdx, r8
test cl, cl
jne 0x180055da0
mov qword [rsp + 0x50], rdx
lea rcx, [0x180078ce0]
lea rdx, [rsp + 0x50]
call fcn.18001cbb0
mov rdx, qword [rax + 8]
cmp qword [rax], rdx
je 0x180055ea4
movaps xmmword [rsp + 0x30], xmm6
lea rdx, [rsp + 0x50]
lea rcx, [0x180078ce0]
movaps xmmword [rsp + 0x20], xmm7
call fcn.18001cbb0
movsxd rcx, dword [rdi + 0x28]
mov rax, qword [rax]
movss xmm7, dword [rax + rcx*4 - 4]
lea eax, [rsi - 4]
cmp eax, 1
jbe 0x180055e10
movss xmm6, dword [rbx + 0x1a38]
jmp 0x180055e68
xor ecx, ecx
lea rax, [rbx + 0x43ac]
nop dword [rax]
cmp dword [rax], 0x209b
je 0x180055e3d
inc rcx
add rax, 4
cmp rcx, 6
jl 0x180055e20
movss xmm6, dword [rsp + 0x50]
jmp 0x180055e4b
movss xmm6, dword [rsp + 0x50]
addss xmm6, dword [0x18006d478]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, qword [rax + 0x2202ea8]
cmp dword [rcx + 8], 0xc
jne 0x180055e68
addss xmm6, dword [0x18006d4a4]
xorps xmm1, xmm1
comiss xmm6, xmm1
jbe 0x180055e87
movaps xmm1, xmm6
addss xmm1, dword [0x18006d4b4]
divss xmm6, xmm1
mulss xmm6, xmm7
subss xmm7, xmm6
movaps xmm6, xmmword [rsp + 0x30]
movaps xmm0, xmm7
movaps xmm7, xmmword [rsp + 0x20]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov rbx, qword [rsp + 0x58]
xorps xmm0, xmm0
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rax, qword [rcx + 0x130]
mov esi, r8d
movaps xmmword [rsp + 0x20], xmm7
mov rbx, rdx
mov rdi, rcx
cmp dword [rax + 0x40], 0xf
lea r9, [rax + 0x28]
jle 0x180055ef1
mov r9, qword [r9]
movabs rdx, 0xcbf29ce484222325
movabs r8, 0x100000001b3
nop word [rax + rax]
movsx rcx, byte [r9]
lea r9, [r9 + 1]
xor rdx, rcx
imul rdx, r8
test cl, cl
jne 0x180055f10
mov rax, qword [0x180078cc8]
mov rcx, qword [0x180078cd0]
movss xmm0, dword [0x18006d514]
movaps xmm7, xmm0
cmp rax, rcx
je 0x180055f5c
cmp qword [rax + 8], rbx
jne 0x180055f4c
cmp qword [rax], rdx
je 0x180055f57
add rax, 0x18
cmp rax, rcx
jne 0x180055f41
jmp 0x180055f5c
movss xmm7, dword [rax + 0x10]
ucomiss xmm7, xmm0
jp 0x180055f68
jne 0x180055f68
xorps xmm0, xmm0
jmp 0x180055f9f
xor ecx, ecx
movaps xmmword [rsp + 0x30], xmm6
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r8d, esi
mov rdx, rbx
mov rcx, rdi
movss xmm6, dword [rax + 0x220d6e8]
call fcn.180055d60
addss xmm0, xmm7
xorps xmm1, xmm1
subss xmm0, xmm6
movaps xmm6, xmmword [rsp + 0x30]
maxss xmm0, xmm1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
movaps xmm7, xmmword [rsp + 0x20]
add rsp, 0x40
pop rdi
ret
Function at 0x18005d0f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov r9d, r8d
mov rdi, rdx
mov r8, rcx
lea rbx, [rcx + 0x3610]
lea r10, [rcx + 0x127e]
cmp byte [rcx + 0x127c], 0
jne 0x18005d173
mov byte [r10], 0
mov byte [rcx + 0x127d], 1
rdtsc
shl rdx, 0x20
or rax, rdx
mov qword [rsp + 0x30], rax
mov byte [rcx + 0x1280], al
movzx eax, byte [rsp + 0x31]
mov edx, 2
mov byte [rcx + 0x1281], al
movzx ecx, byte [rsp + rdx + 0x30]
inc edx
mov byte [r8 + 0x1282], cl
movzx eax, byte [rsp + rdx + 0x30]
mov byte [r8 + 0x1283], al
mov byte [r8 + 0x1284], 0
mov byte [r8 + 0x127c], 1
mov rax, r8
mov dword [rsp + 0x40], r9d
mov eax, dword [rax + 0x1280]
mov dword [rsp + 0x30], eax
movzx eax, byte [r8 + 0x127d]
test al, al
je 0x18005d1bb
xor ecx, ecx
mov edx, eax
nop word [rax + rax]
mov eax, dword [rsp + rcx + 0x30]
not eax
xor dword [rsp + rcx + 0x40], eax
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x18005d1a0
lea r10, [r8 + 0x127e]
movzx eax, byte [r10]
mov ecx, 4
sub rcx, rax
cmp rcx, 4
jae 0x18005d1e4
nop dword [rax]
movzx eax, byte [rsp + rcx + 0x30]
not al
xor byte [rsp + rcx + 0x40], al
inc rcx
cmp rcx, 4
jb 0x18005d1d0
movzx eax, byte [r8 + 0x1284]
inc al
and eax, 3
mov ecx, eax
mov eax, dword [rsp + 0x40]
mov dword [r8 + rcx*4 + 0x1288], eax
mov byte [r8 + 0x1284], cl
mov dword [rbx + 0x38], r9d
mov r8, qword [rbx + 0x18]
movabs rdx, 0xcbf29ce484222325
movabs r10, 0x100000001b3
nop dword [rax]
nop word [rax + rax]
movsx rcx, byte [r8]
lea r8, [r8 + 1]
xor rdx, rcx
imul rdx, r10
test cl, cl
jne 0x18005d230
movabs rax, 0x2374c594f5e76f06
cmp rdx, rax
jne 0x18005d25d
lea eax, [r9 - 0x1d]
cmp eax, 7
jbe 0x18005d2a3
jmp 0x18005d2ca
movabs rax, 0xf9bdf861cccd5fd1
cmp rdx, rax
jne 0x18005d277
lea eax, [r9 - 0x1a]
cmp eax, 6
jbe 0x18005d2a3
jmp 0x18005d2ca
movabs rax, 0xb4d052affec8dc8e
cmp rdx, rax
jne 0x18005d28e
cmp r9d, 0x10
je 0x18005d2a3
jmp 0x18005d2ca
movabs rax, 0x311a797a90e58f21
cmp rdx, rax
jne 0x18005d2ac
cmp r9d, 6
jne 0x18005d2ca
mov byte [rbx + 0x9c], 0
jmp 0x18005d303
movabs rcx, 0x2f2959b508f215d2
movabs rax, 0xecc3c7c77aebb7ea
cmp rdx, rcx
je 0x18005d2eb
cmp rdx, rax
je 0x18005d2eb
cmp byte [rbx + 0x9c], 0xff
je 0x18005d303
movabs rax, 0xeb5bc0df5355fba6
cmp rdx, rax
je 0x18005d303
mov byte [rbx + 0x9c], 0xff
jmp 0x18005d303
cmp r9d, 7
jne 0x18005d324
cmp rdx, rcx
je 0x18005d32f
mov rax, qword [rbx]
cmp rax, qword [rbx + 8]
je 0x18005d303
mov qword [rbx + 8], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
add rax, 0x18c4e0
mov dl, 1
mov rcx, rbx
call rax
nop
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp r9d, 6
jne 0x18005d2f6
cmp rdx, rax
jne 0x18005d2f6
mov rax, qword [rbx]
cmp rax, qword [rbx + 8]
je 0x18005d33c
mov qword [rbx + 8], rax
mov r8d, r9d
mov rdx, rdi
mov rcx, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1800511b0
Function at 0x140001278
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x470]
sub rsp, 0x570
mov rax, qword [0x140004008]
xor rax, rsp
mov qword [rbp + 0x460], rax
xor esi, esi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], rsi
mov rdi, rcx
mov qword [rsp + 0x50], rsi
mov r14, 0xffffffff80000000
mov qword [rsp + 0x48], rsi
xor r9d, r9d
mov qword [rsp + 0x40], rsi
xor r8d, r8d
mov qword [rsp + 0x38], rsi
xor edx, edx
mov qword [rsp + 0x30], rsi
mov rcx, r14
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
test eax, eax
je 0x140001314
mov edx, eax
lea rcx, str.RegQueryInfoKey__HKCR___returned__d_n
call qword [sym.imp.msvcrt.dll_printf]
nop dword [rax + rax]
jmp 0x1400013c1
mov ebx, esi
cmp dword [rsp + 0x60], esi
jbe 0x1400013c1
mov qword [rsp + 0x38], rsi
lea r9, [rsp + 0x64]
mov qword [rsp + 0x30], rsi
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rsi
mov edx, ebx
mov rcx, r14
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x64], 0x64
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400013c1
movzx eax, word [rsp + 0x70]
mov ecx, 0xfffb
sub ax, 0x2a
test cx, ax
jne 0x1400013c1
lea rax, [rbp + 0x40]
mov rdx, rdi
lea r9, [rbp + 0x250]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x70]
mov rcx, r14
call fcn.14000160c
test eax, eax
je 0x1400013b5
lea r9, [rbp + 0x40]
lea r8, [rbp + 0x250]
lea rdx, [rsp + 0x70]
lea rcx, str._ws______ws___ws__n
call qword [sym.imp.msvcrt.dll_printf]
nop dword [rax + rax]
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x140001320
mov rcx, qword [rbp + 0x460]
xor rcx, rsp
call fcn.1400022d0
lea r11, [rsp + 0x570]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400013f0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x870]
sub rsp, 0x970
mov rax, qword [0x140004008]
xor rax, rsp
mov qword [rbp + 0x860], rax
xor r14d, r14d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], r14
xor r9d, r9d
mov qword [rsp + 0x50], r14
xor r8d, r8d
mov qword [rsp + 0x48], r14
xor edx, edx
mov qword [rsp + 0x40], r14
mov rsi, rcx
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
test eax, eax
je 0x140001483
mov edx, eax
lea rcx, str.RegQueryInfoKey___CLSID____returned__d_n
call qword [sym.imp.msvcrt.dll_printf]
nop dword [rax + rax]
jmp 0x1400015dd
mov edi, dword [rsp + 0x60]
add edi, 0xfffffffe
jmp 0x1400015d4
mov qword [rsp + 0x38], r14
lea r9, [rsp + 0x64]
mov qword [rsp + 0x30], r14
lea r8, [rbp - 0x80]
mov qword [rsp + 0x28], r14
mov edx, edi
mov rcx, rsi
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x64], 0x64
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400015d2
lea rax, [rbp + 0x440]
mov rdx, rsi
lea r9, [rbp + 0x650]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x80]
mov rcx, rsi
call fcn.14000160c
test eax, eax
je 0x1400015d2
lea rax, [rsp + 0x70]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x80]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x70]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x6c]
lea rax, [rbp + 0x50]
mov dword [rsp + 0x68], 0x3e8
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140001568
cmp dword [rsp + 0x6c], 1
jne 0x140001568
cmp word [rbp + 0x50], r14w
jne 0x14000157a
lea r8, [rbp - 0x80]
mov edx, 0x1f4
lea rcx, [rbp + 0x50]
call fcn.140001008
lea r9, [rbp + 0x440]
lea r8, [rbp + 0x650]
lea rdx, [rbp + 0x50]
lea rcx, str._ws_n_tFilter:__ws___ws__n
call qword [sym.imp.msvcrt.dll_printf]
nop dword [rax + rax]
lea rdx, [rbp - 0x80]
mov rcx, rsi
call fcn.140001928
lea rcx, [0x140003490]
call qword [sym.imp.msvcrt.dll_printf]
nop dword [rax + rax]
test rbx, rbx
je 0x1400015d2
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
dec edi
cmp edi, 0xffffffff
jne 0x14000148f
mov rcx, qword [rbp + 0x860]
xor rcx, rsp
call fcn.1400022d0
lea r11, [rsp + 0x970]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400020d0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x1400045e0], rbx
je 0x14000211c
cmp rax, rbx
jne 0x14000210f
mov ebx, 1
mov esi, ebx
jmp 0x140002121
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400020f4
mov ebx, 1
mov eax, dword [0x1400045e8]
cmp eax, ebx
jne 0x140002137
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x14000219c
mov eax, dword [0x1400045e8]
test eax, eax
jne 0x140002196
mov dword [0x1400045e8], ebx
lea r15, [0x1400032b0]
lea rdi, [0x140003298]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140002188
test eax, eax
jne 0x14000218c
cmp qword [rdi], 0
je 0x14000217d
mov rax, qword [rdi]
mov rcx, qword [vtable.H_MA8HI.0]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000215e
test eax, eax
je 0x14000219c
mov eax, 0xff
jmp 0x140002278
mov dword [0x140004024], ebx
mov eax, dword [0x1400045e8]
cmp eax, ebx
jne 0x1400021c3
lea rdx, [0x140003290]
lea rcx, [0x140003280]
call sub.msvcrt.dll__initterm
mov dword [0x1400045e8], 2
test esi, esi
jne 0x1400021d0
xor eax, eax
xchg qword [0x1400045e0], rax
cmp qword [0x1400045f0], 0
je 0x140002204
lea rcx, [0x1400045f0]
call fcn.140002630
test eax, eax
je 0x140002204
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x1400045f0]
mov r9, qword [vtable.H_MA8HI.0]
call r9
mov r8, qword [0x140004038]
mov rdx, qword [0x140004030]
mov ecx, dword [0x140004028]
call fcn.14000116c
mov dword [0x140004020], eax
cmp dword [0x140004040], 0
jne 0x140002234
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140004024], 0
jne 0x140002249
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140004020]
jmp 0x140002278
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140118000
add rsp, 0x28
jmp 0x1400020d0

Function at 0x14000251c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140002568
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140002560
cmp dword [rcx + 0x3c], edx
jl 0x140002560
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140002560
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140002568
mov rax, rdx
add rsp, 0x18
ret