joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004c68
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov dword [rax + 0x20], r9d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r14, r8
mov r13, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
nop dword [rax + rax]
lea rcx, [rsi + 0x58]
mov dword [rsp + 0x78], eax
mov edi, eax
call qword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
nop dword [rax + rax]
mov r9, qword [rsi + 0xc0]
xor r15d, r15d
test r9, r9
je 0x140004dc1
xor eax, eax
xor ebx, ebx
cmp rax, r9
jae 0x140004ced
mul qword [rsi + 0xb8]
test rdx, rdx
jne 0x140004ceb
mov rcx, qword [rsi + 0xd8]
lea rbx, [rcx + rax]
cmp rbx, rcx
jae 0x140004ced
xor ebx, ebx
cmp dword [rbx], edi
jne 0x140004dab
cmp qword [rbx + 0x20], 0
jne 0x140004da8
or rdx, 0xffffffffffffffff
inc rdx
cmp byte [rdx + r13], 0
jne 0x140004d04
test r14, r14
je 0x140004d27
or rax, 0xffffffffffffffff
inc rax
cmp byte [r14 + rax], 0
jne 0x140004d17
movzx r8d, ax
jmp 0x140004d2d
mov r8d, 0x10
mov rax, qword gs:[0x60]
lea rbp, [r8 + 2]
mov rcx, qword [rax + 0x30]
movzx eax, dx
mov edx, 8
add rbp, rax
mov r8, rbp
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140004dc1
mov r9, r13
mov rdx, rbp
mov rcx, rax
test r14, r14
je 0x140004d7c
mov qword [rsp + 0x20], r14
lea r8, str._s_s
jmp 0x140004d88
and dword [rsp + 0x20], 0
lea r8, str._s_d
call fcn.140003880
test eax, eax
js 0x140004dc1
lea rcx, [rbx + 0x18]
mov rdx, rdi
call qword [sym.imp.ntdll.dll_RtlInitAnsiString]
nop dword [rax + rax]
mov edi, dword [rsp + 0x78]
inc dword [rbx + 0x28]
mov r9, qword [rsi + 0xc0]
inc r15d
mov eax, r15d
cmp rax, r9
jb 0x140004cc8
lea rcx, [rsi + 0x58]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
jmp qword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
Function at 0x140004df4
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
test rcx, rcx
je 0x140004fc7
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rsi, r8
mov dword [rax - 0x68], 2
mov r14, rdx
mov rbp, rcx
xor ebx, ebx
lea rcx, [rax - 0x60]
xor edx, edx
mov r15, r9
lea r8d, [rbx + 0x40]
call sub.msvcrt.dll_memset
mov rax, qword gs:[0x60]
lea edx, [rbx + 8]
mov r8d, 0x100
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140004fab
mov r9, r14
mov dword [rsp + 0x20], esi
lea r8, str.ERROR_s_d
mov edx, 0x100
mov rcx, rax
call fcn.140003880
test eax, eax
js 0x140004f6a
mov rax, qword gs:[0x60]
lea edx, [rbx + 8]
mov esi, 0x400
mov r8d, esi
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140004f6a
mov r9, qword [rsp + 0xc0]
mov r8, r15
mov edx, esi
mov rcx, rax
call fcn.1400037fc
test eax, eax
js 0x140004f6a
mov rdx, rdi
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_RtlInitAnsiString]
nop dword [rax + rax]
mov rdx, rbx
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlInitAnsiString]
nop dword [rax + rax]
mov edx, 0x5b
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_strchr]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x140004f4f
mov edx, 0x5d
mov rcx, rax
call qword [sym.imp.msvcrt.dll_strchr]
nop dword [rax + rax]
test rax, rax
je 0x140004f4f
lea rdx, [rsi + 1]
mov byte [rax], 0
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlInitAnsiString]
nop dword [rax + rax]
mov r8, rbx
mov rdx, rdi
mov rcx, rbp
call fcn.140004c68
lea rdx, [rsp + 0x30]
mov rcx, rbp
call fcn.1400049ec
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
test rbx, rbx
je 0x140004fab
mov rcx, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14000538c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1401453f8]
xor rax, rsp
mov qword [rsp + 0x50], rax
and dword [rcx], 0
lea r9, [r11 - 0x30]
and dword [rsp + 0x30], 0
mov rdi, rcx
lea rcx, [r11 - 0x38]
mov r10, r8
mov rax, rdx
mov qword [r11 - 0x40], rcx
mov rcx, rax
mov dword [rsp + 0x20], 0x14
mov r8d, 2
mov rdx, r10
call qword [sym.imp.ntdll.dll_ZwQueryValueKey]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x140005415
cmp eax, 0xc0000034
je 0x140005450
lea r9, str.Failed_to_query_key_value___x_
mov dword [rsp + 0x20], eax
mov r8d, 0x3a1
lea rdx, str.AslRegistryGetUInt32_UStr
mov ecx, 1
call fcn.1400071f4
jmp 0x140005450
cmp dword [rsp + 0x3c], 4
jne 0x14000542d
cmp dword [rsp + 0x40], 4
jne 0x14000542d
mov eax, dword [rsp + 0x44]
xor ebx, ebx
mov dword [rdi], eax
jmp 0x140005450
lea r9, str.Invalid_value_type
mov r8d, 0x3a8
lea rdx, str.AslRegistryGetUInt32_UStr
mov ecx, 1
call fcn.1400071f4
mov ebx, 0xc0000024
mov eax, ebx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140020b70
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
Function at 0x1400054f8
Capabilities:
Check for peb beingdebugged flag
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor ebp, ebp
mov rsi, rdx
mov qword [rcx], rbp
mov r14, rcx
xorps xmm0, xmm0
mov dword [rax + 8], ebp
lea rcx, [rax - 0x28]
mov rdx, r8
movups xmmword [rax - 0x28], xmm0
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
lea rax, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8d, [rbp + 2]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x20], ebp
mov rcx, rsi
call qword [sym.imp.ntdll.dll_ZwQueryValueKey]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0x80000005
je 0x14000559c
cmp eax, 0xc0000023
je 0x14000559c
cmp eax, 0xc0000034
je 0x1400056c5
lea r9, str.Failed_to_query_key_value___x_
mov dword [rsp + 0x20], eax
mov r8d, 0x494
lea rdx, str.AslRegistryGetString
lea ecx, [rbp + 1]
call fcn.1400071f4
jmp 0x1400056c5
mov ecx, dword [rsp + 0x60]
mov edx, 8
add ecx, 2
mov dword [rsp + 0x60], ecx
mov rax, qword gs:[0x60]
mov r8d, ecx
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x1400055f6
lea r9, str.Out_of_memory
mov r8d, 0x4a2
lea rdx, str.AslRegistryGetString
mov ebx, 0xc0000017
lea ecx, [rax + 1]
call fcn.1400071f4
jmp 0x1400056c5
lea rax, [rsp + 0x60]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
mov eax, dword [rsp + 0x60]
mov r8d, 2
mov rcx, rsi
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntdll.dll_ZwQueryValueKey]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x14000563a
lea r9, str.Failed_to_query_key_value___x_
mov r8d, 0x4ae
jmp 0x140005692
mov eax, dword [rdi + 4]
dec eax
cmp eax, 1
jbe 0x140005669
lea r9, str.Invalid_value_type
mov r8d, 0x4b6
lea rdx, str.AslRegistryGetString
mov ecx, 1
call fcn.1400071f4
mov ebx, 0xc0000024
jmp 0x1400056a7
mov eax, dword [rdi + 8]
lea rdx, [rdi + 0xc]
shr rax, 1
mov rcx, r14
mov word [rdx + rax*2], bp
call fcn.14000825c
mov ebx, eax
test eax, eax
jns 0x1400056a7
lea r9, str.Out_of_memory___x_
mov r8d, 0x4c0
lea rdx, str.AslRegistryGetString
mov dword [rsp + 0x20], eax
mov ecx, 1
call fcn.1400071f4
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
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 0x140005950
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
mov rsi, rdx
mov rbx, rcx
xorps xmm0, xmm0
lea rdx, str.RegistryMachine
lea rcx, [rax - 0x18]
movups xmmword [rax - 0x18], xmm0
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
xor edi, edi
mov word [rbx], di
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140005991
mov ebp, 1
add ax, bp
add ax, ax
add ax, word [rsp + 0x30]
movzx r8d, ax
lea edx, [rbp + 7]
mov word [rbx + 2], r8w
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [rbx + 8], rax
test rax, rax
jne 0x140005a02
movzx eax, word [rbx + 2]
lea r9, str.Failed_to_allocate__d_bytes_for_user_key_buffer
mov r8d, 0x58c
mov dword [rsp + 0x20], eax
lea rdx, str.AslRegistryBuildMachinePath
mov ecx, ebp
mov edi, 0xc0000017
call fcn.1400071f4
jmp 0x140005a49
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
nop dword [rax + rax]
test rsi, rsi
je 0x140005a37
cmp word [rsi], 0x5c
je 0x140005a37
lea rdx, [0x14002299c]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
nop dword [rax + rax]
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x50]
mov eax, edi
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140005e48
Capabilities:
Parse pe header

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, 0x20
xor r11d, r11d
lea r8, [0x140000000]
mov r9, rdx
test rdx, rdx
jne 0x140005e79
mov r9, r8
not r9
mov rdx, r9
mov rcx, r8
call fcn.140005b78
test eax, eax
je 0x14000607d
mov edx, 0x40
call fcn.140005b78
test eax, eax
je 0x14000607d
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14000607d
movsxd rax, dword [0x14000003c]
cmp rax, r9
jae 0x14000607d
lea rcx, [rax + r8]
mov edx, 0x108
call fcn.140005b78
test eax, eax
je 0x14000607d
cmp dword [rcx], 0x4550
jne 0x14000607d
movzx eax, word [rcx + 0x14]
cmp rax, r9
jae 0x14000607d
add rcx, 0x18
mov edx, 0x10b
cmp word [rcx], dx
jne 0x140005f22
cmp rax, 0x60
jb 0x14000607d
mov edx, 0xe0
call fcn.140005b78
test eax, eax
je 0x14000607d
mov eax, dword [rcx + 0x5c]
add rcx, 0x70
jmp 0x140005f53
mov edx, 0x20b
cmp word [rcx], dx
jne 0x14000607d
cmp rax, 0x70
jb 0x14000607d
mov edx, pe_nt_image_headers64
call fcn.140005b78
test eax, eax
je 0x14000607d
mov eax, dword [rcx + 0x6c]
sub rcx, 0xffffffffffffff80
cmp eax, 2
jbe 0x14000607d
mov eax, dword [rcx]
mov edx, dword [rcx + 4]
test rax, rax
je 0x14000607d
test rdx, rdx
je 0x14000607d
lea rdi, [rax + r8]
test rdi, rdi
je 0x14000607d
mov rcx, rdi
call fcn.140005b78
test eax, eax
je 0x14000607d
mov ebp, 0x10
cmp rdx, rbp
jb 0x14000607d
movzx ebx, word [rdi + 0xe]
test rbx, rbx
je 0x14000607d
movzx ecx, word [rdi + 0xc]
lea r14d, [rbp - 8]
add rcx, 2
mov rsi, r11
lea rcx, [rdi + rcx*8]
test rbx, rbx
je 0x140005fe3
mov rdx, r14
call fcn.140005b78
test eax, eax
je 0x14000607d
cmp word [rcx], bp
je 0x140005fe3
add rcx, r14
inc rsi
cmp rsi, rbx
jb 0x140005fc3
cmp rsi, rbx
je 0x14000607d
mov ebx, dword [rcx + 4]
test ebx, ebx
jns 0x140006065
mov esi, 0x7fffffff
mov rdx, rbp
and rbx, rsi
add rbx, rdi
mov rcx, rbx
call fcn.140005b78
test eax, eax
je 0x14000607d
cmp word [rbx + 0xe], r11w
jne 0x14000601b
cmp word [rbx + 0xc], r11w
je 0x14000607d
lea rcx, [rbx + 0x10]
mov rdx, r14
call fcn.140005b78
test eax, eax
je 0x14000607d
mov ebx, dword [rcx + 4]
test ebx, ebx
jns 0x140006065
and rbx, rsi
mov rdx, rbp
add rbx, rdi
mov rcx, rbx
call fcn.140005b78
test eax, eax
je 0x14000607d
cmp word [rbx + 0xe], r11w
jne 0x140006055
cmp word [rbx + 0xc], r11w
je 0x14000607d
lea rcx, [rbx + 0x10]
mov rdx, r14
call fcn.140005b78
test eax, eax
je 0x14000607d
mov ecx, dword [rcx + 4]
mov rdx, rbp
add rcx, rdi
call fcn.140005b78
test eax, eax
je 0x14000607d
mov r11d, dword [rcx]
add r11, r8
mov rbx, qword [rsp + 0x30]
mov rax, r11
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140008644
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [0x1402c9cb8]
test rbx, rbx
jne 0x1400086bc
xor edx, edx
lea rcx, [0x140113328]
mov r8d, 0x800
mov ebx, 0x7ffe0030
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x1400086b5
lea rdx, str.RtlGetNtSystemRoot
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
test rax, rax
je 0x1400086a6
call qword [0x1400227d0]
mov rbx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
mov qword [0x1402c9cb8], rbx
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000a38c
Capabilities:
Get system information on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1401453f8]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor eax, eax
mov rdi, rdx
mov qword [r11 - 0x38], rax
mov rsi, rcx
mov qword [r11 - 0x28], rax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x48], eax
test rcx, rcx
je 0x14000a414
xor r9d, r9d
lea r8d, [rax + 0xc]
lea rdx, [r11 - 0x38]
lea ecx, [rax + 1]
call qword [sym.imp.ntdll.dll_RtlGetNativeSystemInformation]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x14000a40c
lea r9, str.RtlGetNativeSystemInformation_failed___x_
mov r8d, 0x700
lea rdx, str.AslEnvGetProcessWowInfo
mov dword [rsp + 0x20], eax
mov ecx, 1
call fcn.1400071f4
jmp 0x14000a454
movzx eax, word [rsp + 0x30]
mov word [rsi], ax
test rdi, rdi
je 0x14000a452
xor r9d, r9d
lea rdx, [rsp + 0x40]
lea r8d, [r9 + 0xc]
lea ecx, [r9 + 1]
call qword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x14000a44a
lea r9, str.ZwQuerySystemInformation_failed___x_
mov r8d, 0x722
jmp 0x14000a3f5
movzx eax, word [rsp + 0x40]
mov word [rdi], ax
xor ebx, ebx
mov eax, ebx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140020b70
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14000b2c0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1401453f8]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor eax, eax
xor ebx, ebx
mov qword [rsp + 0x20], rax
mov rsi, rcx
mov dword [rsp + 0x28], eax
test rcx, rcx
jne 0x14000b312
lea ebx, [rcx + 0x57]
lea r8d, [rbx + 0x64]
lea r9, str.Invalid_paramater
lea ecx, [rsi + 1]
lea rdx, str.AsaUtilsIsSystem64Bit
call fcn.1400071f4
jmp 0x14000b37a
cmp byte [0x1402c95a0], bl
jne 0x14000b324
mov al, byte [0x1402ca0d8]
mov byte [rcx], al
jmp 0x14000b37a
xor r9d, r9d
lea rdx, [rsp + 0x20]
lea edi, [r9 + 1]
mov ecx, edi
lea r8d, [r9 + 0xc]
call qword [sym.imp.ntdll.dll_RtlGetNativeSystemInformation]
nop dword [rax + rax]
test eax, eax
jns 0x14000b35c
mov ebx, 0x54f
lea r9, str.Failed_to_get_native_system_information
mov r8d, 0xd5
mov ecx, edi
jmp 0x14000b304
movzx ecx, byte [0x1402ca0d8]
cmp word [rsp + 0x20], 9
mov byte [0x1402c95a0], bl
cmove ecx, edi
mov byte [0x1402ca0d8], cl
mov byte [rsi], cl
mov eax, ebx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140020b70
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14000b3a0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
test rcx, rcx
jne 0x14000b3da
lea ebx, [rcx + 0x57]
mov r8d, 0x10a
lea r9, str.Invalid_parameter
lea rdx, str.AsaUtilsGetSystem32Directory
mov ecx, 1
call fcn.1400071f4
jmp 0x14000b491
mov word [rcx], di
cmp di, word [0x1402c9ed0]
jne 0x14000b460
mov edx, 0x104
lea rcx, [0x1402c9ed0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x14000b43b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea r9, str.Couldnt_get_system32_directory:_0x_x
mov r8d, 0x11a
lea rdx, str.AsaUtilsGetSystem32Directory
mov dword [rsp + 0x20], eax
mov ecx, 1
mov ebx, eax
call fcn.1400071f4
mov word [0x1402c9ed0], di
jmp 0x14000b491
cmp eax, 0x104
jb 0x14000b460
mov word [0x1402c9ed0], di
lea r9, str.Lenth_of_system32_path_is_too_long
mov ebx, 0x7a
mov r8d, 0x123
jmp 0x14000b3c4
lea r8, [0x1402c9ed0]
mov edx, 0x104
mov rcx, rbx
call fcn.140003324
test eax, eax
jns 0x14000b48f
mov ebx, 0x6f
lea r9, str.Couldnt_copy_system32_path
mov r8d, 0x12f
jmp 0x14000b3c4
mov ebx, edi
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14000b4a8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
test rcx, rcx
jne 0x14000b4e7
lea ebx, [rcx + 0x57]
mov r8d, 0x15d
lea r9, str.Invalid_parameter
lea rdx, str.AsaUtilsGetSysWow64Directory
mov ecx, 1
call fcn.1400071f4
jmp 0x14000b5b2
mov word [rcx], di
lea rbp, [0x1402c9cc0]
cmp di, word [0x1402c9cc0]
jne 0x14000b585
mov edx, 0x104
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x14000b54f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea r9, str.Couldnt_get_syswow64_directory:_0x_x
mov r8d, 0x16d
lea rdx, str.AsaUtilsGetSysWow64Directory
mov dword [rsp + 0x20], eax
mov ecx, 1
mov ebx, eax
call fcn.1400071f4
mov word [0x1402c9cc0], di
jmp 0x14000b5b2
cmp eax, 0x104
jb 0x14000b585
mov ebx, 0x7a
mov word [0x1402c9cc0], di
lea r9, str.Lenth_of_syswow64_path___ws__is_too_long
mov qword [rsp + 0x20], rbp
mov r8d, 0x176
lea rdx, str.AsaUtilsGetSysWow64Directory
lea ecx, [rbx - 0x79]
call fcn.1400071f4
jmp 0x14000b5b2
mov r8, rbp
mov edx, 0x104
mov rcx, rbx
call fcn.140003324
test eax, eax
jns 0x14000b5b0
mov ebx, 0x6f
lea r9, str.Couldnt_copy_syswow64_path
mov r8d, 0x182
jmp 0x14000b4d1
mov ebx, edi
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14001d074
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rdi, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop dword [rax + rax]
test rax, rax
jne 0x14001d0a8
lea ecx, [rax + 0x19]
int 0x29
test byte [rsp + 0x44], 0x44
je 0x14001d107
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
nop dword [rax + rax]
mov r9d, dword [rsp + 0x54]
xor edx, edx
mov r8d, r9d
neg r8
and r8, rbx
lea ecx, [r9 - 1]
mov eax, ecx
and ecx, ebx
and eax, edi
add eax, ecx
dec rax
add rax, r9
div r9
xor edx, edx
mov rcx, rax
mov rax, rdi
div r9
add rcx, rax
mov eax, ecx
test ecx, ecx
je 0x14001d107
lock or dword [r8], 0
add r8, r9
sub rax, 1
jne 0x14001d0f9
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret

Function at 0x14001d120
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movsxd r8, dword [0x14000003c]
lea rdi, [0x140000000]
add r8, rdi
mov rsi, rdx
mov ebp, ecx
cmp dword [r8 + 0x84], 0xd
jbe 0x14001d20e
mov r9d, dword [r8 + 0xf0]
test r9d, r9d
je 0x14001d20e
movzx eax, word [r8 + 0x14]
lea rcx, [r8 + 0x18]
mov r10d, dword [r9 + rdi + 0xc]
add rcx, rax
movzx r11d, word [r8 + 6]
xor r9d, r9d
test r11d, r11d
je 0x14001d1a7
mov r8d, dword [rcx + 0xc]
cmp r10d, r8d
jb 0x14001d19b
mov edx, dword [rcx + 8]
lea eax, [rdx + r8]
cmp r10d, eax
jb 0x14001d1e0
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x14001d186
mov eax, dword [rsp + 0x40]
xor ebx, ebx
mov edx, dword [rsp + 0x40]
test rbx, rbx
je 0x14001d20e
cmp dword [0x1402ca2a8], 0
jne 0x14001d1e9
mov dword [0x1402ca2a8], 1
test eax, eax
js 0x14001d1d4
mov ecx, 0x19
int 0x29
mov rcx, rbx
mov edi, edx
call fcn.14001d074
jmp 0x14001d1eb
mov eax, dword [rcx + 0x24]
lea rbx, [rdi + r8]
jmp 0x14001d1b1
mov edi, edx
mov r9, rsi
mov r8d, ebp
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop dword [rax + rax]
test eax, eax
jne 0x14001d214
lea ecx, [rax + 0x19]
int 0x29
jmp 0x14001d214
mov dword [rsi], 4
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14001e750
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x1401453f8]
xor rax, rsp
mov qword [rbp + 0x140], rax
and qword [rdx], 0
mov r12, rdx
mov r8, rcx
mov edx, 0x104
lea rcx, [rsp + 0x30]
xor r15d, r15d
xor r14d, r14d
call fcn.140003324
lea r8, [0x1401196d8]
lea rcx, [rsp + 0x30]
call fcn.14001cb34
mov edi, 0x1f0003
lea r8, [rsp + 0x30]
mov ecx, edi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x14001e801
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x14001e8f3
mov rcx, qword [rbp + 0x178]
mov edx, 0xc9
call fcn.14001e65c
mov esi, eax
jmp 0x14001e8d9
and dword [rsp + 0x24], r14d
lea rdx, [rsp + 0x24]
and dword [rsp + 0x20], r14d
mov rcx, rbx
call fcn.14001e954
mov esi, eax
test eax, eax
jns 0x14001e83f
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov edx, 0xcf
call fcn.14001e620
mov rcx, rbx
call fcn.14001e6f0
jmp 0x14001e8d9
lea r8, [0x1401196e0]
lea rcx, [rsp + 0x30]
call fcn.14001cb34
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14001e882
mov rcx, qword [rbp + 0x178]
mov edx, 0xd5
call fcn.14001e65c
mov esi, eax
jmp 0x14001e832
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14001e954
mov esi, eax
test eax, eax
jns 0x14001e8b6
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov edx, 0xd7
call fcn.14001e620
mov rcx, rdi
call fcn.14001e6f0
jmp 0x14001e832
mov rcx, rdi
call fcn.14001e6f0
movsxd rax, dword [rsp + 0x24]
mov rcx, rbx
movsxd r14, dword [rsp + 0x20]
shl r14, 0x1f
or r14, rax
call fcn.14001e6f0
xor esi, esi
test esi, esi
jns 0x14001e8f3
mov rcx, qword [rbp + 0x178]
mov r9d, esi
mov edx, 0x62
call fcn.14001e620
jmp 0x14001e8f8
mov r15, r14
xor esi, esi
test esi, esi
jns 0x14001e914
mov rcx, qword [rbp + 0x178]
mov r9d, esi
mov edx, 0x6b
call fcn.14001e620
mov eax, esi
jmp 0x14001e921
mov rax, r15
shl rax, 2
mov qword [r12], rax
xor eax, eax
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140020b70
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret