joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001b070
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x1800537d0]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x18001b0d3
mov qword [rsp], rbx
lea rbx, [0x180046ba0]
nop dword [rax]
cmp r9b, 0x23
jne 0x18001b0b3
cmp byte [r8], r9b
jne 0x18001b0b3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x18001b0a0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5f40]
not eax
mov r8, qword [r10 + 0x5f48]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x18001b0ff
cmp dword [r8 + 8], eax
je 0x18001b106
add r8, 0x48
cmp r8, rcx
jne 0x18001b0f0
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x18003c930
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x70
mov rax, qword [0x180053040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [0x1800537d0]
mov rbp, rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x18003cb4e
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x18003cb4e
mov qword [rsp + 0x80], rbx
mov ecx, 0x50
mov qword [rsp + 0x88], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, qword [0x1800537d0]
xor ebx, ebx
mov rdi, rax
test r8, r8
je 0x18003ca04
movsx rdx, word [r8 + 0x60a8]
lea rax, [r8 + 0x60ac]
mov r9d, dword [r8 + 0x3f60]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x18003c9f9
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x60a8], cx
movsx rax, cx
lea rax, [rax*8 + 0x60ac]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x60a0]
test rdi, rdi
je 0x18003ca21
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x40], xmm0
jmp 0x18003ca24
mov rdi, rbx
or dword [rsi + 0xc], 6
lea rax, [0x18004b968]
mov qword [rsi + 0x80], rax
mov qword [rsi + 0x90], rdi
mov qword [rdi], rbp
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x60]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
test r8, r8
je 0x18003ca67
mov rsi, qword [r8 + 0x90]
jmp 0x18003ca6a
mov rsi, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rsi + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x18003ca95
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x1800537d0]
mov rcx, qword [rax + 0x4b00]
mov rax, qword [rcx]
mov qword [rax + 0x28], rbp
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x30], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x38], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x48], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x50], rax
mov byte [rdi + 0x31], 1
nop word [rax + rax]
mov rcx, qword [rsp + rbx*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x18003cb0e
inc rbx
cmp rbx, 5
jl 0x18003caf0
jmp 0x18003cb3a
lea rdx, str.XInputGetCapabilities
mov qword [rdi + 0x38], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rsi
mov qword [rdi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x48], rax
mov rdi, qword [rsp + 0x88]
mov al, 1
mov rbx, qword [rsp + 0x80]
jmp 0x18003cb50
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180043080
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret
Function at 0x18003ef40
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
je 0x18003ef50
xor eax, eax
add rsp, 0x38
ret
xor eax, eax
lea r8, [0x18003eec0]
mov r9, rcx
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret

Function at 0x180041460
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
add rdx, 0xffffffffffff0000
mov rdi, rcx
movzx eax, dx
mov rbx, rdx
sub rbx, rax
test rax, rax
cmove rbx, rdx
cmp rbx, rcx
jbe 0x18004153b
nop dword [rax]
cmp rbx, qword [section..data]
jb 0x1800414ae
cmp rbx, qword [0x180053008]
ja 0x1800414ae
sub rbx, 0x8000000
jmp 0x180041532
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18004153b
cmp dword [rsp + 0x40], 0x10000
jne 0x180041516
cmp qword [rsp + 0x38], 0x10000
jb 0x180041516
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x18004153d
sub rbx, 0x10000
jmp 0x180041532
mov rcx, qword [rsp + 0x28]
add rcx, 0xffffffffffff0000
movzx eax, cx
mov rbx, rcx
sub rbx, rax
test rax, rax
cmove rbx, rcx
cmp rbx, rdi
ja 0x180041490
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x180041550
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
movzx eax, cx
mov rdi, rdx
mov rbx, rcx
test rax, rax
je 0x180041572
sub rbx, rax
add rbx, 0x10000
cmp rbx, rdi
jae 0x18004162d
nop dword [rax + rax]
cmp rbx, qword [section..data]
jb 0x18004159e
cmp rbx, qword [0x180053008]
ja 0x18004159e
add rbx, 0x8000000
jmp 0x180041624
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18004162d
cmp dword [rsp + 0x40], 0x10000
mov rcx, qword [rsp + 0x38]
jne 0x180041609
cmp rcx, 0x10000
jb 0x180041609
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x18004162f
add rbx, 0x10000
jmp 0x180041624
mov rbx, qword [rsp + 0x20]
add rbx, rcx
movzx ecx, bx
test rcx, rcx
je 0x180041624
mov eax, 0x10000
sub rax, rcx
add rbx, rax
cmp rbx, rdi
jb 0x180041580
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x180041640
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
lea rdi, [rcx - 0x7ff80000]
mov rbx, rcx
cmp rcx, 0x7ff80000
ja 0x180041662
mov edi, 0x80000
mov qword [rsp + 0x38], rsi
lea rsi, [rcx + 0x7ff80000]
cmp rbx, 0xffffffff80000000
jb 0x18004167e
mov rsi, 0xfffffffffff80000
movzx eax, byte [rcx]
cmp al, 0xff
jne 0x180041695
cmp byte [rcx + 1], 0x25
jne 0x1800416d9
movsxd rcx, dword [rcx + 2]
add rcx, 6
jmp 0x1800416a1
cmp al, 0xe9
jne 0x1800416d9
movsxd rcx, dword [rcx + 1]
add rcx, 5
add rcx, rbx
cmp rcx, rbx
jae 0x1800416c4
cmp rcx, 0xffffffff80000000
jae 0x1800416bb
lea rsi, [rcx + 0x7ff80000]
jmp 0x1800416d9
mov rsi, 0xfffffffffff80000
jmp 0x1800416d9
lea rdi, [rcx - 0x7ff80000]
cmp rcx, 0x7ff80000
ja 0x1800416d9
mov edi, 0x80000
mov rdx, qword [0x180053198]
mov rax, qword [0x180053190]
mov qword [rsp + 0x30], rbp
test rdx, rdx
jne 0x180041700
test rax, rax
je 0x180041717
mov rdx, rax
mov qword [0x180053198], rax
mov rcx, qword [rdx + 0x10]
test rcx, rcx
je 0x180041717
cmp rcx, rdi
jb 0x180041717
cmp rcx, rsi
jbe 0x18004186a
mov qword [0x180053198], rax
mov rdx, rax
test rax, rax
je 0x180041762
mov rcx, rax
nop dword [rax]
test rax, rax
je 0x18004174c
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x18004174c
cmp rax, rdi
jb 0x18004174c
cmp rax, rsi
jbe 0x18004186a
mov rdx, qword [rdx + 8]
mov qword [0x180053198], rdx
mov rcx, rdx
mov rax, rdx
test rdx, rdx
jne 0x180041730
movzx eax, bx
sub rbx, rax
cmp rbx, 0x40000000
jbe 0x18004178c
lea rdx, [rbx - 0x40000000]
mov rcx, rdi
call fcn.180041460
mov rdx, rax
test rax, rax
jne 0x180041818
movabs rbp, 0xffffffff40000000
cmp rbx, rbp
jae 0x1800417b2
lea rcx, [rbx + 0x40000000]
mov rdx, rsi
call fcn.180041550
mov rdx, rax
test rax, rax
jne 0x180041818
cmp rbx, 0x40000000
jbe 0x1800417d2
lea rcx, [rbx - 0x40000000]
mov rdx, rbx
call fcn.180041550
mov rdx, rax
test rax, rax
jne 0x180041818
cmp rbx, rbp
jae 0x1800417ee
lea rdx, [rbx + 0x40000000]
mov rcx, rbx
call fcn.180041460
mov rdx, rax
test rax, rax
jne 0x180041818
mov rdx, rbx
mov rcx, rdi
call fcn.180041460
mov rdx, rax
test rax, rax
jne 0x180041818
mov rdx, rsi
mov rcx, rbx
call fcn.180041550
mov rdx, rax
test rax, rax
je 0x1800418a1
mov dword [rdx], 0x52727464
lea rcx, [rdx + 0xffa8]
xor r8d, r8d
mov qword [0x180053198], rdx
mov qword [rdx + 0x10], r8
mov r9d, 0x2a7
mov rax, qword [0x180053190]
mov qword [rdx + 8], rax
lea rax, [rdx + 0xff60]
mov qword [0x180053190], rdx
mov qword [rcx], r8
lea rcx, [rcx - 0x60]
mov r8, rax
sub rax, 0x60
sub r9, 1
jne 0x180041852
mov qword [rdx + 0x10], r8
mov rax, qword [rdx + 0x10]
cmp rax, rdi
jb 0x1800418a1
cmp rax, rsi
ja 0x1800418a1
mov rcx, qword [rax + 0x48]
movdqa xmm0, xmmword [0x180045670]
mov qword [rdx + 0x10], rcx
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
jmp 0x1800418a3
xor eax, eax
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180041b00
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop
mov eax, 0x5a4d
mov rcx, qword [rsp + 0x28]
cmp word [rcx], ax
je 0x180041b2e
xor al, al
jmp 0x180041b70
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
je 0x180041b3f
xor al, al
jmp 0x180041b70
mov r8d, dword [rdx + rcx + 0xe8]
lea rax, [r8 + rcx]
cmp rbx, rax
jb 0x180041b66
mov eax, dword [rdx + rcx + 0xec]
add rax, r8
add rax, rcx
cmp rbx, rax
jae 0x180041b66
mov al, 1
jmp 0x180041b70
xor al, al
add rsp, 0x50
pop rbx
ret
add rsp, 0x50
pop rbx
ret
Function at 0x180042050
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rsi
sub rsp, 0x28
mov rbp, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1800531a8], eax
je 0x180042077
mov eax, 0x10dd
add rsp, 0x28
pop rsi
pop rbp
ret
mov eax, dword [0x1800531ac]
test eax, eax
jne 0x1800421b3
test rbp, rbp
jne 0x180042094
lea eax, [rbp + 0x57]
add rsp, 0x28
pop rsi
pop rbp
ret
test rsi, rsi
je 0x1800420b0
cmp qword [rsi], 0
jne 0x1800420bc
mov dword [0x1800531ac], 6
mov qword [0x1800531b0], rsi
mov eax, 6
add rsp, 0x28
pop rsi
pop rbp
ret
mov qword [rsp + 0x40], rbx
mov ecx, 0x30
mov qword [rsp + 0x20], rdi
call fcn.1800430a0
mov rdi, rax
test rax, rax
jne 0x1800420e0
lea ebx, [rax + 8]
jmp 0x180042188
mov rcx, qword [rsi]
xor edx, edx
call fcn.180041fa0
xor edx, edx
mov rcx, rbp
mov rbx, rax
call fcn.180041fa0
movzx edx, byte [rbx + 0x3e]
mov rbp, qword [rbx + 0x48]
sub rbp, rdx
test dl, dl
je 0x18004217a
cmp rdx, 0x1e
ja 0x18004217a
cmp qword [rbx + 0x50], rax
jne 0x18004217a
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], 0
mov r8d, 0x40
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18004213c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180042188
mov qword [rdi + 0x20], rbx
mov rbx, qword [rsp + 0x40]
mov dword [rdi + 8], 1
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rbp
mov eax, dword [rsp + 0x50]
mov dword [rdi + 0x28], eax
mov rax, qword [0x1800531c0]
mov qword [rdi], rax
xor eax, eax
mov qword [0x1800531c0], rdi
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbp
ret
cmp dword [0x1800531a0], 0
mov ebx, 9
jne 0x180042193
mov dword [0x1800531ac], ebx
test rdi, rdi
je 0x1800421a0
mov edx, 0x30
mov rcx, rdi
call fcn.180043454
mov rdi, qword [rsp + 0x20]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov qword [0x1800531b0], rsi
add rsp, 0x28
pop rsi
pop rbp
ret

Function at 0x1800421c0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x28
cmp dword [0x1800531a8], 0
jne 0x180042267
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
xor eax, eax
lock cmpxchg dword [0x1800531a8], ecx
jne 0x180042267
mov qword [rsp + 0x38], rbx
mov rbx, qword [0x180053190]
mov qword [rsp + 0x20], rdi
xor edi, edi
mov qword [0x1800531c0], rdi
mov qword [0x1800531b8], rdi
mov qword [0x1800531b0], rdi
test rbx, rbx
je 0x180042250
nop word [rax + rax]
lea r9, [rsp + 0x30]
mov edx, 0x10000
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180042248
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x180042220
jmp 0x180042250
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rbx, qword [rsp + 0x38]
mov eax, edi
mov dword [0x1800531ac], edi
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
mov eax, 0x10dd
add rsp, 0x28
ret
Function at 0x180042880
Capabilities:
Suspend thread

Disassembly:
push rdi
sub rsp, 0x20
mov eax, dword [0x1800531ac]
mov rdi, rcx
test eax, eax
jne 0x180042923
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp rdi, rax
jne 0x1800428aa
xor eax, eax
add rsp, 0x20
pop rdi
ret
mov ecx, 0x10
mov qword [rsp + 0x30], rbx
call fcn.1800430a0
mov rbx, rax
test rax, rax
jne 0x1800428c6
lea edi, [rax + 8]
jmp 0x1800428e9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x180042907
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov edx, 0x10
mov rcx, rbx
call fcn.180043454
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov dword [0x1800531ac], edi
mov qword [0x1800531b0], 0
add rsp, 0x20
pop rdi
ret
mov rax, qword [0x1800531b8]
mov qword [rbx], rax
xor eax, eax
mov qword [rbx + 8], rdi
mov qword [0x1800531b8], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14165c160
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14165c16d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14165c17d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14165c165
lea eax, [rcx + 1]
jmp 0x14165c18b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14165c19e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14165c184
sub eax, 3
jb 0x14165c1be
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14165c20d
sar eax, 1
movsxd rbp, eax
jb 0x14165c1f4
jmp 0x14165c1cc
add ebx, ebx
jne 0x14165c1ca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14165c1f4
inc ecx
add ebx, ebx
jne 0x14165c1da
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14165c1f4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14165c1ed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14165c1dc
add ecx, 2
jmp 0x14165c1f9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14165c122
jmp 0x14165c16d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
sub rsp, 0x28
lea rdi, [rsi + 0x1623000]
mov eax, dword [rdi]
or eax, eax
je 0x14165c279
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1664930]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14165c21d
jns 0x14165c252
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14165c25c
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14165c273
mov qword [rbx], rax
add rbx, 8
jmp 0x14165c23d
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14165c2bd
cmp al, 0xef
ja 0x14165c2a5
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14165c285
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x14165c294
mov eax, dword [rdi]
add rdi, 4
jmp 0x14165c294
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x237]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.14165c33c], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.14165c33c
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14165c32c
sub rsp, 0xffffffffffffff80
jmp 0x1400c1da4