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

Disassembly:
mov qword [rsp + 8], rax
movzx edx, byte [rax]
test edx, edx
jne 0x45723b
test r8b, r8b
jne 0x45723b
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
ret
bt edx, 7
nop
jae 0x45724f
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x4572ed
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
sub rcx, r8
mov rdx, rcx
neg rdx
sar rdx, 0x3f
and rdx, r8
movzx esi, byte [rax + rdx]
sub rbx, r8
add rdx, rax
bt esi, 7
jae 0x45728e
xor eax, eax
xor esi, esi
xor r8d, r8d
jmp 0x4572bc
mov eax, 1
add qword [rdi], rsi
sub rcx, rax
sub rbx, rax
mov rsi, rcx
neg rsi
sar rsi, 0x3f
and rax, rsi
add rax, rdx
mov edi, 1
ret
lea r8d, [rcx + 7]
mov rcx, rax
mov eax, r10d
movzx r9d, byte [rax + rdx]
lea r10d, [rax + 1]
mov r11d, r9d
and r9d, 0x7f
mov rax, rcx
mov ecx, r8d
shl r9d, cl
or esi, r9d
test r11b, 0x80
jne 0x4572b2
mov rcx, rax
mov eax, r10d
jmp 0x457293
lea r9d, [rcx + 7]
mov rcx, r12
movzx r10d, byte [rdx + rax]
inc edx
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
or r8d, r10d
test r11b, 0x80
jne 0x4572e6
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x457255

Function at 0x458720
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4587cf
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [0x00447fe0]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.00459a80
xorps xmm15, xmm15
mov r14, qword [0x005823f8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.00459ba0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp fcn.00458720
Function at 0x45b9a0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x403a43
push rbp
mov rbp, rsp
sub rsp, 0x18
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
call fcn.00407dc0
add rsp, 0x18
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00459ba0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x403a20
cmp byte [0x005821ed], 0
je 0x45b9b5
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x458be0
jmp 0x403a20

Function at 0x45b9c0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rcx, qword [0x005824a8]
mov eax, dword [rax]
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005824a0]
mul rcx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x005821ed], 0
je 0x45b9f5
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x005827e0]
aesenc xmm0, xmmword [0x005827f0]
aesenc xmm0, xmmword [0x00582800]
movq rax, xmm0
ret
jmp 0x407fa0

Function at 0x45ba00
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rcx, qword [0x005824a8]
mov rax, qword [rax]
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005824a0]
mul rcx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x005821ed], 0
je 0x45ba36
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x005827e0]
aesenc xmm0, xmmword [0x005827f0]
aesenc xmm0, xmmword [0x00582800]
movq rax, xmm0
ret
jmp 0x407fe0

Function at 0x45d680
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x45d6b4
mov rcx, 0x28
jmp 0x45d6bf
shl rcx, 3
add rcx, 0x1480
mov qword [0x005823f8], rcx
pop rbp
ret
Function at 0x473580
Capabilities:
Hash data using fnv

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x473c90
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
movabs rcx, 0xcbf29ce484222325
jmp 0x4735aa
lea rax, [rdx + 0x10]
dec rbx
test rbx, rbx
jle 0x47382e
mov rdx, rax
mov rsi, qword [rax]
nop dword [rax]
test rsi, rsi
je 0x47385a
mov edi, dword [rsi + 0x10]
shr edi, 1
mov r8, qword [rax + 8]
and edi, 0x3f
lea rax, [0x004ce660]
jmp qword [rax + rdi*8]
mov rax, rcx
add rsp, 0x10
pop rbp
ret
lea rax, [0x00491640]
lea rbx, [0x004cd3c0]
call fcn.004553c0
inc rax
cmp rax, r8
jge 0x47387e
mov r9, qword [rsi + rax*8]
xor r10d, r10d
jmp 0x4738b0
movabs rsi, 0x100000001b3
lea rdi, [0x004916c0]
jmp 0x4735a3
movzx r11d, r9b
xor rcx, r11
inc r10
shr r9, 8
movabs r11, 0x100000001b3
imul rcx, r11
cmp r10, 8
jl 0x473894
jmp 0x47386d
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
nop
call fcn.00459ba0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp fcn.00473580

Function at 0x473e20
Capabilities:
Hash data using fnv

Disassembly:
test byte [rax], al
mov rcx, rbx
and ebx, 0x7f
shl rbx, 5
lea rdx, [rax + rbx]
xor eax, eax
jmp 0x473e37
inc rax
cmp rax, 4
jge 0x473e4f
lea rbx, [rdx + rax*8]
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x473e34
mov eax, 1
ret
xor eax, eax
movabs rbx, 0xcbf29ce484222325
jmp 0x473e60
inc rax
cmp rax, 4
jge 0x473e6e
mov rsi, qword [rdx + rax*8]
xor edi, edi
jmp 0x473e97
and ebx, 3
lea rdx, [rdx + rbx*8]
xchg qword [rdx], rcx
xor eax, eax
ret
movzx r8d, sil
xor rbx, r8
inc rdi
shr rsi, 8
movabs r8, 0x100000001b3
imul rbx, r8
cmp rdi, 8
jl 0x473e7b
jmp 0x473e5d

Function at 0x4776a0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x47776a
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call fcn.00402fa0
xorps xmm15, xmm15
mov r14, qword [0x005823f8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x47774f
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x00491740]
xor ebx, ebx
mov rcx, rdx
call fcn.00456460
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call fcn.00477c60
inc rbx
cmp rcx, rbx
jae 0x47773e
mov edi, 1
lea rsi, [0x00491740]
call fcn.00456540
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x004cd500]
lea rsi, [0x004ccd90]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00459ba0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.004776a0
Function at 0x140706540
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14070654d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14070655d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140706545
lea eax, [rcx + 1]
jmp 0x14070656b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14070657e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140706564
sub eax, 3
jb 0x14070659e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1407065ed
sar eax, 1
movsxd rbp, eax
jb 0x1407065d4
jmp 0x1407065ac
add ebx, ebx
jne 0x1407065aa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1407065d4
inc ecx
add ebx, ebx
jne 0x1407065ba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1407065d4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1407065cd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1407065bc
add ecx, 2
jmp 0x1407065d9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140706502
jmp 0x14070654d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x26000
mov dl, 0xb
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140706639
cmp rsi, rcx
jae 0x140706641
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140706620
cmp al, 0x8f
ja 0x140706620
cmp byte [rsi - 2], 0xf
je 0x140706626
sub al, 0xe8
cmp al, 1
ja 0x14070660a
cmp rsi, rcx
jae 0x140706641
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140706610
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140706641
lodsb al, byte [rsi]
jmp 0x140706620
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x704000]
mov eax, dword [rdi]
or eax, eax
je 0x14070669e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x74c210]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14070664e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140706698
mov qword [rbx], rax
add rbx, 8
jmp 0x14070666e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1407066e2
cmp al, 0xef
ja 0x1407066ca
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1407066aa
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1407066b9
mov eax, dword [rdi]
add rdi, 4
jmp 0x1407066b9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x22f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140706736
sub rsp, 0xffffffffffffff80
jmp 0x140025fb8
Function at 0x2d98a5b08
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
cmp qword [rbp + 0x10], 0
jne 0x2d98a5b22
mov eax, 0
jmp 0x2d98a5b8c
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2d98a5b3e
mov eax, 0
jmp 0x2d98a5b8c
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2d98a5b67
mov eax, 0
jmp 0x2d98a5b8c
mov rax, qword [rbp - 0x10]
movzx eax, word [rax + 0x16]
mov word [rbp - 0x12], ax
movzx eax, word [rbp - 0x12]
and eax, 0x2000
test eax, eax
jne 0x2d98a5b87
mov eax, 0
jmp 0x2d98a5b8c
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2d98a5db6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
mov rbp, rsp
add rsp, 0xffffffffffffff80
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov eax, r8d
mov word [rbp + 0x20], ax
mov rax, qword [rbp + 0x10]
mov rcx, rax
call fcn.2d98a5b08
test eax, eax
jne 0x2d98a5de6
mov eax, 0
jmp 0x2d98a5f8f
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
add rax, 0x88
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 4]
test eax, eax
je 0x2d98a5e26
mov rax, qword [rbp - 0x28]
mov eax, dword [rax]
test eax, eax
jne 0x2d98a5e30
mov eax, 0
jmp 0x2d98a5f8f
mov rax, qword [rbp - 0x28]
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 4]
mov dword [rbp - 0x34], eax
mov rax, qword [rbp - 0x30]
mov eax, dword [rax + 0x1c]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x40], rax
mov rax, qword [rbp - 0x30]
mov eax, dword [rax + 0x20]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x48], rax
mov rax, qword [rbp - 0x30]
mov eax, dword [rax + 0x24]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x50], rax
mov qword [rbp - 8], 0
cmp dword [rbp + 0x18], 0
je 0x2d98a5f1c
mov dword [rbp - 0xc], 0
jmp 0x2d98a5f0e
mov eax, dword [rbp - 0xc]
lea rdx, [rax*4]
mov rax, qword [rbp - 0x48]
add rax, rdx
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x58], rax
mov rax, qword [rbp - 0x58]
mov rcx, rax
call fcn.2d98a2bec
cmp dword [rbp + 0x18], eax
jne 0x2d98a5f0a
mov eax, dword [rbp - 0xc]
lea rdx, [rax + rax]
mov rax, qword [rbp - 0x50]
add rax, rdx
movzx eax, word [rax]
movzx eax, ax
lea rdx, [rax*4]
mov rax, qword [rbp - 0x40]
add rax, rdx
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 8], rax
jmp 0x2d98a5f49
add dword [rbp - 0xc], 1
mov rax, qword [rbp - 0x30]
mov eax, dword [rax + 0x18]
cmp dword [rbp - 0xc], eax
jb 0x2d98a5ea4
jmp 0x2d98a5f49
movzx edx, word [rbp + 0x20]
mov rax, qword [rbp - 0x30]
mov eax, dword [rax + 0x10]
sub edx, eax
mov eax, edx
lea rdx, [rax*4]
mov rax, qword [rbp - 0x40]
add rax, rdx
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2d98a5f57
mov eax, 0
jmp 0x2d98a5f8f
mov rdx, qword [rbp - 8]
mov rax, qword [rbp - 0x30]
cmp rdx, rax
jb 0x2d98a5f8b
mov edx, dword [rbp - 0x34]
mov rax, qword [rbp - 0x30]
add rax, rdx
mov rdx, qword [rbp - 8]
cmp rdx, rax
jae 0x2d98a5f8b
mov rdx, qword [rbp - 8]
mov rax, qword [rbp + 0x10]
mov rcx, rax
call fcn.2d98a5c3d
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
sub rsp, 0xffffffffffffff80
pop rbp
ret
Function at 0x2d98a7180
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rbx, rcx
lea rax, [rbp + 0x28]
mov ecx, 2
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
mov qword [rbp - 8], rax
call fcn.2d98a7df0
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 [rbp - 8]
mov ecx, 2
call fcn.2d98a7df0
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 0x2d98a71f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
movsxd rsi, dword [0x2d98af2e4]
mov rbx, rcx
test esi, esi
jle 0x2d98a7320
mov rax, qword [0x2d98af2e8]
xor r9d, r9d
add rax, 0x18
nop dword [rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x2d98a723b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x2d98a72c3
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x2d98a7220
mov rcx, rbx
call fcn.2d98a7a90
mov rdi, rax
test rax, rax
je 0x2d98a7342
mov rax, qword [0x2d98af2e8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.2d98a7bd0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x2d98af2e8]
lea rdx, [rbp - 0x30]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x2d98a7327
mov eax, dword [rbp - 0xc]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x2d98a72bc
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x2d98a72d0
add dword [0x2d98af2e4], 1
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 2
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x2d98af2e8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x2d98a72bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.2d98a7180
nop word [rax + rax]
xor esi, esi
jmp 0x2d98a7248
mov rax, qword [0x2d98af2e8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.2d98a7180
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.2d98a7180
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x2d98a76c0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
lea r13, [0x2d98af320]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x2d98af300]
test rbx, rbx
je 0x2d98a7725
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, dword [rbx]
call r12
mov rsi, rax
call rdi
test rsi, rsi
je 0x2d98a771c
test eax, eax
jne 0x2d98a771c
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x2d98a7700
mov rcx, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

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

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

Function at 0x2d98a7b10
Capabilities:
Parse pe header

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

Function at 0x2d98a7bd0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2d98aa4b0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x2d98a7bef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x2d98a7bf8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140006100
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov eax, 0x5a4d
xor edi, edi
mov rbx, r8
mov rsi, rcx
cmp word [rdx], ax
je 0x140006141
mov qword [rcx], rdi
mov qword [rcx + 8], rdi
mov rdx, qword [r8 + 0x18]
cmp rdx, 0xf
jbe 0x1400061fe
mov rcx, qword [r8]
jmp 0x1400061d5
movsxd rcx, dword [rdx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140006159
mov qword [rsi], rdi
mov qword [rsi + 8], rdi
jmp 0x14000612b
movzx r14d, word [rcx + 0x14]
movzx r9d, di
movzx r11d, word [rcx + 6]
add r14, rcx
cmp di, r11w
jae 0x1400061c1
mov rbp, qword [r8 + 0x18]
mov r8, rbx
cmp rbp, 0xf
jbe 0x140006180
mov r8, qword [rbx]
movzx eax, r9w
lea rcx, [rax + rax*4]
lea r10, [rcx*8]
lea rax, [r14 + 0x18]
add rax, r10
sub r8, rax
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1400061b3
inc rax
test ecx, ecx
jne 0x1400061a0
test edx, edx
je 0x140006223
inc r9w
cmp r9w, r11w
jb 0x140006174
mov qword [rsi], rdi
mov qword [rsi + 8], rdi
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x1400061fe
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x1400061f9
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140006236
mov rcx, r8
call fcn.140010be0
mov rbp, qword [rsp + 0x58]
mov rax, rsi
mov byte [rbx], dil
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], rdi
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
mov eax, dword [r10 + r14 + 0x20]
mov qword [rsi], rax
mov eax, dword [r10 + r14 + 0x24]
mov qword [rsi + 8], rax
jmp 0x1400061c8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14000a280
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x14000a2a1
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000a2ce
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000a2d0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14000a329
test ecx, ecx
jle 0x14000a309
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14000a329
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000a329
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte ds:[rax], 0
add byte [rax], al
add byte [rax], al
sbb byte [rcx], al
add byte [rax], al
xor al, byte [rax]
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
hlt
Function at 0x14000a350
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14000a372
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x14000a381
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000a3a4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000a3a6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000a3e2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000a47e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000a41d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000a45e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000a47e
cmp rbx, rax
ja 0x14000a430
test rbx, rbx
je 0x14000a47e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
add byte [rax], al
add byte [rax], al
jg 0x140037b63
add byte [rax], al
add byte [rax], al
add ah, bl
invalid