joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402e0150
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1403f2c88]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, r8
mov dword [rbp - 0x40], 8
mov rbx, rdx
mov dword [rsp + 0x20], 0xf0000040
mov rsi, rcx
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x38]
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1402e0287
movzx edx, byte [rdi + 1]
movzx ecx, byte [rdi]
movzx eax, dl
movzx r8d, byte [rdi + 5]
shr al, 1
mov byte [rbp - 0x1c], cl
shl cl, 7
or al, cl
shl dl, 6
movzx ecx, byte [rdi + 2]
mov byte [rbp - 0x1b], al
movzx eax, cl
shr al, 2
or al, dl
shl cl, 5
movzx edx, byte [rdi + 3]
mov byte [rbp - 0x1a], al
movzx eax, dl
shr al, 3
or al, cl
shl dl, 4
movzx ecx, byte [rdi + 4]
mov byte [rbp - 0x19], al
movzx eax, cl
shr al, 4
or al, dl
shl cl, 3
mov byte [rbp - 0x18], al
movzx eax, r8b
shr al, 5
or al, cl
shl r8b, 2
movzx ecx, byte [rdi + 6]
mov byte [rbp - 0x17], al
movzx eax, cl
add cl, cl
shr al, 6
or al, r8b
mov byte [rbp - 0x15], cl
mov qword [rsp + 0xa0], r14
lea rcx, [rbp - 0x1c]
xor r14d, r14d
mov byte [rbp - 0x16], al
mov dword [rbp - 0x28], 0x208
mov dword [rbp - 0x24], 0x6601
mov dword [rbp - 0x20], 8
lea edx, [r14 + 8]
call fcn.1400f9df0
mov rcx, qword [rbp - 0x38]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
lea r8d, [r14 + 0x14]
xor r9d, r9d
mov dword [rsp + 0x20], r14d
lea rdx, [rbp - 0x28]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov r14, qword [rsp + 0xa0]
test eax, eax
jne 0x1402e028b
mov rcx, qword [rbp - 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
jmp 0x1402e02d0
mov rax, qword [rsi]
xor r9d, r9d
mov rcx, qword [rbp - 0x30]
xor r8d, r8d
mov qword [rbx], rax
xor edx, edx
mov eax, dword [rbp - 0x40]
mov dword [rsp + 0x30], eax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rbp - 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400f8ced
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002202
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rsi, rcx
mov rbx, rdx
test rdx, rdx
je 0x140002221
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140037410

Function at 0x140006082
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
lea r12, [0x1400500a0]
xor ebx, ebx
lea r14, [0x14003d2c0]
mov rsi, rcx
mov rdi, rdx
lea r13, [rsp + 0x20]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbp, qword [fcn.140036e10]
mov ecx, 1
cmp rbx, rdi
jl 0x140006108
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x14003f32f]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbp
mov rcx, rax
call fcn.140037410
mov rcx, r12
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rbp
xor r8d, r8d
mov rdx, r13
mov rcx, rax
mov rax, rbx
shl rax, 4
movups xmm0, xmmword [rsi + rax]
movaps xmmword [rsp + 0x20], xmm0
call fcn.140005fd0
mov rcx, r14
call fcn.140031ba0
cmp byte [rax], 0
jne 0x14000613a
inc rbx
jmp 0x1400060bb
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x14000a580
Capabilities:
Hash data using murmur3

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rax, rdx
mov rbx, rdx
mov rdi, rcx
mov ecx, 4
cqo
mov rsi, rbx
idiv rcx
mov rcx, qword [0x1400447b0]
sub rsi, rdx
call fcn.140031ba0
xor r10d, r10d
xor r9d, r9d
mov r8b, byte [rax]
cmp rsi, r10
jg 0x14000a5ce
mov rax, rbx
mov ecx, 4
add rdi, r10
cqo
idiv rcx
xor ecx, ecx
jmp 0x14000a608
mov edx, dword [rdi + r10]
add r10, 4
imul edx, edx, 0xcc9e2d51
rol edx, 0xf
test r8b, r8b
jne 0x14000a64c
imul edx, edx, 0x1b873593
xor edx, r9d
rol edx, 0xd
lea edx, [rdx + rdx*4]
lea r9d, [rdx - 0x19ab949c]
jmp 0x14000a5b5
dec rdx
shl ecx, 8
movzx eax, byte [rdi + rdx]
or ecx, eax
test rdx, rdx
jg 0x14000a5fc
imul ecx, ecx, 0xcc9e2d51
xor eax, eax
rol ecx, 0xf
test r8b, r8b
jne 0x14000a64e
imul eax, ecx, 0x1b873593
xor r9d, ebx
xor eax, r9d
mov edx, eax
shr edx, 0x10
xor eax, edx
imul eax, eax, 0x85ebca6b
mov edx, eax
shr edx, 0xd
xor edx, eax
imul edx, edx, 0xc2b2ae35
mov eax, edx
shr eax, 0x10
xor eax, edx
jmp 0x14000a64e
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov rdx, qword [rcx]
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x14000a666
add rcx, 8
jmp 0x14000a580
Function at 0x14000a656
Capabilities:
Hash data using murmur3

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rax, rdx
mov rbx, rdx
mov rdi, rcx
mov ecx, 4
cqo
mov rsi, rbx
idiv rcx
mov rcx, qword [0x1400447b0]
sub rsi, rdx
call fcn.140031ba0
xor r10d, r10d
xor r9d, r9d
mov r8b, byte [rax]
cmp rsi, r10
jg 0x14000a5ce
mov rax, rbx
mov ecx, 4
add rdi, r10
cqo
idiv rcx
xor ecx, ecx
jmp 0x14000a608
mov edx, dword [rdi + r10]
add r10, 4
imul edx, edx, 0xcc9e2d51
rol edx, 0xf
test r8b, r8b
jne 0x14000a64c
imul edx, edx, 0x1b873593
xor edx, r9d
rol edx, 0xd
lea edx, [rdx + rdx*4]
lea r9d, [rdx - 0x19ab949c]
jmp 0x14000a5b5
dec rdx
shl ecx, 8
movzx eax, byte [rdi + rdx]
or ecx, eax
test rdx, rdx
jg 0x14000a5fc
imul ecx, ecx, 0xcc9e2d51
xor eax, eax
rol ecx, 0xf
test r8b, r8b
jne 0x14000a64e
imul eax, ecx, 0x1b873593
xor r9d, ebx
xor eax, r9d
mov edx, eax
shr edx, 0x10
xor eax, edx
imul eax, eax, 0x85ebca6b
mov edx, eax
shr edx, 0xd
xor edx, eax
imul edx, edx, 0xc2b2ae35
mov eax, edx
shr eax, 0x10
xor eax, edx
jmp 0x14000a64e
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov rdx, qword [rcx]
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x14000a666
add rcx, 8
jmp 0x14000a580

Function at 0x140030cc0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 fcn.140036e10
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140036e10
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x140030d30
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x140050974]
mov r12, rcx
test ebx, ebx
jle 0x140030e60
mov rax, qword [0x140050978]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x140030d7b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x140030e05
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x140030d60
mov rcx, r12
call fcn.1400317b0
mov rsi, rax
test rax, rax
je 0x140030e82
mov rax, qword [0x140050978]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.1400318e0
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140050978]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140030e67
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140030dfe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140030e10
add dword [0x140050974], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x140050978]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140030dfe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140030cc0
nop dword [rax]
xor ebx, ebx
jmp 0x140030d88
mov rax, qword [0x140050978]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140030cc0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140030cc0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140031400
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x1400509e0]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400509c0]
test rbx, rbx
je 0x14003145c
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140031453
test r12, r12
je 0x140031453
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140031438
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400317b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400447d0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400317d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400317d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400317d0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140031825
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14003181c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400317d0
add rax, 0x28
cmp rax, r9
jne 0x140031808
xor eax, eax
ret

Function at 0x140031830
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400447d0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140031850
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140031858
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140031850
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x1400318e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400447d0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140031900
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140031908
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x140037f50
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x140038062
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14003803a
add rax, 1
cmp rax, 0x6b
je 0x140038057
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x140038030
cmp edx, 0x6a
je 0x140038057
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x14003804b
Function at 0x140038400
Capabilities:
Allocate thread local storage

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x28
lea rsi, [0x1400514e0]
mov rcx, rsi
call fcn.140037cc0
lea r13, [rax + 8]
mov r12, rax
mov rcx, r13
call fcn.1400375c0
mov ebx, dword [0x1400514e0]
test ebx, ebx
jne 0x140038470
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x14003e418], eax
cmp eax, 0xffffffff
je 0x14003cdf6
mov dword [0x1400514e0], 1
mov rcx, r13
call fcn.1400378e0
test r12, r12
je 0x1400384a2
mov rcx, r12
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop r13
jmp fcn.140038080
cmp ebx, 1
je 0x140038451
mov ecx, 2
call qword [fcn.140036e10]
mov r9d, ebx
mov r8, rsi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
mov rcx, r13
call fcn.1400378e0
test r12, r12
jne 0x14003845e
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop r13
ret
call sub.msvcrt.dll_abort
nop
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1401d2a90]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1401d2aa0]
mov dword [rax], 1
mov rax, qword [0x1401d2ab0]
mov dword [rax], 1
mov rax, qword [0x1401d2a10]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1401d2a80]
mov dword [0x1401d600c], 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 [0x1401d2b60]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1401d2b40]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1401d29f0]
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 0x140001aa0
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 0x140001b10
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1401d6094]
mov rbx, rcx
test esi, esi
jle 0x140001c40
mov rax, qword [0x1401d6098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001b5b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001be5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001b40
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001c62
mov rax, qword [0x1401d6098]
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 [0x1401d6098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001c47
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001bde
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001bf0
add dword [0x1401d6094], 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 [0x1401d6098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001bde
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 0x140001b68
mov rax, qword [0x1401d6098]
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 0x1400021f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1401d6100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401d60e0]
test rbx, rbx
je 0x14000224c
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 rsi, rsi
je 0x140002243
test eax, eax
jne 0x140002243
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002228
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 0x140002460
Capabilities:
Parse pe header

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

Function at 0x140002490
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 0x1400024dd
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 0x1400024d4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400024df
add rax, 0x28
cmp rax, r9
jne 0x1400024c0
xor eax, eax
ret

Function at 0x1400024e0
Capabilities:
Parse pe header

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

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

Function at 0x140002600
Capabilities:
Parse pe header

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

Disassembly:
mov r8, qword [0x1401d2a10]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002660
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002668
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002660
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400026b0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400026a7
test rcx, rcx
je 0x140002660
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002698
xor eax, eax
ret

Function at 0x1400026c0
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x1401d2a10]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400027b2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400027c0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400027b2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400027b2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400027b2
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 0x140002815
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002828
add rdx, 0x28
cmp r10, rdx
jne 0x140002800
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002837
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002847
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000281e
test ecx, ecx
jg 0x140002830
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret