joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140070400
Capabilities:
Hash data using fnv

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x140109010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, r9
mov r9, r8
mov r15, rdx
mov rsi, rcx
mov qword [rsp + 0x20], rcx
movzx edx, byte [r8]
movabs rax, 0xcbf29ce484222325
xor rdx, rax
movabs rcx, 0x100000001b3
imul rdx, rcx
movzx eax, byte [r8 + 1]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [r8 + 2]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [r8 + 3]
xor rdx, rax
imul rdx, rcx
mov r8, qword [rsi + 0x30]
and r8, rdx
mov rbx, qword [rsi + 8]
mov rax, r8
add rax, rax
mov rdx, qword [rsi + 0x18]
mov rcx, qword [rdx + rax*8]
cmp rbx, rcx
je 0x1400704e2
mov rbx, qword [rdx + rax*8 + 8]
mov rbx, qword [rbx]
nop
cmp rbx, rcx
je 0x1400704e2
mov rbx, qword [rbx + 8]
mov eax, dword [rbx + 0x10]
cmp dword [r9], eax
jne 0x1400704a0
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi]
mov qword [rdx], rcx
mov rdx, qword [rdi]
mov rcx, qword [rdi + 8]
mov qword [rdx + 8], rcx
dec qword [rsi + 0x10]
mov rdx, rdi
call fcn.1400692f0
mov qword [r15], rbx
mov byte [r15 + 8], 0
mov rax, r15
jmp 0x14007060b
mov qword [rsp + 0x40], rdi
mov rax, qword [rdi]
cmp rbx, rax
je 0x14007051c
mov rcx, qword [rdi + 8]
mov qword [rcx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rbx
mov rcx, qword [rbx + 8]
mov qword [rcx], rdi
mov rdx, qword [rbx + 8]
mov rcx, qword [rax + 8]
mov qword [rbx + 8], rcx
mov rcx, qword [rdi + 8]
mov qword [rax + 8], rcx
mov qword [rdi + 8], rdx
add r8, r8
mov rdx, qword [rsi + 0x18]
mov rax, qword [rdx + r8*8]
cmp rax, qword [rsi + 8]
jne 0x14007053c
mov qword [rdx + r8*8], rdi
mov rax, qword [rsi + 0x18]
mov qword [rax + r8*8 + 8], rdi
jmp 0x14007056b
cmp rax, rbx
jne 0x140070547
mov qword [rdx + r8*8], rdi
jmp 0x14007056b
mov rax, qword [rdx + r8*8 + 8]
mov rcx, qword [rax]
mov qword [rdx + r8*8 + 8], rcx
cmp rcx, rdi
je 0x14007056b
mov rdx, qword [rsi + 0x18]
mov rax, qword [rdx + r8*8 + 8]
mov rcx, qword [rax + 8]
mov qword [rdx + r8*8 + 8], rcx
mov rax, qword [rsi + 0x10]
mov rdx, qword [rsi + 0x38]
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
movss xmm1, dword [0x1400cbd20]
test rax, rax
jns 0x14007058c
addss xmm0, xmm1
xorps xmm2, xmm2
cvtsi2ss xmm2, rdx
test rdx, rdx
jns 0x14007059d
addss xmm2, xmm1
divss xmm0, xmm2
comiss xmm0, dword [rsi]
jbe 0x140070600
cmp rdx, 0x200
jae 0x1400705b9
lea rdx, [rdx*8]
jmp 0x1400705cb
movabs rax, 0xfffffffffffffff
cmp rdx, rax
jae 0x1400705cb
add rdx, rdx
mov rcx, rsi
call fcn.140012e00
mov rax, qword [rsi + 8]
cmp qword [rax], rax
je 0x140070600
mov r14, qword [rax + 8]
mov rbx, qword [rsi + 8]
mov rbx, qword [rbx]
lea r8, [rbx + 0x10]
mov r9, rbx
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140070400
cmp rbx, r14
jne 0x1400705e0
mov qword [r15], rdi
mov byte [r15 + 8], 1
mov rax, r15
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140093940
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140075c20
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov r9, rcx
movzx edx, byte [r8 + 0x10]
movabs rcx, 0x100000001b3
movabs rax, 0xcbf29ce484222325
xor rdx, rax
movzx eax, byte [r8 + 0x11]
mov r10, qword [r9 + 0x30]
imul rdx, rcx
xor rdx, rax
movzx eax, byte [r8 + 0x12]
imul rdx, rcx
xor rdx, rax
movzx eax, byte [r8 + 0x13]
imul rdx, rcx
xor rdx, rax
imul rdx, rcx
mov rcx, qword [r9 + 0x18]
and r10, rdx
shl r10, 4
add rcx, r10
mov rax, qword [rcx]
cmp qword [rcx + 8], r8
jne 0x140075cb4
cmp rax, r8
jne 0x140075caa
mov rax, qword [r9 + 8]
mov qword [rcx], rax
mov rcx, qword [r9 + 0x18]
mov rax, qword [r9 + 8]
mov qword [r10 + rcx + 8], rax
jmp 0x140075cbf
mov rax, qword [r8 + 8]
mov qword [rcx + 8], rax
jmp 0x140075cbf
cmp rax, r8
jne 0x140075cbf
mov rax, qword [r8]
mov qword [rcx], rax
mov rcx, qword [r8 + 8]
mov rbx, qword [r8]
mov qword [rcx], rbx
mov rdx, qword [r8]
mov rcx, qword [r8 + 8]
mov qword [rdx + 8], rcx
mov rdx, r8
dec qword [r9 + 0x10]
call fcn.1400692f0
mov qword [rdi], rbx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140075d00
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x140075d36
call fcn.14003b030
mov rcx, qword [rbx + 8]
mov r8b, 1
movzx edx, r8b
call qword [sym.imp.DuiLib.dll_public:_void___cdecl_DuiLib::CWindowWnd::ShowWindow_bool__bool____ptr64]
mov rcx, qword [rbx + 8]
add rsp, 0x20
pop rbx
jmp fcn.14005dca0
add rsp, 0x20
pop rbx
ret
Function at 0x140084c60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
push r15
mov rsi, qword [rsp + 0x48]
xor ebp, ebp
mov rax, qword [rsp + 0x50]
mov r12, r9
mov r11, qword [rsp + 0x60]
mov r13, r8
mov r14, rdx
mov qword [rsi], r8
mov qword [r11], rax
mov rax, qword [rsi]
cmp rax, r9
je 0x140084df4
mov r15, qword [rsp + 0x58]
lea r8d, [rbp + 1]
mov rbx, qword [r11]
mov r9d, 0x3ff
mov r10d, 0x2400
cmp rbx, r15
je 0x140084df4
movzx edx, word [r14]
xor dil, dil
movzx ecx, word [rax]
cmp r8w, dx
jae 0x140084cfa
lea eax, [r10 + rcx]
cmp ax, r9w
ja 0x140084e1a
movzx eax, dx
movzx ecx, cx
shl eax, 0xa
sub ecx, 0xdc00
or eax, ecx
jmp 0x140084d16
mov edx, 0x2800
movzx eax, cx
add cx, dx
cmp cx, r9w
ja 0x140084d16
shl eax, 0xa
mov dil, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x140084d29
movzx r9d, al
mov r10d, ebp
mov r8d, ebp
jmp 0x140084d73
mov r9d, eax
cmp eax, 0x800
jae 0x140084d40
shr r9d, 6
mov r10d, r8d
or r9b, 0xc0
jmp 0x140084d73
cmp eax, 0x10000
jae 0x140084d5a
shr r9d, 0xc
mov r10d, 2
or r9b, 0xe0
mov r8d, r10d
jmp 0x140084d73
shr r9d, 0x12
mov r10d, 3
movzx r8d, dil
or r9b, 0xf0
xor r8d, 1
add r8d, r8d
inc r8d
mov rdx, r15
sub rdx, rbx
mov ecx, r8d
cmp rdx, rcx
jl 0x140084df4
add qword [rsi], 2
test dil, dil
jne 0x140084d93
cmp r10d, 3
jae 0x140084d9f
mov rcx, qword [r11]
mov byte [rcx], r9b
inc qword [r11]
dec r8d
test r8d, r8d
jle 0x140084dd1
lea r9d, [r10 + r10*2]
add r9d, r9d
nop dword [rax + rax]
sub r9d, 6
mov edx, eax
mov ecx, r9d
dec r8d
shr edx, cl
mov rcx, qword [r11]
and dl, 0x3f
or dl, 0x80
mov byte [rcx], dl
inc qword [r11]
test r8d, r8d
jg 0x140084db0
mov r8d, 1
test dil, dil
je 0x140084de1
shr eax, 0xa
jmp 0x140084de4
mov eax, r8d
mov word [r14], ax
mov rax, qword [rsi]
cmp rax, r12
jne 0x140084cb1
cmp r13, qword [rsi]
sete bpl
mov eax, ebp
mov rbx, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
pop r15
pop r14
pop r13
pop r12
ret
mov eax, 2
jmp 0x140084dfd
Function at 0x140092680
Capabilities:
Get token membership

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x140109010]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor ebx, ebx
mov word [rsp + 0x6c], 0x500
lea rax, [rsp + 0x60]
mov dword [rsp + 0x70], ebx
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x68]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0x68], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, 1
jne 0x140092710
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov rcx, qword [rsp + 0x60]
mov eax, 1
cmp dword [rsp + 0x70], eax
cmove ebx, eax
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, ebx
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140093940
add rsp, 0x80
pop rbx
ret
Function at 0x140092ae0
Capabilities:
Get user security identifier

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x290
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x140109010]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov r14, rdx
mov rbx, rcx
mov qword [rsp + 0x50], rcx
xor ebp, ebp
mov dword [rsp + 0x40], ebp
mov dword [rsp + 0x58], 0x104
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], 7
mov word [rcx], bp
lea rdx, [0x1400b6790]
call sym.HwSettings.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const__const___ptr64____ptr64
mov dword [rsp + 0x40], 1
mov ecx, dword [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140092c0e
mov ecx, dword [rsp + 0x58]
mov rdi, rax
xor eax, eax
rep stosb byte [rdi], al
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
lea rdi, [rsp + 0x70]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov dword [rsp + 0x68], 0x104
cmp qword [r14 + 0x18], 8
jb 0x140092ba0
mov r14, qword [r14]
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
mov r8, rsi
mov rdx, r14
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x140092c05
mov qword [rsp + 0x60], rbp
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
cmp eax, 1
jne 0x140092c05
mov rdx, qword [rsp + 0x60]
mov rcx, rbx
call sym.HwSettings.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const__const___ptr64____ptr64
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, rbx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140093940
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140092c40
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x140109010]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov eax, edx
mov qword [rsp + 0x20], rcx
mov rbx, rcx
lea rdx, [rsp + 0x20]
xor esi, esi
mov ecx, eax
mov qword [rsp + 0x20], rsi
mov edi, esi
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
cmp eax, 1
jne 0x140092c96
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov edi, eax
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
lea r8, [rsp + 0x28]
mov dword [rsp + 0x28], 0x104
lea rdx, [rsp + 0x30]
mov ecx, 2
call qword [sym.imp.Secur32.dll_GetUserNameExW]
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140092cea
cmp edi, 1
jne 0x140092cdf
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x20], rsi
mov qword [rbx + 0x10], rsi
lea rdx, [rsp + 0x30]
mov qword [rbx + 0x18], 7
mov rcx, rbx
mov word [rbx], si
call sym.HwSettings.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const__const___ptr64____ptr64
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140093940
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140092f90
Capabilities:
Get token membership

Disassembly:
sub rsp, 0x198
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x140109010]
xor rax, rsp
mov qword [rsp + 0x180], rax
xor ecx, ecx
mov dword [rsp + 0x78], ecx
mov dword [rsp + 0x70], ecx
mov word [rsp + 0x74], 0x500
mov qword [rsp + 0x68], rcx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ecx
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
mov r9d, 0x220
lea r8d, [rcx + 0x20]
mov dl, 2
lea rcx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, 1
jne 0x1400930b3
lea r8, [rsp + 0x78]
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x1400930a8
lea rcx, [rsp + 0x80]
call fcn.1400124e0
nop
lea rdx, str._PsVerifyAdminPrivilege__CheckTokenMembership_Ret:
lea rcx, [rsp + 0x90]
call fcn.1400138a0
mov rcx, rax
xor edx, edx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___int____ptr64]
mov rcx, rax
lea rdx, [0x1400b7d10]
call fcn.1400138a0
mov rcx, rax
lea rdx, str.HWPROCESS6::PsVerifyAdminPrivilege
call fcn.140013a90
mov rcx, rax
lea rdx, [0x1400b7d0c]
call fcn.1400138a0
call qword [sym.imp.LogHelper.dll_public:_static_class_HwLogger____ptr64___cdecl_HwLogger::GetInstance_void_]
mov rcx, rax
lea r8, [rsp + 0x80]
mov edx, 3
call qword [sym.imp.LogHelper.dll_public:_void___cdecl_HwLogger::Log_enum_LOG_MESSAGE_LEVEL__class_std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64____ptr64]
nop
lea rcx, [rsp + 0x80]
call fcn.14000e840
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x78]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140093940
add rsp, 0x198
ret
Function at 0x140007330
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x50
mov rax, qword [0x14000b010]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor esi, esi
mov edx, 0x1000
xor ecx, ecx
mov dword [rsp + 0x40], esi
mov r8d, edx
mov word [rsp + 0x38], si
lea r9d, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x140007453
mov qword [rsp + 0x60], rdi
lea r9, [rsp + 0x40]
mov al, 0xcc
mov rdi, rbx
mov ecx, 0x1000
mov edx, 0x1000
rep stosb byte [rdi], al
mov rcx, rbx
mov r8d, 0x10
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400073ba
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor al, al
jmp 0x14000744e
mov byte [rsp + 0x39], 1
mov edi, 3
mov qword [rsp + 0x28], rsi
lea r9, [rsp + 0x38]
lea r8, [0x1400072b0]
mov dword [rsp + 0x20], esi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
sub rdi, 1
jne 0x1400073c4
mov byte [rsp + 0x3c], sil
mov edi, esi
cmp byte [rsp + 0x38], sil
jne 0x140007433
mov r9d, 1
mov qword [rsp + 0x20], rsi
lea r8, [rsp + 0x3c]
mov rdx, rbx
lea rcx, [r9 - 2]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140007424
lea rcx, str.OK__n
call fcn.140001020
mov rcx, rbx
call fcn.1400072a0
inc edi
cmp edi, 0x19
jl 0x1400073f0
xor edx, edx
mov byte [rsp + 0x39], sil
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
movzx eax, byte [rsp + 0x38]
mov rdi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140007a30
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rsi
ret
Function at 0x140007470
Capabilities:
Allocate or change rwx memory
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov eax, 0x1490
call fcn.1400087b0
sub rsp, rax
mov rax, qword [0x14000b010]
xor rax, rsp
mov qword [rsp + 0x1480], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ecx, 0x1fffff
mov r8d, eax
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
lea rcx, str.ntdll.dll
mov r14, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor r12d, r12d
lea rdi, [0x14000c568]
mov esi, r12d
mov rbp, rax
mov rbx, rdi
nop word [rax + rax]
mov rdx, qword [rbx - 8]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
inc esi
mov qword [rbx], rax
lea rbx, [rbx + 0x18]
cmp esi, 3
jb 0x1400074f0
xor edx, edx
lea rcx, [rsp + 0x44]
mov r8d, 0x434
lea rbx, [rsp + 0x480]
xor bpl, bpl
call sub.VCRUNTIME140.dll_memset
mov edx, r15d
mov dword [rsp + 0x40], 0x438
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rsp + 0x40]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x14000763b
nop word [rax + rax]
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.USER32.dll_wsprintfW]
movsxd rcx, eax
lea rdx, [rsp + 0x40]
lea rbx, [rbx + rcx*2]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x140007560
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.ntdll
lea rcx, [rsp + 0x480]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
jne 0x1400075c8
lea rdx, str.NTDLL
lea rcx, [rsp + 0x480]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x140007644
mov esi, r12d
nop dword [rax + rax]
mov r8, qword [rdi + 8]
lea rax, [rsp + 0x30]
mov rdx, qword [rdi]
mov r9d, 0x40
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rdx, qword [rdi]
mov rcx, r14
mov r9, qword [rdi + 8]
mov r8, rdx
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9d, dword [rsp + 0x30]
mov rcx, r14
mov r8, qword [rdi + 8]
test eax, eax
mov rdx, qword [rdi]
mov ebx, eax
setne bpl
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test ebx, ebx
je 0x140007644
inc esi
add rdi, 0x18
cmp esi, 3
jb 0x1400075d0
jmp 0x140007644
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, str.___fail_n
test bpl, bpl
lea rcx, str.___patch_success_n
cmove rcx, rax
call fcn.140001020
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140007a30
lea r11, [rsp + 0x1490]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x1400083b0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400083fa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400083fa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400083fa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400083fa
cmp dword [rcx + 0x84], 0xe
jbe 0x1400083fa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400083fc
xor al, al
add rsp, 0x28
ret
Function at 0x140001000
Capabilities:
Create thread
Enumerate processes
Inject thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x290
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor edi, edi
mov dword [rsp + 0x40], 0x238
xor edx, edx
lea ecx, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001193
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x2a0], rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1400010ac
lea rsi, str.GenshinImpact.exe
nop dword [rax]
nop word [rax + rax]
lea rdx, [rsp + 0x6c]
xor eax, eax
nop word [rax + rax]
movzx ecx, word [rdx + rax*2]
cmp cx, word [rsi + rax*2]
jne 0x1400011b4
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [rsi + rax*2 + 2]
jne 0x1400011b4
add rax, 2
cmp rax, 0x12
jne 0x140001080
mov edi, dword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x14000118b
mov r8d, edi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
xor edx, edx
mov dword [rsp + 0x20], 4
mov r9d, 0x1000
mov rcx, rax
mov rdi, rax
lea r8d, [rdx + 7]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9d, 7
mov qword [rsp + 0x20], 0
mov rdx, rax
lea r8, str.gm.dll
mov rcx, rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
test rax, rax
je 0x140001128
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov r9, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor r8d, r8d
mov qword [rsp + 0x30], 0
xor edx, edx
mov dword [rsp + 0x28], 0
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rcx, rax
mov edx, 0xffffffff
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x2a0]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140001600
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x290
pop rdi
ret
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001070
jmp 0x1400010ac
Function at 0x1400011d0
Capabilities:
Execute command
Set registry value
Terminate process

Disassembly:
sub rsp, 0x28
lea rdx, str.Genshin_Impact
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
test rax, rax
je 0x140001232
nop dword [rax + rax]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Sleep_3000
call fcn.140001370
mov rcx, rax
lea rdx, [0x140001540]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, str.Genshin_Impact
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
test rax, rax
jne 0x1400011f0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Genshin_Impact_is_not_running
call fcn.140001370
mov rcx, rax
lea rdx, [0x140001540]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rcx, str.reg_add__HKCUSoftwareMicrosoftWindowsCurrentVersionInternet_Settings___v_ProxyEnable__t_REG_DWORD__d_0__f__nul_2_nul
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.reg_add__HKCUSoftwareMicrosoftWindowsCurrentVersionInternet_Settings___v_ProxyServer__d_____f__nul_2_nul
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Killing_mihoyo.exe
call fcn.140001370
mov rcx, rax
lea rdx, [0x140001540]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rcx, str.taskkill__f__im_mihoyo.exe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3