joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180088330
Capabilities:
Log keystrokes

Disassembly:
push rdi
sub rsp, 0x220
lea rdi, [rsp + 0x40]
mov ecx, 0x78
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1800e7f40]
xor rax, rsp
mov qword [rsp + 0x210], rax
lea rax, [rsp + 0x60]
mov rdi, rax
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
mov r8d, 0x6d1
xor edx, edx
lea rcx, [0x18013a422]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x40], 0x20
jmp 0x180088395
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x15c
jg 0x180088599
movsxd rax, dword [rsp + 0x40]
lea rcx, [0x18013a168]
movsx eax, word [rcx + rax*2]
mov dword [rsp + 0x168], eax
cmp dword [rsp + 0x168], 0xffffffff
jne 0x1800883c6
jmp 0x18008838b
cmp dword [rsp + 0x40], 0x140
jl 0x1800884a2
cmp dword [rsp + 0x40], 0x14e
jg 0x1800884a2
mov dword [rsp + 0x1b8], 0x60
mov dword [rsp + 0x1bc], 0x61
mov dword [rsp + 0x1c0], 0x62
mov dword [rsp + 0x1c4], 0x63
mov dword [rsp + 0x1c8], 0x64
mov dword [rsp + 0x1cc], 0x65
mov dword [rsp + 0x1d0], 0x66
mov dword [rsp + 0x1d4], 0x67
mov dword [rsp + 0x1d8], 0x68
mov dword [rsp + 0x1dc], 0x69
mov dword [rsp + 0x1e0], 0x6e
mov dword [rsp + 0x1e4], 0x6f
mov dword [rsp + 0x1e8], 0x6a
mov dword [rsp + 0x1ec], 0x6d
mov dword [rsp + 0x1f0], 0x6b
mov eax, dword [rsp + 0x40]
sub eax, 0x140
cdqe
mov eax, dword [rsp + rax*4 + 0x1b8]
mov dword [rsp + 0x164], eax
jmp 0x1800884bb
mov edx, 1
mov ecx, dword [rsp + 0x168]
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov dword [rsp + 0x164], eax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10
lea r9, [rsp + 0x178]
lea r8, [rsp + 0x60]
mov edx, dword [rsp + 0x168]
mov ecx, dword [rsp + 0x164]
call qword [sym.imp.USER32.dll_ToUnicode]
mov dword [rsp + 0x16c], eax
cmp dword [rsp + 0x16c], 0xffffffff
jne 0x180088535
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10
lea r9, [rsp + 0x178]
lea r8, [rsp + 0x60]
mov edx, dword [rsp + 0x168]
mov ecx, dword [rsp + 0x164]
call qword [sym.imp.USER32.dll_ToUnicode]
mov dword [rsp + 0x16c], eax
cmp dword [rsp + 0x16c], 1
jge 0x180088544
jmp 0x18008838b
movsxd rax, dword [rsp + 0x40]
imul rax, rax, 5
lea rcx, [0x18013a422]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, [rsp + 0x178]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x18008838b
mov rcx, rsp
lea rdx, [0x1800aac60]
call fcn.18008d8b8
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.18008cc60
add rsp, 0x220
pop rdi
ret
Function at 0x18008b620
Capabilities:
Link many functions at runtime

Disassembly:
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x20]
mov ecx, 0x14
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1800e7f40]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rax, str.libOSMesa.dll
mov qword [rsp + 0x38], rax
lea rax, str.OSMesa.dll
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
cmp qword [0x18013ad78], 0
je 0x18008b67b
mov eax, 1
jmp 0x18008b7fb
mov dword [rsp + 0x20], 0
jmp 0x18008b68f
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
cmp qword [rsp + rax*8 + 0x38], 0
je 0x18008b6c1
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + rax*8 + 0x38]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x18013ad78], rax
cmp qword [0x18013ad78], 0
je 0x18008b6bf
jmp 0x18008b6c1
jmp 0x18008b685
cmp qword [0x18013ad78], 0
jne 0x18008b6e3
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.180080ca0
xor eax, eax
jmp 0x18008b7fb
lea rdx, str.OSMesaCreateContextExt
mov rcx, qword [0x18013ad78]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18013ad80], rax
lea rdx, str.OSMesaCreateContextAttribs
mov rcx, qword [0x18013ad78]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18013ad88], rax
lea rdx, str.OSMesaDestroyContext
mov rcx, qword [0x18013ad78]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18013ad90], rax
lea rdx, str.OSMesaMakeCurrent
mov rcx, qword [0x18013ad78]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18013ad98], rax
lea rdx, str.OSMesaGetColorBuffer
mov rcx, qword [0x18013ad78]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18013ada0], rax
lea rdx, str.OSMesaGetDepthBuffer
mov rcx, qword [0x18013ad78]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18013ada8], rax
lea rdx, str.OSMesaGetProcAddress
mov rcx, qword [0x18013ad78]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18013adb0], rax
cmp qword [0x18013ad80], 0
je 0x18008b7dc
cmp qword [0x18013ad90], 0
je 0x18008b7dc
cmp qword [0x18013ad98], 0
je 0x18008b7dc
cmp qword [0x18013ada0], 0
je 0x18008b7dc
cmp qword [0x18013ada8], 0
je 0x18008b7dc
cmp qword [0x18013adb0], 0
jne 0x18008b7f6
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.180080ca0
call fcn.18008b830
xor eax, eax
jmp 0x18008b7fb
mov eax, 1
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1800ab0b0]
call fcn.18008d8b8
mov rax, rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18008cc60
add rsp, 0x70
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
push rcx
push rsi
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
mov rsi, qword [rdx + 0x50]
xor r9, r9
movzx rcx, word [rdx + 0x4a]
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
push r9
mov rdx, qword [rdx + 0x20]
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]
push rax
mov r8d, dword [rax + 0x20]
add r8, rdx
jrcxz 0x1400040ca
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor r9, r9
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 0x41020070
Capabilities:
Log keystrokes via polling

Disassembly:
push r12
push r13
push r14
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
mov r13, r9
mov edi, r8d
mov rbp, rdx
xor esi, esi
mov rcx, rdx
call sub.IMM32.dll_ImmLockIMC
test rax, rax
je 0x410202a3
mov ebx, esi
mov r14d, 1
cmp dword [rax + 8], r14d
cmove ebx, r14d
mov rcx, rbp
call sub.IMM32.dll_ImmUnlockIMC
test ebx, ebx
jne 0x41020114
mov rax, qword [0x4135bff8]
test rax, rax
jne 0x41020101
lea ecx, [rbx + 8]
call fcn.41211580
mov qword [rsp + 0x28], rax
test rax, rax
je 0x410200f7
mov rcx, rax
call fcn.4115bb10
jmp 0x410200fa
mov rax, rsi
mov qword [0x4135bff8], rax
mov rcx, rax
call fcn.410248b0
test eax, eax
je 0x41020114
xor eax, eax
jmp 0x410202a3
mov qword [0x4135c068], rbp
mov dword [0x4135c064], esi
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
movzx r12d, ax
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebp, ax
mov rax, qword [0x4135c000]
test rax, rax
jne 0x41020170
mov rcx, r14
call fcn.41211580
mov qword [rsp + 0x28], rax
test rax, rax
je 0x41020166
mov rcx, rax
call fcn.4106efe0
jmp 0x41020169
mov rax, rsi
mov qword [0x4135c000], rax
mov r9, qword [rsp + 0x70]
mov r8, r13
mov edx, edi
mov rcx, rax
call fcn.41095f20
mov ebx, eax
test r12w, r12w
jns 0x4102027d
test bp, bp
js 0x4102027d
mov rcx, qword [0x4135c008]
test rcx, rcx
jne 0x410201ce
mov ecx, 8
call fcn.41211580
mov qword [rsp + 0x28], rax
test rax, rax
je 0x410201c4
mov rcx, rax
call fcn.41097220
mov rcx, rax
jmp 0x410201c7
mov rcx, rsi
mov qword [0x4135c008], rcx
mov rax, qword [rcx]
mov edx, 0x56
call qword [rax]
cmp eax, 1
jne 0x41020272
lea eax, [rdi - 0x30]
cmp eax, 9
ja 0x41020272
mov ecx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x41020272
lea ebx, [rdi - 0x31]
mov eax, 9
cmp edi, 0x30
cmove ebx, eax
call fcn.4101fcc0
mov r8, qword [rax]
mov edx, 0x64
mov rcx, rax
call qword [r8 + 0x88]
test eax, eax
je 0x4102025e
call fcn.4101fcc0
mov r8, qword [rax]
mov edx, 0x65
mov rcx, rax
call qword [r8 + 0x88]
cmp eax, ebx
jne 0x4102024d
call fcn.41028b50
mov rcx, rax
call fcn.410263d0
jmp 0x4102026d
call fcn.41028b50
mov rcx, rax
mov edx, ebx
call fcn.41026bd0
jmp 0x4102026d
call fcn.41028b50
mov rcx, rax
mov edx, ebx
call fcn.41026bd0
mov eax, r14d
jmp 0x410202a3
cmp ebx, 0xffffffff
sete sil
mov eax, esi
jmp 0x410202a3
cmp eax, 1
jne 0x4102029c
sub edi, 0x10
je 0x41020298
sub edi, eax
je 0x41020294
cmp edi, 3
jne 0x410202a0
xor eax, eax
jmp 0x410202a3
xor eax, eax
jmp 0x410202a3
xor eax, eax
jmp 0x410202a3
test eax, eax
je 0x410202a3
mov eax, r14d
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop r13
pop r12
ret
Function at 0x41023140
Capabilities:
Read .ini file

Disassembly:
push rbx
sub rsp, 0x60
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x41359af8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
call fcn.4102ebc0
lea rdx, [rbx + 0xf0]
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], 0
mov word [rsp + 0x30], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x28]
call fcn.41022de0
nop
mov r8d, 0x12
lea rdx, str.SmartCloudInfo.ini
lea rcx, [rsp + 0x28]
call fcn.41022fe0
lea r9, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae r9, qword [rsp + 0x30]
xor r8d, r8d
lea rdx, str.ActivityMode
lea rcx, str.AppInfo
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [rbx + 0x2c8], eax
cmp qword [rsp + 0x48], 8
jb 0x410231f6
mov rcx, qword [rsp + 0x30]
call fcn.41210d60
mov eax, 1
jmp 0x410231fb
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.41211b80
add rsp, 0x60
pop rbx
ret

Function at 0x410234c0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
lea eax, [rdx - 0x701]
cmp eax, 0xc
ja 0x410234f2
mov qword [rsp + 0x20], rbx
lea ebx, [rdx - 0x701]
call fcn.41028b50
mov rcx, rax
mov edx, ebx
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
jmp fcn.41026bd0
cmp edx, 0x70e
jne 0x41023507
call fcn.41028b50
mov rcx, rax
call fcn.410263d0
add rsp, 0x28
ret
Function at 0x4102a100
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
add rcx, 0x268
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rdi + 0x268]
lea rcx, [rdi + 0x260]
sub rax, qword [rcx]
imul rax, rax, 0x3e8
cqo
idiv qword [rdi + 0x2c0]
cmp rax, 0x3e8
jle 0x4102a15c
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
call fcn.41050440
mov dword [rdi], eax
mov eax, dword [0x413604b0]
mov dword [rdi + 0x258], eax
mov eax, dword [rdi]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x4102a170
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
test r8d, r8d
mov rbx, rdx
mov rsi, rcx
je 0x4102a18a
mov rcx, rdx
jmp 0x4102a1d3
add rcx, 0x298
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsi + 0x298]
mov rdi, qword [rsp + 0x30]
lea rcx, [rsi + 0x290]
sub rax, qword [rcx]
imul rax, rax, 0x3e8
cqo
idiv qword [rsi + 0x2c0]
cmp rax, 0x3e8
jle 0x4102a1e7
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, rbx
call fcn.41050590
mov dword [rsi + 4], eax
mov eax, dword [0x413604b0]
mov dword [rsi + 0x258], eax
mov eax, dword [rsi + 4]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret

Function at 0x4102a200
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
test r8d, r8d
mov rbx, rdx
mov rsi, rcx
je 0x4102a21a
mov rcx, rdx
jmp 0x4102a263
add rcx, 0x2a8
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsi + 0x2a8]
mov rdi, qword [rsp + 0x30]
lea rcx, [rsi + 0x2a0]
sub rax, qword [rcx]
imul rax, rax, 0x3e8
cqo
idiv qword [rsi + 0x2c0]
cmp rax, 0x3e8
jle 0x4102a277
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, rbx
call fcn.41050650
mov dword [rsi + 8], eax
mov eax, dword [0x413604b0]
mov dword [rsi + 0x258], eax
mov eax, dword [rsi + 8]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret

Function at 0x4102a290
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
add rcx, 0x288
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rdi + 0x288]
lea rcx, [rdi + 0x280]
sub rax, qword [rcx]
imul rax, rax, 0x3e8
cqo
idiv qword [rdi + 0x2c0]
cmp rax, 0x3e8
jle 0x4102a2ed
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
call fcn.410500d0
mov dword [rdi + 0xc], eax
mov eax, dword [0x413604b0]
mov dword [rdi + 0x258], eax
mov eax, dword [rdi + 0xc]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x4102a300
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
add rcx, 0x278
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rdi + 0x278]
lea rcx, [rdi + 0x270]
sub rax, qword [rcx]
imul rax, rax, 0x3e8
cqo
idiv qword [rdi + 0x2c0]
cmp rax, 0x3e8
jle 0x4102a35d
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
call fcn.410507e0
mov dword [rdi + 0x10], eax
mov eax, dword [0x413604b0]
mov dword [rdi + 0x258], eax
mov eax, dword [rdi + 0x10]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x4102a370
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
test r8d, r8d
mov rbx, rdx
mov rsi, rcx
je 0x4102a38a
mov rcx, rdx
jmp 0x4102a3d3
add rcx, 0x2b8
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsi + 0x2b8]
mov rdi, qword [rsp + 0x30]
lea rcx, [rsi + 0x2b0]
sub rax, qword [rcx]
imul rax, rax, 0x3e8
cqo
idiv qword [rsi + 0x2c0]
cmp rax, 0x3e8
jle 0x4102a3e7
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, rbx
call fcn.41050190
mov dword [rsi + 0x10], eax
mov eax, dword [0x413604b0]
mov dword [rsi + 0x258], eax
mov eax, dword [rsi + 0x10]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret

Function at 0x4102a400
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
cmp dword [rcx + 0x14], 0
mov rbx, rdx
mov rsi, rcx
jg 0x4102a42c
mov rcx, rdx
call fcn.41050190
mov dword [rsi + 0x14], eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
test r8d, r8d
je 0x4102a436
mov rcx, rdx
jmp 0x4102a47f
add rcx, 0x2b8
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsi + 0x2b8]
mov rdi, qword [rsp + 0x30]
lea rcx, [rsi + 0x2b0]
sub rax, qword [rcx]
imul rax, rax, 0x3e8
cqo
idiv qword [rsi + 0x2c0]
cmp rax, 0x3e8
jle 0x4102a493
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, rbx
call fcn.41050190
mov dword [rsi + 0x14], eax
mov eax, dword [0x413604b0]
mov dword [rsi + 0x258], eax
mov eax, dword [rsi + 0x14]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
Function at 0x4102a4b0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [rcx + 0x14], 0
mov rsi, rdx
mov rdi, rcx
jg 0x4102a4dc
mov rcx, rdx
call fcn.410502b0
mov dword [rdi + 0x14], eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
test r8d, r8d
je 0x4102a4e6
mov rcx, rdx
jmp 0x4102a52f
add rcx, 0x2b8
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rdi + 0x2b8]
mov rbx, qword [rsp + 0x30]
lea rcx, [rdi + 0x2b0]
sub rax, qword [rcx]
imul rax, rax, 0x3e8
cqo
idiv qword [rdi + 0x2c0]
cmp rax, 0x3e8
jle 0x4102a543
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, rsi
call fcn.410502b0
mov dword [rdi + 0x14], eax
mov eax, dword [0x413604b0]
mov dword [rdi + 0x258], eax
mov eax, dword [rdi + 0x14]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x4102a570
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x41359af8]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x11c
call fcn.412121c0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x24], 6
jne 0x4102a5e9
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x4102a5c2
cmp eax, 1
jne 0x4102a5e9
cmp byte [rsp + 0x13a], 1
jne 0x4102a5e9
mov eax, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.41211b80
add rsp, 0x158
ret
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.41211b80
add rsp, 0x158
ret
Function at 0x4102a610
Capabilities:
Check if file exists
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x41359af8]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, str.Shell32.dll
mov esi, r8d
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x4102a6c2
lea rdx, str.SHGetKnownFolderPath
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov rdi, rax
je 0x4102a6c2
lea rdx, [rsp + 0x28]
lea rcx, str.A520A1A4_1780_4FF6_BD18_167343C5AF16
call qword [sym.imp.ole32.dll_CLSIDFromString]
lea r9, [rsp + 0x20]
lea rcx, [rsp + 0x28]
xor r8d, r8d
mov edx, 0x400
call rdi
test eax, eax
js 0x4102a6c2
mov rcx, qword [rsp + 0x20]
mov rdx, rbx
sub rdx, rcx
nop
nop
nop
nop
movzx eax, word [rcx]
add rcx, 2
test ax, ax
mov word [rdx + rcx - 2], ax
jne 0x4102a6a0
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4102a6c2
mov al, 1
jmp 0x4102a729
lea rcx, str.USERPROFILE
mov r8d, esi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4102a727
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
mov rax, qword [str.AppDataLocalLow]
mov rcx, rbx
mov qword [rdi - 2], rax
mov rax, qword [0x4129a0f8]
mov qword [rdi + 6], rax
mov rax, qword [0x4129a100]
mov qword [rdi + 0xe], rax
mov rax, qword [0x4129a108]
mov qword [rdi + 0x16], rax
mov eax, dword [0x4129a110]
mov dword [rdi + 0x1e], eax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4102a6be
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.41211b80
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x4102a890
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x680
mov rax, qword [0x41359af8]
xor rax, rsp
mov qword [rsp + 0x670], rax
mov rbx, rcx
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x40], 0
call fcn.412121c0
xor edx, edx
lea rcx, str.SOFTWARE_
nop
nop
nop
movzx eax, word [rdx + rcx]
add rdx, 2
test ax, ax
mov word [rsp + rdx + 0x3e], ax
jne 0x4102a8e0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x40]
repne scasw ax, word [rdi]
cmp qword [rbx + 0x70], 8
mov rax, qword [str.SmartCloudInput]
mov qword [rdi - 2], rax
mov rax, qword [0x4129a220]
mov qword [rdi + 6], rax
mov rax, qword [0x4129a228]
mov qword [rdi + 0xe], rax
mov rax, qword [0x4129a230]
mov qword [rdi + 0x16], rax
jb 0x4102a939
mov rcx, qword [rbx + 0x58]
jmp 0x4102a93d
lea rcx, [rbx + 0x58]
lea rdx, [rsp + 0x250]
nop
nop
nop
movzx eax, word [rcx]
add rdx, 2
add rcx, 2
test ax, ax
mov word [rdx - 2], ax
jne 0x4102a950
cmp qword [rbx + 0x48], 8
jb 0x4102a971
mov rcx, qword [rbx + 0x30]
jmp 0x4102a975
lea rcx, [rbx + 0x30]
lea rdx, [rsp + 0x460]
nop
movzx eax, word [rcx]
add rdx, 2
add rcx, 2
test ax, ax
mov word [rdx - 2], ax
jne 0x4102a980
lea rax, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r9d, 2
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4102aa1d
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x250]
lea rdx, str.CfgRootPath
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x460]
lea rdx, str.CfgUserPath
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x670]
xor rcx, rsp
call fcn.41211b80
mov rbx, qword [rsp + 0x690]
add rsp, 0x680
pop rdi
ret
Function at 0x4102c270
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x41359af8]
xor rax, rsp
mov qword [rsp + 0x230], rax
cmp qword [rcx + 0x70], 8
mov rbx, rcx
jb 0x4102c2a4
mov r8, qword [rcx + 0x58]
jmp 0x4102c2a8
lea r8, [rcx + 0x58]
lea r9, str.Config
lea rdx, [0x4129a1b0]
lea rcx, [rsp + 0x20]
call fcn.412122b0
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4102c2d9
lea rcx, [rsp + 0x20]
call fcn.410522e0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x20]
repne scasw ax, word [rdi]
mov rax, qword [str.Config.ini]
or rcx, 0xffffffffffffffff
mov qword [rdi - 2], rax
mov rax, qword [0x4129a2d0]
add rbx, 0x78
mov rdx, qword [rbx + 0x20]
mov qword [rdi + 6], rax
mov eax, dword [0x4129a2d8]
mov dword [rdi + 0xe], eax
movzx eax, word [0x4129a2dc]
mov word [rdi + 0x12], ax
xor eax, eax
lea rdi, [rsp + 0x20]
repne scasw ax, word [rdi]
cmp rdx, 8
not rcx
lea rsi, [rcx - 1]
jb 0x4102c33e
mov rax, qword [rbx + 8]
lea rdi, [rbx + 8]
jmp 0x4102c345
lea rdi, [rbx + 8]
mov rax, rdi
lea rcx, [rsp + 0x20]
cmp rcx, rax
jb 0x4102c396
cmp rdx, 8
jb 0x4102c35a
mov rcx, qword [rdi]
jmp 0x4102c35d
mov rcx, rdi
mov rax, qword [rbx + 0x18]
lea rcx, [rcx + rax*2]
lea rax, [rsp + 0x20]
cmp rcx, rax
jbe 0x4102c396
cmp rdx, 8
jb 0x4102c378
mov rdi, qword [rdi]
lea r8, [rsp + 0x20]
mov r9, rsi
mov rdx, rbx
sub r8, rdi
mov rcx, rbx
sar r8, 1
call fcn.41022de0
jmp 0x4102c42a
movabs rax, 0x7ffffffffffffffe
cmp rsi, rax
jbe 0x4102c3aa
call fcn.4120fbc0
mov rax, qword [rbx + 0x20]
cmp rax, rsi
jae 0x4102c3de
mov r8, qword [rbx + 0x18]
mov rdx, rsi
mov rcx, rbx
call fcn.41022ab0
test rsi, rsi
je 0x4102c42a
mov rdx, qword [rbx + 0x20]
mov qword [rsp + 0x258], rbp
cmp rdx, 8
jb 0x4102c3f7
mov rcx, qword [rdi]
jmp 0x4102c3fa
test rsi, rsi
jne 0x4102c3c2
cmp rax, 8
mov qword [rbx + 0x18], rsi
jb 0x4102c3f0
mov rdi, qword [rdi]
mov word [rdi], 0
jmp 0x4102c42a
mov rcx, rdi
lea rbp, [rsi + rsi]
lea r8, [rsp + 0x20]
add rdx, rdx
mov r9, rbp
call fcn.412118b0
cmp qword [rbx + 0x20], 8
mov qword [rbx + 0x18], rsi
jb 0x4102c41c
mov rdi, qword [rdi]
mov word [rdi + rbp], 0
mov rbp, qword [rsp + 0x258]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.41211b80
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret