joyce8/EMBER2024-capa huggingface dataset:
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, 0x41cd00
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 0x41cde0
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, 0x41ccf0
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 0x41cde0
push edi
call ebx
lea eax, [esp + 0xc]
push 0x40
push eax
push 0x10
call fcn.0040ef80
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, 0x41cd00
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 0x41cde0
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, 0x41cd00
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.00402db0
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.00403d80
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, 0x41ce50
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.0040ef40
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, 0x41ce30
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, 0x41ce40
call fcn.00402a40
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
push eax
push esi
call edi
mov ecx, 0x41ce30
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, 0x41ce30
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, 0x41ce18
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.0040ef40
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 0x4090e0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
mov esi, ecx
push edi
lea ecx, [esi + 8]
call fcn.0040c1c0
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], 0x4132e8
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 0x409163
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 0x409720
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 0x4097b3
call fcn.00407320
test eax, eax
je 0x40979b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28c
ret
push ebx
call fcn.0040ae00
add esp, 4
test eax, eax
jne 0x4097b3
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, 0x41d0e8
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.0040b2a0
add esp, 8
test eax, eax
jne 0x409817
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 0x40983d
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, 0x41d0a8
call fcn.00402a40
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4098c0
lea ecx, [esp + 0x14]
push 1
lea edx, [esp + 0x58]
push ecx
push edx
call fcn.0040c630
add esp, 0xc
test eax, eax
jg 0x409898
mov ebp, 1
jmp 0x4098c0
cmp dword [esi + 0x21c], ebx
jne 0x4098c0
lea eax, [esp + 0x10]
mov ecx, esi
push eax
mov dword [esp + 0x14], ebx
call fcn.00409ce0
mov ebp, eax
cmp ebp, ebx
je 0x4098c0
push 1
call fcn.0040ae00
add esp, 4
mov eax, dword [esi + 0x324]
cmp eax, 0xffffffff
je 0x4098dc
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 0x4098ee
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 0x40acf0
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 0x40ade9
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40ade9
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 0x40ad7c
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.0040d6b0
add esp, 8
lea ecx, [esp + 0x10]
push ebp
push ecx
call ebx
test eax, eax
jne 0x40ad71
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 0x40ade9
mov edx, dword [esp + 0x21c]
push 0
push 0xa
push esi
push edx
call fcn.00405fe0
add esp, 0x10
test eax, eax
je 0x40ade9
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.0040d6b0
add esp, 8
lea ecx, [esp + 0x114]
push ebp
push ecx
call ebx
test eax, eax
jne 0x40ade2
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 0x40ae00
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, 0x41cf58
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, 0x41cf48
call fcn.00402a40
push eax
push esi
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
cmp eax, 2
jne 0x40ae7d
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40aec7
mov ecx, 0x41cf58
call fcn.00402a40
lea ecx, [esp + 4]
push 4
mov esi, eax
push ecx
jmp 0x40aeae
test eax, eax
jne 0x40aed1
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
add edx, 0x34bc00
cmp eax, edx
jb 0x40aed1
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40aec7
mov ecx, 0x41cf58
call fcn.00402a40
mov esi, eax
lea eax, [esp + 4]
push 4
push eax
push 3
mov ecx, 0x41cf48
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 0x40aee0
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 0x40afca
push edi
mov ecx, 0x41cf78
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, 0x41cf68
call fcn.00402a40
push eax
push edi
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
cmp eax, 2
pop edi
jne 0x40afad
test ebx, ebx
je 0x40afa5
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, 0x41cf78
mov dword [esp + 8], edx
call fcn.00402a40
mov esi, eax
lea eax, [esp + 8]
push 4
push eax
push 3
mov ecx, 0x41cf68
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 0x40afca
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 0x40b110
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x410e90
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 0x40b267
mov eax, dword [esp + 0x60]
test eax, eax
je 0x40b267
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 0x40b270
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 0x40b660
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x410eeb
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 0x40b825
lea ecx, [esp + 0x50]
push str.TENCENTSSPlus
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x40b825
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
Function at 0x40c740
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40c7c7
mov edi, dword [esp + 0x134]
lea ecx, [esp + 0x2c]
push edi
push ecx
call sub.MSVCRT.dll__mbsicmp
add esp, 8
test eax, eax
jne 0x40c797
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
add esp, 0x128
ret
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40c7c7
lea eax, [esp + 0x2c]
push edi
push eax
call sub.MSVCRT.dll__mbsicmp
add esp, 8
test eax, eax
je 0x40c783
lea ecx, [esp + 8]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40c7a6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x128
ret

Function at 0x40c940
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x224
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], 0
mov byte [esp + 0x124], 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 + 0x125]
mov dword [esp + 8], 0x29cf293a
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
push ecx
mov word [esp + 0x14], 0x1e7d
mov word [esp + 0x16], 0x4069
mov byte [esp + 0x18], 0x9e
mov byte [esp + 0x19], 0x11
mov byte [esp + 0x1a], 0xe3
mov byte [esp + 0x1b], 0x96
mov byte [esp + 0x1c], 0x98
mov byte [esp + 0x1d], 0xd0
mov byte [esp + 0x1e], 0xaf
mov byte [esp + 0x1f], 0x95
mov dword [esp + 0xc], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ole32.dll_StringFromIID]
mov eax, dword [esp + 4]
pop edi
test eax, eax
je 0x40ca0c
push 0
push 0
lea edx, [esp + 0x24]
push 0x104
push edx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [esp]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x120]
push ecx
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
push str.SoftwareMicrosoftInternet_ExplorerToolbar
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
neg eax
sbb eax, eax
inc eax
add esp, 0x224
ret

Function at 0x40ca40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x40c
call fcn.0040c940
test eax, eax
jne 0x40cac1
mov dword [esp], eax
mov eax, 4
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea eax, [esp + 0xc]
push 0x400
push eax
call fcn.0040c8e0
add esp, 8
test eax, eax
je 0x40cac1
lea ecx, [esp + 4]
lea edx, [esp]
push ecx
lea eax, [esp + 0xc]
push edx
push eax
lea ecx, [esp + 0x18]
push str.tbhmark
push ecx
push 0x80000003
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x40cac1
mov eax, dword [esp]
cmp eax, 1
je 0x40caac
cmp eax, 2
jne 0x40cac1
mov edx, dword [esp + 0x410]
mov dword [edx], eax
mov eax, 1
add esp, 0x40c
ret
xor eax, eax
add esp, 0x40c
ret