joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008fd0
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rsi, rcx
mov rdi, qword [rax + 0x18]
add rdi, 0x20
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x140009032
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rbx + 0x40]
mov rdx, rsi
mov r8, rax
call fcn.140009d70
test al, al
jne 0x140009044
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x140009000
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rbx + 0x20]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov eax, 0x74
mov dword [rbp - 0x20], 0x200005
lea rcx, [rbp - 0x20]
mov word [rbp - 0xc], ax
mov dword [rbp - 0x1c], 0x3d0025
mov dword [rbp - 0x18], 0x22004c
mov dword [rbp - 0x14], 0x340023
mov dword [rbp - 0x10], 0x2d0034
call fcn.140004fd0
mov rcx, rax
call 0x140008fd0
mov qword [0x1400161b8], rax
lea rcx, [rbp - 0x20]
mov eax, 0x67
mov dword [rbp - 0x20], 0x200005
mov word [rbp - 0x10], ax
mov dword [rbp - 0x1c], 0x3d0025
mov dword [rbp - 0x18], 0x22004c
mov dword [rbp - 0x14], 0x470052
call fcn.1400022a0
mov rcx, rax
call 0x140008fd0
lea rcx, [rbp - 0x20]
mov qword [0x1400161a8], rax
mov dword [rbp - 0x20], 0x110020
mov dword [rbp - 0x1c], 0x1f0013
mov dword [rbp - 0x18], 0x6e0065
call fcn.140004e60
mov rcx, rax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
jmp 0x140008fd0
Function at 0x1400092d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
movsxd rax, dword [rcx + 0x3c]
mov r12, rdx
mov rdx, rcx
mov ecx, dword [rax + rcx + 0x88]
xor eax, eax
add rcx, rdx
mov dword [rbp - 0x2c], eax
mov qword [rbp - 0x28], rcx
mov r8d, dword [rcx + 0x1c]
mov r9d, dword [rcx + 0x20]
add r8, rdx
mov r10d, dword [rcx + 0x24]
add r9, rdx
add r10, rdx
mov qword [rbp - 0x20], r8
mov qword [rbp - 0x18], r9
mov qword [rbp - 0x10], r10
cmp dword [rcx + 0x18], eax
jbe 0x1400094fe
mov word [rbp + 0x50], 0x654e
mov word [rbp + 0x58], 0x654e
nop
mov esi, dword [r9 + rax*4]
lea rcx, [rbp + 0x50]
movzx eax, word [r10 + rax*2]
add rsi, rdx
xor edi, edi
mov r15d, dword [r8 + rax*4]
add r15, rdx
mov qword [rbp - 8], r15
call fcn.140001770
movzx ecx, byte [rax]
cmp byte [rsi], cl
je 0x140009384
nop dword [rax]
lea rcx, [rbp + 0x50]
inc rdi
call fcn.140001770
movzx ecx, byte [rax]
cmp byte [rdi + rsi], cl
jne 0x140009370
lea rcx, [rbp + 0x58]
xor ebx, ebx
call fcn.140001770
movzx ecx, byte [rax]
cmp byte [r12], cl
je 0x1400093b5
nop dword [rax + rax]
lea rcx, [rbp + 0x58]
inc rbx
call fcn.140001770
movzx ecx, byte [rax]
cmp byte [rbx + r12], cl
jne 0x1400093a0
cmp rdi, rbx
jne 0x1400094d2
mov r13, rsi
mov word [rbp - 0x50], 0x654e
sub r13, r12
mov r14, r12
nop dword [rax]
lea rcx, [rbp - 0x50]
xor ebx, ebx
call fcn.140001770
movzx ecx, byte [rax]
cmp byte [rsi], cl
je 0x1400093f6
lea rcx, [rbp - 0x50]
inc rbx
call fcn.140001770
movzx ecx, byte [rax]
cmp byte [rbx + rsi], cl
jne 0x1400093e2
mov rax, r14
sub rax, r12
dec rbx
cmp rax, rbx
jae 0x1400094f8
movsx r15d, byte [r14 + r13]
lea rcx, [rbp - 0x4e]
mov dword [rbp - 0x4e], 0x65002f
call fcn.140002490
movzx eax, word [rax]
cmp r15d, eax
jl 0x140009468
lea rcx, [rbp - 0x4a]
mov dword [rbp - 0x4a], 0x650034
call fcn.140002490
movzx ecx, word [rax]
cmp r15d, ecx
jg 0x140009468
lea rcx, [rbp - 0x46]
mov dword [rbp - 0x46], 0x65002f
mov dword [rbp - 0x42], 0x65000f
call fcn.140002490
lea rcx, [rbp - 0x42]
movzx ebx, byte [rax]
call fcn.140002490
movzx ecx, byte [rax]
sub cl, bl
add r15b, cl
movsx edi, byte [r14]
lea rcx, [rbp - 0x3e]
mov dword [rbp - 0x3e], 0x65002f
call fcn.140002490
movzx eax, word [rax]
cmp edi, eax
jl 0x1400094c5
lea rcx, [rbp - 0x3a]
mov dword [rbp - 0x3a], 0x650034
call fcn.140002490
movzx ecx, word [rax]
cmp edi, ecx
jg 0x1400094c5
lea rcx, [rbp - 0x36]
mov dword [rbp - 0x36], 0x65002f
mov dword [rbp - 0x32], 0x65000f
call fcn.140002490
lea rcx, [rbp - 0x32]
movzx ebx, byte [rax]
call fcn.140002490
movzx ecx, byte [rax]
sub cl, bl
add dil, cl
cmp r15b, dil
jne 0x1400094d2
inc r14
jmp 0x1400093d0
mov eax, dword [rbp - 0x2c]
mov rcx, qword [rbp - 0x28]
inc eax
mov dword [rbp - 0x2c], eax
cmp eax, dword [rcx + 0x18]
jae 0x1400094fe
mov rdx, qword [rbp + 0x40]
mov r8, qword [rbp - 0x20]
mov r9, qword [rbp - 0x18]
mov r10, qword [rbp - 0x10]
jmp 0x140009340
mov rax, qword [rbp - 8]
jmp 0x140009500
xor eax, eax
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000a000
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rsi, rcx
mov rdi, qword [rax + 0x18]
add rdi, 0x20
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x140009032
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rbx + 0x40]
mov rdx, rsi
mov r8, rax
call fcn.140009d70
test al, al
jne 0x140009044
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x140009000
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rbx + 0x20]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov eax, 0x74
mov dword [rbp - 0x20], 0x200005
lea rcx, [rbp - 0x20]
mov word [rbp - 0xc], ax
mov dword [rbp - 0x1c], 0x3d0025
mov dword [rbp - 0x18], 0x22004c
mov dword [rbp - 0x14], 0x340023
mov dword [rbp - 0x10], 0x2d0034
call fcn.140004fd0
mov rcx, rax
call 0x140008fd0
mov qword [0x1400161b8], rax
lea rcx, [rbp - 0x20]
mov eax, 0x67
mov dword [rbp - 0x20], 0x200005
mov word [rbp - 0x10], ax
mov dword [rbp - 0x1c], 0x3d0025
mov dword [rbp - 0x18], 0x22004c
mov dword [rbp - 0x14], 0x470052
call fcn.1400022a0
mov rcx, rax
call 0x140008fd0
lea rcx, [rbp - 0x20]
mov qword [0x1400161a8], rax
mov dword [rbp - 0x20], 0x110020
mov dword [rbp - 0x1c], 0x1f0013
mov dword [rbp - 0x18], 0x6e0065
call fcn.140004e60
mov rcx, rax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
jmp 0x140008fd0
Function at 0x14000b2c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rbx, qword [0x1400161c0]
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x20], 0xd001d
mov dword [rbp - 0x1c], 0x1f0012
mov dword [rbp - 0x18], 0x5d0065
mov dword [rbp - 0x14], 0x5b0053
mov dword [rbp - 0x10], 0x40003
mov dword [rbp - 0xc], 0x790018
call fcn.1400029c0
mov rcx, rax
call rbx
mov rbx, qword [0x1400161c0]
lea rcx, [rbp - 0x20]
mov qword [0x1400161a0], rax
mov dword [rbp - 0x20], 0xc0019
mov dword [rbp - 0x1c], 0x1a0019
mov dword [rbp - 0x18], 0xb0067
mov dword [rbp - 0x14], 0x5b0015
mov dword [rbp - 0x10], 0x40003
mov dword [rbp - 0xc], 0x790018
call fcn.1400029c0
mov rcx, rax
call rbx
movdqa xmm0, xmmword [0x1400149c0]
lea rcx, [rbp - 0x20]
mov rbx, qword [0x140016130]
movdqu xmmword [rbp - 0x20], xmm0
mov qword [0x1400161b0], rax
mov word [rbp - 0x10], 0x207f
mov byte [rbp - 0xe], 0x61
call fcn.140004620
mov rcx, qword [0x1400161a0]
mov rdx, rax
call rbx
mov rbx, qword [0x140016130]
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x20], 0x1f120d1d
mov dword [rbp - 0x1c], 0x10192b65
mov dword [rbp - 0x18], 0x1c001d04
mov word [rbp - 0x14], 0x655e
call fcn.140001180
mov rcx, qword [0x1400161a0]
mov rdx, rax
call rbx
mov rbx, qword [0x140016130]
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x20], 0x16030b07
mov dword [rbp - 0x1c], 0x104007b
mov dword [rbp - 0x18], 0x17111828
mov word [rbp - 0x14], 0x6548
call fcn.140001180
mov rcx, qword [0x1400161b0]
mov rdx, rax
call rbx
movdqa xmm0, xmmword [0x140014a70]
lea rcx, [rbp - 0x20]
mov rbx, qword [0x140016130]
movdqu xmmword [rbp - 0x20], xmm0
mov qword [0x1400160e8], rax
mov byte [rbp - 0x10], 9
call fcn.140004330
mov rcx, qword [0x1400161b0]
mov rdx, rax
call rbx
movdqa xmm0, xmmword [0x140014a10]
lea rcx, [rbp - 0x20]
mov rbx, qword [0x140016130]
movdqu xmmword [rbp - 0x20], xmm0
mov qword [0x1400160f0], rax
mov dword [rbp - 0x10], 0x64041b6d
call fcn.140002660
mov rcx, qword [0x1400161b0]
mov rdx, rax
call rbx
movdqa xmm0, xmmword [0x140014990]
lea rcx, [rbp - 0x20]
mov rbx, qword [0x140016130]
movdqu xmmword [rbp - 0x20], xmm0
mov qword [0x1400160e0], rax
mov byte [rbp - 0x10], 9
call fcn.140004330
mov rcx, qword [0x1400161b0]
mov rdx, rax
call rbx
movdqa xmm0, xmmword [0x140014930]
lea rcx, [rbp - 0x20]
mov rbx, qword [0x140016130]
movdqu xmmword [rbp - 0x20], xmm0
mov qword [0x1400160d8], rax
mov dword [rbp - 0x10], 0x250f1860
mov byte [rbp - 0xc], 0x6d
call fcn.140003130
mov rcx, qword [0x1400161b0]
mov rdx, rax
call rbx
movdqa xmm0, xmmword [0x140014a20]
lea rcx, [rbp - 0x20]
mov rbx, qword [0x140016130]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x10], 0x3667
mov byte [rbp - 0xe], 0x61
call fcn.140004620
mov rcx, qword [0x1400161b0]
mov rdx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
jmp rax
Function at 0x401000
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
lea r8, str._.98s
mov edx, 0x63
mov r9, rcx
mov rcx, qword [0x0041bca8]
call qword [sym.imp.msvcrt.dll__snwprintf]
lea rcx, [0x0041bcc0]
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_DeleteFileW]

Function at 0x401032
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
lea r8, str._.94s.lnk
mov edx, 0x63
mov r9, rcx
mov rcx, qword [0x0041bca8]
call qword [sym.imp.msvcrt.dll__snwprintf]
lea rcx, [0x0041bcc0]
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_DeleteFileW]

Function at 0x401064
Capabilities:
Query or enumerate registry value
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rbx, [0x0041bcc0]
xor r9d, r9d
xor r8d, r8d
lea rax, [rsp + 0x38]
mov rdx, rcx
mov rdi, rcx
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x38], 0x2d0
mov rcx, qword [0x0041bf98]
mov qword [rsp + 0x28], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401171
lea rsi, [rsp + 0x40]
mov r9, rdi
mov edx, 0x10
mov rdi, qword [sym.imp.msvcrt.dll__snwprintf]
lea r8, str.__s_hex_2_:
mov rcx, rsi
call rdi
lea rbp, [rsp + 0x3c]
mov rcx, rsi
call sub.msvcrt.dll_wcslen
mov r9, rbp
mov rdx, rsi
mov qword [rsp + 0x20], 0
lea r8d, [rax + rax]
mov rcx, qword [0x0041bfa0]
mov r12, qword [sym.imp.KERNEL32.dll_WriteFile]
lea r13, [0x00407020]
call r12
lea r14, [0x00407024]
lea r15, str._02x_s
mov eax, dword [rsp + 0x38]
lea edx, [rax - 1]
test eax, eax
mov dword [rsp + 0x38], edx
je 0x401171
test edx, edx
mov rax, r14
movzx r9d, byte [rbx]
mov r8, r15
cmovne rax, r13
mov edx, 0x10
mov rcx, rsi
inc rbx
mov qword [rsp + 0x20], rax
call rdi
mov rcx, rsi
call sub.msvcrt.dll_wcslen
mov r9, rbp
mov rdx, rsi
mov qword [rsp + 0x20], 0
lea r8d, [rax + rax]
mov rcx, qword [0x0041bfa0]
call r12
jmp 0x401119
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x401182
Capabilities:
Create process on windows

