joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180019fb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x30
mov rbx, rcx
xor ebp, ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x18001a1dc
xor edx, edx
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], dx
jne 0x180019fe0
test rax, rax
je 0x18001a014
xor ecx, ecx
movzx r8d, word [rbx + rcx*2]
cmp r8w, 0x5c
je 0x18001a1dc
cmp r8w, 0x2f
je 0x18001a1dc
inc edx
mov ecx, edx
cmp rcx, rax
jb 0x180019ff0
mov qword [rsp + 0x40], rsi
mov rcx, rbx
mov qword [rsp + 0x48], rdi
call fcn.180019450
mov rsi, rax
test rax, rax
je 0x18001a10e
mov qword [rsp + 0x50], r14
call fcn.18001a940
mov r14, rax
test rax, rax
je 0x18001a0fb
mov rcx, rsi
call fcn.180016240
test eax, eax
je 0x18001a0e4
lea rax, str.system32_
mov qword [rsp + 0x20], rax
lea rdi, [rsp + 0x20]
lea rax, str.SystemRoot_system32_
mov qword [rsp + 0x28], rax
nop word [rax + rax]
mov rdx, qword [rdi]
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rdx + rbx*2], bp
jne 0x18001a090
mov r8, rbx
mov rcx, rsi
call fcn.180089ac0
test eax, eax
je 0x18001a0b8
add rdi, 8
lea rax, [rsp + 0x30]
cmp rdi, rax
jb 0x18001a080
jmp 0x18001a0c7
lea rdx, [rsi + rbx*2]
mov rcx, r14
call fcn.18001aba0
mov rbp, rax
lea rax, [rsp + 0x30]
cmp rdi, rax
jne 0x18001a0f2
mov rcx, rsi
call fcn.180016290
test eax, eax
je 0x18001a0f2
mov rbp, rsi
xor esi, esi
jmp 0x18001a0f2
mov rdx, rsi
mov rcx, r14
call fcn.18001aba0
mov rbp, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r14, qword [rsp + 0x50]
jmp 0x18001a1a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7e
jne 0x18001a1b1
mov rcx, rbx
call fcn.18001b7f0
mov rdi, rax
test rax, rax
je 0x18001a1b1
mov ecx, 0x37e4
call fcn.18001b0e0
test eax, eax
je 0x18001a146
call fcn.18001a5b0
jmp 0x18001a14b
call fcn.18001a940
mov rbx, rax
test rax, rax
je 0x18001a19f
mov rdx, rdi
mov rcx, rax
call fcn.18001aba0
mov rbp, rax
test rax, rax
je 0x18001a196
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18001a178
test al, 0x50
je 0x18001a196
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x18001a18b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor ebp, ebp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbp, rbp
je 0x18001a1b1
xor ecx, ecx
jmp 0x18001a1be
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x18001a1c4
lea ecx, [rax + 0x7e]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsp + 0x48]
mov rax, rbp
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop rbp
ret
Function at 0x18001a940
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov ecx, 0x40
add rdx, rdx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x18001a9a2
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x18001a997
cmp edi, eax
jb 0x18001a997
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x18001c360
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x198]
sub rsp, 0x290
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x180144010]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x48], rax
xor esi, esi
mov dword [rsp + 0x44], esi
lea rbx, [0x18014b778]
mov qword [rsp + 0x48], rbx
xor edx, edx
mov r8d, 0x107
lea rcx, [rsp + 0x60]
call fcn.180064850
nop
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x70]
call fcn.180064850
mov dword [rsp + 0x40], 0x104
lea r8, str.C:Program_FilesNVIDIA_CorporationNvStreamSrv
mov edx, 0x104
lea rcx, [rbp + 0x70]
call fcn.180089cf8
cmp byte [str.SOFTWARENVIDIA_CorporationNvStreamSrv], sil
je 0x18001c4da
mov rdi, qword [rsp + 0x60]
test rdi, rdi
je 0x18001c437
lea rdx, [rsp + 0x68]
lea rcx, str.SOFTWARENVIDIA_CorporationNvStreamSrv
call fcn.1800f0130
test eax, eax
je 0x18001c488
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x18001c437
mov qword [rsp + 0x60], rsi
mov byte [rsp + 0x68], al
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
lea rdx, str.SOFTWARENVIDIA_CorporationNvStreamSrv
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
sete dil
test eax, eax
jne 0x18001c47e
lea r8, str.SOFTWARENVIDIA_CorporationNvStreamSrv
mov edx, 0xff
lea rcx, [rsp + 0x68]
call fcn.180089cf8
test dil, dil
je 0x18001c4da
mov rdi, qword [rsp + 0x60]
test rdi, rdi
je 0x18001c4da
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
mov r9d, 0xffff
lea r8, str.InstallLocation
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x18001c4da
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x18001c4da
mov qword [rsp + 0x60], rsi
mov byte [rsp + 0x68], al
mov qword [0x18014b788], rsi
mov qword [0x18014b790], 0xf
mov byte [0x18014b778], 0
lea rax, [rbp + 0x70]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], 0
jne 0x18001c500
lea rdx, [rbp + 0x70]
mov rcx, rbx
call fcn.180002d60
mov dword [rsp + 0x44], 1
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x18001c53b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x18001c53b
mov qword [rsp + 0x60], rsi
mov byte [rsp + 0x68], al
mov rax, rbx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1800341c0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x18001c5b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x170
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rax, qword [0x180144010]
xor rax, rsp
mov qword [rsp + 0x160], rax
cmp byte [0x180145088], 0
jne 0x18001c735
mov byte [0x180145088], 1
mov ebx, dword [0x180145080]
mov rbp, qword [str.RxDiagDisabledLogsBitmap]
mov rdi, qword [str.SOFTWARENVIDIA_CorporationNvStreamSrv]
xor edx, edx
mov r8d, 0x107
lea rcx, [rsp + 0x50]
call fcn.180064850
nop
test rdi, rdi
je 0x18001c70a
cmp byte [rdi], 0
je 0x18001c70a
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x18001c681
mov rax, rdi
lea r9, [rsp + 0x58]
sub r9, rdi
nop dword [rax]
nop dword [rax + rax]
movzx r8d, byte [rax]
movzx edx, byte [rax + r9]
sub r8d, edx
jne 0x18001c665
inc rax
test edx, edx
jne 0x18001c650
test r8d, r8d
je 0x18001c6ca
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x18001c681
mov qword [rsp + 0x50], 0
mov byte [rsp + 0x58], al
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
mov rdx, rdi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
sete sil
test eax, eax
jne 0x18001c6c0
mov r8, rdi
mov edx, 0xff
lea rcx, [rsp + 0x58]
call fcn.180089cf8
test sil, sil
je 0x18001c70a
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], 4
test rcx, rcx
je 0x18001c70a
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, 0xfffffffd
cmove ebx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x18001c72b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x18001c72b
mov qword [rsp + 0x50], 0
mov byte [rsp + 0x58], al
mov dword [0x180145084], ebx
mov eax, ebx
jmp 0x18001c73b
mov eax, dword [0x180145084]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1800341c0
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x18002d860
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rdi, rcx
test r8, r8
jg 0x18002d882
xor eax, eax
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
je 0x18002d90d
lfence
mov rbx, r14
nop dword [rax]
mov rcx, rdi
call fcn.18002f8d0
test rax, rax
jle 0x18002d8de
mov rdx, qword [rdi + 0x38]
cmp rbx, rax
mov rbp, rbx
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.180064cc0
mov rax, qword [rdi + 0x50]
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x18002d8fd
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x38]
call qword [case.0x18001dfea.0]
cmp eax, 0xffffffff
je 0x18002d905
mov byte [rsi], al
dec rbx
mov ebp, 1
add rsi, rbp
test rbx, rbx
jg 0x18002d8a0
sub r14, rbx
jmp 0x18002da11
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov qword [rsp + 0x50], r14
mov rdx, qword [rax]
test rdx, rdx
je 0x18002d929
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18002d92b
xor ecx, ecx
movsxd rax, ecx
mov rbx, r14
test ecx, ecx
je 0x18002d965
cmp rax, r14
mov rcx, rsi
cmovb rbx, rax
mov r8, rbx
call fcn.180064cc0
mov rax, qword [rdi + 0x50]
sub rbp, rbx
add rsi, rbx
mov qword [rsp + 0x50], rbp
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
mov rbx, rbp
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x18002da09
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x18002d9a0
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x18002d9e5
nop dword [rax]
mov r9, qword [rdi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.18008d58c
sub rbp, rax
add rsi, rax
mov qword [rsp + 0x50], rbp
mov rbx, rbp
cmp rax, 0xfff
jne 0x18002da09
cmp rbp, rax
ja 0x18002d9b0
test rbx, rbx
je 0x18002da09
mov r9, qword [rdi + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.18008d58c
sub rbx, rax
mov qword [rsp + 0x50], rbx
lfence
sub r14, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
mov rax, r14
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x18002dfa0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x180144010]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x18002dfd0
xor eax, eax
jmp 0x18002e0f9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x18002e00a
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x18002e00a
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x18002e0f9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xb0], rsi
je 0x18002e0ec
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18002e04d
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x18002e05c
movsx ecx, dil
jmp 0x18002e090
mov byte [rsp + 0x50], dil
lea rdx, vtable.std::codecvt_char__char__struct__Mbstatet_.0
mov rax, qword [rcx]
cmp rax, rdx
jne 0x18002e11a
lea rax, [rsp + 0x50]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x58], rax
lfence
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call fcn.18008bb2c
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x18002e0f1
mov rsi, qword [rsp + 0x58]
lea rax, [rsp + 0x68]
sub rsi, rax
je 0x18002e0da
lfence
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x68]
mov r8, rsi
mov edx, 1
call fcn.18008ce10
cmp rsi, rax
jne 0x18002e0ec
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x60], rax
mov eax, edi
jne 0x18002e0f1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1800341c0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret
mov rax, qword [rax + 0x38]
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], r8
lea rdx, [rbx + 0x74]
lea r8, [rsp + 0x88]
mov qword [rsp + 0x30], r8
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x68]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x60]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [case.0x18001dfea.0]
test eax, eax
js 0x18002e0ec
cmp eax, 1
jle 0x18002e0aa
cmp eax, 3
jne 0x18002e0ec
jmp 0x18002e088
Function at 0x18002f0b0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x180144010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x18002f18b
cmp byte [rcx + 0x71], 0
je 0x18002f18b
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
mov rax, qword [rax + 0x18]
call qword [case.0x18001dfea.0]
cmp eax, 0xffffffff
je 0x18002f187
mov rcx, qword [rbx + 0x68]
lea rdx, vtable.std::codecvt_char__char__struct__Mbstatet_.0
mov rax, qword [rcx]
cmp rax, rdx
jne 0x18002f1a0
lea rdi, [rsp + 0x38]
mov eax, 3
mov qword [rsp + 0x30], rdi
test eax, eax
je 0x18002f14f
sub eax, 1
je 0x18002f153
cmp eax, 2
jne 0x18002f187
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800341c0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x18002f17e
lfence
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call fcn.18008ce10
cmp rdi, rax
jne 0x18002f187
cmp byte [rbx + 0x71], 0
sete al
jmp 0x18002f137
xor al, al
jmp 0x18002f137
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800341c0
add rsp, 0x60
pop rbx
ret
mov rax, qword [rax + 0x40]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r8, [rsp + 0x38]
lea r9, [rsp + 0x58]
call qword [case.0x18001dfea.0]
mov rdi, qword [rsp + 0x30]
jmp 0x18002f123
Function at 0x180035a98
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd rax, dword [rcx + 0x3c]
mov esi, edx
xor edx, edx
mov r8d, dword [rax + rcx + 0x88]
mov r9, rcx
add r8, rcx
mov r10d, dword [r8 + 0x20]
mov r11d, dword [r8 + 0x1c]
mov ebx, dword [r8 + 0x24]
mov edi, dword [r8 + 0x18]
add r10, rcx
add r11, rcx
add rbx, rcx
test edi, edi
je 0x180035b09
mov ecx, dword [r10]
add rcx, r9
xor r8d, r8d
jmp 0x180035af4
movzx eax, al
inc rcx
or eax, 0x60
add r8d, eax
add r8d, r8d
mov al, byte [rcx]
test al, al
jne 0x180035ae5
cmp r8d, esi
je 0x180035b1b
inc edx
add r10, 4
cmp edx, edi
jb 0x180035ada
xor eax, eax
mov rbx, qword [rsp + 8]
movzx ecx, word [rbx + rdx*2]
mov eax, dword [r11 + rcx*4]
add rax, r9
jmp 0x180035b0b

Function at 0x1800c4698
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1800c46ab
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.1800c57dc
lea rdx, [0x1801419c0]
lea rcx, [rsp + 0x20]
call fcn.180064760
int3

Function at 0x1800d325c
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x18014a870]
xor edx, edx
jmp fcn.1800c4698

Function at 0x1800d4ce0
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x18014a870]
jmp fcn.1800c4698

Function at 0x1800e6990
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x1800e6a70]
mov r9, qword [r9 + 8]
jmp fcn.1800cfe60

Function at 0x1800e6a48
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x1800e6a80]
mov r9, qword [r9 + 8]
jmp fcn.1800cfe60
Function at 0x140002448
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140014de0
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 0x14001125d
Capabilities:
Parse pe header

Disassembly:
jmp 0x140012bf0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140012c10
xor al, al
jmp 0x140012c91
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140012c23
xor al, al
jmp 0x140012c91
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 0x140012c4d
xor al, al
jmp 0x140012c91
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140012c61
xor al, al
jmp 0x140012c91
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140012c73
xor al, al
jmp 0x140012c91
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140012c8f
xor al, al
jmp 0x140012c91
mov al, 1
add rsp, 0x38
ret
Function at 0x140005778
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 [0x1410d9010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.1400014c4
xor ebx, ebx
cmp qword [0x1410dbb08], rbx
mov rdi, rax
jne 0x14000588b
lea rcx, str.USER32.DLL
call qword [sym.imp.kernel32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140005962
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x140005962
mov rcx, rax
call qword [sym.imp.kernel32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1410dbb08], 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 [0x1410dbb10], 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 [0x1410dbb18], rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.kernel32.dll_EncodePointer]
mov r11, rax
mov qword [0x1410dbb28], rax
test rax, rax
je 0x140005882
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 [0x1410dbb20], rax
jmp 0x140005892
mov rax, qword [0x1410dbb20]
jmp 0x140005899
mov rax, qword [0x1410dbb20]
mov r11, qword [0x1410dbb28]
cmp rax, rdi
je 0x140005900
cmp r11, rdi
je 0x140005900
mov rcx, rax
call qword [sym.imp.kernel32.dll_DecodePointer]
mov rcx, qword [0x1410dbb28]
mov rsi, rax
call qword [sym.imp.kernel32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140005900
test rax, rax
je 0x140005900
call rsi
test rax, rax
je 0x1400058fa
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 0x1400058fa
test byte [rsp + 0x40], 1
jne 0x140005900
bts ebp, 0x15
jmp 0x140005940
mov rcx, qword [0x1410dbb10]
cmp rcx, rdi
je 0x140005940
call qword [sym.imp.kernel32.dll_DecodePointer]
test rax, rax
je 0x140005940
call rax
mov rbx, rax
test rax, rax
je 0x140005940
mov rcx, qword [0x1410dbb18]
cmp rcx, rdi
je 0x140005940
call qword [sym.imp.kernel32.dll_DecodePointer]
test rax, rax
je 0x140005940
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1410dbb08]
call qword [sym.imp.kernel32.dll_DecodePointer]
test rax, rax
je 0x140005962
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140005964
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140005384
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140005cab
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1410d9010]
jne 0x14000539e
rol rcx, 0x10
test cx, 0xffff
jne 0x14000539a
repz ret
ror rcx, 0x10
jmp 0x140005c04
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1410dbbd0]
call qword [sym.imp.kernel32.dll_RtlCaptureContext]
mov rax, qword [0x1410dbcc8]
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 0x140005c89
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, [0x1410dbbd0]
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 0x140005cab
mov rax, qword [rsp + 0x88]
mov qword [0x1410dbcc8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1410dbc68], rax
mov rax, qword [0x1410dbcc8]
mov qword [0x1410dbb40], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1410dbc50], rax
mov dword [0x1410dbb30], 0xc0000409
mov dword [0x1410dbb34], 1
mov rax, qword [0x1410d9010]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1410d9018]
mov qword [rsp + 0x70], rax
call qword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x1410dbbc8], eax
mov ecx, 1
call fcn.140005764
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1410dab08]
call qword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x1410dbbc8], 0
jne 0x140005d32
mov ecx, 1
call fcn.140005764
call qword [sym.imp.kernel32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.kernel32.dll_TerminateProcess]
add rsp, 0x88
ret