joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001f40
Capabilities:
Contain obfuscated stackstrings
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0xa8
mov dword [rsp + 0x60], 2
mov dword [rsp + 0x64], 0
cmp dword [rsp + 0xb0], 1
jle 0x140001f88
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0xb8]
mov rcx, qword [rcx + rax]
call fcn.1400089a0
mov dword [rsp + 0x60], eax
mov byte [rsp + 0x70], 0x53
mov byte [rsp + 0x71], 0x59
mov byte [rsp + 0x72], 0x53
mov byte [rsp + 0x73], 0x54
mov byte [rsp + 0x74], 0x45
mov byte [rsp + 0x75], 0x4d
mov byte [rsp + 0x76], 0x5c
mov byte [rsp + 0x77], 0x5c
mov byte [rsp + 0x78], 0x43
mov byte [rsp + 0x79], 0x6f
mov byte [rsp + 0x7a], 0x6e
mov byte [rsp + 0x7b], 0x74
mov byte [rsp + 0x7c], 0x72
mov byte [rsp + 0x7d], 0x6f
mov byte [rsp + 0x7e], 0x6c
mov byte [rsp + 0x7f], 0x53
mov byte [rsp + 0x80], 0x65
mov byte [rsp + 0x81], 0x74
mov byte [rsp + 0x82], 0x30
mov byte [rsp + 0x83], 0x30
mov byte [rsp + 0x84], 0x31
mov byte [rsp + 0x85], 0x5c
mov byte [rsp + 0x86], 0x5c
mov byte [rsp + 0x87], 0x45
mov byte [rsp + 0x88], 0x6e
mov byte [rsp + 0x89], 0x75
mov byte [rsp + 0x8a], 0x6d
mov byte [rsp + 0x8b], 0x5c
mov byte [rsp + 0x8c], 0x5c
mov byte [rsp + 0x8d], 0x55
mov byte [rsp + 0x8e], 0x53
mov byte [rsp + 0x8f], 0x42
mov byte [rsp + 0x90], 0x53
mov byte [rsp + 0x91], 0x54
mov byte [rsp + 0x92], 0x4f
mov byte [rsp + 0x93], 0x52
mov byte [rsp + 0x94], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140002111
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x14000210b
jmp 0x14000210f
xor eax, eax
jmp 0x14000212a
jmp 0x140002115
xor eax, eax
jmp 0x14000212a
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x64], eax
jb 0x140002128
mov eax, 1
jmp 0x14000212a
xor eax, eax
add rsp, 0xa8
ret
Function at 0x140002140
Capabilities:
Check for sandbox username or hostname
Get session user name

Disassembly:
sub rsp, 0x298
mov dword [rsp + 0x28], 0xc8
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x1c0]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea rax, str.JOHN_PC
mov qword [rsp + 0x30], rax
lea rax, str.VIRUS
mov qword [rsp + 0x38], rax
lea rax, str.ADMIN
mov qword [rsp + 0x40], rax
lea rax, str.IVANOV
mov qword [rsp + 0x48], rax
lea rax, str.ROMAN
mov qword [rsp + 0x50], rax
lea rax, str.ABBY
mov qword [rsp + 0x58], rax
lea rax, str.ADMIN_PC
mov qword [rsp + 0x60], rax
lea rax, str.ALEKSSEV
mov qword [rsp + 0x68], rax
lea rax, str.ALEKSEY
mov qword [rsp + 0x70], rax
lea rax, str.ANDREEV
mov qword [rsp + 0x78], rax
lea rax, str.PHIL_PC
mov qword [rsp + 0x80], rax
lea rax, str.FEDOROV
mov qword [rsp + 0x88], rax
lea rax, str.BELOUSOV
mov qword [rsp + 0x90], rax
lea rax, str.AZURE
mov qword [rsp + 0x98], rax
lea rax, str.AZURE_PC
mov qword [rsp + 0xa0], rax
lea rax, str.BARANOV
mov qword [rsp + 0xa8], rax
lea rax, str.SOBOL
mov qword [rsp + 0xb0], rax
lea rdx, [rsp + 0x1c0]
lea rcx, [rsp + 0xc0]
call fcn.140001d60
mov dword [rsp + 0x20], 0
jmp 0x14000226c
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
movsx eax, byte [rsp + rax + 0xc0]
test eax, eax
je 0x14000229f
movsxd rax, dword [rsp + 0x20]
movsx eax, byte [rsp + rax + 0xc0]
mov ecx, eax
call fcn.14000ae08
movsxd rcx, dword [rsp + 0x20]
mov byte [rsp + rcx + 0xc0], al
jmp 0x140002262
mov dword [rsp + 0x24], 0
jmp 0x1400022b3
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x24]
cmp rax, 0x11
jae 0x1400022e0
movsxd rax, dword [rsp + 0x24]
mov rdx, qword [rsp + rax*8 + 0x30]
lea rcx, [rsp + 0xc0]
call fcn.1400023d0
test rax, rax
je 0x1400022de
xor eax, eax
jmp 0x1400022e5
jmp 0x1400022a9
mov eax, 1
add rsp, 0x298
ret

Function at 0x1400024c0
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, dword [0x1400afeb0]
call fcn.140001bf0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140004908
Capabilities:
Parse pe header

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

Function at 0x14000ba54
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000b850
Function at 0x14001109c
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400110cc
xor eax, eax
jmp 0x14001118f
mov rbp, rbx
cmp word [rax], si
je 0x1400110f1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400110d8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400110d4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140010fbc
movsxd r14, eax
test eax, eax
jne 0x14001112f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400110c5
mov rcx, r14
call fcn.14000dca8
mov rdi, rax
test rax, rax
jne 0x140011148
xor ecx, ecx
call fcn.14000d11c
jmp 0x140011124
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140010fbc
test eax, eax
jne 0x140011179
mov rcx, rdi
call fcn.14000d11c
jmp 0x140011183
xor ecx, ecx
call fcn.14000d11c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
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 0x14001506c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140015082
mov al, 1
jmp 0x1400150e2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140015093
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400150e0
mov ecx, dword [rcx + 0x18]
nop
call fcn.140011574
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400150e0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400150e0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400150e0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400150e2
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140017c30
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140017c58
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140017c58
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x401a70
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00407624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x401bf8
mov rax, qword [0x00407628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x401abc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x401b45
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x401aa0
mov rcx, rbx
call fcn.00402710
test rax, rax
mov r12, rax
je 0x401c2d
mov rax, qword [0x00407628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00402840
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00407628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401c10
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401b3e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x401ba0
add dword [0x00407624], 1
cmp edi, 8
jae 0x401b73
test dil, 4
jne 0x401be4
test edi, edi
je 0x401b68
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x401bff
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x401b68
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x401b8c
jmp 0x401b68
add rsi, qword [0x00407628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401b3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00402c30
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x401b68
xor esi, esi
jmp 0x401ac7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x401b68
mov rax, qword [0x00407628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.00402c30
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00402c30
nop
nop dword [rax]

Function at 0x402380
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00407900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004078e0]
test rbx, rbx
je 0x4023d4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x4023cb
test rsi, rsi
je 0x4023cb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4023b0
lea rcx, [0x00407900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x402710
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00404340]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x40277d
mov rcx, r8
call fcn.004025f0
test eax, eax
je 0x40277d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x40277d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402774
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40277f
add rax, 0x28
cmp rax, r9
jne 0x402760
xor eax, eax
add rsp, 0x28
ret

Function at 0x402c30
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp 0x401510
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.00402ac0
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.00402ac0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x140672058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1406721df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140672089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14067206f
add dl, dl
jne 0x140672096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406720f6
xor eax, eax
add dl, dl
jne 0x1406720a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406721ad
add dl, dl
jne 0x1406720b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406720c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406720d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406720dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406720ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14067207e
mov eax, 1
add dl, dl
jne 0x140672106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140672113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406720fb
sub eax, ebx
mov ebx, 1
jne 0x14067214c
mov ecx, 1
add dl, dl
jne 0x14067212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14067213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140672123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14067207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140672168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140672175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14067215d
cmp eax, 0x7d00
jae 0x14067219b
cmp eax, 0x500
jb 0x140672196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14067207e
cmp eax, 0x7f
ja 0x14067219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14067207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406721d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14067207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140004b60
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
xor eax, eax
test eax, eax
jne 0x140004b78
mov rax, qword [rsp + 0x68]
mov eax, dword [rax]
shl rax, 1
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x68]
mov dword [rax], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x140004bda
mov eax, dword [rsp + 0x34]
jmp 0x140004c64
cmp dword [rsp + 0x38], 1
je 0x140004bef
cmp dword [rsp + 0x38], 2
je 0x140004bef
mov eax, 0xd
jmp 0x140004c64
cmp qword [rsp + 0x60], 0
je 0x140004c4d
cmp dword [rsp + 0x30], 0
je 0x140004c39
mov eax, dword [rsp + 0x30]
xor edx, edx
mov ecx, 2
div rcx
mov rax, rdx
test rax, rax
jne 0x140004c30
mov eax, dword [rsp + 0x30]
xor edx, edx
mov ecx, 2
div rcx
mov rcx, qword [rsp + 0x60]
movzx eax, word [rcx + rax*2 - 2]
test eax, eax
je 0x140004c37
mov eax, 0xd
jmp 0x140004c64
jmp 0x140004c4d
mov eax, 2
imul rax, rax, 0
xor ecx, ecx
mov rdx, qword [rsp + 0x60]
mov word [rdx + rax], cx
mov eax, dword [rsp + 0x30]
xor edx, edx
mov ecx, 2
div rcx
mov rcx, qword [rsp + 0x68]
mov dword [rcx], eax
xor eax, eax
add rsp, 0x48
ret

Function at 0x1400051d0
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
xor eax, eax
test eax, eax
jne 0x1400051e8
cmp qword [rsp + 0x60], 0
je 0x140005200
mov dword [rsp + 0x30], 1
jmp 0x140005208
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x14000521e
mov eax, 0xd
jmp 0x14000525f
xor eax, eax
test eax, eax
jne 0x1400051ee
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
inc eax
mov eax, eax
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x48
ret
Function at 0x140006a30
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x290
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x140047170]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov dword [rsp + 0x30], 0
lea rcx, [rsp + 0x58]
call fcn.1400078e0
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator__]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x140006b8f
mov dword [rsp + 0x44], 1
movzx eax, word [0x14002ca0c]
mov word [rsp + 0x70], ax
lea rax, [rsp + 0x72]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov dword [rsp + 0x40], operator
and al, 0x40
add al, 1
add byte [rax], al
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
lea rdx, str.RtProductCode
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x140006b84
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__3]
nop
lea rdx, [0x14002cba0]
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_CFileFind::CloseContext]
test eax, eax
jne 0x140006b3b
mov dword [rsp + 0x30], 1
jmp 0x140006b79
lea rdx, str.RSAPRO
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_CFileFind::CloseContext]
test eax, eax
jne 0x140006b5b
mov dword [rsp + 0x30], 2
jmp 0x140006b79
lea rdx, str.RSA360
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_CFileFind::CloseContext]
test eax, eax
jne 0x140006b79
mov dword [rsp + 0x30], 3
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140023e10
add rsp, 0x290
pop rdi
ret
Function at 0x1400133a0
Capabilities:
Print debug messages

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov byte [rsp + 0x40], 0
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x14001341a
lea rdx, str.DllRegisterServer
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x1400133fe
call qword [rsp + 0x58]
mov byte [rsp + 0x40], 1
movzx eax, byte [rsp + 0x88]
test eax, eax
je 0x140013415
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1400134a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
mov r9d, 0x400
mov r8d, eax
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
mov r9, qword [rsp + 0x60]
mov r8, qword [rsp + 0x80]
lea rdx, str.__co_tools::register_dll_of__s_FAILED:__s_n
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc140u.dll_CMFCZoomKernel::Filter]
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator__]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
movzx eax, byte [rsp + 0x40]
add rsp, 0x78
ret
Function at 0x1400134c0
Capabilities:
Print debug messages

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov byte [rsp + 0x40], 0
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x14001353a
lea rdx, str.DllUnregisterServer
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x14001351e
call qword [rsp + 0x58]
mov byte [rsp + 0x40], 1
movzx eax, byte [rsp + 0x88]
test eax, eax
je 0x140013535
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1400135c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
mov r9d, 0x400
mov r8d, eax
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
mov r9, qword [rsp + 0x60]
mov r8, qword [rsp + 0x80]
lea rdx, str.__co_tools::unregister_dll_of__s_FAILED:__s_n
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc140u.dll_CMFCZoomKernel::Filter]
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator__]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
movzx eax, byte [rsp + 0x40]
add rsp, 0x78
ret