Disassembly:
push rdi
push rbx
sub rsp, 0xd8
xor eax, eax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x0040b280]
lea rdi, [rsp + 0x6c]
mov ebx, ecx
mov ecx, 0x19
mov dword [rsp + 0x68], 0x68
rep stosd dword [rdi], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401218
test bl, bl
je 0x401202
or edx, 0xffffffff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
mov rdi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rdi
mov rcx, qword [rsp + 0x58]
call rdi
nop
add rsp, 0xd8
pop rbx
pop rdi
ret
Function at 0x401222
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x60
xor r9d, r9d
xor r8d, r8d
lea rax, [rsp + 0x58]
mov rbx, rdx
mov rdx, rcx
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x102
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov rcx, rbx
call sub.msvcrt.dll_wcslen
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea eax, [rax + rax + 2]
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x28], eax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
add rsp, 0x60
pop rbx
ret

Function at 0x4012a9
Capabilities:
Check if file exists

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x260
lea rbx, [rsp + 0x30]
mov ebp, edx
mov rdx, qword [0x0040b1b0]
mov rdi, rcx
lea rcx, str._shellImDiskMountFile
call fcn.00401222
mov r9, rdi
mov edx, 0x118
mov rcx, rbx
lea r8, str._sMountImg.exe
mov r12, qword [sym.imp.msvcrt.dll__snwprintf]
call r12
mov r9, rdi
mov edx, 0x8000
lea r8, str.__sMountImg.exe_____L_
lea rcx, [0x0040b280]
call r12
cmp ebp, 2
je 0x4013f6
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea rdx, str.rundll32.exe_imdisk.cpl_RunDLL_MountFile__L
lea rcx, str._shellImDiskMountFilecommand
test eax, eax
lea rax, [0x0040b280]
cmovne rdx, rax
call fcn.00401222
mov rdx, qword [0x0040b1b8]
lea rcx, str.Drive_shellImDiskSaveImage
lea rbx, str.UAC
call fcn.00401222
lea rax, [0x004070af]
test ebp, ebp
cmove rbx, rax
mov r9, rdi
mov qword [rsp + 0x20], rbx
mov edx, 0x8000
lea r8, str.__sImDisk_Dlg.exe___SCP___L
lea rsi, [0x0040b280]
lea rcx, [0x0040b280]
call r12
lea rdx, str.rundll32.exe_imdisk.cpl_RunDLL_SaveImageFile__L
cmp ebp, 2
cmovne rdx, rsi
lea rcx, str.Drive_shellImDiskSaveImagecommand
call fcn.00401222
mov rdx, qword [0x0040b1c0]
lea rcx, str.Drive_shellImDiskUnmount
call fcn.00401222
mov r9, rdi
mov rcx, rsi
mov qword [rsp + 0x20], rbx
lea r8, str.__sImDisk_Dlg.exe___SRM___L
mov edx, 0x8000
call r12
lea rdx, str.rundll32.exe_imdisk.cpl_RunDLL_RemoveDevice__L
cmp ebp, 2
cmovne rdx, rsi
lea rcx, str.Drive_shellImDiskUnmountcommand
call fcn.00401222
nop
add rsp, 0x260
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rdx, str.rundll32.exe_imdisk.cpl_RunDLL_MountFile__L
lea rcx, str._shellImDiskMountFilecommand
call fcn.00401222
mov rdx, qword [0x0040b1b8]
lea rcx, str.Drive_shellImDiskSaveImage
lea rbx, str.UAC
call fcn.00401222
jmp 0x401361
Function at 0x402587
Capabilities:
Get file size
Read file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
xor r9d, r9d
mov r8d, 3
mov edx, 0x80000000
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x4026e8
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x48], 0x20000
jle 0x4025f2
mov rcx, rbx
call rsi
jmp 0x4026e8
mov rcx, qword [section..bss]
test rcx, rcx
je 0x40260c
mov r8d, 0x8000
xor edx, edx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, qword [rsp + 0x48]
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
lea rdx, [rax + 2]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x48]
mov rcx, rbx
mov rdx, rax
mov qword [section..bss], rax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbx
call rsi
mov rcx, qword [section..bss]
lea rdx, str._Setup_
call sub.msvcrt.dll_wcsstr
test rax, rax
je 0x4026e8
lea rdx, [0x00407024]
mov rcx, rax
xor ebx, ebx
call sub.msvcrt.dll_wcstok
lea rdi, [0x00407024]
lea rsi, [0x0040b020]
xor ecx, ecx
mov rdx, rdi
call sub.msvcrt.dll_wcstok
mov qword [rsi + rbx*8], rax
mov rcx, rax
call sub.msvcrt.dll_wcslen
cmp rax, 0x3ff
jbe 0x4026b6
mov rax, qword [rsi + rbx*8]
mov word [rax + 0x800], 0
inc rbx
cmp rbx, 0x49
jne 0x40268b
mov edx, dword [rsp + 0x48]
xor eax, eax
mov rcx, qword [section..bss]
shr edx, 1
mov dword [rsp + 0x48], edx
cmp edx, eax
jbe 0x4026e8
cmp word [rcx + rax*2], 0x23
jne 0x4026e3
mov word [rcx + rax*2], 0xa
inc rax
jmp 0x4026d2
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
Function at 0x403010
Capabilities:
Copy file
Move file

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x2f0
lea rdx, [0x0041bcc0]
lea rbx, [rsp + 0x20]
mov rdi, rcx
mov rcx, rbx
call sub.msvcrt.dll_wcscpy
mov rcx, rbx
call sub.msvcrt.dll_wcslen
lea rdx, [0x00407c2e]
lea rcx, [rbx + rax*2 - 6]
call sub.msvcrt.dll_wcscpy
mov r8d, 1
mov rdx, rbx
mov rsi, qword [sym.imp.KERNEL32.dll_MoveFileExW]
lea rcx, [0x0041bcc0]
call rsi
xor edx, edx
mov r8d, 4
mov rcx, rbx
call rsi
lea rdx, [0x0041bcc0]
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x403090
mov byte [0x0041bfad], 1
jmp 0x4030bc
cmp byte [0x0041bfae], 0
jne 0x4030b5
mov r9d, 0x10
mov r8, qword [0x0040b020]
xor ecx, ecx
mov rdx, qword [0x0040b0f0]
call qword [sym.imp.USER32.dll_MessageBoxW]
mov byte [0x0041bfae], 1
add rsp, 0x2f0
pop rbx
pop rsi
pop rdi
ret
push rsi
push rbx
sub rsp, 0x28
lea r8, str._.98s
mov edx, 0x63
mov rbx, rcx
mov r9, rcx
mov rcx, qword [0x0041bca8]
call qword [sym.imp.msvcrt.dll__snwprintf]
xor r8d, r8d
mov rcx, rbx
mov rsi, qword [sym.imp.KERNEL32.dll_CopyFileW]
lea rdx, [0x0041bcc0]
call rsi
test eax, eax
jne 0x403132
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r8d, r8d
mov rcx, rbx
lea rdx, [0x0041bcc0]
call rsi
test eax, eax
jne 0x403132
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
jmp 0x403010
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x4030c7
Capabilities:
Copy file
Move file

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x2f0
lea rdx, [0x0041bcc0]
lea rbx, [rsp + 0x20]
mov rdi, rcx
mov rcx, rbx
call sub.msvcrt.dll_wcscpy
mov rcx, rbx
call sub.msvcrt.dll_wcslen
lea rdx, [0x00407c2e]
lea rcx, [rbx + rax*2 - 6]
call sub.msvcrt.dll_wcscpy
mov r8d, 1
mov rdx, rbx
mov rsi, qword [sym.imp.KERNEL32.dll_MoveFileExW]
lea rcx, [0x0041bcc0]
call rsi
xor edx, edx
mov r8d, 4
mov rcx, rbx
call rsi
lea rdx, [0x0041bcc0]
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x403090
mov byte [0x0041bfad], 1
jmp 0x4030bc
cmp byte [0x0041bfae], 0
jne 0x4030b5
mov r9d, 0x10
mov r8, qword [0x0040b020]
xor ecx, ecx
mov rdx, qword [0x0040b0f0]
call qword [sym.imp.USER32.dll_MessageBoxW]
mov byte [0x0041bfae], 1
add rsp, 0x2f0
pop rbx
pop rsi
pop rdi
ret
push rsi
push rbx
sub rsp, 0x28
lea r8, str._.98s
mov edx, 0x63
mov rbx, rcx
mov r9, rcx
mov rcx, qword [0x0041bca8]
call qword [sym.imp.msvcrt.dll__snwprintf]
xor r8d, r8d
mov rcx, rbx
mov rsi, qword [sym.imp.KERNEL32.dll_CopyFileW]
lea rdx, [0x0041bcc0]
call rsi
test eax, eax
jne 0x403132
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r8d, r8d
mov rcx, rbx
lea rdx, [0x0041bcc0]
call rsi
test eax, eax
jne 0x403132
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
jmp 0x403010
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x140001180
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
lea r8d, [rdx + 6]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor r11d, r11d
lea rsi, [0x140010040]
mov r10, rax
sub rbx, rax
movabs rdi, 0x3159721ed7e75347
lea r9, [rax + 1]
nop dword [rax + rax]
movsxd r8, r11d
mov rax, rdi
mul r8
mov rcx, r8
shr rdx, 6
imul rax, rdx, 0x14c
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 1]
xor al, byte [rbx + r9 - 1]
mov byte [r9 - 1], al
mov rax, rdi
mul rcx
shr rdx, 6
imul rax, rdx, 0x14c
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 2]
xor al, byte [rbx + r9]
mov byte [r9], al
mov rax, rdi
mul rcx
shr rdx, 6
imul rax, rdx, 0x14c
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 3]
xor al, byte [rbx + r9 + 1]
mov byte [r9 + 1], al
mov rax, rdi
mul rcx
shr rdx, 6
imul rax, rdx, 0x14c
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 4]
xor al, byte [rbx + r9 + 2]
mov byte [r9 + 2], al
mov rax, rdi
mul rcx
shr rdx, 6
imul rax, rdx, 0x14c
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 5]
xor al, byte [rbx + r9 + 3]
mov byte [r9 + 3], al
mov rax, rdi
mul rcx
shr rdx, 6
imul rax, rdx, 0x14c
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 6]
xor al, byte [rbx + r9 + 4]
mov byte [r9 + 4], al
mov rax, rdi
mul rcx
shr rdx, 6
imul rax, rdx, 0x14c
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 7]
xor al, byte [rbx + r9 + 5]
mov byte [r9 + 5], al
mov rax, rdi
mul rcx
shr rdx, 6
imul rax, rdx, 0x14c
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 8]
xor al, byte [rbx + r9 + 6]
mov byte [r9 + 6], al
mov rax, rdi
mul rcx
shr rdx, 6
imul rax, rdx, 0x14c
sub rcx, rax
movzx eax, byte [rcx + rsi]
xor al, byte [rbx + r9 + 7]
mov byte [r9 + 7], al
lea rcx, [r8 + 9]
mov rax, rdi
lea r9, [r9 + 0xe]
mul rcx
add r11d, 0xe
shr rdx, 6
imul rax, rdx, 0x14c
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 0xa]
xor al, byte [rbx + r9 - 6]
mov byte [r9 - 6], al
mov rax, rdi
mul rcx
shr rdx, 6
imul rax, rdx, 0x14c
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 0xb]
xor al, byte [rbx + r9 - 5]
mov byte [r9 - 5], al
mov rax, rdi
mul rcx
shr rdx, 6
imul rax, rdx, 0x14c
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 0xc]
xor al, byte [rbx + r9 - 4]
mov byte [r9 - 4], al
mov rax, rdi
mul rcx
shr rdx, 6
imul rax, rdx, 0x14c
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 0xd]
xor al, byte [rbx + r9 - 3]
mov byte [r9 - 3], al
mov rax, rdi
mul rcx
shr rdx, 6
imul rax, rdx, 0x14c
sub rcx, rax
movzx eax, byte [rcx + rsi]
xor al, byte [rbx + r9 - 2]
mov byte [r9 - 2], al
cmp r11d, 0xe
jb 0x1400011d0
mov rbx, qword [rsp + 0x30]
mov rax, r10
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140001400
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
lea r8d, [rdx + 0x72]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor r10d, r10d
lea rsi, [0x140010040]
mov r11, rax
sub rbx, rax
movabs rdi, 0x3159721ed7e75347
lea r9, [rax + 1]
nop dword [rax + rax]
movsxd r8, r10d
lea r9, [r9 + 2]
mov rax, rdi
mov rcx, r8
mul r8
add r10d, 2
shr rdx, 6
imul rax, rdx, 0x14c
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 1]
xor al, byte [rbx + r9 - 3]
mov byte [r9 - 3], al
mov rax, rdi
mul rcx
shr rdx, 6
imul rax, rdx, 0x14c
sub rcx, rax
movzx eax, byte [rcx + rsi]
xor al, byte [rbx + r9 - 2]
mov byte [r9 - 2], al
cmp r10d, 0x7a
jb 0x140001450
mov rbx, qword [rsp + 0x30]
mov rax, r11
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret