joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4157f0
Capabilities:
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x88], rdx
mov qword [rbp + 0x90], r8
mov rcx, qword [rbp + 0x88]
call fcn.0040f680
mov rcx, qword [rbp + 0x90]
call fcn.0040f680
nop
mov rcx, qword [rbp + 0x28]
call fcn.0040f4b0
cmp qword [rbp + 0x90], 0
je 0x4159af
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
call fcn.0040fbb0
xor eax, eax
mov rcx, qword [rbp + 0x90]
test rcx, rcx
je 0x41589b
mov eax, dword [rcx - 4]
cmp eax, 1
jl 0x4158d4
mov rcx, qword [rbp + 0x90]
movsxd rdx, eax
cmp word [rcx + rdx*2 - 2], 0x2e
jne 0x4158cd
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
mov r8d, 1
mov r9d, eax
call fcn.00410ce0
jmp 0x4158d4
sub eax, 1
test eax, eax
jne 0x4158a0
nop
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
call fcn.00415420
cmp qword [rbp + 0x68], 0
je 0x415912
mov rcx, rbp
lea rdx, [rbp + 0x58]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x68]
call fcn.004155b0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x58]
call fcn.0040fb20
jmp 0x4159ae
call sub.KERNEL32.DLL_GetUserDefaultUILanguage
lea rcx, [rbp + 0x48]
mov edx, eax
call fcn.00414bb0
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x48]
call fcn.004155b0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x50]
call fcn.0040fb20
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x415987
cmp byte [0x0051bef8], 0
jne 0x415987
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea rcx, [rbp + 0x38]
mov edx, eax
call fcn.00414bb0
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x38]
call fcn.004155b0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040fb20
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x4159ae
mov rcx, rbp
lea rdx, [rbp + 0x30]
mov r8, qword [rbp + 0x60]
call fcn.004156d0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
call fcn.0040fb20
nop
lea rcx, [rbp + 0x30]
mov edx, 8
call fcn.0040f590
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.0040f590
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x417b50
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call sub.KERNEL32.DLL_GetSystemInfo
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x417b70
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
call sub.KERNEL32.DLL_GetVersion
mov ecx, eax
and ecx, 0xff
and eax, 0xff00
shr eax, 8
cmp ecx, 5
jne 0x417b93
cmp eax, 1
jae 0x417b98
cmp ecx, 5
jbe 0x417ba4
mov dword [0x00517a28], 0x7f
jmp 0x417bae
mov dword [0x00517a28], 0x409
add rsp, 0x28
ret
Function at 0x417f10
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.00417f00
mov ebx, eax
test ebx, ebx
je 0x417f59
cmp dword [0x00503230], 0xffffffff
jne 0x417f33
mov ecx, 0xe2
call fcn.0040f1c0
mov ecx, ebx
call fcn.00417ee0
test rax, rax
jne 0x417f4b
mov ecx, 0xe2
call fcn.0040f1c0
jmp 0x417f59
mov ecx, dword [0x00503230]
mov rdx, rax
call sub.KERNEL32.DLL_TlsSetValue
add rsp, 0x20
pop rbx
ret

Function at 0x417fc0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x0051d2d0], 0
je 0x417ffb
mov ecx, dword [0x00503230]
call sub.KERNEL32.DLL_TlsGetValue
test rax, rax
jne 0x41800e
call fcn.00417f10
mov ecx, dword [0x00503230]
call sub.KERNEL32.DLL_TlsGetValue
test rax, rax
jne 0x41800e
mov rax, qword [0x0051d2c8]
jmp 0x41800e
mov rax, qword gs:[0x58]
mov ecx, dword [0x00503230]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret

Function at 0x42c340
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rsp
mov rbx, rcx
mov esi, edx
mov rcx, rbx
call fcn.00410730
mov rdi, rax
mov rcx, rdi
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42c3e5
mov ecx, eax
test ecx, 0x400
je 0x42c3db
test sil, sil
jne 0x42c37f
mov al, 1
jmp 0x42c40e
test eax, 0x10
je 0x42c38d
xor eax, eax
jmp 0x42c40e
mov rcx, rdi
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
call sub.KERNEL32.DLL_CreateFileW
cmp rax, 0xffffffffffffffff
je 0x42c3ce
mov rcx, rax
call sub.KERNEL32.DLL_CloseHandle
mov al, 1
jmp 0x42c40e
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x20
sete al
jmp 0x42c40e
test eax, 0x10
sete al
jmp 0x42c40e
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
je 0x42c408
cmp eax, 3
je 0x42c408
cmp eax, 0x7b
je 0x42c408
mov rcx, rbp
mov rdx, rbx
call fcn.0042c2f0
test al, al
jne 0x42c40c
xor eax, eax
jmp 0x42c40e
mov al, 1
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x42c420
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rcx, rbx
call fcn.00410730
mov r13, rax
mov rcx, r13
call sub.KERNEL32.DLL_DeleteFileW
test eax, eax
setne sil
test sil, sil
jne 0x42c48e
call sub.KERNEL32.DLL_GetLastError
mov edi, eax
mov rcx, r13
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42c487
mov ecx, eax
test ecx, 0x400
je 0x42c487
test eax, 0x10
je 0x42c487
mov rcx, rbx
call fcn.00410730
mov rcx, rax
call sub.KERNEL32.DLL_RemoveDirectoryW
test eax, eax
setne sil
jmp 0x42c48e
mov ecx, edi
call sub.KERNEL32.DLL_SetLastError
mov eax, esi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r13
ret
Function at 0x435260
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x8e0
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
lea r8, [rbp + 0x60]
mov r9d, 0x400
call fcn.00435020
mov ebx, eax
mov rax, qword [0x00516638]
cmp byte [rax], 0
je 0x43538f
mov rcx, qword [0x005162a0]
call fcn.0040b060
call fcn.004095c0
mov ecx, 1
xor edx, edx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.KERNEL32.DLL_WideCharToMultiByte
mov esi, eax
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00435220]
mov r8d, 1
movsxd r9, esi
call fcn.00413860
mov ecx, 1
xor edx, edx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.KERNEL32.DLL_WideCharToMultiByte
mov ecx, 0xfffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov rcx, rax
mov rdx, qword [rbp + 0x58]
mov r8d, esi
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.KERNEL32.DLL_WriteFile
mov ecx, 0xfffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov rcx, rax
lea rdx, [0x0043541c]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.KERNEL32.DLL_WriteFile
jmp 0x4353d2
mov rcx, qword [0x0051d298]
call fcn.00414240
mov rcx, rax
mov rax, qword [0x00516238]
mov edx, dword [rax + 8]
lea r8, [rbp + 0x860]
mov r9d, 0x40
call sub.user32.dll_LoadStringW
xor ecx, ecx
lea rdx, [rbp + 0x60]
lea r8, [rbp + 0x860]
mov r9d, 0x2010
call sub.user32.dll_MessageBoxW
nop
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00435220]
call fcn.00413a30
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret
Function at 0x436880
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push rbp
sub rsp, 0x160
mov rbp, rsp
mov qword [rbp + 0x38], rbp
mov dword [rbp + 0x44], 0x114
lea rcx, [rbp + 0x44]
call sub.KERNEL32.DLL_GetVersionExW
test eax, eax
je 0x4368c2
mov eax, dword [rbp + 0x54]
mov dword [0x0051d7d0], eax
lea rcx, [0x0051d7d8]
lea rdx, [rbp + 0x58]
mov r8d, 0x80
call fcn.004107f0
lea rcx, [0x0051d7e0]
call fcn.0040f4b0
mov dword [0x0051d7e8], 0
mov qword [rbp + 0x158], 0
cmp dword [0x0051d56c], 0xa
jl 0x436a86
mov rcx, 0xffffffff80000002
lea rdx, [0x00436abc]
xor r8, r8
mov r9d, 0x20019
lea rax, [rbp + 0x158]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x436a86
nop
mov rcx, qword [rbp + 0x158]
lea rdx, [0x00436b16]
xor r8, r8
xor r9, r9
mov qword [rsp + 0x20], 0
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4369ae
cmp dword [rbp + 0x40], 2
jle 0x4369ae
lea rcx, [0x0051d7e0]
mov edx, dword [rbp + 0x40]
sub edx, 2
shr edx, 0x1f
mov eax, dword [rbp + 0x40]
sub eax, 2
add edx, eax
sar edx, 1
call fcn.00410980
mov rcx, qword [0x0051d7e0]
call fcn.00410730
mov rcx, qword [rbp + 0x158]
lea rdx, [0x00436b16]
xor r8, r8
xor r9, r9
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW
jmp 0x436a36
mov rcx, qword [rbp + 0x158]
lea rdx, [0x00436b34]
xor r8, r8
xor r9, r9
mov qword [rsp + 0x20], 0
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x436a36
cmp dword [rbp + 0x40], 2
jle 0x436a36
lea rcx, [0x0051d7e0]
mov edx, dword [rbp + 0x40]
sub edx, 2
shr edx, 0x1f
mov eax, dword [rbp + 0x40]
sub eax, 2
add edx, eax
sar edx, 1
call fcn.00410980
mov rcx, qword [0x0051d7e0]
call fcn.00410730
mov rcx, qword [rbp + 0x158]
lea rdx, [0x00436b34]
xor r8, r8
xor r9, r9
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW
mov dword [rbp + 0x40], 4
mov rcx, qword [rbp + 0x158]
lea rdx, [0x00436b48]
xor r8, r8
xor r9, r9
lea rax, [0x0051d7e8]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x436a79
mov dword [0x0051d7e8], 0
nop
mov rcx, qword [rbp + 0x158]
call sub.advapi32.dll_RegCloseKey
mov byte [0x00505cb0], 1
lea rsp, [rbp + 0x160]
pop rbp
ret
Function at 0x437660
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x240
mov rbp, rsp
mov rbx, rcx
mov rcx, rbx
call fcn.0040fd20
mov r13d, eax
mov ecx, 0xfde9
xor edx, edx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call fcn.00417b30
mov esi, eax
cmp esi, 0x104
jbe 0x4376bb
mov ecx, esi
add ecx, ecx
mov ecx, ecx
call fcn.00409280
mov rdi, rax
jmp 0x4376bf
lea rdi, [rbp + 0x38]
mov ecx, 0xfde9
xor edx, edx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], esi
call fcn.00417b30
mov rcx, rdi
call sub.user32.dll_CharUpperW
xor ebx, ebx
xor ecx, ecx
mov edx, esi
sub edx, 1
mov eax, ecx
cmp eax, edx
jg 0x437715
sub edx, ecx
add edx, 1
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movsxd rcx, eax
movzx ecx, word [rdi + rcx*2]
xor ebx, ecx
add eax, 1
sub edx, 1
test edx, edx
jne 0x4376f6
nop
lea rax, [rbp + 0x38]
cmp rdi, rax
je 0x437727
mov rcx, rdi
call fcn.004092b0
mov eax, ebx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret

Function at 0x44ab60
Capabilities:
Encode data using xor

Disassembly:
mov al, 0xb5
mov r8, rcx
xor edx, edx
mov ecx, edx
and ecx, 0x3f
mov r9, r8
shr r9, cl
and r9b, 0xff
xor al, r9b
add edx, 1
cmp edx, 8
jne 0x44ab67
nop
ret

Function at 0x4516a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov eax, r8d
mov edx, edx
lea rdx, [rcx + rdx]
cmp rcx, rdx
jae 0x4516c4
movzx r8, byte [rcx]
xor eax, r8d
imul eax, eax, 0x1000193
add rcx, 1
cmp rcx, rdx
jb 0x4516ae
nop
ret

Function at 0x467350
Capabilities:
Get system information on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x68
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x80], rcx
mov byte [rbp + 0x88], dl
cmp byte [rbp + 0x88], 0
je 0x46738e
mov rcx, qword [rbp + 0x80]
movzx rdx, byte [rbp + 0x88]
call fcn.0040cd20
mov qword [rbp + 0x80], rax
nop
mov rcx, qword [0x0045f290]
mov dl, 1
call fcn.0048ef30
mov rcx, qword [rbp + 0x80]
mov qword [rcx + 8], rax
mov rcx, qword [0x00465e38]
mov dl, 1
call fcn.004913c0
mov rcx, qword [rbp + 0x80]
mov qword [rcx + 0x10], rax
mov rcx, qword [0x00465e38]
mov dl, 1
call fcn.004913c0
mov rcx, qword [rbp + 0x80]
mov qword [rcx + 0x18], rax
lea rcx, [rbp + 0x30]
call sub.KERNEL32.DLL_GetSystemInfo
mov rax, qword [rbp + 0x80]
mov ecx, dword [rbp + 0x34]
mov dword [rax + 0x20], ecx
cmp byte [rbp + 0x88], 0
je 0x46744b
mov rcx, qword [rbp + 0x80]
call fcn.0040cd60
mov qword [rbp + 0x80], rax
jmp 0x46744b
mov rax, qword [rbp + 0x80]
lea rsp, [rbp + 0x68]
pop rbx
pop rbp
ret
Function at 0x4d1b30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
mov qword [rbp + 0x60], r8
movzx rax, byte [rbp + 0x70]
mov byte [rbp + 0x70], al
mov rcx, rsi
mov rdx, qword [rbp + 0x60]
mov r8, r9
call sub.KERNEL32.DLL_FindResourceW
mov qword [rbx + 0x20], rax
cmp qword [rbx + 0x20], 0
jne 0x4d1b6f
mov rcx, rbp
call fcn.004d1a50
mov rcx, rsi
mov rdx, qword [rbx + 0x20]
call sub.KERNEL32.DLL_LoadResource
mov qword [rbx + 0x28], rax
cmp qword [rbx + 0x28], 0
jne 0x4d1b8e
mov rcx, rbp
call fcn.004d1a50
mov rcx, qword [rbx + 0x28]
call sub.KERNEL32.DLL_LockResource
mov rdi, rax
mov rcx, rsi
mov rdx, qword [rbx + 0x20]
call sub.KERNEL32.DLL_SizeofResource
mov rcx, rbx
mov rdx, rdi
mov r8d, eax
call fcn.004d15a0
lea rsp, [rbp + 0x28]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x4df710
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x28
movzx rax, byte [rcx + 0x19]
or al, dl
test al, al
je 0x4df760
cmp byte [rcx + 0x1d], 0
jne 0x4df760
cmp byte [rcx + 0x40], 0
jne 0x4df760
mov byte [rcx + 0x1b], 0
mov byte [rcx + 0x19], 0
mov rcx, qword [rcx + 0x10]
call sub.KERNEL32.DLL_ResumeThread
cmp eax, 1
je 0x4df77d
mov rcx, qword [0x004a78b8]
mov dl, 1
mov r8, qword [0x005165a0]
call fcn.004355e0
mov rcx, rax
call fcn.0040e780
jmp 0x4df77d
mov rcx, qword [0x004a78b8]
mov dl, 1
mov r8, qword [0x005165a0]
call fcn.004355e0
mov rcx, rax
call fcn.0040e780
add rsp, 0x28
ret

Function at 0x4dfe80
Capabilities:
Suspend thread

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x50], rcx
mov rax, qword [rbp + 0x50]
movzx rax, byte [rax + 0x1b]
mov byte [rbp + 0x3f], al
nop
mov rax, qword [rbp + 0x50]
mov byte [rax + 0x1b], 1
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax + 0x10]
call sub.KERNEL32.DLL_SuspendThread
mov rcx, qword [rbp + 0x50]
test eax, eax
setge dl
call fcn.004df610
jmp 0x4dfedb
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x4dff00
Capabilities:
Resume thread

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rcx, qword [rbx + 0x10]
call sub.KERNEL32.DLL_ResumeThread
mov esi, eax
mov rcx, rbx
test esi, esi
setge dl
call fcn.004df610
cmp esi, 1
jne 0x4dff2a
mov byte [rbx + 0x1b], 0
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x4f1fa0
Capabilities:
Acquire debug privileges

Disassembly:
push rbp
sub rsp, 0x60
mov rbp, rsp
mov byte [rbp + 0x5f], 0
call sub.KERNEL32.DLL_GetCurrentProcess
mov rcx, rax
mov edx, 0x28
lea r8, [rbp + 0x50]
call sub.advapi32.dll_OpenProcessToken
xor ecx, ecx
lea rdx, [0x004f2020]
lea r8, [rbp + 0x44]
call sub.advapi32.dll_LookupPrivilegeValueW
test eax, eax
je 0x4f2015
mov dword [rbp + 0x40], 1
mov dword [rbp + 0x4c], 2
mov rcx, qword [rbp + 0x50]
xor edx, edx
lea r8, [rbp + 0x40]
mov r9d, 0x10
mov qword [rsp + 0x20], 0
lea rax, [rbp + 0x3c]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_AdjustTokenPrivileges
test eax, eax
setne al
mov byte [rbp + 0x5f], al
movzx rax, byte [rbp + 0x5f]
lea rsp, [rbp + 0x60]
pop rbp
ret
Function at 0x4f2050
Capabilities:
Create thread
Inject thread

