joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140036da4
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x1400a0018]
xor rax, rsp
mov qword [rbp - 0x10], rax
and dword [r8], 0
mov r14, r8
mov r8d, edx
mov esi, edx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
jne 0x140036e8a
and dword [rbp - 0x40], eax
lea r8, [rbp - 0x30]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x140036e8a
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x38]
lea edx, [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140036e8a
mov rax, qword [rbp - 0x30]
lea r8, [rbp - 0x40]
mov rcx, qword [rbp - 0x38]
lea rdx, [rbp - 0x28]
and dword [rbp - 0x18], edi
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x28], 1
mov dword [rbp - 0x24], 1
call qword [sym.imp.ADVAPI32.dll_PrivilegeCheck]
mov rcx, qword [rbp - 0x38]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140036e8a
cmp dword [rbp - 0x40], edi
jne 0x140036e8a
lea ecx, [rdi + 1]
call fcn.140036cd4
test eax, eax
je 0x140036e8a
mov r8d, esi
mov dword [r14], 1
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
mov rax, rdi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400615f0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x140036f48
Capabilities:
Get token privileges

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x40
and dword [rax + 0x20], 0
lea r8, [rax + 0x20]
mov esi, edx
mov ebx, 1
mov edx, ecx
call fcn.140036da4
mov rdi, rax
test rax, rax
je 0x140036fd8
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
lea edx, [rbx + 7]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140036fcf
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
and dword [rsp + 0x60], 0
lea r9d, [rbx + 3]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea edx, [rbx + 0xb]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140036fc4
xor ebx, ebx
cmp dword [rsp + 0x60], esi
sete bl
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x68], 0
je 0x140036fe6
xor ecx, ecx
call fcn.140036cd4
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140037610
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
movzx edi, dx
mov rbx, rcx
and qword [rcx + 8], 0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov qword [0x1400c4980], rax
mov r8, qword [0x1400bc6e0]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx + 8], rax
test rax, rax
je 0x14003774e
mov r8, rax
xor edx, edx
mov rcx, qword [0x1400c4980]
call qword [sym.imp.KERNEL32.dll_HeapSize]
mov qword [0x1400bc6e0], rax
movzx ecx, di
call fcn.1400371f4
lea rdi, [0x1400bdbb0]
test eax, eax
jne 0x14003768f
lea r8, str.230_232_786_816
lea edx, [rax + 0x20]
mov rcx, rdi
call fcn.14002f3e0
mov eax, dword [0x1400bc6e0]
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov rax, qword [rbx + 8]
jmp 0x140037700
cmp eax, 0xea
jne 0x14003774e
mov r8, qword [rbx + 8]
xor edx, edx
mov rcx, qword [0x1400c4980]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, qword [0x1400bc6e0]
lea r8, [rax + rax]
mov qword [0x1400bc6e0], r8
xor edx, edx
mov rcx, qword [0x1400c4980]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx + 8], rax
mov ecx, dword [0x1400bc6e0]
mov dword [rsp + 0x40], ecx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rdx, rdi
mov rcx, 0xffffffff80000004
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 5
jne 0x1400376a9
or r8d, 0xffffffff
mov edx, 0x2030
mov ecx, 0x27bb
call qword [sym.imp.mfc140u.dll_AfxInitLocalData]
mov r8, qword [rbx + 8]
xor edx, edx
mov rcx, qword [0x1400c4980]
call qword [sym.imp.KERNEL32.dll_HeapFree]
and qword [rbx + 8], 0
mov dword [0x1400c3508], 1
mov ecx, 8
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonLinkCtrl::XElementButtonLinkCtrl]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140037774
mov rcx, qword [rbx + 8]
mov qword [rax], rcx
mov qword [rbx], rax
mov rax, rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140037af4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rcx, qword [rcx]
mov r11d, edx
mov edx, 0xe6
mov rbx, r8
call fcn.1400371bc
mov r10, rax
test rax, rax
je 0x140037cd8
mov edi, dword [rax + 4]
add rdi, rax
test r11d, r11d
je 0x140037b42
mov eax, dword [rdi]
add rax, rdi
mov edi, dword [rax]
add rdi, rax
sub r11d, 1
jne 0x140037b32
test rdi, rdi
je 0x140037cd8
mov esi, dword [r10 + 8]
mov rax, qword [r10 + 0x30]
add rsi, r10
mov ecx, dword [r10 + 0x20]
mov qword [rbx], rax
mov rax, qword [r10 + 0x38]
mov qword [rbx + 8], rax
test ecx, ecx
jle 0x140037cd1
mov ebp, ecx
mov eax, dword [rsi + 0x24]
mov edx, dword [rdi]
add rax, rdi
movsxd rcx, dword [rsi + 0x20]
add rdx, rax
mov eax, dword [rsi + 4]
cmp eax, 0xb2
ja 0x140037c33
je 0x140037c24
sub eax, 6
je 0x140037c1b
sub eax, 0x16
je 0x140037c12
sub eax, 0x1c
je 0x140037c06
sub eax, 2
je 0x140037bfa
sub eax, 0x54
je 0x140037bf1
sub eax, 2
je 0x140037be0
sub eax, 0x1c
je 0x140037bd1
cmp eax, 2
jne 0x140037cc2
mov r8, rcx
lea rcx, [rbx + 0xa0]
jmp 0x140037cbd
mov r8, rcx
lea rcx, [rbx + 0xb0]
jmp 0x140037cbd
mov r8, rcx
lea rcx, [rbx + 0x10]
call sub.VCRUNTIME140.dll_memcpy
jmp 0x140037cc2
mov r8, rcx
lea rcx, [rbx + 0x20]
jmp 0x140037be7
mov r8, rcx
lea rcx, [rbx + 0x60]
jmp 0x140037cbd
mov r8, rcx
lea rcx, [rbx + 0x70]
jmp 0x140037cbd
mov r8, rcx
lea rcx, [rbx + 0x3c]
jmp 0x140037be7
mov r8, rcx
lea rcx, [rbx + 0x18]
jmp 0x140037be7
mov r8, rcx
lea rcx, [rbx + 0xd0]
jmp 0x140037cbd
sub eax, 0xb4
je 0x140037cb3
sub eax, 2
je 0x140037caa
sub eax, 2
je 0x140037ca1
sub eax, 2
je 0x140037c95
sub eax, 0x1ee
je 0x140037c86
sub eax, 2
je 0x140037c77
sub eax, 2
je 0x140037c6b
cmp eax, 0x64
jne 0x140037cc2
mov r8, rcx
lea rcx, [rbx + 0x38]
jmp 0x140037be7
mov r8, rcx
lea rcx, [rbx + 0x30]
jmp 0x140037be7
mov r8, rcx
lea rcx, [rbx + 0x80]
jmp 0x140037be7
mov r8, rcx
lea rcx, [rbx + 0x98]
jmp 0x140037be7
mov r8, rcx
lea rcx, [rbx + 0x88]
jmp 0x140037cbd
mov r8, rcx
lea rcx, [rbx + 0x40]
jmp 0x140037cbd
mov r8, rcx
lea rcx, [rbx + 0x50]
jmp 0x140037cbd
mov r8, rcx
lea rcx, [rbx + 0xc0]
call fcn.140036ca8
mov ecx, dword [rsi]
add rsi, rcx
sub rbp, 1
jne 0x140037b6f
mov eax, 1
jmp 0x140037cda
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14004ea7c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400a0018]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp dword [rcx + 0x208], 0
mov rdi, rcx
je 0x14004eb6e
cmp dword [0x1400c3220], 0
jne 0x14004eac4
cmp dword [0x1400c321c], 0
jne 0x14004eac4
cmp dword [0x1400c3218], 0
je 0x14004eb6e
cmp dword [0x1400c3214], 0
je 0x14004eb6e
mov rcx, qword [0x1400c3228]
cmp dword [rcx - 0x10], 0
je 0x14004eb6e
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
test rax, rax
je 0x14004eb6e
and dword [rsp + 0x40], 0
lea r9, [rsp + 0x40]
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x44]
mov r8d, 6
mov dword [rsp + 0x44], 0xdfeff
mov rcx, rax
mov word [rsp + 0x48], 0xa
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14004eb8f
cmp dword [rsp + 0x40], 6
jne 0x14004eb8f
mov rcx, qword [rdi + 0x1c0]
mov rdx, rbx
add rcx, 0xf8
call fcn.140055d64
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.mfc140u.dll_CMFCRibbonLinkCtrl::OnAccDefaultAction]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400615f0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14004eb77
Function at 0x140055d64
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
xor r14d, r14d
mov rbp, rdx
mov rbx, rcx
mov esi, r14d
cmp dword [rcx + 0xec], r14d
jle 0x140055df2
mov edi, r14d
mov rax, qword [rbx + 0x118]
mov dword [rsp + 0x50], r14d
mov rdx, qword [rax + rdi + 8]
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], r14w
jne 0x140055da3
lea r8d, [rax + rax]
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x50]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], r14
mov r8d, 4
lea rdx, [0x140092fe0]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
inc esi
add rdi, 0x50
cmp esi, dword [rbx + 0xec]
jl 0x140055d8e
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x14005b4d4
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rbp, r9
mov ebx, r8d
mov rdi, rdx
mov r14, rcx
and dword [rax + 0x18], 0
lea rcx, [rax + 0x10]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
mov rax, qword [rdi]
lea rdx, [rsp + 0x68]
mov rcx, rdi
call qword [rax + 0x30]
test ebx, ebx
jle 0x14005b53d
mov esi, ebx
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
mov r8d, 2
lea rdx, [0x14009472c]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
sub rsi, 1
jne 0x14005b516
mov rdx, qword [rsp + 0x68]
mov r8d, dword [rdx - 0x10]
add r8d, r8d
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
mov r8d, 4
lea rdx, [0x140092fe0]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x68]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14005b5be
mov rax, qword [rdi]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [rax + 0x70]
mov r10, qword [r14]
mov r9, rbp
lea r8d, [rbx + 1]
mov rdx, qword [rax]
mov rcx, r14
call qword [r10 + 0x260]
cmp qword [rsp + 0x30], 0
jne 0x14005b591
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x14005eab4
Capabilities:
Get graphical window text

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor r14d, r14d
lea rax, [r11 + 0x10]
mov qword [r11 - 0x28], rax
lea rdi, [r8 - 1]
mov rsi, r8
mov dword [rsp + 0x28], 0x64
mov rbx, rdx
mov qword [r11 + 0x10], r14
mov r9, rdx
mov dword [rsp + 0x20], 2
lea edx, [r14 + 0xd]
mov r8, rdi
mov rbp, rcx
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
test rax, rax
jne 0x14005eb1c
lea r8d, [rsi - 1]
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetWindowTextW]
cdqe
jmp 0x14005eb3b
movsxd rax, dword [rsp + 0x68]
cmp rax, rdi
jb 0x14005eb3b
mov ecx, 0x2e
mov dword [rbx + rdi*2 - 4], 0x2e002e
mov word [rbx + rdi*2 - 6], cx
mov rax, rdi
mov rbp, qword [rsp + 0x70]
mov word [rbx + rax*2], r14w
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x14005eb54
Capabilities:
Check if file exists
Get file attributes
Identify system language via api

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1400a0018]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r14, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov r8d, operator
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__1]
nop
mov edx, 0x5c
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_COleControl::ReleaseCaches]
mov r8d, eax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_CStringList::InsertBefore]
nop
mov rcx, qword [rsp + 0x38]
xor ebx, ebx
cmp dword [rcx - 0x10], ebx
je 0x14005eca9
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14005eca9
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
mov dword [rsp + 0x48], ecx
and ecx, 0x3ff
bts ecx, 0xa
mov dword [rsp + 0x4c], ecx
mov dword [rsp + 0x50], reloc.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
mov esi, ebx
mov edi, ebx
mov ecx, ebx
mov rax, rbx
test rdi, rdi
jle 0x14005ec46
mov edx, dword [rsp + rdi*4 + 0x48]
cmp dword [rsp + rax*4 + 0x48], edx
je 0x14005ec46
inc ecx
inc rax
cmp rax, rdi
jl 0x14005ec36
cmp ecx, esi
jl 0x14005ec7e
mov rax, qword [r14]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + rdi*4 + 0x48]
mov r8, qword [rsp + 0x38]
lea rdx, str._s_d_s
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCZoomKernel::Filter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14005ec8a
inc esi
inc rdi
cmp esi, 3
jae 0x14005ec9d
jmp 0x14005ec28
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rax, rbx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1400615f0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x180001ed0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov r8, rcx
lea r9, [rsp + 0x38]
lea rcx, [0x18002fc30]
mov edx, 0x800
call fcn.18000320c
lea rcx, [0x18002fc30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add rsp, 0x28
ret

Function at 0x180002390
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r14
mov eax, 0x4060
call fcn.18000a3f0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x4050], rax
mov r14d, r8d
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
mov dword [rsp + 0x40], ebx
cmp rcx, 0xffffffffffffffff
je 0x180002510
test rdx, rdx
je 0x180002510
test r8d, r8d
je 0x180002510
mov byte [rsp + 0x2050], bl
xor edx, edx
mov r8d, 0x1fff
lea rcx, [rsp + 0x2051]
call fcn.180003a30
mov dword [rsp + 0x44], 0x1000
mov byte [rsp + 0x50], bl
xor edx, edx
mov r8d, 0x1fff
lea rcx, [rsp + 0x51]
call fcn.180003a30
mov dword [rsp + 0x48], 0x1000
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8d, [rbx + 1]
mov edx, r14d
mov rcx, rsi
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x2050]
xor r8d, r8d
mov edx, dword [rsp + 0x48]
lea rcx, [rsp + 0x50]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x2050]
mov ecx, 0x10001
call qword [sym.imp.CRYPT32.dll_CertCreateCertificateContext]
mov rsi, rax
test rax, rax
jne 0x1800024b2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____ICC_CCCC_F:__x_n
call fcn.180001ed0
jmp 0x1800024f8
xor r9d, r9d
lea r8d, [r9 + 1]
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.CRYPT32.dll_CertAddCertificateContextToStore]
test eax, eax
jne 0x1800024e6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80092005
je 0x1800024e6
mov edx, eax
lea rcx, str.____ICC_CACC_F:__x_n
call fcn.180001ed0
jmp 0x1800024f8
mov rcx, rsi
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov ebx, 1
mov dword [rsp + 0x40], ebx
jmp 0x18000250c
mov eax, ebx
jmp 0x180002512
xor eax, eax
mov rcx, qword [rsp + 0x4050]
xor rcx, rsp
call fcn.180002780
mov rbx, qword [rsp + 0x4098]
add rsp, 0x4060
pop r14
pop rdi
pop rsi
ret
Function at 0x140009038
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
mov r9, rcx
xor ecx, ecx
movabs r8, 0xcbf29ce484222325
mov rsi, rdx
movzx eax, byte [rbx + rcx + 0x10]
movabs rdx, 0x100000001b3
xor r8, rax
inc rcx
imul r8, rdx
cmp rcx, 4
jb 0x14000905c
mov rdx, qword [r9 + 0x30]
mov rcx, qword [r9 + 0x18]
and rdx, r8
add rdx, rdx
cmp qword [rcx + rdx*8 + 8], rbx
jne 0x1400090b3
cmp qword [rcx + rdx*8], rbx
jne 0x1400090a8
mov rax, qword [r9 + 8]
mov qword [rcx + rdx*8], rax
mov rcx, qword [r9 + 0x18]
mov rax, qword [r9 + 8]
jmp 0x1400090ac
mov rax, qword [rbx + 8]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x1400090c0
cmp qword [rcx + rdx*8], rbx
jne 0x1400090c0
mov rax, qword [rbx]
mov qword [rcx + rdx*8], rax
mov rax, qword [rbx + 8]
mov rdi, qword [rbx]
mov qword [rax], rdi
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
dec qword [r9 + 0x10]
mov rdx, qword [rbx + 0x30]
cmp rdx, 8
jb 0x1400090f5
mov rcx, qword [rbx + 0x18]
inc rdx
mov r8d, 2
call fcn.1400020a4
mov edx, 1
mov rcx, rbx
lea r8d, [rdx + 0x37]
call fcn.1400020a4
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov qword [rsi], rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14000b51c
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_1.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400148a0], eax
call fcn.14000b2a4
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_UnhandledExceptionFilter]
cmp dword [0x1400148a0], 0
jne case.default.0x14000b572
mov ecx, 1
call fcn.14000b2a4
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_TerminateProcess]
fld dword [rdi + 0x5795c081]
xor eax, 0x377f8869
invalid
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400045e0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400045f0]
mov dword [rax], 1
mov rax, qword [0x140004600]
mov dword [rax], 1
mov rax, qword [0x140004590]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400045d0]
mov dword [0x14000700c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400046a0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140004680]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140004540]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140001450
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:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
lea rax, [rbp - 8]
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 0x18
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
call rax
test eax, eax
sete al
test al, al
je 0x1400014a3
mov eax, 0xffffffff
jmp 0x1400015ce
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov edx, 0x800c
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
call rax
test eax, eax
sete al
test al, al
je 0x1400014e0
mov eax, 0xffffffff
jmp 0x1400015ce
mov rax, qword [rbp + 0x28]
mov ecx, eax
mov rax, qword [rbp - 0x10]
mov rdx, qword [rbp + 0x20]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptHashData]
call rax
test eax, eax
sete al
test al, al
je 0x140001516
mov eax, 0xffffffff
jmp 0x1400015ce
mov rcx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x18]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8, rcx
mov edx, 0x6610
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
call rax
test eax, eax
sete al
test al, al
je 0x140001551
mov eax, 0xffffffff
jmp 0x1400015ce
mov rax, qword [rbp - 0x18]
lea rdx, [rbp + 0x18]
mov qword [rsp + 0x28], rdx
mov rdx, qword [rbp + 0x10]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
call rax
test eax, eax
sete al
test al, al
je 0x140001594
mov eax, 0xffffffff
jmp 0x1400015ce
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
call rax
mov eax, 0
add rsp, 0x50
pop rbp
ret