joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c4d6c
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
xor r12d, r12d
movsxd rbp, edx
mov rsi, rcx
mov ebx, r12d
cmp dword [rcx], ebp
je 0x1400c4eab
mov r15d, dword [rcx + 4]
cmp ebp, r15d
cmovl r15d, ebp
test edx, edx
jle 0x1400c4e2a
mov r14, rbp
mov edi, r12d
shl r14, 7
mov rax, r14
shr rax, 7
cmp rax, rbp
je 0x1400c4dd0
mov edi, 0x80070216
mov ecx, edi
call fcn.14007ac40
mov r14, qword [rsp + 0x70]
mov ecx, edi
call fcn.14007ace8
test edi, edi
jns 0x1400c4de7
mov ecx, edi
call fcn.14007ac40
jmp 0x1400c4eae
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x1400c4e0e
mov rcx, rax
mov rbx, rax
test rax, rax
jne 0x1400c4e15
mov edi, 0x8007000e
jmp 0x1400c4ddb
test r15d, r15d
je 0x1400c4e2a
mov rdx, qword [rsi + 8]
movsxd r8, r15d
shl r8, 7
call sub.msvcrt.dll_memcpy
cmp ebp, dword [rsi + 4]
jge 0x1400c4e7a
mov edi, ebp
movsxd rdx, edi
shl rdx, 7
add rdx, qword [rsi + 8]
je 0x1400c4e73
xor r9d, r9d
mov qword [rsp + 0x38], rdx
lea rax, [0x14004581c]
mov qword [rsp + 0x20], 3
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov ecx, 0xb9
mov qword [rsp + 0x30], r12
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
inc edi
cmp edi, dword [rsi + 4]
jl 0x1400c4e31
mov rdi, qword [rsi + 8]
mov r14, rbx
mov rbx, r12
test rdi, rdi
je 0x1400c4ea1
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rsi + 8], r12
mov qword [rsi + 8], r14
mov dword [rsi + 4], r15d
mov dword [rsi], ebp
mov edi, r12d
mov ecx, edi
call fcn.14007ace8
test rbx, rbx
je 0x1400c4ece
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r11, [rsp + 0x40]
mov eax, edi
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x1400c7108
Capabilities:
Get system information on windows

Disassembly:
mov r11, rsp
sub rsp, 0x48
xor r9d, r9d
mov qword [r11 - 0x10], rcx
lea rax, [0x1400495dc]
mov qword [r11 - 0x28], 3
mov qword [r11 - 0x20], rax
lea rdx, [r11 - 0x28]
lea rax, [r11 + 8]
mov ecx, 0xb9
lea r8d, [r9 + 0x20]
mov qword [r11 - 0x18], rax
call sub.ntdll.dll_NtQuerySystemInformation
mov rax, qword [rsp + 0x50]
add rsp, 0x48
ret
Function at 0x1400c75a4
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
xor esi, esi
xor ebx, ebx
and dword [rbp - 0x24], esi
mov r15, r8
and dword [rbp - 0x28], esi
mov r14, rdx
and qword [rbp - 0x40], rsi
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x38], rbx
test ecx, ecx
je 0x1400c7625
cmp ecx, 1
je 0x1400c75e8
mov ecx, 0x80070057
mov edi, ecx
jmp 0x1400c76e5
lea rax, [0x14004a95c]
mov qword [rbp - 0x20], 3
mov qword [rbp - 0x18], rax
lea rdx, [rbp - 0x20]
xor r9d, r9d
lea rax, [rbp + 0x30]
mov qword [rbp - 0x10], rax
mov ecx, 0xb9
lea rax, [rbp - 0x40]
mov qword [rbp - 8], rax
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
mov ecx, dword [rbp + 0x30]
jmp 0x1400c7660
lea rax, [0x14004ac9c]
mov qword [rbp - 0x20], 3
mov qword [rbp - 0x18], rax
lea rdx, [rbp - 0x20]
xor r9d, r9d
lea rax, [rbp + 0x48]
mov qword [rbp - 0x10], rax
mov ecx, 0xb9
lea rax, [rbp - 0x40]
mov qword [rbp - 8], rax
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
mov ecx, dword [rbp + 0x48]
mov edi, ecx
test ecx, ecx
js 0x1400c76e5
lea rdx, [rbp - 0x38]
mov rcx, r14
call fcn.14004df1c
mov edi, eax
test eax, eax
jns 0x1400c7685
mov ecx, eax
call fcn.14007ac40
mov rbx, qword [rbp - 0x38]
jmp 0x1400c76ea
mov rdx, qword [rbp - 0x40]
lea rcx, [rbp - 0x30]
call fcn.14006abd8
mov edi, eax
test eax, eax
jns 0x1400c76a5
mov ecx, eax
call fcn.14007ac40
mov rsi, qword [rbp - 0x30]
jmp 0x1400c767f
mov rbx, qword [rbp - 0x38]
lea rcx, [rbp - 0x30]
mov rdx, rbx
call fcn.14006ab64
mov edi, eax
test eax, eax
jns 0x1400c76c8
mov ecx, eax
call fcn.14007ac40
mov rsi, qword [rbp - 0x30]
jmp 0x1400c76ea
mov rsi, qword [rbp - 0x30]
mov r8d, 0x7fffffff
mov rcx, rsi
mov rdx, r15
call fcn.14006b1f0
mov edi, eax
test eax, eax
jns 0x1400c76ea
mov ecx, eax
call fcn.14007ac40
mov ecx, edi
call fcn.14007ace8
test rbx, rbx
je 0x1400c76ff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x1400c7713
call qword [sym.imp.KERNEL32.dll_LocalFree]
and qword [rbp - 0x40], 0
test rsi, rsi
je 0x1400c772c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x98]
mov eax, edi
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400c924c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov qword [r11 + 8], rcx
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov r14, r9
lea rax, [rbp - 8]
mov r15, r8
mov qword [r11 - 0x38], rax
xor edi, edi
xor ebx, ebx
and qword [rbp - 8], rbx
xor r8d, r8d
mov rcx, 0xffffffff80000002
lea r9d, [rdi + 1]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400c92a5
mov rdi, qword [rbp - 8]
xor esi, esi
and qword [rbp - 8], rbx
jmp 0x1400c92ba
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov ecx, esi
call fcn.14007ac40
mov ecx, esi
call fcn.14007ace8
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x1400c92d4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rbp - 8], rbx
test esi, esi
js 0x1400c937d
and dword [rbp + 0x20], ebx
lea rax, [rbp + 0x20]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x10]
mov rdx, r15
mov qword [rsp + 0x20], rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400c936f
test rbx, rbx
jne 0x1400c933c
mov eax, dword [rbp + 0x20]
test eax, eax
je 0x1400c9335
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x1400c92df
mov esi, 0x8007000e
jmp 0x1400c937d
mov esi, 0x8000ffff
jmp 0x1400c937d
cmp dword [rbp - 0x10], 1
je 0x1400c9349
mov esi, 0x8007000d
jmp 0x1400c937d
mov edx, dword [rbp + 0x20]
lea r9, [rbp - 0xc]
mov r8, r14
mov rcx, rbx
call fcn.1400795b0
mov esi, eax
test eax, eax
jns 0x1400c9365
mov ecx, eax
jmp 0x1400c937f
cmp dword [rbp - 0xc], 0
je 0x1400c9384
xor ebx, ebx
jmp 0x1400c9384
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov ecx, esi
call fcn.14007ac40
mov ecx, esi
call fcn.14007ace8
test rbx, rbx
je 0x1400c93a4
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rdi, rdi
je 0x1400c93b2
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x68]
mov eax, esi
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
ret
Function at 0x1400c9920
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x140451b38]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov eax, dword [0x1403d9ef0]
xor r14d, r14d
mov r12, rdx
mov qword [rsp + 0x40], r14
mov r13, rcx
mov qword [rsp + 0x38], r14
mov r15d, 0x104
mov dword [rsp + 0x48], 1
mov ebx, r14d
mov dword [rsp + 0x4c], eax
mov edx, r15d
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x50]
mov esi, r14d
mov edi, r14d
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1400c99cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400c99ad
mov r14d, 0x80004005
jmp 0x1400c99be
movzx r14d, ax
or r14d, 0x80070000
test eax, eax
cmovle r14d, eax
mov ecx, r14d
call fcn.14007ac40
jmp 0x1400c9abe
mov rcx, r15
lea rax, [rsp + 0x50]
cmp word [rax], r14w
je 0x1400c99e3
add rax, 2
sub rcx, 1
jne 0x1400c99d3
mov rax, rcx
neg rax
mov rax, rcx
sbb r14d, r14d
sub r15, rcx
not r14d
and r14d, 0x80070057
neg rax
sbb rdx, rdx
and rdx, r15
xor r15d, r15d
test rcx, rcx
je 0x1400c99be
lea ebx, [r15 + 0x5c]
cmp bx, word [rsp + rdx*2 + 0x4e]
je 0x1400c9a22
lea eax, [rbx - 0x2d]
cmp ax, word [rsp + rdx*2 + 0x4e]
jne 0x1400c9a25
dec rdx
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.14007a7c4
mov r14d, eax
test eax, eax
jns 0x1400c9a49
mov ecx, eax
call fcn.14007ac40
mov rbx, qword [rsp + 0x30]
jmp 0x1400c9abe
cmp bx, word [r13]
lea rcx, [r13 + 2]
lea rdx, [rsp + 0x38]
cmovne rcx, r13
call fcn.14007ab14
mov r14d, eax
test eax, eax
jns 0x1400c9a7a
mov ecx, eax
call fcn.14007ac40
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
jmp 0x1400c9abe
mov rbx, qword [rsp + 0x30]
lea r9, [rsp + 0x4c]
mov rdi, qword [rsp + 0x38]
lea rcx, [rsp + 0x40]
mov r8, rbx
mov qword [rsp + 0x20], rdi
mov edx, 3
call fcn.1400cad30
mov r14d, eax
test eax, eax
jns 0x1400c9ab5
mov ecx, eax
call fcn.14007ac40
mov rsi, qword [rsp + 0x40]
jmp 0x1400c9abe
mov rax, qword [rsp + 0x40]
mov qword [r12], rax
mov ecx, r14d
call fcn.14007ace8
test rdi, rdi
je 0x1400c9ae7
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rdi - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.14007ace8
test rbx, rbx
je 0x1400c9b08
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rbx - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.14007ace8
test rsi, rsi
je 0x1400c9b29
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rsi - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.14007ace8
mov eax, r14d
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140388a40
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400c9f80
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xd0
mov rax, qword [0x140451b38]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x90
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x94
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x1400c9ff5
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400c9fde
mov ebx, 0x80004005
jmp 0x1400c9fec
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
call fcn.14007ac40
jmp 0x1400ca016
cmp dword [rsp + 0x30], 2
jne 0x1400ca012
cmp dword [rsp + 0x24], 5
ja 0x1400ca00b
jne 0x1400ca012
cmp dword [rsp + 0x28], ebx
jbe 0x1400ca012
mov eax, 1
jmp 0x1400ca014
mov eax, ebx
mov dword [rdi], eax
mov ecx, ebx
call fcn.14007ace8
mov eax, ebx
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140388a40
mov rbx, qword [rsp + 0xe8]
add rsp, 0xd0
pop rdi
ret

Function at 0x1400ca84c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor eax, eax
xor r14d, r14d
mov qword [r11 + 8], r14
xorps xmm0, xmm0
mov rsi, rdx
mov rbp, rcx
movups xmmword [rsp + 0x20], xmm0
mov qword [r11 - 0x28], rax
test rcx, rcx
jne 0x1400ca88b
mov ebx, 0x80070057
mov ecx, ebx
jmp 0x1400ca929
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
je 0x1400ca8a0
shr edi, 4
and edi, 1
jmp 0x1400ca8a3
mov edi, r14d
xor ecx, ecx
call fcn.14007ace8
xor ecx, ecx
call fcn.14007ace8
mov ebx, r14d
test edi, edi
jne 0x1400ca92e
test rsi, rsi
je 0x1400ca90d
xor r9d, r9d
lea r8, [rsp + 0x60]
lea edx, [rdi + 1]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
jne 0x1400ca8f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400ca8e6
mov ebx, 0x80004005
jmp 0x1400ca884
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400ca884
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], reloc.OLEAUT32.dll_SafeArrayGetElement
mov dword [rsp + 0x30], r14d
test rsi, rsi
lea rdx, [rsp + 0x20]
mov rcx, rbp
cmove rdx, r14
call fcn.1400ca964
mov ebx, eax
test eax, eax
jns 0x1400ca92e
mov ecx, eax
call fcn.14007ac40
mov ecx, ebx
call fcn.14007ace8
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400ca945
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbp, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x1400d5174
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov rax, qword [0x140451b38]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor ebx, ebx
mov r14, rcx
cmp dword [0x14045db08], 1
je 0x1400d51ad
mov ebx, 0x8000ffff
jmp 0x1400d51e7
mov rcx, qword [0x14045c7e8]
lea r8, [rsp + 0x20]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x1400d51ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400d51d9
mov ebx, 0x80004005
jmp 0x1400d51e7
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
call fcn.14007ac40
mov ecx, ebx
call fcn.14007ace8
test ebx, ebx
jns 0x1400d5202
mov ecx, ebx
call fcn.14007ac40
jmp 0x1400d5254
mov esi, dword [0x14045d4e0]
xor edi, edi
test esi, esi
je 0x1400d521f
lea ecx, [rdi + 0x10]
call fcn.14018d6a4
mov esi, dword [0x14045d4e0]
mov rdi, rax
test rdi, rdi
jne 0x1400d522b
mov ebx, 0x8007000e
jmp 0x1400d51f9
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea r8, [rsp + 0x20]
xor edx, edx
mov rcx, rdi
call fcn.14016f660
mov rcx, qword [r14]
test rcx, rcx
je 0x1400d5251
test esi, esi
je 0x1400d5251
call fcn.14018d8f0
mov qword [r14], rdi
xor eax, eax
lea rdi, [rsp + 0x20]
lea ecx, [rax + 0x10]
rep stosb byte [rdi], al
mov ecx, ebx
call fcn.14007ace8
mov eax, ebx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140388a40
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400e6968
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
and dword [rbp + 0x40], 0
lea r9, [rbp + 0x48]
xor ebx, ebx
mov rsi, rdx
and qword [rsp + 0x20], rbx
lea rdx, [rbp + 0x40]
mov r14, rcx
mov qword [rbp - 8], rbx
mov rcx, rsi
lea r8d, [rbx + 4]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400e69da
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400e69c0
mov edi, 0x80004005
jmp 0x1400e69ce
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov ecx, edi
call fcn.14007ac40
jmp 0x1400e6a7e
cmp dword [rbp + 0x48], 4
je 0x1400e69e9
mov ecx, 0x8007000d
mov edi, ecx
jmp 0x1400e69d0
mov eax, dword [rbp + 0x40]
sub eax, 1
je 0x1400e6a30
cmp eax, 1
jne 0x1400e69e0
lea rax, [rbp - 0x10]
mov rdx, rsi
lea r9, [rbp - 8]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0xc]
call fcn.1400e78a8
mov edi, eax
test eax, eax
jns 0x1400e6a22
mov ecx, eax
call fcn.14007ac40
mov rbx, qword [rbp - 8]
jmp 0x1400e6a7e
mov rbx, qword [rbp - 8]
mov r15d, dword [rbp - 0x10]
mov r12d, dword [rbp - 0xc]
jmp 0x1400e6a4b
mov rdx, rsi
call fcn.1400e7bb0
mov edi, eax
test eax, eax
jns 0x1400e6a42
mov ecx, eax
jmp 0x1400e69d0
mov r15d, 1
xor r12d, r12d
mov qword [r14 + 8], rsi
mov rsi, rbx
mov rcx, qword [r14 + 0x18]
xor ebx, ebx
test rcx, rcx
je 0x1400e6a63
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
test rsi, rsi
cmovne rax, rsi
mov qword [r14 + 0x18], rax
mov eax, dword [rbp + 0x40]
mov dword [r14], eax
mov dword [r14 + 0x20], r12d
mov dword [r14 + 0x10], r15d
mov ecx, edi
call fcn.14007ace8
test rbx, rbx
je 0x1400e6a93
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, qword [rsp + 0x70]
mov eax, edi
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1400e7bb0
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0xd0
mov rax, qword [0x140451b38]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, rdx
lea rcx, [rsp + 0x40]
xor edx, edx
lea r8d, [rdx + 0x78]
call sub.msvcrt.dll_memset
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, 0x78
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400e7c22
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400e7c12
mov ebx, 0x80004005
jmp 0x1400e7c84
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400e7c84
cmp dword [rsp + 0x30], 0x78
je 0x1400e7c30
mov ebx, 0x8007000d
jmp 0x1400e7c84
mov r8d, 0x3c
lea rdx, [rsp + 0x34]
lea rcx, [rsp + 0x40]
call fcn.14007a854
mov ebx, eax
test eax, eax
jns 0x1400e7c4f
mov ecx, eax
jmp 0x1400e7c86
lea rdx, str.spp:migblob_aesencryptor_tokenact
lea rcx, [rsp + 0x40]
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400e7c8b
and qword [rsp + 0x20], 0
mov ecx, 1
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc00004a5
call fcn.14004eeb8
mov ebx, 0x80049e59
mov ecx, ebx
call fcn.14007ac40
mov ecx, ebx
call fcn.14007ace8
mov eax, ebx
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140388a40
add rsp, 0xd0
pop rbx
ret
Function at 0x1400e95a0
Capabilities:
Get process image filename

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x198]
sub rsp, 0x280
mov rax, qword [0x140451b38]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rdi, rdx
lea rcx, [0x14042de68]
xor r12d, r12d
lea rdx, [0x14045b494]
mov ebx, r12d
call fcn.1400f43c0
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov r15d, 0x80004005
test rdi, rdi
jne 0x1400e9617
mov r14d, 0xc004e001
mov ecx, r14d
jmp 0x1400e9628
mov rcx, rdi
call fcn.140051f0c
mov r14d, eax
test eax, eax
jns 0x1400e962d
mov ecx, eax
call fcn.14007ac40
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.RPCRT4.dll_I_RpcBindingInqLocalClientPID]
lea rdx, [0x14045a648]
mov edi, eax
lea rcx, [0x14042cf48]
call fcn.1400f3318
test edi, edi
jne 0x1400e9707
lea rdx, [0x140453efc]
lea rcx, [0x140430af8]
call fcn.1400f4a64
xor ecx, ecx
call qword [sym.imp.RPCRT4.dll_RpcImpersonateClient]
lea rdx, [0x140458b2c]
mov edi, eax
lea rcx, [0x14042b474]
call fcn.1400f406c
test edi, edi
jne 0x1400e9707
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
lea rdx, [0x14045a9c4]
mov rdi, rax
lea rcx, [0x14042d178]
call fcn.1400f470c
test rdi, rdi
je 0x1400e96fd
mov rcx, rdi
lea rdx, [rsp + 0x60]
mov r8d, 0x104
mov rbx, rdi
call qword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
test eax, eax
jne 0x1400e96fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r15d, ax
lea rdx, [0x14045ba40]
or r15d, 0x80070000
lea rcx, [0x14044174c]
test eax, eax
cmovle r15d, eax
call fcn.1400f4dac
xor ecx, ecx
call qword [sym.imp.RPCRT4.dll_RpcRevertToSelfEx]
jmp 0x1400e9719
js 0x1400e9716
movzx r15d, di
or r15d, 0x80010000
jmp 0x1400e9719
mov r15d, edi
cmp dword [0x140451890], 5
jbe 0x1400e97d5
movabs rax, 0x400000000000
test qword [0x1404518a0], rax
je 0x1400e97d5
mov rdi, qword [0x1404518a8]
lea rdx, [0x140455f44]
lea rcx, [0x1404327f8]
and rdi, rax
call fcn.1400f3d14
cmp rdi, qword [0x1404518a8]
jne 0x1400e97d5
lea rdx, [0x140456764]
lea rcx, [0x1404379a0]
call fcn.1400f39c8
lea rdx, [0x14045aa08]
mov dword [rsp + 0x44], r14d
lea rcx, [0x14043fda8]
mov dword [rsp + 0x48], r15d
call fcn.1400f3670
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x50], rax
lea r9, [rsp + 0x58]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
lea rdx, [0x140446082]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.140001758
mov ecx, r14d
call fcn.14007ace8
lea rdx, [0x140459cd4]
lea rcx, [0x14042c5e8]
call fcn.1400f50f4
test rbx, rbx
je 0x1400e9811
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [0x140456e48]
lea rcx, [0x140429688]
call fcn.1400f3670
mov eax, r14d
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140388a40
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400f3138
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbx
sub rsp, 0x50
rdtsc
and qword [0x14045c860], 0
and qword [0x14045c850], 0
shl rdx, 0x20
or rax, rdx
btr eax, 0x1f
mov qword [0x14045c870], rax
call fcn.1400f29b8
mov qword [0x14045c848], rax
test rax, rax
je 0x1400f31a0
mov ebx, 1
mov qword [0x14045c858], rbx
mov qword [0x14045c868], rbx
call fcn.1400f1fe0
mov ecx, dword [0x14045d288]
test eax, eax
mov edx, eax
cmovns ecx, ebx
mov dword [0x14045d288], ecx
jmp 0x1400f31b5
and qword [0x14045c858], 0
mov edx, 0x8007000e
and qword [0x14045c868], 0
xor eax, eax
test edx, edx
cmovs eax, edx
test eax, eax
js 0x1400f320a
and dword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
and qword [rsp + 0x38], 0
lea rdx, [rsp + 0x20]
and dword [rsp + 0x40], 0
xor r9d, r9d
mov ecx, 0xb9
mov dword [rsp + 0x34], 0x64
mov qword [rsp + 0x20], 8
mov qword [rsp + 0x28], rax
lea r8d, [r9 + 0x10]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
nop dword [rax + rax]
xor eax, eax
add rsp, 0x50
pop rbx
ret
Function at 0x140106a80
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
mov rsi, rcx
mov dword [rcx + 8], edx
xor ecx, ecx
call fcn.14007ace8
lea rcx, [rsi + 0x20]
call fcn.140070748
xor ecx, ecx
call fcn.14007ace8
xor ebx, ebx
test byte [rsi + 8], 1
je 0x140106bd3
lea r9, [rbp + 0x38]
xor edx, edx
lea r8, [0x1403e4df0]
mov rcx, rsi
call fcn.140109760
mov ebx, eax
test eax, eax
jns 0x140106ae9
mov ecx, eax
call fcn.14007ac40
mov edi, dword [rbp + 0x30]
jmp 0x140106aed
movzx edi, byte [rbp + 0x38]
mov ecx, ebx
call fcn.14007ace8
lea eax, [rbx + 0x3ffb2cff]
cmp eax, 1
ja 0x140106b06
xor ebx, ebx
jmp 0x140106bd3
test ebx, ebx
js 0x140106bcc
test edi, edi
je 0x140106bd3
mov rcx, rsi
call fcn.140108250
mov ebx, eax
test eax, eax
jns 0x140106b2b
mov ecx, eax
jmp 0x140106bce
and qword [rbp + 0x20], 0
cmp dword [0x14045d4e0], 0
mov byte [rbp + 0x38], 0
jne 0x140106b44
mov ecx, 0xc004d101
jmp 0x140106b9a
mov rax, qword [0x14045d6c8]
lea rdx, [rbp - 0x40]
and qword [rbp - 0x20], 0
xor r9d, r9d
mov qword [rbp - 0x28], rax
mov ecx, 0xb9
lea rax, [0x14001321c]
mov qword [rbp - 0x40], 3
mov qword [rbp - 0x38], rax
lea rax, [rbp + 0x30]
mov qword [rbp - 0x30], rax
lea r8d, [r9 + 0x34]
lea rax, [rbp + 0x38]
mov dword [rbp - 0x18], 0xa0014
mov qword [rbp - 0x14], rax
call sub.ntdll.dll_NtQuerySystemInformation
mov ecx, dword [rbp + 0x30]
test ecx, ecx
jns 0x140106b9f
call fcn.14007ac40
call fcn.14016f308
mov ecx, eax
mov ebx, eax
call fcn.14007ace8
lea rcx, [rbp + 0x20]
call fcn.14006a9cc
test ebx, ebx
jns 0x140106bc1
mov ecx, ebx
call fcn.14007ac40
mov ecx, ebx
call fcn.14007ace8
test ebx, ebx
jns 0x140106bd3
mov ecx, ebx
call fcn.14007ac40
mov ecx, ebx
call fcn.14007ace8
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret