joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013398
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov r13d, edx
mov edx, 0xffffffec
mov ebp, r8d
mov rdi, rcx
call qword [sym.imp.USER32.dll_GetWindowLongW]
mov rcx, rdi
mov r14d, eax
call qword [sym.imp.USER32.dll_GetParent]
xor r15d, r15d
lea rdx, [rsp + 0x68]
mov rcx, rdi
mov r12, rax
mov dword [rsp + 0x68], r15d
mov dword [rsp + 0x6c], r15d
mov dword [rsp + 0x70], r15d
mov dword [rsp + 0x74], r15d
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rdx, [rsp + 0xd8]
mov rcx, r12
mov dword [rsp + 0xd8], r15d
mov dword [rsp + 0xdc], r15d
call qword [sym.imp.USER32.dll_ScreenToClient]
mov r8d, dword [rsp + 0xdc]
mov edx, dword [rsp + 0xd8]
lea rcx, [rsp + 0x68]
call qword [sym.imp.USER32.dll_OffsetRect]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea rcx, [rsp + 0x60]
movsxd rbx, eax
lea edx, [rbx + 0x1b]
call fcn.14004bedc
mov rsi, qword [rsp + 0x60]
lea r8d, [rbx + 0xb]
mov rdx, rsi
mov rcx, rdi
mov word [rsi], r15w
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rax, qword [rsp + 0x60]
lea edx, [r15 + 0x31]
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
mov word [rax + rbx*2 + 0x14], r15w
call qword [sym.imp.USER32.dll_SendMessageW]
lea r9, [rsp + 0xd0]
mov r15, rax
or eax, 0xffffffff
lea r8, [rsp + 0xc0]
mov edx, 0xb0
mov rcx, rdi
mov dword [rsp + 0xc0], eax
mov dword [rsp + 0xd0], eax
call qword [sym.imp.USER32.dll_SendMessageW]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.USER32.dll_ShowWindow]
test ebp, ebp
jns 0x1400134cc
mov rcx, rdi
call qword [sym.imp.USER32.dll_DestroyWindow]
and qword [rsp + 0x58], 0
mov r9d, dword [rsp + 0x68]
mov edx, dword [rsp + 0x74]
mov r10d, dword [rsp + 0x6c]
mov r8d, dword [rsp + 0x70]
mov rax, qword [0x1400f1ca0]
mov qword [rsp + 0x50], rax
sub r8d, r9d
movzx ecx, bp
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], r12
sub edx, r10d
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], r9d
lea rdx, str.EDIT
xor r8d, r8d
mov r9d, r13d
mov ecx, r14d
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov r9d, 1
mov r8, r15
lea edx, [r9 + 0x2f]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov r9d, dword [rsp + 0xd0]
mov r8d, dword [rsp + 0xc0]
mov edx, 0xb1
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
lea rcx, [rsp + 0x60]
call fcn.140044f24
mov rax, rbx
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140013908
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov ebx, r8d
mov edi, edx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea esi, [rdi + rax]
cmp edi, 0x4e20
jb 0x140013934
xor ecx, ecx
call fcn.140046cd0
test edi, edi
jg 0x140013958
test ebx, ebx
jg 0x140013958
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r11, [rsp + 0x70]
xor eax, eax
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov edi, 0x64
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, esi
sub ecx, eax
test ecx, ecx
jg 0x14001396f
test ebx, ebx
jle 0x140013944
mov al, byte [0x1400ef217]
test al, al
jle 0x140013944
test ecx, ecx
je 0x1400139fc
cmp ecx, edi
mov r9d, ecx
mov eax, 0x3e8
cmova r9d, edi
cmp ecx, 0x7d0
lea rdx, [rsp + 0x30]
cmova r9d, eax
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x20], 0x4bf
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
jmp 0x1400139fc
test ebx, ebx
jg 0x1400139c1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, esi
sub ecx, eax
test ecx, ecx
jle 0x140013a06
lea rcx, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 3
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x140013a06
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_DispatchMessageW]
test ebx, ebx
jle 0x1400139fc
dec ebx
mov al, byte [0x1400ef217]
test al, al
jg 0x1400139af
xor ebx, ebx
jmp 0x14001395d

Function at 0x140013a10
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x20
mov r13, rcx
mov ebp, edx
xor r15d, r15d
lea rcx, [rsp + 0x68]
mov edx, 0x325
mov r12, r8
mov edi, r15d
mov esi, r15d
call fcn.14004bedc
mov rbx, qword [rsp + 0x68]
mov ecx, 0x324
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov rcx, r13
call qword [sym.imp.USER32.dll_CharUpperW]
mov rcx, rbx
call qword [sym.imp.USER32.dll_CharUpperW]
cmp word [rbx], r15w
je 0x140013aad
add ebp, 0x10
mov rcx, rbx
call fcn.140012e68
cmp eax, ebp
jb 0x140013ade
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
sub eax, 2
je 0x140013ad6
cmp eax, 1
jne 0x140013ade
movzx eax, word [rbx]
mov edi, 1
mov word [r12 + 2], ax
movzx eax, word [r13]
cmp word [rbx], ax
jb 0x140013ade
mov esi, edi
lea rcx, [rsp + 0x68]
call fcn.140044f24
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
cmp esi, r15d
cmovne edi, esi
mov eax, edi
add rsp, 0x20
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret
movzx eax, word [rbx]
mov word [r12], ax
mov rcx, rbx
call fcn.1400b9a24
inc eax
lea rbx, [rbx + rax*2]
cmp word [rbx], r15w
je 0x140013aad
jmp 0x140013a74
Function at 0x140014334
Capabilities:
Parse pe header
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x180
xor ebx, ebx
xor r9d, r9d
mov edx, 0x80000000
mov qword [rsp + 0x30], rbx
lea ebp, [rbx + 1]
mov dword [rsp + 0x28], 0x80
mov r8d, ebp
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140014381
xor eax, eax
jmp 0x14001441a
lea r9, [rsp + 0x198]
lea rdx, [rsp + 0x40]
mov r8d, 0x40
mov rcx, rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x198], 0x40
jne 0x14001440f
mov eax, 0x5a4d
cmp word [rsp + 0x40], ax
jne 0x14001440f
mov edx, dword [rsp + 0x7c]
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x14001440f
lea r9, [rsp + 0x198]
lea rdx, [rsp + 0x80]
mov r8d, 0xf8
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x198], 0xf8
jne 0x14001440f
cmp dword [rsp + 0x80], 0x4550
cmove ebx, ebp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x1400144d8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x20
mov rdi, rcx
mov esi, edx
lea rcx, [rsp + 0x40]
mov edx, 0x20a
call fcn.14004bedc
mov rax, qword [rsp + 0x40]
mov ebx, 0x20
mov word [rax], bx
mov rax, qword [rsp + 0x40]
xor r12d, r12d
mov word [rax + 2], r12w
mov rdx, qword [rsp + 0x40]
lea rcx, str.SystemRoot
add rdx, 2
mov r8d, 0x208
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea rdx, str.System32OnShutdown.wcs
lea rcx, [rsp + 0x40]
call fcn.14004bfa8
test bl, sil
lea r11, str.unknown
lea rax, [0x1400d6aa0]
lea rcx, str.reboot
lea rbx, str.lock
cmove rax, r11
test sil, 0x10
cmove rcx, rax
test sil, 2
lea rax, str.logout
cmove rax, rcx
test sil, 4
lea rcx, str.suspend
cmove rcx, rax
test sil, 8
lea rax, str.hiber
cmove rax, rcx
test sil, 0x40
lea rcx, str.poweroff
cmove rcx, rax
test sil, 0x80
cmove rbx, rcx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0x40]
mov rdx, rbx
movsxd rbp, eax
call fcn.14004bfa8
lea rdx, [0x1400d6d20]
lea rcx, [rsp + 0x40]
call fcn.14004bfa8
cmp rdi, r12
je 0x1400145f2
lea rcx, [rsp + 0x40]
mov rdx, rdi
call fcn.14004bfa8
mov rdx, qword [rsp + 0x40]
lea rcx, [0x1400f1e30]
call fcn.140039598
lea rdx, str._25INDATA
lea rcx, [rsp + 0x50]
call fcn.140058920
mov rax, qword [rsp + 0x40]
lea rcx, [rsp + 0x50]
lea rdx, [rax + rbp*2]
call fcn.14004bfa8
test sil, 0x70
je 0x14001463e
mov rdx, qword [rsp + 0x50]
lea rcx, [0x1400f1e30]
call fcn.140039598
lea rcx, [rsp + 0x50]
call fcn.140044f24
lea rcx, [rsp + 0x40]
call fcn.140044f24
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret
Function at 0x1400146f8
Capabilities:
Get common file path
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x440
mov rbx, rcx
lea rdx, [rsp + 0x20]
xor edi, edi
mov ecx, 0x208
mov word [rsp + 0x20], di
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, edi
je 0x14001473a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rbx, qword [rsp + 0x450]
add rsp, 0x440
pop rdi
ret

