joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40daf0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00421dd0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x40db5d
mov rcx, r8
call fcn.0040d9d0
test eax, eax
je 0x40db5d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x40db5d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x40db54
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40db5f
add rax, 0x28
cmp rax, r9
jne 0x40db40
xor eax, eax
add rsp, 0x28
ret

Function at 0x40ef00
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x0041e128], eax
je 0x40ef1a
add rsp, 0x28
ret
call sub.msvcrt.dll_abort
nop

Function at 0x40f420
Capabilities:
Print debug messages

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x90
test rcx, rcx
mov rbx, rcx
je 0x40f443
call fcn.004122a0
cmp eax, 1
je 0x40f44e
mov qword [rbx], 0xffffffffffffffff
add rsp, 0x90
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
xor eax, eax
mov ecx, 0xa
lea rsi, str.Error_cleaning_up_spin_keys_for_thread
rep movsd dword [rdi], dword [rsi]
lea rdi, [rsp + 0x48]
mov ecx, 0x43
rep stosb byte [rdi], al
lea rbx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rbx + 0x27]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x40f4c5
mov eax, 0x28
jmp 0x40f4aa
add rax, 1
cmp rax, 0x6b
je 0x40f4b7
cmp byte [rbx + rax], 0
mov edx, eax
jne 0x40f4a0
cmp eax, 0x6a
jne 0x40f4ca
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov edx, 0x27
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0xa
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rax + 0x20], 0
jmp 0x40f4b7
Function at 0x40f570
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
cmp dword [0x00429e20], 1
je 0x40f586
call fcn.0040f4e0
mov ecx, dword [0x0041e128]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x40f5b0
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.0040f360
cmp qword [0x0042c050], 0
mov rsi, rax
je 0x40f59a
test rax, rax
je 0x40f59a
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
mov dword [rsi + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
lea rcx, [rsi + 0x68]
mov qword [rsi + 0x38], 0xffffffffffffffff
mov qword [rsi + 0x30], rax
call fcn.0040f420
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsi + 0xb8], 0
mov qword [rsi + 0x28], 0
call rbx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rdi, rax
call rbx
mov dword [rsp + 0x30], 2
mov r8, rbp
mov rdx, rdi
mov dword [rsp + 0x28], 0
lea r9, [rsi + 0x28]
mov rcx, rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x40f6a0
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov rdx, rsi
mov ecx, dword [0x0041e128]
mov dword [rsi + 0xbc], 0
mov dword [rsi + 0xc0], eax
movzx eax, byte [rsi + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rsi + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x40f6a0
mov rbx, rsi
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sub.msvcrt.dll_abort
nop
nop word cs:[rax + rax]
Function at 0x410c40
Capabilities:
Create thread
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbp, rcx
mov r13, rdx
mov rsi, r8
mov rdi, r9
call fcn.0040f360
test rax, rax
mov rbx, rax
je 0x410dc8
test rbp, rbp
je 0x410c7b
mov rax, qword [rax + 0x1d8]
mov qword [rbp], rax
mov r12, qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rbx + 8], rdi
mov rdi, qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x10], rsi
xor esi, esi
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0x44], 1
mov qword [rbx + 0x28], 0xffffffffffffffff
mov r14, r12
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
call rdi
test rax, rax
mov qword [rbx + 0x30], rax
jne 0x410cf0
test rsi, rsi
je 0x410ce0
mov ecx, 0x14
call r14
cmp esi, 4
je 0x410cf0
add rsi, 1
jmp 0x410caf
xor ecx, ecx
call r12
jmp 0x410cd9
lea rsi, [rbx + 0x68]
mov qword [rbx + 0x38], 0xffffffffffffffff
mov rcx, rsi
call fcn.0040f420
cmp qword [rbx + 0x30], 0
mov dword [rbx], 0xbab1f00d
mov dword [rbx + 0xc0], 0
mov dword [rbx + 0xb8], 0
je 0x410dad
xor edx, edx
test r13, r13
je 0x410d4d
mov eax, dword [r13]
mov edx, dword [r13 + 0x10]
test al, 8
mov dword [rbx + 0x44], eax
jne 0x410e80
mov eax, dword [r13 + 0x18]
mov dword [rbx + 0xc0], eax
xor ecx, ecx
mov dword [rsp + 0x20], 4
mov r9, rbx
mov qword [rsp + 0x28], 0
lea r8, [0x0040fa20]
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov rdi, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
jbe 0x410de0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x410d8c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbx + 0x38]
call fcn.0040ecd0
mov rcx, rsi
call fcn.0040f420
mov qword [rbx + 0x30], 0
mov qword [rbx + 0x28], 0
test rbp, rbp
je 0x410dba
mov qword [rbp], 0
cmp qword [rbx + 0x1d0], 0
je 0x410e70
mov eax, 0xb
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov eax, dword [rbx + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jl 0x410e10
add edx, 0xd
cmp eax, 0xffffffff
jl 0x410e10
cmp eax, 0xe
mov edx, 0xf
jle 0x410ea0
nop word cs:[rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test byte [rbx + 0x44], 4
jne 0x410e50
mov qword [rbx + 0x28], rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, rdi
mov qword [rbx + 0x28], 0
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x410e36
mov rcx, rbx
call fcn.0040f120
jmp 0x410dc8
mov dword [rsp + 0x3c], edx
call fcn.0040f570
mov edx, dword [rsp + 0x3c]
mov eax, dword [rax + 0xc0]
mov dword [rbx + 0xc0], eax
jmp 0x410d4d
cmp eax, 2
mov edx, 2
cmovle edx, eax
jmp 0x410e10
Function at 0x41d100
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp fcn.00401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.0040e7c0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.0040e7c0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x140004f88
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004fd2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004fd2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004fd2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004fd2
cmp dword [rcx + 0x84], 0xe
jbe 0x140004fd2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140004fd4
xor al, al
add rsp, 0x28
ret

Function at 0x140009d64
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140009b54
Function at 0x14000c40c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14000c493
mov rsi, rbx
cmp word [rax], bp
je 0x14000c452
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14000c43c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14000c438
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14000ae4c
mov rdi, rax
test rax, rax
je 0x14000c480
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140011c10
mov rbp, rdi
xor ecx, ecx
call fcn.14000aeac
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140011500
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140011528
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140011528
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1409c2058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1409c21df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1409c2089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409c206f
add dl, dl
jne 0x1409c2096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409c20f6
xor eax, eax
add dl, dl
jne 0x1409c20a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409c21ad
add dl, dl
jne 0x1409c20b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409c20c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409c20d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409c20dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1409c20ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1409c207e
mov eax, 1
add dl, dl
jne 0x1409c2106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409c2113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409c20fb
sub eax, ebx
mov ebx, 1
jne 0x1409c214c
mov ecx, 1
add dl, dl
jne 0x1409c212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409c213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409c2123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409c207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1409c2168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409c2175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409c215d
cmp eax, 0x7d00
jae 0x1409c219b
cmp eax, 0x500
jb 0x1409c2196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409c207e
cmp eax, 0x7f
ja 0x1409c219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409c207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1409c21d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1409c207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140edcea4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140edceae
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140edced7
pop rbp
sub rbp, 0x33
sub rbp, 0xedcea4
sub rsp, 0x20
jmp 0x140edcef6
mov rax, 0xedcea4
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
in eax, dx
add byte [rax + 1], cl
call 0xc5ae504c
add byte [rax], al
add byte [rax - 0x39], cl
ror dword [rbx], 6
add byte [rax], al
mov rdx, 0x2b91b7a8
xor byte [rax], dl
inc rax
dec rcx
jne 0x140edcf15
jmp 0x140edcf2c
loopne 0x140edcf4f
and esp, dword [r9]
xchg esp, eax
test al, 0xa8
test al, 0xe0
sub dword [rcx - 0x60], ebp
test eax, 0xa9e0a8a8
loopne 0x140edcfb0
push 0xffffffffa8a8a8a0
loopne 0x140edcfb7
push 0xffffffffffffff80
test al, 0xa8
test al, 0xe0
pop rdi
loopne 0x140edcefb
imul esp, dword [rbx], 0xa8a8a429
test al, 0xe0
test eax, 0xe0f8f840
adc byte [rcx + rax - 0x7f], dh
test al, 0xa8
test al, 0xa8
test al, 0xe0
adc dword [rbp - 0x74], ebp
sub dword [rax - 0x57575758], 0x8c6d11e0
insb byte [rdi], dx
test al, 0xa8
test al, 0xa8
test al, 0xe0
test eax, 0xa712e041
out dx, al
invalid
mov word [rax + rbp*4 - 0x58], gs
test al, 0xa8
test al, 0xe0
test eax, 0xa8ad4041
test al, 0xa8
and eax, 0xfaa8a8aa
loopne 0x140edcf62
lodsd eax, dword [rsi]
test al, 0xa8
test al, 0x41
and eax, 0xfaa8a8aa
invalid
Function at 0x140004ee0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, reloc.mfc90u.dll_CChevronOwnerDrawMenu::CChevronOwnerDrawMenu
mov rax, qword [0x1404e41f8]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
xor edx, edx
mov r8d, 0x3d0
add rcx, 0xa8
call sub.MSVCR90.dll_memset
xor edi, edi
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, pe_nt_image_headers64
mov dword [rbx + AfxHookWindowCreate], edi
mov dword [rbx + reloc.mfc90u.dll_AfxHelpEnabled], 1
mov dword [rbx + reloc.mfc90u.dll_AfxInitExtensionModule], 1
mov dword [rbx + 0x4f0], edi
mov dword [rbx + AfxWinInit], 1
mov dword [rbx + 0x484], edi
mov qword [rbx + reloc.mfc90u.dll_AfxPropPageCallback], rdi
mov qword [rbx + 0x4e8], rdi
mov qword [rbx + 0x490], rdi
mov dword [rbx + 0x4f8], edi
mov dword [rsp + 0x20], ATL::CStringT<wchar_t,class StrTraitMFC_DLL<wchar_t,class ATL::ChTraitsCRT<wchar_t> > >::CStringT<wchar_t,class StrTraitMFC_DLL<wchar_t,class ATL::ChTraitsCRT<wchar_t> > >
call sub.MSVCR90.dll_memset
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x30], 2
jne 0x140004fa2
cmp dword [rsp + 0x24], 5
jb 0x140004fa2
mov dword [rbx + 0x488], 1
jmp 0x140004fa8
mov dword [rbx + 0x488], edi
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1403addc0
mov rbx, qword [rsp + 0x168]
add rsp, reloc.mfc90u.dll_CChevronOwnerDrawMenu::CChevronOwnerDrawMenu
pop rdi
ret

Function at 0x140005a00
Capabilities:
Find taskbar

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rbx, rcx
lea rcx, str.Shell_TrayWnd
xor edx, edx
call qword [sym.imp.USER32.dll_FindWindowW]
mov rdi, rax
test rax, rax
je 0x140005a4e
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rdx, [0x140005930]
mov r8, rbx
mov rcx, rdi
call qword [sym.imp.USER32.dll_EnumChildWindows]
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
lea rdx, [rsp + 0x20]
mov ecx, 5
mov dword [rsp + 0x20], gethostbyname
call qword [sym.imp.SHELL32.dll_SHAppBarMessage]
test rax, rax
je 0x140005ad2
mov eax, dword [rsp + 0x34]
test eax, eax
je 0x140005aaa
sub eax, 1
je 0x140005a82
sub eax, 1
je 0x140005aaa
cmp eax, 1
jne 0x140005afa
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x40]
mov dword [rbx + 4], eax
mov eax, dword [rsp + 0x44]
mov dword [rbx + 0xc], eax
lea eax, [rcx - 0x64]
mov dword [rbx], eax
lea eax, [rcx - 0x10]
mov dword [rbx + 8], eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
mov ecx, dword [rsp + 0x44]
lea eax, [rcx - 0x64]
mov dword [rbx + 4], eax
lea eax, [rcx - 0x10]
mov dword [rbx + 0xc], eax
mov eax, dword [rsp + 0x38]
mov dword [rbx], eax
mov eax, dword [rsp + 0x40]
mov dword [rbx + 8], eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
xor edx, edx
xor r9d, r9d
mov r8, rbx
lea ecx, [rdx + 0x30]
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
mov r11d, dword [rbx + 8]
mov eax, dword [rbx + 0xc]
sub r11d, 0x96
sub eax, 0x1e
mov dword [rbx + 4], eax
mov dword [rbx], r11d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x140006880
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp byte [0x1404e45a0], 0
mov rdi, rdx
mov rbx, rcx
jne 0x1400068db
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400068cb
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x1404e45a0], 1
mov qword [0x1404e4598], rax
jmp 0x1400068e2
mov rax, qword [0x1404e4598]
mov byte [0x1404e45a0], 1
jmp 0x1400068e2
mov rax, qword [0x1404e4598]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x140006901
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]

Function at 0x140006be0
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x60
mov eax, dword [rcx + 8]
mov rcx, qword [rcx]
mov rsi, r8
lea r8, [r11 + 8]
xor edi, edi
or eax, 0x2001f
mov qword [r11 - 0x28], r8
lea r8, [r11 - 0x18]
mov rbp, r9
mov qword [r11 - 0x30], r8
mov qword [r11 - 0x38], rdi
mov dword [rsp + 0x28], eax
xor r8d, r8d
xor r9d, r9d
mov dword [rsp + 0x20], edi
mov qword [r11 - 0x18], rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x140006c40
mov ebx, edi
mov rdi, qword [rsp + 0x50]
test ebx, ebx
jne 0x140006c7b
test rsi, rsi
jne 0x140006c4e
lea ebx, [rsi + 0xd]
jmp 0x140006c7b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r9d, 1
xor r8d, r8d
lea eax, [rax + rax + 2]
mov rdx, rbp
mov rcx, rdi
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test rdi, rdi
je 0x140006c89
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140006cb0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1404e41f8]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov edi, dword [rcx + 8]
xor eax, eax
mov rsi, rcx
mov rcx, qword [rcx]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x58]
or edi, 0x2001f
xor r8d, r8d
mov r9d, edi
mov rbp, rdx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x140006dfc
test rcx, rcx
je 0x140006d25
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rsp + 0x58]
and edi, reloc.mfc90u.dll_CScrollView::CScrollView
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x50], edi
test ebx, ebx
jne 0x140006dfc
xor edi, edi
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
lea r8, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x40], SerializeElements<class ATL::CStringT<wchar_t,class StrTraitMFC_DLL<wchar_t,class ATL::ChTraitsCRT<wchar_t> > > >
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140006dd1
nop word [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140006cb0
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x140006dfc
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
xor edx, edx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x40], SerializeElements<class ATL::CStringT<wchar_t,class StrTraitMFC_DLL<wchar_t,class ATL::ChTraitsCRT<wchar_t> > > >
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140006d80
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140006de6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rdi
mov rdx, rbp
mov rcx, rsi
mov dword [rsp + 0x50], edi
call fcn.140006880
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test rcx, rcx
je 0x140006e07
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1403addc0
mov rbx, qword [rsp + reloc.mfc90u.dll_CInternetException::CInternetException]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x140017610
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov rax, qword [0x1404e41f8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, qword [rsp + 0xc0]
mov r14, qword [rsp + 0xc8]
xor eax, eax
mov r12, rcx
mov ecx, DDX_FieldText
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x44], eax
mov r13, r9
mov rbp, r8
mov ebx, edx
call sub.mfc90u.dll_new__
lea rdx, [rsp + 0x38]
xor r8d, r8d
mov ecx, ebx
mov dword [rsp + 0x30], 0x3e8
mov rdi, rax
call qword [sym.imp.SETUPAPI.dll_CM_Enumerate_Classes]
xor r15d, r15d
mov dword [rsi], r15d
cmp eax, 0x1f
jne 0x140017696
lea eax, [r15 - 2]
jmp 0x1400177ee
cmp eax, 0x25
jne 0x1400176a3
or eax, 0xffffffff
jmp 0x1400177ee
test eax, eax
je 0x1400176b1
mov eax, 0xfffffffd
jmp 0x1400177ee
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
lea rcx, [rsp + 0x38]
mov rdx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiClassNameFromGuidW]
cmp dword [rsp + 0x30], r15d
jbe 0x140017713
mov rcx, rdi
call sub.mfc90u.dll_delete__
mov r11d, dword [rsp + 0x30]
mov rcx, 0xffffffffffffffff
mov eax, 2
mul r11
cmovo rax, rcx
mov rcx, rax
call sub.mfc90u.dll_new__
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
lea rcx, [rsp + 0x38]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.SETUPAPI.dll_SetupDiClassNameFromGuidW]
lea rcx, [r12 + 0x18]
lea rdx, [rsp + 0x38]
mov r8, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassImageIndex]
lea rcx, [rsp + 0x38]
mov r9d, 2
xor r8d, r8d
xor edx, edx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x140017762
lea r8, [0x1403f57dc]
mov edx, 0x3e8
mov rcx, rbp
mov dword [rsi], r15d
call qword [sym.imp.MSVCR90.dll_wcscpy_s]
jmp 0x1400177e4
xor r9d, r9d
lea rcx, [rsp + 0x38]
mov edx, 0x2000000
lea r8d, [r9 + 1]
mov qword [rsp + 0x20], r15
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenClassRegKeyExW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140017745
lea r9, [rsp + 0x34]
mov r8, r13
xor edx, edx
mov rcx, rax
mov dword [rsp + 0x34], 0x3e8
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
je 0x1400177bb
lea r8, [0x1403f57dc]
mov edx, 0x3e8
mov rcx, r13
call qword [sym.imp.MSVCR90.dll_wcscpy_s]
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov r8, rdi
mov edx, 0x3e8
mov rcx, rbp
call qword [sym.imp.MSVCR90.dll_wcscpy_s]
mov rcx, rbx
mov dword [rsi], 1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rdi
call sub.mfc90u.dll_delete__
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1403addc0
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret