joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140127154
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140119b54
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1401271f5
cmp ebx, dword [rsp + 0x30]
je 0x1401271ee
test esi, esi
je 0x1401271ee
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1401271c9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1401271d6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1401271b3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1401271da
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1401271f7
mov eax, 1
jmp 0x1401271f7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14012a844
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14011e0f4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14011e0f4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14012a994
cmp rax, 0xffffffffffffffff
je 0x14012a994
xor edi, edi
test rbp, rbp
jle 0x14012a93f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14011ad90
mov rbx, rax
test rax, rax
jne 0x14012a8cc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14012a935
mov edx, 0x8000
mov ecx, r14d
call fcn.140117d38
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14011d01c
cmp eax, 0xffffffff
je 0x14012a915
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14012a8dc
mov edx, r15d
mov ecx, r14d
call fcn.140117d38
jmp 0x14012a935
cmp byte [rsi + 0x38], dil
je 0x14012a92c
cmp dword [rsi + 0x34], 5
jne 0x14012a92c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14012a935
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14011ae08
jmp 0x14012a9a8
jns 0x14012a9a8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14011e0f4
cmp rax, 0xffffffffffffffff
jne 0x14012a960
cmp byte [rsi + 0x30], dil
je 0x14012a9a8
mov edi, dword [rsi + 0x2c]
jmp 0x14012a9a8
mov ecx, r14d
call fcn.140124c00
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14012a9a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14012a9a8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14012a9a1
mov eax, dword [rsi + 0x2c]
jmp 0x14012a9a6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14011e0f4
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14000f100
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov rax, qword [0x14008b710]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rbx, rcx
mov qword [rbp - 0x61], rcx
lea rcx, [rbp - 0x19]
mov r8d, 0x40
call fcn.14005cc30
mov rax, qword [rbx + 0xf8]
lea rdx, [0x140072700]
mov rcx, qword [rbx + 0x100]
lea r8, [rbp - 0x29]
sub rdx, rcx
mov r9d, 2
add byte [rbx + rbp - 0x3f], cl
mov r10d, r9d
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x59], xmm0
movups xmm0, xmmword [0x1400726f0]
movups xmmword [rbp - 0x49], xmm1
movups xmmword [rbp - 0x39], xmm0
mov eax, dword [rdx + rcx]
xor eax, dword [rcx]
mov dword [r8 + rcx], eax
lea rcx, [rcx + 4]
sub r10, 1
jne 0x14000f121
mov rcx, qword [rbx + 0x108]
lea rdx, [0x140072708]
sub rdx, rcx
lea r8, [rbp - 0x21]
sub r8, rcx
mov eax, dword [rdx + rcx]
xor eax, dword [rcx]
mov dword [r8 + rcx], eax
lea rcx, [rcx + 4]
sub r9, 1
jne 0x14000f14c
mov eax, dword [rbp - 0x41]
lea rdi, [0x140072651]
mov ecx, dword [rbp - 0x45]
mov edx, dword [rbp - 0x55]
mov r11d, dword [rbp - 0x1d]
mov r12d, dword [rbp - 0x21]
mov r15d, dword [rbp - 0x25]
mov r14d, dword [rbp - 0x29]
mov r13d, dword [rbp - 0x2d]
mov ebx, dword [rbp - 0x31]
mov r9d, dword [rbp - 0x35]
mov r8d, dword [rbp - 0x39]
mov esi, dword [rbp - 0x3d]
mov r10d, dword [rbp - 0x59]
cmpsd dword [rsi], dword [rdi]
mov dword [rbp - 0x6d], eax
mov eax, dword [rbp - 0x49]
mov dword [rbp - 0x79], eax
mov eax, dword [rbp - 0x4d]
mov dword [rbp - 0x71], ecx
mov ecx, dword [rbp - 0x51]
mov dword [rsp + 0x20], eax
mov qword [rbp - 0x69], 0xa
mov dword [rbp - 0x7d], ecx
mov dword [rsp + 0x24], edx
Function at 0xb3aecc
Capabilities:
Encode data using xor

Disassembly:
jmp 0xb3aed6
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0xb3aeff
pop rbp
sub rbp, 0x33
sub rbp, 0x73aecc
sub rsp, 0x20
jmp 0xb3af1e
mov rax, 0x73aecc
add rax, rbp
add rax, 0x84
mov rcx, 0x647
mov rdx, 0x70ebdfc0
xor byte [rax], dl
inc rax
dec rcx
jne 0xb3af3d
jmp 0xb3af54
mov byte [rcx + 0x29], cl
cld
rol al, 0xc0
mov byte [rcx + 1], al
enter 0xffffffffffffc0c1, 0xffffffffffffffc0
mov cl, al
sub dword [rax - 0x3f3cfff9], ecx
rol al, 0x88
invalid
Function at 0x140003bf0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003c24
cmp word [rcx], 0x5a4d
jne 0x140003c24
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003c24
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003c24
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003b30
test eax, eax
jne 0x140003c40
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140003ba0
test rax, rax
je 0x140003c35
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.1400043e9
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x1400042f0
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140004290
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140004744
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x14053ec58]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x14053ec54]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140004792
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000478a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140004879
inc ebx
add rax, 0x28
jmp 0x14000476a
mov rcx, r12
call fcn.140004f71
mov rbp, rax
test rax, rax
jne 0x1400047b1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1400046e0
movsxd rbx, ebx
mov rax, qword [0x14053ec58]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.14000501f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14053ec58]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140004813
mov rax, qword [0x14053ec58]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400046e0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140004873
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140004873
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 [0x14053ec58]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140004873
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400046e0
inc dword [0x14053ec54]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140004ca0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x14053ecc0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14053eca0]

Function at 0x140004ea0
Capabilities:
Parse pe header

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

Function at 0x140004ec4
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140004efe
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140004ef5
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140004f00
inc r8d
add rax, 0x28
jmp 0x140004edc
xor eax, eax
ret

Function at 0x140004f71
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140536d30]
mov r8, rcx
mov rcx, r9
call fcn.140004ea0
test eax, eax
je 0x140004f9d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140004ec4
xor eax, eax
add rsp, 0x28
ret

Function at 0x14054353b
Capabilities:
Encode data using base64

Disassembly:
jle 0x14056ba82
ja 0x14065eac3
test dword [rsp + 0x21], r11d
call fcn.140602e4b
int3
ja 0x14061ba3e
int3
movzx r8d, byte [rsp + 0x1b]
shl qword [rsp + 0x10], 0x3d
add word [rsp + 0x18], r8w
lea rdx, [r8*4 + 0x580a50b4]
cmp dword [rsp + rdx - 0x580a5324], 0x56be8d88
mov r8, qword [rsp + r8 - 0x68]
setns byte [rsp + rdx - 0x580a5364]
ja 0x1405451e3
push qword [rsp + 0x28]
popfq
lea rsp, [rsp + 0x38]
ret
ja 0x1405f50fe
push rdx
push r15
pushfq
movabs r15, 0x39955f091d9c1b1c
shl r15d, 0x3f
shr r15b, 0x4f
test r15w, 0xb134
mov rdx, qword [rsp + r15 + 0x18]
setle r15b
movzx r15d, r15w
jns 0x140693a0d
in eax, 0x67
sub dword [rdi + 0x41e8c037], esi
test eax, 0x7aea740a
jge 0x14065eb87
invalid
clc
xchg ebx, ecx
xchg esp, eax
stosd dword [rdi], eax
invalid
sub r15d, 0xd5380694
neg r15d
Function at 0x1405b6431
Capabilities:
Encode data using xor

Disassembly:
xchg qword [rsp + r10*2 - 0x39e86], rax
mov rcx, qword [rsp + rcx - 0x4f99398f]
shr r10w, 0x52
mov r13, qword [rsp + rbx - 0x4f99c6a4]
je 0x1405ffd8d
pop rsi
xchg ebp, eax
add al, 0x20
pop rdx
sub al, byte [rax]
sbb eax, 0xb3793d85
mov bl, 0x6d
mov al, 0xc9
je 0x1405b649c
js 0x1405b64b0
cmp bl, byte [rcx + rbp*8 - 0x78]
cmp eax, 0xb27e9c1
push rdx
scasb al, byte [rdi]
or byte [0x16cdc1527], dl
xor al, 0xd2
out 0x1a, al
mov word [rdi + 0x77b55068], cs
cmc
invalid
invalid
sar dword [rbp - 0x52], cl
adc dword [rax], 0x72
and eax, 0x86558e1a
iretd
jne 0x1405e24a5
xor rbx, r10
xor r13d, 0xff989404
or byte [rsp + r10 - 0xffc0], 0x24
call fcn.140612e24
leave
in eax, dx
mov ch, 0x82
fidiv dword [rbx]
cmp ebx, dword [rax + 0x56]
mov eax, 0x7d5ff400
and ah, ah
push 0xffffffffc35dcbb8
sal dword [rsp + rax*8 + 0x103e9d7d], cl
invalid

Function at 0x1406509b4
Capabilities:
Encode data using xor

Disassembly:
push r9
pushfq
movabs r9, 0xce0af71bee08b6ad
or r9w, 0x2ab4
setbe r9b
xor r9w, 0x6f0e
or r9, r9
mov qword [rsp + 0x10], rdi
call fcn.140556dc5
xor ah, byte [rbx + 0x65]
pop rdi
or al, 0x4f
add ebp, dword [rcx]
sub cl, byte [rbp - 0x4b]
mov ebx, 0x3d1b652c
invalid
je 0x1405f5893
movsxd r9, r9d
shr r9, 0xaf
sub r9d, 0x251e7e13
call fcn.14054c2ba
sub byte [rcx + 0x11], dl
add ecx, edx
invalid
mov r10, qword [rsp + r10 + 0x30]
jo 0x1406a48db
push qword [rsp + 0x18]
popfq
lea rsp, [rsp + 0x38]
ret
push rbp
add qword [rsp + 0x20], 0x17e89
movabs rax, 0x220340043985d837
xor al, ah
add qword [rsp + 0x18], 0x1d126
and rax, 0xffffffff80b053a1
not al
jno 0x1406a3b13
pop rdx
xor al, 0xf8
test al, 0xd2
rcl byte [rbx + riz*8 - 0x52552c5c], 0xda
jae 0x140650a23
mov dh, 0x4a
cmp byte [rbp + 0x59], cl
jg 0x140650a0a
invalid
xchg byte [rcx - 0x5f4e924d], dh
jp 0x140650a2a
xor r12b, byte [r14]
add ebx, ebx
pop rax
xor dword [rdi + 0x5e3b60b2], esp
cli
push 0xfffffffffb28d86c
insb byte [rdi], dx
fsubr dword [rax]
sti
invalid
fld xword [rdx - 0x3c532137]
pop rcx
fisubr dword [rcx + 0x1456381]
invalid
mov rbp, rax
sub al, 0x90
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
sub ebp, 0xf3a46f03
sub rbp, 0xffffffff9e362d92
ja 0x1406bcaf2
lea rax, [rax - 0x75d9b8da]
mov rbp, qword [rsp + rbp - 0x6ea5b3c9]
lea rsp, [rsp + 0x18]
ret 8
shr bpl, 0x88
neg esi
mov rsi, qword [rsp + 8]
mov rsi, qword [rsi]
shr rbp, 0x8f
sub bpl, bpl
shr ebp, 0x6f
js 0x14061ba81
call fcn.1406c5fb8
and r14, 0xffffffff8f9bbdb2
mov r14, qword [rsp + 0x20]
mov r10w, 0x8db8
shr r10d, 0x31
setne r10b
or r10b, r10b
sub r10d, r10d
jbe 0x14063b354

Function at 0x140675331
Capabilities:
Encode data using xor

Disassembly:
add r13b, r13b
mov r13, qword [rsp + r13 - 0x6334]
js 0x14067146a
movabs rbp, 0x4f22803291b7f809
cmp word [rsp + 0x38], 0x37b8
not word [rsp + 0x38]
mov rbp, qword [rsp + 0x18]
call fcn.140619d21
Function at 0x140cb8e6a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
bts bx, r11w
jmp 0x140cb8e79
mov qword [rsp + 0x10], rdi
xor edi, edi
movzx ebx, r8b
jmp 0x140cb8e92
mov r11, rcx
movsxd r10, r9d
setge r9b
mov r8, rdi
nop
dec r10w
mov r10b, r8b
movzx r9d, byte [r11]
movzx r10d, byte [rdx]
inc r11
inc rdx
test bl, bl
jmp 0x140cb8ebc
je 0x140cb8ef1
mov ecx, r8d
movzx ax, spl
btr ax, 0x17
mov eax, 0x76a19e17
rol eax, cl
add al, r8b
jmp 0x140cb8ee3
xor r9b, al
jmp 0x140cb8eeb
inc r8
test rdx, r12
test r9b, r9b
je 0x140cb8f03
cmp r9b, r10b
je 0x140cb8ea7
cmp r9b, r10b
jae 0x140cb8f2b
or eax, 0xffffffff
not dil
xchg bx, bx
mov rbx, qword [rsp + 8]
movzx edi, r15w
movzx rdi, r12w
movsxd rdi, r11d
mov rdi, qword [rsp + 0x10]
ret
mov rbx, qword [rsp + 8]
seta dil
not ax
movzx ax, r9b
movzx rax, cx
mov eax, edi
mov rdi, qword [rsp + 0x10]
jmp 0x140cb8f4c
ret
Function at 0x28e381820
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 0x28e381890
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x28e392084]
mov rbx, rcx
test esi, esi
jle 0x28e3819c0
mov rax, qword [0x28e392088]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x28e3818db
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x28e381965
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x28e3818c0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x28e3819e2
mov rax, qword [0x28e392088]
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 [0x28e392088]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x28e3819c7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x28e38195e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x28e381970
add dword [0x28e392084], 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 [0x28e392088]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x28e38195e
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 0x28e3818e8
mov rax, qword [0x28e392088]
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 0x28e381d60
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x28e3920c0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x28e3920a0]
test rbx, rbx
je 0x28e381dbc
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 0x28e381db3
test rsi, rsi
je 0x28e381db3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x28e381d98
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 0x28e381fd0
Capabilities:
Parse pe header

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

Function at 0x28e382000
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 0x28e38204d
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 0x28e382044
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x28e38204f
add rax, 0x28
cmp rax, r9
jne 0x28e382030
xor eax, eax
ret

Function at 0x28e382050
Capabilities:
Parse pe header

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

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

Function at 0x28e382170
Capabilities:
Parse pe header

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

Disassembly:
mov r8, qword [0x28e38f230]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x28e3821d0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x28e3821d8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x28e3821d0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x28e382220
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x28e382217
test rcx, rcx
je 0x28e3821d0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x28e382208
xor eax, eax
ret

Function at 0x28e382230
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x28e38f230]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x28e382322
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x28e382330
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x28e382322
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x28e382322
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x28e382322
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 0x28e382385
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x28e382398
add rdx, 0x28
cmp rdx, r10
jne 0x28e382370
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x28e3823a7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x28e3823b7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x28e38238e
test ecx, ecx
jg 0x28e3823a0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret