joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6c4200
Capabilities:
Create thread

Disassembly:
sub rsp, 0x48
mov rax, qword [0x00756e20]
cmp byte [rax + 0x159], 0
jne 0x6c429e
cmp qword [0x00756e60], 0
jne 0x6c4245
call sub.kernel32.dll_GetCurrentThreadId
mov ecx, 3
mov rdx, qword [0x00744a90]
xor r8, r8
mov r9d, eax
call sub.user32.dll_SetWindowsHookExW
mov qword [0x00756e60], rax
cmp qword [0x00756e58], 0
jne 0x6c4265
xor ecx, ecx
xor edx, edx
xor r8, r8
xor r9, r9
call sub.kernel32.dll_CreateEventW
mov qword [0x00756e58], rax
cmp qword [0x00756e68], 0
jne 0x6c429e
xor ecx, ecx
mov edx, 0x3e8
mov r8, qword [0x00744a88]
xor r9, r9
mov dword [rsp + 0x20], 0
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
call sub.kernel32.dll_CreateThread
mov qword [0x00756e68], rax
add rsp, 0x48
ret

Function at 0x6c56a0
Capabilities:
Enumerate gui resources

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x50
mov rbp, rsp
mov rbx, rcx
mov rax, qword [rbx + 0x2e0]
test rax, rax
je 0x6c577e
cmp dword [rbx + 0x128], 0
jne 0x6c5774
mov qword [rbp + 0x40], rax
mov byte [rbp + 0x48], dl
lea rcx, [0x006c55a0]
lea rdx, [rbp + 0x40]
call sub.user32.dll_EnumWindows
mov rax, qword [rbx + 0x120]
cmp dword [rax + 0x10], 0
je 0x6c5774
mov rcx, qword [rbp + 0x40]
mov edx, 3
call sub.user32.dll_GetWindow
mov qword [rbp + 0x40], rax
mov rcx, qword [rbp + 0x40]
mov edx, 0xffffffec
call sub.user32.dll_GetWindowLongPtrW
test rax, 8
je 0x6c5722
mov qword [rbp + 0x40], 0xfffffffffffffffe
mov rax, qword [rbx + 0x120]
mov esi, dword [rax + 0x10]
sub esi, 1
test esi, esi
jl 0x6c5773
mov rcx, qword [rbx + 0x120]
mov edx, esi
call fcn.004fcd30
mov rcx, rax
mov rdx, qword [rbp + 0x40]
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x30], 0x213
call sub.user32.dll_SetWindowPos
sub esi, 1
cmp esi, 0xffffffff
jne 0x6c5733
nop
lea rax, [rbx + 0x128]
add dword [rax], 1
lea rsp, [rbp + 0x50]
pop rbx
pop rsi
pop rbp
ret
Function at 0x6c5bf0
Capabilities:
Enumerate gui resources

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov esi, edx
mov rax, qword [0x00756e20]
cmp qword [rax + 0x2e0], 0
je 0x6c5db4
test sil, sil
jne 0x6c5cdc
cmp dword [rbx + 0x138], 0
jne 0x6c5ccd
mov rcx, rbx
call fcn.006ca400
lea rcx, [0x006c5ab0]
mov rdx, rax
call sub.user32.dll_EnumWindows
cmp qword [rbx + 0xa8], 0
je 0x6c5c8f
mov rax, qword [0x00756e20]
cmp byte [rax + 0x193], 0
je 0x6c5c8f
mov rax, qword [rbx + 0x1a0]
test rax, rax
je 0x6c5c69
mov rax, qword [rax - 8]
lea rdi, [rax - 1]
test edi, edi
jl 0x6c5c8e
mov rax, qword [rbx + 0x1a0]
movsxd rcx, edi
mov rcx, qword [rax + rcx*8]
xor edx, edx
call sub.user32.dll_ShowWindow
sub edi, 1
cmp edi, 0xffffffff
jne 0x6c5c71
nop
mov rax, qword [rbx + 0x130]
mov edi, dword [rax + 0x10]
sub edi, 1
test edi, edi
jl 0x6c5ccc
mov rcx, qword [rbx + 0x130]
mov edx, edi
call fcn.004fcd30
mov rcx, rax
test sil, sil
setne al
movzx rax, al
neg eax
mov edx, eax
call sub.user32.dll_ShowOwnedPopups
sub edi, 1
cmp edi, 0xffffffff
jne 0x6c5ca0
nop
lea rax, [rbx + 0x138]
add dword [rax], 1
jmp 0x6c5db4
cmp dword [rbx + 0x138], 0
jle 0x6c5db4
lea rax, [rbx + 0x138]
sub dword [rax], 1
cmp dword [rbx + 0x138], 0
jne 0x6c5db4
cmp qword [rbx + 0xa8], 0
je 0x6c5d53
mov rax, qword [0x00756e20]
cmp byte [rax + 0x193], 0
je 0x6c5d53
mov rax, qword [rbx + 0x1a0]
test rax, rax
je 0x6c5d2a
mov rax, qword [rax - 8]
lea rdi, [rax - 1]
test edi, edi
jl 0x6c5d52
mov rax, qword [rbx + 0x1a0]
movsxd rcx, edi
mov rcx, qword [rax + rcx*8]
mov edx, 5
call sub.user32.dll_ShowWindow
sub edi, 1
cmp edi, 0xffffffff
jne 0x6c5d32
nop
mov rax, qword [rbx + 0x130]
mov edi, dword [rax + 0x10]
sub edi, 1
test edi, edi
jl 0x6c5d90
mov rcx, qword [rbx + 0x130]
mov edx, edi
call fcn.004fcd30
mov rcx, rax
test sil, sil
setne al
movzx rax, al
neg eax
mov edx, eax
call sub.user32.dll_ShowOwnedPopups
sub edi, 1
cmp edi, 0xffffffff
jne 0x6c5d64
nop
mov rax, qword [rbx + 0x130]
mov rcx, rax
mov rsi, qword [rax]
call qword [rsi + 0x10]
lea rcx, [rbx + 0x1a0]
mov rdx, qword [0x006ab698]
call fcn.00414750
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x6c70d0
Capabilities:
Get graphical window text

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x220
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
cmp byte [rbx + 0x158], 0
je 0x6c713c
cmp byte [rbx + 0x193], 0
jne 0x6c713c
mov rcx, qword [rbx + 0x2e0]
lea rdx, [rbp + 0x20]
mov r8d, pe_nt_image_headers64
call sub.user32.dll_GetWindowTextW
mov rcx, rsi
lea rdx, [rbp + 0x20]
mov r8d, eax
call fcn.00410340
xor eax, eax
mov rcx, qword [rsi]
test rcx, rcx
je 0x6c7127
mov eax, dword [rcx - 4]
test eax, eax
jne 0x6c714b
mov rcx, rsi
mov rdx, qword [rbx + 0x118]
call fcn.004106b0
jmp 0x6c714b
mov rcx, rsi
mov rdx, qword [rbx + 0x118]
call fcn.004106b0
mov rax, rsi
lea rsp, [rbp + 0x220]
pop rbx
pop rsi
pop rbp
ret
Function at 0x6ca7f0
Capabilities:
Hide graphical window from taskbar

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov esi, edx
cmp sil, byte [rbx + 0x193]
je 0x6ca9b1
mov byte [rbx + 0x193], sil
mov rax, qword [rbx + 0xa8]
test rax, rax
je 0x6ca91b
mov rcx, rax
call fcn.005f3010
test al, al
je 0x6ca91b
mov rax, qword [rbx + 0xa8]
movzx rax, word [rax + 0x34]
test ax, 0x10
jne 0x6ca91b
mov rax, qword [rbx + 0xa8]
movzx rax, word [rax + 0x34]
test ax, 2
jne 0x6ca91b
test sil, sil
je 0x6ca89a
mov rcx, qword [rbx + 0x2e0]
xor edx, edx
xor r8, r8
call fcn.006b3120
mov rcx, qword [rbx + 0xa8]
call fcn.005f29a0
mov rcx, rax
mov dl, 1
mov rax, qword [rbx + 0xa8]
movzx r8, byte [rax + 0xa9]
call fcn.006b3120
jmp 0x6ca904
call sub.user32.dll_GetForegroundWindow
mov rdi, rax
mov rcx, qword [rbx + 0xa8]
call fcn.005f29a0
cmp rdi, rax
sete dil
mov rcx, qword [rbx + 0xa8]
call fcn.005f29a0
mov rcx, rax
xor edx, edx
mov rax, qword [rbx + 0xa8]
movzx r8, byte [rax + 0xa9]
call fcn.006b3120
mov rcx, qword [rbx + 0x2e0]
mov dl, 1
mov r8b, 1
call fcn.006b3120
test dil, dil
je 0x6ca904
mov rcx, qword [rbx + 0xa8]
call fcn.005f29a0
mov rcx, rax
call sub.user32.dll_SetForegroundWindow
mov rcx, qword [rbx + 0xa8]
mov edx, 0xb033
xor r8, r8
xor r9, r9
call fcn.005e6390
test sil, sil
je 0x6ca960
mov rcx, qword [rbx + 0x2e0]
mov rax, rcx
mov rsi, rcx
mov rcx, rax
mov edx, 0xffffffec
call sub.user32.dll_GetWindowLongPtrW
or rax, 0x80
mov rcx, rsi
mov edx, 0xffffffec
mov r8, rax
call sub.user32.dll_SetWindowLongPtrW
mov rcx, qword [rbx + 0x2e0]
xor edx, edx
call sub.user32.dll_SetWindowTextW
jmp 0x6ca9b1
mov rcx, qword [rbx + 0x2e0]
mov rax, rcx
mov rsi, rcx
mov rcx, rax
mov edx, 0xffffffec
call sub.user32.dll_GetWindowLongPtrW
and rax, 0xffffffffffffff7f
mov rcx, rsi
mov edx, 0xffffffec
mov r8, rax
call sub.user32.dll_SetWindowLongPtrW
mov rsi, qword [rbx + 0x2e0]
mov rax, qword [rbx + 0x118]
mov rcx, rax
call fcn.004113a0
mov rcx, rsi
mov rdx, rax
call sub.user32.dll_SetWindowTextW
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x6d5850
Capabilities:
Hide graphical window

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
cmp qword [rbx + 0xd0], 0
jne 0x6d590b
mov rcx, qword [rbx + 0x10]
call fcn.005f29a0
mov rcx, qword [0x006065c8]
mov dl, 1
mov r8, rax
call fcn.005e9540
mov qword [rbx + 0xd0], rax
mov rsi, qword [rbx + 0xd0]
mov rcx, rsi
xor edx, edx
call fcn.0060e5e0
lea rax, [rsi + 0x4d8]
mov qword [rax + 8], rbx
lea rcx, [0x006d4ed0]
mov qword [rax], rcx
mov rcx, qword [rbx + 0xd0]
call fcn.005f29a0
mov rdi, rax
mov rcx, rsi
mov edx, 3
mov rax, qword [rsi]
call qword [rax + 0x1c0]
mov rcx, rdi
xor edx, edx
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x30], 8
call sub.user32.dll_SetWindowPos
mov rcx, qword [rbx + 0xd0]
call fcn.005f29a0
mov rcx, rax
xor edx, edx
call sub.user32.dll_ShowWindow
cmp qword [rbx + 0xf0], 0
jne 0x6d59ba
mov rcx, qword [rbx + 0x10]
call fcn.005f29a0
mov rcx, qword [0x006065c8]
mov dl, 1
mov r8, rax
call fcn.005e9540
mov qword [rbx + 0xf0], rax
mov rsi, qword [rbx + 0xf0]
mov rcx, rsi
mov dl, 1
call fcn.0060e5e0
lea rax, [rsi + 0x4d8]
mov qword [rax + 8], rbx
lea rcx, [0x006d4f30]
mov qword [rax], rcx
mov rcx, qword [rbx + 0xf0]
call fcn.005f29a0
mov rdi, rax
mov rcx, rsi
mov edx, 2
mov rax, qword [rsi]
call qword [rax + 0x1c0]
mov rcx, rdi
xor edx, edx
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x30], 8
call sub.user32.dll_SetWindowPos
mov rcx, qword [rbx + 0xf0]
call fcn.005f29a0
mov rcx, rax
xor edx, edx
call sub.user32.dll_ShowWindow
cmp qword [rbx + 0xe0], 0
jne 0x6d5a62
mov rcx, qword [rbx + 0x10]
call fcn.005f29a0
mov rcx, qword [0x00607670]
mov dl, 1
mov r8, rax
call fcn.005e9540
mov qword [rbx + 0xe0], rax
mov rsi, qword [rbx + 0xe0]
mov byte [rsi + 0x4a8], 1
mov rcx, qword [rbx + 0xe0]
call fcn.005f29a0
mov rdi, rax
mov rcx, rsi
mov edx, 2
mov rax, qword [rsi]
call qword [rax + 0x1c0]
mov r13d, eax
mov rcx, rsi
mov edx, 3
mov rax, qword [rsi]
call qword [rax + 0x1c0]
mov rcx, rdi
xor edx, edx
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], r13d
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x30], 8
call sub.user32.dll_SetWindowPos
mov rcx, qword [rbx + 0xe0]
call fcn.005f29a0
mov rcx, rax
xor edx, edx
call sub.user32.dll_ShowWindow
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop r13
ret
Function at 0x6f2190
Capabilities:
Create process on windows

Disassembly:
push rbp
sub rsp, 0x100
mov rbp, rsp
mov qword [rbp + 0x50], 0
mov qword [rbp + 0xe8], 0
mov qword [rbp + 0x58], rbp
mov qword [rbp + 0x110], rcx
mov qword [rbp + 0x118], rdx
mov qword [rbp + 0x120], r8
mov qword [rbp + 0x128], r9
movzx rax, byte [rbp + 0x130]
mov byte [rbp + 0x130], al
movzx rax, byte [rbp + 0x138]
mov byte [rbp + 0x138], al
mov eax, dword [rbp + 0x140]
mov dword [rbp + 0x140], eax
mov rcx, qword [rbp + 0x128]
call fcn.00410210
nop
nop
mov byte [rbp + 0xf7], 1
lea rcx, [rbp + 0xe8]
mov edx, 4
lea r8, [0x006f2430]
mov r9, qword [rbp + 0x118]
lea rax, [0x006f2440]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp + 0x120]
mov qword [rsp + 0x28], rax
call fcn.004118c0
cmp qword [rbp + 0x128], 0
jne 0x6f226c
lea rcx, [rbp + 0x50]
mov rdx, qword [rbp + 0x118]
call fcn.00438ec0
lea rcx, [rbp + 0x128]
mov rdx, qword [rbp + 0x50]
call fcn.004452a0
lea rcx, [rbp + 0x78]
mov edx, 0x68
xor r8, r8
call fcn.0040bf00
mov dword [rbp + 0x78], 0x68
mov dword [rbp + 0xb4], 1
movzx rax, word [rbp + 0x140]
mov word [rbp + 0xb8], ax
cmp qword [rbp + 0x128], 0
je 0x6f22bc
mov rcx, qword [rbp + 0x128]
call fcn.004113a0
mov qword [rbp + 0xe0], rax
jmp 0x6f22c7
mov qword [rbp + 0xe0], 0
mov rcx, qword [rbp + 0xe8]
call fcn.004113a0
xor ecx, ecx
mov rdx, rax
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov rax, qword [rbp + 0xe0]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x78]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x48], rax
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x6f232c
mov byte [rbp + 0xf7], 0
call sub.kernel32.dll_GetLastError
jmp 0x6f23a1
mov rcx, qword [rbp + 0x68]
call sub.kernel32.dll_CloseHandle
cmp byte [rbp + 0x138], 0
je 0x6f234a
mov rcx, qword [rbp + 0x60]
or edx, 0xffffffff
call sub.user32.dll_WaitForInputIdle
cmp byte [rbp + 0x130], 0
je 0x6f2384
mov rax, qword [0x00749340]
mov rcx, qword [rax]
call fcn.006c78f0
mov ecx, 1
lea rdx, [rbp + 0x60]
xor r8, r8
or r9d, 0xffffffff
mov dword [rsp + 0x20], 0x1cff
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x6f2353
mov rcx, qword [rbp + 0x60]
call sub.kernel32.dll_CloseHandle
jmp 0x6f23a0
nop
lea rcx, [rbp + 0x50]
call fcn.00410040
lea rcx, [rbp + 0xe8]
call fcn.00410040
lea rcx, [rbp + 0x128]
call fcn.00410040
movzx rax, byte [rbp + 0xf7]
lea rsp, [rbp + 0x100]
pop rbp
ret
Function at 0x6f26a0
Capabilities:
Encode data using xor

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x20], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x80], rcx
mov qword [rbp + 0x88], rdx
mov qword [rbp + 0x90], r8
mov rcx, qword [rbp + 0x88]
call fcn.00410210
mov rcx, qword [rbp + 0x90]
call fcn.00410210
nop
nop
mov dword [rbp + 0x5c], 0
lea rcx, [rbp + 0x20]
mov rdx, qword [rbp + 0x90]
call fcn.00438f30
mov rcx, qword [rbp + 0x20]
call fcn.00438640
mov rcx, qword [0x004cbdf0]
mov dl, 1
call fcn.0040cde0
mov qword [rbp + 0x68], rax
nop
mov rcx, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
call fcn.005083a0
mov rcx, qword [rbp + 0x68]
xor edx, edx
call fcn.00505160
mov rcx, qword [rbp + 0x68]
mov rax, qword [rbp + 0x68]
mov rax, qword [rax]
call qword [rax]
mov qword [rbp + 0x48], rax
lea rcx, [rbp + 0x50]
mov rdx, qword [0x00406570]
mov r8d, 1
mov r9, qword [rbp + 0x48]
call fcn.00414580
mov rcx, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x50]
mov r8, qword [rbp + 0x48]
call fcn.00506940
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0x30], rax
cmp qword [rbp + 0x30], 0
je 0x6f2790
mov rax, qword [rbp + 0x30]
mov rax, qword [rax - 8]
mov qword [rbp + 0x30], rax
xor eax, eax
mov rcx, qword [rbp + 0x30]
lea rcx, [rcx - 1]
mov qword [rbp + 0x40], rax
cmp qword [rbp + 0x40], rcx
jg 0x6f27d9
sub rcx, rax
add rcx, 1
mov rax, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x40]
lea rax, [rax + rdx]
mov rdx, qword [rbp + 0x50]
mov r8, qword [rbp + 0x40]
movzx rdx, byte [rdx + r8]
add edx, edx
and dl, 0xaa
xor byte [rax], dl
add qword [rbp + 0x40], 1
sub rcx, 1
test rcx, rcx
jne 0x6f27ab
nop
mov rcx, qword [rbp + 0x68]
call fcn.00508320
mov rcx, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x50]
mov r8, qword [rbp + 0x48]
call fcn.00506e60
mov rcx, qword [rbp + 0x68]
xor edx, edx
call fcn.00505160
mov rcx, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x90]
call fcn.00508250
mov dword [rbp + 0x5c], 0xffffffff
nop
mov rcx, qword [rbp + 0x68]
call fcn.0040cea0
jmp 0x6f2830
nop
lea rcx, [rbp + 0x20]
call fcn.00410040
lea rcx, [rbp + 0x50]
mov rdx, qword [0x00406570]
call fcn.00414750
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.00410120
mov eax, dword [rbp + 0x5c]
lea rsp, [rbp + 0x70]
pop rbp
ret
Function at 0x14001123f
Capabilities:
Terminate process

Disassembly:
jmp 0x140013860
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400112da
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014bb0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014bd0
xor al, al
jmp 0x140014c51
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014be3
xor al, al
jmp 0x140014c51
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140014c0d
xor al, al
jmp 0x140014c51
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014c21
xor al, al
jmp 0x140014c51
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014c33
xor al, al
jmp 0x140014c51
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014c4f
xor al, al
jmp 0x140014c51
mov al, 1
add rsp, 0x38
ret
Function at 0x140005380
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0xb0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x140122f00]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rdi, rcx
xor esi, esi
mov qword [r11 - 0x18], rsi
lea rax, [r11 - 0x18]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
mov rdx, qword [rcx + 0x30]
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x1400054bd
mov r9, qword [rdi + 0x18]
mov ecx, esi
test r9, r9
je 0x140005415
lea ecx, [rsi + 0x32]
mov edx, ecx
mov r8, r9
mov eax, esi
cmp word [r8], si
je 0x140005406
add r8, 2
sub rdx, 1
jne 0x1400053f6
test rdx, rdx
jne 0x140005410
mov rcx, rsi
jmp 0x140005415
sub rcx, rdx
jmp 0x14000541a
mov eax, 0x80070057
test eax, eax
lea rdx, [rcx + rcx]
jns 0x140005425
mov rdx, rsi
jne 0x140005495
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
jne 0x140005467
lea rdx, str.Attempting_to_use_an_invalid_handle.
lea rcx, [rsp + 0x38]
call fcn.140005a2c
nop
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.140005278
lea rdx, [0x140118428]
lea rcx, [rsp + 0x60]
call sub.msvcrt.dll__CxxThrowException
nop
lea eax, [rdx + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r9
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rdi + 0x10]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x1400054d1
lea rcx, str.Unable_to_add_an_entry_for_the_UE_V_agent_service_to_the_App_V_4.x_ServiceInclusions_registry_key__error_code_0x_X_
jmp 0x1400054c9
test dword [0x140124700], 0x200
je 0x1400054d1
lea r8, str.Unexpected_error_getting_the_length_of_the_UE_V_registry_value
lea rdx, [0x1400d0ad0]
mov rcx, qword [0x1401246c8]
call fcn.140002868
jmp 0x1400054d1
cmp eax, 2
je 0x1400054d1
lea rcx, str.An_unexpected_error_occurred_opening_the_App_V_4.x_product_registry_key__error_code_0x_X_
mov edx, eax
call fcn.140006568
nop
lea rcx, [rsp + 0xa0]
call fcn.140005984
mov eax, ebx
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1400b3bf0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14001bd40
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp - 0x39], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x140122f00]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov ebx, edx
mov rdi, rcx
and qword [rbp + 0x47], 0
lea rax, [rbp + 0x47]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftUEVAgentConfiguration
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001be25
mov dword [rbp + 0x37], 4
mov rcx, qword [rbp + 0x47]
test rcx, rcx
jne 0x14001bde4
lea rdx, str.Attempting_to_use_an_invalid_handle.
lea rcx, [rbp - 0x31]
call fcn.140005a2c
nop
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 9]
call fcn.140005278
lea rdx, [0x140118428]
lea rcx, [rbp - 9]
call sub.msvcrt.dll__CxxThrowException
nop
lea rax, [rbp + 0x37]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x3f]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x3b]
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001be34
mov edx, dword [rbp + 0x3b]
cmp edx, 4
jne 0x14001be17
mov ebx, dword [rbp + 0x3f]
jmp 0x14001be34
lea rcx, str.AgentService.Util::GetDwordConfigValue:_Unexpected_value_type__type__0x_X
call fcn.140003df4
jmp 0x14001be34
mov edx, eax
lea rcx, str.AgentService.Util::GetDwordConfigValue:_Failed_to_open_configuration_key__status__0x_X
call fcn.140003df4
nop
lea rcx, [rbp + 0x47]
call fcn.140005984
mov eax, ebx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1400b3bf0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14001e358
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140122f00]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
xor ebx, ebx
cmp qword [rcx + 0x78], rbx
je 0x14001e4b7
cmp byte [rcx + 0x81], bl
je 0x14001e4b7
or edx, 0xffffffff
call fcn.140023cc0
cmp eax, 0xffffffff
jne 0x14001e3b8
xor al, al
jmp 0x14001e4bc
mov qword [rbp - 0x18], 0xf
mov qword [rbp - 0x20], rbx
mov byte [rbp - 0x30], bl
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp - 0x30]
call fcn.140010714
nop
mov esi, 1
lea r9, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae r9, qword [rbp - 0x30]
lea r8, [rbp - 0x30]
cmovae r8, qword [rbp - 0x30]
mov rcx, qword [rdi + 0x78]
mov rdx, qword [rcx]
add r9, qword [rbp - 0x20]
mov rax, qword [rdx + 0x40]
lea rdx, [rbp - 0x40]
mov qword [rsp + 0x20], rdx
lea rdx, [rdi + 0x84]
call qword [str._F_v_]
mov ecx, eax
test eax, eax
je 0x14001e425
sub ecx, esi
jne 0x14001e492
jmp 0x14001e42b
mov byte [rdi + 0x81], bl
lea rax, [rbp - 0x30]
mov rdx, qword [rbp - 0x30]
mov r10, qword [rbp - 0x18]
cmp r10, 0x10
cmovae rax, rdx
mov r14, qword [rbp - 0x40]
sub r14, rax
je 0x14001e46c
lea rcx, [rbp - 0x30]
cmp r10, 0x10
cmovae rcx, rdx
mov r9, qword [rdi + 0x90]
mov r8, r14
mov rdx, rsi
call qword [sym.imp.msvcrt.dll_fwrite]
cmp r14, rax
jne 0x14001e49c
cmp byte [rdi + 0x81], bl
je 0x14001e499
test r14, r14
jne 0x14001e3dd
xor r8d, r8d
lea edx, [r14 + 8]
lea rcx, [rbp - 0x30]
call fcn.14000675c
jmp 0x14001e3dd
cmp ecx, 2
jne 0x14001e4a2
jmp 0x14001e49f
mov bl, sil
mov sil, bl
mov bl, sil
cmp qword [rbp - 0x18], 0x10
jb 0x14001e4b3
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov al, bl
jmp 0x14001e4bc
mov eax, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400b3bf0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140023cc0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp - 1], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140122f00]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov esi, edx
mov rdi, rcx
or ebx, 0xffffffff
cmp edx, ebx
jne 0x140023d02
xor eax, eax
jmp 0x140023ecb
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x140023d3c
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
mov rcx, r8
add rcx, qword [rax]
cmp qword [rax], rcx
jae 0x140023d3c
lea ecx, [r8 - 1]
mov dword [rdx], ecx
mov rdx, qword [rdi + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], sil
mov eax, esi
jmp 0x140023ecb
cmp qword [rdi + 0x90], 0
je 0x140023ec9
mov rdx, qword [rdi + 0x18]
lea rax, [rdi + 0x80]
cmp qword [rdx], rax
jne 0x140023d74
mov rcx, qword [rdi + 0x70]
mov rax, qword [rdi + 0x68]
mov qword [rdx], rax
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
sub ecx, ecx
mov rax, qword [rdi + 0x50]
mov dword [rax], ecx
cmp qword [rdi + 0x78], 0
jne 0x140023d96
movsx ecx, sil
mov rdx, qword [rdi + 0x90]
call qword [sym.imp.msvcrt.dll_fputc]
cmp eax, ebx
cmovne ebx, esi
jmp 0x140023ec9
mov byte [rbp - 0x19], sil
mov qword [rbp + 0x1f], 0xf
and qword [rbp + 0x17], 0
mov byte [rbp + 7], 0
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp + 7]
call fcn.140010714
nop
lea r8, [rbp + 7]
cmp qword [rbp + 0x1f], 0x10
cmovae r8, qword [rbp + 7]
lea r9, [rbp + 7]
cmovae r9, qword [rbp + 7]
mov rcx, qword [rdi + 0x78]
mov rdx, qword [rcx]
add r8, qword [rbp + 0x17]
mov rax, qword [rdx + 0x38]
lea rdx, [rbp - 0x11]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x28], r9
lea rdx, [rbp - 9]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x18]
lea r8, [rbp - 0x19]
lea rdx, [rdi + 0x84]
call qword [str._F_v_]
test eax, eax
js 0x140023eb8
cmp eax, 1
jg 0x140023e9d
lea rax, [rbp + 7]
mov rdx, qword [rbp + 7]
mov r10, qword [rbp + 0x1f]
cmp r10, 0x10
cmovae rax, rdx
mov r14, qword [rbp - 0x11]
sub r14, rax
je 0x140023e63
lea rcx, [rbp + 7]
cmp r10, 0x10
cmovae rcx, rdx
mov r9, qword [rdi + 0x90]
mov r8, r14
mov edx, 1
call qword [sym.imp.msvcrt.dll_fwrite]
cmp r14, rax
jne 0x140023eb8
mov byte [rdi + 0x81], 1
lea rax, [rbp - 0x19]
cmp qword [rbp - 9], rax
jne 0x140023e99
test r14, r14
jne 0x140023dbc
cmp qword [rbp + 0x17], 0x20
jae 0x140023eb8
xor r8d, r8d
lea edx, [r14 + 8]
lea rcx, [rbp + 7]
call fcn.14000675c
jmp 0x140023dbc
mov ebx, esi
jmp 0x140023eb8
cmp eax, 3
jne 0x140023eb8
movsx ecx, byte [rbp - 0x19]
mov rdx, qword [rdi + 0x90]
call qword [sym.imp.msvcrt.dll_fputc]
cmp eax, ebx
cmovne ebx, esi
cmp qword [rbp + 0x1f], 0x10
jb 0x140023ec9
mov rcx, qword [rbp + 7]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400b3bf0
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret