joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400645bd
Capabilities:
Hash data using sha512

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xf8
mov r14d, pe_nt_image_headers64
movabs rax, 0x6a09e667f3bcc908
mov qword [rsp + 0x28], rax
mov rsi, rcx
mov rbx, r8
xor ecx, ecx
xor r8d, r8d
mov dword [rsp + 0x68], ecx
mov ebp, edx
lea r12, [rsp + 0x20]
movabs rax, 0xbb67ae8584caa73b
mov qword [rsp + 0x20], r8
lea r13, [rsp + 0x6c]
mov qword [rsp + 0x30], rax
movabs rax, 0x3c6ef372fe94f82b
mov qword [rsp + 0x38], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rsp + 0x40], rax
movabs rax, 0x510e527fade682d1
mov qword [rsp + 0x48], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rsp + 0x50], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rsp + 0x58], rax
movabs rax, 0x5be0cd19137e2179
mov qword [rsp + 0x60], rax
mov edi, dword [rsp + 0x68]
mov rcx, rdi
test ebp, ebp
je 0x1400646ea
test ecx, ecx
jne 0x14006469f
cmp ebp, 0x7f
jbe 0x14006469f
mov rdx, rsi
mov rcx, r12
sub rsi, 0xffffffffffffff80
add ebp, 0xffffff80
call fcn.1400640c0
add qword [rsp + 0x20], 0x400
jmp 0x14006466e
mov r15d, r14d
lea rax, [r13 + rdi]
sub r15d, ecx
mov rdi, rax
cmp r15d, ebp
cmova r15d, ebp
mov ecx, r15d
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rsp + 0x68]
add eax, r15d
mov dword [rsp + 0x68], eax
cmp eax, 0x80
jne 0x1400646e5
mov rdx, r13
mov rcx, r12
call fcn.1400640c0
xor edx, edx
add qword [rsp + 0x20], 0x400
mov dword [rsp + 0x68], edx
sub ebp, r15d
jmp 0x14006466e
mov rax, qword [rsp + 0x20]
lea edx, [rdi + 1]
mov byte [rsp + rdi + 0x6c], pe_nt_image_headers64
mov dword [rsp + 0x68], edx
lea rsi, [rax + rdi*8]
mov qword [rsp + 0x20], rsi
cmp edx, 0x70
jbe 0x140064759
mov eax, edx
mov r8d, edx
xor r9d, r9d
add rax, r12
inc rax
cmp r8d, 0x7f
ja 0x140064729
mov byte [rax + 0x4b], 0
inc r8d
mov r9b, 1
jmp 0x140064714
test r9b, r9b
je 0x140064746
mov eax, 0x7f
sub eax, ecx
xor ecx, ecx
cmp edx, 0x80
cmova eax, ecx
add eax, edx
mov dword [rsp + 0x68], eax
lea rdx, [rsp + 0x6c]
mov rcx, r12
call fcn.1400640c0
xor eax, eax
mov dword [rsp + 0x68], eax
mov edx, dword [rsp + 0x68]
xor r8d, r8d
mov rax, rdx
add rdx, r12
mov ecx, eax
inc rdx
cmp ecx, 0x77
ja 0x14006477b
mov byte [rdx + 0x4b], 0
inc ecx
mov r8b, 1
jmp 0x140064768
test r8b, r8b
je 0x140064795
mov edx, 0x78
xor ecx, ecx
sub edx, eax
cmp eax, 0x78
cmova edx, ecx
add eax, edx
mov dword [rsp + 0x68], eax
lea rdx, [rsp + 0x6c]
mov rcx, r12
bswap rsi
mov qword [rsp + 0xe4], rsi
call fcn.1400640c0
xor eax, eax
lea r8, [rsp + 0x28]
mov rdx, qword [r8 + rax]
mov rcx, rdx
mov byte [rbx + rax + 6], dh
shr rcx, 0x38
mov byte [rbx + rax + 7], dl
mov byte [rbx + rax], cl
mov rcx, rdx
shr rcx, 0x30
mov byte [rbx + rax + 1], cl
mov rcx, rdx
shr rcx, 0x28
mov byte [rbx + rax + 2], cl
mov rcx, rdx
shr rcx, 0x20
mov byte [rbx + rax + 3], cl
mov rcx, rdx
shr rcx, 0x18
mov byte [rbx + rax + 4], cl
mov rcx, rdx
shr rcx, 0x10
mov byte [rbx + rax + 5], cl
add rax, 8
cmp rax, 0x40
jne 0x1400647b4
add rsp, 0xf8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400651d0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x38
mov rax, r8
mov r9d, edx
lea r8d, [rcx - 0x7f2bb700]
test rax, rax
lea rdx, [0x1400a99a0]
je 0x140065204
mov qword [rsp + 0x20], rax
lea rcx, str._s:___08X____lu_for__s_
call fcn.1400380b9
nop
add rsp, 0x38
ret
lea rcx, str._s:___08X____lu_
add rsp, 0x38
jmp fcn.1400380b9

Function at 0x140066fa5
Capabilities:
Encode data using xor

Disassembly:
lea r9, [0x1400a9be0]
jmp fcn.140066ed0

Function at 0x14006cf66
Capabilities:
Read file on windows

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x48
mov eax, 0xffffffff
mov r12, r9
mov rbx, rdx
mov rsi, r8
mov rdi, r9
imul r12, rdx
cmp rax, r12
jae 0x14006cf97
lea rcx, str.read_sectors:_nSectors_x_SectorSize_is_too_big_n
call fcn.1400380b9
jmp 0x14006cfd6
mov eax, r9d
mov qword [rsp + 0x70], rcx
xor r9d, r9d
imul eax, edx
imul rdx, r8
xor r8d, r8d
mov dword [rsp + 0x3c], eax
call qword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
mov rcx, qword [rsp + 0x70]
test eax, eax
jne 0x14006cfdc
call fcn.140038579
mov rdx, rsi
lea rcx, str.read_sectors:_Could_not_access_sector_0x_08I64x____s_n
mov r8, rax
call fcn.1400380b9
or rax, 0xffffffffffffffff
jmp 0x14006d059
xor eax, eax
mov r8d, dword [rsp + 0x3c]
lea r9, [rsp + 0x3c]
mov rdx, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x14006d008
mov eax, dword [rsp + 0x3c]
cmp r12, rax
je 0x14006d055
call qword [sym.imp.KERNEL32.DLL_GetLastError]
lea rdx, [0x1400b1402]
test eax, eax
je 0x14006d021
call fcn.140038579
mov rdx, rax
lea rcx, str.read_sectors:_Read_error__s_n
call fcn.1400380b9
mov edx, dword [rsp + 0x3c]
mov r8, r12
lea rcx, str.__Read:__d__Expected:__I64u_n
call fcn.1400380b9
mov r9, rbx
mov r8, rdi
mov rdx, rsi
lea rcx, str.__StartSector:_0x_08I64x__nSectors:_0x_I64x__SectorSize:_0x_I64x_n
call fcn.1400380b9
mov eax, dword [rsp + 0x3c]
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r12
ret
Function at 0x14006e8a8
Capabilities:
Query environment variable

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
xor eax, eax
mov r9, rcx
mov r12d, edx
mov rbx, r8
test rcx, rcx
je 0x14006e9a7
cmp byte [rcx], 0
lea rbp, [rsp + 0x20]
lea rsi, [rsp + 0x2c]
jne 0x14006e8ff
cmp byte [rcx + 1], 0
jne 0x14006e8ff
cmp byte [rcx + 2], 0
jne 0x14006e8ff
cmp byte [rcx + 3], 0
jne 0x14006e8ff
cmp byte [rcx + 4], 0
jne 0x14006e8ff
cmp byte [rcx + 5], 0
jne 0x14006e8ff
xor edx, edx
mov qword [rsp + 0x20], rdx
jmp 0x14006e982
xor eax, eax
mov ecx, 9
mov rdi, rbx
rep stosd dword [rdi], eax
lea rcx, [0x1400b19a8]
movzx eax, byte [r9]
mov dword [rbx + 0x14], eax
movzx eax, byte [r9 + 1]
dec eax
mov dword [rbx + 0x10], eax
movzx eax, byte [r9 + 2]
mov dword [rbx + 0xc], eax
movzx eax, byte [r9 + 3]
mov dword [rbx + 8], eax
movzx eax, byte [r9 + 4]
mov dword [rbx + 4], eax
movsx eax, byte [r9 + 6]
movzx edx, byte [r9 + 5]
mov dword [rbx + 0x20], 0xffffffff
imul eax, eax, 0xfffffc7c
add eax, edx
mov dword [rbx], eax
xor eax, eax
mov qword [rsp + 0x20], rax
call sub.msvcrt.dll_getenv
call sub.msvcrt.dll__tzset
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__mktime64]
mov rdi, rax
call sub.msvcrt.dll__tzset
mov qword [rsp + 0x20], rdi
test r12b, r12b
je 0x14006e990
mov rdx, rbp
mov rcx, rsi
call qword [0x140084c30]
jmp 0x14006e99b
mov rdx, rsi
mov rcx, rbp
call fcn.14006e89e
mov ecx, 9
mov rdi, rbx
mov al, 1
rep movsd dword [rdi], dword [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140075fd0
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 fcn.1400787b0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400787b0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x140076040
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1401196c4]
mov rbx, rcx
test esi, esi
jle 0x140076170
mov rax, qword [0x1401196c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14007608b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140076115
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140076070
mov rcx, rbx
call fcn.140076ab0
mov rdi, rax
test rax, rax
je 0x140076192
mov rax, qword [0x1401196c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140076bf0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1401196c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.DLL_VirtualQuery]
test rax, rax
je 0x140076177
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14007610e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140076120
add dword [0x1401196c4], 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 [0x1401196c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.DLL_VirtualProtect]
test eax, eax
jne 0x14007610e
call qword [sym.imp.KERNEL32.DLL_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140075fd0
nop dword [rax]
xor esi, esi
jmp 0x140076098
mov rax, qword [0x1401196c8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140075fd0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140075fd0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140076720
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140119720]
mov rcx, r12
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov rbx, qword [0x140119700]
test rbx, rbx
je 0x14007677c
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 0x140076773
test eax, eax
jne 0x140076773
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140076758
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 0x140076ab0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140076b30
Capabilities:
Parse pe header

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

Function at 0x140076bf0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400b44c0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140076c0f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140076c18
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14000a1e0
Capabilities:
Encode data using xor

Disassembly:
push 0x5f
test byte [rdi - 0x5a6c6862], dl
xchg edi, eax
and byte [rcx + 0x52a597a6], 0xa1
movsb byte [rdi], byte [rsi]
push rdx
cmpsb byte [rsi], byte [rdi]
invalid
Function at 0x140016e50
Capabilities:
Terminate process

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, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140161b60], rbx
je 0x140016eb7
cmp rax, rbx
jne 0x140016eaa
mov ebx, 1
mov esi, ebx
jmp 0x140016ebc
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x140016e8f
mov ebx, 1
mov eax, dword [0x140161b68]
cmp eax, ebx
jne 0x140016ed4
mov edi, 0x1f
mov ecx, edi
call fcn.1401fe000
jmp 0x140016f40
mov eax, dword [0x140161b68]
test eax, eax
jne 0x140016f35
mov dword [0x140161b68], ebx
lea r15, [0x1400fb010]
lea rdi, [0x1400faff8]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x140016f27
test eax, eax
jne 0x140016f2b
cmp qword [rdi], r14
je 0x140016f1c
mov rax, qword [rdi]
mov rcx, qword [0x1400faf30]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x140016efe
test eax, eax
je 0x140016f3b
mov eax, 0xff
jmp 0x140017096
mov dword [0x140161554], ebx
mov edi, 0x1f
mov eax, dword [0x140161b68]
cmp eax, ebx
jne 0x140016f67
lea rdx, [0x1400faff0]
lea rcx, [0x1400faf38]
call sub.msvcrt.dll__initterm
mov dword [0x140161b68], 2
test esi, esi
jne 0x140016f75
mov rax, r14
xchg qword [0x140161b60], rax
cmp qword [0x140161b80], r14
je 0x140016fa8
lea rcx, [0x140161b80]
call fcn.140017970
test eax, eax
je 0x140016fa8
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140161b80]
mov r9, qword [0x1400faf30]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x140016fc1
mov eax, 0xff
jmp 0x140017096
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x140017047
test ax, ax
je 0x140016fdc
test edx, edx
jne 0x140017047
sub ax, bx
cmp ax, di
ja 0x140016ff2
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x140016fdc
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140014730
mov dword [0x140161550], eax
cmp dword [0x140161570], r14d
jne 0x140017030
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140161554], r14d
jne 0x140017045
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140161550]
jmp 0x140017096
cmp ax, 0x22
jne 0x14001705b
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x140016fca
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.140017a04
add rsp, 0x28
jmp 0x140016e50
Function at 0x14000a7f0
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 fcn.140011300
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140011300
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x14000a860
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14008d0a4]
mov rbx, rcx
test esi, esi
jle 0x14000a990
mov rax, qword [0x14008d0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000a8ab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000a935
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000a890
mov rcx, rbx
call fcn.14000b2b0
mov rdi, rax
test rax, rax
je 0x14000a9b2
mov rax, qword [0x14008d0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000b3f0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14008d0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000a997
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000a92e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000a940
add dword [0x14008d0a4], 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 [0x14008d0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000a92e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000a7f0
nop dword [rax]
xor esi, esi
jmp 0x14000a8b8
mov rax, qword [0x14008d0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000a7f0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000a7f0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000af20
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14008d100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14008d0e0]
test rbx, rbx
je 0x14000af7c
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 0x14000af73
test rsi, rsi
je 0x14000af73
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000af58
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 0x14000b2b0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x14000b330
Capabilities:
Parse pe header

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

Function at 0x14000b3f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140084e40]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000b40f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000b418
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140011bd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
xor esi, esi
movsxd rax, dword [rcx + 0x3c]
mov edi, dword [rcx + rax + 0x88]
add rdi, rcx
mov rbx, rcx
mov rbp, rdx
mov r12d, dword [rdi + 0x20]
mov r13d, dword [rdi + 0x18]
add r12, rcx
cmp esi, r13d
jae 0x140011c3c
mov edx, dword [r12 + rsi*4]
mov rcx, rbp
add rdx, rbx
call sub.msvcrt.dll_strcmp
mov edx, eax
lea rax, [rsi + 1]
test edx, edx
jne 0x140011c37
mov eax, dword [rdi + 0x24]
add rsi, rsi
add rsi, rbx
movzx edx, word [rsi + rax]
mov eax, dword [rdi + 0x1c]
lea rdx, [rbx + rdx*4]
mov eax, dword [rdx + rax]
add rax, rbx
jmp 0x140011c3e
mov rsi, rax
jmp 0x140011bfd
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x140011c50
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x438
mov r14, qword [sym.imp.msvcrt.dll_wcscpy_s]
xor r13d, r13d
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rbx, qword [rax + 0x20]
lea r15, [rax + 0x20]
mov r12, rcx
lea rsi, [rsp + 0x228]
lea rbp, [rsp + 0x20]
cmp rbx, r15
je 0x140011ce5
mov eax, r13d
mov ecx, 0x82
mov rdi, rbp
mov edx, 0x104
rep stosd dword [rdi], eax
mov ecx, 0x82
mov rdi, rsi
rep stosd dword [rdi], eax
mov rcx, rbp
mov r8, qword [rbx + 0x40]
call r14
mov edx, 0x104
mov rcx, rsi
mov r8, r12
call r14
mov rdx, rbp
mov rcx, rsi
call fcn.140011b00
test eax, eax
je 0x140011ce0
mov rax, qword [rbx + 0x20]
jmp 0x140011ce7
mov rbx, qword [rbx]
jmp 0x140011c92
xor eax, eax
add rsp, 0x438
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140011d20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
xor esi, esi
movsxd rax, dword [rcx + 0x3c]
mov edi, dword [rcx + rax + 0x88]
add rdi, rcx
mov rbx, rcx
mov r12d, edx
mov r13d, dword [rdi + 0x20]
mov ebp, dword [rdi + 0x1c]
add r13, rcx
cmp esi, ebp
jae 0x140011d86
mov ecx, dword [r13 + rsi*4]
add rcx, rbx
call fcn.140011ac0
mov edx, eax
lea rax, [rsi + 1]
cmp edx, r12d
jne 0x140011d81
mov eax, dword [rdi + 0x24]
add rsi, rsi
add rsi, rbx
movzx eax, word [rsi + rax]
lea rax, [rbx + rax*4]
mov eax, dword [rax + rbp]
add rax, rbx
jmp 0x140011d88
mov rsi, rax
jmp 0x140011d4c
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x14001e310
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x14001f1c0]
jmp 0x14000c100

Function at 0x14001e320
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x14001f1c0]
jmp 0x14000c100