joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1430ad454
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1430ad45e
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x1430ad487
pop rbp
sub rbp, 0x33
sub rbp, 0x30ad454
sub rsp, 0x20
jmp 0x1430ad4a6
mov rax, 0x30ad454
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x16fb24db
xor byte [rax], dl
inc rax
dec rcx
jne 0x1430ad4c5
jmp 0x1430ad4dc
xchg ebx, eax
push rdx
xor dl, byte [rax + 0x52]
out 0xdb, eax
fcmovnu st(0), st(3)
xchg ebx, eax
pop rdx
sbb dl, bl
fcmovu st(0), st(3)
fist dword [rbx + 0x1c9332da]
sbb ebx, esp
fcmovnu st(0), st(3)
fist dword [rbx - 0x240ce6e4]
fcmovnu st(0), st(3)
xchg ebx, eax
sub al, 0x39
xchg ebx, eax
ficomp dword [rdx]
push rax
pop rdx
xlatb
fcmovnu st(0), st(3)
fist dword [rbx - 0x7474cc26]
xchg ebx, eax
invalid
Function at 0x140001540
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x58]
mov rdi, rcx
mov r8d, dword [0x14002fe58]
mov ebx, edx
mov ecx, 4
mov r8, qword [rax + r8*8]
mov eax, dword [rcx + r8]
cmp dword [0x14002fc6c], eax
jg 0x1400015ad
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x14002fc68]
cmp eax, 0x1388
jbe 0x140001599
call qword [sym.imp.ole32.dll_CoFreeUnusedLibraries]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x14002fc68], eax
mov edx, ebx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140017a6c
lea rcx, [0x14002fc6c]
call fcn.140019158
cmp dword [0x14002fc6c], 0xffffffff
jne 0x140001574
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [0x14002fc6c]
mov dword [0x14002fc68], eax
call fcn.1400190f0
jmp 0x140001574
jmp qword [sym.imp.MFC42u.dll_COleControlContainer::OnUIDeactivate]
Function at 0x140003f00
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14002f220]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea r9, [rsp + 0x20]
mov dword [rsp + 0x20], 0x104
lea r8, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
xor ebx, ebx
test eax, eax
jne 0x140003fa8
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
lea rax, [rsp + rcx*2 + 0x2e]
test rax, rax
je 0x140003f5e
cmp word [rax], 0x20
jne 0x140003f5e
mov word [rax], bx
mov edi, 0x22
cmp word [rsp + 0x30], di
jne 0x140003f8f
lea rdx, [rsp + 0x32]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, edi
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_wcsrchr]
test rax, rax
je 0x140003f8f
mov word [rax], bx
call sub.MFC42u.dll_Ordinal_1463
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.SHELL32.dll_ExtractIconW]
jmp 0x140003fac
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140019330
mov rbx, qword [rsp + reloc.MFC42u.dll_CDaoException::CDaoException]
add rsp, 0x250
pop rdi
ret
Function at 0x14000fb80
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x298
mov rax, qword [0x14002f220]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov dword [rsp + 0x68], 0
mov dword [rsp + 0x6c], 0
mov dword [rsp + 0x64], 0
mov dword [rsp + 0x74], 0x3fff
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 + 0x6c]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x2a8]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
jne 0x14000fd17
mov dword [rsp + 0x60], 0
jmp 0x14000fc4a
mov eax, dword [rsp + 0x60]
inc eax
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x6c]
cmp dword [rsp + 0x60], eax
jae 0x14000fd17
mov dword [rsp + 0x68], 0xff
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x80]
mov edx, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x2a8]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
jne 0x14000fd12
cmp dword [rsp + 0x68], 0
jbe 0x14000fd12
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x80]
cmp eax, 0x30
jne 0x14000fcdf
mov rax, qword [rsp + 0x2b0]
mov dword [rax], 0
xor eax, eax
jmp 0x14000fd1c
mov r8d, 0x10
xor edx, edx
lea rcx, [rsp + 0x80]
call qword [sym.imp.msvcrt.dll_wcstol]
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0
je 0x14000fd12
mov rax, qword [rsp + 0x2b0]
mov ecx, dword [rsp + 0x70]
mov dword [rax], ecx
xor eax, eax
jmp 0x14000fd1c
jmp 0x14000fc40
mov eax, 0x80004005
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140019330
add rsp, 0x298
ret
Function at 0x140012080
Capabilities:
Resume thread

Disassembly:
mov rcx, qword [rcx + 0x58]
jmp qword [sym.imp.KERNEL32.dll_ResumeThread]

Function at 0x140012134
Capabilities:
Suspend thread

Disassembly:
mov rcx, qword [rcx + 0x58]
jmp qword [sym.imp.KERNEL32.dll_SuspendThread]
Function at 0x140014f24
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.140016b58
test eax, eax
je 0x140014fa4
lea rcx, str.ACLUI.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
jne 0x140014f66
lea r9d, [rax + 0x10]
xor ecx, ecx
lea r8, str.OleViewer
lea rdx, str.Couldnt_load_ACLUI.DLL_
call qword [sym.imp.USER32.dll_MessageBoxW]
xor ecx, ecx
call qword [sym.imp.msvcrt.dll_exit]
int3
lea rdx, str.EditSecurity
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14002fcd0], rax
test rax, rax
jne 0x140014fa4
xor r9d, r9d
lea r8, str.OLEViewer
lea rdx, str.Couldnt_get_address_of_EditSecurity_ACLUI.DLL_
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor ecx, ecx
call qword [sym.imp.msvcrt.dll_exit]
int3
add rsp, 0x28
ret
Function at 0x140015e50
Capabilities:
Get user security identifier

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
xor edi, edi
mov rsi, rdx
mov dword [rsp + 0x68], edi
mov rbx, rcx
mov dword [rsp + 0x70], edi
test rdx, rdx
jne 0x140015e7b
mov eax, 0x80004003
jmp 0x140015f82
test rbx, rbx
jne 0x140015e8a
mov eax, 0x80070057
jmp 0x140015f82
lea rax, [rsp + 0x78]
mov qword [rdx], rdi
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x70]
lea rax, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rbx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
cmp eax, 0x7a
je 0x140015ed8
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x140015f82
mov ecx, dword [rsp + 0x68]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400011c8
mov rbp, rax
test rax, rax
jne 0x140015f06
mov eax, 0x8007000e
jmp 0x140015f82
mov ecx, dword [rsp + 0x70]
call qword [sym.imp.msvcrt.dll_malloc]
mov qword [rsi], rax
test rax, rax
je 0x140015f73
lea rcx, [rsp + 0x78]
mov r8, rax
mov qword [rsp + 0x30], rcx
lea r9, [rsp + 0x70]
lea rcx, [rsp + 0x68]
mov rdx, rbx
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x140015f78
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsi]
mov ebx, eax
call qword [sym.imp.msvcrt.dll_free]
mov rcx, rbp
mov qword [rsi], rdi
call fcn.1400011d4
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
jmp 0x140015f82
mov edi, 0x8007000e
mov rcx, rbp
call fcn.1400011d4
mov eax, edi
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400166a4
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r15
lea rbp, [rsp - 0x810]
sub rsp, 0x910
mov rax, qword [0x14002f220]
xor rax, rsp
mov qword [rbp + 0x800], rax
movups xmm0, xmmword [rcx]
xor edi, edi
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rdi
movaps xmmword [rsp + 0x50], xmm0
movdqa xmmword [rsp + 0x40], xmm0
call fcn.14001662c
test eax, eax
jne 0x1400168da
movaps xmm0, xmmword [rsp + 0x50]
lea rax, [rsp + 0x38]
mov esi, 0xff
movdqa xmmword [rsp + 0x40], xmm0
lea r9, [rbp + 0x600]
mov dword [rsp + 0x38], esi
lea r8, [0x14001d4e0]
mov qword [rsp + 0x20], rax
lea rdx, str.LocalServer32
lea rcx, [rsp + 0x40]
call fcn.140016d54
test eax, eax
je 0x140016741
mov word [rbp + 0x600], di
mov r8d, 0x28
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ole32.dll_StringFromGUID2]
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea r8, [rsp + 0x60]
lea rdx, str.CLSID_s
lea rcx, [rbp]
call qword [sym.imp.USER32.dll_wsprintfW]
mov r15, 0xffffffff80000000
lea r9, [rsp + 0x60]
mov rcx, r15
lea r8, str.AppID
lea rdx, [rbp]
call fcn.140016f3c
lea r8, [rsp + 0x30]
mov rcx, r15
lea rdx, str.CLSID
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
xor edx, edx
mov ebx, edi
jmp 0x140016848
lea r8, [rbp + 0x400]
lea rdx, str.CLSID_sLocalServer32
lea rcx, [rbp]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rax, [rsp + 0x3c]
mov dword [rsp + 0x3c], esi
lea r9, [rbp + 0x200]
mov qword [rsp + 0x20], rax
lea r8, [0x14001d4e0]
mov rcx, r15
lea rdx, [rbp]
call fcn.140016dd4
test eax, eax
jne 0x140016844
lea rdx, [rbp + 0x600]
lea rcx, [rbp + 0x200]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x140016844
lea r8, [rbp + 0x400]
lea rdx, str.CLSID_s
lea rcx, [rbp]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, [rsp + 0x60]
mov rcx, r15
lea r8, str.AppID
lea rdx, [rbp]
call fcn.140016f3c
inc ebx
mov edx, ebx
mov rcx, qword [rsp + 0x30]
lea r8, [rbp + 0x400]
mov r9d, esi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x1400167b8
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r8, [rsp + 0x60]
lea rdx, str.AppID_s
lea rcx, [rbp]
call qword [sym.imp.USER32.dll_wsprintfW]
movaps xmm0, xmmword [rsp + 0x50]
lea rdx, [rbp + 0x200]
mov r8d, esi
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call fcn.140016a58
cmp word [rbp + 0x200], di
jne 0x1400168c0
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x200]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea r9, [rbp + 0x200]
mov rcx, r15
lea r8, [0x14001d4e0]
lea rdx, [rbp]
call fcn.140016f3c
mov eax, 1
mov rcx, qword [rbp + 0x800]
xor rcx, rsp
call fcn.140019330
lea r11, [rsp + 0x910]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret
Function at 0x1400169cc
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14002f220]
xor rax, rsp
mov qword [rsp + 0x240], rax
movups xmm0, xmmword [rcx]
mov ebx, r8d
lea rcx, [rsp + 0x30]
mov rdi, rdx
lea r8, [rsp + 0x40]
lea rdx, [0x14001d4e0]
movdqa xmmword [rsp + 0x30], xmm0
call fcn.14001690c
lea r9, [rsp + 0x20]
mov dword [rsp + 0x20], ebx
mov r8, rdi
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov rax, rdi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140019330
mov rbx, qword [rsp + 0x278]
add rsp, 0x250
pop rdi
ret

Function at 0x140016a58
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14002f220]
xor rax, rsp
mov qword [rsp + 0x240], rax
movups xmm0, xmmword [rcx]
mov ebx, r8d
lea rcx, [rsp + 0x30]
mov rdi, rdx
lea r8, [rsp + 0x40]
lea rdx, [0x14001d4e0]
movdqa xmmword [rsp + 0x30], xmm0
call fcn.140016ae4
lea r9, [rsp + 0x20]
mov dword [rsp + 0x20], ebx
mov r8, rdi
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov rax, rdi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140019330
mov rbx, qword [rsp + 0x278]
add rsp, 0x250
pop rdi
ret

Function at 0x140016c84
Capabilities:
Delete registry value

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, r8
lea rax, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140016cc7
mov rcx, qword [rsp + 0x58]
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x140016dd4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, r9
lea rax, [rsp + 0x38]
mov rdi, r8
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x30], eax
test eax, eax
jne 0x140016e41
mov rax, qword [rsp + 0x70]
lea r9, [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
mov dword [rsp + 0x30], eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x140016e41
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140016f3c
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x170]
sub rsp, reloc.MFC42u.dll_CDaoException::CDaoException
mov rax, qword [0x14002f220]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rsi, rcx
mov rdi, r9
mov rcx, r9
mov rbx, r8
mov r14, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x100
jl 0x140016f89
mov eax, 0x80070057
jmp 0x140017045
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea r9, [0x14001d4e0]
lea rax, [rsp + 0x58]
mov rdx, r14
mov qword [rsp + 0x38], rax
mov rcx, rsi
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x50], eax
test eax, eax
jne 0x140017045
mov rdx, rdi
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0x60]
test eax, eax
jne 0x140016ffc
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r9d, 2
jmp 0x140017008
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r9d, 1
mov rcx, qword [rsp + 0x58]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
xor r8d, r8d
lea rax, [rsp + 0x60]
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x50], eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x50]
test eax, eax
jne 0x140017045
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140019330
add rsp, reloc.MFC42u.dll_CDaoException::CDaoException
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140017198
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov rax, qword [0x14002f220]
xor rax, rsp
mov qword [rbp + 0x47], rax
or qword [rbp + 0x2f], 0xffffffffffffffff
xor r14d, r14d
mov ebx, r14d
mov qword [rbp + 0x27], r14
mov dword [rbp + 0x3b], r14d
mov esi, r14d
mov word [rbp + 0x3f], Ordinal_1284
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp + 0x2f]
mov edx, 0x20008
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400172a9
mov edi, 0x8000
mov ecx, edi
call qword [sym.imp.msvcrt.dll_malloc]
mov rbx, rax
test rax, rax
je 0x1400172a9
mov rcx, qword [rbp + 0x2f]
lea rax, [rbp + 0x37]
mov r9d, edi
mov qword [rsp + 0x20], rax
mov r8, rbx
lea edx, [r14 + 2]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1400172a9
lea rax, [rbp + 0x27]
mov r9d, CTime::CTime
mov qword [rsp + 0x50], rax
lea r8d, [r14 + 0x20]
mov dword [rsp + 0x48], r14d
lea rcx, [rbp + 0x3b]
mov dword [rsp + 0x40], r14d
mov dl, 2
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1400172a9
mov edi, r14d
cmp dword [rbx], r14d
jbe 0x1400172a9
mov rdx, qword [rbp + 0x27]
mov ecx, edi
add rcx, rcx
mov rcx, qword [rbx + rcx*8 + 8]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1400172a4
inc edi
cmp edi, dword [rbx]
jb 0x140017284
jmp 0x1400172a9
mov esi, 1
mov rcx, qword [rbp + 0x27]
test rcx, rcx
je 0x1400172b8
call qword [sym.imp.ADVAPI32.dll_FreeSid]
test rbx, rbx
je 0x1400172c6
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
mov rcx, qword [rbp + 0x2f]
cmp rcx, 0xffffffffffffffff
je 0x1400172d6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140019330
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140018c90
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x1400303e8], rbx
je 0x140018cf7
cmp rax, rbx
jne 0x140018cea
mov ebx, 1
mov esi, ebx
jmp 0x140018cfc
mov ecx, COleDocument::AddItem
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140018ccf
mov ebx, 1
mov eax, dword [0x1400303f0]
cmp eax, ebx
jne 0x140018d14
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x140018d80
mov eax, dword [0x1400303f0]
test eax, eax
jne 0x140018d75
mov dword [0x1400303f0], ebx
lea r15, [0x14001c140]
lea rdi, [0x14001c120]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x140018d67
test eax, eax
jne 0x140018d6b
cmp qword [rdi], r14
je 0x140018d5c
mov rax, qword [rdi]
mov rcx, qword [case.0x14001925e.0]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x140018d3e
test eax, eax
je 0x140018d7b
mov eax, 0xff
jmp 0x140018ed6
mov dword [0x14002fdec], ebx
mov edi, 0x1f
mov eax, dword [0x1400303f0]
cmp eax, ebx
jne 0x140018da7
lea rdx, [0x14001c118]
lea rcx, [0x14001c0f0]
call sub.msvcrt.dll__initterm
mov dword [0x1400303f0], 2
test esi, esi
jne 0x140018db5
mov rax, r14
xchg qword [0x1400303e8], rax
cmp qword [0x140030408], r14
je 0x140018de8
lea rcx, [0x140030408]
call fcn.1400198b0
test eax, eax
je 0x140018de8
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140030408]
mov r9, qword [case.0x14001925e.0]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x140018e01
mov eax, 0xff
jmp 0x140018ed6
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x140018e87
test ax, ax
je 0x140018e1c
test edx, edx
jne 0x140018e87
sub ax, bx
cmp ax, di
ja 0x140018e32
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x140018e1c
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140019bfc
mov dword [0x14002fde8], eax
cmp dword [0x14002fe08], r14d
jne 0x140018e70
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14002fdec], r14d
jne 0x140018e85
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14002fde8]
jmp 0x140018ed6
cmp ax, 0x22
jne 0x140018e9b
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x140018e0a
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.1400cb000
add rsp, 0x28
jmp 0x140018c90
Function at 0x1400197ac
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400197f8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400197f0
cmp dword [rcx + 0x3c], edx
jl 0x1400197f0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400197f0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400197f8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140001000
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14001b018]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, r8
mov dword [rsp + 0x30], edx
mov rdi, rcx
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [rsp + 0x38]
xor edx, edx
mov r9d, 0x18
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140001118
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x140001118
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov rdx, rbx
lea r8d, [r9 + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x140001118
mov r8, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
mov edx, 0x6610
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x140001118
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x140001118
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140001a40
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
xor ecx, ecx
call fcn.140005c28
int3