Function at 0x14001474c
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x1400d7e50]
mov rbp, rcx
lea rcx, [rsp + 0x30]
mov qword [rcx], rax
mov eax, dword [0x1400d7e58]
xor sil, sil
mov dword [rcx + 8], eax
xor dil, dil
movsx eax, dil
lea rcx, [rsp + 0x30]
add ax, 0x41
mov word [rsp + 0x30], ax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x140014806
movsx ebx, sil
lea r9, [rsp + 0x30]
lea rdx, str.HKLMSYSTEMCurrentControlSetControlSession_ManagerEnvironmentCDROM_u_s
lea rcx, [rsp + 0x40]
mov r8d, ebx
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x40]
lea rcx, [0x1400f1e30]
xor r8d, r8d
call fcn.140072908
lea r9, [rsp + 0x30]
lea rdx, str.CDROM_u
lea rcx, [rsp + 0x40]
mov r8d, ebx
call qword [sym.imp.USER32.dll_wsprintfW]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
lea rcx, [0x1400f1e30]
inc sil
call fcn.14004b578
inc dil
cmp dil, 0x1a
jl 0x140014784
test sil, sil
jle 0x140014833
and qword [rsp + 0x20], 0
lea rdx, str.THREAD_Envi
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
call fcn.1400367d4
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140014dd4
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x120
and dword [rax + 0x10], 0
lea r8, [rax + 0x10]
xor edx, edx
call qword [sym.imp.SHLWAPI.dll_StrToIntExW]
cmp dword [rsp + 0x138], 0
lea rcx, [rsp + 0x20]
setne bl
call qword [sym.imp.USER32.dll_GetKeyboardState]
test bl, bl
je 0x140014e15
test byte [rsp + 0xb0], 1
je 0x140014e1f
jmp 0x140014e41
test byte [rsp + 0xb0], 1
je 0x140014e41
xor r9d, r9d
mov dl, 0x45
mov cl, 0x90
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_keybd_event]
xor r9d, r9d
mov dl, 0x45
lea r8d, [r9 + 3]
mov cl, 0x90
call qword [sym.imp.USER32.dll_keybd_event]
xor eax, eax
add rsp, 0x120
pop rbx
ret
Function at 0x140014e4c
Capabilities:
Persist via run registry key

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rdi
push r12
sub rsp, 0x30
mov rbx, rcx
lea rcx, [rsp + 0x68]
mov r12b, dl
call fcn.14004be6c
lea rcx, [rsp + 0x60]
call fcn.14004be6c
xor edx, edx
lea rcx, [rbx + 2]
lea r8d, [rdx + 0x2c]
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
xor edi, edi
mov rbp, rax
cmp rax, rdi
je 0x140014f7e
lea r8, [rsp + 0x68]
lea rdx, [rbx + 2]
lea rcx, [0x1400f1e30]
xor r9d, r9d
mov word [rax], di
mov byte [rsp + 0x20], 1
call fcn.140056690
mov rbx, qword [rsp + 0x68]
lea rdx, [rbp + 2]
lea r8, [rsp + 0x60]
lea rcx, [0x1400f1e30]
xor r9d, r9d
mov qword [rsp + 0x50], rbx
mov byte [rsp + 0x20], 1
call fcn.140056690
mov rbp, qword [rsp + 0x60]
cmp r12b, dil
je 0x140014f17
lea rcx, [rsp + 0x50]
call fcn.140011910
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call fcn.1400b9a24
mov r8, rbp
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
add eax, eax
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
jmp 0x140014f71
mov rcx, rbx
call fcn.1400b9a24
lea r8, str.RegisteredOwner
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
add eax, eax
mov r9d, 1
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov rbx, 0xffffffff80000002
mov rcx, rbx
call fcn.140045e70
mov rcx, rbp
call fcn.1400b9a24
lea r8, str.RegisteredOrganization
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
add eax, eax
mov rcx, rbx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbp
mov r9d, 1
call fcn.140045e70
jmp 0x140014f83
mov edi, 1
lea rcx, [rsp + 0x60]
call fcn.140044f24
lea rcx, [rsp + 0x68]
call fcn.140044f24
mov rbx, qword [rsp + 0x58]
mov eax, edi
add rsp, 0x30
pop r12
pop rdi
pop rbp
ret
xor edx, edx
jmp 0x140014e4c
Function at 0x140014fb0
Capabilities:
Persist via run registry key

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rdi
push r12
sub rsp, 0x30
mov rbx, rcx
lea rcx, [rsp + 0x68]
mov r12b, dl
call fcn.14004be6c
lea rcx, [rsp + 0x60]
call fcn.14004be6c
xor edx, edx
lea rcx, [rbx + 2]
lea r8d, [rdx + 0x2c]
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
xor edi, edi
mov rbp, rax
cmp rax, rdi
je 0x140014f7e
lea r8, [rsp + 0x68]
lea rdx, [rbx + 2]
lea rcx, [0x1400f1e30]
xor r9d, r9d
mov word [rax], di
mov byte [rsp + 0x20], 1
call fcn.140056690
mov rbx, qword [rsp + 0x68]
lea rdx, [rbp + 2]
lea r8, [rsp + 0x60]
lea rcx, [0x1400f1e30]
xor r9d, r9d
mov qword [rsp + 0x50], rbx
mov byte [rsp + 0x20], 1
call fcn.140056690
mov rbp, qword [rsp + 0x60]
cmp r12b, dil
je 0x140014f17
lea rcx, [rsp + 0x50]
call fcn.140011910
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call fcn.1400b9a24
mov r8, rbp
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
add eax, eax
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
jmp 0x140014f71
mov rcx, rbx
call fcn.1400b9a24
lea r8, str.RegisteredOwner
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
add eax, eax
mov r9d, 1
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov rbx, 0xffffffff80000002
mov rcx, rbx
call fcn.140045e70
mov rcx, rbp
call fcn.1400b9a24
lea r8, str.RegisteredOrganization
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
add eax, eax
mov rcx, rbx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbp
mov r9d, 1
call fcn.140045e70
jmp 0x140014f83
mov edi, 1
lea rcx, [rsp + 0x60]
call fcn.140044f24
lea rcx, [rsp + 0x68]
call fcn.140044f24
mov rbx, qword [rsp + 0x58]
mov eax, edi
add rsp, 0x30
pop r12
pop rdi
pop rbp
ret
xor edx, edx
jmp 0x140014e4c
Function at 0x1400152e0
Capabilities:
Encrypt data using rc4 prga

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
xor r13d, r13d
mov rsi, r9
mov rbx, r8
mov r12, rdx
mov rdi, rcx
cmp qword [r9], r13
jne 0x140015347
mov qword [r9], rbx
movzx eax, word [rcx + 0x88]
cmp word [r8], ax
je 0x140015347
mov rcx, qword [r9]
movzx eax, word [rcx]
cmp ax, word [rdi + 0x90]
je 0x140015347
cmp ax, word [rdi + 0x8a]
je 0x140015347
add rcx, 2
mov qword [r9], rcx
movzx eax, word [rdi + 0x88]
cmp word [rcx], ax
jne 0x14001531c
mov rbp, qword [r9]
jmp 0x140015365
movzx eax, word [rbx]
cmp ax, word [rdi + 0x92]
je 0x140015361
cmp ax, word [rdi + 0x94]
jne 0x14001536a
add rbx, 2
cmp rbx, rbp
jbe 0x14001534c
sub rbp, rbx
mov rcx, r12
sar rbp, 1
lea edx, [rbp + 6]
call fcn.14004bf70
mov r11, qword [r12]
jmp 0x140015394
movzx eax, word [rbx]
xor ax, word [rdi + 0x48]
mov word [r11], ax
add r11, 2
add rbx, 2
cmp rbx, qword [rsi]
jb 0x140015381
mov word [r11], r13w
mov word [r11 + 2], r13w
mov word [r11 + 4], r13w
cmp byte [0x1400ef210], r13b
mov rbx, qword [r12]
jle 0x1400153c4
cmp byte [rdi + 0xe], r13b
jne 0x1400153c4
mov edx, ebp
mov rcx, rbx
call fcn.14001520c
cmp byte [rsp + 0x60], r13b
jne 0x1400153d3
mov rcx, rbx
call fcn.140012d94
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x1400153f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub r9d, 1
mov r10, rdx
js 0x140015437
movzx r11d, word [rcx + 0x48]
movzx ecx, word [r8]
movzx edx, word [r10]
add r10, 2
lea eax, [rcx - 0x41]
xor dx, r11w
add r8, 2
cmp ax, 0x19
ja 0x14001541f
add cx, 0x20
lea eax, [rdx - 0x41]
cmp ax, 0x19
ja 0x14001542c
add dx, 0x20
sub cx, dx
jne 0x14001543a
sub r9d, 1
jns 0x1400153fe
xor eax, eax
ret
movzx eax, cx
ret

Function at 0x140015a0c
Capabilities:
Log keystrokes via application hook

Disassembly:
sub rsp, 0x28
cmp qword [0x1400f1c88], 0
jne 0x140015a3c
mov r8, qword [0x1400f1ca0]
xor r9d, r9d
lea rdx, [0x140015874]
lea ecx, [r9 + 0xd]
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [0x1400f1c88], rax
add rsp, 0x28
ret
Function at 0x140015a8c
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x260
mov esi, edx
mov ebx, ecx
test ecx, ecx
jne 0x140015ab3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
lea rcx, [rsp + 0x28]
xor edi, edi
xor edx, edx
and dword [rsp + 0x24], edi
mov r8d, 0x230
mov dword [rsp + 0x20], 0x238
call fcn.1400b93b0
lea ecx, [rdi + 2]
mov edx, ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rdx, [rsp + 0x20]
mov rcx, rax
mov rbp, rax
call sub.KERNEL32.dll_Process32FirstW
jmp 0x140015b02
cmp dword [rsp + 0x28], ebx
je 0x140015b08
lea rdx, [rsp + 0x20]
mov rcx, rbp
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140015aef
jmp 0x140015b0c
mov edi, dword [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
dec esi
mov ebx, edi
test esi, esi
jg 0x140015ab3
lea r11, [rsp + 0x260]
mov eax, edi
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140015d48
Capabilities:
Query environment variable
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, r9
mov rbx, r8
mov rsi, rcx
cmp edx, 1
je 0x140015d7f
cmp edx, 2
jne 0x140015db0
mov r8d, 0x104
mov rdx, r9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rbx, rdi
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x140015d91
mov rcx, rbx
call fcn.1400b9a40
lea rcx, [rsi + 2]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rcx, [0x1400f1e30]
mov r8, rbx
mov rdx, rsi
call fcn.14004b578
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140015e84
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
lea rcx, [rsp + 0x30]
mov edx, 0x411
mov byte [0x1400f1e3f], 1
call fcn.14004bedc
mov rcx, qword [rsp + 0x30]
xor edx, edx
mov r8d, 0x822
call fcn.1400b93b0
mov rbx, qword [rsp + 0x30]
mov r8d, 0x104
add rbx, 0x410
xor ecx, ecx
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdi, [0x1400f1e30]
lea r8, str.PE_IDBASE
mov rcx, rdi
mov edx, 0x1000
call fcn.14004ed64
lea r8, str.WM_PE_BASE
mov edx, 0x5000
mov rcx, rdi
call fcn.14004ed64
lea r8, str.PE_MENU_IDBASE
mov edx, pe_nt_image_headers64
mov rcx, rdi
call fcn.14004ed64
lea rcx, [0x1400d82b2]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rdx, str.MyName
mov r8, rbx
mov rcx, rdi
call fcn.14004b578
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 0x5c]
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
test rax, rax
je 0x140015f72
lea rbx, [rax + 2]
lea rcx, [0x1400d829a]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rdx, str.MyName0
mov r8, rbx
mov rcx, rdi
call fcn.14004b578
lea rcx, str.Desktop
xor r8d, r8d
xor edx, edx
call fcn.140015dc0
lea rcx, str.Favorites
xor r8d, r8d
xor edx, edx
call fcn.140015dc0
lea rcx, str.Programs
xor r8d, r8d
xor edx, edx
call fcn.140015dc0
lea rcx, str.SendTo
xor r8d, r8d
xor edx, edx
call fcn.140015dc0
lea rcx, str.Personal
xor r8d, r8d
xor edx, edx
call fcn.140015dc0
lea rdx, str.Start_Menu
lea rcx, [0x1400d7568]
xor r8d, r8d
call fcn.140015dc0
lea rdx, str.Cache
lea rcx, str.IECache
xor r8d, r8d
call fcn.140015dc0
lea rcx, str.Startup
xor r8d, r8d
xor edx, edx
call fcn.140015dc0
lea r8, str.MicrosoftInternet_ExplorerQuick_Launch
lea rdx, str.AppData
lea rcx, str.QuickLaunch
call fcn.140015dc0
lea rcx, [rsp + 0x30]
call fcn.140044f24
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14001603c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x14f0
call fcn.1400d37c0
sub rsp, rax
lea rbx, [0x1400ef220]
xor edi, edi
mov rcx, qword [rbx]
mov eax, 0x26
mov word [rsp + 0x90], di
mov word [rsp + 0x20], ax
lea rdx, [rsp + 0x22]
movsx eax, byte [rcx]
inc rcx
mov word [rdx], ax
add rdx, 2
cmp ax, di
jne 0x140016072
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x22]
mov r8d, 0xa28
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0x20]
lea rcx, [0x1400f1e30]
call fcn.14004b578
lea rax, [0x1400ef248]
add rbx, 8
cmp rbx, rax
jl 0x140016058
mov rbx, qword [rsp + 0x1500]
add rsp, 0x14f0
pop rdi
ret
Function at 0x1400169b8
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xf0
mov rax, qword [rdx]
xor edi, edi
movzx ebp, r8w
cmp word [rax + 2], di
mov r14d, edi
mov r12, rdx
sete r14b
mov r15d, ecx
mov esi, 0x12c
cmp qword [0x1400f1de0], rdi
jne 0x140016a70
call qword [0x1400f1dd8]
mov esi, edi
mov rbx, rax
cmp rax, rdi
je 0x140016a53
lea r13, [0x1400d63f4]
lea rbp, str.DeviceImDisk
test bl, 1
je 0x140016a49
mov r8, rbp
cmp r15d, edi
lea rdx, str.__s_u_r_n
lea rcx, [rsp + 0x20]
mov r9d, esi
cmovne r8, r13
call qword [sym.imp.USER32.dll_wsprintfW]
movsxd r11, r14d
mov rcx, r12
lea rdx, [rsp + r11*2 + 0x20]
call fcn.14004bfa8
shr rbx, 1
inc esi
cmp rbx, rdi
jne 0x140016a15
xor eax, eax
mov rbx, qword [rsp + 0x130]
add rsp, 0xf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r13d, edi
mov ebx, esi
shl rbx, 2
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
cmp rax, rdi
je 0x140016a53
mov rdx, rax
mov ecx, esi
mov dword [rax], edi
call qword [0x1400f1de0]
cmp rax, rdi
jne 0x140016b65
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140016b25
cmp eax, 0xea
jne 0x140016ae3
mov esi, dword [rbx]
inc esi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
inc r13d
cmp r13d, 2
jl 0x140016a73
jmp 0x140016a53
cmp bp, di
je 0x140016b1d
lea rdx, str._CannotControlImDiskDriver
lea rcx, [rsp + 0x138]
or r8d, 0xffffffff
call fcn.140058960
lea rdx, [rsp + 0x138]
mov rcx, r12
call fcn.1400589ec
lea rcx, [rsp + 0x138]
call fcn.140044f24
or edi, 0xffffffff
jmp 0x140016bc2
cmp bp, di
je 0x140016bc2
lea rdx, str._ImDiskNotLoad
lea rcx, [rsp + 0x148]
or r8d, 0xffffffff
call fcn.140058960
lea rdx, [rsp + 0x148]
mov rcx, r12
call fcn.1400589ec
lea rcx, [rsp + 0x148]
call fcn.140044f24
jmp 0x140016bc2
cmp dword [rbx], 1
jb 0x140016bc2
mov esi, 1
cmp dword [rbx], esi
jb 0x140016bc2
lea r13, [0x1400d63f4]
lea rbp, str.DeviceImDisk
cmp r15d, edi
movsxd rax, r14d
cmovne rbp, r13
lea r13, [rbx + 4]
lea r14, [rsp + rax*2 + 0x20]
mov r9d, dword [r13]
lea rdx, str.__s_u_r_n
lea rcx, [rsp + 0x20]
mov r8, rbp
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, r14
mov rcx, r12
call fcn.14004bfa8
inc esi
add r13, 4
cmp esi, dword [rbx]
jbe 0x140016b94
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
jmp 0x140016a55