joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180038f24
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x1800754d0]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
mov rdi, r8
mov esi, edx
xor ebp, ebp
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0x206
mov dword [rsp + 0x20], ebp
mov word [rsp + 0x30], bp
call fcn.180041420
lea rcx, [rsp + 0x30]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp esi, 1
jne 0x180038f88
lea rdx, str.projonepodlp
jmp 0x180038f94
cmp esi, 2
jne 0x180038fde
lea rdx, str.projonepotcm
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp rdi, rbp
je 0x180038fb2
lea rcx, [rsp + 0x30]
mov rdx, rdi
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x30]
xor eax, eax
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], rbp
mov word [rbx + 8], bp
repne scasw ax, word [rdi]
lea rdx, [rsp + 0x30]
not rcx
lea r8, [rcx - 1]
jmp 0x180038ff8
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], rbp
xor r8d, r8d
mov word [rbx + 8], bp
lea rdx, [0x18005d48c]
mov rcx, rbx
call fcn.180002a18
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.18003c1d0
mov rbx, qword [rsp + 0x278]
add rsp, 0x250
pop rdi
pop rsi
pop rbp
ret

Function at 0x180039ab0
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
mov eax, 0x2070
call fcn.180050c10
sub rsp, rax
mov rax, qword [0x1800754d0]
xor rax, rsp
mov qword [rsp + 0x2060], rax
call fcn.180039bc8
xor ebx, ebx
cmp al, bl
je 0x180039bae
lea rdx, str.__ls__ls
lea rcx, [rsp + 0x60]
mov word [rsp + 0x60], bx
mov word [rsp + 0x860], bx
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x18006060c]
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_StrCatW]
lea rcx, [rsp + 0x30]
call fcn.180039990
cmp qword [rax + 0x20], 8
jb 0x180039b3a
mov r9, qword [rax + 8]
jmp 0x180039b3e
lea r9, [rax + 8]
mov rax, qword [rsp + 0x2080]
lea r8, [rsp + 0x60]
lea rcx, [rsp + 0x860]
mov edx, 0x400
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHLWAPI.dll_wnsprintfW]
cmp qword [rsp + 0x50], 8
jb 0x180039b75
mov rcx, qword [rsp + 0x38]
call fcn.18003c228
lea r9, [rsp + 0x2088]
lea r8, [rsp + 0x860]
lea rcx, [rsp + 0x1060]
mov edx, 0x800
mov word [rsp + 0x1060], bx
call qword [sym.imp.SHLWAPI.dll_wvnsprintfW]
lea rcx, [rsp + 0x1060]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x2060]
xor rcx, rsp
call fcn.18003c1d0
add rsp, 0x2070
pop rbx
ret

Function at 0x180039bc8
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x38
lea rax, [r11 + 8]
lea r9, [r11 + 0x10]
lea r8, [0x180060610]
mov qword [r11 - 0x10], rax
lea rax, [r11 + 0x18]
lea rdx, str.SoftwareWOW6432Nodeprojonepodlp_smpcache_
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x40], 4
mov qword [r11 - 0x18], rax
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
xor ecx, ecx
cmp eax, ecx
jne 0x180039c17
cmp dword [rsp + 0x48], 4
mov eax, dword [rsp + 0x50]
je 0x180039c19
mov eax, ecx
cmp eax, 1
sete al
add rsp, 0x38
ret
Function at 0x18003ad4c
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
xor eax, eax
xor esi, esi
mov rbp, r8
mov qword [rcx], rax
mov qword [rcx + 8], rax
mov eax, dword [rcx + 0x10]
shl eax, 2
mov r10, rdx
mov rbx, rcx
cmp eax, esi
mov r9d, esi
jle 0x18003adba
mov eax, r9d
inc r9d
cdq
and edx, 3
add eax, edx
mov ecx, eax
and eax, 3
sub eax, edx
sar ecx, 2
movsxd rdx, eax
movsxd rax, ecx
lea rcx, [rbx + rax]
mov al, byte [r10]
inc r10
mov byte [rcx + rdx*4], al
mov eax, dword [rbx + 0x10]
shl eax, 2
cmp r9d, eax
jl 0x18003ad86
mov edx, dword [rbx + 0x18]
mov rcx, rbx
call fcn.18003aec0
mov edi, dword [rbx + 0x18]
lea r14, [0x180076f10]
jmp 0x18003ae15
mov r9, rsi
movzx edx, byte [r11 + r9]
mov ecx, edx
and edx, 0xf
shr ecx, 4
shl rcx, 4
add rcx, rdx
mov al, byte [rcx + r14]
mov byte [r11 + r9], al
inc r9
cmp r9, 4
jl 0x18003add4
add r11, 4
sub r8, 1
jne 0x18003add1
mov edx, edi
mov rcx, rbx
call fcn.18003aec0
mov rcx, rbx
call fcn.18003b000
mov rcx, rbx
dec edi
call fcn.18003af78
cmp edi, 1
mov r11, rbx
mov r8d, 4
jge 0x18003add1
mov r9, rsi
movzx edx, byte [r11 + r9]
mov ecx, edx
and edx, 0xf
shr ecx, 4
shl rcx, 4
add rcx, rdx
mov al, byte [rcx + r14]
mov byte [r11 + r9], al
inc r9
cmp r9, 4
jl 0x18003ae30
add r11, 4
sub r8, 1
jne 0x18003ae2d
xor edx, edx
mov rcx, rbx
call fcn.18003aec0
mov eax, dword [rbx + 0x10]
shl eax, 2
cmp eax, esi
jle 0x18003aea4
mov eax, esi
inc esi
cdq
and edx, 3
add eax, edx
mov ecx, eax
and eax, 3
sub eax, edx
sar ecx, 2
movsxd rdx, eax
movsxd rax, ecx
lea rcx, [rbx + rax]
mov al, byte [rcx + rdx*4]
mov byte [rbp], al
mov eax, dword [rbx + 0x10]
inc rbp
shl eax, 2
cmp esi, eax
jl 0x18003ae73
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x18003aec0
Capabilities:
Encode data using xor

Disassembly:
movsxd rax, edx
mov r11d, 4
add rax, rax
mov r10, r11
lea rdx, [rcx + rax*8 + 0x3c]
xor r8d, r8d
mov r9, rdx
mov al, byte [r9]
add r9, r11
xor byte [rcx + r8], al
inc r8
cmp r8, r11
jl 0x18003aeda
inc rdx
add rcx, r11
sub r10, 1
jne 0x18003aed4
repz ret
Function at 0x18003bdac
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
mov r11, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x60
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
mov rax, qword [0x1800754d0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r12, rdx
mov rbx, rcx
and dword [rsp + 0x20], 0
xor esi, esi
xor eax, eax
or r14, 0xffffffffffffffff
mov rcx, r14
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
mov r13, rcx
mov qword [r11 - 0x38], 0xf
mov qword [r11 - 0x40], rax
mov byte [rsp + 0x38], al
je 0x18003bf9e
lea rdi, [0x18005f8b0]
movsx rax, byte [r12 + rsi]
mov cl, byte [rax + rdi]
inc rsi
cmp rsi, r13
jae 0x18003be32
cmp cl, r14b
je 0x18003be1d
cmp cl, r14b
je 0x18003bf9e
movsx rax, byte [r12 + rsi]
mov bpl, byte [rax + rdi]
inc rsi
cmp rsi, r13
jae 0x18003be51
cmp bpl, r14b
je 0x18003be3b
cmp bpl, r14b
je 0x18003bf9e
mov r8b, bpl
sar r8b, 4
and r8b, 3
shl cl, 2
or r8b, cl
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.180023348
jmp 0x18003be83
lea rdi, [0x18005f8b0]
mov al, byte [r12 + rsi]
inc rsi
cmp al, 0x3d
je 0x18003bf62
movsx rax, al
mov dil, byte [rax + rdi]
cmp rsi, r13
jae 0x18003bea4
cmp dil, r14b
je 0x18003be7c
cmp dil, r14b
je 0x18003bf9e
mov r8b, dil
sar r8b, 2
and r8b, 0xf
shl bpl, 4
or r8b, bpl
mov ebp, 1
mov rdx, rbp
lea rcx, [rsp + 0x30]
call fcn.180023348
lea rdx, [0x18005f8b0]
mov al, byte [r12 + rsi]
add rsi, rbp
cmp al, 0x3d
je 0x18003bf26
movsx rax, al
mov cl, byte [rax + rdx]
cmp rsi, r13
jae 0x18003bef4
cmp cl, r14b
je 0x18003bed8
cmp cl, r14b
je 0x18003bf9e
shl dil, 6
or dil, cl
mov r8b, dil
mov rdx, rbp
lea rcx, [rsp + 0x30]
call fcn.180023348
cmp rsi, r13
lea rdi, [0x18005f8b0]
jb 0x18003be1d
jmp 0x18003bf9e
mov qword [rbx + 0x20], 0xf
and qword [rbx + 0x18], 0
mov byte [rbx + 8], 0
mov r9, r14
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1800021c4
nop
cmp qword [rsp + 0x50], 0x10
jb 0x18003bf5d
mov rcx, qword [rsp + 0x38]
call fcn.18003c228
mov rax, rbx
jmp 0x18003bfd8
mov qword [rbx + 0x20], 0xf
and qword [rbx + 0x18], 0
mov byte [rbx + 8], 0
mov r9, r14
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1800021c4
nop
cmp qword [rsp + 0x50], 0x10
jb 0x18003bf99
mov rcx, qword [rsp + 0x38]
call fcn.18003c228
mov rax, rbx
jmp 0x18003bfd8
mov qword [rbx + 0x20], 0xf
and qword [rbx + 0x18], 0
mov byte [rbx + 8], 0
mov r9, r14
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1800021c4
nop
cmp qword [rsp + 0x50], 0x10
jb 0x18003bfd5
mov rcx, qword [rsp + 0x38]
call fcn.18003c228
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18003c1d0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x18003e6f3
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1800754d0]
jne 0x18003c1ea
rol rcx, 0x10
test cx, 0xffff
jne 0x18003c1e6
repz ret
ror rcx, 0x10
jmp 0x18003e64c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180078330]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x180078428]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x18003e6d1
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x180078330]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x18003e6f3
mov rax, qword [rsp + 0x88]
mov qword [0x180078428], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1800783c8], rax
mov rax, qword [0x180078428]
mov qword [0x1800782a0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1800783b0], rax
mov dword [0x180078290], 0xc0000409
mov dword [0x180078294], 1
mov rax, qword [0x1800754d0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1800754d8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180078328], eax
mov ecx, 1
call fcn.1800413fc
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x18005a908]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180078328], 0
jne 0x18003e77a
mov ecx, 1
call fcn.1800413fc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x180041a9c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x180041910
Function at 0x180046cd0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.18003ea0c
xor ebx, ebx
mov rdi, rax
cmp qword [0x180078f80], rbx
jne 0x180046dd6
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x180046eab
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180046eab
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x180078f80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x180078f88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x180078f90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x180078fa0], rax
test rax, rax
je 0x180046dcd
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x180078f98], rax
jmp 0x180046ddd
mov rax, qword [0x180078f98]
jmp 0x180046de4
mov rax, qword [0x180078f98]
mov r11, qword [0x180078fa0]
cmp rax, rdi
je 0x180046e4c
cmp r11, rdi
je 0x180046e4c
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x180078fa0]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x180046e4c
test rax, rax
je 0x180046e4c
call rsi
test rax, rax
je 0x180046e46
lea rcx, [rsp + 0x88]
mov r9d, reloc.WS2_32.dll_inet_ntoa
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180046e46
test byte [rsp + 0x38], 1
jne 0x180046e4c
bts ebp, 0x15
jmp 0x180046e8a
mov rcx, qword [0x180078f88]
cmp rcx, rdi
je 0x180046e8a
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x180046e8a
call rax
mov rbx, rax
test rax, rax
je 0x180046e8a
mov rcx, qword [0x180078f90]
cmp rcx, rdi
je 0x180046e8a
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x180046e8a
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x180078f80]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x180046eab
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x180046ead
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140005480]
mov dword [rax], 1
mov rax, qword [0x140005490]
mov dword [rax], 1
mov rax, qword [0x1400054a0]
mov dword [rax], 1
mov rax, qword [0x140005440]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
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 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001b30
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x140002802
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140009168]
test eax, eax
je 0x14000289a
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140009170]
mov qword [rbp - 8], rax
jmp 0x14000287e
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 0x140002872
cmp qword [rbp - 0x10], 0
je 0x140002872
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 0x140002838
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000289b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140007120
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
sub rsp, 0x30
Function at 0x1400077c0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1400230d0]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov edi, dword [rcx + 8]
xor eax, eax
mov rsi, rcx
mov rcx, qword [rcx]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x58]
or edi, 0x2001f
iretd
invalid
add byte [rdx], al
add byte [rbp + 0x33], al
rol byte [rbx + rcx*4 - 0x31], 0x48
mov ebp, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x14000790c
test rcx, rcx
je 0x140007835
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rsp + 0x58]
and edi, 0x300
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x50], edi
test ebx, ebx
jne 0x14000790c
xor edi, edi
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
lea r8, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1400078e1
nop word [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1400077c0
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x14000790c
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
xor edx, edx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140007890
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400078f6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rdi
mov rdx, rbp
mov rcx, rsi
mov dword [rsp + 0x50], edi
call fcn.1400079f0
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test rcx, rcx
je 0x140007917
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14000da50
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400079f0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp byte [0x140025c08], 0
mov rdi, rdx
mov rbx, rcx
jne 0x140007a4b
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140007a3b
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x140025c08], 1
mov qword [0x140025c10], rax
jmp 0x140007a52
mov rax, qword [0x140025c10]
mov byte [0x140025c08], 1
jmp 0x140007a52
mov rax, qword [0x140025c10]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x140007a71
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
Function at 0x140008790
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x4b0], rbx
mov rax, qword [0x1400230d0]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rsi, r9
mov rbx, r8
mov rax, rdx
xor r12d, r12d
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x70], r12
xor edx, edx
lea r8d, [r12 + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140008808
call fcn.1400069e0
mov ebx, eax
jmp 0x14000894a
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14000882b
call fcn.1400069e0
mov ebx, eax
jmp 0x140008940
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x140008850
call fcn.1400069e0
mov ebx, eax
jmp 0x140008940
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x140008889
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x14000887f
lea rcx, [rsp + 0x70]
call fcn.1400071c0
nop
mov eax, 0x8007000e
jmp 0x140008963
mov ecx, eax
test eax, eax
je 0x1400088c6
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x1400088bc
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x1400088c6
lea rcx, [rsp + 0x70]
call fcn.1400069b0
mov rax, qword [rsp + 0x70]
jmp 0x1400088d0
mov ecx, 0x80070057
call fcn.140008f80
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x1400088e8
test rax, rax
jne 0x1400088f4
mov ebx, 0x8007000e
jmp 0x140008940
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x14000891b
call fcn.1400069e0
mov ebx, eax
jmp 0x140008940
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r12w
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140008580
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x140008961
lea rcx, [rsp + 0x70]
call fcn.1400071c0
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.14000da50
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop r12
pop rdi
pop rsi
ret

Function at 0x1400096a0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x1400230d0]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor r9d, r9d
mov rbx, rdx
lea rdx, [rsp + 0x20]
lea r8d, [r9 + 0x26]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x1400096dd
mov eax, 0x80004005
jmp 0x1400096ed
lea rcx, [rsp + 0x20]
call qword [0x14001b338]
mov qword [rbx], rax
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14000da50
add rsp, 0x240
pop rbx
ret
Function at 0x140009710
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x1400230d0]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor r9d, r9d
mov rbx, rdx
lea rdx, [rsp + 0x20]
lea r8d, [r9 + 0x2b]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x14000974d
mov eax, 0x80004005
jmp 0x14000975d
lea rcx, [rsp + 0x20]
call qword [0x14001b338]
mov qword [rbx], rax
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14000da50
add rsp, 0x240
pop rbx
ret

Function at 0x140009780
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x1400230d0]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rdx
lea rcx, [rsp + 0x20]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1400097c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1400097d6
movzx eax, ax
or eax, 0x80070000
jmp 0x1400097d6
lea rcx, [rsp + 0x20]
call qword [0x14001b338]
mov qword [rbx], rax
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14000da50
add rsp, 0x240
pop rbx
ret

Function at 0x1400097f0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x1400230d0]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rdx
lea rcx, [rsp + 0x20]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
test eax, eax
jne 0x140009836
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x140009846
movzx eax, ax
or eax, 0x80070000
jmp 0x140009846
lea rcx, [rsp + 0x20]
call qword [0x14001b338]
mov qword [rbx], rax
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14000da50
add rsp, 0x240
pop rbx
ret