joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406b40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
mov byte [esp + 0x114], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x115]
mov dword [esp + 8], 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x21c]
lea ecx, [esp + 0x10]
push eax
push str.CLSID_sInprocServer32
push 0x103
push ecx
call sub.MSVCRT.dll__snprintf
add esp, 0x10
lea edx, [esp + 4]
lea eax, [esp + 0x10]
push edx
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x406bc1
xor al, al
pop edi
add esp, 0x214
ret
lea ecx, [esp + 8]
lea edx, [esp + 0x114]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x406bfb
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
add esp, 0x214
ret
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [esp + 0x114]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
cmp ecx, 4
setae al
add esp, 0x214
ret

Function at 0x406cd0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
lea eax, [esp]
mov ecx, 0x41bb80
push ebx
push eax
xor ebx, ebx
call fcn.00402a40
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x406d48
push edi
mov ecx, 0x40
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
stosb byte es:[edi], al
push ecx
mov ecx, dword [esp + 0x120]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push eax
push ebx
push ecx
push edx
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
pop edi
jne 0x406d3d
mov bl, 1
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
add esp, 0x110
ret

Function at 0x406d60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
lea eax, [esp]
mov ecx, 0x41bb70
push ebx
push eax
xor ebx, ebx
call fcn.00402a40
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x406dd8
push edi
mov ecx, 0x40
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
stosb byte es:[edi], al
push ecx
mov ecx, dword [esp + 0x120]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push eax
push ebx
push ecx
push edx
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
pop edi
jne 0x406dcd
mov bl, 1
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
add esp, 0x110
ret
Function at 0x407320
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x48
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
lea edx, [esp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
lea ecx, [esp + 0xc]
push eax
push ecx
push edx
push str.Version
mov ecx, 0x41bc30
mov dword [esp + 0x14], 0x40
call fcn.00402a40
push eax
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
neg eax
sbb eax, eax
pop edi
inc eax
add esp, 0x48
ret

Function at 0x407380
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x40
push ebx
push esi
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
mov esi, dword [esp + 0x54]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push esi
stosb byte es:[edi], al
mov edi, dword [esp + 0x54]
push 0x41bd10
push edi
call ebx
lea eax, [esp + 0x54]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x54]
push ecx
push edx
push str.Version
mov ecx, 0x41bc20
mov dword [esp + 0x64], 0x40
call fcn.00402a40
push eax
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x4073fd
lea eax, [esp + 0xc]
push esi
push eax
push edi
call ebx
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x40
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x40
ret

Function at 0x407410
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x40
push ebx
push esi
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
mov esi, dword [esp + 0x54]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push esi
stosb byte es:[edi], al
mov edi, dword [esp + 0x54]
push 0x41bd10
push edi
call ebx
lea eax, [esp + 0xc]
push 0x40
push eax
push 0x10
call fcn.0040e700
add esp, 0xc
cmp eax, 1
jne 0x40746d
lea ecx, [esp + 0xc]
push esi
push ecx
push edi
call ebx
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x40
ret
lea edx, [esp + 0x54]
lea eax, [esp + 0xc]
push edx
lea ecx, [esp + 0x54]
push eax
push ecx
push str.Version
mov ecx, 0x41bc30
mov dword [esp + 0x64], 0x40
call fcn.00402a40
push eax
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x4074b8
lea edx, [esp + 0xc]
push esi
push edx
push edi
call ebx
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x40
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x40
ret
Function at 0x4074d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x40
push ebx
push esi
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
mov esi, dword [esp + 0x54]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push esi
stosb byte es:[edi], al
mov edi, dword [esp + 0x54]
push 0x41bd10
push edi
call ebx
lea eax, [esp + 0x54]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x54]
push ecx
push edx
push str.HotVer
mov ecx, 0x41bc30
mov dword [esp + 0x64], 0x40
call fcn.00402a40
push eax
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x40754d
lea eax, [esp + 0xc]
push esi
push eax
push edi
call ebx
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x40
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x40
ret

Function at 0x407760
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x104
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00402da0
pop edi
test eax, eax
push 0x104
je 0x407794
lea eax, [esp + 4]
push eax
push 6
jmp 0x40779b
lea ecx, [esp + 4]
push ecx
push 0
call fcn.00407c50
add esp, 0xc
lea edx, [esp]
push str.Update
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [esp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4077db
lea ecx, [esp]
push eax
push ecx
call fcn.00403d90
add esp, 8
test eax, eax
jne 0x4077db
add esp, 0x104
ret
mov edx, dword [esp + 0x10c]
mov ecx, dword [esp + 0x108]
lea eax, [esp]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, 1
add esp, 0x104
ret
Function at 0x407c50
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
push esi
cmp eax, 0x64
push edi
ja case.0x407c67.10
xor ecx, ecx
mov cl, byte [eax + 0x407e18]
jmp dword [ecx*4 + 0x407dec]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.00407e80
add esp, 8
mov eax, 1
pop edi
pop esi
ret
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
call fcn.00403370
add esp, 8
mov eax, 1
pop edi
pop esi
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
pop edi
mov eax, 1
pop esi
ret
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
pop edi
mov eax, 1
pop esi
ret
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
push ecx
push esi
call fcn.00403370
add esp, 8
mov ecx, 0x41bd80
jmp 0x407dd2
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.drivers
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
pop edi
mov eax, 1
pop esi
ret
mov eax, dword [esp + 0x14]
push eax
push 0x10
call fcn.0040e6c0
mov ecx, dword [esp + 0x18]
add esp, 4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
pop edi
mov eax, 1
pop esi
ret
mov esi, dword [esp + 0x10]
push 1
push 0x1a
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je case.0x407c67.10
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
push str.LocalLow
push esi
call edi
mov ecx, 0x41bd60
call fcn.00402a40
push eax
push esi
call edi
pop edi
mov eax, 1
pop esi
ret
mov esi, dword [esp + 0x10]
push 1
push 0x1a
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je case.0x407c67.10
mov ecx, 0x41bd70
call fcn.00402a40
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
push eax
push esi
call edi
mov ecx, 0x41bd60
call fcn.00402a40
push eax
push esi
call edi
pop edi
mov eax, 1
pop esi
ret
mov esi, dword [esp + 0x10]
push 1
push 0x1a
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je case.0x407c67.10
mov ecx, 0x41bd60
call fcn.00402a40
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
pop edi
mov eax, 1
pop esi
ret
pop edi
xor eax, eax
pop esi
ret

Function at 0x407e80
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push edi
mov edi, dword [esp + 0x14]
push eax
lea ecx, [esp + 0xc]
push esi
push ecx
push str.Install
mov ecx, 0x41bd48
mov dword [esp + 0x18], 1
mov dword [esp + 0x24], edi
call fcn.00402a40
push eax
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x407ed5
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x407ed5
pop edi
mov eax, 1
pop esi
pop ecx
ret
push edi
push 0x10
call fcn.0040e6c0
add esp, 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
pop ecx
ret
Function at 0x409090
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
mov esi, ecx
push edi
lea ecx, [esi + 8]
call fcn.0040bd70
mov eax, dword [esp + 0x19c]
xor edx, edx
mov dword [esi + 0x32c], eax
or eax, 0xffffffff
mov dword [esi + 0x324], eax
mov dword [esi + 0x328], eax
mov ecx, 0x41
xor eax, eax
lea edi, [esi + 0x220]
mov dword [esi], 0x4122c0
mov dword [esi + 4], edx
mov byte [esi + 0x14], dl
mov byte [esi + 0x118], dl
mov dword [esi + 0x21c], edx
rep stosd dword es:[edi], eax
cmp dword [esi + 0x32c], edx
je 0x409113
mov ecx, 0x63
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], dx
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
push ecx
push 0x202
stosw word es:[edi], ax
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, esi
pop edi
pop esi
add esp, 0x190
ret 4
Function at 0x4096a0
Capabilities:
Check if file exists
Delete file
Read .ini file

Disassembly:
sub esp, 0x28c
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x55]
mov byte [esp + 0x54], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x95]
mov byte [esp + 0x94], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push 0x40
push eax
xor ebp, ebp
call fcn.00407380
add esp, 8
test eax, eax
jne 0x409733
call fcn.00407320
test eax, eax
je 0x40971b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28c
ret
push ebx
call fcn.0040a9a0
add esp, 4
test eax, eax
jne 0x409733
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28c
ret
lea ecx, [esi + 0x220]
push str.Profile.ini
push ecx
lea edi, [esi + 0x14]
push str._s_s
push 0x103
push edi
call sub.MSVCRT.dll__snprintf
add esp, 0x14
mov ecx, 0x41c008
push 0x104
call fcn.00402a40
lea edx, [esp + 0x98]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [esp + 0x94]
push 0x208
push eax
call fcn.0040ae40
add esp, 8
test eax, eax
jne 0x409797
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28c
ret
lea ecx, [esi + 8]
lea edx, [esp + 0x94]
push ecx
push 0xa
push edi
push edx
call fcn.00405fe0
add esp, 0x10
test eax, eax
jne 0x4097bd
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28c
ret
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x324], eax
push edi
lea eax, [esp + 0x58]
push 0x40
push eax
push ebx
push str.version
mov ecx, 0x41bfc8
call fcn.00402a40
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x409840
lea ecx, [esp + 0x14]
push 1
lea edx, [esp + 0x58]
push ecx
push edx
call fcn.0040c190
add esp, 0xc
test eax, eax
jg 0x409818
mov ebp, 1
jmp 0x409840
cmp dword [esi + 0x21c], ebx
jne 0x409840
lea eax, [esp + 0x10]
mov ecx, esi
push eax
mov dword [esp + 0x14], ebx
call fcn.00409880
mov ebp, eax
cmp ebp, ebx
je 0x409840
push 1
call fcn.0040a9a0
add esp, 4
mov eax, dword [esi + 0x324]
cmp eax, 0xffffffff
je 0x40985c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x324], 0xffffffff
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40986e
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x28c
ret
Function at 0x40a890
Capabilities:
Check if file exists
Delete file

Disassembly:
sub esp, 0x208
push ebx
push ebp
mov ebp, dword [esp + 0x21c]
push esi
test ebp, ebp
push edi
je 0x40a989
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40a989
mov esi, dword [esp + 0x220]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40a91c
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
push esi
call fcn.0040ce30
add esp, 8
lea ecx, [esp + 0x10]
push ebp
push ecx
call ebx
test eax, eax
jne 0x40a911
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x208
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40a989
mov edx, dword [esp + 0x21c]
push 0
push 0xa
push esi
push edx
call fcn.00405fe0
add esp, 0x10
test eax, eax
je 0x40a989
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x114]
push eax
push esi
call fcn.0040ce30
add esp, 8
lea ecx, [esp + 0x114]
push ebp
push ecx
call ebx
test eax, eax
jne 0x40a982
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x208
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x208
ret 0xc

Function at 0x40a9a0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
push eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
call sub.MSVCRT.dll_time
add esp, 4
mov ecx, 0x41be88
mov dword [esp + 0xc], 4
call fcn.00402a40
lea ecx, [esp + 0xc]
mov esi, eax
lea edx, [esp + 8]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
mov ecx, 0x41be78
call fcn.00402a40
push eax
push esi
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
cmp eax, 2
jne 0x40aa1d
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40aa67
mov ecx, 0x41be88
call fcn.00402a40
lea ecx, [esp + 4]
push 4
mov esi, eax
push ecx
jmp 0x40aa4e
test eax, eax
jne 0x40aa71
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
add edx, 0x34bc00
cmp eax, edx
jb 0x40aa71
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40aa67
mov ecx, 0x41be88
call fcn.00402a40
mov esi, eax
lea eax, [esp + 4]
push 4
push eax
push 3
mov ecx, 0x41be78
call fcn.00402a40
push eax
push esi
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov eax, 1
pop esi
add esp, 0x10
ret
xor eax, eax
pop esi
add esp, 0x10
ret
Function at 0x40aa80
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
push ebx
lea eax, [esp + 8]
push esi
push eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call sub.MSVCRT.dll_time
mov ebx, dword [esp + 0x20]
xor edx, edx
mov eax, ebx
mov ecx, 0x30
div ecx
add esp, 4
mov dword [esp + 0x10], 4
mov esi, edx
test esi, esi
je 0x40ab6a
push edi
mov ecx, 0x41bea8
call fcn.00402a40
mov edi, eax
lea edx, [esp + 0x14]
lea eax, [esp + 0xc]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, 0x41be98
call fcn.00402a40
push eax
push edi
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
cmp eax, 2
pop edi
jne 0x40ab4d
test ebx, ebx
je 0x40ab45
lea eax, [esi + esi*2]
mov ecx, dword [esp + 0xc]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*8]
shl edx, 7
add edx, ecx
mov ecx, 0x41bea8
mov dword [esp + 8], edx
call fcn.00402a40
mov esi, eax
lea eax, [esp + 8]
push 4
push eax
push 3
mov ecx, 0x41be98
call fcn.00402a40
push eax
push esi
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
test eax, eax
jne 0x40ab6a
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
add ecx, 0xffffe3e0
pop esi
cmp edx, ecx
pop ebx
setge al
add esp, 0x10
ret
pop esi
mov eax, 1
pop ebx
add esp, 0x10
ret
Function at 0x40acb0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x410600
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov al, 0xed
push ebx
mov byte [esp + 0x3c], al
mov byte [esp + 0x44], al
push esi
mov cl, 0xf2
lea eax, [esp + 0x38]
push 0x14
mov byte [esp + 0x3f], cl
mov bl, 0xd2
mov byte [esp + 0x49], cl
push eax
push 0x11
lea ecx, [esp + 0x34]
mov byte [esp + 0x44], 0xe2
mov byte [esp + 0x45], 0xd8
mov byte [esp + 0x46], 0xd5
mov byte [esp + 0x48], 0xe6
mov byte [esp + 0x49], 0xd6
mov byte [esp + 0x4a], 0xc1
mov byte [esp + 0x4b], 0xe3
mov byte [esp + 0x4d], 0xc3
mov byte [esp + 0x4e], 0xf6
mov byte [esp + 0x4f], 0xc8
mov byte [esp + 0x50], bl
mov byte [esp + 0x52], 0xfd
mov byte [esp + 0x53], bl
mov byte [esp + 0x55], 0xc7
mov byte [esp + 0x56], 0xd7
mov byte [esp + 0x57], 0xe5
call fcn.004029b0
lea ecx, [esp + 0x10]
push 8
push ecx
push 0x2a
lea ecx, [esp + 0x24]
mov dword [esp + 0x60], 0
mov byte [esp + 0x1c], 0xbf
mov byte [esp + 0x1d], 0xc0
mov byte [esp + 0x1e], 0xd8
mov byte [esp + 0x1f], 0xda
mov byte [esp + 0x20], 0xb9
mov byte [esp + 0x21], 0xc4
mov byte [esp + 0x22], 0xd8
mov byte [esp + 0x23], bl
call fcn.004029b0
mov esi, dword [esp + 0x5c]
mov ebx, 1
test esi, esi
mov byte [esp + 0x54], bl
je 0x40ae07
mov eax, dword [esp + 0x60]
test eax, eax
je 0x40ae07
dec eax
push edi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
call fcn.00402a40
lea edx, [esp + 0xc]
mov edi, eax
push edx
lea eax, [esp + 0x14]
push esi
push eax
lea ecx, [esp + 0x28]
call fcn.00402a40
push eax
push edi
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
pop edi
mov byte [esp + 0x54], 0
lea ecx, [esp + 0x18]
jne 0x40ae10
call fcn.00402a00
lea ecx, [esp + 0x28]
mov dword [esp + 0x54], 0xffffffff
call fcn.00402a00
mov eax, ebx
pop esi
pop ebx
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret
mov byte [esp + 0x54], 0
lea ecx, [esp + 0x18]
call fcn.00402a00
lea ecx, [esp + 0x28]
mov dword [esp + 0x54], 0xffffffff
call fcn.00402a00
mov ecx, dword [esp + 0x4c]
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret
Function at 0x40b200
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x41065b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
mov al, 0xfc
push ebx
mov byte [esp + 0x11], al
mov byte [esp + 0x12], al
mov al, 0xd3
mov bl, 0xfd
mov byte [esp + 0x16], al
mov byte [esp + 0x1e], al
mov al, 0xe1
push edi
mov byte [esp + 0x23], al
mov byte [esp + 0x25], al
mov al, 0xc3
mov cl, 0xcd
mov byte [esp + 0x28], al
mov byte [esp + 0x30], al
mov byte [esp + 0x34], al
lea eax, [esp + 8]
mov byte [esp + 0x1d], bl
mov byte [esp + 0x26], bl
push 0x2d
mov dl, 0xe7
mov byte [esp + 0x1b], cl
mov byte [esp + 0x23], cl
mov bl, 0xc7
mov byte [esp + 0x33], cl
push eax
push 0xd
lea ecx, [esp + 0x48]
mov byte [esp + 0x14], 0xfe
mov byte [esp + 0x15], 0xdc
mov byte [esp + 0x16], 0xc9
mov byte [esp + 0x17], 0xf6
mov byte [esp + 0x18], 0xfa
mov byte [esp + 0x19], 0xd2
mov byte [esp + 0x1a], 0xdd
mov byte [esp + 0x1b], dl
mov byte [esp + 0x1c], 0xf1
mov byte [esp + 0x1d], 0xde
mov byte [esp + 0x1e], 0xe6
mov byte [esp + 0x1f], 0xc1
mov byte [esp + 0x20], 0xdf
mov byte [esp + 0x24], 0xcb
mov byte [esp + 0x25], dl
mov byte [esp + 0x27], 0xf5
mov byte [esp + 0x28], 0xc4
mov byte [esp + 0x2a], 0xeb
mov byte [esp + 0x2c], 0xda
mov byte [esp + 0x2d], 0xe0
mov byte [esp + 0x30], 0xd8
mov byte [esp + 0x33], bl
mov byte [esp + 0x35], dl
mov byte [esp + 0x36], 0xd9
mov byte [esp + 0x37], bl
mov byte [esp + 0x38], 0xdf
mov byte [esp + 0x39], 0xe0
mov byte [esp + 0x3a], 0xe6
mov byte [esp + 0x3d], 0xcf
mov byte [esp + 0x3e], 0xdd
mov byte [esp + 0x3f], 0xd7
call fcn.004029b0
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x51]
mov byte [esp + 0x50], bl
lea edx, [esp + 0x50]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x38]
mov dword [esp + 0x15c], ebx
stosb byte es:[edi], al
push ecx
lea eax, [esp + 0x50]
push edx
push eax
push str.stup.exe
lea ecx, [esp + 0x4c]
mov dword [esp + 0x48], 0x104
call fcn.00402a40
push eax
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
cmp eax, ebx
jne 0x40b3c5
lea ecx, [esp + 0x50]
push str.TENCENTSSPlus
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x40b3c5
push esi
push str.stup.exe
lea ecx, [esp + 0x44]
call fcn.00402a40
push eax
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
xor edx, edx
cmp eax, ebx
sete dl
lea ecx, [esp + 0x40]
mov esi, edx
mov dword [esp + 0x160], 0xffffffff
call fcn.00402a00
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [esp + 0x14c]
mov dword fs:[0], ecx
add esp, 0x158
ret
lea ecx, [esp + 0x3c]
mov dword [esp + 0x15c], 0xffffffff
call fcn.00402a00
mov ecx, dword [esp + 0x154]
pop edi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x158
ret