joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000bcc0
Capabilities:
Check if file exists
Create directory
Encode data using xor
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1401150f8]
xor rax, rsp
mov qword [rbp + 0x170], rax
lea rax, str._ProgramData_
xor ebx, ebx
mov qword [rsp + 0x48], rax
lea rsi, [rsp + 0x48]
lea rax, str._CommonProgramFiles_
mov r14, rcx
mov qword [rsp + 0x50], rax
lea r15, [0x140000000]
lea rax, str._TMP_
mov edi, ebx
mov qword [rsp + 0x58], rax
movabs r12, 0x2492492492492493
movabs r13, 0xcccccccccccccccd
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rsi]
lea rdx, [rsp + 0x60]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x14000be5f
xor eax, eax
mov dword [rsp + 0x20], 0x13d008a
mov word [rsp + 0x40], ax
mov r11d, ebx
mov dword [rsp + 0x24], 0x20038
mov r10, rbx
mov dword [rsp + 0x28], 0x9b00fe
mov dword [rsp + 0x2c], 0xdf008e
mov dword [rsp + 0x30], 0xe6014e
mov dword [rsp + 0x34], 0xcc0026
mov dword [rsp + 0x38], 0xa00083
mov dword [rsp + 0x3c], 0x12d0161
nop dword [rax]
mov rcx, r10
lea r9, [rsp + 0x20]
lea r9, [r9 + r10*2]
mov rax, r12
mul r10
mov rax, r10
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 2
imul rax, rax, 7
sub rcx, rax
mov rax, r13
mul r10
movzx r8d, byte [rcx + r15 + 0xf28e8]
shr rdx, 2
lea rax, [rdx + rdx*4]
sub r10, rax
movzx eax, byte [r10 + r15 + 0xf28e0]
add r8w, ax
add r8w, r11w
inc r11d
xor word [r9], r8w
movsxd r10, r11d
cmp r10, 0x10
jb 0x14000bdc0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14000bebc
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14000bea0
inc edi
add rsi, 8
cmp edi, 3
jb 0x14000bd50
xor al, al
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1400c0280
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
cmp word [rsp + 0x60], bx
je 0x14000beda
lea rax, [rsp + 0x60]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14000beb0
jmp 0x14000beda
cmp word [rsp + 0x60], bx
je 0x14000beda
lea rax, [rsp + 0x60]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14000bed0
mov r8, rbx
lea rdx, [rsp + 0x60]
mov rcx, r14
call fcn.140003290
mov al, 1
jmp 0x14000be70
Function at 0x14000c140
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
xor r10d, r10d
lea rbx, [0x140000000]
mov r8d, r10d
mov r11, rcx
movabs rdi, 0x2492492492492493
movabs rsi, 0xcccccccccccccccd
nop dword [rax]
nop word [rax + rax]
mov rcx, r8
lea r9, [r8 + r11]
mov rax, rdi
mul r8
mov rax, r8
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 2
imul rax, rax, 7
sub rcx, rax
mov rax, rsi
mul r8
shr rdx, 2
lea rax, [rdx + rdx*4]
sub r8, rax
movzx eax, byte [rcx + rbx + 0xf28e8]
add al, byte [r8 + rbx + 0xf28e0]
add al, r10b
inc r10d
xor byte [r9], al
movsxd r8, r10d
cmp r8, 0x1b
jb 0x14000c180
mov rbx, qword [rsp + 8]
mov rax, r11
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret

Function at 0x14000c1f0
Capabilities:
Create service
Modify service

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1401150f8]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor edx, edx
mov rbx, rcx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x14000c22c
xor al, al
jmp 0x14000c2c9
xor ecx, ecx
lea rax, [0x1400f13f8]
mov qword [rsp + 0x60], rcx
lea r8, str.AntiCheatExpert_Service
mov qword [rsp + 0x58], rcx
lea rdx, str.AntiCheatExpert_Service
mov qword [rsp + 0x50], rax
mov r9d, 0xf01ff
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rcx
mov rcx, rdi
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x110
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
je 0x14000c225
lea rax, str.Service_for_AntiCheatExpert
mov edx, 1
lea r8, [rsp + 0x70]
mov qword [rsp + 0x70], rax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400c0280
mov rbx, qword [rsp + 0x98]
add rsp, 0x80
pop rdi
ret

Function at 0x14000c2f0
Capabilities:
Delete service
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x50
mov rax, qword [0x1401150f8]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
xor sil, sil
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x14000c384
mov r8d, 0xf01ff
mov qword [rsp + 0x60], rdi
lea rdx, str.AntiCheatExpert_Service
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x14000c372
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
mov rcx, rdi
setne sil
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x60]
movzx eax, sil
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400c0280
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rsi
ret
Function at 0x14000c6b0
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x100
mov rax, qword [0x1401150f8]
xor rax, rsp
mov qword [rsp + 0xf8], rax
lea rax, [0x14000ca80]
mov rbp, r8
mov qword [r11 - 0x38], rax
lea rbx, [r11 - 0x38]
lea rax, [0x14000c810]
mov rsi, rdx
mov qword [r11 - 0x30], rax
lea rax, [0x14000c950]
mov qword [r11 - 0x28], rax
nop
mov rax, qword [rbx]
call rax
mov rdi, rax
test rax, rax
jne 0x14000c725
add rbx, 8
lea rax, [rsp + 0xf8]
cmp rbx, rax
jne 0x14000c700
xor al, al
jmp 0x14000c7ec
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.1400c1990
lea rax, str.WinSta0Default
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x60]
mov eax, 5
mov dword [rsp + 0xac], 1
xor ebx, ebx
mov word [rsp + 0xb0], ax
xor r8d, r8d
mov qword [rsp + 0x60], rbx
mov rdx, rdi
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov rcx, rdi
test eax, eax
je 0x14000c7c7
mov qword [rsp + 0x50], rbp
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
xor r9d, r9d
mov rax, qword [rsp + 0x60]
mov r8, rsi
mov qword [rsp + 0x40], rbx
xor edx, edx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x430
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x14000c7d1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x14000c7ec
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14000c7e1
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.1400c0280
mov rbx, qword [rsp + 0x120]
add rsp, 0x100
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400cc3a0
Capabilities:
Parse pe header

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, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x1400cc174
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400cc174
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400cc174
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400cc174
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400cc174
cmp dword [rcx + 0x84], 0xe
jbe 0x1400cc174
cmp dword [rcx + 0xf8], esi
je 0x1400cc174
mov ecx, r14d
call fcn.1400cc2bc
mov ecx, 2
call fcn.1400c838c
nop
cmp byte [0x14011f980], 0
jne 0x1400cc23e
mov r15d, 1
mov eax, r15d
xchg dword [0x14011f974], eax
test ebx, ebx
jne 0x1400cc1e7
mov rdi, qword [0x1401150f8]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x14011f978]
cmp rcx, rax
je 0x1400cc1de
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140001530]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x14011fbc0]
jmp 0x1400cc1f3
cmp ebx, r15d
jne 0x1400cc1f9
lea rcx, [0x14011fbd8]
call fcn.1400ccf98
nop
test ebx, ebx
jne 0x1400cc210
lea rdx, [0x1400e27e0]
lea rcx, [0x1400e27b8]
call fcn.1400cd32c
lea rdx, [0x1400e27f0]
lea rcx, [0x1400e27e8]
call fcn.1400cd32c
movzx eax, byte [0x14011f980]
test esi, esi
cmove eax, r15d
mov byte [0x14011f980], al
jmp 0x1400cc23e
mov ecx, 2
call fcn.1400c83e0
test esi, esi
jne 0x1400cc255
mov ecx, r14d
call fcn.1400cc270
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1400cc104
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400097d0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400097e0]
mov dword [rax], 1
mov rax, qword [0x1400097f0]
mov dword [rax], 1
mov rax, qword [0x140009760]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400097c0]
mov dword [0x14000c00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x1400098a0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140009880]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140009710]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001790
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140002150
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002168
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002170
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140002180
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx r8d, word [rcx + 6]
movzx eax, word [rcx + 0x14]
test r8w, r8w
lea rax, [rcx + rax + 0x18]
je 0x1400021cd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rdx, r8
mov rcx, r8
jb 0x1400021c4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400021cf
add rax, 0x28
cmp rax, r9
jne 0x1400021b0
xor eax, eax
ret

Function at 0x1400021d0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002260
mov rdx, qword [0x140009760]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000224e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000224e
cmp word [rax + 0x18], 0x20b
jne 0x14000224e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002260
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002239
add rbx, 0x28
cmp rbx, rdi
je 0x140002260
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002230
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002270
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x1400022f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009760]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000230f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002318
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000230f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140002330
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140009760]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002350
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002358
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002350
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x1400023a0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002397
test rcx, rcx
je 0x140002350
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002388
xor eax, eax
ret

Function at 0x1400023b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009760]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400023cf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400023d8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1400023f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140009760]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002410
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002418
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002410
movzx r9d, word [r8 + 6]
sub rcx, rdx
movzx edx, word [r8 + 0x14]
test r9w, r9w
lea rdx, [r8 + rdx + 0x18]
je 0x140002410
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140002464
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002470
add rdx, 0x28
cmp r9, rdx
jne 0x140002450
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002480
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140009760]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400024a2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400024b0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400024a2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400024a2
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x1400024a2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov r8, r9
jb 0x140002505
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002518
add rdx, 0x28
cmp rdx, r10
jne 0x1400024f0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002527
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002537
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000250e
test ecx, ecx
jg 0x140002520
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x180002770
Capabilities:
Get file version info

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x88], rbx
mov rbx, rcx
xor ebp, ebp
mov qword [0x18002bff0], rbp
mov qword [0x18002bff8], rbp
mov dword [rsp + 0x70], ebp
cmp qword [rcx + 0x18], 8
jb 0x1800027aa
mov rcx, qword [rcx]
lea rdx, [rsp + 0x70]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test eax, eax
je 0x180002867
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rbp
mov edx, esi
lea rcx, [rsp + 0x28]
call fcn.180002920
cmp qword [rbx + 0x18], 8
jb 0x1800027e4
mov rbx, qword [rbx]
mov rdi, qword [rsp + 0x28]
mov r9, rdi
mov r8d, esi
xor edx, edx
mov rcx, rbx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov qword [rsp + 0x80], rbp
lea r9, [rsp + 0x78]
lea r8, [rsp + 0x80]
lea rdx, [0x180021280]
mov rcx, rdi
call qword [sym.imp.VERSION.dll_VerQueryValueW]
mov r11, qword [rsp + 0x80]
test r11, r11
jne 0x18000282e
jmp 0x18000285a
movzx eax, word [r11 + 0x12]
mov dword [0x18002bff0], eax
movzx eax, word [r11 + 0x10]
mov dword [0x18002bff4], eax
movzx eax, word [r11 + 0x16]
mov dword [0x18002bff8], eax
movzx eax, word [r11 + 0x14]
mov dword [0x18002bffc], eax
test rdi, rdi
je 0x180002867
mov rcx, rdi
call fcn.18000d314
lea rax, [0x18002bff0]
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret

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

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x18002acdc]
test ecx, ecx
je 0x1800053f0
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1800053f0
mov rcx, rax
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov ecx, dword [0x18002acdc]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x28
ret

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

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x18002acdc]
test ecx, ecx
je 0x18000544a
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180005430
mov rcx, rax
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov ecx, dword [0x18002acdc]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [0x18002acdc]
test ecx, ecx
je 0x18000544a
call qword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x18002acdc], 0
add rsp, 0x28
ret

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

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x18002acdc]
test ecx, ecx
je 0x180005f15
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x180005f15
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r8d, r8d
lea rdx, [0x180005d10]
lea ecx, [r8 + 0xc]
mov r9d, eax
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov ecx, dword [0x18002acdc]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x28
ret
Function at 0x180005f20
Capabilities:
Allocate thread local storage
Create thread
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.180002fd0
test al, al
je 0x180005f7b
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x18002acdc], eax
test eax, eax
je 0x180005f99
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x180005f99
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r8d, r8d
lea rdx, [0x180005d10]
lea ecx, [r8 + 0xc]
mov r9d, eax
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov ecx, dword [0x18002acdc]
mov rdx, rax
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TlsSetValue]
call fcn.180003130
test al, al
jne 0x180005f99
mov r8, qword [0x18002acc0]
lea rcx, [0x1800053b0]
xor edx, edx
call fcn.18000e5b0
add rsp, 0x28
ret
Function at 0x180006070
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x1800060e4
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je case.default.0x1800060ff
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je case.default.0x1800060ff
mov rcx, qword [rbx]
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je case.default.0x1800060ff
mov rdx, r8
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x18000614e
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x180006070
cmp byte [0x18002ace8], 0
jne 0x180006199
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180006189
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x18002ace8], 1
mov qword [0x18002ace0], rax
jmp 0x1800061a0
mov rax, qword [0x18002ace0]
mov byte [0x18002ace8], 1
jmp 0x1800061a0
mov rax, qword [0x18002ace0]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x1800061bf
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x68
movdqa xmmword [rsp + 0x20], xmm0
movdqa xmmword [rsp + 0x30], xmm1
movdqa xmmword [rsp + 0x40], xmm2
movdqa xmmword [rsp + 0x50], xmm3
mov rdx, rax
lea rcx, [0x180026bf8]
call fcn.18000c60c
movdqa xmm0, xmmword [rsp + 0x20]
movdqa xmm1, xmmword [rsp + 0x30]
movdqa xmm2, xmmword [rsp + 0x40]
movdqa xmm3, xmmword [rsp + 0x50]
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
mov r8, qword [rsp + 0x80]
mov r9, qword [rsp + 0x88]
add rsp, 0x68
jmp 0x18000c404
jmp rax
lea rax, sym.imp.ADVAPI32.dll_RegDeleteKeyW
jmp 0x18000c38d