joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180005cfc
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
and dword [rbp - 0x14], 0
mov rsi, rcx
and qword [rbp - 0x10], 0
lea rcx, [rbp - 0x18]
mov ebx, 1
mov r15, r9
mov dword [rbp - 0x18], ebx
mov r12, r8
mov rdi, rdx
call fcn.1800058c8
test rax, rax
jne 0x180005d53
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
jmp 0x180005e78
and qword [rbp - 0x28], 0
mov rax, qword [rbp - 0x10]
mov r14d, dword [rsi + 8]
mov rsi, qword [rsi]
test rax, rax
jne 0x180005d76
lea rcx, [rbp - 0x18]
call fcn.1800058c8
test rax, rax
je 0x180005df5
lea rax, [rbp - 0x2c]
mov dword [rbp - 0x2c], 0x30
mov qword [rsp + 0x38], rax
mov r9d, r14d
lea rax, [rbp - 0x20]
mov r8, rsi
mov qword [rsp + 0x30], rax
mov edx, 8
and qword [rsp + 0x28], 0
mov ecx, ebx
mov dword [rsp + 0x20], 0x8000
call qword [sym.imp.CRYPT32.dll_CryptDecodeObjectEx]
test eax, eax
jne 0x180005dbc
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180005df5
mov rax, qword [rbp - 0x10]
test rax, rax
jne 0x180005dce
lea rcx, [rbp - 0x18]
call fcn.1800058c8
mov r8, qword [rbp - 0x20]
lea r9, [rbp - 0x28]
mov edx, ebx
mov rcx, rax
call qword [sym.imp.CRYPT32.dll_CryptImportPublicKeyInfo]
test eax, eax
jne 0x180005deb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x180005e5c
lea rax, [rbp - 0x30]
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov r8d, ebx
mov qword [rsp + 0x20], rdi
xor edx, edx
mov dword [rbp - 0x30], r15d
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x180005e5c
mov eax, dword [rbp - 0x30]
mov rcx, qword [rbp + 0x40]
mov qword [rcx], rax
sub eax, ebx
movsxd rdx, eax
test eax, eax
jle 0x180005e64
mov r8, rdi
mov al, byte [rdx + rdi]
mov cl, byte [r8]
mov byte [r8], al
add r8, rbx
mov rax, r8
mov byte [rdx + rdi], cl
sub rax, rdi
sub rdx, rbx
cmp rax, rdx
jl 0x180005e3d
jmp 0x180005e64
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x180005e78
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
and qword [rbp - 0x28], 0
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x180005e89
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea r11, [rsp + 0x70]
mov al, bl
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x180005eac
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x68
mov r13, qword [rbp + 0x68]
mov rdi, rcx
and qword [rbp - 0x10], 0
lea rcx, [rbp - 0x18]
mov r12, r9
mov dword [rbp - 0x18], 0x18
mov r15, r8
mov dword [rbp - 0x14], 0xf0000000
mov r14, rdx
call fcn.1800058c8
test rax, rax
jne 0x180005efe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180005fe3
and qword [rbp - 0x28], 0
mov rax, qword [rbp - 0x10]
mov ebx, dword [rdi + 8]
mov rsi, qword [rdi]
test rax, rax
jne 0x180005f24
lea rcx, [rbp - 0x18]
call fcn.1800058c8
test rax, rax
je 0x180005fc7
mov r9d, ebx
lea rdx, [rbp - 0x18]
mov r8, rsi
lea rcx, [rbp - 0x28]
call fcn.180005a18
test eax, eax
jne 0x180005fc7
mov rcx, qword [rbp - 0x28]
lea esi, [rax + 1]
xor ebx, ebx
mov dword [rbp - 0x1c], esi
test rcx, rcx
je 0x180005f62
xor r9d, r9d
lea r8, [rbp - 0x1c]
lea edx, [rax + 4]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, esi
jne 0x180005fc7
mov rcx, qword [rbp - 0x28]
xor ebx, ebx
test rcx, rcx
je 0x180005f88
mov r8, qword [rdi + 0x10]
xor r9d, r9d
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, esi
jne 0x180005fc7
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x180005fc7
lea rax, [rbp - 0x20]
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r14
xor edx, edx
mov dword [rbp - 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [rbp - 0x20]
mov qword [r13], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp - 0x28]
mov ebx, eax
test rcx, rcx
je 0x180005fe3
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
and qword [rbp - 0x28], 0
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x180005ff4
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x180006008
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
and qword [rbp - 8], 0
mov rdi, rcx
lea rcx, [rbp - 0x10]
mov dword [rbp - 0x10], 0x18
mov r15, r9
mov dword [rbp - 0xc], 0xf0000000
mov r14, rdx
call fcn.1800058c8
test rax, rax
jne 0x180006052
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180006127
and qword [rbp - 0x20], 0
mov rax, qword [rbp - 8]
mov ebx, dword [rdi + 8]
mov rsi, qword [rdi]
test rax, rax
jne 0x180006078
lea rcx, [rbp - 0x10]
call fcn.1800058c8
test rax, rax
je 0x18000610b
mov r9d, ebx
lea rdx, [rbp - 0x10]
mov r8, rsi
lea rcx, [rbp - 0x20]
call fcn.180005a18
test eax, eax
jne 0x18000610b
mov rcx, qword [rbp - 0x20]
lea esi, [rax + 1]
xor ebx, ebx
mov dword [rbp - 0x18], esi
test rcx, rcx
je 0x1800060b2
xor r9d, r9d
lea r8, [rbp - 0x18]
lea edx, [rax + 4]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, esi
jne 0x18000610b
mov rcx, qword [rbp - 0x20]
xor ebx, ebx
test rcx, rcx
je 0x1800060d8
mov r8, qword [rdi + 0x10]
xor r9d, r9d
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, esi
jne 0x18000610b
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x18000610b
lea rax, [rbp - 0x14]
mov dword [rbp - 0x14], r15d
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r14
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp - 0x20]
mov ebx, eax
test rcx, rcx
je 0x180006127
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
and qword [rbp - 0x20], 0
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x180006138
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x180006188
Capabilities:
Generate random numbers via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x30
and dword [rax - 0x14], 0
mov rdi, rcx
and qword [rax - 0x10], 0
lea rcx, [rax - 0x18]
mov ebx, edx
mov dword [rax - 0x18], 1
call fcn.1800058c8
test rax, rax
je 0x1800061cd
mov r8, rdi
mov edx, ebx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x1800061cd
xor ebx, ebx
jmp 0x1800061d0
or ebx, 0xffffffff
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x1800061e2
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x180009040
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
xor eax, eax
mov ebx, ecx
xor ecx, ecx
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x68], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18000909c
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18000909c
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18000909c
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18000909c
cmp dword [rcx + 0x84], 0xe
jbe 0x18000909c
cmp dword [rcx + 0xf8], 0
je 0x18000909c
mov ecx, ebx
call fcn.180008fd0
lea rax, [rsp + 0x68]
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rcx, [0x180014100]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.180008e50
cmp dword [rsp + 0x60], 0
jne 0x1800090df
mov ecx, ebx
call fcn.180008f80
int3
add rsp, 0x40
pop rbx
ret

Function at 0x180009140
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x4f0]
sub rsp, 0x5f0
mov rax, qword [0x180012008]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x18000917c
mov ecx, 5
int 0x29
mov ecx, 2
call fcn.18000d1bc
xorps xmm0, xmm0
lea rcx, [rbp + 0x10]
xor eax, eax
xor edx, edx
mov r8d, 0x4d0
mov qword [rbp], rax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rcx, [rbp + 0x10]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rbp + 0x108]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x180009238
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], 0
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov rax, qword [rbp + 0x4f8]
mov qword [rbp + 0x108], rax
lea rax, [rbp + 0x4f8]
add rax, 8
mov dword [rsp + 0x70], 0xc0000417
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x4f8]
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x74], 1
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x18000929e
test ebx, ebx
jne 0x18000929e
lea ecx, [rax + 2]
call fcn.18000d1bc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp + 0x4e0]
xor rcx, rsp
call fcn.18000cf30
mov rbx, qword [rsp + 0x600]
add rsp, 0x5f0
pop rbp
ret
Function at 0x18000cdc0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
cmp dword [rcx], 0xe06d7363
mov rdi, r9
mov rbp, r8
mov r14, rdx
mov rsi, rcx
jne 0x18000ce7c
mov rax, qword [r9 + 0x38]
mov qword [rsp + 0x48], rbx
mov ebx, dword [rax]
add rbx, qword [r9 + 8]
mov eax, dword [rbx]
and eax, 0x1fffffff
sub eax, 0x19930521
cmp eax, 1
ja 0x18000ce77
mov eax, 1
xchg dword [0x181774170], eax
cmp eax, 1
jne 0x18000ce30
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
xchg dword [0x181774170], eax
cmp eax, 1
je 0x18000ce15
mov edx, 4
lea r9, [rsp + 0x40]
mov rcx, rbx
lea r8d, [rdx + 0x3c]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x18000ce6f
and dword [rbx], 0xf9930520
lea r9, [rsp + 0x40]
or dword [rbx], 0x19930520
mov edx, 4
mov r8d, dword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
xor eax, eax
xchg dword [0x181774170], eax
mov rbx, qword [rsp + 0x48]
mov r9, rdi
mov r8, rbp
mov rdx, r14
mov rcx, rsi
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
jmp qword [sym.imp.msvcrt.dll___CxxFrameHandler]
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000acb0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000acc0]
mov dword [rax], 1
mov rax, qword [0x14000acd0]
mov dword [rax], 1
mov rax, qword [0x14000ac40]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000aca0]
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 [0x14000ad80]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x14000ad60]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x14000abf0]
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 0x140001a8a
Capabilities:
Hash data with crc32

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov qword [rbp - 8], 0
jmp 0x140001ae3
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp - 8]
add rax, rdx
movzx eax, byte [rax]
movzx eax, al
xor eax, dword [rbp + 0x20]
movzx eax, al
mov eax, eax
lea rdx, [rax*4]
lea rax, section..rdata
mov edx, dword [rdx + rax]
mov eax, dword [rbp + 0x20]
shr eax, 8
xor eax, edx
mov dword [rbp + 0x20], eax
add qword [rbp - 8], 1
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x18]
jb 0x140001aa8
mov eax, dword [rbp + 0x20]
add rsp, 0x10
pop rbp
ret

Function at 0x1400024bb
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
lea rax, [rbp - 0x18]
mov rcx, qword [rbp + 0x10]
mov rdx, rax
call sym.libattopng_get_data
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400024ed
mov eax, 1
jmp 0x140002559
mov rax, qword [rbp + 0x18]
lea rdx, [0x14000a47b]
mov rcx, rax
call sym.fopen
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x140002512
mov eax, 1
jmp 0x140002559
mov rdx, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov r9, rcx
mov r8d, 1
mov rcx, rax
call sym.fwrite
cmp rax, 1
je 0x140002548
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.fclose
mov eax, 1
jmp 0x140002559
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.fclose
mov eax, 0
add rsp, 0x40
pop rbp
ret
Function at 0x140002ad0
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 0x140002b40
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 0x140002c70
mov rax, qword [0x14000d098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002b8b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002c15
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002b70
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x140002c92
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 0x140002c77
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002c0e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002c20
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 0x140002c0e
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 0x140002b98
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 0x140003200
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 0x14000325c
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 0x140003253
test rsi, rsi
je 0x140003253
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003238
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 0x140003470
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop

Function at 0x140003480
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop

Function at 0x140003490
Capabilities:
Parse pe header

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

Function at 0x1400034c0
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 0x14000350d
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 0x140003504
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000350f
add rax, 0x28
cmp rax, r9
jne 0x1400034f0
xor eax, eax
ret

Function at 0x140003510
Capabilities:
Parse pe header

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

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

Function at 0x140003630
Capabilities:
Parse pe header

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

Disassembly:
mov r8, qword [0x14000ac40]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140003690
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140003698
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140003690
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x1400036e0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400036d7
test rcx, rcx
je 0x140003690
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400036c8
xor eax, eax
ret

Function at 0x1400036f0
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x14000ac40]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400037e2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400037f0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400037e2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400037e2
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x1400037e2
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 0x140003845
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140003858
add rdx, 0x28
cmp rdx, r10
jne 0x140003830
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140003867
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140003877
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000384e
test ecx, ecx
jg 0x140003860
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret