joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140321140
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x38
cmp r8d, 8
jge 0x1403211dd
xor eax, eax
cmp r8d, 4
jl 0x140321191
add r8d, 0xfffffffc
movsx r10, word [rcx + rax*2]
movsx r9, dx
cmp r10d, r9d
je 0x1403211d8
nop dword [rax]
movsx r10, word [rcx + rax*2 + 2]
cmp r10d, r9d
je 0x1403211d1
movsx r10, word [rcx + rax*2 + 4]
cmp r10d, r9d
je 0x1403211c9
movsx r10, word [rcx + rax*2 + 6]
cmp r10d, r9d
je 0x1403211c1
add rax, 4
test r8d, r8d
jle 0x1403213ba
movsx r9, dx
nop
dec r8d
movsx rdx, word [rcx + rax*2]
cmp edx, r9d
je 0x1403211d8
inc rax
test r8d, r8d
jg 0x1403211a0
jmp 0x1403213ba
add eax, 3
jmp 0x1403213b5
add eax, 2
jmp 0x1403213b5
inc eax
jmp 0x1403213b5
jmp 0x1403213b5
movsx r9, dx
movd xmm0, r9d
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
mov rax, rcx
lea edx, [r8 - 8]
movsxd rdx, edx
add rdx, rdx
lea r10, [rax + rdx]
movups xmm1, xmmword [rax]
pcmpeqw xmm1, xmm0
movaps xmmword [rsp + 0x20], xmm1
xorps xmm2, xmm2
pcmpeqw xmm1, xmm2
pmovmskb r9d, xmm1
cmp r9d, 0xffff
jne 0x1403212f6
add rax, 0x10
cmp rax, r10
jbe 0x140321200
mov eax, r8d
test al, 7
je 0x1403213ba
movups xmm1, xmmword [r10]
pcmpeqw xmm0, xmm1
movaps xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
pcmpeqw xmm0, xmm1
pmovmskb ecx, xmm0
cmp ecx, 0xffff
je 0x1403213ba
mov rax, qword [rsp + 0x20]
mov qword [rsp + 8], rax
movzx eax, word [rsp + 8]
shr eax, 0xf
movzx ecx, word [rsp + 0xa]
shr ecx, 0xf
add ecx, ecx
or eax, ecx
movzx ecx, word [rsp + 0xc]
shr ecx, 0xf
shl ecx, 2
or ecx, eax
mov eax, ecx
movzx ecx, word [rsp + 0xe]
shr ecx, 0xf
shl ecx, 3
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x28]
mov qword [rsp], rcx
movzx ecx, word [rsp]
shr ecx, 0xf
movzx r8d, word [rsp + 2]
shr r8d, 0xf
add r8d, r8d
or ecx, r8d
movzx r8d, word [rsp + 4]
shr r8d, 0xf
shl r8d, 2
or r8d, ecx
mov ecx, r8d
movzx r8d, word [rsp + 6]
shr r8d, 0xf
shl r8d, 3
or r8d, ecx
mov ecx, r8d
shl ecx, 4
or eax, ecx
jne 0x1403213ac
mov ecx, 0x20
jmp 0x1403213af
mov rdx, qword [rsp + 0x20]
mov qword [rsp + 0x18], rdx
movzx edx, word [rsp + 0x18]
shr edx, 0xf
movzx r8d, word [rsp + 0x1a]
shr r8d, 0xf
add r8d, r8d
or edx, r8d
movzx r8d, word [rsp + 0x1c]
shr r8d, 0xf
shl r8d, 2
or r8d, edx
mov edx, r8d
movzx r8d, word [rsp + 0x1e]
shr r8d, 0xf
shl r8d, 3
or r8d, edx
mov edx, r8d
mov r8, qword [rsp + 0x28]
mov qword [rsp + 0x10], r8
movzx r8d, word [rsp + 0x10]
shr r8d, 0xf
movzx r10d, word [rsp + 0x12]
shr r10d, 0xf
add r10d, r10d
or r8d, r10d
movzx r10d, word [rsp + 0x14]
shr r10d, 0xf
shl r10d, 2
or r10d, r8d
mov r8d, r10d
movzx r10d, word [rsp + 0x16]
shr r10d, 0xf
shl r10d, 3
or r10d, r8d
mov r8d, r10d
shl r8d, 4
or edx, r8d
jne 0x14032139d
mov r8d, 0x20
jmp 0x1403213a1
bsf r8d, edx
sub rax, rcx
shr rax, 1
add eax, r8d
jmp 0x1403213b5
bsf ecx, eax
shr rdx, 1
lea eax, [rdx + rcx]
add rsp, 0x38
ret
mov eax, 0xffffffff
add rsp, 0x38
ret
Function at 0x14032afc0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x48
movaps xmmword [rsp + 0x30], xmm6
cmp r9d, 8
jge 0x14032b011
movzx r10d, dx
sub r8d, r10d
movzx eax, r8w
xor edx, edx
test r9d, r9d
jle 0x14032b23b
movsxd r8, edx
movzx r8d, word [rcx + r8*2]
sub r8d, r10d
movzx r8d, r8w
cmp r8d, eax
jle 0x14032b005
inc edx
cmp edx, r9d
jl 0x14032afe5
jmp 0x14032b23b
mov eax, edx
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret
movzx r10d, dx
movd xmm0, r10d
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
mov eax, r8d
sub eax, r10d
movzx eax, ax
movd xmm1, eax
punpcklwd xmm1, xmm1
pshufd xmm1, xmm1, 0
mov rax, rcx
add r9d, 0xfffffff8
mov edx, r9d
add rdx, rdx
lea r8, [rax + rdx]
movups xmm2, xmmword [case.0x140315265.101]
movaps xmm3, xmm1
psubw xmm3, xmm2
movups xmm4, xmmword [rax]
psubw xmm4, xmm0
movaps xmm5, xmm4
psubw xmm5, xmm2
movaps xmm6, xmm3
pcmpgtw xmm6, xmm5
pcmpeqw xmm4, xmm1
por xmm4, xmm6
movaps xmmword [rsp + 0x20], xmm4
xorps xmm5, xmm5
pcmpeqw xmm4, xmm5
pmovmskb r10d, xmm4
cmp r10d, 0xffff
jne 0x14032b17b
add rax, 0x10
cmp rax, r8
jb 0x14032b058
movups xmm4, xmmword [r8]
psubw xmm4, xmm0
movaps xmm0, xmm4
psubw xmm0, xmm2
pcmpgtw xmm3, xmm0
pcmpeqw xmm1, xmm4
por xmm1, xmm3
movaps xmmword [rsp + 0x20], xmm1
xorps xmm0, xmm0
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
cmp eax, 0xffff
je 0x14032b23b
mov rax, qword [rsp + 0x20]
mov qword [rsp + 8], rax
movzx eax, word [rsp + 8]
shr eax, 0xf
movzx ecx, word [rsp + 0xa]
shr ecx, 0xf
add ecx, ecx
or eax, ecx
movzx ecx, word [rsp + 0xc]
shr ecx, 0xf
shl ecx, 2
or ecx, eax
mov eax, ecx
movzx ecx, word [rsp + 0xe]
shr ecx, 0xf
shl ecx, 3
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x28]
mov qword [rsp], rcx
movzx ecx, word [rsp]
shr ecx, 0xf
movzx r8d, word [rsp + 2]
shr r8d, 0xf
add r8d, r8d
or ecx, r8d
movzx r8d, word [rsp + 4]
shr r8d, 0xf
shl r8d, 2
or r8d, ecx
mov ecx, r8d
movzx r8d, word [rsp + 6]
shr r8d, 0xf
shl r8d, 3
or r8d, ecx
mov ecx, r8d
shl ecx, 4
or eax, ecx
bsf ecx, eax
mov r8d, 0x20
test eax, eax
cmove ecx, r8d
mov eax, ecx
shr rdx, 1
add eax, edx
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret
mov rdx, qword [rsp + 0x20]
mov qword [rsp + 0x18], rdx
movzx edx, word [rsp + 0x18]
shr edx, 0xf
movzx r8d, word [rsp + 0x1a]
shr r8d, 0xf
add r8d, r8d
or edx, r8d
movzx r8d, word [rsp + 0x1c]
shr r8d, 0xf
shl r8d, 2
or r8d, edx
mov edx, r8d
movzx r8d, word [rsp + 0x1e]
shr r8d, 0xf
shl r8d, 3
or r8d, edx
mov edx, r8d
mov r8, qword [rsp + 0x28]
mov qword [rsp + 0x10], r8
movzx r8d, word [rsp + 0x10]
shr r8d, 0xf
movzx r10d, word [rsp + 0x12]
shr r10d, 0xf
add r10d, r10d
or r8d, r10d
movzx r10d, word [rsp + 0x14]
shr r10d, 0xf
shl r10d, 2
or r10d, r8d
mov r8d, r10d
movzx r10d, word [rsp + 0x16]
shr r10d, 0xf
shl r10d, 3
or r10d, r8d
mov r8d, r10d
shl r8d, 4
or edx, r8d
bsf r8d, edx
mov r10d, 0x20
test edx, edx
cmove r8d, r10d
sub rax, rcx
shr rax, 1
add eax, r8d
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret
mov eax, 0xffffffff
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x140001170
Capabilities:
Suspend thread

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rcx + 0x30], 0
lea rax, vtable.AcIvProcessManagementThread.0
mov qword [rcx], rax
mov rbx, rcx
je 0x1400011e9
mov byte [rcx + 0x31], 1
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_SetEvent]
xor edi, edi
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
cmp byte [rbx + 0x30], dil
je 0x1400011e4
nop word [rax + rax]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 5
jle 0x1400011c8
cmp byte [rbx + 0x30], 0
jne 0x1400011d6
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
cmp byte [rbx + 0x30], 0
jne 0x1400011b0
jmp 0x1400011e4
mov rcx, qword [rbx + 8]
mov rcx, qword [rcx + 0x58]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140001200
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x10], 0
add rsp, 0x20
pop rbx
ret

Function at 0x140001210
Capabilities:
Resume thread

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x18], 0
mov rbx, rcx
jne 0x140001253
mov r8d, dword [rcx + 0x24]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [rbx + 0x20], eax
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x10], rax
cmp byte [rbx + 0x30], 0
jne 0x1400012a4
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140001278
mov rcx, qword [rcx + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov word [rbx + 0x30], 1
add rsp, 0x30
pop rbx
ret
xor eax, eax
lea rcx, [0x1400012e0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov rdx, rbx
mov dword [rsp + 0x20], eax
lea r8d, [rax - 2]
call qword [sym.imp.mfc140u.dll_AFX_WM_ON_MOVETABCOMPLETE]
mov qword [rbx + 8], rax
mov word [rbx + 0x30], 1
add rsp, 0x30
pop rbx
ret

Function at 0x1400012b0
Capabilities:
Suspend thread

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x1400012d0
mov rcx, qword [rcx + 0x58]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov byte [rbx + 0x30], 0
add rsp, 0x20
pop rbx
ret
Function at 0x1400012f0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140013008]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 0x31], 0
mov rbx, rcx
jne 0x1400013cf
mov qword [rsp + 0x48], rsi
lea rsi, vtable.AcIvProcessManagementThread.0
mov qword [rsp + 0x50], rdi
xor edi, edi
nop word [rax + rax]
mov rcx, qword [rbx + 0x10]
mov edx, 0xbb8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [rbx + 0x31], dil
jne 0x1400013bd
mov rcx, qword [rbx + 0x18]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x1400013b1
cmp dword [rsp + 0x20], 0x103
je 0x1400013b1
mov rax, qword [rbx]
mov rdx, qword [rax + 0x18]
cmp rax, rsi
jne 0x1400013e2
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x14000139a
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rbx + 0x10]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [rbx + 0x31], dil
jne 0x1400013c5
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp byte [rbx + 0x31], dil
je 0x140001330
jmp 0x1400013c5
mov byte [rbx + 0x30], dil
mov qword [rbx + 8], rdi
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400092e0
add rsp, 0x30
pop rbx
ret
mov rcx, rbx
call rdx
jmp 0x1400013b1

Function at 0x1400013f0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x28]
test rcx, rcx
je 0x140001421
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rbx + 0x10]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [rbx + 0x31], 0
jne case.default.0x140001437
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
xor edx, edx
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x20
pop rbx
ret
xor bh, byte [0x170326ef0]
xor byte [rdx], dh
xor byte [rdx + rsi], dh
xor byte [0x170322409], ch
sub eax, 0x30303030
sub eax, 0x30303043
sub eax, 0x30303030
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor al, 0x36
jge 0x14001f414
cmp al, 0x2f
invalid
invalid
Function at 0x140005690
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x140013008]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rsi, rcx
mov qword [rsp + 0x40], rdx
xor ecx, ecx
xor r8d, r8d
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rcx
mov edi, dword [rsi + 8]
mov dword [rsp + 0x50], ecx
or edi, 0x2001f
mov qword [rsp + 0x58], rcx
mov r9d, edi
mov qword [rsp + 0x60], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x1400057e7
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140005718
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
and edi, 0x300
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x50], edi
test ebx, ebx
jne 0x1400057e7
xor edi, edi
mov dword [rsp + 0x68], 0x100
lea rax, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x68]
mov qword [rsp + 0x30], rdi
lea r8, [rbp - 0x80]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1400057bf
nop dword [rax]
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x48]
call fcn.140005690
mov ebx, eax
test eax, eax
jne 0x1400057e7
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x68]
mov qword [rsp + 0x30], rdi
lea r8, [rbp - 0x80]
mov qword [rsp + 0x28], rdi
xor edx, edx
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x68], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140005770
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400057d4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rdi
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
mov dword [rsp + 0x50], edi
call fcn.140005990
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400057f7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400092e0
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x290
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400058e0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x140005954
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je case.default.0x14000596f
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je case.default.0x14000596f
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je case.default.0x14000596f
mov rdx, rdi
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov eax, 1
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x1400059be
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x1400058e0
cmp byte [0x140013f48], 0
jne 0x140005a09
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400059f9
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140013f40], rax
mov byte [0x140013f48], 1
jmp 0x140005a10
mov rax, qword [0x140013f40]
mov byte [0x140013f48], 1
jmp 0x140005a10
mov rax, qword [0x140013f40]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x140005a2f
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]
invalid
Function at 0x140005990
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x140005954
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je case.default.0x14000596f
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je case.default.0x14000596f
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je case.default.0x14000596f
mov rdx, rdi
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov eax, 1
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x1400059be
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x1400058e0
cmp byte [0x140013f48], 0
jne 0x140005a09
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400059f9
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140013f40], rax
mov byte [0x140013f48], 1
jmp 0x140005a10
mov rax, qword [0x140013f40]
mov byte [0x140013f48], 1
jmp 0x140005a10
mov rax, qword [0x140013f40]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x140005a2f
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]
invalid
Function at 0x140006620
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x140013008]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], r14
xor edx, edx
mov r8d, CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x70], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x1400066c0
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x1400066c0
call fcn.140004590
mov ebx, eax
jmp 0x1400067e8
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x1400066e1
call fcn.140004590
jmp 0x1400067d7
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x140006704
call fcn.140004590
jmp 0x1400067d7
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 0x140006726
mov ebx, 0x8007000e
jmp 0x1400067d9
mov ecx, eax
test eax, eax
je 0x14000675e
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140006754
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x14000675e
lea rcx, [rsp + 0x70]
call fcn.140004560
jmp 0x140006768
mov ecx, 0x80070216
call fcn.140004f30
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x14000677b
cmp qword [rsp + 0x70], 0
jne 0x14000678a
mov ebx, 0x8007000e
jmp 0x1400067d9
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
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 0x1400067b4
call fcn.140004590
jmp 0x1400067d7
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x58]
call fcn.140006430
mov ebx, eax
test rdi, rdi
je 0x1400067e8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x1400067ff
lea rcx, [rsp + 0x70]
call fcn.140004540
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1400092e0
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret

Function at 0x140007050
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
call fcn.140006d90
call fcn.1400070e0
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x1400070e0
Capabilities:
Accept command line arguments

Disassembly:
mov dword [rsp + 0x10], edx
sub rsp, 0x28
cmp byte [0x140013f60], 0
je 0x1400070f9
or eax, 0xffffffff
add rsp, 0x28
ret
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ole32.dll_CoInitialize]
mov dword [rsp + 0x38], eax
mov ebx, eax
test eax, eax
jns 0x140007135
cmp eax, 0x80010106
jne 0x14000716f
lea rcx, str.Mscoree.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x14000713c
mov eax, ebx
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
mov byte [0x140013ec2], 1
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea r8, [rsp + 0x38]
call fcn.140007520
cmp al, 1
jne 0x14000715c
call fcn.1400074a0
mov ebx, eax
jmp 0x140007160
mov ebx, dword [rsp + 0x38]
cmp byte [0x140013ec2], 0
je 0x14000716f
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret

Function at 0x140007180
Capabilities:
Create thread

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140013008]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140013eb0], rax
test rax, rax
jne 0x1400071c1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400092e0
add rsp, 0x48
ret
lea rax, [rsp + 0x30]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x28], rax
lea r9, [0x140013e60]
lea r8, [0x140007740]
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
jne 0x140007205
mov rcx, qword [0x140013eb0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400092e0
add rsp, 0x48
ret
Function at 0x4722e0
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
sub rsp, 0xc8
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
nop
cmp word [0x00400000], 0x5a4d
je 0x47231d
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
lea rdi, [0x00400000]
jmp 0x4723ab
movsxd rax, dword [0x0040003c]
lea rdi, [0x00400000]
add rax, rdi
cmp dword [rax], 0x4550
je 0x472341
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x4723ab
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x472388
cmp ecx, 0x20b
je 0x472360
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x4723ab
cmp dword [rax + 0x84], 0xe
ja 0x472374
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x4723ab
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
jmp 0x4723ab
cmp dword [rax + 0x74], 0xe
ja 0x472399
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x4723ab
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
mov ecx, 2
call qword [sym.imp.msvcrt.dll___set_app_type]
mov qword [0x0049f328], 0xffffffffffffffff
mov qword [0x0049f330], 0xffffffffffffffff
mov rcx, qword [sym.imp.msvcrt.dll__fmode]
mov eax, dword [0x0049cd84]
mov dword [rcx], eax
mov rcx, qword [sym.imp.msvcrt.dll__commode]
mov eax, dword [0x0049cd80]
mov dword [rcx], eax
call fcn.00472590
cmp dword [0x0049c720], 0
jne 0x472405
lea rcx, [fcn.00472590]
call qword [sym.imp.msvcrt.dll___setusermatherr]
lea rdx, [0x00474700]
lea rcx, [0x004746f8]
call sub.msvcrt.dll__initterm
mov r11d, dword [0x0049cd7c]
mov dword [rsp + 0xd8], r11d
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x0049cd78]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x3c]
call qword [sym.imp.msvcrt.dll___getmainargs]
lea rdx, [0x004746f0]
lea rcx, [0x00474698]
call fcn.0053f000
mov r11, qword [sym.imp.msvcrt.dll__acmdln]
mov r8, qword [r11]
mov qword [rsp + 0x30], r8
cmp byte [r8], 0x22
jne 0x4724a6
nop
nop
inc r8
mov qword [rsp + 0x30], r8
movzx eax, byte [r8]
test al, al
je 0x472496
cmp al, 0x22
je 0x472496
jmp 0x472480
cmp byte [r8], 0x22
jne 0x4724b6
inc r8
mov qword [rsp + 0x30], r8
jmp 0x4724b6
cmp byte [r8], 0x20
jbe 0x4724b6
inc r8
mov qword [rsp + 0x30], r8
jmp 0x4724a6
movzx eax, byte [r8]
test al, al
je 0x4724cc
cmp al, 0x20
ja 0x4724cc
inc r8
mov qword [rsp + 0x30], r8
jmp 0x4724b6
test byte [rsp + 0x8c], 1
je 0x4724e1
movzx r9d, word [rsp + 0x90]
jmp 0x4724e7
mov r9d, 0xa
xor edx, edx
mov rcx, rdi
call fcn.0046d44c
mov edi, eax
mov dword [rsp + 0x38], eax
test ebx, ebx
jne 0x472503
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
call qword [sym.imp.msvcrt.dll__cexit]
jmp 0x472527
mov eax, edi
jmp 0x472530
mov rbx, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xe8]
add rsp, 0xc8
ret