joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180011168
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
xor r13d, r13d
mov rax, r9
mov ebx, r8d
lea r15d, [r13 + 0x10]
mov r12, rdx
mov rsi, rcx
cmp r8d, r15d
jbe 0x1800112a0
lea edx, [r13 + 1]
xor r9d, r9d
mov r8, rax
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x1800112d5
lea edi, [rbx + 0xf]
mov ebp, r15d
shr edi, 4
and ebx, 0xf
cmovne ebp, ebx
cmp edi, 2
jbe 0x180011208
lea eax, [rdi - 2]
xor r9d, r9d
xor r8d, r8d
shl eax, 4
xor edx, edx
mov rcx, rsi
mov dword [rsp + 0x30], eax
mov dword [rsp + 0xa0], eax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x1800112d5
lea eax, [rbp + 0x10]
lea r14d, [rdi - 2]
lea rcx, [rsp + 0x40]
shl r14d, 4
mov r8d, eax
mov ebx, eax
add r14, r12
mov rdx, r14
call fcn.180026930
mov r8d, r15d
lea rcx, [rsp + rbx + 0x40]
sub r8d, ebp
xor edx, edx
call fcn.1800212f0
mov r11d, Ordinal_36
lea rax, [rsp + 0xa0]
mov dword [rsp + 0x30], r11d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0xa0], r11d
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov r13d, eax
test eax, eax
je 0x1800112d5
movups xmm0, xmmword [rsp + 0x50]
shl edi, 4
lea rdx, [rsp + 0x40]
sub edi, r15d
mov r8d, ebp
mov ecx, edi
add rcx, r12
movdqu xmmword [r14], xmm0
call fcn.180026930
jmp 0x1800112d5
cmp ebx, r15d
jne 0x1800112d5
lea rax, [rsp + 0xa0]
mov dword [rsp + 0x30], r15d
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0xa0], r15d
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov r13d, eax
lea r11, [rsp + 0x60]
mov eax, r13d
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1800112f8
Capabilities:
Create new key via cryptacquirecontext

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, 0x50
mov rdi, r9
mov rbp, rcx
mov r12, r8
mov esi, edx
xor ebx, ebx
lea rcx, [rax - 0x18]
lea r9d, [rbx + 0x18]
xor r8d, r8d
xor edx, edx
mov dword [rax - 0x28], 1
mov dword [rax - 0x38], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1800113c2
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
lea r9d, [rbx + 0x10]
mov qword [rsp + 0x28], rax
mov r8, r12
mov edx, 0x660e
mov dword [rsp + 0x20], ebx
call fcn.180010b14
test eax, eax
je 0x1800113b5
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x30]
lea edx, [rbx + 4]
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x1800113aa
mov rcx, qword [rsp + 0x38]
mov r9, rdi
mov r8d, esi
mov rdx, rbp
cmp dword [rsp + 0x80], ebx
je 0x1800113a3
call fcn.180011168
jmp 0x1800113a8
call fcn.180010f74
mov ebx, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x40]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop r12
ret
Function at 0x1800114cc
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r13, qword [rsp + 0xa0]
xor r12d, r12d
mov r15, r8
lea rax, [r11 - 0x30]
mov r8, rcx
mov rcx, qword [r13]
mov r14d, r9d
mov rbx, rdx
mov qword [r11 - 0x40], rax
and dword [r11 - 0x48], r12d
lea edi, [r12 + 1]
lea r9d, [r12 + 0x10]
mov edx, 0x660e
mov dword [rsp + 0x30], edi
call fcn.180010b14
test eax, eax
je 0x1800115fc
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x30]
lea edx, [rdi + 3]
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x1800115e2
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
mov r8, rbx
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x1800115e2
lea ecx, [rdi + 0x3f]
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, qword [rsp + 0x90]
mov qword [rbx], rax
mov rdi, rax
test rax, rax
je 0x1800115ef
mov rbp, qword [rsp + 0x98]
mov r8d, r14d
mov rdx, r15
mov rcx, rax
mov dword [rbp], r14d
call fcn.180026930
mov rcx, qword [rsp + 0x38]
lea r8d, [r12 + 1]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov r12d, eax
test eax, eax
jne 0x1800115ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.180004a6c
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_LocalFree]
and dword [rbp], r12d
mov qword [rbx], rax
jmp 0x1800115ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.180004a6c
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
jmp 0x180011609
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.180004a6c
mov rcx, qword [r13]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea r11, [rsp + 0x40]
mov eax, r12d
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180016b34
Capabilities:
Encrypt data using rc4 via systemfunction032

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov dword [rax + 0x10], edx
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
xor esi, esi
mov r14, r9
mov rdi, r8
lea r15d, [rsi + 0x10]
test ecx, ecx
je 0x180016bd0
mov ecx, dword [r8]
test cl, 0xf
jne 0x180016bc3
xor ebx, ebx
lea esi, [r15 - 0xf]
test ecx, ecx
je 0x180016bd0
test esi, esi
je 0x180016cff
mov rax, qword [rdi + 8]
lea r8, [rbp - 0x49]
lea rdx, [rbp + 0x6f]
lea rcx, [rbx + rax]
call qword [sym.imp.ADVAPI32.dll_SystemFunction024]
xor esi, esi
test eax, eax
setns sil
test esi, esi
je 0x180016bb5
movups xmm0, xmmword [rbp - 0x49]
mov rax, qword [rdi + 8]
movdqu xmmword [rax + rbx], xmm0
jmp 0x180016bba
call fcn.180004a6c
add ebx, r15d
cmp ebx, dword [rdi]
jb 0x180016b7c
jmp 0x180016bc8
call fcn.180004a6c
test esi, esi
je 0x180016cff
lea rax, [rbp + 0x1f]
xor esi, esi
test r14, r14
lea r13, [0x18004b880]
mov qword [rbp - 0x51], rax
mov eax, dword [rdi]
cmovne r13, r14
mov dword [rbp - 0x59], r15d
mov dword [rbp - 0x55], r15d
lea r15d, [rax + 0x14]
cmp qword [r13 + 8], rsi
je 0x180016cfa
cmp dword [r13], esi
je 0x180016cfa
test eax, eax
je 0x180016cfa
cmp qword [rdi + 8], rsi
je 0x180016cfa
lea ecx, [rsi + 0x40]
mov edx, r15d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r14, rax
test rax, rax
je 0x180016cff
mov r8d, dword [rdi]
mov rdx, qword [rdi + 8]
lea rcx, [rax + 0x14]
mov r12, rax
call fcn.180026930
mov r8d, dword [rdi]
lea r9, [r12 + 0x10]
lea rdx, [r12 + 0x14]
mov ecx, 0x8000
mov dword [rsp + 0x20], 4
call fcn.18001097c
test eax, eax
je 0x180016ce5
lea ebx, [rsi + 0x10]
mov rcx, r12
mov edx, ebx
call qword [sym.imp.cryptdll.dll_CDGenerateRandomBits]
lea rcx, [rbp - 0x39]
call qword [sym.imp.cryptdll.dll_MD5Init]
mov r8d, dword [r13]
mov rdx, qword [r13 + 8]
lea rcx, [rbp - 0x39]
call qword [sym.imp.cryptdll.dll_MD5Update]
lea rcx, [rbp - 0x39]
mov r8d, ebx
mov rdx, r12
call qword [sym.imp.cryptdll.dll_MD5Update]
lea rcx, [rbp - 0x39]
call qword [sym.imp.cryptdll.dll_MD5Final]
lea r11d, [r15 - 0x10]
lea rax, [r12 + 0x10]
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x69]
mov dword [rbp - 0x65], r11d
mov dword [rbp - 0x69], r11d
mov qword [rbp - 0x61], rax
call qword [sym.imp.ADVAPI32.dll_SystemFunction032]
test eax, eax
js 0x180016ce5
mov r12, qword [rdi + 8]
mov dword [rdi], r15d
lea esi, [rbx - 0xf]
mov qword [rdi + 8], r14
jmp 0x180016cea
call fcn.180004a6c
test r12, r12
je 0x180016cff
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x180016cff
call fcn.180004a6c
lea r11, [rsp + 0xd0]
mov eax, esi
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x180019148
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], r8
push rbp
push rsi
push rdi
sub rsp, 0x50
xor ebx, ebx
mov rsi, rcx
mov rcx, qword [rcx + 8]
lea rax, [0x18004b808]
mov rdi, rdx
mov qword [r11 - 0x28], rbx
mov qword [r11 - 0x20], rax
mov edx, dword [rcx]
mov rbp, r8
test edx, edx
je 0x180019294
dec edx
je 0x18001921d
sub edx, 2
je 0x1800191ee
cmp edx, 3
jne 0x18001936b
mov rax, qword [rdi + 8]
cmp dword [rax], ebx
jne 0x180019242
cmp qword [rsi], rbx
je 0x1800191c6
mov rcx, qword [rcx + 8]
mov edx, dword [rsi]
xor r9d, r9d
mov rcx, qword [rcx]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x18001936b
mov rax, qword [rsi + 8]
mov rdx, qword [rdi]
lea r9, [rsp + 0x70]
mov rcx, qword [rax + 8]
mov r8d, ebp
mov qword [rsp + 0x20], rbx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
jmp 0x18001936b
mov rax, qword [rdi + 8]
cmp dword [rax], ebx
jne 0x180019242
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x30], ebx
mov r9d, r8d
mov qword [rsp + 0x28], rbx
mov edx, 0x22c187
mov r8, qword [rdi]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rsi
call fcn.18000e0c0
jmp 0x1800191e7
mov rax, qword [rdi + 8]
cmp dword [rax], ebx
jne 0x180019242
mov rcx, qword [rcx + 8]
mov rdx, qword [rsi]
mov r9, r8
mov r8, qword [rdi]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
jmp 0x1800191e7
mov rdx, r8
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x18001936b
lea rcx, [rsp + 0x40]
mov r8, rbp
mov rdx, rdi
call fcn.180019148
test eax, eax
je 0x180019284
lea rdx, [rsp + 0x40]
mov r8, rbp
mov rcx, rsi
call fcn.180019148
mov ebx, eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x18001936b
mov rdx, qword [rdi + 8]
mov ecx, dword [rdx]
test ecx, ecx
je 0x18001935b
dec ecx
je 0x18001933b
dec ecx
je 0x180019321
dec ecx
je 0x1800192ff
cmp ecx, 3
jne 0x18001936b
mov rcx, qword [rdx + 8]
mov edx, dword [rdi]
xor r9d, r9d
mov rcx, qword [rcx]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x18001936b
mov rax, qword [rdi + 8]
mov rdx, qword [rsi]
lea r9, [rsp + 0x70]
mov rcx, qword [rax + 8]
mov r8d, ebp
mov qword [rsp + 0x20], rbx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x1800191e7
mov rcx, qword [rdx + 8]
lea rax, [rsp + 0x80]
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov edx, 0x22c183
jmp 0x18001920b
mov rcx, qword [rdx + 8]
mov rdx, qword [rsi]
mov r9, r8
mov rcx, qword [rcx]
mov r8, qword [rdi]
call fcn.18001e2d4
jmp 0x1800191e7
mov rcx, qword [rdx + 8]
mov rdx, qword [rdi]
mov r9, r8
mov r8, qword [rsi]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
jmp 0x1800191e7
mov rdx, qword [rdi]
mov rcx, qword [rsi]
call fcn.180026930
mov ebx, 1
mov eax, ebx
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x180019634
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x30
mov r11, rcx
mov rcx, qword [rcx + 8]
mov rbx, r9
mov r9d, dword [rcx]
xor r10d, r10d
test r9d, r9d
je 0x180019676
dec r9d
jne 0x180019696
mov rcx, qword [rcx + 8]
mov r9d, r8d
mov r8, rdx
mov rdx, qword [r11]
mov rcx, qword [rcx]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
jmp 0x180019684
mov rcx, qword [r11]
lea r9, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r10d, eax
test eax, eax
je 0x180019696
test rbx, rbx
je 0x180019696
mov eax, dword [rsp + 0x40]
mov dword [rbx], eax
mov eax, r10d
add rsp, 0x30
pop rbx
ret

Function at 0x18001a998
Capabilities:
Get domain controller name

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x30
or edx, 0x40020000
lea rax, [r11 + 0x20]
mov rsi, r8
mov qword [r11 - 0x10], rax
mov dword [rsp + 0x20], edx
mov rdx, rcx
xor ebx, ebx
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov qword [r11 + 0x20], rbx
call qword [sym.imp.NETAPI32.dll_DsGetDcNameW]
test eax, eax
jne 0x18001aa31
mov rax, qword [rsp + 0x58]
or rcx, 0xffffffffffffffff
mov rdi, qword [rax]
xor eax, eax
add rdi, 4
repne scasw ax, word [rdi]
not rcx
lea eax, [rcx + rcx]
lea ecx, [rbx + 0x40]
mov edx, eax
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, rax
mov qword [rsi], rax
test rax, rax
je 0x18001aa24
mov rax, qword [rsp + 0x58]
mov r8d, edi
mov ebx, 1
mov rdx, qword [rax]
add rdx, 4
call fcn.180026930
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
jmp 0x18001aa38
mov ecx, eax
call fcn.180004a6c
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x18001ab08
Capabilities:
Get token membership

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
xor ebx, ebx
mov rbp, r8
mov r12, rdx
lea rax, [r11 - 0x28]
lea r8, [r11 + 0x20]
lea r9d, [rbx + 4]
lea edx, [rbx + 8]
mov rsi, rcx
xor edi, edi
mov qword [r11 - 0x38], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x18001abcf
mov eax, dword [rsp + 0x78]
cmp eax, 1
jne 0x18001ab90
lea rax, [rsp + 0x38]
lea r9d, [rbx + 1]
lea edx, [rbx + 8]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rcx, rsi
mov dword [rsp + 0x20], 2
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov edi, eax
test eax, eax
jne 0x18001ab9a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.180004a6c
mov eax, dword [rsp + 0x78]
jmp 0x18001ab95
mov qword [rsp + 0x38], rsi
cmp eax, 1
je 0x18001abdc
mov rcx, qword [rsp + 0x38]
mov r8, rbp
mov rdx, r12
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ebx, eax
test eax, eax
jne 0x18001abbe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.180004a6c
test edi, edi
je 0x18001abdc
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18001abdc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.180004a6c
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret

Function at 0x18001ace8
Capabilities:
Get user security identifier

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r12
sub rsp, 0x50
lea rax, [r11 - 0x10]
mov rbp, r9
xor esi, esi
and dword [rsp + 0x44], esi
and dword [rsp + 0x40], esi
mov qword [r11 - 0x28], rax
lea rax, [r11 - 0x18]
mov rbx, rdx
mov rdi, r8
mov r12, rcx
mov rdx, rcx
mov qword [r11 - 0x30], rax
and qword [r11 - 0x38], rsi
lea r9, [r11 - 0x14]
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x18001adcc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x18001adcc
mov edx, dword [rsp + 0x44]
lea ecx, [rsi + 0x40]
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbx], rax
test rax, rax
je 0x18001adcc
mov edx, dword [rsp + 0x40]
lea ecx, [rsi + 0x40]
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rdi], rax
test rax, rax
je 0x18001adc0
mov r8, qword [rbx]
lea rcx, [rsp + 0x48]
lea r9, [rsp + 0x44]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x40]
mov rdx, r12
mov qword [rsp + 0x28], rcx
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov esi, eax
test eax, eax
jne 0x18001adcc
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rdi], rax
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx], rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x78]
mov eax, esi
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop r12
ret
Function at 0x18001e1c4
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rdi, rdx
mov rsi, rcx
lea edx, [rbx + 0x10]
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rdi], rax
test rax, rax
je 0x18001e286
and qword [rsp + 0x28], rbx
and dword [rsp + 0x20], ebx
lea r8d, [rbx + 2]
xor r9d, r9d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r11, rax
mov rax, qword [rdi]
mov qword [rax], r11
mov rcx, qword [rdi]
cmp qword [rcx], rbx
je 0x18001e266
mov rcx, qword [rcx]
and qword [rsp + 0x20], rbx
lea edx, [rbx + 4]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r11, rax
mov rax, qword [rdi]
mov qword [rax + 8], r11
test r11, r11
je 0x18001e266
mov rax, qword [rdi]
mov rcx, qword [rax + 8]
cmp dword [rcx], 0x504d444d
jne 0x18001e266
mov eax, 0xa793
cmp word [rcx + 4], ax
jne 0x18001e266
mov ebx, 1
jmp 0x18001e286
mov rdi, qword [rdi]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x18001e278
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rdi]
test rcx, rcx
je 0x18001e286
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x18001fc73
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [section..data]
jne 0x18001f76a
rol rcx, 0x10
test cx, 0xffff
jne 0x18001f766
repz ret
ror rcx, 0x10
jmp 0x18001fbcc
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x18004a730]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x18004a828]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x18001fc51
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x18004a730]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x18001fc73
mov rax, qword [rsp + 0x88]
mov qword [0x18004a828], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x18004a7c8], rax
mov rax, qword [0x18004a828]
mov qword [0x18004a6a0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x18004a7b0], rax
mov dword [0x18004a690], 0xc0000409
mov dword [0x18004a694], 1
mov rax, qword [section..data]
mov qword [rsp + 0x68], rax
mov rax, qword [0x180047008]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x18004a728], eax
mov ecx, 1
call fcn.180022bb4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180033af8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x18004a728], 0
jne 0x18001fcfa
mov ecx, 1
call fcn.180022bb4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x18002798c
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.18002167c
xor ebx, ebx
cmp qword [0x18004b668], rbx
mov rdi, rax
jne 0x180027a9f
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x180027b76
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180027b76
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x18004b668], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x18004b670], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x18004b678], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x18004b688], rax
test rax, rax
je 0x180027a96
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x18004b680], rax
jmp 0x180027aa6
mov rax, qword [0x18004b680]
jmp 0x180027aad
mov rax, qword [0x18004b680]
mov r11, qword [0x18004b688]
cmp rax, rdi
je 0x180027b14
cmp r11, rdi
je 0x180027b14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x18004b688]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x180027b14
test rax, rax
je 0x180027b14
call rsi
test rax, rax
je 0x180027b0e
lea rcx, [rsp + 0x30]
mov r9d, reloc.WLDAP32.dll_Ordinal_12
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180027b0e
test byte [rsp + 0x40], 1
jne 0x180027b14
bts ebp, 0x15
jmp 0x180027b54
mov rcx, qword [0x18004b670]
cmp rcx, rdi
je 0x180027b54
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180027b54
call rax
mov rbx, rax
test rax, rax
je 0x180027b54
mov rcx, qword [0x18004b678]
cmp rcx, rdi
je 0x180027b54
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180027b54
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x18004b668]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180027b76
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x180027b78
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18001f750
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x141568108
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14156828f
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141568139
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14156811f
add dl, dl
jne 0x141568146
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1415681a6
xor eax, eax
add dl, dl
jne 0x141568155
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14156825d
add dl, dl
jne 0x141568166
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141568173
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141568180
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14156818d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14156819a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14156812e
mov eax, 1
add dl, dl
jne 0x1415681b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1415681c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1415681ab
sub eax, ebx
mov ebx, 1
jne 0x1415681fc
mov ecx, 1
add dl, dl
jne 0x1415681de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1415681eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1415681d3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14156812e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141568218
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141568225
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14156820d
cmp eax, 0x7d00
jae 0x14156824b
cmp eax, 0x500
jb 0x141568246
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14156812e
cmp eax, 0x7f
ja 0x14156824e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14156812e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141568282
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14156812e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20