joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011456
Capabilities:
Terminate process

Disassembly:
jmp 0x1400290c0
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 0x14001155f
Capabilities:
Parse pe header

Disassembly:
jmp 0x140028470
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140028490
xor al, al
jmp 0x140028511
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400284a3
xor al, al
jmp 0x140028511
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 0x1400284cd
xor al, al
jmp 0x140028511
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400284e1
xor al, al
jmp 0x140028511
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400284f3
xor al, al
jmp 0x140028511
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14002850f
xor al, al
jmp 0x140028511
mov al, 1
add rsp, 0x38
ret

Function at 0x1400115aa
Capabilities:
Execute command

Disassembly:
jmp 0x140019580
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, [0x1400400f4]
call fcn.14001178f
lea rcx, [0x140032444]
call qword [sym.imp.ucrtbased.dll_system]
lea rdx, [0x140033730]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400110d7
lea rdx, [0x140011050]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400112ad
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret
Function at 0x14001167c
Capabilities:
Execute command

Disassembly:
jmp 0x1400258b0
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, [0x1400400f4]
call fcn.14001178f
lea rcx, [0x140032444]
call qword [sym.imp.ucrtbased.dll_system]
lea rdx, [0x1400338c0]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400110d7
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001140b
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret
Function at 0x140011785
Capabilities:
Execute command

Disassembly:
jmp 0x1400212c0
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, [0x1400400f4]
call fcn.14001178f
lea rcx, [0x140032444]
call qword [sym.imp.ucrtbased.dll_system]
lea rdx, [0x1400338a0]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400110d7
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001140b
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret
Function at 0x403d50
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
cmp byte [0x0042b080], 0
je 0x403e0b
mov ecx, 0xfffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov rdi, rax
mov rcx, rsi
call fcn.0040ac00
mov rcx, rdi
mov rdx, rsi
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.KERNEL32.DLL_WriteFile
mov ecx, 0xfffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov rsi, rax
mov rcx, qword [0x00427098]
call fcn.0040ac00
mov rcx, rsi
mov rdx, qword [0x00427098]
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.KERNEL32.DLL_WriteFile
mov ecx, 0xfffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov rsi, rax
mov rcx, rbx
call fcn.0040ac00
mov rcx, rsi
mov rdx, rbx
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.KERNEL32.DLL_WriteFile
jmp 0x403e1f
xor ecx, ecx
mov rdx, rbx
mov r8, rsi
mov r9d, 0x2010
call sub.user32.dll_MessageBoxA_1
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x408640
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbp
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov ebx, edx
mov rax, qword [rbp + 0x28]
mov r13d, dword [rax + 0x18]
mov rcx, qword [rbp + 0x28]
call fcn.00408c80
mov esi, eax
test sil, sil
jne 0x4087f6
test ebx, ebx
je 0x4087f6
xor edi, edi
test r13d, r13d
jle 0x408722
call sub.KERNEL32.DLL_GetTickCount
mov r14d, eax
mov dword [rbp + 0x3c], 0
test r13d, r13d
jle 0x408706
cmp ebx, 0xffffffff
je 0x4086b3
call sub.KERNEL32.DLL_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x4086b3
xor esi, esi
jmp 0x4087f6
mov rax, qword [rbp + 0x28]
cmp dword [rax], 1
jg 0x408706
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0
jne 0x4086f4
xor eax, eax
mov ecx, 1
mov rdx, qword [rbp + 0x28]
lock cmpxchg dword [rdx], ecx
test eax, eax
jne 0x4086f4
call sub.KERNEL32.DLL_GetCurrentThreadId
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov sil, 1
jmp 0x4087f6
lea rcx, [rbp + 0x3c]
call fcn.004081e0
sub r13d, 1
test r13d, r13d
jg 0x40869a
nop
cmp ebx, 0xffffffff
je 0x408722
call sub.KERNEL32.DLL_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x408720
xor esi, esi
jmp 0x4087f6
sub ebx, eax
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x40865d
mov edx, ecx
add edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x408722
nop
call sub.KERNEL32.DLL_GetTickCount
mov r14d, eax
mov rcx, qword [rbp + 0x28]
call fcn.004088a0
xor ecx, ecx
mov rdx, rax
mov r8d, ebx
mov rax, qword [0x0042b978]
call qword [rax + 0x20]
test eax, eax
sete sil
cmp ebx, 0xffffffff
je 0x408785
call sub.KERNEL32.DLL_GetTickCount
sub eax, r14d
cmp eax, ebx
jae 0x408783
sub ebx, eax
jmp 0x408785
xor ebx, ebx
test sil, sil
je 0x4087b7
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov eax, ecx
test eax, 1
jne 0x4087b4
mov edx, ecx
sub edx, 2
or edx, 1
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40878a
mov dil, 1
nop
jmp 0x4087d4
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov edx, ecx
sub edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x4087b7
mov dil, 1
test dil, dil
je 0x408745
nop
test sil, sil
je 0x4087f6
call sub.KERNEL32.DLL_GetCurrentThreadId
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov eax, esi
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop r13
pop r14
pop rbp
ret
Function at 0x40a070
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x0042b080], 0
je 0x40a10e
cmp word [0x0042b390], 0xd7b2
jne 0x40a0a3
cmp dword [0x0042b398], 0
jbe 0x40a0a3
lea rcx, [0x0042b388]
call qword [0x0042b3b0]
mov ecx, 0xfffffff5
call sub.KERNEL32.DLL_GetStdHandle
mov rcx, rax
lea rdx, [0x004287a4]
mov r8d, 0x25
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.KERNEL32.DLL_WriteFile
mov ecx, 0xfffffff5
call sub.KERNEL32.DLL_GetStdHandle
mov rbx, rax
lea rcx, [0x0040a144]
call fcn.0040b130
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.KERNEL32.DLL_WriteFile
jmp 0x40a12f
cmp byte [0x00427032], 0
jne 0x40a12f
xor ecx, ecx
lea rdx, [0x004287a4]
lea r8, [0x0042871c]
xor r9, r9
call sub.user32.dll_MessageBoxA_1
add rsp, 0x40
pop rbx
ret

Function at 0x40d710
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x0042fed8]
call sub.KERNEL32.DLL_InitializeCriticalSection
mov word [0x0042ff00], 0x7f
call sub.KERNEL32.DLL_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x0042fed0], al
cmp byte [0x0042fed0], 0
je 0x40d7af
lea rcx, [0x0040d7b4]
call sub.KERNEL32.DLL_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040d7ce]
call sub.KERNEL32.DLL_GetProcAddress
mov qword [0x0042feb8], rax
lea rcx, [0x0040d7b4]
call sub.KERNEL32.DLL_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040d7ec]
call sub.KERNEL32.DLL_GetProcAddress
mov qword [0x0042fec0], rax
lea rcx, [0x0040d7b4]
call sub.KERNEL32.DLL_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040d80a]
call sub.KERNEL32.DLL_GetProcAddress
mov qword [0x0042fec8], rax
add rsp, 0x28
ret

Function at 0x40fb00
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 0x40fb20
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 0x40fb44
cmp eax, 1
jae 0x40fb49
cmp ecx, 5
jbe 0x40fb55
mov dword [0x0042ba08], 0x7f
jmp 0x40fb5f
mov dword [0x0042ba08], 0x409
add rsp, 0x28
ret

Function at 0x40ff50
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.0040ff40
mov ebx, eax
test ebx, ebx
je 0x40ff9b
cmp dword [0x004291a0], 0xffffffff
jne 0x40ff74
mov ecx, 0xe2
call fcn.0040a300
mov ecx, ebx
call fcn.0040ff20
test rax, rax
jne 0x40ff8d
mov ecx, 0xe2
call fcn.0040a300
jmp 0x40ff9b
mov ecx, dword [0x004291a0]
mov rdx, rax
call sub.KERNEL32.DLL_TlsSetValue
add rsp, 0x20
pop rbx
ret

Function at 0x40ffb0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x004311a8], 0
je 0x40ffeb
mov ecx, dword [0x004291a0]
call sub.KERNEL32.DLL_TlsGetValue
test rax, rax
jne 0x40fffe
call fcn.0040ff50
mov ecx, dword [0x004291a0]
call sub.KERNEL32.DLL_TlsGetValue
test rax, rax
jne 0x40fffe
mov rax, qword [0x004311e0]
jmp 0x40fffe
mov rax, qword gs:[0x58]
mov ecx, dword [0x004291a0]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret
Function at 0x413660
Capabilities:
Get common file path

Disassembly:
push rbp
sub rsp, 0x240
mov rbp, rsp
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x20], 0
mov qword [rbp + 0x250], rcx
nop
lea rcx, [rbp + 0x36]
mov edx, 0x104
call sub.KERNEL32.DLL_GetWindowsDirectoryW
lea rcx, [rbp + 0x20]
lea rdx, [rbp + 0x36]
call fcn.004134c0
lea rcx, [rbp + 0x28]
mov rdx, qword [rbp + 0x20]
call fcn.00413590
mov rcx, qword [rbp + 0x250]
mov rdx, qword [rbp + 0x28]
lea r8, [0x0041371c]
call fcn.0040b880
nop
lea rcx, [rbp + 0x20]
mov edx, 2
call fcn.0040a590
mov rax, qword [rbp + 0x250]
lea rsp, [rbp + 0x240]
pop rbp
ret

Function at 0x4139f0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
sub rsp, 0x48
mov rbp, rsp
mov qword [rbp + 0x60], rcx
mov qword [rbp + 0x68], rdx
mov qword [rbp + 0x70], r8
mov qword [rbp + 0x78], r9
mov rcx, qword [rbp + 0x70]
call fcn.0040a640
mov rcx, qword [rbp + 0x78]
call fcn.0040a640
mov rcx, qword [rbp + 0x80]
call fcn.0040a640
nop
mov rcx, qword [rbp + 0x60]
mov rdx, qword [rbp + 0x80]
call fcn.0040aa10
mov rcx, qword [rbp + 0x70]
call fcn.0040b4d0
mov rcx, qword [rbp + 0x68]
mov rdx, rax
xor r8, r8
mov r9d, 0x20019
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
jne 0x413af7
mov rcx, qword [rbp + 0x78]
call fcn.0040b4d0
mov rcx, qword [rbp + 0x38]
mov rdx, rax
xor r8, r8
lea r9, [rbp + 0x34]
mov qword [rsp + 0x20], 0
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x413aee
mov rcx, qword [rbp + 0x60]
mov edx, dword [rbp + 0x30]
call fcn.0040b6d0
mov rcx, qword [rbp + 0x78]
call fcn.0040b4d0
mov rbx, rax
mov rax, qword [rbp + 0x60]
mov rcx, qword [rax]
call fcn.0040b4d0
mov rcx, qword [rbp + 0x38]
mov rdx, rbx
xor r8, r8
lea r9, [rbp + 0x34]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
call sub.ADVAPI32.DLL_RegQueryValueExW
mov rcx, qword [rbp + 0x60]
mov edx, dword [rbp + 0x30]
sub edx, 1
call fcn.0040b6d0
mov rcx, qword [rbp + 0x38]
call sub.ADVAPI32.DLL_RegCloseKey
nop
lea rcx, [rbp + 0x70]
mov edx, 3
call fcn.0040a590
mov rax, qword [rbp + 0x60]
lea rsp, [rbp + 0x48]
pop rbx
pop rbp
ret

Function at 0x414110
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Hash data with crc32

Disassembly:
push rbp
sub rsp, 0x10
mov rbp, rsp
mov dword [rbp + 0x20], ecx
mov qword [rbp + 0x28], rdx
mov dword [rbp + 0x30], r8d
mov dword [rbp + 0x38], r9d
mov eax, dword [rbp + 0x20]
mov dword [rbp + 0xc], eax
xor eax, eax
mov ecx, dword [rbp + 0x38]
sub ecx, 1
mov dword [rbp + 8], eax
cmp dword [rbp + 8], ecx
jg 0x414185
sub ecx, eax
add ecx, 1
mov eax, dword [rbp + 0xc]
shr eax, 8
and eax, 0xffffff
lea rdx, [0x004297c0]
mov r8, qword [rbp + 0x28]
movsxd r9, dword [rbp + 8]
movzx r8, byte [r8 + r9]
mov r9d, dword [rbp + 0xc]
xor r9d, r8d
and r9d, 0xff
movsxd r9, r9d
xor eax, dword [rdx + r9*4]
mov dword [rbp + 0xc], eax
add dword [rbp + 8], 1
sub ecx, 1
test ecx, ecx
jne 0x414142
nop
mov eax, dword [rbp + 0xc]
lea rsp, [rbp + 0x10]
pop rbp
ret
Function at 0x414190
Capabilities:
Read file on windows

Disassembly:
push rbp
sub rsp, 0x60
mov rbp, rsp
mov qword [rbp + 0x70], rcx
mov rcx, qword [rbp + 0x70]
call fcn.0040a640
nop
mov dword [rbp + 0x5c], 0xffffffff
movsxd rcx, dword [0x004297bc]
call fcn.00404d90
mov qword [rbp + 0x50], rax
mov rcx, qword [rbp + 0x70]
call fcn.0040b4d0
mov rcx, rax
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
mov qword [rbp + 0x40], rax
cmp qword [rbp + 0x40], 0xffffffffffffffff
je 0x414262
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x50]
mov r8d, dword [0x004297bc]
lea r9, [rbp + 0x4c]
mov qword [rsp + 0x20], 0
call sub.KERNEL32.DLL_ReadFile
mov ecx, dword [rbp + 0x5c]
mov rdx, qword [rbp + 0x50]
mov r8d, 0x100000
mov r9d, dword [rbp + 0x4c]
call fcn.00414110
mov dword [rbp + 0x5c], eax
mov eax, dword [rbp + 0x4c]
movsxd rcx, dword [0x004297bc]
cmp rax, rcx
je 0x414202
mov rcx, qword [rbp + 0x40]
call sub.KERNEL32.DLL_CloseHandle
mov rcx, qword [rbp + 0x50]
call fcn.00404dc0
not dword [rbp + 0x5c]
nop
lea rcx, [rbp + 0x70]
call fcn.0040a4b0
mov eax, dword [rbp + 0x5c]
lea rsp, [rbp + 0x60]
pop rbp
ret

Function at 0x415240
Capabilities:
Get graphical window text

Disassembly:
push rbp
sub rsp, 0x30
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov rcx, qword [rbp + 0x48]
call sub.USER32.DLL_GetWindowTextLengthW
mov rcx, qword [rbp + 0x40]
mov edx, eax
add edx, 1
call fcn.0040b3f0
mov dword [rbp + 0x2c], 0
mov rax, qword [rbp + 0x40]
cmp qword [rax], 0
je 0x415288
mov rax, qword [rbp + 0x40]
mov rax, qword [rax]
mov eax, dword [rax - 4]
shr eax, 1
mov dword [rbp + 0x2c], eax
mov rax, qword [rbp + 0x40]
mov rcx, qword [rax]
call fcn.0040b280
mov rcx, qword [rbp + 0x48]
mov rdx, rax
mov r8d, dword [rbp + 0x2c]
call sub.USER32.DLL_GetWindowTextW
mov dword [rbp + 0x28], 0
mov rax, qword [rbp + 0x40]
cmp qword [rax], 0
je 0x4152c5
mov rax, qword [rbp + 0x40]
mov rax, qword [rax]
mov eax, dword [rax - 4]
shr eax, 1
mov dword [rbp + 0x28], eax
mov rcx, qword [rbp + 0x40]
mov edx, dword [rbp + 0x28]
sub edx, 1
call fcn.0040b3f0
mov rax, qword [rbp + 0x40]
lea rsp, [rbp + 0x30]
pop rbp
ret
Function at 0x4166a0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push rbp
push rbx
sub rsp, 0xe8
mov rbp, rsp
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x100], rcx
mov qword [rbp + 0x108], rdx
nop
mov rcx, qword [rbp + 0x100]
call fcn.0040a500
mov dword [rbp + 0x54], 0x10
lea rcx, [rbp + 0xdc]
xor edx, edx
xor r8, r8
mov r9d, 1
mov dword [rsp + 0x20], 0xf0000020
call sub.ADVAPI32.DLL_CryptAcquireContextA
test eax, eax
je 0x416823
mov ecx, dword [rbp + 0xdc]
mov edx, 0x8003
xor r8, r8
xor r9, r9
lea rax, [rbp + 0xd8]
mov qword [rsp + 0x20], rax
call sub.ADVAPI32.DLL_CryptCreateHash
test eax, eax
je 0x416816
mov dword [rbp + 0x48], 0
cmp qword [rbp + 0x108], 0
je 0x41674f
mov rax, qword [rbp + 0x108]
mov eax, dword [rax - 4]
mov dword [rbp + 0x48], eax
mov rcx, qword [rbp + 0x108]
call fcn.0040b130
mov ecx, dword [rbp + 0xd8]
mov rdx, rax
mov r8d, dword [rbp + 0x48]
xor r9, r9
call sub.ADVAPI32.DLL_CryptHashData
test eax, eax
je 0x41680b
mov ecx, dword [rbp + 0xd8]
mov edx, 2
lea r8, [rbp + 0x58]
lea r9, [rbp + 0x54]
mov dword [rsp + 0x20], 0
call sub.ADVAPI32.DLL_CryptGetHashParam
test eax, eax
je 0x41680b
xor eax, eax
mov ebx, dword [rbp + 0x54]
sub ebx, 1
mov dword [rbp + 0x50], eax
cmp dword [rbp + 0x50], ebx
jg 0x41680a
sub ebx, eax
add ebx, 1
lea rcx, [rbp + 0x38]
mov rax, qword [rbp + 0x100]
mov rdx, qword [rax]
call fcn.0040b620
lea rcx, [rbp + 0x30]
movsxd rax, dword [rbp + 0x50]
movzx rdx, byte [rax + rbp + 0x58]
mov r8d, 2
call fcn.004164e0
lea rcx, [rbp + 0x38]
mov rdx, qword [rbp + 0x30]
call fcn.0040b7b0
mov rcx, qword [rbp + 0x100]
mov rdx, qword [rbp + 0x38]
xor r8, r8
call fcn.0040b220
add dword [rbp + 0x50], 1
sub ebx, 1
test ebx, ebx
jne 0x4167b2
nop
mov ecx, dword [rbp + 0xd8]
call sub.ADVAPI32.DLL_CryptDestroyHash
mov ecx, dword [rbp + 0xdc]
xor edx, edx
call sub.ADVAPI32.DLL_CryptReleaseContext
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040a590
mov rax, qword [rbp + 0x100]
lea rsp, [rbp + 0xe8]
pop rbx
pop rbp
ret
Function at 0x419130
Capabilities:
Encode data using xor

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x50], rcx
mov dword [rbp + 0x58], edx
mov dword [rbp + 0x60], r8d
nop
mov rcx, qword [rbp + 0x50]
call fcn.0040a4b0
cmp dword [rbp + 0x58], 0
je 0x4191bd
mov ecx, 0x10
mov eax, dword [rbp + 0x58]
xor edx, edx
div ecx
mov rax, rdx
movsxd rcx, eax
shr rcx, 0x20
xor eax, ecx
lea rdx, [rbp + 0x28]
lea r8, [0x0042a0f4]
sub eax, ecx
movsxd rax, eax
movzx rax, word [r8 + rax*2]
mov rcx, rdx
mov edx, eax
call fcn.0040b520
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x50]
mov r8, qword [rax]
call fcn.0040b880
mov ecx, 0x10
mov eax, dword [rbp + 0x58]
xor edx, edx
div ecx
mov dword [rbp + 0x58], eax
cmp dword [rbp + 0x58], 0
jne 0x41915b
nop
mov rax, qword [rbp + 0x50]
cmp qword [rax], 0
jne 0x4191f7
jmp 0x4191e1
mov rcx, qword [rbp + 0x50]
lea rdx, [0x004192d4]
mov rax, qword [rbp + 0x50]
mov r8, qword [rax]
call fcn.0040b880
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax]
call fcn.0040abe0
cmp eax, dword [rbp + 0x60]
jl 0x4191ca
jmp 0x41929b
mov dword [rbp + 0x3c], 0
mov rax, qword [rbp + 0x50]
cmp qword [rax], 0
je 0x419215
mov rax, qword [rbp + 0x50]
mov rax, qword [rax]
mov eax, dword [rax - 4]
mov dword [rbp + 0x3c], eax
mov rax, qword [rbp + 0x50]
mov rax, qword [rax]
movsxd rcx, dword [rbp + 0x3c]
cmp word [rax + rcx*2 - 2], 0x2d
jne 0x419289
mov dword [rbp + 0x38], 0
mov rax, qword [rbp + 0x50]
cmp qword [rax], 0
je 0x419246
mov rax, qword [rbp + 0x50]
mov rax, qword [rax]
mov eax, dword [rax - 4]
mov dword [rbp + 0x38], eax
mov rcx, qword [rbp + 0x50]
mov edx, dword [rbp + 0x38]
mov r8d, 1
call fcn.0040bb00
lea rcx, [0x004192e4]
mov rdx, qword [rbp + 0x50]
mov r8d, 1
call fcn.0040bb80
jmp 0x419289
mov rcx, qword [rbp + 0x50]
lea rdx, [0x004192d4]
mov rax, qword [rbp + 0x50]
mov r8, qword [rax]
call fcn.0040b880
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax]
call fcn.0040abe0
cmp eax, dword [rbp + 0x60]
jl 0x419272
nop
lea rcx, [rbp + 0x28]
call fcn.0040a4b0
mov rax, qword [rbp + 0x50]
lea rsp, [rbp + 0x40]
pop rbp
ret
Function at 0x419e10
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbp
push rbx
sub rsp, 0xa8
mov rbp, rsp
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x78], 0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x48], rbp
mov qword [rbp + 0xc0], rcx
mov qword [rbp + 0xc8], rdx
nop
lea rcx, [rbp + 0x78]
mov rdx, qword [rbp + 0xc8]
call fcn.0040aa90
mov rcx, qword [rbp + 0x78]
call fcn.00419030
mov byte [rbp + 0x83], al
cmp byte [rbp + 0x83], 0
jne 0x419e85
lea rcx, [rbp + 0x78]
mov edx, 1
mov r8d, 1
call fcn.0040bb00
mov rax, qword [rbp + 0xc0]
mov rax, qword [rax + 8]
mov qword [rbp + 0x98], rax
mov rcx, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0xc8]
call fcn.0041b220
mov qword [rbp + 0x90], rax
cmp qword [rbp + 0x90], 0
je 0x419fd8
nop
mov rcx, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0x90]
call fcn.00419830
mov rcx, qword [rbp + 0xc0]
lea rdx, [rbp + 0x54]
call fcn.0041a170
test al, al
je 0x419fb8
lea rcx, [rbp + 0x70]
xor edx, edx
mov r8d, dword [rbp + 0x58]
add r8d, 1
call fcn.0040a770
mov eax, dword [rbp + 0x54]
sub eax, 1
mov dword [rbp + 0x84], eax
cmp dword [rbp + 0x84], 0
jl 0x419fb7
mov eax, dword [rbp + 0x58]
add eax, 1
mov dword [rbp + 0x88], eax
mov rcx, qword [rbp + 0x70]
call fcn.0040b4d0
mov rcx, qword [rbp + 0x90]
mov edx, dword [rbp + 0x84]
mov r8, rax
lea r9, [rbp + 0x88]
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.ADVAPI32.DLL_RegEnumKeyExW
mov rcx, qword [rbp + 0xc0]
mov edx, eax
call fcn.004196b0
test al, al
je 0x419fa3
mov rcx, qword [rbp + 0x70]
call fcn.0040b4d0
lea rcx, [rbp + 0x40]
mov rdx, rax
call fcn.0040b570
mov rcx, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0x40]
call fcn.00419e10
sub dword [rbp + 0x84], 1
cmp dword [rbp + 0x84], 0xffffffff
jne 0x419f17
nop
nop
mov rcx, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0x98]
call fcn.00419830
mov rcx, qword [rbp + 0x90]
call sub.ADVAPI32.DLL_RegCloseKey
cmp byte [0x00431354], 0
je 0x41a037
mov rcx, qword [rbp + 0xc0]
movzx rdx, byte [rbp + 0x83]
call fcn.004197e0
mov rbx, rax
mov rcx, qword [rbp + 0x78]
call fcn.0040b4d0
mov rcx, rbx
mov rdx, rax
mov rax, qword [rbp + 0xc0]
mov r8d, dword [rax + 0x2c]
and r8d, 0x300
xor r9, r9
call sub.advapi32.dll_RegDeleteKeyExW
mov rcx, qword [rbp + 0xc0]
mov edx, eax
call fcn.004196b0
mov byte [rbp + 0x8f], al
jmp 0x41a076
mov rcx, qword [rbp + 0xc0]
movzx rdx, byte [rbp + 0x83]
call fcn.004197e0
mov rbx, rax
mov rcx, qword [rbp + 0x78]
call fcn.0040b4d0
mov rcx, rbx
mov rdx, rax
call sub.ADVAPI32.DLL_RegDeleteKeyW
mov rcx, qword [rbp + 0xc0]
mov edx, eax
call fcn.004196b0
mov byte [rbp + 0x8f], al
nop
lea rcx, [rbp + 0x40]
call fcn.0040a4b0
lea rcx, [rbp + 0x70]
mov edx, 2
call fcn.0040a590
movzx rax, byte [rbp + 0x8f]
lea rsp, [rbp + 0xa8]
pop rbx
pop rbp
ret
Function at 0x41b9d0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
sub rsp, 0x98
mov rbp, rsp
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x48], rbp
mov qword [rbp + 0xb0], rcx
mov qword [rbp + 0xb8], rdx
mov qword [rbp + 0xc0], r8
nop
mov rax, qword [rbp + 0xb0]
mov rax, qword [rax + 0x50]
mov rax, qword [rax + 8]
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0xb0]
mov rcx, qword [rax + 0x50]
mov rdx, qword [rbp + 0xb8]
call fcn.00419830
nop
mov rax, qword [rbp + 0xb0]
mov rcx, qword [rax + 0x50]
lea rdx, [rbp + 0x64]
call fcn.0041a170
test al, al
je 0x41bb50
mov rcx, qword [rbp + 0xb0]
mov rdx, qword [rbp + 0xb8]
mov r8, qword [rbp + 0xc0]
xor r9, r9
call fcn.0041b850
lea rcx, [rbp + 0x58]
xor edx, edx
mov r8d, dword [rbp + 0x70]
add r8d, 1
call fcn.0040a770
xor eax, eax
mov ebx, dword [rbp + 0x6c]
sub ebx, 1
mov dword [rbp + 0x80], eax
cmp dword [rbp + 0x80], ebx
jg 0x41bb4f
sub ebx, eax
add ebx, 1
mov eax, dword [rbp + 0x70]
add eax, 1
mov dword [rbp + 0x84], eax
mov rcx, qword [rbp + 0x58]
call fcn.0040b4d0
mov rcx, qword [rbp + 0xb8]
mov edx, dword [rbp + 0x80]
mov r8, rax
lea r9, [rbp + 0x84]
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.ADVAPI32.DLL_RegEnumValueW
mov rcx, qword [rbp + 0xb0]
mov rcx, qword [rcx + 0x50]
mov edx, eax
call fcn.004196b0
test al, al
je 0x41bb3d
mov rcx, qword [rbp + 0x58]
call fcn.0040b4d0
lea rcx, [rbp + 0x40]
mov rdx, rax
call fcn.0040b570
mov rcx, qword [rbp + 0xb0]
mov rdx, qword [rbp + 0xb8]
mov r8, qword [rbp + 0xc0]
mov r9, qword [rbp + 0x40]
call fcn.0041b850
add dword [rbp + 0x80], 1
sub ebx, 1
test ebx, ebx
jne 0x41ba9f
nop
nop
mov rax, qword [rbp + 0xb0]
mov rcx, qword [rax + 0x50]
mov rdx, qword [rbp + 0x88]
call fcn.00419830
nop
lea rcx, [rbp + 0x40]
call fcn.0040a4b0
lea rcx, [rbp + 0x58]
call fcn.0040a4b0
lea rsp, [rbp + 0x98]
pop rbx
pop rbp
ret