joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18005a020
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x30
lea r13d, [rdx + 0x10]
mov r14, rcx
cmp edx, r13d
jae 0x18005a202
mov r12, qword [rbp + 0x50]
lea esi, [rdx - 0xf6]
mov rdi, qword [rbp + 0x50]
lea rdx, [0x180000000]
mov r15, qword [rbp + 0x50]
xor ebx, ebx
cmp esi, 0x18
ja case.0x18005a075.7
mov ecx, dword [rdx + rsi*4 + 0x5a248]
add rcx, rdx
jmp rcx
mov rcx, qword [r15 + 8]
mov r8, rdi
mov rdx, r14
call fcn.18007b500
mov qword [r15 + 0x20], rbx
jmp 0x18005a1ea
mov byte [rbp + 0x48], bl
mov r12, rbx
jmp case.0x18005a075.7
movzx eax, byte [rbp + 0x48]
lea r8, [rbp + 0x50]
mov r9d, 0x35
mov byte [rbp + 0x50], al
lea rdx, [rbp + 0x58]
mov byte [rbp + 0x58], 1
lea rcx, [rbp - 0x10]
mov byte [rbp - 0x10], bl
call fcn.180048010
mov byte [r12 + 3], al
jmp 0x18005a1ea
movzx eax, byte [rbp + 0x48]
lea r8, [rbp + 0x50]
mov r9d, 0x35
mov byte [rbp + 0x50], al
lea rdx, [rbp + 0x58]
mov byte [rbp + 0x58], 1
lea rcx, [rbp - 0x10]
mov byte [rbp - 0x10], 1
call fcn.180048010
mov byte [r12 + 2], al
jmp 0x18005a1ea
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [r14 + rdi], bl
jne 0x18005a100
inc rdi
mov rcx, rdi
call fcn.180081e7c
mov qword [r15 + 8], rax
test rax, rax
jne 0x18005a1ea
mov rcx, r15
call fcn.18007c144
mov rax, rbx
jmp 0x18005a206
mov qword [r15 + 0x28], rbx
mov qword [r15 + 0x30], rbx
jmp case.0x18005a075.7
movzx eax, byte [rbp + 0x48]
lea r8, [rbp + 0x50]
mov r9d, 0x35
mov byte [rbp + 0x50], al
lea rdx, [rbp + 0x58]
mov byte [rbp + 0x58], 2
lea rcx, [rbp - 0x10]
mov byte [rbp - 0x10], 2
call fcn.180048010
mov byte [r12 + 1], al
jmp 0x18005a1ea
mov ecx, 0x10
call fcn.180081e7c
mov r8d, 0x70
lea rdx, [rbp + 0x48]
xor ecx, ecx
mov r12, rax
call fcn.180003320
movzx ecx, byte [rbp + 0x48]
lea r8, [rbp + 0x50]
mov byte [rbp + 0x50], cl
lea rdx, [rbp + 0x58]
lea rcx, [rbp - 0x10]
mov byte [rbp + 0x58], 4
mov r9d, 0x35
mov byte [rbp - 0x10], 4
call fcn.180048010
mov byte [r12], al
jmp 0x18005a1ea
mov qword [r15 + 0x10], rbx
jmp case.0x18005a075.7
mov ecx, 0x38
call fcn.180081e7c
mov r15, rax
test rax, rax
je 0x18005a129
jmp 0x18005a1ea
mov qword [r15 + 0x18], rbx
jmp case.0x18005a075.7
mov ecx, dword [r14 + 4]
dec rcx
call fcn.180081e7c
mov qword [r12 + 8], rax
lea rdx, [0x180000000]
inc esi
lea eax, [rsi + 0xf6]
cmp eax, r13d
jb 0x18005a062
mov rax, qword [rbp + 0x50]
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r8d, dword [r14 + 4]
mov edx, 1
mov r9, qword [0x1800bd648]
dec r8
mov rcx, qword [r12 + 8]
call fcn.18007c8f8
mov rax, r12
jmp 0x18005a206
mov dword [r15], ebx
mov rax, r15
jmp 0x18005a206
Function at 0x18005fd20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov ebx, dword [rsp + 0x60]
lea ebp, [rcx + 6]
mov r14, r9
mov r12, r8
mov r15, rdx
cmp ecx, ebp
jae case.0x18005fd77.4
mov edi, dword [rsp + 0x60]
lea esi, [rcx - 0x99]
lea rdx, [0x180000000]
xor r13d, r13d
cmp esi, 6
ja case.0x18005fd77.5
mov ecx, dword [rdx + rsi*4 + 0x5feb8]
add rcx, rdx
jmp rcx
mov rax, qword [r14]
mov ecx, dword [rax + 0x54]
test ecx, ecx
jle case.0x18005fd77.5
mov byte [rax + 0x58], cl
mov edx, 1
mov rax, qword [r14]
inc dword [rax + 0x54]
mov r9, qword [r14]
movsxd r8, dword [r9 + 0x54]
lea rcx, [r9 + 0x58]
mov r9, qword [r9 + 0x18]
call fcn.18007be3c
mov rdx, qword [r14]
movsxd rcx, dword [rdx + 0x54]
cmp rax, rcx
je 0x18005fdce
mov rax, qword [rdx + 0x30]
mov rcx, qword [rax]
mov dword [rcx + 0x28], 0x25
mov rax, qword [r14]
mov rcx, qword [rax + 0x30]
mov rax, qword [rcx]
call qword [rax]
mov rdx, qword [r14]
mov dword [rdx + 0x54], r13d
lea rdx, [0x180000000]
inc esi
lea eax, [rsi + 0x99]
cmp eax, ebp
jb 0x18005fd68
mov eax, ebx
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov r9, r15
mov r8, r12
mov edx, 0x4c
mov rcx, r14
call fcn.18003e940
test eax, eax
je 0x18005feaf
mov edi, dword [r15]
cmp edi, 0xffffffff
je 0x18005fdd2
mov ecx, edi
call fcn.180076d9c
test eax, eax
je 0x18005fdd2
mov r9d, 0x1c
mov qword [rsp + 0x20], r13
xor r8d, r8d
mov rdx, r14
xor ecx, ecx
call fcn.1800248a0
mov edi, eax
cmp eax, 0xffffffff
jne 0x18005fe27
jmp 0x18005fdd2
mov ebx, 1
jmp case.0x18005fd77.5
mov dword [r15], edi
jmp case.0x18005fd77.5
mov ecx, edi
call fcn.180076c38
test eax, eax
je 0x18005fe8c
mov rdx, r14
mov ecx, edi
call fcn.18007c25c
cmp eax, 0xffffffff
je 0x18005feaf
mov edi, 0x20
jmp 0x18005fdd2
lea rdx, [0x180000000]
cmp edi, 0xffffffff
je case.0x18005fd77.5
lea eax, [rdi - 0x3a]
cmp eax, 1
mov eax, 0x20
cmova edi, eax
jmp case.0x18005fd77.5
mov eax, r13d
jmp 0x18005fde7
Function at 0x180061d50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
push r12
push r13
sub rsp, 0x178
lea eax, [rcx + 5]
mov r12, r8
mov dword [rsp + 0x1a8], eax
mov r8, rdx
mov r13d, ecx
cmp ecx, eax
jae 0x180061f7a
mov qword [r11 + 0x18], rbx
movzx ebx, byte [rsp + 0x190]
mov qword [r11 - 0x18], rbp
mov rbp, qword [rsp + 0x1a8]
mov qword [r11 - 0x20], rsi
movzx esi, byte [rsp + 0x190]
mov qword [r11 - 0x28], rdi
mov rdi, qword [rsp + 0x1a8]
mov qword [r11 - 0x30], r14
movzx r14d, byte [rsp + 0x190]
mov qword [r11 - 0x38], r15
movzx r15d, byte [rsp + 0x190]
nop word [rax + rax]
mov eax, r13d
sub eax, 0x40
je 0x180061f0e
sub eax, 5
je 0x180061ec3
sub eax, 1
je 0x180061eab
sub eax, 1
je 0x180061e1b
cmp eax, 1
jne 0x180061f39
lea rcx, [rsp + 0x20]
mov byte [rsp + 0x140], bl
call qword [sym.imp.USER32.dll_GetCursorInfo]
mov byte [rsp + 0x141], r14b
jmp 0x180061f31
cmp qword [r12 + 0x18], 0x10
mov r9, r12
jb 0x180061e2a
mov r9, qword [r12]
cmp rbp, qword [r12 + 0x10]
jae 0x180061f39
nop word [rax + rax]
mov r8d, 0x95
mov eax, r8d
sub eax, 0x93
je 0x180061e84
sub eax, 1
je 0x180061e68
cmp eax, 1
jne 0x180061e93
inc bl
movzx eax, bl
movzx esi, byte [rax + rdi]
add r14b, sil
jmp 0x180061e93
movzx edx, r14b
movzx ecx, bl
movzx eax, byte [rdx + rdi]
mov byte [rcx + rdi], al
mov byte [rdx + rdi], sil
movzx r15d, byte [rcx + rdi]
add r15b, sil
jmp 0x180061e93
movzx eax, r15b
movzx ecx, byte [rax + rdi]
xor byte [r9 + rbp], cl
inc rbp
dec r8d
cmp r8d, 0x92
ja 0x180061e46
cmp rbp, qword [r12 + 0x10]
jb 0x180061e40
jmp 0x180061f31
movzx r14d, byte [rsp + 0x141]
lea rdi, [rsp + 0x40]
mov dword [rsp + 0x20], 0x18
jmp 0x180061f39
xor eax, eax
xor ebp, ebp
cmp qword [r8 + 0x18], 0x10
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rax
mov rdx, r8
jb 0x180061ee1
mov rdx, qword [r8]
mov eax, dword [r8 + 0x10]
lea r9, [rsp + 0x190]
mov r8d, 0x5e
mov dword [rsp + 0x190], eax
lea rcx, [rsp + 0x40]
call fcn.180055340
movzx ebx, byte [rsp + 0x140]
jmp 0x180061f31
movzx ecx, byte [r12 + 1]
mov rdx, qword [0x1800bd650]
call fcn.180078050
movzx ecx, byte [r12]
mov rdx, qword [0x1800bd650]
call fcn.180078050
mov r8, qword [rsp + 0x198]
inc r13d
cmp r13d, dword [rsp + 0x1a8]
jb 0x180061dd0
mov r15, qword [rsp + 0x150]
mov r14, qword [rsp + 0x158]
mov rdi, qword [rsp + 0x160]
mov rsi, qword [rsp + 0x168]
mov rbp, qword [rsp + 0x170]
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x178
pop r13
pop r12
ret
Function at 0x18006a480
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x18006a4b4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x18006a4a0
ret
Function at 0x180076a04
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x180076824
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180076824
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180076824
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180076824
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180076824
cmp dword [rcx + 0x84], 0xe
jbe 0x180076824
cmp dword [rcx + 0xf8], esi
je 0x180076824
mov ecx, r14d
call fcn.18007696c
mov ecx, 2
call fcn.180082534
nop
cmp byte [0x1800bca88], 0
jne 0x1800768ee
mov r15d, 1
mov eax, r15d
xchg dword [0x1800bca78], eax
test ebx, ebx
jne 0x180076897
mov rdi, qword [0x1800bb028]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x1800bca80]
cmp rcx, rax
je 0x18007688e
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [0x180098908]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1800bce28]
jmp 0x1800768a3
cmp ebx, r15d
jne 0x1800768a9
lea rcx, [0x1800bce40]
call fcn.180086014
nop
test ebx, ebx
jne 0x1800768c0
lea rdx, [0x1800989d0]
lea rcx, [0x1800989a8]
call fcn.18008626c
lea rdx, [0x1800989e0]
lea rcx, [0x1800989d8]
call fcn.18008626c
movzx eax, byte [0x1800bca88]
test esi, esi
cmove eax, r15d
mov byte [0x1800bca88], al
jmp 0x1800768ee
mov ecx, 2
call fcn.180082588
test esi, esi
jne 0x180076905
mov ecx, r14d
call fcn.180076920
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1800767b4
Function at 0x18008c2c4
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x18008c164
call fcn.1800829ec
mov dword [rax], 0x16
call fcn.1800773b0
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x18008c14c
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x18008c14c
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x18008c196
lock or dword [rax + 0x14], 0x10
jmp 0x18008c14c
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x18008c1b3
mov rcx, qword [rbp + 0x10]
call fcn.18008cf8c
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.180086358
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.18008d5e4
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x18008c20a
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x18008c14c
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x18008c276
mov rcx, qword [rbp + 0x10]
call fcn.180086358
cmp eax, 0xffffffff
je 0x18008c25d
mov rcx, qword [rbp + 0x10]
call fcn.180086358
cmp eax, 0xfffffffe
je 0x18008c25d
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.180086358
movsxd rdi, eax
lea rsi, [0x1800bd040]
mov rcx, rbx
sar rdi, 6
call fcn.180086358
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x18008c264
lea rax, [0x1800bb3d0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x18008c276
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x18008c2ac
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x18008c2a8
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x18008c2a8
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x18008c14f
jmp 0x18008c11c
Function at 0x14000da84
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140017850], eax
call fcn.14000d7d0
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140017850], 0
jne case.default.0x14000dada
mov ecx, 1
call fcn.14000d7d0
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
test byte [rax + 0x53647e30], dl
invalid
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14006ed40]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14006ed50]
mov dword [rax], 1
mov rax, qword [0x14006ed60]
mov dword [rax], 1
mov rax, qword [0x14006ece0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14006ed30]
mov dword [0x140072020], 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 [0x14006ee10]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14006edf0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14006ec90]
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 0x140064920
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 0x140064990
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400720b4]
mov rbx, rcx
test esi, esi
jle 0x140064ac0
mov rax, qword [0x1400720b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400649db
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140064a65
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400649c0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140064ae2
mov rax, qword [0x1400720b8]
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 [0x1400720b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140064ac7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140064a5e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140064a70
add dword [0x1400720b4], 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 [0x1400720b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140064a5e
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 0x1400649e8
mov rax, qword [0x1400720b8]
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 0x140065050
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140072120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140072100]
test rbx, rbx
je 0x1400650ac
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 0x1400650a3
test rsi, rsi
je 0x1400650a3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140065088
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 0x1400652c0
Capabilities:
Parse pe header

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

Function at 0x1400652f0
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 0x14006533d
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 0x140065334
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14006533f
add rax, 0x28
cmp rax, r9
jne 0x140065320
xor eax, eax
ret

Function at 0x140065340
Capabilities:
Parse pe header

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

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

Function at 0x140065460
Capabilities:
Parse pe header

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

Disassembly:
mov r8, qword [0x14006ece0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400654c0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400654c8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400654c0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140065510
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140065507
test rcx, rcx
je 0x1400654c0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400654f8
xor eax, eax
ret

Function at 0x140065520
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x14006ece0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140065612
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140065620
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140065612
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140065612
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140065612
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 0x140065675
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140065688
add rdx, 0x28
cmp rdx, r10
jne 0x140065660
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140065697
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400656a7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14006567e
test ecx, ecx
jg 0x140065690
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x401465
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x00542870]
mov dword [rax], 1
mov rax, qword [0x00542880]
mov dword [rax], 1
mov rax, qword [0x00542890]
mov dword [rax], 1
mov rax, qword [0x00542860]
mov dword [rax], 1
mov rax, qword [0x005426e0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x4014c3
mov eax, 0
jmp 0x401570
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x4014ef
mov eax, 0
jmp 0x401570
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x401515
cmp eax, 0x20b
je 0x40153c
jmp 0x40156b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x401528
mov eax, 0
jmp 0x401570
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x401570
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x401557
mov eax, 0
jmp 0x401570
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x401570
mov eax, 0
add rsp, 0x20
pop rbp
ret