joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402cc0
Capabilities:
Check if file exists
Create directory

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
test esi, esi
push edi
je 0x402d6a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x402d6a
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x402d04
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
pop edi
pop esi
add esp, 0x104
ret
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [esp + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashA]
lea edx, [esp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov edi, dword [esp + 0x114]
lea eax, [esp + 8]
push edi
push eax
call fcn.00402cc0
add esp, 8
test eax, eax
je 0x402d6a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
add esp, 0x104
ret
pop edi
xor eax, eax
pop esi
add esp, 0x104
ret

Function at 0x402d80
Capabilities:
Move file

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x402d93
push edi
call fcn.00402510
add esp, 4
mov esi, dword [esp + 0x10]
test esi, esi
je 0x402da4
push esi
call fcn.00402510
add esp, 4
call fcn.00403280
test eax, eax
je 0x402dc3
xor eax, eax
test esi, esi
setne al
add eax, 4
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
pop edi
pop esi
ret
push esi
push edi
call fcn.00402dd0
add esp, 8
pop edi
pop esi
ret
Function at 0x403290
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x10], 2
jne 0x4032c3
cmp dword [esp + 4], 6
jb 0x4032c3
mov eax, 1
add esp, 0x94
ret
xor eax, eax
add esp, 0x94
ret

Function at 0x403320
Capabilities:
Query or enumerate registry value

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
je 0x403375
mov eax, dword [esp + 0xc]
test eax, eax
je 0x403375
dec eax
push esi
mov ecx, 0x417890
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], eax
call fcn.00402170
mov esi, eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push edi
push ecx
mov ecx, 0x4178d0
call fcn.00402170
push eax
push esi
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
neg eax
sbb eax, eax
pop esi
inc eax
pop edi
ret
xor eax, eax
pop edi
ret

Function at 0x403ba0
Capabilities:
Check if file exists
Delete file

Disassembly:
sub esp, 0x104
push esi
mov edx, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
add edx, 4
push eax
push edx
call fcn.00404500
add esp, 0xc
lea ecx, [esp + 8]
mov esi, eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x403c00
lea edx, [esp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x403c00
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, esi
pop edi
pop esi
add esp, 0x104
ret

Function at 0x403ec0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push edi
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
pop edi
je 0x403f7a
mov eax, dword [esp + 0x10]
cmp eax, 1
jne 0x403f0c
cmp dword [esp + 4], 4
jne 0x403f7a
mov eax, 1
add esp, 0x94
ret
cmp eax, 2
jne 0x403f7a
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x403f50
mov eax, dword [esp + 8]
test eax, eax
jne 0x403f2e
mov eax, 2
add esp, 0x94
ret
cmp eax, 1
jne 0x403f3f
mov eax, 3
add esp, 0x94
ret
cmp eax, 2
jne 0x403f7a
mov eax, 4
add esp, 0x94
ret
cmp eax, 6
jne 0x403f7a
mov eax, dword [esp + 8]
test eax, eax
jne 0x403f69
mov eax, 5
add esp, 0x94
ret
cmp eax, 1
jne 0x403f7a
mov eax, 6
add esp, 0x94
ret
xor eax, eax
add esp, 0x94
ret
Function at 0x404080
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x18
mov eax, dword [0x412b0c]
mov edx, dword [0x412b14]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], eax
mov ecx, dword [0x412b10]
mov eax, dword [0x412b18]
mov dword [esp + 0x14], ecx
mov ecx, 0x418650
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 8], 0x10
call fcn.00402170
lea ecx, [esp + 8]
mov esi, eax
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x10]
push edx
push eax
mov ecx, 0x418640
call fcn.00402170
push eax
push esi
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x40411b
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40410e
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [eax], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
pop edi
mov eax, 1
pop esi
add esp, 0x18
ret 8
mov eax, dword [esp + 0x28]
test eax, eax
je 0x404137
mov eax, dword [esp + 0x24]
mov ecx, edi
push eax
call fcn.00404150
pop edi
pop esi
add esp, 0x18
ret 8
pop edi
xor eax, eax
pop esi
add esp, 0x18
ret 8

Function at 0x404150
Capabilities:
Set registry value

Disassembly:
sub esp, 0x10
lea eax, [esp]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
je 0x40416a
xor eax, eax
add esp, 0x10
ret 4
push esi
mov ecx, 0x418650
call fcn.00402170
lea ecx, [esp + 4]
push 0x10
push ecx
push 3
mov ecx, 0x418640
mov esi, eax
call fcn.00402170
push eax
push esi
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov eax, dword [esp + 0x18]
pop esi
test eax, eax
je 0x4041bb
mov edx, dword [esp]
mov ecx, dword [esp + 4]
mov dword [eax], edx
mov edx, dword [esp + 8]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0xc]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov eax, 1
add esp, 0x10
ret 4

Function at 0x4041d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
mov ecx, 0x418650
mov dword [esp + 4], 0
mov dword [esp + 8], 2
call fcn.00402170
mov esi, eax
lea eax, [esp + 8]
lea ecx, [esp + 4]
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, 0x418630
call fcn.00402170
push eax
push esi
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov ax, word [esp + 4]
pop esi
add esp, 0xc
ret
Function at 0x404f30
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 dword [sym.imp.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 0x404fb2
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 0x404fec
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 0x4050c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
lea eax, [esp]
mov ecx, 0x418750
push ebx
push eax
xor ebx, ebx
call fcn.00402170
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x405138
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 0x40512d
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 0x405150
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
lea eax, [esp]
mov ecx, 0x418740
push ebx
push eax
xor ebx, ebx
call fcn.00402170
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4051c8
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 0x4051bd
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 0x4056c0
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 0x4188d0
push edi
call ebx
lea eax, [esp + 0xc]
push 0x40
push eax
push 0x10
call fcn.0040c130
add esp, 0xc
cmp eax, 1
jne 0x40571d
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, 0x4187f0
mov dword [esp + 0x64], 0x40
call fcn.00402170
push eax
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x405768
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 0x405780
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 0x4188d0
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, 0x4187f0
mov dword [esp + 0x64], 0x40
call fcn.00402170
push eax
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x4057fd
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 0x4059e0
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.00403290
pop edi
test eax, eax
push 0x104
je 0x405a14
lea eax, [esp + 4]
push eax
push 6
jmp 0x405a1b
lea ecx, [esp + 4]
push ecx
push 0
call fcn.00405ee0
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 0x405a5b
lea ecx, [esp]
push eax
push ecx
call fcn.00402cc0
add esp, 8
test eax, eax
jne 0x405a5b
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 0x405ee0
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
push esi
cmp eax, 0x64
push edi
ja case.0x405ef7.10
xor ecx, ecx
mov cl, byte [eax + 0x4060a8]
jmp dword [ecx*4 + 0x40607c]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.00406110
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.004022a0
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.004022a0
add esp, 8
mov ecx, 0x418940
jmp 0x406062
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.0040c0f0
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.0x405ef7.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, 0x418920
call fcn.00402170
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.0x405ef7.10
mov ecx, 0x418930
call fcn.00402170
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
push eax
push esi
call edi
mov ecx, 0x418920
call fcn.00402170
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.0x405ef7.10
mov ecx, 0x418920
call fcn.00402170
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 0x406110
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, 0x418908
mov dword [esp + 0x18], 1
mov dword [esp + 0x24], edi
call fcn.00402170
push eax
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x406165
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x406165
pop edi
mov eax, 1
pop esi
pop ecx
ret
push edi
push 0x10
call fcn.0040c0f0
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 0x4071e0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
mov esi, ecx
push edi
lea ecx, [esi + 8]
call fcn.00409c50
mov eax, dword [esp + 0x19c]
xor edx, edx
mov dword [esi + 0x328], eax
or eax, 0xffffffff
mov dword [esi + 0x320], eax
mov dword [esi + 0x324], eax
mov ecx, 0x41
xor eax, eax
lea edi, [esi + 0x21c]
mov dword [esi], 0x41012c
mov dword [esi + 4], edx
mov byte [esi + 0x14], dl
mov byte [esi + 0x118], dl
rep stosd dword es:[edi], eax
cmp dword [esi + 0x328], edx
je 0x40725d
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 0x4086d0
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 0x4087c9
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x4087c9
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 0x40875c
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.0040ad10
add esp, 8
lea ecx, [esp + 0x10]
push ebp
push ecx
call ebx
test eax, eax
jne 0x408751
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 0x4087c9
mov edx, dword [esp + 0x21c]
push 0
push 0xa
push esi
push edx
call fcn.004043d0
add esp, 0x10
test eax, eax
je 0x4087c9
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.0040ad10
add esp, 8
lea ecx, [esp + 0x114]
push ebp
push ecx
call ebx
test eax, eax
jne 0x4087c2
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 0x4087e0
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 dword [sym.imp.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 0x4088cb
push edi
mov ecx, 0x418a38
call fcn.00402170
mov edi, eax
lea edx, [esp + 0x14]
lea eax, [esp + 0xc]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, 0x418a28
call fcn.00402170
push eax
push edi
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
cmp eax, 2
pop edi
jne 0x4088ae
test ebx, ebx
je 0x4088a6
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, 0x418a38
mov dword [esp + 8], edx
call fcn.00402170
mov esi, eax
lea eax, [esp + 8]
push 4
push eax
push 3
mov ecx, 0x418a28
call fcn.00402170
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 0x4088cb
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 0x408b20
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40dfc0
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.004020e0
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.004020e0
mov esi, dword [esp + 0x5c]
mov ebx, 1
test esi, esi
mov byte [esp + 0x54], bl
je 0x408c77
mov eax, dword [esp + 0x60]
test eax, eax
je 0x408c77
dec eax
push edi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
call fcn.00402170
lea edx, [esp + 0xc]
mov edi, eax
push edx
lea eax, [esp + 0x14]
push esi
push eax
lea ecx, [esp + 0x28]
call fcn.00402170
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 0x408c80
call fcn.00402130
lea ecx, [esp + 0x28]
mov dword [esp + 0x54], 0xffffffff
call fcn.00402130
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.00402130
lea ecx, [esp + 0x28]
mov dword [esp + 0x54], 0xffffffff
call fcn.00402130
mov ecx, dword [esp + 0x4c]
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret
Function at 0x408e10
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40dffb
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.004020e0
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.00402170
push eax
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
cmp eax, ebx
jne 0x408fd5
lea ecx, [esp + 0x50]
push str.TENCENTSSPlus
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x408fd5
push esi
push str.stup.exe
lea ecx, [esp + 0x44]
call fcn.00402170
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.00402130
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.00402130
mov ecx, dword [esp + 0x154]
pop edi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x158
ret