joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180079ff8
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18007a028
xor eax, eax
jmp 0x18007a0eb
mov rbp, rbx
cmp word [rax], si
je 0x18007a04d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18007a034
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18007a030
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1800786e0
movsxd r14, eax
test eax, eax
jne 0x18007a08b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18007a021
mov rcx, r14
call fcn.180071ca8
mov rdi, rax
test rax, rax
jne 0x18007a0a4
xor ecx, ecx
call fcn.180071c6c
jmp 0x18007a080
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1800786e0
test eax, eax
jne 0x18007a0d5
mov rcx, rdi
call fcn.180071c6c
jmp 0x18007a0df
xor ecx, ecx
call fcn.180071c6c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x18007ce60
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.18006fda0
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x18007cf01
cmp ebx, dword [rsp + 0x30]
je 0x18007cefa
test esi, esi
je 0x18007cefa
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18007ced5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18007cee2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18007cebf
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18007cee6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18007cf03
mov eax, 1
jmp 0x18007cf03
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180081894
Capabilities:
Clear file content

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
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.180076ce4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180076ce4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1800819e4
cmp rax, 0xffffffffffffffff
je 0x1800819e4
xor edi, edi
test rbp, rbp
jle 0x18008198f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180071bf4
mov rbx, rax
test rax, rax
jne 0x18008191c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180081985
mov edx, 0x8000
mov ecx, r14d
call fcn.180081718
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.180073cd8
cmp eax, 0xffffffff
je 0x180081965
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18008192c
mov edx, r15d
mov ecx, r14d
call fcn.180081718
jmp 0x180081985
cmp byte [rsi + 0x38], dil
je 0x18008197c
cmp dword [rsi + 0x34], 5
jne 0x18008197c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180081985
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180071c6c
jmp 0x1800819f8
jns 0x1800819f8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180076ce4
cmp rax, 0xffffffffffffffff
jne 0x1800819b0
cmp byte [rsi + 0x30], dil
je 0x1800819f8
mov edi, dword [rsi + 0x2c]
jmp 0x1800819f8
mov ecx, r14d
call fcn.18007a7b4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800819f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1800819f8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1800819f1
mov eax, dword [rsi + 0x2c]
jmp 0x1800819f6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180076ce4
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x180082220
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180082248
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180082248
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0xbeef6220
Capabilities:
Enumerate process modules
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov ebx, edx
mov rdi, rcx
mov dword [rax + 0x20], 0
lea r9, [rax + 0x20]
xor r8d, r8d
xor edx, edx
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
mov eax, dword [rsp + 0x88]
test eax, eax
je 0xbeef6428
mov r8d, eax
xor edx, edx
mov rcx, qword [0xbef0e4e0]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0xbeef6428
lea r9, [rsp + 0x28]
mov r8d, dword [rsp + 0x88]
mov rdx, rax
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
xorps xmm2, xmm2
xorps xmm1, xmm1
lea r9, [0xbef0d320]
mov rcx, r9
mov eax, 0x10
nop dword [rax + rax]
movdqu xmm0, xmmword [rcx]
paddb xmm2, xmm0
movdqu xmm0, xmmword [rcx + 0x10]
paddb xmm1, xmm0
lea rcx, [rcx + 0x20]
sub rax, 1
jne 0xbeef62c0
paddb xmm1, xmm2
movdqa xmm0, xmm1
psrldq xmm0, 8
paddb xmm1, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 4
paddb xmm1, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 2
paddb xmm1, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 1
paddb xmm1, xmm0
movd r14d, xmm1
xor cl, cl
xor dl, dl
mov eax, 0x200
mov r8d, 8
nop word [rax + rax]
add cl, byte [rax + r9]
add dl, byte [rax + r9 + 1]
lea rax, [rax + 2]
sub r8, 1
jne 0xbeef6330
add r14b, dl
add r14b, cl
mov byte [rsp + 0x80], r14b
mov ecx, dword [rsp + 0x28]
shr ecx, 3
mov eax, dword [rsp + 0x88]
shr eax, 3
cmp eax, ecx
cmovae eax, ecx
mov dword [rsp + 0x88], eax
mov dword [rsp + 0x20], r8d
xor r11d, r11d
lea r15, [0xbeef0000]
mov dword [rsp + 0x24], r11d
mov ecx, dword [rsp + 0x88]
cmp r11d, ecx
jae 0xbeef6416
cmp r8d, ebx
jae 0xbeef6416
movzx eax, r14b
add eax, r11d
xor edx, edx
div ecx
mov r10, qword [rsi + rdx*8]
test r10, r10
je 0xbeef640e
cmp r10, r15
je 0xbeef640e
movsxd r9, dword [r10 + 0x3c]
xor eax, eax
mov dword [rsp + 0x2c], eax
cmp eax, dword [r9 + r10 + 0x1c]
jae 0xbeef63e4
cmp r8d, ebx
jae 0xbeef63e4
mov ecx, dword [r9 + r10 + 0x2c]
add ecx, eax
movzx edx, byte [rcx + r10]
mov ecx, r8d
mov byte [rcx + rdi], dl
inc eax
inc r8d
mov dword [rsp + 0x20], r8d
jmp 0xbeef63b6
jmp 0xbeef640e
inc r11d
jmp 0xbeef637d
mov r8, rsi
xor edx, edx
mov rcx, qword [0xbef0e4e0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0xbeef6ad0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
sub rsp, 0x270
mov edx, 1
xor ecx, ecx
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0xbeef6cc4
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0xbeef6cc4
mov rcx, rax
mov qword [rsp + 0x290], rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0xbeef6cbc
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test eax, eax
je 0xbeef6cbc
mov rcx, qword [0xbef0e4e0]
lea r8d, [rbx + rbx*8]
mov qword [rsp + 0x288], rbp
xor edx, edx
mov qword [rsp + 0x268], rdi
lea rbp, [rbx + rsi]
mov qword [rsp + 0x258], r14
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0xbeef6ca4
mov qword [rsp + 0x260], r12
mov r8d, ebx
mov qword [rsp + 0x250], r15
lea r12d, [rbx*8]
mov r15d, r12d
mov rdx, rsi
add r15, rax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_RtlMoveMemory]
lea edx, [rbx - 0x10]
mov rcx, r15
lea r8, [rbp - 0x10]
call fcn.bef08730
test eax, eax
je 0xbeef6c82
mov edx, dword [rbp - 4]
mov r9d, r12d
xor edx, dword [rbp - 8]
mov r8, rdi
xor edx, dword [rbp - 0xc]
mov rcx, r15
xor edx, dword [rbp - 0x10]
call fcn.bef08930
test eax, eax
je 0xbeef6c82
xor r8d, r8d
mov edx, eax
mov rcx, rdi
call fcn.beef6630
test eax, eax
je 0xbeef6c82
mov r8d, eax
lea rdx, [0xbeef1bb8]
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_wsprintfW]
mov r10, qword [0xbef0df30]
lea rcx, [rsp + 0x50]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0xbeef6c20
xor r8d, r8d
lea rdx, [rsp + 0x280]
mov dword [rsp + 0x48], r8d
add eax, eax
mov qword [rsp + 0x40], rdx
mov r9d, 4
mov dword [rsp + 0x38], r8d
mov edx, 0xffffffff
mov dword [rsp + 0x30], setsockopt
lea r8, [0xbeef3040]
mov dword [rsp + 0x28], eax
xor ecx, ecx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call r10
xor edx, edx
mov rcx, 0xffffffffffffffff
call qword [0xbef0e4a8]
mov rcx, qword [0xbef0e4e0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r15, qword [rsp + 0x250]
mov r12, qword [rsp + 0x260]
mov rdi, qword [rsp + 0x268]
mov rbp, qword [rsp + 0x288]
mov r14, qword [rsp + 0x258]
mov rsi, qword [rsp + 0x290]
add rsp, 0x270
pop rbx
ret
Function at 0xbeef6d70
Capabilities:
Create process on windows
Get common file path

Disassembly:
push rbx
sub rsp, 0x6c0
mov edx, 0x104
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, eax
lea rdx, [0xbeef1bc8]
lea rax, [rsp + 0x80]
lea rcx, [rax + rcx*2]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0xbeef3130]
lea rcx, [rsp + 0x290]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov r8d, 0x1cd
lea rdx, [rsp + 0x318]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, eax
lea rdx, [0xbeef3048]
lea rax, [rsp + 0x318]
lea rcx, [rax + rcx*2]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
xor ebx, ebx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], rbx
lea r8, [rsp + 0x290]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x80]
lea rax, [0xbef0d200]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor ecx, ecx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], pe_nt_image_headers64
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_CreateProcessInternalW]
test eax, eax
je 0xbeef6e67
mov rcx, qword [rsp + 0x68]
call qword [0xbef0e4f8]
mov rcx, qword [rsp + 0x60]
call qword [0xbef0e4f8]
mov eax, dword [rsp + 0x70]
add rsp, 0x6c0
pop rbx
ret
mov eax, ebx
add rsp, 0x6c0
pop rbx
ret
Function at 0xbeef6e80
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [0xbef0e4e0]
xor edx, edx
mov r8d, 0x400
xor edi, edi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0xbeef6f20
mov edx, 0x200
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r9d, eax
mov edx, edi
lea r10, [0xbeef1be0]
mov word [rbx + r9*2], 0x5c
lea r8d, [r9 + 1]
nop
lea ecx, [r8 + rdx]
cmp ecx, 0x200
jae 0xbeef6ef0
mov eax, edx
inc edx
movzx eax, word [r10 + rax*2]
mov word [rbx + rcx*2], ax
cmp word [r10 + rdx*2], di
jne 0xbeef6ed0
lea eax, [r9 + 1]
xor r8d, r8d
add eax, edx
mov rcx, rbx
xor edx, edx
mov word [rbx + rax*2], di
mov rax, qword [0xbef0e510]
call rax
mov rcx, qword [0xbef0e4e0]
mov r8, rbx
xor edx, edx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, qword [0xbef0e568]
lea rbx, [0xbeef1c00]
mov qword [0xbef0e500], rdi
test rax, rax
je 0xbeef6f59
cmp rbx, qword [0xbef0dab0]
jb 0xbeef6f59
cmp rbx, qword [0xbef0dab8]
ja 0xbeef6f59
mov rdx, rbx
mov rcx, rdi
call rax
test rax, rax
jne 0xbeef6f65
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, qword [0xbef0e500]
lea rdi, [0xbeef1c20]
mov qword [0xbef0de10], rax
mov rax, qword [0xbef0e568]
test rax, rax
je 0xbeef6fa5
cmp rdi, qword [0xbef0dab0]
jb 0xbeef6fa5
cmp rdi, qword [0xbef0dab8]
ja 0xbeef6fa5
mov rdx, rdi
mov rcx, rbx
call rax
test rax, rax
jne 0xbeef6fb1
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, qword [0xbef0e500]
lea rdi, [0xbeef1c30]
mov qword [0xbef0df30], rax
mov rax, qword [0xbef0e568]
test rax, rax
je 0xbeef6ff1
cmp rdi, qword [0xbef0dab0]
jb 0xbeef6ff1
cmp rdi, qword [0xbef0dab8]
ja 0xbeef6ff1
mov rdx, rdi
mov rcx, rbx
call rax
test rax, rax
jne 0xbeef6ffd
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, qword [0xbef0e500]
lea rdi, [0xbeef1c40]
mov qword [0xbef0deb8], rax
mov rax, qword [0xbef0e568]
test rax, rax
je 0xbeef703d
cmp rdi, qword [0xbef0dab0]
jb 0xbeef703d
cmp rdi, qword [0xbef0dab8]
ja 0xbeef703d
mov rdx, rdi
mov rcx, rbx
call rax
test rax, rax
jne 0xbeef7049
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, qword [rsp + 0x30]
mov qword [0xbef0dd48], rax
add rsp, 0x20
pop rdi
ret
Function at 0xbeef7060
Capabilities:
Create process on windows
Get common file path

Disassembly:
push rsi
sub rsp, 0x80
mov rcx, qword [0xbef0e4e0]
xor edx, edx
mov r8d, 0x1208
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0xbeef7189
mov qword [rsp + 0x90], rbx
mov edx, 0x104
mov qword [rsp + 0x98], rdi
mov rcx, rax
lea rdi, [rax + 0x208]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, eax
lea rdx, [0xbeef1c58]
lea rcx, [rsi + rcx*2]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0xbeef2f70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [rdi + 0x70]
xor ecx, ecx
mov r8d, 0x7c7
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, [0xbeef3090]
lea ebx, [rax + 0x38]
lea rcx, [rdi + rbx*2]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
add ebx, 0x1a
mov r8d, 0x800
sub r8d, ebx
xor ecx, ecx
lea rdx, [rdi + rbx*2]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
add ebx, eax
lea rdx, [0xbeef3118]
lea rcx, [rdi + rbx*2]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
xor ecx, ecx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], rcx
xor r9d, r9d
mov qword [rsp + 0x50], rax
mov r8, rdi
lea rax, [0xbef0d030]
mov rdx, rsi
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], 0x8000000
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rcx
call qword [sym.imp.KERNEL32.dll_CreateProcessInternalW]
xor edx, edx
mov rcx, 0xffffffffffffffff
call qword [0xbef0e4a8]
mov rdi, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rsi
ret
Function at 0xbeef71a0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x430
movsxd rax, dword [rcx + 0x3c]
mov rbp, rcx
mov r14d, dword [rax + rcx + 0x90]
mov r15d, dword [rax + rcx + 0x94]
lea rsi, [r14 + rcx]
test r15, r15
je 0xbeef7365
xor ebx, ebx
lea r12, [0xbeef5880]
lea r13, [0xbeef5868]
cmp dword [rsi + 0x10], 0
je 0xbeef7365
mov r8d, dword [rsi + 0xc]
lea rax, [rsp + 0x30]
add r8, rbp
mov dword [rsp + 0x28], 0x200
xor edx, edx
mov qword [rsp + 0x20], rax
xor ecx, ecx
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0xbeef734f
mov r8d, 0x200
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0xbeef734f
mov rax, qword [0xbef133a8]
test rax, rax
jne 0xbeef7342
mov rcx, qword [0xbef0e4e0]
xor edx, edx
mov r8d, 0x400
mov rdi, rbx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0xbeef7301
mov edx, 0x200
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r9d, eax
xor r10d, r10d
mov ecx, r10d
mov word [rbx + r9*2], 0x5c
lea r8d, [r9 + 1]
nop dword [rax + rax]
lea edx, [r8 + rcx]
cmp edx, 0x200
jae 0xbeef72d0
mov eax, ecx
inc ecx
movzx eax, word [r12 + rax*2]
mov word [rbx + rdx*2], ax
cmp word [r12 + rcx*2], r10w
jne 0xbeef72b0
lea eax, [r9 + 1]
xor r8d, r8d
add eax, ecx
xor edx, edx
mov rcx, rbx
mov word [rbx + rax*2], r10w
mov rax, qword [0xbef0e510]
call rax
mov rcx, qword [0xbef0e4e0]
mov r8, rbx
xor edx, edx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8, qword [0xbef0e568]
test r8, r8
je 0xbeef732d
cmp r13, qword [0xbef0dab0]
jb 0xbeef732d
cmp r13, qword [0xbef0dab8]
ja 0xbeef732d
mov rdx, r13
mov rcx, rdi
call r8
test rax, rax
jne 0xbeef7339
mov rdx, r13
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0xbef133a8], rax
xor ebx, ebx
lea rdx, [rsp + 0x30]
xor ecx, ecx
call rax
test eax, eax
je 0xbeef7388
add rsi, 0x14
mov rax, rsi
sub rax, r14
sub rax, rbp
cmp rax, r15
jl 0xbeef71f3
xor eax, eax
lea r11, [rsp + 0x430]
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
mov rcx, qword [0xbef0de40]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rdx, qword [0xbef0de40]
lea rcx, [rsp + 0x30]
mov r8d, eax
call fcn.bef09040
jmp 0xbeef7367
Function at 0xbef00e10
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x358]
sub rsp, 0x458
mov rcx, qword [0xbef0df60]
xor ebx, ebx
mov qword [rbp + 0x378], rbx
mov qword [rbp + 0x388], 0xffffffff80000001
test rcx, rcx
je 0xbef00e89
lea rdx, [rbp + 0x370]
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
je 0xbef00e89
mov rdx, qword [rbp + 0x370]
lea rax, [rbp + 0x388]
mov r9d, 8
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000003
call qword [sym.imp.KERNEL32.dll_RegOpenKeyExW]
mov rcx, qword [rbp + 0x370]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp + 0x388]
lea rax, [rbp + 0x380]
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0xbeef3670]
call qword [sym.imp.KERNEL32.dll_RegOpenKeyExW]
test eax, eax
jne 0xbef01081
mov rcx, qword [rbp + 0x380]
lea rax, [rbp + 0x370]
mov qword [rsp + 0x28], rax
lea rdx, [0xbeef36b8]
lea rax, [rsp + 0x30]
mov dword [rbp + 0x370], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_RegQueryValueExW]
test eax, eax
jne 0xbef0106a
cmp qword [rsp + 0x30], rbx
je 0xbef0106a
lea rax, [rsp + 0x50]
mov dword [rsp + 0x38], 0x4000000
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x30]
mov rax, qword [0xbef0def8]
xor r9d, r9d
mov r8d, 0x18
mov ecx, 0x58
call rax
test eax, eax
jne 0xbef0106a
movzx eax, word [rsp + 0x38]
cmp eax, 0x14
jbe 0xbef0106a
mov rdx, qword [rsp + 0x40]
mov ecx, eax
shr rcx, 1
cmp word [rdx + rcx*2 - 0x14], 0x5c
jne 0xbef0106a
movzx eax, word [rdx + rcx*2 - 0x12]
mov r8d, 0xffdf
sub ax, 0x53
test r8w, ax
jne 0xbef0106a
movzx eax, word [rdx + rcx*2 - 0x10]
sub ax, 0x54
test r8w, ax
jne 0xbef0106a
movzx eax, word [rdx + rcx*2 - 0xe]
sub ax, 0x45
test r8w, ax
jne 0xbef0106a
movzx eax, word [rdx + rcx*2 - 0xc]
sub ax, 0x41
test r8w, ax
jne 0xbef0106a
movzx eax, word [rdx + rcx*2 - 0xa]
sub ax, 0x4d
test r8w, ax
jne 0xbef0106a
cmp word [rdx + rcx*2 - 8], 0x2e
jne 0xbef0106a
movzx eax, word [rdx + rcx*2 - 6]
sub ax, 0x45
test r8w, ax
jne 0xbef0106a
movzx eax, word [rdx + rcx*2 - 4]
sub ax, 0x58
test r8w, ax
jne 0xbef0106a
movzx eax, word [rdx + rcx*2 - 2]
sub ax, 0x45
test r8w, ax
jne 0xbef0106a
mov rcx, qword [rbp + 0x380]
lea rax, [rbp + 0x370]
mov qword [rsp + 0x28], rax
lea rdx, [0xbeef36c0]
lea rax, [rbp + 0x378]
mov dword [rbp + 0x370], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RegQueryValueExW]
test eax, eax
jne 0xbef01074
mov rax, qword [rbp + 0x378]
test rax, rax
je 0xbef01074
movabs rcx, 0x110000100000000
or rax, rcx
mov qword [rbp + 0x378], rax
jmp 0xbef01074
mov dword [rbp + 0x370], 4
mov rcx, qword [rbp + 0x380]
call qword [0xbef0e4f8]
mov rcx, qword [rbp + 0x388]
cmp rcx, 0xffffffff80000001
je 0xbef01097
call qword [0xbef0e4f8]
mov rax, qword [rbp + 0x378]
add rsp, 0x458
pop rbx
pop rbp
ret
Function at 0xbef03a60
Capabilities:
Get file size

Disassembly:
push rbp
push r12
push r13
push r15
sub rsp, 0x48
xor r13d, r13d
mov r15, rdx
mov word [rdx], r13w
xor r9d, r9d
mov qword [rsp + 0x30], r13
mov edx, 1
mov dword [rsp + 0x28], r13d
mov r8d, 7
mov dword [rsp + 0x20], 3
mov ebp, r13d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0xbef03c93
lea rdx, [rsp + 0x78]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0xbef03c8a
test dword [rsp + 0x78], 0xfff
je 0xbef03c8a
cmp dword [rsp + 0x7c], r13d
jne 0xbef03c8a
mov qword [rsp + 0x70], rbx
xor r9d, r9d
mov qword [rsp + 0x88], rdi
xor edx, edx
mov edi, 2
mov qword [rsp + 0x28], r13
mov r8d, edi
mov dword [rsp + 0x20], r13d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbx, rax
test rax, rax
je 0xbef03c7d
mov qword [rsp + 0x28], r13
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r13
mov edx, 4
mov qword [rsp + 0x80], rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov rcx, rbx
mov rsi, rax
call qword [0xbef0e4f8]
test rsi, rsi
je 0xbef03c75
mov rax, qword [rsp + 0x78]
mov edx, r13d
mov qword [rsp + 0x40], r14
cmp eax, 8
jbe 0xbef03c07
nop word [rax + rax]
mov r14d, edx
add r14, rsi
movzx ecx, word [r14]
sub cx, 0x41
cmp cx, 0x19
ja 0xbef03b9b
cmp word [r14 + 2], 0x3a
jne 0xbef03b9b
cmp word [r14 + 4], 0x5c
jne 0xbef03b9b
cmp word [r14 + 6], bp
jne 0xbef03ba6
add edx, edi
lea ecx, [rdx + 8]
cmp ecx, eax
jb 0xbef03b70
jmp 0xbef03c07
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, 0x103
cmp eax, ebp
jbe 0xbef03bd7
mov r8d, 0x206
mov rdx, r14
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_RtlMoveMemory]
mov word [r15 + 0x206], r13w
jmp 0xbef03c67
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
mov rdx, r14
mov rcx, r15
lea rbx, [rbp*2]
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_RtlMoveMemory]
mov word [rbx + r15], r13w
test ebp, ebp
jne 0xbef03c67
mov rax, qword [rsp + 0x78]
cmp eax, 4
jbe 0xbef03c67
nop dword [rax]
lea r8d, [rdi - 2]
add r8, rsi
movzx ecx, byte [r8]
sub cl, 0x41
cmp cl, 0x19
ja 0xbef03c3d
lea ecx, [rdi - 1]
cmp byte [rcx + rsi], 0x3a
jne 0xbef03c3d
mov ecx, edi
cmp byte [rcx + rsi], 0x5c
jne 0xbef03c3d
lea ecx, [rdi + 1]
cmp byte [rcx + rsi], r13b
jne 0xbef03c48
inc edi
lea ecx, [rdi + 2]
cmp ecx, eax
jb 0xbef03c10
jmp 0xbef03c67
mov dword [rsp + 0x28], 0x104
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], r15
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebp, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x88]
mov rcx, r12
call qword [0xbef0e4f8]
mov eax, ebp
add rsp, 0x48
pop r15
pop r13
pop r12
pop rbp
ret