joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800065d0
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x290
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x1800366f0]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbp, rdx
mov rsi, rcx
xor r12d, r12d
mov word [rsp + 0x70], r12w
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x72]
call fcn.180017210
mov r8d, 0x104
lea rdx, [rsp + 0x70]
mov rcx, qword [0x180037d60]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x180006728
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x70]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test eax, eax
je 0x180006728
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r12
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.180006290
nop
mov rbx, qword [rsp + 0x40]
mov r9, rbx
mov r8d, edi
xor edx, edx
lea rcx, [rsp + 0x70]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x180006697
jmp 0x18000671b
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x24], r12d
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
lea rdx, str.StringFileInfo040904B0ProductName
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x18000671b
lea r9, [rsp + 0x24]
lea r8, [rsp + 0x30]
lea rdx, str.StringFileInfo040904B0ProductVersion
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x18000671b
mov r8d, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
mov rcx, rsi
call fcn.180001750
mov r8d, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x30]
mov rcx, rbp
call fcn.180001750
nop
test rbx, rbx
je 0x180006717
mov rcx, rbx
call fcn.180016450
mov al, 1
jmp 0x18000672a
test rbx, rbx
je 0x180006728
mov rcx, rbx
call fcn.180016450
xor al, al
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.180017180
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x180015f94
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [0x180037ef8]
test rcx, rcx
jne 0x180015eeb
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 0x60]
mov rcx, qword [rbx + 0x40]
test rcx, rcx
jne 0x180015ee4
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
lea r8d, [rdx + 0x10]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x180015f16
and qword [rax], 0
and qword [rax + 8], 0
xor eax, eax
lock cmpxchg qword [rbx + 0x40], rdi
je 0x180015ee0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbx + 0x40]
mov qword [0x180037ef8], rcx
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
test rax, rax
jne 0x180015f89
mov edx, 0x1000
lea r9d, [rax + 0x40]
xor ecx, ecx
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x180015f39
xor edx, edx
lea r9, [rsp + 0x30]
mov ecx, 0xc0000017
lea r8d, [rdx + 1]
mov qword [rsp + 0x30], 0x20
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [rax]
mov rcx, qword [0x180037ef8]
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov rdi, rax
test rax, rax
je 0x180015f66
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, rdi
jmp 0x180015f89
lea rdi, [rbx + 0xfe0]
mov rcx, qword [0x180037ef8]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add rbx, 0x20
cmp rbx, rdi
jb 0x180015f6d
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
jmp 0x180015e70
Function at 0x18001b323
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1800366f0]
jne 0x18001719a
rol rcx, 0x10
test cx, 0xffff
jne 0x180017196
repz ret
ror rcx, 0x10
jmp 0x18001b27c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180038250]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x180038348]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x18001b301
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x180038250]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x18001b323
mov rax, qword [rsp + 0x88]
mov qword [0x180038348], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1800382e8], rax
mov rax, qword [0x180038348]
mov qword [0x1800381c0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1800382d0], rax
mov dword [0x1800381b0], 0xc0000409
mov dword [0x1800381b4], 1
mov rax, qword [0x1800366f0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1800366f8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180038248], eax
mov ecx, 1
call fcn.1800203dc
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x18002b070]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180038248], 0
jne 0x18001b3aa
mov ecx, 1
call fcn.1800203dc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x180021680
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1800366f0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.180019534
xor ebx, ebx
cmp qword [0x180039170], rbx
mov rdi, rax
jne 0x180021793
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x18002186a
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18002186a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x180039170], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x180039178], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x180039180], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x180039190], rax
test rax, rax
je 0x18002178a
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x180039188], rax
jmp 0x18002179a
mov rax, qword [0x180039188]
jmp 0x1800217a1
mov rax, qword [0x180039188]
mov r11, qword [0x180039190]
cmp rax, rdi
je 0x180021808
cmp r11, rdi
je 0x180021808
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x180039190]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x180021808
test rax, rax
je 0x180021808
call rsi
test rax, rax
je 0x180021802
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180021802
test byte [rsp + 0x40], 1
jne 0x180021808
bts ebp, 0x15
jmp 0x180021848
mov rcx, qword [0x180039178]
cmp rcx, rdi
je 0x180021848
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180021848
call rax
mov rbx, rax
test rax, rax
je 0x180021848
mov rcx, qword [0x180039180]
cmp rcx, rdi
je 0x180021848
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180021848
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x180039170]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18002186a
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x18002186c
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180017180
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1b8ba00
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1b8ba0d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1b8ba1d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1b8ba05
lea eax, [rcx + 1]
jmp 0x1b8ba2b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1b8ba3e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1b8ba24
sub eax, 3
jb 0x1b8ba5e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1b8baad
sar eax, 1
movsxd rbp, eax
jb 0x1b8ba94
jmp 0x1b8ba6c
add ebx, ebx
jne 0x1b8ba6a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1b8ba94
inc ecx
add ebx, ebx
jne 0x1b8ba7a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1b8ba94
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1b8ba8d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1b8ba7c
add ecx, 2
jmp 0x1b8ba99
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.01b8b9c2
jmp 0x1b8ba0d
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1777000]
mov eax, dword [rdi]
or eax, eax
je 0x1b8bb09
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x178b400]
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 0x1b8bab9
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 0x1b8bb03
mov qword [rbx], rax
add rbx, 8
jmp 0x1b8bad9
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 0x1b8bb4d
cmp al, 0xef
ja 0x1b8bb35
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1b8bb15
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1b8bb24
mov eax, dword [rdi]
add rdi, 4
jmp 0x1b8bb24
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 + 0x1af]
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
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1b8bba1
sub rsp, 0xffffffffffffff80
jmp 0x465240
Function at 0x140006cc0
Capabilities:
Check os version
Identify system language via api

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x950
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov rbx, qword [0x140093528]
mov r8d, 0x409
movzx r9d, ax
mov ecx, dword [rbx + 0x1024]
lea esi, [r8 - 0xa]
test ecx, ecx
je 0x140006d1e
mov edx, r8d
and r9w, si
nop
and cx, si
cmp cx, r9w
je 0x140006e3d
mov eax, dword [rbx + rdx*4 + 4]
inc rdx
inc r8d
movzx ecx, ax
test eax, eax
jne 0x140006d00
call fcn.1400081e0
mov ebx, eax
test eax, eax
je 0x140006d34
mov dword [0x140093530], eax
call fcn.140008480
mov dword [0x14008db00], ebx
call fcn.140003730
lea r8, [0x14007bbb8]
mov byte [0x140092c01], 1
mov edx, 0x208
lea rcx, [0x14008e28c]
call fcn.14001f05c
mov rdi, qword [0x140093410]
lea rax, str.tweakscheduler.exe
lea rcx, [rsp + 0x30]
mov qword [0x14008e498], rax
mov qword [0x14008dc58], rdi
mov dword [0x14008dc54], 6
mov dword [rsp + 0x30], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
xor ebx, ebx
lea r8, [rsp + 0x150]
cmp dword [rsp + 0x34], 5
mov r9d, esi
mov rcx, rdi
mov word [rsp + 0x150], bx
jae 0x140006e48
mov edx, 0x168
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x140006e16
cmp byte [0x14008daf0], bl
je 0x140006de4
mov rcx, qword [0x14008db10]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov byte [0x14008daf0], bl
mov rcx, qword [0x14008db10]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r9d, esi
lea r8, [rsp + 0x150]
mov rcx, rax
mov edx, 0x168
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x140006e16
mov word [rsp + 0x150], bx
mov r9d, 0x10
lea r8, str.TweakScheduler_v1.04
lea rdx, [rsp + 0x150]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 2
jmp 0x140006ef0
movsxd rax, r8d
mov ebx, dword [rbx + rax*4]
jmp 0x140006d34
mov edx, 0x14e
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x140006ea4
cmp byte [0x14008daf0], bl
je 0x140006e72
mov rcx, qword [0x14008db10]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov byte [0x14008daf0], bl
mov rcx, qword [0x14008db10]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r9d, esi
lea r8, [rsp + 0x150]
mov rcx, rax
mov edx, 0x14e
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x140006ea4
mov word [rsp + 0x150], bx
mov r9d, 0x34
lea r8, str.TweakScheduler_v1.04
lea rdx, [rsp + 0x150]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
jne 0x140006ecd
mov eax, 1
jmp 0x140006ef0
mov rcx, qword [0x140093410]
lea r9, [0x1400062b0]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov edx, 0x81
call qword [sym.imp.USER32.dll_DialogBoxParamW]
xor eax, eax
lea r11, [rsp + 0x950]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
push rcx
push rsi
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
xor r9, r9
movzx rcx, word [rdx + 0x4a]
mov rsi, qword [rdx + 0x50]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
mov rdx, qword [rdx + 0x20]
push r9
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov ecx, dword [rax + 0x18]
mov r8d, dword [rax + 0x20]
push rax
add r8, rdx
jrcxz 0x1400040ca
dec rcx
xor r9, r9
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
add rax, rdx
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x140001000
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x18]
mov rbx, qword [rax + 0x10]
mov rbx, qword [rbx]
mov rbx, qword [rbx]
mov rbx, qword [rbx + 0x30]
mov rax, rbx
ret

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

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x88
call fcn.140001000
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
add rax, 0x88
mov qword [rsp + 0x38], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x14]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0xc]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
movsxd rax, dword [rsp + 0x90]
mov rcx, qword [rsp + 0x60]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rsp + 0x68]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
add rsp, 0x88
ret
Function at 0x2fc4c5e80
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4c6882
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4e9108]
test eax, eax
je 0x2fc4c691a
lea rax, [0x2fc4e90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4e9110]
mov qword [rbp - 8], rax
jmp 0x2fc4c68fe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4c68f2
cmp qword [rbp - 0x10], 0
je 0x2fc4c68f2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4c68b8
lea rax, [0x2fc4e90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4c691b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4c6a20
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4c6a48
mov eax, 0
jmp 0x2fc4c6a96
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4c6a71
mov eax, 0
jmp 0x2fc4c6a96
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4c6a91
mov eax, 0
jmp 0x2fc4c6a96
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4c6a9c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4c6b1a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4c6b11
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4c6b11
mov rax, qword [rbp - 8]
jmp 0x2fc4c6b2f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4c6ae4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400011f0
Capabilities:
Execute command

Disassembly:
sub rsp, 0x28
lea rcx, str.start_GenshinImpact.exe
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.Genshin_Impact_is_starting.
call fcn.140001410
mov rcx, rax
lea rdx, [0x1400015e0]
add rsp, 0x28
jmp 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]
Function at 0x1400020dc
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14001511a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140015111
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140015111
mov rax, qword [rbp - 8]
jmp 0x14001512f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400150e4
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400111f9
Capabilities:
Terminate process

Disassembly:
jmp 0x1400151b0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14001127b
Capabilities:
Parse pe header

Disassembly:
jmp 0x140012ec0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140012ee0
xor al, al
jmp 0x140012f61
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140012ef3
xor al, al
jmp 0x140012f61
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140012f1d
xor al, al
jmp 0x140012f61
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140012f31
xor al, al
jmp 0x140012f61
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140012f43
xor al, al
jmp 0x140012f61
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140012f5f
xor al, al
jmp 0x140012f61
mov al, 1
add rsp, 0x38
ret