joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400af710
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x1400d20f0]
test ecx, ecx
je 0x1400af7f0
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400af744
mov rdi, rax
cmp qword [rax + 8], 0
je 0x1400af744
add rdi, 0x10
jmp 0x1400af7e6
mov ecx, dword [0x1400d20f0]
test ecx, ecx
je 0x1400af803
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400af7e4
mov rsi, rax
test rax, rax
jne 0x1400af7b3
movzx eax, byte [0x14016a150]
mov ecx, 0x18
mov edx, 8
call fcn.1400073b0
test rax, rax
je 0x1400af826
mov rsi, rax
lea rax, [0x1400d20d8]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400d20f0]
test ecx, ecx
je 0x1400af816
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
lea rdi, [rsi + 0x10]
mov rcx, qword [rsi + 0x10]
cmp qword [rsi + 8], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], 0
je 0x1400af7e6
test rcx, rcx
je 0x1400af7e6
lock dec qword [rcx]
jne 0x1400af7e6
call fcn.1400af840
jmp 0x1400af7e6
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1400d20d8]
call fcn.14008d0b0
mov ecx, eax
jmp 0x1400af726
lea rcx, [0x1400d20d8]
call fcn.14008d0b0
mov ecx, eax
jmp 0x1400af754
lea rcx, [0x1400d20d8]
call fcn.14008d0b0
mov ecx, eax
jmp 0x1400af7ab
mov ecx, 8
mov edx, 0x18
call fcn.1400078e0
int3
Function at 0x1400b6c60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rsi, rcx
movabs rbx, 0x8000000000000000
lea rcx, [rsp + 0x40]
call fcn.14008efa0
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
cmp rcx, rbx
jne 0x1400b6c9d
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
jmp 0x1400b6cca
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdx
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x58]
call fcn.1400b6b90
mov r14, qword [rsp + 0x28]
cmp r14, rbx
jne 0x1400b6ce3
lea rcx, [rsp + 0x30]
call fcn.14008c8d0
mov qword [rsi], rbx
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rdi, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
mov rcx, rdi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x1400b6d07
mov qword [rsi], r14
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r15
jmp 0x1400b6cd7
mov qword [rsi], rbx
test r14, r14
je 0x1400b6cd7
mov edx, 2
mov rcx, rdi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.140007440
Function at 0x1400b87e0
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rbx, r8
mov r14, rdx
mov rdi, rcx
movzx eax, byte [0x14016a150]
mov ecx, 0x10
mov edx, 8
call fcn.1400073b0
test rax, rax
je 0x1400b8898
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400b88f0]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call sub.kernel32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x1400b888b
mov rbx, qword [rsi]
mov r14, qword [rsi + 8]
mov rcx, rbx
call qword [r14]
cmp qword [r14 + 8], 0
je 0x1400b886a
mov rdx, qword [r14 + 0x10]
mov rcx, rbx
call fcn.140007440
mov edx, 8
mov rcx, rsi
call fcn.140007440
call sub.kernel32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ebx, 1
mov rax, rbx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 8
mov edx, 0x10
call fcn.1400078e0
ud2

Function at 0x1400b8b90
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x1098
call fcn.1400cf670
sub rsp, rax
movaps xmmword [rsp + 0x1080], xmm6
mov rsi, rdx
mov rdi, rcx
lea r14, [rsp + 0x80]
mov r8d, 0x1000
mov rcx, r14
xor edx, edx
call sub.msvcrt.dll_memset
xorps xmm6, xmm6
lea r15, [rsp + 0x3c]
lea rbx, [0x1400b08c0]
lea r13, [rsp + 0x60]
lea r12, [0x1400d68e8]
mov qword [rsp + 0x48], rdi

Function at 0x1400b9090
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
sub rsp, 0x80
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
mov edx, 0x10
call sub.advapi32.dll_SystemFunction036
test al, al
je 0x1400b90c6
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
add rsp, 0x80
pop rsi
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x40], rax
lea rax, [fcn.1400ac610]
mov qword [rsp + 0x48], rax
lea rax, str.fallback_RNG_broken:
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rsp + 0x50]
call fcn.14000a5d0
ud2
Function at 0x1400bac40
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
cmp qword [rdx], 0
jne 0x1400bad89
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx]
test rax, rax
jne 0x1400bac77
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x1400bad73
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x1400bad56
sub rax, rdx
add rdx, qword [rbx + 8]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x2c], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x2c]
mov r8d, eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x1400bacd8
mov ecx, dword [rsp + 0x2c]
mov eax, 2
test rcx, rcx
je 0x1400bad09
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov byte [rsi + 1], 1
jmp 0x1400bad0d
call sub.kernel32.dll_GetLastError
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rsp + 0x40], rcx
cmp eax, 0x3e5
je 0x1400bad11
cmp eax, 0x6d
jne 0x1400bad3c
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x38]
jmp 0x1400bad16
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x1400bad42
lea rax, [rsp + 0x30]
mov qword [rax], 0
lea rcx, [rsp + 0x40]
call fcn.14008c8d0
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test rax, rax
je 0x1400bad4c
cmp rax, 1
je 0x1400bacc1
mov qword [rsi + 8], rcx
mov al, 1
mov byte [rsi], al
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov eax, 1
jmp 0x1400baccb
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.140092620
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x1400bac84
mov r8d, 0x10
mov rcx, rbx
call fcn.140092620
mov rax, qword [rbx]
jmp 0x1400bac77
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1400bada0
int3
Function at 0x1400bf920
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x30
mov ecx, dword [0x1400d2110]
test ecx, ecx
je 0x1400bfa19
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400bf950
cmp qword [rax + 8], 0
je 0x1400bf950
add rax, 0x10
jmp 0x1400bfa13
mov ecx, dword [0x1400d2110]
test ecx, ecx
je 0x1400bfa2c
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400bf9f3
mov rsi, rax
test rax, rax
jne 0x1400bf9c3
movzx eax, byte [0x14016a150]
mov ecx, 0x20
mov edx, 8
call fcn.1400073b0
test rax, rax
je 0x1400bfa52
mov rsi, rax
lea rax, [0x1400d20f8]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400d2110]
test ecx, ecx
je 0x1400bfa3f
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x1400bf9f7
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x1400bf9ff
xor eax, eax
jmp 0x1400bfa13
call fcn.1400b9090
mov rcx, rax
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rdx
add rsp, 0x30
pop rsi
ret
lea rcx, [0x1400d20f8]
call fcn.14008d0b0
mov ecx, eax
jmp 0x1400bf935
lea rcx, [0x1400d20f8]
call fcn.14008d0b0
mov ecx, eax
jmp 0x1400bf960
lea rcx, [0x1400d20f8]
call fcn.14008d0b0
mov ecx, eax
jmp 0x1400bf9bb
mov ecx, 8
mov edx, 0x20
call fcn.1400078e0
int3

Function at 0x1400bfacd
Capabilities:
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rdx
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x1400bfaee
dec ecx
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp sub.kernel32.dll_TlsSetValue
mov rcx, rax
call fcn.14008d0b0
mov ecx, eax
jmp 0x1400bfae1

Function at 0x1400c1744
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x1400c175d
dec ecx
add rsp, 0x28
jmp sub.kernel32.dll_TlsGetValue
mov rcx, rax
call fcn.14008d0b0
mov ecx, eax
jmp 0x1400c1754

Function at 0x1400c59b2
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x1400c59b9
test al, 1
je 0x1400c59d8
test al, 2
jne 0x1400c59f0
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x140133368]
mov edx, 0x23
call fcn.14000b310
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x1401333a8]
mov edx, 0x25
call fcn.14000b310
int3

Function at 0x1400c628c
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
call fcn.1400c4dfa
mov rcx, qword [rax]
movzx eax, bl
lea r9, [rsp + 0x2c]
mov dword [r9], eax
mov dword [rsp + 0x20], 4
mov edx, 6
mov r8d, 1
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1400c62c7
xor eax, eax
jmp 0x1400c62d4
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbx
ret
Function at 0x1400c6528
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rbp, r9
mov rbx, r8
mov r14, rdx
mov qword [rsp + 0x28], rcx
mov rax, qword [rsp + 0xc0]
lea rdi, [rsp + 0x3a]
lea r15, [rdx + 0x18]
xor ecx, ecx
cmp qword [rdx + 0x18], 0xffffffffffffffff
cmove r15, rcx
mov r12d, 0x7fffffff
cmp rax, r12
cmovb r12, rax
lea r13, [rsp + 0x52]
lea rsi, [rsp + 0x30]
mov qword [rsp + 0x40], r15
mov rdx, qword [r14 + 0x10]
mov rcx, rsi
mov r8, rbx
call fcn.1400c6284
mov al, byte [rsp + 0x39]
cmp al, 3
je 0x1400c6697
mov rcx, qword [rsp + 0x30]
cmp al, 2
je 0x1400c66a5
mov dl, byte [rsp + 0x38]
movzx r8d, word [rdi + 4]
mov word [r13 + 4], r8w
mov r8d, dword [rdi]
mov dword [r13], r8d
mov qword [rsp + 0x48], rcx
mov byte [rsp + 0x50], dl
mov byte [rsp + 0x51], al
mov rcx, r15
lea rdx, str.._registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.36.0_srciopoll_evented.rs
call fcn.1400c4e18
mov rcx, qword [r15]
mov rdx, rbp
mov r8d, r12d
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
jne 0x1400c66b7
call sub.ws2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rcx, rsi
call fcn.14001c529
cmp al, 0xd
jne 0x1400c6667
mov rax, qword [r15 + 8]
test rax, rax
je 0x1400c6667
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
lock inc qword [rdx]
jle 0x1400c66e9
mov r15, r14
mov r14, rbx
add rcx, 0x10
mov r8, qword [rax + 0x10]
mov r9b, byte [rax + 0x18]
call fcn.14003980f
mov rbx, rax
xor ecx, ecx
call fcn.140037cb8
test rbx, rbx
je 0x1400c665c
mov ecx, 1
mov rdx, rsi
call fcn.140039934
mov rsi, rbx
mov rbx, r14
mov r14, r15
mov r15, qword [rsp + 0x40]
mov rcx, rsi
call fcn.1400c0b28
cmp al, 0xd
jne 0x1400c66c8
mov qword [rsp + 0x30], rsi
mov rcx, r14
lea rdx, [rsp + 0x48]
call fcn.1400c6021
lea rsi, [rsp + 0x30]
mov rcx, rsi
call fcn.1400c0da1
jmp 0x1400c657e
mov rax, qword [rsp + 0x28]
mov qword [rax], 2
jmp 0x1400c66d8
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rcx
jmp 0x1400c66d8
cdqe
mov rcx, qword [rsp + 0x28]
and qword [rcx], 0
mov qword [rcx + 8], rax
jmp 0x1400c66d8
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rsi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
Function at 0x1400d0520
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.1400d12e0
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.1400d12e0
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 0x1400d0590
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14016a1d4]
mov rbx, rcx
test esi, esi
jle 0x1400d06c0
mov rax, qword [0x14016a1d8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400d05db
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400d0665
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400d05c0
mov rcx, rbx
call fcn.1400d1000
mov rdi, rax
test rax, rax
je 0x1400d06e2
mov rax, qword [0x14016a1d8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400d1140
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14016a1d8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400d06c7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400d065e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400d0670
add dword [0x14016a1d4], 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 [0x14016a1d8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400d065e
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400d0520
nop dword [rax]
xor esi, esi
jmp 0x1400d05e8
mov rax, qword [0x14016a1d8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400d0520
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400d0520
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400d0c70
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14016a240]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14016a220]
test rbx, rbx
je 0x1400d0ccc
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 0x1400d0cc3
test eax, eax
jne 0x1400d0cc3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400d0ca8
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 0x1400d1000
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140159320]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400d1020
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400d1028
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400d1020
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400d107d
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 0x1400d1074
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400d1020
add rax, 0x28
cmp rax, r9
jne 0x1400d1060
xor eax, eax
ret

Function at 0x1400d1080
Capabilities:
Parse pe header

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

Function at 0x1400d1140
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140159320]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400d115f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400d1168
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140001b18
Capabilities:
Parse pe header

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

Function at 0x140001b68
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001bb2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001bb2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001bb2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001bb2
cmp dword [rcx + 0x84], 0xe
jbe 0x140001bb2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001bb4
xor al, al
add rsp, 0x28
ret
Function at 0x140ec4108
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140ec428f
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140ec4139
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ec411f
add dl, dl
jne 0x140ec4146
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ec41a6
xor eax, eax
add dl, dl
jne 0x140ec4155
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ec425d
add dl, dl
jne 0x140ec4166
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ec4173
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ec4180
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ec418d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140ec419a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140ec412e
mov eax, 1
add dl, dl
jne 0x140ec41b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ec41c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ec41ab
sub eax, ebx
mov ebx, 1
jne 0x140ec41fc
mov ecx, 1
add dl, dl
jne 0x140ec41de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ec41eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ec41d3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ec412e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140ec4218
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ec4225
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ec420d
cmp eax, 0x7d00
jae 0x140ec424b
cmp eax, 0x500
jb 0x140ec4246
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ec412e
cmp eax, 0x7f
ja 0x140ec424e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ec412e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140ec4282
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 0x140ec412e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001030
Capabilities:
Create device object

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
lea rdx, [0x140005290]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov r9d, 0x22
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x30]
or eax, 4
mov rcx, qword [rsp + 0x48]
mov dword [rcx + 0x30], eax
lea rdx, [0x1400052c0]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov dword [rsp + 0x40], eax
xor eax, eax
add rsp, 0x78
ret

Function at 0x1400010c4
Capabilities:
Create device object

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
lea rdx, [0x1400052f0]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov r9d, 0x22
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x30]
or eax, 4
mov rcx, qword [rsp + 0x48]
mov dword [rcx + 0x30], eax
lea rdx, [0x140005330]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov dword [rsp + 0x40], eax
xor eax, eax
add rsp, 0x78
ret

Function at 0x140001158
Capabilities:
Create device object

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
lea rdx, [0x140005360]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov r9d, 0x22
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x30]
or eax, 4
mov rcx, qword [rsp + 0x48]
mov dword [rcx + 0x30], eax
lea rdx, [0x1400053a0]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov dword [rsp + 0x40], eax
xor eax, eax
add rsp, 0x78
ret