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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
and qword [rax + 8], 0
mov rbp, rcx
mov rax, qword gs:[0x58]
mov r15, r9
mov ecx, 4
mov r12, r8
mov r14, rdx
mov r10, qword [rax]
mov eax, dword [rcx + r10]
cmp dword [0x140423318], eax
jg 0x1401aaae1
mov rsi, qword [rbp + 0x18]
xor edi, edi
cmp dword [0x140423530], 1
cmove rdi, qword [0x140422a08]
mov rax, qword [rsi]
mov rbx, qword [rax + 0x178]
mov rcx, rbx
call qword [0x1403a2250]
lea r8, [rsp + 0x90]
mov rdx, rdi
mov rcx, rsi
call rbx
mov ebx, eax
test eax, eax
js 0x1401aaa7a
mov rax, qword [rsp + 0x90]
lea r9, [0x140423320]
and qword [rsp + 0x30], 0
mov r8, r15
mov qword [rsp + 0x28], rax
mov rdx, r12
mov rcx, rbp
mov dword [rsp + 0x20], 2
call fcn.1401abe84
mov ebx, eax
test eax, eax
js 0x1401aaa7a
mov rax, qword [r14]
mov rbx, qword [rax + 0xa8]
mov rcx, rbx
call qword [0x1403a2250]
mov rdx, qword [rsp + 0x90]
xor r8d, r8d
mov rcx, r14
call rbx
mov ebx, eax
test eax, eax
jns 0x1401aaa81
mov ecx, eax
call fcn.140078308
mov ecx, ebx
call fcn.140078324
and qword [rsp + 0x50], 0
lea rax, [0x140033aa0]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x40], 3
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x58], rax
mov ecx, 0xb9
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
lea rcx, [0x140423318]
call fcn.14035aa48
cmp dword [0x140423318], 0xffffffff
jne 0x1401aa9dd
xor eax, eax
lea rcx, [0x140423318]
mov qword [0x140423330], rax
and dword [0x140423330], 0
or dword [0x140423334], 0xffffffff
mov qword [0x140423328], rax
lea rax, str.metaInfoType
and qword [0x140423328], 0
mov qword [0x140423320], rax
xor eax, eax
mov qword [0x140423348], rax
lea rax, str.windowsComponentLicenseFileName
and dword [0x140423348], 0
mov qword [0x140423338], rax
lea rax, str.path
mov qword [0x140423340], rax
mov dword [0x14042334c], 1
call fcn.14035a9e8
jmp 0x1401aa9dd
Function at 0x1401ad020
Capabilities:
Check if file exists
Copy file
Get file attributes
Move file
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
cmp dword [rcx + 0x20], 0
mov rdi, rcx
jne 0x1401ad03a
xor ebx, ebx
jmp 0x1401ad1a5
lea rdx, [rsp + 0x30]
call fcn.1401a7b3c
mov ebx, eax
test eax, eax
js 0x1401ad188
mov rdx, qword [rdi + 8]
lea rax, [rdx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401ad0bf
test rdx, rdx
je 0x1401ad0bf
cmp dword [rdi], 0
jne 0x1401ad08c
cmp dword [rdi + 0x20], 0
jne 0x1401ad08c
lea rax, [rdx + 1]
and rax, 0xfffffffffffffffe
neg rax
sbb rcx, rcx
and rcx, rdx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
xor ecx, ecx
test eax, eax
sete cl
mov dword [rdi], ecx
mov rcx, qword [rdi + 8]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401ad0a5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rdi + 8], 0xffffffffffffffff
cmp dword [rdi + 0x20], 0
jne 0x1401ad0bf
cmp dword [rdi], 0
je 0x1401ad0b6
mov rdx, qword [rdi + 0x10]
jmp 0x1401ad0ba
mov rdx, qword [rdi + 0x18]
call fcn.1401a7734
mov dword [rdi + 0x20], 1
mov rdx, qword [rdi + 0x18]
call fcn.1401a7734
mov rdx, qword [rdi + 0x18]
xor r8d, r8d
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1401ad10a
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1401ad0f5
mov ebx, 0x80004005
jmp 0x1401ad103
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
jmp 0x1401ad18a
mov rdx, qword [rdi + 0x10]
xor r8d, r8d
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1401ad0e4
mov rbx, qword [rdi + 0x10]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401ad140
bts eax, 0xd
mov rcx, rbx
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov r9, qword [rdi + 0x10]
mov edx, 0xc0000000
mov r8d, 4
mov rcx, rdi
call fcn.1401ae3f8
mov ebx, eax
test eax, eax
jns 0x1401ad164
mov ecx, eax
call fcn.140078308
mov ecx, ebx
call fcn.140078324
test ebx, ebx
js 0x1401ad103
mov edx, dword [rsp + 0x30]
xor r8d, r8d
and dword [rdi + 0x20], 0
mov rcx, rdi
call fcn.1401a7904
mov ebx, eax
test eax, eax
jns 0x1401ad1a5
mov ecx, eax
call fcn.140078308
test ebx, ebx
jns 0x1401ad1a5
xor r9d, r9d
mov r8d, ebx
mov rcx, rdi
lea edx, [r9 + 3]
call fcn.1401a77ac
mov ecx, ebx
call fcn.140078324
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1402e3e80
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov r14, qword [rbp + 0x77]
mov rdi, rdx
xor edx, edx
mov r12, r9
and dword [rbp + 0x67], edx
mov r15d, r8d
and dword [rbp - 0x39], edx
mov rsi, rcx
mov qword [rbp - 0x29], rdx
cmp dword [r14], r8d
jae 0x1402e3ec9
mov edi, 0x80049e19
jmp 0x1402e402d
mov rax, qword [rdi]
and qword [rbp - 0x21], rdx
and qword [rbp - 0x31], rdx
and qword [rbp - 0x19], rdx
mov rbx, qword [rax]
mov rcx, rbx
call qword [0x1403a2250]
lea r8, [rbp - 0x31]
mov rcx, rdi
lea rdx, [0x1403f2c08]
call rbx
test eax, eax
je 0x1402e3f02
mov edi, 0x80049e2f
jmp 0x1402e3f8a
mov rdi, qword [rbp - 0x31]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x30]
mov rcx, rbx
call qword [0x1403a2250]
lea rdx, [rbp - 0x21]
mov rcx, rdi
call rbx
mov edi, eax
test eax, eax
js 0x1402e3f8a
mov rdx, qword [rbp - 0x21]
lea r8, [rbp - 0x19]
mov rcx, rsi
call fcn.1402e35f4
mov edi, eax
test eax, eax
js 0x1402e3f8a
lea rax, [0x140019760]
mov qword [rbp - 0x11], 3
mov qword [rbp - 9], rax
lea rdx, [rbp - 0x11]
lea rax, [rbp + 0x77]
mov qword [rbp + 7], rsi
mov qword [rbp - 1], rax
xor r9d, r9d
mov rax, qword [rbp - 0x31]
mov ecx, 0xb9
mov qword [rbp + 0xf], rax
mov rax, qword [rbp - 0x19]
mov qword [rbp + 0x17], rax
lea r8d, [r9 + 0x38]
lea rax, [rbp - 0x29]
mov qword [rbp + 0x1f], rax
call sub.ntdll.dll_NtQuerySystemInformation
mov edi, dword [rbp + 0x77]
mov rsi, qword [rbp - 0x21]
test rsi, rsi
je 0x1402e3fad
mov rax, qword [rsi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [0x1403a2250]
mov rcx, rsi
call rbx
and qword [rbp - 0x21], 0
mov rsi, qword [rbp - 0x31]
test rsi, rsi
je 0x1402e3fd0
mov rax, qword [rsi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [0x1403a2250]
mov rcx, rsi
call rbx
and qword [rbp - 0x31], 0
test edi, edi
js 0x1402e4029
mov eax, dword [r14]
mov r8d, r15d
mov r9, qword [rbp + 0x7f]
mov rdx, r12
mov rcx, qword [rbp - 0x29]
mov dword [rbp + 0x67], eax
lea rax, [rbp + 0x67]
mov qword [rsp + 0x28], rax
call fcn.14015ecf8
mov edi, eax
test eax, eax
js 0x1402e4029
mov eax, dword [r14]
lea r9, [rbp - 0x39]
mov r8d, dword [rbp + 0x67]
sub eax, r8d
mov rdx, qword [rbp + 0x7f]
mov rcx, qword [rbp - 0x29]
mov dword [rbp - 0x39], eax
call fcn.14015f00c
mov edi, eax
test eax, eax
js 0x1402e4029
mov ecx, dword [rbp + 0x67]
add ecx, dword [rbp - 0x39]
mov dword [r14], ecx
mov rdx, qword [rbp - 0x29]
cmp dword [0x140422760], 0
je 0x1402e4040
test rdx, rdx
je 0x1402e4040
call fcn.140161ab0
lea r11, [rsp + 0x90]
mov eax, edi
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140357c24
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rsi, r8
mov ebp, edx
mov rdi, rcx
test r8, r8
je 0x140357dce
cmp edx, 0x14
jbe 0x140357dce
mov rbx, qword [rcx + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
and qword [rdi + 0x20], 0
mov rbx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
and qword [rdi + 0x10], 0
lea r15, [rdi + 0x30]
mov rcx, qword [r15]
and dword [rdi + 0x18], 0
test rcx, rcx
je 0x140357caa
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
and qword [r15], 0
mov ecx, dword [rsi + 0xc]
lea r14, [rdi + 0x2c]
shr ecx, 3
mov dword [rdi + 0x28], ecx
mov eax, dword [rsi + 0x10]
mov dword [r14], eax
mov eax, ecx
shr eax, 1
add eax, 4
lea eax, [rax + rax*4]
lea ecx, [rax + rcx*2]
cmp ebp, ecx
jne 0x140357dce
mov rbx, qword [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
and qword [rdi + 0x20], 0
mov ebx, dword [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rdi + 0x20], rax
test rax, rax
jne 0x140357d19
mov ebx, 0x8007000e
jmp 0x140357dd3
mov r8d, dword [rdi + 0x28]
lea rdx, [rsi + 0x14]
mov rcx, rax
call sub.msvcrt.dll_memcpy
test r14, r14
je 0x140357dce
mov edx, 4
mov rcx, r14
call fcn.140358bd8
mov ebx, eax
test eax, eax
jne 0x140357dd3
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x140357dce
mov edx, dword [rdi + 0x28]
call fcn.140358bd8
mov ebx, eax
test eax, eax
jne 0x140357dd3
lea r14, [rdi + 0x38]
cmp qword [r14], 0
jne 0x140357da2
lea r9d, [rax + 0x18]
mov dword [rsp + 0x20], 0xf0000000
lea r8, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
xor edx, edx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140357da2
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140357dd3
mov rcx, qword [r14]
xor r9d, r9d
mov qword [rsp + 0x28], r15
mov r8d, ebp
mov rdx, rsi
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x140357d8c
mov dword [rdi + 0xc], 4
jmp 0x140357dd3
mov ebx, 0x80070057
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140359108
Capabilities:
Encrypt or decrypt via wincrypt
Generate random numbers via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov dword [rax + 0x18], r8d
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor r15d, r15d
mov r12, r9
mov dword [rax + 0x10], r15d
mov ebp, r8d
mov rsi, rdx
mov rbx, rcx
mov edi, r15d
test rdx, rdx
je 0x140359323
test r9, r9
je 0x140359323
mov r14, qword [rsp + 0xa0]
test r14, r14
je 0x140359323
cmp qword [rcx + 0x30], r15
jne 0x14035916b
mov ebx, 0x80049e51
jmp 0x140359328
mov r13d, dword [r14]
lea rdx, str.http:__www.w3.org_2001_04_xmlencaes128_cbc
mov rcx, rsi
mov dword [r14], r15d
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140359197
cmp dword [rbx + 0xc], 1
lea esi, [rax + 0x10]
je 0x1403591d3
mov ebx, 0x80049e2e
jmp 0x140359328
lea rdx, str.http:__www.w3.org_2001_04_xmlencaes192_cbc
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x1403591b3
cmp dword [rbx + 0xc], 2
lea esi, [rax + 0x18]
jmp 0x14035918b
lea rdx, str.http:__www.w3.org_2001_04_xmlencaes256_cbc
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14035931c
cmp dword [rbx + 0xc], 3
lea esi, [rax + 0x20]
jmp 0x14035918b
mov rcx, qword [rbx + 0x30]
lea r15d, [rsi + rbp]
xor r9d, r9d
mov dword [rsp + 0x30], r15d
lea rax, [rsp + 0x88]
mov dword [rsp + 0x88], r15d
mov qword [rsp + 0x28], rax
xor edx, edx
and qword [rsp + 0x20], rdi
lea r8d, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x140359226
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140359328
mov ebp, dword [rsp + 0x88]
mov dword [r14], ebp
mov r14, qword [rsp + 0xa8]
test r14, r14
je 0x140359318
cmp r13d, ebp
jae 0x140359250
mov ebx, 0x80049e19
jmp 0x140359328
mov dword [rsp + 0x88], r15d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x14035927e
mov ebx, 0x8007000e
jmp 0x140359328
mov r8, rbp
xor edx, edx
mov rcx, rdi
call sub.msvcrt.dll_memset
mov r8d, dword [rsp + 0x90]
mov rdx, r12
mov ecx, esi
add rcx, rdi
call sub.msvcrt.dll_memcpy
mov r15d, 2
mov r8d, esi
mov r9d, r15d
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
je 0x1403592d4
mov r9d, r15d
mov r8d, esi
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov ebx, eax
bts ebx, 0x1c
jmp 0x140359328
mov rcx, qword [rbx + 0x30]
lea rax, [rsp + 0x88]
xor r9d, r9d
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], rdi
lea r8d, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x14035920d
mov r8d, dword [rsp + 0x88]
mov rdx, rdi
mov rcx, r14
call sub.msvcrt.dll_memcpy
xor ebx, ebx
jmp 0x140359328
mov ebx, 0x80049e5b
jmp 0x140359328
mov ebx, 0x80070057
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140359358
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor edi, edi
mov r12d, r8d
mov dword [rax + 0x10], edi
mov r15, r9
mov rbp, rdx
mov rsi, rcx
mov ebx, edi
test rdx, rdx
je 0x1403594c8
test r9, r9
je 0x1403594c8
mov r14, qword [rsp + 0x80]
test r14, r14
je 0x1403594c8
cmp qword [rcx + 0x30], rdi
jne 0x1403593ba
mov edi, 0x80049e51
jmp 0x1403594cd
mov r13d, dword [r14]
lea rdx, str.http:__www.w3.org_2001_04_xmlencaes128_cbc
mov rcx, rbp
mov dword [r14], edi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x1403593e3
cmp dword [rsi + 0xc], 1
je 0x140359419
mov edi, 0x80049e2e
jmp 0x1403594cd
lea rdx, str.http:__www.w3.org_2001_04_xmlencaes192_cbc
mov rcx, rbp
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x1403593fc
cmp dword [rsi + 0xc], 2
jmp 0x1403593d7
lea rdx, str.http:__www.w3.org_2001_04_xmlencaes256_cbc
mov rcx, rbp
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x1403594c1
cmp dword [rsi + 0xc], 3
jmp 0x1403593d7
mov dword [rsp + 0x68], r12d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r12
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x140359444
mov edi, 0x8007000e
jmp 0x1403594cd
mov r8d, dword [rsp + 0x68]
mov rdx, r15
mov rcx, rbx
call sub.msvcrt.dll_memcpy
mov rcx, qword [rsi + 0x30]
lea rax, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], rbx
lea r8d, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x140359490
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x1403594cd
mov eax, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x88]
add eax, 0xfffffff0
mov dword [r14], eax
test rcx, rcx
je 0x1403594cd
cmp r13d, eax
jae 0x1403594b3
mov edi, 0x80049e19
jmp 0x1403594cd
mov r8d, eax
lea rdx, [rbx + 0x10]
call sub.msvcrt.dll_memcpy
jmp 0x1403594cd
mov edi, 0x80049e5b
jmp 0x1403594cd
mov edi, 0x80070057
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14035abe0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14035ac2c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14035ac24
cmp dword [rcx + 0x3c], edx
jl 0x14035ac24
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14035ac24
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14035ac2c
mov rax, rdx
add rsp, 0x18
ret
Function at 0x14074e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14074e1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14074e089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14074e06f
add dl, dl
jne 0x14074e096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14074e0f6
xor eax, eax
add dl, dl
jne 0x14074e0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14074e1ad
add dl, dl
jne 0x14074e0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14074e0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14074e0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14074e0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14074e0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14074e07e
mov eax, 1
add dl, dl
jne 0x14074e106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14074e113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14074e0fb
sub eax, ebx
mov ebx, 1
jne 0x14074e14c
mov ecx, 1
add dl, dl
jne 0x14074e12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14074e13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14074e123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14074e07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14074e168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14074e175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14074e15d
cmp eax, 0x7d00
jae 0x14074e19b
cmp eax, 0x500
jb 0x14074e196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14074e07e
cmp eax, 0x7f
ja 0x14074e19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14074e07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14074e1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14074e07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400275f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r8, rcx
mov eax, 0xffffffff
test edx, edx
je 0x1400276b4
mov r9d, edx
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [r8]
lea r8, [r8 + 1]
xor eax, edx
mov edx, eax
and dl, 1
neg dl
sbb ecx, ecx
shr eax, 1
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb eax, eax
shr ecx, 1
and eax, 0xedb88320
xor eax, ecx
sub r9, 1
jne 0x140027610
not eax
ret
Function at 0x140037078
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140036e74
Function at 0x14003c800
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14003c887
mov rsi, rbx
cmp word [rax], bp
je 0x14003c846
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14003c830
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14003c82c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400378f8
mov rdi, rax
test rax, rax
je 0x14003c874
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14002d3d0
mov rbp, rdi
xor ecx, ecx
call fcn.140038698
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14003f2b0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14003f2c6
mov al, 1
jmp 0x14003f326
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14003f2d7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14003f324
mov ecx, dword [rcx + 0x18]
nop
call fcn.14003d0c0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003f324
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14003f324
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14003f324
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14003f326
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140001130
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov dword [rsp + 0x38], 0
mov rcx, qword [rcx]
xor r8d, r8d
xor edx, edx
call fcn.14000aa9c
mov r9, qword [rbx]
lea rcx, [rsp + 0x30]
mov edx, 1
lea r8d, [rdx + 1]
call fcn.14000a760
cmp byte [rsp + 0x30], 0x4d
jne 0x140001220
cmp byte [rsp + 0x31], 0x5a
jne 0x140001220
mov rcx, qword [rbx]
xor r8d, r8d
lea edx, [r8 + 0x3c]
call fcn.14000aa9c
mov r9, qword [rbx]
lea rcx, [rsp + 0x38]
mov edx, 4
lea r8d, [rdx - 3]
call fcn.14000a760
mov edx, dword [rsp + 0x38]
xor r8d, r8d
mov rcx, qword [rbx]
add edx, 0x18
call fcn.14000aa9c
mov r9, qword [rbx]
lea rcx, [rsp + 0x30]
mov edx, 2
lea r8d, [rdx - 1]
call fcn.14000a760
cmp byte [rsp + 0x30], 0xb
jne 0x140001220
movzx eax, byte [rsp + 0x31]
cmp al, 1
jne 0x1400011de
mov ecx, 0x98
jmp 0x1400011e7
cmp al, 2
jne 0x140001220
mov ecx, 0xa8
mov edx, dword [rsp + 0x38]
xor r8d, r8d
add edx, ecx
mov rcx, qword [rbx]
call fcn.14000aa9c
mov r9, qword [rbx]
lea rcx, [rsp + 0x38]
mov edx, 4
lea r8d, [rdx - 3]
call fcn.14000a760
mov eax, dword [rsp + 0x38]
or ecx, 0xffffffff
test eax, eax
cmove eax, ecx
add rsp, 0x20
pop rbx
ret
or eax, 0xffffffff
add rsp, 0x20
pop rbx
ret

Function at 0x140001230
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rbp, rdx
mov rdi, rcx
jne 0x140001277
add rcx, 0x78
lea rdx, [0x140022400]
call fcn.140002db0
mov qword [rdi], rax
test rax, rax
jne 0x140001277
lea rcx, str.Cannot_open_archive_file_n
call fcn.140001e50
xor eax, eax
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov ecx, dword [rbp + 4]
mov qword [rsp + 0x38], rsi
call sub.WS2_32.dll_ntohl
add eax, dword [rdi + 8]
xor r8d, r8d
mov rcx, qword [rdi]
mov edx, eax
call fcn.14000aa9c
mov ecx, dword [rbp + 8]
call sub.WS2_32.dll_ntohl
mov ecx, eax
call fcn.14000a390
mov rsi, rax
test rax, rax
jne 0x1400012c9
lea rcx, str.Could_not_allocate_read_buffer_n
call fcn.140001e50
mov rsi, qword [rsp + 0x38]
xor eax, eax
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov ecx, dword [rbp + 8]
call sub.WS2_32.dll_ntohl
mov r9, qword [rdi]
mov r8d, 1
mov edx, eax
mov rcx, rsi
call fcn.14000a760
cmp rax, 1
jae 0x140001310
lea rcx, str.Could_not_read_from_file_n
call fcn.140001e50
mov rcx, rsi
call fcn.14000a388
mov rsi, qword [rsp + 0x38]
xor eax, eax
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
cmp byte [rbp + 0x10], 1
jne 0x140001360
mov rdx, rbp
mov qword [rsp + 0x30], rbx
mov rcx, rsi
call fcn.140001040
mov rcx, rsi
mov rbx, rax
call fcn.14000a388
test rbx, rbx
mov rsi, rbx
mov rbx, qword [rsp + 0x30]
jne 0x140001360
lea rdx, [rbp + 0x12]
lea rcx, str.Error_decompressing__s_n
call fcn.140001e50
mov rsi, qword [rsp + 0x38]
xor eax, eax
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rdi]
test rcx, rcx
je 0x140001374
call fcn.14000a41c
mov qword [rdi], 0
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret