joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006ff88
Capabilities:
Get token membership
Get token privileges

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x1400dbc58]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edi, edi
mov dword [rbp + 0xf], edi
test rcx, rcx
jne 0x14006ffbe
xor al, al
jmp 0x14007011c
lea rdx, [rbp + 0x17]
mov dword [rbp + 0x17], edi
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rbp + 0x17]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
jne 0x14006ffe8
mov al, 1
jmp 0x14007011c
lea r8, [rbp + 0x1f]
mov qword [rbp + 0x1f], rdi
mov edx, 8
mov qword [rbp + 0x2f], rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rbx, qword [rbp + 0x1f]
lea rax, [rbp + 7]
mov r9d, 4
mov dword [rbp + 7], edi
lea r8, [rbp + 0xb]
mov dword [rbp + 0xb], 1
mov rcx, rbx
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0xe]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp dword [rbp + 0xb], 3
jne 0x14007005e
mov rcx, qword [rbp + 0x1f]
lea rax, [rbp + 7]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x17]
lea edx, [r9 + 0xb]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
cmovne rbx, qword [rbp + 0x17]
mov r9d, 4
lea rax, [rbp + 7]
lea r8, [rbp + 0x27]
mov qword [rsp + 0x20], rax
mov rcx, rbx
lea edx, [r9 + 4]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea rax, [rbp + 0x37]
mov dword [rbp + 0x3f], edi
mov qword [rsp + 0x50], rax
lea rcx, [rbp + 0x3f]
mov dword [rsp + 0x48], edi
mov r9d, 0x220
mov dword [rsp + 0x40], edi
mov r8d, 0x20
mov dword [rsp + 0x38], edi
mov dl, 2
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
mov word [rbp + 0x43], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x14007010c
cmp dword [rbp + 0x27], 1
jne 0x14007010c
test rbx, rbx
je 0x14007010c
lea r8, [rbp + 0x2f]
mov edx, 2
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DuplicateToken]
mov rdx, qword [rbp + 0x37]
lea r8, [rbp + 0xf]
mov rcx, qword [rbp + 0x2f]
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov rcx, qword [rbp + 0x37]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rbp + 0x2f]
test rcx, rcx
je 0x14007010c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1f]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rbp + 0xf], edi
setne al
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14007e630
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14007020c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x1400dbc58]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor esi, esi
mov rbx, rcx
test rcx, rcx
je 0x1400702f9
cmp si, word [rcx]
je 0x1400702f9
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
jne 0x1400702f4
call fcn.14006edec
cmp eax, 0x3d
jg 0x1400702f4
mov ebp, 0x104
lea rcx, [rsp + 0x20]
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
test eax, eax
je 0x1400702f4
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rbx + rcx*2], si
jne 0x140070290
lea rax, [rdx + 2]
add rcx, rax
cmp rcx, rbp
ja 0x1400702f4
lea ecx, [rdx - 1]
mov eax, 0x5c
cmp ax, word [rsp + rcx*2 + 0x20]
je 0x1400702d5
mov eax, 0x2f
cmp ax, word [rsp + rcx*2 + 0x20]
je 0x1400702d5
lea r8, [0x1400c148c]
mov rdx, rbp
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov r8, rbx
lea rcx, [rsp + 0x20]
mov rdx, rbp
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
mov rax, rdi
jmp 0x1400702fb
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14007e630
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1400706e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rax, qword [0x1400dbc58]
xor rax, rsp
mov qword [rbp - 8], rax
mov rsi, rdx
mov r14, r8
mov rdx, rcx
lea r8, [0x1400c1744]
xor r15d, r15d
lea rcx, [rbp - 0x20]
mov qword [rbp - 0x20], r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
test eax, eax
jne 0x1400707b9
mov r9, qword [rbp - 0x20]
test r9, r9
je 0x1400707b9
movzx ecx, word [rsi + 0xe]
mov edi, r15d
mov dword [rsi], 0x28
mov dword [rsi + 0x10], r15d
cmp cx, 0x10
jae 0x140070753
lea edi, [rax + 4]
shl edi, cl
movsxd rbx, dword [rsi + 0x14]
lea eax, [rdi + 0x36]
mov r8d, Ordinal_16
mov dword [rbp - 0x12], r15d
mov ecx, 0x4d42
mov dword [rbp - 0xe], eax
mov word [rbp - 0x18], cx
add eax, ebx
lea rcx, [rbp - 0x18]
mov dword [rbp - 0x16], eax
lea r15d, [r8 - 0xd]
mov edx, r15d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r8d, dword [rsi]
mov edx, r15d
mov r9, qword [rbp - 0x20]
add r8d, edi
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rbp - 0x20]
mov r8, rbx
mov edx, r15d
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14007e630
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140071904
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov rdi, rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x140071a35
and qword [rsp + 0x40], 0
and dword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
or edx, 0xffffffff
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
mov edx, 0x80000000
lea ecx, [rax + rdx]
test edx, ecx
jne 0x140071969
cmp eax, 0x80010119
jne 0x140071a2f
mov qword [rsp + 0x20], rdi
lea r9, [0x1400c44f8]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1400c44e8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140071a2f
mov rcx, qword [rdi]
mov rax, qword [rcx]
lea rdx, [rdi + 8]
mov qword [rsp + 0x40], rdx
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, str.ROOTCIMV2
mov rax, qword [rax + 0x18]
mov r10, qword [0x140086148]
call r10
mov dword [rsp + 0x50], eax
jmp 0x1400719e8
test eax, eax
js 0x140071a27
and dword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xa]
mov rcx, qword [rdi + 8]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x140071a27
mov byte [rdi + 0x10], 1
xor eax, eax
jmp 0x140071a3a
mov rcx, rdi
call fcn.140071a40
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
add rsp, 0x60
pop rdi
ret

Function at 0x140071b14
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
sub rsp, 0x58
xorps xmm0, xmm0
lea rcx, [rax - 0x38]
movups xmmword [rax - 0x38], xmm0
movups xmmword [rax - 0x28], xmm0
movups xmmword [rax - 0x18], xmm0
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x140071b40
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
lea rdx, [rsp + 0x20]
mov rdi, rcx
call fcn.140071ae8
mov rbx, qword [rsp + 0x20]
test rbx, rbx
je 0x140071bb4
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140071bb4
mov edx, 0x1d4c0
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140071b98
mov eax, dword [rbx + 0x10]
mov edi, 1
mov dword [0x1400e2ed0], eax
mov edx, edi
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x140071bb9
mov rcx, rdi
call fcn.140071c10
mov rcx, rax
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov edi, dword [rsp + 0x48]
jmp 0x140071bb9
mov edi, 1
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x140071c03
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140071c03
mov rbx, qword [rsp + 0x28]
mov rcx, rbx
mov rax, qword [rbx]
mov rax, qword [rax]
call qword [0x140086148]
or ecx, 0xffffffff
lock xadd dword [rbx + 0xc], ecx
cmp ecx, 1
jne 0x140071c03
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rcx]
mov rax, qword [rdx + 8]
call qword [0x140086148]
mov rbx, qword [rsp + 0x40]
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x140071d40
Capabilities:
Create thread
Resume thread

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 r14
sub rsp, 0x30
mov r9, qword [rcx]
lea r8, [0x140071e20]
mov rsi, rdx
mov rdi, rcx
xor edx, edx
xor ecx, ecx
lea rax, [r9 + 0x10]
mov qword [r11 - 0x10], rax
mov dword [rsp + 0x20], 4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rcx, rax
test rax, rax
je 0x140071dfd
mov rax, qword [rdi]
mov rdx, rsi
mov qword [rax + 8], rcx
mov rcx, qword [rdi]
add rcx, 0x18
call fcn.14000dbc0
mov rax, qword [rdi]
xor ecx, ecx
mov ebp, dword [rax + 0x10]
lea rax, [0x1400e2e00]
cmp dword [rax], 0
je 0x140071dc9
inc ecx
lea rdx, [0x1400e2f10]
add rax, 0x44
cmp rax, rdx
jl 0x140071db0
jmp 0x140071dee
movsxd rax, ecx
lea r14, [0x1400e2dc0]
imul rbx, rax, 0x44
mov r8, rsi
mov edx, 0x40
lea rcx, [rbx + r14]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov dword [rbx + r14 + 0x40], ebp
mov rcx, qword [rdi]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov al, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x140072160
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x40
and qword [r11 - 0x10], 0
lea rcx, [r11 - 0x10]
mov rax, r8
mov qword [r11 - 0x28], rcx
mov r10, rdx
mov rbx, r9
mov rcx, r10
mov r9d, 1
xor r8d, r8d
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor edi, edi
mov dword [rsp + 0x30], 4
test eax, eax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x30]
mov rdx, rbx
cmove rdi, qword [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rcx, rdi
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400721e5
mov eax, dword [rsp + 0x34]
sub eax, 4
neg eax
sbb eax, eax
and eax, 0xd
test eax, eax
sete bl
test rdi, rdi
je 0x1400721f6
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x1400722b0
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x40
and qword [r11 - 0x18], 0
lea rcx, [r11 - 0x18]
mov rax, r8
mov qword [r11 - 0x28], rcx
mov r10, rdx
mov rbx, r9
mov rcx, r10
mov r9d, 2
xor r8d, r8d
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor edi, edi
mov r9d, 4
test eax, eax
mov dword [rsp + 0x28], r9d
mov eax, dword [rsp + 0x70]
mov rdx, rbx
cmove rdi, qword [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x70], eax
mov rcx, rdi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
test rdi, rdi
je 0x140072330
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140072660
Capabilities:
Query service status

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1400dbc58]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rcx, qword [rcx]
test rcx, rcx
je 0x140072690
lea rdx, [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140072690
mov eax, dword [rsp + 0x24]
jmp 0x140072692
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14007e630
add rsp, 0x58
ret

Function at 0x1400726e8
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
xor r8d, r8d
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
xor ebx, ebx
test eax, eax
je 0x14007272e
mov ecx, reloc.OLEAUT32.dll_SetErrorInfo
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rdi
call fcn.140072660
inc ebx
cmp eax, 4
je 0x14007272b
cmp ebx, 0x64
jl 0x140072709
cmp eax, 4
sete al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140073b00
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x20
mov r8, qword [rdx + 0x10]
xor esi, esi
mov rbx, rcx
test r8, r8
jne 0x140073b91
lea r9, [rax + 8]
mov qword [rax + 8], rsi
xor edx, edx
lea rcx, [0x1400c4180]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x140073bac
mov rdx, qword [rsp + 0x30]
lea rdi, [rbx + 0xd0]
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], si
jne 0x140073b48
mov rcx, rdi
call fcn.1400022b0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov r8d, 1
lea rdx, [0x1400c148c]
mov rcx, rdi
call fcn.1400025a0
mov r8d, 4
lea rdx, [0x1400c8380]
mov rcx, rdi
call fcn.1400025a0
jmp 0x140073bac
add rcx, 0xd0
cmp rcx, rdx
je 0x140073bac
cmp qword [rdx + 0x18], 8
jb 0x140073ba7
mov rdx, qword [rdx]
call fcn.1400022b0
lea r8, [rbx + 0xd0]
add rbx, 0xf0
cmp rbx, r8
je 0x140073bd8
cmp qword [r8 + 0x18], 8
mov rdx, r8
jb 0x140073bcc
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
mov rcx, rbx
call fcn.1400022b0
mov r8d, 6
lea rdx, [0x1400c2790]
mov rcx, rbx
call fcn.1400025a0
mov r8d, reloc.zCrashReport64.dll_Ordinal_11
lea rdx, str.Zoom.us.ini
mov rcx, rbx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.1400025a0
Function at 0x140075790
Capabilities:
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push r14
sub rsp, 0x40
mov r14d, edx
mov rbx, rcx
add rcx, 0x38
cmp dword [rcx + 0x28], 0
je 0x1400757bf
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor dil, dil
mov byte [rsp + 0x30], dil
cmp qword [rbx + 8], 0
jne 0x14007581d
mov rcx, qword [rbx]
xor edx, edx
mov rsi, r14
test rcx, rcx
je 0x1400757f7
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 6]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdx, rax
mov qword [rbx + 8], rax
test rdx, rdx
je 0x14007581d
shr rsi, 1
mov al, byte [rsi + rdx]
mov byte [rsi + rdx], al
lea eax, [r14 - 1]
mov ecx, eax
mov al, byte [rax + rdx]
mov byte [rcx + rdx], al
mov dword [rbx + 0x14], r14d
mov dil, 1
mov byte [rsp + 0x30], dil
jmp 0x14007582d
lea rcx, [rbx + 0x38]
cmp dword [rcx + 0x28], 0
je 0x14007583d
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, dil
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140078330
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x30
xor r9d, r9d
mov qword [rsp + 0x20], rcx
mov rbx, rcx
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x2b]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14007835c
xor eax, eax
add rsp, 0x30
pop rbx
ret
lea rdx, [0x1400c8380]
mov rcx, rbx
add rsp, 0x30
pop rbx
jmp qword [sym.imp.SHLWAPI.dll_PathAppendW]

Function at 0x140078cc8
Capabilities:
Read .ini file

Disassembly:
mov r11d, r9d
mov r10, r8
lea r9, [rcx + 8]
mov rax, rdx
cmp qword [r9 + 0x18], 8
jb 0x140078cdf
mov r9, qword [r9]
cmp qword [r8 + 0x18], 8
jb 0x140078ce9
mov r10, qword [r8]
cmp qword [rdx + 0x18], 8
jb case.default.0x140078cfc
mov rax, qword [rdx]
mov r8d, r11d
mov rdx, r10
mov rcx, rax
jmp qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
invalid
jle 0x14015ce57
sbb byte [rbx], cl
invalid
retf 0xf957
pop rsi
in al, dx
invalid
sub eax, 0x8d57d136
pop rsp
invalid
or ch, byte [rbx + 0x68]
fisubr word [edx]
xlatb
xor bl, ah
xchg ebx, eax
jp 0x14015cf8f
mov al, 0x87
mov al, 0x87
loope 0x14015cf96
xchg rsi, rax
xchg rsi, rax
invalid
or byte [rbx], bh
neg byte ss:[rbx]
invalid
invalid
sbb dword [rdx + rcx*8 + 0x6b], 0xffffffef
jge 0x14015cf8f
cmp eax, 0x42c70790
sbb al, 0x60
adc dh, byte [rdi + 0x2b]
jns 0x14015d034
loopne 0x14015cf76
mov ebp, 0xfebfbd2e
invalid
mov ebp, 0x1b61febf
rcl byte [rbx]
in al, dx
xor bh, byte [rsi]
pop rcx
out dx, eax
ror dword [rdi], cl
mov esi, 0xaff6d575
std
mov esp, 0x84ff727a
imul ebp, dword [rdi], 0x59
retf 0xfeef
invalid

Function at 0x140078d04
Capabilities:
Read .ini file

Disassembly:
push rbx
add rcx, 8
mov r10, r9
mov r11, r8
mov rbx, rdx
cmp qword [rcx + 0x18], 8
jb case.default.0x140078d39
mov rcx, qword [rcx]
mov eax, dword [rsp + 0x38]
mov r8, r10
mov r9, qword [rsp + 0x30]
mov rdx, r11
mov qword [rsp + 0x38], rcx
mov rcx, rbx
mov dword [rsp + 0x30], eax
pop rbx
jmp qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
invalid
scasb al, byte [rdi]
js 0x14015d210
push rbx
jae 0x14015d2b9
mov dh, 0xd4
invalid
shl byte [rdi], cl
test al, 0x36
mov bh, 0x74
add ebx, esi
in al, dx
jl 0x14015d2aa
mov ebp, ds
sti
shl bl, 0x83
insd dword [rdi], dx
sbb dh, cl
add dword [rbp - 0x4d], r12d
stc
mov bl, 0xf9
invalid
cdq
lock sub byte [rdi], bh
xchg ebx, eax
invalid
test al, 0x65
scasd eax, dword [rdi]
adc al, 0xfd
cmc
invalid
ja 0x14015d322
jne 0x14015d306
jle 0x14015d2ef
retf
rcr bl, cl
in eax, 0x4a
or al, 0x1e
jl 0x14015d331
invalid
fbld tbyte [rdx + 0x1a3bd5e1]
mov esi, 0xc0aabeab
shr byte [rdx - 0x5c], 0x4c
test al, 0xb7
shr byte [rdx - 0x5c], 0x4c
test al, 0xb7
jl 0x14015d31b
lahf
mov bh, 0x72
xchg ebx, eax
invalid
iretd
imul edx, dword [rcx + rsi*2 + 0x236a87ac], 0x44dd91d5
mov al, 0x3d
jmp 0xfb4768c2
lodsb al, byte [rsi]
xchg dword [rdx + 0x23], ebp
invalid
and al, bl
sub bl, byte [rcx + 0x42]
xor edi, dword [rcx + 0x5c7289db]
loopne 0x14015d3b9
stosb byte [rdi], al
sub eax, 0x4b14fecd
xchg edx, eax
out dx, al
invalid
cmpsq qword [rsi], qword [rdi]
mov ecx, dword [rax + 0x39346bf3]
and byte [rsi - 0x5a2ad89f], cl
cmp edi, ebx
invalid
Function at 0x1400792b4
Capabilities:
Get file size
Parse pe header
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
xor esi, esi
mov rdi, rdx
mov rbx, rcx
test rdx, rdx
je 0x140079426
cmp si, word [rdx]
je 0x140079426
cmp qword [rcx + 8], rsi
je 0x1400792e8
call fcn.1400791c8
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov rcx, rdi
mov dword [rsp + 0x20], 3
lea edx, [r9 + 1]
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, rax
mov qword [rbx], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140079426
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0x40
jb 0x140079426
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x28], rsi
xor edx, edx
mov dword [rsp + 0x20], edi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, rax
mov qword [rbx + 0x18], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140079426
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 8], rax
mov rdx, rax
test rax, rax
je 0x140079426
lea r8, [rdi + rax]
mov qword [rbx + 0x10], r8
cmp dword [rax + 0x3c], 0x40
jb 0x140079426
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
mov qword [rbx + 0x20], rcx
lea rax, [rcx + 0xf8]
cmp r8, rax
jb 0x140079426
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x140079426
cmp dword [rcx], 0x4550
jne 0x140079426
mov eax, 0x14c
cmp word [rcx + 4], ax
je 0x1400793ff
mov eax, 0x8664
cmp word [rcx + 4], ax
je 0x1400793f6
mov eax, 0xaa64
cmp word [rcx + 4], ax
jne 0x140079426
mov dword [rbx + 0x30], 3
lea rax, [rcx + 0x108]
jmp 0x14007940d
mov dword [rbx + 0x30], 2
jmp 0x1400793ed
mov dword [rbx + 0x30], 1
lea rax, [rcx + 0xf8]
mov qword [rbx + 0x28], rax
movzx ecx, word [rcx + 6]
lea rdx, [rcx + rcx*4]
lea rcx, [rax + rdx*8]
cmp r8, rcx
jb 0x140079426
mov al, 1
jmp 0x140079430
mov rcx, rbx
call fcn.1400791c8
xor al, al
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1400794c8
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
and qword [rcx], 0
mov rbx, rcx
and qword [rcx + 8], 0
and qword [rcx + 0x10], 0
and qword [rcx + 0x18], 0
and qword [rcx + 0x20], 0
and qword [rcx + 0x28], 0
and qword [rcx + 0x30], 0
and qword [rcx + 0x38], 0
lea rcx, str.crypt32.dll
call fcn.14007020c
mov rdi, rax
test rax, rax
je 0x1400795c7
lea rdx, str.CertCloseStore
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CertFindCertificateInStore
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CertFreeCertificateContext
mov rcx, rdi
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1400c3de8]
mov rcx, rdi
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptDecodeObject
mov rcx, rdi
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptMsgClose
mov rcx, rdi
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptMsgGetParam
mov rcx, rdi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptQueryObject
mov rcx, rdi
mov qword [rbx + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptMsgClose
mov rcx, rdi
mov qword [rbx + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x28], rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret