joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000c910
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov r10, qword [rcx]
test r10, r10
je 0x14000c994
mov r11, qword [rcx + 8]
mov r8, qword [rcx + 0x10]
cmp r8, r11
jae 0x14000c994
movzx eax, byte [r10 + r8]
cmp eax, 0x49
mov rbx, rcx
je 0x14000c9ad
cmp eax, 0x42
jne 0x14000c994
lea rsi, [r8 + 1]
mov qword [rcx + 0x10], rsi
mov r9b, 1
cmp rsi, r11
jae 0x14000cadd
cmp byte [r10 + rsi], 0x5f
jne 0x14000ca6c
lea rax, [r8 + 2]
mov qword [rcx + 0x10], rax
xor eax, eax
cmp rax, r8
jae 0x14000cadd
mov edx, dword [rcx + 0x18]
inc edx
cmp edx, 0x1f4
jbe 0x14000cb37
mov dil, 1
xor r9d, r9d
jmp 0x14000cadf
xor edx, edx
call fcn.140007aa0
mov esi, eax
add sil, sil
mov eax, esi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
inc r8
mov qword [rcx + 0x10], r8
xor edx, edx
call fcn.140007aa0
test al, al
jne 0x14000cb1d
mov rdx, rbx
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14000c9ec
lea rdx, [0x1400391e3]
mov r8d, 1
call fcn.140002e60
mov rdx, rbx
test al, al
jne 0x14000cb1d
mov rax, qword [rdx]
mov sil, 1
test rax, rax
je 0x14000c9a0
xor r14d, r14d
lea rdi, [0x140039539]
nop word cs:[rax + rax]
mov rcx, qword [rdx + 0x10]
cmp rcx, qword [rdx + 8]
jae 0x14000ca24
cmp byte [rax + rcx], 0x45
je 0x14000cb70
sub r14, 1
jb 0x14000ca4c
mov rcx, qword [rdx + 0x20]
test rcx, rcx
je 0x14000ca4c
mov r8d, 2
mov rdx, rdi
call fcn.140002e60
mov rdx, rbx
test al, al
jne 0x14000cb1d
mov rcx, rdx
call fcn.140009370
test al, al
jne 0x14000cb1d
mov rdx, rbx
mov rax, qword [rbx]
test rax, rax
jne 0x14000ca10
jmp 0x14000c9a0
xor eax, eax
mov r14d, 0x3e
nop word cs:[rax + rax]
movzx edx, byte [r10 + rsi]
cmp dl, 0x5f
je 0x14000cacd
lea edi, [rdx - 0x30]
cmp dil, 0xa
jb 0x14000caaf
lea edi, [rdx - 0x61]
cmp dil, 0x1a
jae 0x14000caa1
add dl, 0xa9
jmp 0x14000caad
lea edi, [rdx - 0x41]
cmp dil, 0x1a
jae 0x14000cadd
add dl, 0xe3
mov edi, edx
inc rsi
mov qword [rcx + 0x10], rsi
mul r14
jo 0x14000cadd
movzx edx, dil
xor edi, edi
add rax, rdx
jb 0x14000cadf
cmp rsi, r11
jb 0x14000ca80
jmp 0x14000cadf
inc rsi
mov qword [rcx + 0x10], rsi
inc rax
jne 0x14000c96f
xor edi, edi
mov rax, qword [rcx + 0x20]
test rax, rax
je 0x14000cb25
mov ecx, r9d
xor cl, 1
movzx ecx, cl
lea r8, [rcx + rcx*8]
add r8, 0x10
lea rcx, str.invalid_syntaxrecursion_limit_reached_for_______::closureshim_as__mut_const___dyn___unsafe_extern__
lea rdx, [0x140039518]
test r9b, r9b
cmovne rdx, rcx
mov rcx, rax
call fcn.140002e60
mov rcx, rbx
test al, al
je 0x14000cb25
mov sil, 2
jmp 0x14000c9a0
mov qword [rcx], 0
mov byte [rcx + 8], dil
xor esi, esi
jmp 0x14000c9a0
cmp qword [rcx + 0x20], 0
je 0x14000cb30
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
movaps xmmword [rbp - 0x10], xmm1
movaps xmmword [rbp - 0x20], xmm0
mov qword [rcx + 0x10], rax
mov dword [rcx + 0x18], edx
mov rsi, rcx
call fcn.14000c910
movaps xmm0, xmmword [rbp - 0x20]
movaps xmm1, xmmword [rbp - 0x10]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14000c9a2
inc rcx
mov qword [rdx + 0x10], rcx
jmp 0x14000c9a0
Function at 0x14000ebb0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rsi, rcx
cmp qword [rcx], 0
je 0x14000ec45
mov rax, qword [0x140045038]
mov dword [rbp], 0
lea rbx, [rsi + 0x10]
mov r8, rbp
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
mov dword [rbp - 4], eax
cmp eax, 1
jne 0x14000ec84
cmp dword [rbp], 0
je 0x14000ec68
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x14000ec99
mov edi, eax
mov rax, qword [0x1400430b8]
nop word cs:[rax + rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1400430b8], rsi
jne 0x14000ec20
mov eax, edi
inc eax
mov dword [rsi + 0x18], eax
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x14000ec79
call sub.kernel32.dll_TlsAlloc
mov dword [rbp + 4], eax
cmp eax, 0xffffffff
je 0x14000ecdb
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x14000ec6d
mov edi, dword [rbp + 4]
jmp 0x14000ec79
mov edi, dword [rsi + 0x18]
jmp 0x14000ec77
mov edi, eax
mov ecx, dword [rbp + 4]
call sub.kernel32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov qword [rbp - 0x38], 0
lea rcx, [rbp - 4]
lea rdx, [rbp - 0x38]
call fcn.140010090
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
mov qword [rbp - 0x28], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rdx, str.library_std_src_syspalwindows_thread_local_key.rs
lea rcx, [rbp - 0x38]
call fcn.140002450
lea rax, str.out_of_TLS_indexes
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
mov qword [rbp - 0x28], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 4]
lea rdx, [rbp - 0x38]
call fcn.1400100e0
int3
Function at 0x140011510
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov ecx, dword [0x140035098]
test ecx, ecx
je 0x14001153d
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x140011556
add rax, 8
jmp 0x1400115f2
lea rcx, [0x140035080]
call fcn.14000ebb0
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x140011534
je 0x1400115f0
movzx eax, byte [0x1400430c0]
mov ecx, 0x10
call fcn.14002ed70
test rax, rax
je 0x14001161b
mov rbx, rax
mov rsi, rax
lea rax, [0x140035080]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140035098]
test ecx, ecx
je 0x1400115fb
dec ecx
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x140035098]
test ecx, ecx
je 0x14001160b
dec ecx
add rbx, 8
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x1400115eb
mov rax, qword [rdi + 8]
test rax, rax
je 0x1400115da
lock dec qword [rax]
jne 0x1400115da
mov rcx, rdi
add rcx, 8
call fcn.140010e00
mov rcx, qword [0x1400430b0]
xor edx, edx
mov r8, rdi
call fcn.140033054
mov rax, rbx
jmp 0x1400115f2
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x140035080]
call fcn.14000ebb0
mov ecx, eax
jmp 0x14001159a
lea rcx, [0x140035080]
call fcn.14000ebb0
mov ecx, eax
jmp 0x1400115ae
mov ecx, 8
mov edx, 0x10
call fcn.140001c90
int3

Function at 0x140011ae0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov ecx, dword [0x140035078]
test ecx, ecx
je 0x140011b0d
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x140011b26
add rax, 8
jmp 0x140011b9f
lea rcx, [0x140035060]
call fcn.14000ebb0
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x140011b04
je 0x140011b9d
movzx eax, byte [0x1400430c0]
mov ecx, 0x10
call fcn.14002ed70
test rax, rax
je 0x140011bc8
mov rbx, rax
mov rsi, rax
lea rax, [0x140035060]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x140035078]
test ecx, ecx
je 0x140011ba8
dec ecx
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x140035078]
test ecx, ecx
je 0x140011bb8
dec ecx
add rbx, 8
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x140011b98
mov rcx, qword [0x1400430b0]
xor edx, edx
mov r8, rdi
call fcn.140033054
mov rax, rbx
jmp 0x140011b9f
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x140035060]
call fcn.14000ebb0
mov ecx, eax
jmp 0x140011b62
lea rcx, [0x140035060]
call fcn.14000ebb0
mov ecx, eax
jmp 0x140011b76
mov ecx, 8
mov edx, 0x10
call fcn.140001c90
int3
Function at 0x140011fc0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov ecx, dword [0x140035058]
test ecx, ecx
je 0x140011fed
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x140012006
add rax, 8
jmp 0x140012087
lea rcx, [0x140035040]
call fcn.14000ebb0
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x140011fe4
je 0x140012085
movzx eax, byte [0x1400430c0]
mov ecx, 0x18
call fcn.14002ed70
test rax, rax
je 0x1400120b0
mov rbx, rax
mov rsi, rax
lea rax, [0x140035040]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov byte [rsi + 0x10], 0
mov ecx, dword [0x140035058]
test ecx, ecx
je 0x140012090
dec ecx
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x140035058]
test ecx, ecx
je 0x1400120a0
dec ecx
add rbx, 8
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x140012080
mov rcx, qword [0x1400430b0]
xor edx, edx
mov r8, rdi
call fcn.140033054
mov rax, rbx
jmp 0x140012087
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x140035040]
call fcn.14000ebb0
mov ecx, eax
jmp 0x14001204a
lea rcx, [0x140035040]
call fcn.14000ebb0
mov ecx, eax
jmp 0x14001205e
mov ecx, 8
mov edx, 0x18
call fcn.140001c90
int3
Function at 0x140033ac0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140034880
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140034880
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140033b30
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140043154]
mov rbx, rcx
test esi, esi
jle 0x140033c60
mov rax, qword [0x140043158]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140033b7b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140033c05
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140033b60
mov rcx, rbx
call fcn.1400345a0
mov rdi, rax
test rax, rax
je 0x140033c82
mov rax, qword [0x140043158]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400346e0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140043158]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140033c67
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140033bfe
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140033c10
add dword [0x140043154], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140043158]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140033bfe
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140033ac0
nop dword [rax]
xor esi, esi
jmp 0x140033b88
mov rax, qword [0x140043158]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140033ac0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140033ac0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140034210
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400431c0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400431a0]
test rbx, rbx
je 0x14003426c
mov rbp, qword [sym.imp.kernel32.dll_TlsGetValue]
mov rdi, qword [sym.imp.kernel32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140034263
test eax, eax
jne 0x140034263
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140034248
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400345a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14003c430]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400345c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400345c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400345c0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14003461d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140034614
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400345c0
add rax, 0x28
cmp rax, r9
jne 0x140034600
xor eax, eax
ret

Function at 0x140034620
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14003c430]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14003463f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140034648
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14003463f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400346e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14003c430]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400346ff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140034708
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14002924c
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.14001c844
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c844
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002939c
cmp rax, 0xffffffffffffffff
je 0x14002939c
xor edi, edi
test rbp, rbp
jle 0x140029347
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f158
mov rbx, rax
test rax, rax
jne 0x1400292d4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002933d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a178
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.14001d520
cmp eax, 0xffffffff
je 0x14002931d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400292e4
mov edx, r15d
mov ecx, r14d
call fcn.14001a178
jmp 0x14002933d
cmp byte [rsi + 0x38], dil
je 0x140029334
cmp dword [rsi + 0x34], 5
jne 0x140029334
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002933d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001af0c
jmp 0x1400293b0
jns 0x1400293b0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c844
cmp rax, 0xffffffffffffffff
jne 0x140029368
cmp byte [rsi + 0x30], dil
je 0x1400293b0
mov edi, dword [rsi + 0x2c]
jmp 0x1400293b0
mov ecx, r14d
call fcn.140018630
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400293b0
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 0x1400293b0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400293a9
mov eax, dword [rsi + 0x2c]
jmp 0x1400293ae
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c844
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 0x140002620
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000266a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000266a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000266a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000266a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000266a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000266c
xor al, al
add rsp, 0x28
ret
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
push rcx
push rsi
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
xor r9, r9
movzx rcx, word [rdx + 0x4a]
mov rsi, qword [rdx + 0x50]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
push rax
mov ecx, dword [rax + 0x18]
mov r8d, dword [rax + 0x20]
add r8, rdx
jrcxz 0x1400040ca
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x2106058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x21061df
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 0x2106089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x210606f
add dl, dl
jne 0x2106096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x21060f6
xor eax, eax
add dl, dl
jne 0x21060a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x21061ad
add dl, dl
jne 0x21060b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x21060c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x21060d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x21060dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x21060ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x210607e
mov eax, 1
add dl, dl
jne 0x2106106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x2106113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x21060fb
sub eax, ebx
mov ebx, 1
jne 0x210614c
mov ecx, 1
add dl, dl
jne 0x210612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x210613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x2106123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x210607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x2106168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x2106175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x210615d
cmp eax, 0x7d00
jae 0x210619b
cmp eax, 0x500
jb 0x2106196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x210607e
cmp eax, 0x7f
ja 0x210619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x210607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x21061d2
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 0x210607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001ea0
Capabilities:
Manipulate boot configuration

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, qword [rcx + 0x10]
movabs rbx, 0x7fffffffffffffff
mov rax, rbx
mov rsi, rcx
sub rax, r14
cmp rax, rdx
jb 0x140002001
mov qword [rsp + 0x60], rbp
mov rbp, qword [rcx + 0x18]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r15
lea r15, [rdx + r14]
mov rdx, r15
or rdx, 0xf
cmp rdx, rbx
ja 0x140001f30
mov rcx, rbp
mov rax, rbx
shr rcx, 1
sub rax, rcx
cmp rbp, rax
ja 0x140001f30
lea rax, [rcx + rbp]
mov rbx, rdx
cmp rdx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
test rcx, rcx
jne 0x140001f18
xor edi, edi
jmp 0x140001f61
cmp rcx, 0x1000
jb 0x140001f59
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140002007
jmp 0x140001f3e
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140002040
test rax, rax
je 0x140001fc8
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140001f61
call fcn.140002040
mov rdi, rax
mov r8, qword [rsp + 0x78]
lea rdx, str.bcdedit.exe__set_removememory
mov qword [rsi + 0x10], r15
mov rcx, rdi
mov qword [rsi + 0x18], rbx
lea r15, [rdi + r8]
cmp rbp, 0xf
jbe 0x140001fcf
mov rbx, qword [rsi]
call sub.VCRUNTIME140.dll_memcpy
lea r8, [r14 + 1]
mov rdx, rbx
mov rcx, r15
call sub.VCRUNTIME140.dll_memcpy
lea rdx, [rbp + 1]
cmp rdx, 0x1000
jb 0x140001fbe
mov rcx, qword [rbx - 8]
add rdx, 0x27
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x140001fc8
mov rbx, rcx
mov rcx, rbx
call fcn.14000207c
jmp 0x140001fe3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call sub.VCRUNTIME140.dll_memcpy
lea r8, [r14 + 1]
mov rdx, rsi
mov rcx, r15
call sub.VCRUNTIME140.dll_memcpy
mov qword [rsi], rdi
mov rax, rsi
mov rdi, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x60]
mov r15, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
call fcn.1400011a0
int3
call fcn.140001100
int3

Function at 0x140002998
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400029e2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400029e2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400029e2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400029e2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400029e2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400029e4
xor al, al
add rsp, 0x28
ret