joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000c65c
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.api_ms_win_core_processthreads_l1_1_2.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140014cb8], rbx
je 0x14000c6c3
cmp rax, rbx
jne 0x14000c6b6
mov ebx, 1
mov esi, ebx
jmp 0x14000c6c8
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14000c69b
mov ebx, 1
mov eax, dword [0x140014cc0]
cmp eax, ebx
jne 0x14000c6e0
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14000c74c
mov eax, dword [0x140014cc0]
test eax, eax
jne 0x14000c741
mov dword [0x140014cc0], ebx
lea r15, [0x14000eb70]
lea rdi, [0x14000eb58]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14000c733
test eax, eax
jne 0x14000c737
cmp qword [rdi], r14
je 0x14000c728
mov rax, qword [rdi]
mov rcx, qword [0x14000eb00]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000c70a
test eax, eax
je 0x14000c747
mov eax, 0xff
jmp 0x14000c8a0
mov dword [0x140014400], ebx
mov edi, 0x1f
mov eax, dword [0x140014cc0]
cmp eax, ebx
jne 0x14000c773
lea rdx, [0x14000eb50]
lea rcx, [0x14000eb18]
call sub.msvcrt.dll__initterm
mov dword [0x140014cc0], 2
test esi, esi
jne 0x14000c781
mov rax, r14
xchg qword [0x140014cb8], rax
cmp qword [0x140014cd8], r14
je 0x14000c7b4
lea rcx, [0x140014cd8]
call fcn.14000cc80
test eax, eax
je 0x14000c7b4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140014cd8]
mov r9, qword [0x14000eb00]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14000c7cd
mov eax, 0xff
jmp 0x14000c8a0
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x14000c851
cmp word [rcx], r14w
je 0x14000c7e6
test edx, edx
jne 0x14000c851
movzx eax, word [rcx]
sub ax, bx
cmp ax, di
ja 0x14000c7fc
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000c7e6
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.1400018e8
mov dword [0x1400143fc], eax
cmp dword [0x140014420], r14d
jne 0x14000c83a
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140014400], r14d
jne 0x14000c84f
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400143fc]
jmp 0x14000c8a0
cmp word [rcx], 0x22
jne 0x14000c865
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 0x14000c7d6
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.140138000
add rsp, 0x28
jmp 0x14000c65c
Function at 0x1800063c4
Capabilities:
Create directory

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0xa0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rdi, rcx
mov rax, qword [rcx]
movzx edx, word [rax]
neg dx
sbb ebx, ebx
not ebx
and ebx, 0x80070057
jl 0x1800064fe
lea rcx, [r11 - 0x58]
call fcn.180006284
nop
mov rax, qword [rsp + 0x80]
neg rax
sbb rdx, rdx
lea rax, [rsp + 0x78]
and rdx, rax
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x18000644d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1800064ea
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1800064ea
and qword [rsp + 0xb8], 0
lea rdx, [rsp + 0xb8]
lea rcx, str.S_1_5_18
call sub.ADVAPI32.dll_ConvertStringSidToSidW
test eax, eax
je 0x1800064d6
lea rcx, str.SeSecurityPrivilege
call fcn.1800060f8
test eax, eax
je 0x1800064d6
lea rcx, str.SeTakeOwnershipPrivilege
call fcn.1800060f8
test eax, eax
je 0x1800064d6
mov rax, qword [rdi]
cmp dword [rax - 8], 1
jle 0x1800064a2
mov edx, dword [rax - 0x10]
mov rcx, rdi
call fcn.18000208c
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
mov r9, qword [rsp + 0xb8]
mov edx, 1
lea r8d, [rdx + 0x1c]
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov rcx, qword [rsp + 0xb8]
test rcx, rcx
je 0x1800064ea
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x1800064fe
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov rdx, qword [rdi]
sub rdx, 0x18
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
add ecx, 0xffffffff
test ecx, ecx
jg 0x18000651e
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
mov rbx, qword [rsp + 0xc0]
add rsp, 0xa0
pop rdi
ret
Function at 0x1800066c4
Capabilities:
Check if file exists
Move file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x850
mov rax, qword [0x180057b40]
xor rax, rsp
mov qword [rsp + 0x840], rax
and word [rsp + 0x20], 0
mov rbp, rcx
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x81e
call fcn.180026db0
lea rcx, [0x1800595b0]
call fcn.18000656c
test rax, rax
mov rdx, rax
je 0x180006726
cmp word [rax], 0
je 0x180006726
xor ebx, ebx
jmp 0x18000672b
mov ebx, 0x80080004
xor eax, eax
test ebx, ebx
lea edi, [rax + 1]
js 0x18000675e
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
cmp word [rsp + rcx*2 + 0x1e], 0x5c
je 0x18000675e
mov word [rsp + rcx*2 + 0x20], 0x5c
add eax, edi
movsxd rsi, eax
jmp 0x1800067b5
test edi, edi
je 0x1800067b9
and word [rsp + rsi*2 + 0x20], 0
lea rcx, [rsp + rsi*2 + 0x20]
lea rdx, [0x180041608]
call fcn.1800061a0
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov edi, eax
jne 0x1800067b5
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x1800067b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x180006763
mov eax, ebx
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.180026cf0
lea r11, [rsp + 0x850]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1800067e4
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x440
mov rax, qword [0x180057b40]
xor rax, rsp
mov qword [rsp + 0x430], rax
and word [rsp + 0x20], 0
mov rsi, rcx
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x40e
call fcn.180026db0
lea rdx, [rsp + 0x20]
mov ecx, 0x208
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbx, eax
cmp word [rsp + rbx*2 + 0x1e], 0x5c
je 0x180006853
mov word [rsp + rbx*2 + 0x20], 0x5c
add ebx, 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
movsxd rbx, ebx
lea rdi, [rsp + rbx*2 + 0x20]
and word [rsp + rbx*2 + 0x20], 0
lea rdx, [0x180041608]
mov rcx, rdi
call fcn.1800061a0
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180006861
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.1800062fc
test eax, eax
mov ebx, eax
js 0x1800068af
lea rcx, [rsp + 0x20]
call fcn.1800066c4
lea rcx, [rsp + 0x20]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, ebx
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.180026cf0
lea r11, [rsp + 0x440]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1800074fc
Capabilities:
Get hostname
Get user security identifier

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xf0
mov rax, qword [0x180057b40]
xor rax, rsp
mov qword [rsp + 0xe0], rax
and word [rsp + 0x50], 0
mov bl, dl
xor edx, edx
mov rdi, rcx
lea rcx, [rsp + 0x52]
lea r8d, [rdx + 0x3a]
call fcn.180026db0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x40], 0x1e
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test bl, bl
je 0x180007573
mov ecx, dword [rsp + 0x40]
cmp ecx, 0x1d
jae 0x180007573
mov word [rsp + rcx*2 + 0x50], 0x24
add ecx, 1
mov dword [rsp + 0x40], ecx
xor edx, edx
lea rcx, [rsp + 0x91]
mov byte [rsp + 0x90], 0
lea r8d, [rdx + 0x43]
call fcn.180026db0
and dword [rsp + 0x44], 0
xor ebx, ebx
lea esi, [rbx + 2]
mov dword [rsp + 0x48], 0x44
lea rax, [rsp + 0x4c]
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x90]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebp, eax
mov eax, dword [rsp + 0x44]
test eax, eax
je 0x1800075fe
test rbx, rbx
jne 0x1800075fe
mov rcx, rax
lea eax, [rbx + 2]
mul rcx
lea rcx, [rbx - 1]
cmovo rax, rcx
mov rcx, rax
call fcn.18001ce30
mov rbx, rax
sub rsi, 1
jne 0x1800075a0
test rbx, rbx
je 0x180007611
mov rcx, rbx
call fcn.180026a20
test ebp, ebp
je 0x18000764e
lea rcx, [rsp + 0x90]
mov rdx, rdi
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
mov ebx, eax
je 0x18000763c
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
neg eax
sbb ecx, ecx
and ecx, ebx
jne 0x18000764e
mov rcx, qword [rdi]
test rcx, rcx
je 0x18000764e
call qword [sym.imp.KERNEL32.dll_LocalFree]
and qword [rdi], 0
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.180026cf0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x180007e6c
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbp
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x50
and qword [rax - 0x20], 0
and qword [rax - 0x28], 0
and qword [rax - 0x18], 0
mov rsi, r8
mov r8, rdx
mov rdx, qword [rcx]
mov rbp, r9
mov dword [rax - 0x30], 0x2001f
and dword [rax - 0x38], 0
lea rcx, [rax - 0x18]
xor r9d, r9d
call fcn.180007388
test eax, eax
mov edi, eax
jne 0x180007ef3
test rsi, rsi
jne 0x180007ec4
mov ecx, 0x80004005
call fcn.180001000
int3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x40]
mov r9d, 1
lea eax, [rax + rax + 2]
xor r8d, r8d
mov rdx, rbp
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
cmp qword [rsp + 0x40], 0
je 0x180007f06
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov eax, edi
add rsp, 0x50
pop rdi
ret
Function at 0x180007f18
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x180057b40]
xor rax, rsp
mov qword [rsp + 0x260], rax
and qword [rsp + 0x40], 0
and qword [rsp + 0x50], 0
mov rdi, rcx
mov rcx, qword [rcx]
lea rax, [rsp + 0x50]
mov r9d, 0x2001f
xor r8d, r8d
mov rsi, rdx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x40]
test eax, eax
mov ebx, eax
jne 0x180008011
test rcx, rcx
je 0x180007f86
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rsp + 0x50]
test ebx, ebx
mov qword [rsp + 0x40], rcx
jmp 0x180007fac
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.180007f18
mov rcx, qword [rsp + 0x40]
mov ebx, eax
test eax, eax
jne 0x180008011
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor edx, edx
mov dword [rsp + 0x48], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x180007f94
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180007ffe
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x40], 0
mov rcx, qword [rdi]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rsp + 0x40]
mov ebx, eax
test rcx, rcx
je 0x18000801c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.180026cf0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x180008044
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rsi
push rdi
sub rsp, 0x40
and qword [rax - 0x10], 0
and qword [rax - 0x18], 0
and qword [rax + 0x20], 0
mov rsi, rcx
mov rdi, r8
mov r8, rdx
mov dword [rax - 0x20], 2
and dword [rax - 0x28], 0
lea rcx, [rax + 0x20]
xor r9d, r9d
mov rdx, 0xffffffff80000000
call fcn.180007388
test eax, eax
jne 0x1800080fc
test rdi, rdi
jne 0x18000809a
mov ecx, 0x80004005
call fcn.180001000
int3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x68]
mov r9d, 1
lea eax, [rax + rax + 2]
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1800080fc
lea rdx, str.CLSID
lea rcx, [rsp + 0x68]
xor r9d, r9d
mov r8, rsi
call fcn.180007e6c
test eax, eax
jne 0x1800080fc
cmp qword [rsp + 0x68], 0
je 0x1800080f8
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x18000811a
mov ecx, eax
call fcn.180007374
cmp qword [rsp + 0x68], 0
mov edi, eax
je 0x180008118
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1800094e4
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x30
xor edi, edi
mov rbx, r8
mov rbp, rdx
cmp r8, rdi
mov r12, rcx
jne 0x180009518
mov ecx, 0x80004005
call fcn.180001000
int3
mov rsi, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 1
lea rsi, [rsi + rax*2]
lea edi, [rdi + rax*2]
jne 0x18000951b
mov rcx, qword [r12]
lea r9d, [rax + 6]
xor r8d, r8d
mov rdx, rbp
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
Function at 0x18000c96c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x180057b40]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r13, r9
mov r12, r8
mov rdi, rdx
mov rbx, rcx
call qword [0x180057950]
and qword [rsp + 0x60], 0
mov qword [rsp + 0x50], rbx
and qword [rsp + 0x48], 0
and qword [rsp + 0x70], 0
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x18000c9e7
call fcn.180007350
mov ebx, eax
jmp 0x18000cb2c
mov r8, r13
mov rdx, r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x18000ca0a
call fcn.180007350
mov ebx, eax
jmp 0x18000cb22
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r12, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x18000ca2f
call fcn.180007350
mov ebx, eax
jmp 0x18000cb22
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [rsp + 0x30], eax
add eax, 1
cmp eax, edi
jae 0x18000ca69
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x18000ca5f
lea rcx, [rsp + 0x70]
call fcn.1800099ec
nop
mov eax, 0x8007000e
jmp 0x18000cb45
mov ecx, eax
test eax, eax
je 0x18000caa6
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x18000ca9c
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x18000caa6
lea rcx, [rsp + 0x70]
call fcn.1800099f4
mov rbx, qword [rsp + 0x70]
jmp 0x18000cab0
mov ecx, 0x80070057
call fcn.180001000
lea rbx, [rsp + 0x78]
mov qword [rsp + 0x70], rbx
jmp 0x18000cac5
test rbx, rbx
jne 0x18000cad1
mov ebx, 0x8007000e
jmp 0x18000cb22
call qword [0x180057950]
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbx
mov r9d, edi
mov r8, r12
xor edx, edx
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x18000cafd
call fcn.180007350
mov ebx, eax
jmp 0x18000cb22
mov ecx, eax
mov rax, qword [rsp + 0x70]
and word [rax + rcx*2], 0
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.18000c398
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x18000cb43
lea rcx, [rsp + 0x70]
call fcn.1800099ec
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.180026cf0
add rsp, 0x490
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x18000fa9c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rsi, rcx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x18000fae1
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x18000fb40
and dword [rsp + 0x50], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8d, 0x12f0
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18000fb1b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x18000fb40
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18000fb40
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1800118ac
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1558
call fcn.18003e670
sub rsp, rax
mov rax, qword [0x180057b40]
xor rax, rsp
mov qword [rsp + 0x1540], rax
mov rsi, qword [rsp + 0x15f0]
mov ebp, r9d
mov r14, r8
mov r13, rdx
mov r12, rcx
call fcn.18000fbe0
test eax, eax
mov r15d, eax
jne 0x180011902
mov ebx, 0x800703eb
jmp 0x180011ac7
and word [rsp + 0x1330], 0
lea rcx, [rsp + 0x1332]
xor edx, edx
mov r8d, 0x206
call fcn.180026db0
lea rdx, [rsp + 0x1330]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r9, [rsp + 0x1330]
lea rdx, [0x180043340]
lea rcx, [rsp + 0x1330]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x1330]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x4000100
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rdi, rax
jne 0x1800119a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x180011ab8
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x12f0
call fcn.180026db0
lea rcx, [rsp + 0x40]
mov r9, r14
mov r8, r13
mov rdx, r12
call fcn.180010200
xor r12d, r12d
cmp eax, r12d
mov ebx, eax
jl 0x180011ab8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp rsi, r12
mov dword [rsp + 0x40], ebp
mov dword [rsp + 0xcf8], eax
mov eax, dword [rsp + 0x15c0]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x15e8]
mov dword [rsp + 0xd0c], eax
mov eax, dword [rsp + 0x15e0]
mov dword [rsp + 0xd10], eax
je 0x180011a36
cmp word [rsi], r12w
je 0x180011a36
lea rcx, [rsp + 0xd18]
or r9, 0xffffffffffffffff
mov r8, rsi
mov edx, 0x30c
call fcn.1800275a0
mov rax, qword [rsp + 0x15c8]
cmp rax, r12
je 0x180011a7e
mov r10d, dword [rsp + 0x15d0]
mov edx, r12d
mov ecx, r12d
cmp r10d, r12d
jbe 0x180011a7e
lea r8, [rsp + 0x48]
cmp edx, 0x20
jae 0x180011a7e
mov r9d, dword [rax]
cmp r9d, r12d
je 0x180011a72
mov dword [r8], r9d
add edx, 1
add r8, 4
add ecx, 1
add rax, 4
cmp ecx, r10d
jb 0x180011a5b
lea rcx, [rsp + 0x40]
mov rdx, rdi
call fcn.18000fa9c
cmp eax, r12d
mov ebx, eax
jl 0x180011ab8
mov byte [rsp + 0x30], r12b
lea rdx, str.RequestDlpScanLToH
mov r9b, 1
mov r8, rdi
mov ecx, r15d
mov qword [rsp + 0x28], r12
or dword [rsp + 0x20], 0xffffffff
call fcn.18001151c
mov ebx, eax
cmp rdi, 0xffffffffffffffff
je 0x180011ac7
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x1540]
xor rcx, rsp
call fcn.180026cf0
add rsp, 0x1558
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180013924
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbx
push rbp
sub rsp, 0x88
mov qword [rsp + 0x68], 0xfffffffffffffffe
and qword [rax + 0x20], 0
and dword [rax + 8], 0
lea rax, [rax + 0x20]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftOfficeOutlookAddins
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movsxd rbx, eax
test eax, eax
jne 0x180013a67
and qword [rsp + 0x50], 0
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.1800074fc
cmp qword [rsp + 0x50], 0
jne 0x180013998
lea rcx, [rsp + 0x50]
call fcn.1800088c8
nop
lea rax, [rsp + 0x60]
mov qword [rsp + 0x70], rax
lea rdx, str.OutlookMC.COMAddin
lea rcx, [rsp + 0x60]
call fcn.180004fdc
mov rbx, rax
lea rcx, [rsp + 0x50]
call fcn.180008cc0
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.180004fdc
nop
mov dword [rsp + 0x20], 0xa
mov r9d, 5
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.180012dc0
lea r11, [rsp + 0xa0]
mov qword [rsp + 0x40], r11
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
movsxd rbx, eax
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x180013a57
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x180013a67
call qword [sym.imp.KERNEL32.dll_LocalFree]
and dword [rsp + 0xa8], 0
mov dword [rsp + 0xb0], 3
test rbx, rbx
jne 0x180013b79
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 4]
xor r8d, r8d
lea rdx, str.CommandLineSafe
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movsxd rbx, eax
test eax, eax
jne 0x180013b79
lea rbp, str.Microsoft_Outlook_COM_Add_in
mov rcx, rbp
call fcn.180025b30
lea ecx, [rax + rax + 2]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rbp
mov r9d, 1
xor r8d, r8d
lea rdx, str.Description
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movsxd rbx, eax
test eax, eax
jne 0x180013b79
mov rcx, rbp
call fcn.180025b30
lea ecx, [rax + rax + 2]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rbp
mov r9d, 1
xor r8d, r8d
lea rdx, str.FriendlyName
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movsxd rbx, eax
test eax, eax
jne 0x180013b79
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.LoadBehavior
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movsxd rbx, eax
test eax, eax
jne 0x180013b79
call fcn.18001357c
mov rcx, qword [rsp + 0xb8]
test rcx, rcx
je 0x180013b8c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
add rsp, 0x88
pop rbp
pop rbx
ret