Disassembly:
push rbp
sub rsp, 0xa0
mov rbp, rsp
mov qword [rbp + 0x48], rbp
mov qword [rbp + 0xb0], rcx
mov dword [rbp + 0xb8], edx
mov byte [rbp + 0x97], 0
mov rcx, qword [rbp + 0xb0]
mov dl, 1
call fcn.0042c340
test al, al
je 0x4f2225
call fcn.004f1fa0
test al, al
je 0x4f2225
mov ecx, 0x1fffff
xor edx, edx
mov r8d, dword [rbp + 0xb8]
call sub.KERNEL32.DLL_OpenProcess
mov qword [rbp + 0x98], rax
nop
mov dword [rbp + 0x58], 0
cmp qword [rbp + 0xb0], 0
je 0x4f20cf
mov rax, qword [rbp + 0xb0]
mov eax, dword [rax - 4]
mov dword [rbp + 0x58], eax
mov ecx, dword [rbp + 0x58]
add ecx, ecx
add ecx, 1
movsxd rcx, ecx
call fcn.00409280
mov qword [rbp + 0x78], rax
mov dword [rbp + 0x54], 0
cmp qword [rbp + 0xb0], 0
je 0x4f2101
mov rax, qword [rbp + 0xb0]
mov eax, dword [rax - 4]
mov dword [rbp + 0x54], eax
mov rcx, qword [rbp + 0xb0]
mov rdx, qword [rbp + 0x78]
mov r8d, dword [rbp + 0x54]
add r8d, r8d
add r8d, 1
call fcn.00412de0
mov rcx, qword [rbp + 0x78]
call sub.KERNEL32.DLL_lstrlenW
add eax, 1
add eax, eax
movsxd rax, eax
mov qword [rbp + 0x68], rax
mov rcx, qword [rbp + 0x98]
xor edx, edx
mov r8, qword [rbp + 0x68]
mov r9d, 0x1000
mov dword [rsp + 0x20], 4
call sub.KERNEL32.DLL_VirtualAllocEx
mov qword [rbp + 0x80], rax
cmp qword [rbp + 0x80], 0
je 0x4f2218
mov rcx, qword [rbp + 0x98]
mov rdx, qword [rbp + 0x80]
mov r8, qword [rbp + 0x78]
mov r9, qword [rbp + 0x68]
lea rax, [rbp + 0x60]
mov qword [rsp + 0x20], rax
call sub.KERNEL32.DLL_WriteProcessMemory
test eax, eax
je 0x4f2218
mov rax, qword [rbp + 0x60]
cmp rax, qword [rbp + 0x68]
jne 0x4f2218
mov dword [rbp + 0x5c], 0
lea rcx, [0x004f225c]
call sub.KERNEL32.DLL_LoadLibraryW
mov rcx, rax
lea rdx, [0x004f2276]
call fcn.0041a6b0
mov qword [rbp + 0x70], rax
mov rcx, qword [rbp + 0x98]
xor edx, edx
xor r8, r8
mov r9, qword [rbp + 0x70]
mov rax, qword [rbp + 0x80]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0
lea rax, [rbp + 0x5c]
mov qword [rsp + 0x30], rax
call sub.KERNEL32.DLL_CreateRemoteThread
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
je 0x4f220c
mov byte [rbp + 0x97], 1
mov rcx, qword [rbp + 0x88]
call sub.KERNEL32.DLL_CloseHandle
nop
mov rcx, qword [rbp + 0x98]
call sub.KERNEL32.DLL_CloseHandle
movzx rax, byte [rbp + 0x97]
lea rsp, [rbp + 0xa0]
pop rbp
ret
Function at 0x4f2290
Capabilities:
Create thread
Inject thread

Disassembly:
push rbp
sub rsp, 0xb0
mov rbp, rsp
mov qword [rbp + 0x48], rbp
mov qword [rbp + 0xc0], rcx
mov dword [rbp + 0xc8], edx
call fcn.004f1fa0
test al, al
je 0x4f2521
mov ecx, 0x1fffff
xor edx, edx
mov r8d, dword [rbp + 0xc8]
call sub.KERNEL32.DLL_OpenProcess
mov qword [rbp + 0xa8], rax
nop
mov dword [rbp + 0x64], 0
cmp qword [rbp + 0xc0], 0
je 0x4f22f2
mov rax, qword [rbp + 0xc0]
mov eax, dword [rax - 4]
mov dword [rbp + 0x64], eax
mov ecx, dword [rbp + 0x64]
add ecx, ecx
add ecx, 1
movsxd rcx, ecx
call fcn.00409280
mov qword [rbp + 0x88], rax
mov dword [rbp + 0x60], 0
cmp qword [rbp + 0xc0], 0
je 0x4f2327
mov rax, qword [rbp + 0xc0]
mov eax, dword [rax - 4]
mov dword [rbp + 0x60], eax
mov rcx, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0x88]
mov r8d, dword [rbp + 0x60]
add r8d, r8d
add r8d, 1
call fcn.00412de0
mov rcx, qword [rbp + 0x88]
call sub.KERNEL32.DLL_lstrlenW
add eax, 1
add eax, eax
movsxd rax, eax
mov qword [rbp + 0x78], rax
mov rcx, qword [rbp + 0xa8]
xor edx, edx
mov r8, qword [rbp + 0x78]
mov r9d, 0x1000
mov dword [rsp + 0x20], 4
call sub.KERNEL32.DLL_VirtualAllocEx
mov qword [rbp + 0x90], rax
cmp qword [rbp + 0x90], 0
je 0x4f2514
mov rcx, qword [rbp + 0xa8]
mov rdx, qword [rbp + 0x90]
mov r8, qword [rbp + 0x88]
mov r9, qword [rbp + 0x78]
lea rax, [rbp + 0x70]
mov qword [rsp + 0x20], rax
call sub.KERNEL32.DLL_WriteProcessMemory
test eax, eax
je 0x4f2514
mov rax, qword [rbp + 0x70]
cmp rax, qword [rbp + 0x78]
jne 0x4f2514
lea rcx, [0x004f255c]
call sub.KERNEL32.DLL_LoadLibraryW
mov rcx, rax
lea rdx, [0x004f2576]
call fcn.0041a6b0
mov qword [rbp + 0x80], rax
mov rcx, qword [rbp + 0xa8]
xor edx, edx
xor r8, r8
mov r9, qword [rbp + 0x80]
mov rax, qword [rbp + 0x90]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0
lea rax, [rbp + 0x6c]
mov qword [rsp + 0x30], rax
call sub.KERNEL32.DLL_CreateRemoteThread
mov qword [rbp + 0x98], rax
mov rcx, qword [rbp + 0x98]
or edx, 0xffffffff
call sub.KERNEL32.DLL_WaitForSingleObject
mov rcx, qword [rbp + 0x98]
lea rdx, [rbp + 0x68]
call sub.KERNEL32.DLL_GetExitCodeThread
lea rcx, [0x004f255c]
call sub.KERNEL32.DLL_LoadLibraryW
mov rcx, rax
lea rdx, [0x004f2598]
call fcn.0041a6b0
mov qword [rbp + 0x80], rax
mov rcx, qword [rbp + 0xa8]
xor edx, edx
xor r8, r8
mov r9, qword [rbp + 0x80]
mov eax, dword [rbp + 0x68]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0
lea rax, [rbp + 0x6c]
mov qword [rsp + 0x30], rax
call sub.KERNEL32.DLL_CreateRemoteThread
mov qword [rbp + 0x98], rax
mov rcx, qword [rbp + 0x98]
or edx, 0xffffffff
call sub.KERNEL32.DLL_WaitForSingleObject
cmp qword [rbp + 0xa8], 0
je 0x4f24c6
mov byte [rbp + 0xa7], 1
mov dword [rbp + 0x5c], 0
cmp qword [rbp + 0xc0], 0
je 0x4f24e4
mov rax, qword [rbp + 0xc0]
mov eax, dword [rax - 4]
mov dword [rbp + 0x5c], eax
mov rcx, qword [rbp + 0xa8]
mov rdx, qword [rbp + 0x90]
mov r8d, dword [rbp + 0x5c]
add r8d, 1
movsxd r8, r8d
mov r9d, 0x4000
call sub.KERNEL32.DLL_VirtualFreeEx
mov rcx, qword [rbp + 0x98]
call sub.KERNEL32.DLL_CloseHandle
nop
mov rcx, qword [rbp + 0xa8]
call sub.KERNEL32.DLL_CloseHandle
movzx rax, byte [rbp + 0xa7]
lea rsp, [rbp + 0xb0]
pop rbp
ret
Function at 0x4f4ee0
Capabilities:
Delete registry value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, rdx
call fcn.00410730
mov rcx, qword [rbx + 8]
mov rdx, rax
call sub.advapi32.dll_RegDeleteValueW
mov rcx, rbx
mov edx, eax
call fcn.004f4c20
add rsp, 0x20
pop rbx
ret

Function at 0x4f5ad0
Capabilities:
Persist via run registry key

Disassembly:
push rbp
sub rsp, 0x60
mov rbp, rsp
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x48], rbp
mov qword [rbp + 0x70], rcx
mov qword [rbp + 0x78], rdx
mov rcx, qword [rbp + 0x78]
call fcn.0040f680
nop
lea rcx, [rbp + 0x50]
call fcn.0040f4b0
mov rcx, qword [0x004f3490]
mov dl, 1
call fcn.004f4a70
mov qword [rbp + 0x58], rax
nop
mov rcx, qword [rbp + 0x58]
mov rdx, 0xffffffff80000001
call fcn.004f4c70
mov rcx, qword [rbp + 0x58]
lea rdx, [0x004f5c50]
xor r8, r8
call fcn.004f4d00
test al, al
je 0x4f5ba4
mov rcx, qword [rbp + 0x58]
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x78]
call fcn.004f51e0
call sub.KERNEL32.DLL_GetLastError
lea rcx, [rbp + 0x38]
mov edx, eax
xor r8, r8
call fcn.00433420
lea rcx, [rbp + 0x40]
mov edx, 4
lea r8, [0x004f5ce0]
mov r9, qword [rbp + 0x50]
lea rax, [0x004f5d04]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp + 0x38]
mov qword [rsp + 0x28], rax
call fcn.00410c50
mov rcx, qword [rbp + 0x40]
call fcn.004f0da0
nop
mov rcx, qword [rbp + 0x58]
call fcn.0040c4f0
mov rcx, qword [rbp + 0x70]
mov rdx, qword [rbp + 0x50]
call fcn.0040fb20
nop
lea rcx, [rbp + 0x38]
mov edx, 2
call fcn.0040f590
lea rcx, [rbp + 0x50]
call fcn.0040f4b0
lea rcx, [rbp + 0x78]
call fcn.0040f4b0
mov rax, qword [rbp + 0x70]
lea rsp, [rbp + 0x60]
pop rbp
ret