joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140072c60
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rax, r8
mov rdi, rcx
mov word [rsp + 0x64], 0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movabs rcx, 0x700000000
mov qword [rsp + 0x54], rcx
mov qword [rsp + 0x5c], 0
mov byte [rsp + 0x60], 1
lea r8, [rsp + 0x40]
mov rcx, rdx
mov rdx, rax
call dbg.open
mov rsi, rdx
test rax, rax
je 0x140072d0c
mov eax, esi
and eax, 3
cmp eax, 1
jne 0x140072d00
mov rbx, rsi
dec rbx
mov rcx, qword [rsi - 1]
mov rax, qword [rsi + 7]
call qword [rax]
mov rax, qword [rsi + 7]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140072ced
mov r8, qword [rax + 0x10]
mov rcx, qword [rbx]
call sym.__rust_dealloc
mov edx, 0x18
mov r8d, 8
mov rcx, rbx
call sym.__rust_dealloc
mov qword [rdi], 0
jmp 0x140072ecf
lea rcx, [rsp + 0x40]
mov rdx, rsi
call dbg.file_attr
cmp dword [rsp + 0x48], 2
jne 0x140072d88
mov rbx, qword [rsp + 0x40]
mov eax, ebx
and eax, 3
cmp eax, 1
jne 0x140072d69
lea r14, [rbx - 1]
mov rcx, qword [rbx - 1]
mov rax, qword [rbx + 7]
call qword [rax]
mov rax, qword [rbx + 7]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140072d56
mov r8, qword [rax + 0x10]
mov rcx, qword [r14]
call sym.__rust_dealloc
mov edx, 0x18
mov r8d, 8
mov rcx, r14
call sym.__rust_dealloc
mov qword [rdi], 0
mov rcx, rsi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp fcn.1400d47f8
mov r12, qword [rsp + 0x40]
test rsi, rsi
je 0x140072ddd
mov qword [rsp + 0x40], 0
call fcn.1400d4708
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, rax
mov rdx, rsi
mov r8, rax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x140072e36
mov rbx, qword [rsp + 0x40]
xor eax, eax
test rax, rax
jne 0x140072de6
jmp 0x140072e4f
xor eax, eax
xor ebx, ebx
test rax, rax
je 0x140072e4f
mov eax, ebx
and eax, 3
cmp eax, 1
jne 0x140072e2a
lea r14, [rbx - 1]
mov rcx, qword [rbx - 1]
mov rax, qword [rbx + 7]
call qword [rax]
mov rax, qword [rbx + 7]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140072e17
mov r8, qword [rax + 0x10]
mov rcx, qword [r14]
call sym.__rust_dealloc
mov edx, 0x18
mov r8d, 8
mov rcx, r14
call sym.__rust_dealloc
mov qword [rdi], 0
jmp 0x140072ec7
call fcn.1400d46b0
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov eax, 1
test rax, rax
jne 0x140072de6
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileMappingA
test rax, rax
je 0x140072eb8
mov r14, rax
mov qword [rsp + 0x20], r12
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.KERNEL32.dll_MapViewOfFile
mov r15, rax
mov rcx, r14
call fcn.1400d47f8
test r15, r15
je 0x140072eb8
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r12
mov qword [rdi], 1
jmp 0x140072ec7
mov qword [rdi], 0
mov rcx, rbx
call fcn.1400d47f8
mov rcx, rsi
call fcn.1400d47f8
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400b9c90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
test r8, r8
je 0x1400b9d0a
mov r11, rdx
mov rdx, qword [rsp + 0x70]
mov ebp, ecx
shr ebp, 8
lea r8, [r11 + r8*2]
xor eax, eax
mov rbx, r11
movzx edi, byte [r11 + 1]
add r11, 2
lea r10, [rax + rdi]
cmp byte [rbx], bpl
jne 0x1400b9d00
cmp r10, rax
jb 0x1400b9d9d
cmp r10, rdx
ja 0x1400b9db1
add rax, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x1400b9d02
lea rsi, [rbx + 1]
cmp byte [rax + rbx], cl
mov rbx, rsi
jne 0x1400b9ce0
jmp 0x1400b9d72
ja 0x1400b9d0a
mov rax, r10
cmp r11, r8
jne 0x1400b9cb0
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x1400b9d76
mov rsi, qword [rsp + 0x78]
add rdx, rsi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea rbx, [rsi + 1]
movzx edi, byte [rsi]
test dil, dil
js 0x1400b9d50
mov rsi, rbx
sub ecx, edi
jns 0x1400b9d69
jmp 0x1400b9d78
cmp rbx, rdx
je 0x1400b9d83
movzx ebp, byte [rsi + 1]
add rsi, 2
and edi, 0x7f
shl edi, 8
or edi, ebp
sub ecx, edi
js 0x1400b9d78
xor al, 1
cmp rsi, rdx
jne 0x1400b9d30
jmp 0x1400b9d78
xor eax, eax
jmp 0x1400b9d78
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x140158709]
lea r8, [0x14015a650]
mov edx, 0x2b
call dbg.panic
ud2
lea r8, [0x14015a638]
mov rcx, rax
mov rdx, r10
call dbg.slice_index_order_fail
ud2
lea r8, [0x14015a638]
mov rcx, r10
call dbg.slice_end_index_len_fail
ud2
Function at 0x1400d5380
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 0x1400d53f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1401802b4]
mov rbx, rcx
test esi, esi
jle 0x1400d5520
mov rax, qword [0x1401802b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400d543b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400d54c5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400d5420
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1400d5542
mov rax, qword [0x1401802b8]
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 [0x1401802b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400d5527
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400d54be
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400d54d0
add dword [0x1401802b4], 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 [0x1401802b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400d54be
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 0x1400d5448
mov rax, qword [0x1401802b8]
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 0x1400d5ab0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140180320]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140180300]
test rbx, rbx
je 0x1400d5b0c
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 0x1400d5b03
test rsi, rsi
je 0x1400d5b03
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400d5ae8
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 0x1400d5d20
Capabilities:
Parse pe header

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

Function at 0x1400d5d50
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 0x1400d5d9d
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 0x1400d5d94
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400d5d9f
add rax, 0x28
cmp rax, r9
jne 0x1400d5d80
xor eax, eax
ret

Function at 0x1400d5da0
Capabilities:
Parse pe header

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

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

Function at 0x1400d5ec0
Capabilities:
Parse pe header

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

Disassembly:
mov r8, qword [0x14016c0f0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400d5f20
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400d5f28
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400d5f20
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400d5f70
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400d5f67
test rcx, rcx
je 0x1400d5f20
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400d5f58
xor eax, eax
ret

Function at 0x1400d5f80
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x14016c0f0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400d6072
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400d6080
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400d6072
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400d6072
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400d6072
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 0x1400d60d5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400d60e8
add rdx, 0x28
cmp rdx, r10
jne 0x1400d60c0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400d60f7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400d6107
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400d60de
test ecx, ecx
jg 0x1400d60f0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000ac10]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000ac20]
mov dword [rax], 1
mov rax, qword [0x14000ac30]
mov dword [rax], 1
mov rax, qword [0x14000ab90]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000ac00]
mov dword [0x14000d00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x14000ace0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x14000acc0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x14000ab70]
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 [sym._matherr]
call sym.__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 0x140001c50
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 0x140001cc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000d094]
test esi, esi
mov rbx, rcx
jle 0x140001df0
mov rax, qword [0x14000d098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001d0b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001d95
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001cf0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x140001e12
mov rax, qword [0x14000d098]
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 [0x14000d098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001df7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001d8e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001da0
add dword [0x14000d094], 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 [0x14000d098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001d8e
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 0x140001d18
mov rax, qword [0x14000d098]
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 0x140002380
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000d100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000d0e0]
test rbx, rbx
je 0x1400023dc
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 0x1400023d3
test rsi, rsi
je 0x1400023d3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400023b8
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 0x1400025f0
Capabilities:
Parse pe header

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

Function at 0x140002620
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 0x14000266d
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 0x140002664
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000266f
add rax, 0x28
cmp rax, r9
jne 0x140002650
xor eax, eax
ret

Function at 0x140002670
Capabilities:
Parse pe header

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

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

Function at 0x140002790
Capabilities:
Parse pe header

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

Disassembly:
mov r8, qword [0x14000ab90]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400027f0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400027f8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400027f0
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x140002840
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002837
test rcx, rcx
je 0x1400027f0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002828
xor eax, eax
ret

Function at 0x140002850
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x14000ab90]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002942
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002950
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002942
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002942
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x140002942
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 0x1400029a5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400029b8
add rdx, 0x28
cmp rdx, r10
jne 0x140002990
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400029c7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400029d7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400029ae
test ecx, ecx
jg 0x1400029c0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret