joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002aa0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002b73
cmp byte [rcx + 0x71], 0
je 0x140002b73
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140002b6f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002b34
sub eax, 1
je 0x140002b38
cmp eax, 2
jne 0x140002b6f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003280
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002b66
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140002b6f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140002b1c
xor al, al
jmp 0x140002b1c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003280
add rsp, 0x60
pop rbx
ret

Function at 0x140003ca0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003cea
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140003cea
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003cea
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003cea
cmp dword [rcx + 0x84], 0xe
jbe 0x140003cea
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003cec
xor al, al
add rsp, 0x28
ret
Function at 0x180011140
Capabilities:
Write file on windows

Disassembly:
jmp 0x18001e970
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1800440fd]
call fcn.180011b45
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x18001e9c7
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x18001ead3
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x18001ea6c
cmp qword [rbp + 0x28], 0
jle 0x18001ea6c
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x18001ea0c
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.180011a9b
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x18001eac2
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x18001eac2
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x18001166d
Capabilities:
Terminate process

Disassembly:
jmp 0x180027c70
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 0x180011a64
Capabilities:
Allocate or change rwx memory

Disassembly:
jmp 0x180020380
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x128]
mov rax, qword [0x18003a480]
xor rax, rbp
mov qword [rbp + 0xd8], rax
lea rcx, [0x18004425f]
call fcn.180011b45
lea r9, [rbp + 4]
mov r8d, 0x40
mov edx, 8
mov rcx, qword [rbp + 0x100]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, 8
mov rdx, qword [rbp + 0x108]
mov rcx, qword [rbp + 0x100]
call fcn.180011578
lea r9, [rbp + 4]
mov r8d, dword [rbp + 4]
mov edx, 8
mov rcx, qword [rbp + 0x100]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rcx, [rbp - 0x20]
lea rdx, [0x180033730]
call fcn.180011938
mov rcx, qword [rbp + 0xd8]
xor rcx, rbp
call fcn.180011573
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x180011b22
Capabilities:
Write file on windows

Disassembly:
jmp 0x180019e20
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1b8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1d8]
mov rax, qword [0x18003a480]
xor rax, rbp
mov qword [rbp + 0x170], rax
lea rcx, [0x1800440fd]
call fcn.180011b45
mov rax, qword [rbp + 0x1a0]
cmp qword [rax + 0x68], 0
je 0x180019e86
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x180019e8d
mov al, 1
jmp 0x180019ffd
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x158], rax
call fcn.18001132f
mov dword [rbp + 0x160], eax
mov edx, dword [rbp + 0x160]
mov rcx, qword [rbp + 0x1a0]
call qword [rbp + 0x158]
mov dword [rbp + 0x164], eax
call fcn.18001132f
mov dword [rbp + 0x168], eax
mov edx, dword [rbp + 0x164]
mov ecx, dword [rbp + 0x168]
call fcn.1800118c5
movzx eax, al
test eax, eax
je 0x180019ef0
xor al, al
jmp 0x180019ffd
mov qword [rbp + 8], 0x20
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax + 0x68]
mov qword [rbp + 0x158], rax
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1a0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rcx, qword [rbp + 0x158]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x160], eax
cmp dword [rbp + 0x160], 0
je 0x180019f63
cmp dword [rbp + 0x160], 1
je 0x180019f6e
cmp dword [rbp + 0x160], 3
je 0x180019fec
jmp 0x180019ffb
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x180019fbe
mov rax, qword [rbp + 0x1a0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x180019fbe
xor al, al
jmp 0x180019ffd
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x180019fd9
mov dword [rbp + 0x154], 1
jmp 0x180019fe3
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x180019ffd
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x180019ffd
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x180032810]
call fcn.180011938
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rbp
call fcn.180011573
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x180023480
Capabilities:
Suspend thread

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x40]
mov qword [rax], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 8], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0xc], 0
mov rcx, qword [rsp + 0x40]
call fcn.180023270
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x180023557
mov dword [rsp + 0x20], 0
jmp 0x1800234f4
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x20], eax
jae 0x180023557
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov r8d, dword [rcx + rax*4]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180023555
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, dword [rsp + 0x50]
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
call fcn.180023050
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800234ea
add rsp, 0x30
pop rdi
ret

Function at 0x180023570
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x180023614
mov dword [rsp + 0x20], 0
jmp 0x1800235ad
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x20], eax
jae 0x1800235fd
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov r8d, dword [rcx + rax*4]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800235fb
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800235a3
mov rax, qword [rsp + 0x40]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x18003aba8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x30
pop rdi
ret
Function at 0x180023620
Capabilities:
Allocate or change rwx memory

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x70
mov rdi, rsp
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x80]
mov eax, dword [rsp + 0x80]
imul rax, rax, 0x38
mov rcx, qword [0x18003b340]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x48], 5
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x1800236a4
mov rax, qword [rsp + 0x50]
sub rax, 5
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
add rax, 2
mov qword [rsp + 0x48], rax
lea r9, [rsp + 0x34]
mov r8d, 0x40
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800236cd
mov eax, 0xa
jmp 0x180023807
cmp dword [rsp + 0x88], 0
je 0x18002373b
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov byte [rax], 0xe9
mov rax, qword [rsp + 0x50]
add rax, 5
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 8]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x58]
mov dword [rcx + 1], eax
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x180023739
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov byte [rax], 0xeb
mov rax, qword [rsp + 0x60]
mov byte [rax + 1], 0xf9
jmp 0x180023787
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x18002376b
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov r8d, 7
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call fcn.180011578
jmp 0x180023787
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov r8d, 5
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call fcn.180011578
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx eax, byte [rsp + 0x88]
and al, 1
shl al, 1
mov rcx, qword [rsp + 0x20]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfd
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x20]
mov byte [rcx + 0x20], al
movzx eax, byte [rsp + 0x88]
and al, 1
shl al, 2
mov rcx, qword [rsp + 0x20]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfb
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x20]
mov byte [rcx + 0x20], al
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x180034180]
call fcn.180011938
mov rax, rdi
add rsp, 0x70
pop rdi
ret
Function at 0x180025560
Capabilities:
Check for software breakpoints

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x10
mov rdi, rsp
mov ecx, 4
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x20]
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
test eax, eax
je 0x1800255ce
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
cmp eax, 0x90
je 0x1800255ce
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
cmp eax, 0xcc
je 0x1800255ce
xor eax, eax
jmp 0x180025615
mov dword [rsp], 1
jmp 0x1800255df
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp], eax
jae 0x180025610
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x20]
movzx ecx, byte [rdx + rcx]
cmp eax, ecx
je 0x18002560e
xor eax, eax
jmp 0x180025615
jmp 0x1800255d7
mov eax, 1
add rsp, 0x10
pop rdi
ret
Function at 0x401b46
Capabilities:
Get hostname
Get session user name

Disassembly:
push rbp
sub rsp, 0x1a0
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x114], 1
mov qword [rbp + 0x108], 0x1552
lea rax, [rbp + 0x108]
mov byte [rax], 0x48
mov qword [rbp + 0x100], 0x2271
lea rax, [rbp + 0x100]
mov byte [rax], 0x4e
mov qword [rbp + 0xf8], 0xcc77
lea rax, [rbp + 0xf8]
mov byte [rax], 0x55
mov dword [rbp + 0x11c], 0
jmp 0x401bc4
lea rdx, [rbp - 0x10]
mov eax, dword [rbp + 0x11c]
cdqe
add rax, rdx
mov byte [rax], 0
add dword [rbp + 0x11c], 1
cmp dword [rbp + 0x11c], 0xff
jle 0x401bab
mov qword [rbp - 0x18], 0
movsd xmm0, qword [0x004ec068]
movsd qword [rbp - 0x20], xmm0
lea rax, [rbp - 0x20]
mov byte [rax], 0x42
mov dword [rbp - 0x24], 0x9275
lea rax, [rbp - 0x24]
mov byte [rax], 0x58
mov qword [rbp - 0x30], 0x895
lea rax, [rbp - 0x30]
mov byte [rax], 0x3e
mov dword [rbp - 0x34], 0x100
cmp dword [rbp + 0x114], 0
jne 0x401c63
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_SetLastError]
call rax
mov qword [rbp - 0x50], 0xa8a5
lea rax, [rbp - 0x50]
mov byte [rax], 0xac
mov qword [rbp - 0x58], 0x2279
lea rax, [rbp - 0x58]
mov byte [rax], 0x9c
lea rdx, [rbp - 0x34]
lea rax, [rbp - 0x10]
mov r8, rdx
mov rdx, rax
mov ecx, 2
mov rax, qword [sym.imp.KERNEL32.dll_GetComputerNameExA]
call rax
jmp 0x401cc3
cmp dword [rbp + 0x114], 1
jne 0x401c98
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_SetLastError]
call rax
lea rdx, [rbp - 0x34]
lea rax, [rbp - 0x10]
mov r8, rdx
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetComputerNameExA]
call rax
jmp 0x401cc3
cmp dword [rbp + 0x114], 2
jne 0x401cc3
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_SetLastError]
call rax
lea rdx, [rbp - 0x34]
lea rax, [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_GetUserNameA]
call rax
mov dword [rbp + 0x118], 0
jmp 0x401d0b
lea rdx, [rbp - 0x10]
mov eax, dword [rbp + 0x118]
cdqe
add rax, rdx
movzx eax, byte [rax]
movzx eax, al
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll_toupper]
call rax
mov ecx, eax
lea rdx, [rbp - 0x10]
mov eax, dword [rbp + 0x118]
cdqe
add rax, rdx
mov edx, ecx
mov byte [rax], dl
add dword [rbp + 0x118], 1
cmp dword [rbp + 0x118], 8
jle 0x401ccf
mov qword [rbp - 0x40], 0xafad
lea rax, [rbp - 0x40]
mov byte [rax], 0xcc
mov qword [rbp - 0x48], 0x478
lea rax, [rbp - 0x48]
mov byte [rax], 0xb9
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
add rsp, 0x1a0
pop rbp
ret
Function at 0x403afb
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
mov word [rbp - 2], 0
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x18], 0
mov rax, qword [rbp + 0x18]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x18]
add rax, rdx
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
add rax, 0x18
mov rdx, rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx eax, ax
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x14]
cmp dword [rbp + 0x10], eax
jae 0x403b6d
mov edx, dword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
add rax, rdx
jmp 0x403c59
mov word [rbp - 2], 0
jmp 0x403c42
movzx edx, word [rbp - 2]
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp - 0x10]
add rax, rdx
mov eax, dword [rax + 0xc]
cmp dword [rbp + 0x10], eax
jb 0x403c37
movzx edx, word [rbp - 2]
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp - 0x10]
add rax, rdx
mov ecx, dword [rax + 0xc]
movzx edx, word [rbp - 2]
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp - 0x10]
add rax, rdx
mov eax, dword [rax + 0x10]
add eax, ecx
cmp dword [rbp + 0x10], eax
jae 0x403c37
movzx edx, word [rbp - 2]
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp - 0x10]
add rax, rdx
mov eax, dword [rax + 0xc]
mov edx, dword [rbp + 0x10]
mov ecx, edx
sub ecx, eax
movzx edx, word [rbp - 2]
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp - 0x10]
add rax, rdx
mov eax, dword [rax + 0x14]
add eax, ecx
mov edx, eax
mov rax, qword [rbp + 0x18]
add rax, rdx
jmp 0x403c59
movzx eax, word [rbp - 2]
add eax, 1
mov word [rbp - 2], ax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
cmp word [rbp - 2], ax
jb 0x403b78
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x4044e0
Capabilities:
Execute syscall

Disassembly:
mov rax, rsp
mov rsp, qword [rcx + 8]
add rsp, 0x9000
and rsp, 0xfffffffffffffff0
sub rsp, 0x298
push rax
push rbx
push rdi
push rsi
push 0
mov rsi, rax
mov rbx, rax
mov rax, qword [rcx]
mov qword [rsp], rax
xor rax, rax
sub rdx, 4
cmp rdx, 0
jle 0x404533
cmp rdx, rax
je 0x404533
inc rax
lea r10, [rsi + rax*8 + 0x38]
lea r11, [rsp + rax*8 + 0x20]
mov r10, qword [r10]
mov qword [r11], r10
jmp 0x404519
mov r10, r9
mov rdx, qword [rsi + 0x28]
mov rax, r8
mov r8, qword [rsi + 0x30]
mov r9, qword [rsi + 0x38]
lea rbx, [0x0040455e]
mov qword [rsp + 0x200], rbx
lea rbx, [rsp + 0x200]
syscall
pop rcx
mov rcx, rsi
pop rsi
pop rdi
pop rbx
pop rsp
ret
Function at 0x1400058e0
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 [0x140118a50]
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 0x1400059fc
mov r9, qword [rdi + 0x18]
mov edx, esi
test r9, r9
je 0x140005983
lea edx, [rsi + 0x32]
mov r8d, edx
mov rax, r9
cmp word [rax], si
je 0x140005964
add rax, 2
sub r8, 1
jne 0x140005955
mov rax, r8
neg rax
sbb ecx, ecx
not ecx
and ecx, 0x80070057
test r8, r8
je 0x14000597e
sub rdx, r8
jmp 0x140005988
mov rdx, rsi
jmp 0x140005988
mov ecx, 0x80070057
test ecx, ecx
js 0x140005991
add rdx, rdx
jmp 0x140005994
mov rdx, rsi
test ecx, ecx
jne 0x1400059d7
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x140005a44
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 0x140005a10
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 0x140005a08
test byte [0x14011a1c1], 2
je 0x140005a10
lea r8, str.Unexpected_error_getting_the_length_of_the_UE_V_registry_value
lea rdx, [0x1400ce128]
lea rcx, [0x140112050]
call fcn.140002e4c
jmp 0x140005a10
cmp eax, 2
je 0x140005a10
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.140006ad4
nop
lea rcx, [rsp + 0xa0]
call fcn.140005eec
mov eax, ebx
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1400b6250
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
lea rdx, str.Attempting_to_use_an_invalid_handle.
lea rcx, [rsp + 0x38]
call fcn.140005f98
nop
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.1400057d8
lea rdx, [0x14010e268]
lea rcx, [rsp + 0x60]
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x14001a488
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 [0x140118a50]
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 0x14001a53a
mov dword [rbp + 0x37], 4
mov rcx, qword [rbp + 0x47]
test rcx, rcx
je 0x14001a575
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 0x14001a549
mov edx, dword [rbp + 0x3b]
cmp edx, 4
jne 0x14001a52c
mov ebx, dword [rbp + 0x3f]
jmp 0x14001a549
lea rcx, str.AgentService.Util::GetDwordConfigValue:_Unexpected_value_type__type__0x_X
call fcn.1400043a0
jmp 0x14001a549
mov edx, eax
lea rcx, str.AgentService.Util::GetDwordConfigValue:_Failed_to_open_configuration_key__status__0x_X
call fcn.1400043a0
nop
lea rcx, [rbp + 0x47]
call fcn.140005eec
mov eax, ebx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1400b6250
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
lea rdx, str.Attempting_to_use_an_invalid_handle.
lea rcx, [rbp - 0x31]
call fcn.140005f98
nop
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 9]
call fcn.1400057d8
lea rdx, [0x14010e268]
lea rcx, [rbp - 9]
call sub.msvcrt.dll__CxxThrowException
int3