joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a074
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x41a087
push 0x80004005
call fcn.004016fb
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x41a08e
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x41a14f
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
lea edx, [ebp - 0x214]
push edx
push 0x2001f
mov eax, ecx
mov ecx, dword [ebp + 8]
xor esi, esi
push esi
mov dword [ebp - 0x220], eax
mov eax, dword [eax]
push ecx
push eax
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x214], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
cmp edi, esi
jne 0x41a26c
xor eax, eax
cmp dword [ebp - 0x210], esi
je 0x41a1bd
push dword [ebp - 0x210]
call ebx
cmp eax, esi
mov ecx, dword [ebp - 0x214]
mov edi, eax
mov dword [ebp - 0x210], ecx
jne 0x41a26c
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push ecx
jmp 0x41a230
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x210]
call fcn.0041a14f
cmp eax, esi
mov dword [ebp - 0x214], eax
jne 0x41a28f
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x210]
mov dword [ebp - 0x218], pe_nt_image_headers32
call edi
test eax, eax
je 0x41a1f5
cmp dword [ebp - 0x210], esi
je 0x41a256
push dword [ebp - 0x210]
call ebx
mov dword [ebp - 0x210], esi
push dword [ebp - 0x21c]
mov eax, dword [ebp - 0x220]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp dword [ebp - 0x210], esi
je 0x41a27c
push dword [ebp - 0x210]
call ebx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00495616
leave
ret 4
cmp dword [ebp - 0x210], esi
je 0x41a29f
push dword [ebp - 0x210]
call ebx
mov eax, dword [ebp - 0x214]
jmp 0x41a27e
Function at 0x41a6f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor edi, edi
push edi
push str.SOFTWAREkingsoftAntivirus
push reloc.OLEAUT32.dll_SysReAllocString
xor ebx, ebx
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41a779
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push edi
push str.ProgramPath
push dword [ebp - 4]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], 0x204
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41a779
cmp dword [ebp - 8], 1
jne 0x41a779
cmp dword [ebp - 0xc], 6
jb 0x41a779
push esi
call dword [sym.imp.MSVCR80.dll_wcslen]
movzx eax, word [esi + eax*2 - 2]
cmp ax, 0x5c
pop ecx
je 0x41a776
cmp ax, 0x2f
je 0x41a776
push 0x4ab2c0
push esi
call dword [sym.imp.MSVCR80.dll_wcscat]
pop ecx
pop ecx
xor ebx, ebx
inc ebx
cmp dword [ebp - 4], edi
je 0x41a787
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop ebx
leave
ret

Function at 0x41af93
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [edi + 0x48]
call fcn.00442bfa
mov ebx, dword [ebp + 0x14]
mov eax, esi
call fcn.0041d389
lea esi, [edi + 0x28]
mov dword [ebp + 0x14], esi
call fcn.0041d34a
mov ebx, dword [ebp + 0x18]
mov eax, esi
call fcn.0041d1fc
lea ebx, [edi + 0x38]
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0xb4
mov dword [ebp - 0xc], 0x62
lea esi, [ebp - 0x18]
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor edi, edi
cmp dword [0x4dc3c0], eax
mov dword [ebp - 8], ebx
jne 0x41affa
mov dword [0x4dc3c0], eax
mov esi, dword [ebp + 8]
lea eax, [esi + 0x20]
push eax
push 0x4dc390
call fcn.00407b9b
movzx eax, ax
push eax
push edi
mov edi, dword [ebp + 0x10]
push 0x88
push SysReAllocStringLen
push 0
push ebx
push edi
mov ebx, esi
call fcn.0041f0f2
mov dword [esi + 0x24], edi
mov edi, dword [ebp + 0x18]
mov eax, edi
mov dword [esi + 0x58], 0xffffff
call fcn.0044797e
mov dword [esi + 0x64], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x6c], eax
mov eax, edi
call fcn.0044797e
test eax, eax
jbe 0x41b091
xor esi, esi
call fcn.00465992
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
dec eax
dec eax
imul eax, eax, 0xc
mov esi, ebx
add dword [esi + 0x40], eax
mov eax, dword [ebp + 0x14]
mov edi, dword [esi + 0x3c]
call fcn.0044797e
imul eax, dword [esi + 0x70]
push 0x40
add eax, edi
push eax
push dword [esi + 0x40]
mov dword [esi + 0x44], eax
mov eax, dword [ebp - 8]
push edi
push dword [eax]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret 0x14
Function at 0x41b657
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 0
push esi
push edi
mov esi, ecx
jne 0x41b6ba
cmp dword [ebp + 0xc], 0xf
jne 0x41b679
call fcn.0041b6c2
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
xor eax, eax
inc eax
jmp 0x41b6bc
xor edi, edi
inc edi
cmp dword [ebp + 0xc], edi
jne 0x41b68a
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
mov eax, edi
jmp 0x41b6bc
cmp dword [ebp + 0xc], 0x113
jne 0x41b6ba
mov eax, 0x400
cmp dword [ebp + 0x10], eax
jne 0x41b681
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
cmp dword [esi + 0x24], 0
jne 0x41b681
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x41b681
xor eax, eax
pop edi
pop esi
pop ebp
ret 0x18
Function at 0x41f948
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [0x4e05ac]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x20], esi
je 0x41f96e
mov eax, dword [eax + 4]
mov dword [esp + 0x10], eax
jmp 0x41f972
mov dword [esp + 0x10], esi
cmp dword [esp + 0x10], esi
jne 0x41f986
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, esi
mov dword [esp + 0x10], eax
je 0x41f9b3
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [esp + 0x10], eax
je 0x41f9b3
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41f9b3
push esi
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x20], 1
push dword [esp + 0x10]
mov ebx, edi
mov dword [edi + 0x320], esi
call fcn.0041fb21
mov edx, eax
cmp edx, esi
mov dword [esp + 0x18], edx
jne 0x41f9e1
push 1
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x41face
call fcn.00407b88
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
lea ebx, [edi + 4]
push ebx
call fcn.00407a3b
cmp dword [edi + 0x314], esi
je 0x41fa71
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
push esi
push esi
push 0x2001
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x43
push esi
push esi
push esi
push esi
push esi
push dword [esp + 0x30]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x14]
je 0x41fa51
push 1
push eax
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x14]
je 0x41fa71
push esi
push eax
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
call fcn.00404288
push 0x97
push esi
push esi
push esi
push esi
push esi
push dword [ebx]
mov dword [edi + 0x320], esi
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [esp + 0x20], esi
je 0x41faba
push 1
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [esp + 0x10], esi
je 0x41faba
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebx]
jne 0x41faba
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esp + 0x24]
call fcn.00407b88
push dword [ebx]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [edi + 0x28]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x420d93
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp + 0x19c], eax
mov eax, dword [ebp + 0x1a8]
push ebx
push edi
xor edi, edi
push 0x206
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x6a]
push edi
push eax
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x70], edi
mov word [ebp - 0x6c], di
call sub.MSVCR80.dll_memset
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
add esp, 0xc
push 0x104
lea eax, [ebp - 0x6c]
push eax
push 0x400000
call ebx
test eax, eax
je 0x420ef8
push esi
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x6c]
push eax
call esi
lea eax, [ebp - 0x6c]
push eax
call fcn.00422a7e
push edi
mov edi, dword [sym.imp.MSVCR80.dll__waccess]
lea eax, [ebp - 0x6c]
push eax
call edi
add esp, 0xc
test eax, eax
jne 0x420e35
mov dword [ebp - 0x70], 1
jmp 0x420ee8
push 0x104
lea eax, [ebp - 0x6c]
push eax
push 0
call ebx
test eax, eax
je 0x420ef7
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x6c]
push eax
call esi
lea eax, [ebp - 0x6c]
push eax
call fcn.00422a7e
lea eax, [ebp - 0x6c]
push 0
push eax
call edi
add esp, 0xc
test eax, eax
je 0x420e29
lea eax, [ebp - 0x74]
push eax
push str.SOFTWAREkingsoftKISCommon
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x420ef7
and dword [ebp - 0x78], eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x78]
push eax
push 0
push str.ProgramPath
push dword [ebp - 0x74]
mov dword [ebp - 0x7c], 0x206
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x420ef7
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x78], ebx
jne 0x420ef7
mov eax, dword [ebp - 0x7c]
shr eax, 1
and word [ebp + eax*2 - 0x6c], 0
lea eax, [ebp - 0x6c]
push eax
call esi
lea eax, [ebp - 0x6c]
push eax
call fcn.00422a7e
lea eax, [ebp - 0x6c]
push 0
push eax
call edi
add esp, 0xc
test eax, eax
jne 0x420ef7
mov dword [ebp - 0x70], ebx
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.MSVCR80.dll_wcscpy]
pop ecx
pop ecx
pop esi
cmp dword [ebp - 0x74], 0
pop edi
pop ebx
je 0x420f09
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x19c]
mov eax, dword [ebp - 0x70]
xor ecx, ebp
call fcn.00495616
add ebp, 0x1a0
leave
ret 4
Function at 0x421307
Capabilities:
Read .ini file

Disassembly:
push 0x10
mov eax, 0x4a5e5d
call fcn.0049cb58
xor edi, edi
lea ebx, [ebp - 0x18]
mov dword [ebp - 0x14], edi
call fcn.004211ed
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], edi
mov esi, str.TryNo
je 0x421350
push str.ressrcchsuplive.svr
mov eax, ebx
push eax
call fcn.0040917f
push dword [ebp - 0x18]
push edi
push esi
push str.common
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], edi
jne 0x42139b
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push edi
push str.SOFTWAREKingsoftKISCommonUpdate
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42137f
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
call fcn.00401744
cmp dword [ebp - 0x10], edi
je 0x42139b
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00401291
mov eax, esi
call fcn.0049cc30
ret

Function at 0x4213c9
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x120
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0xa8]
push edi
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa8], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
cmp eax, edi
jne 0x421428
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa8], 0x114
call esi
cmp eax, edi
je 0x42147c
mov eax, dword [ebp - 0x98]
dec eax
je 0x421479
dec eax
jne 0x42147c
cmp dword [ebp - 0xa4], 5
jne 0x42144b
cmp dword [ebp - 0xa0], 1
jne 0x421479
xor edi, edi
inc edi
jmp 0x42147c
cmp dword [ebp - 0xa4], 6
jne 0x421479
cmp dword [ebp - 0xa0], 1
jne 0x421467
cmp byte [ebp + 0x72], 1
jne 0x421479
push 3
jmp 0x42147b
cmp dword [ebp - 0xa0], edi
jne 0x421479
cmp byte [ebp + 0x72], 1
jne 0x421479
push 2
jmp 0x42147b
push 4
pop edi
mov ecx, dword [ebp + 0x74]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00495616
add ebp, 0x78
leave
ret
Function at 0x421fce
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 1
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
xor esi, esi
push reloc.OLEAUT32.dll_SysReAllocString
lea eax, [ebp - 0x218]
mov dword [ebp - method.CKANRegisterKey.virtual_0], vtable.CKANRegisterKey.0
mov dword [ebp - 0x214], esi
call fcn.00481d2a
test eax, eax
je 0x422057
push 0x206
lea eax, [ebp - 0x20e]
push esi
push eax
mov word [ebp - 0x210], si
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push str._QQPCTray
lea eax, [ebp - 0x218]
push eax
mov ebx, 0x104
call fcn.00481e02
test eax, eax
je 0x422057
cmp word [ebp - 0x210], si
je 0x422057
inc esi
lea ecx, [ebp - 0x218]
call fcn.00481d1a
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00495616
leave
ret

Function at 0x422072
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 1
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
xor esi, esi
push reloc.OLEAUT32.dll_SysReAllocString
lea eax, [ebp - 0x218]
mov dword [ebp - method.CKANRegisterKey.virtual_0], vtable.CKANRegisterKey.0
mov dword [ebp - 0x214], esi
call fcn.00481d2a
test eax, eax
je 0x4220fb
push 0x206
lea eax, [ebp - 0x20e]
push esi
push eax
mov word [ebp - 0x210], si
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push str.KSafeTray
lea eax, [ebp - 0x218]
push eax
mov ebx, 0x104
call fcn.00481e02
test eax, eax
je 0x4220fb
cmp word [ebp - 0x210], si
je 0x4220fb
inc esi
lea ecx, [ebp - 0x218]
call fcn.00481d1a
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00495616
leave
ret
Function at 0x42285f
Capabilities:
Get system information on windows

Disassembly:
push 0x38
mov eax, 0x4a3bcd
call fcn.0049cb58
xor edi, edi
mov dword [ebp - 0x18], edi
mov esi, dword [ebp + 8]
call fcn.00408131
xor esi, esi
lea eax, [ebp - 0x40]
mov dword [ebp - 4], edi
inc esi
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push dword [ebp + 8]
push edi
lea edi, [ebp - 0x10]
call fcn.0047c2d4
cmp dword [ebp - 0x2c], esi
pop ecx
pop ecx
mov ebx, esi
jle 0x42290a
mov eax, dword [0x4dff94]
mov ecx, 0x4dff94
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push ebx
lea edi, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.0047c2d4
fild dword [ebp - 0x10]
lea eax, [ebp - 0x14]
fdiv qword [0x4bfb90]
fstp dword [ebp - 0x1c]
fld dword [ebp - 0x1c]
fstp qword [esp]
push str.__0.2fGHz
push eax
call fcn.00408085
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
add esp, 0x10
push dword [edi - 0xc]
push edi
call fcn.00414cdb
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
call fcn.00401291
inc ebx
cmp ebx, dword [ebp - 0x2c]
jl 0x4228a3
mov eax, dword [ebp + 8]
call fcn.0049cc30
ret
Function at 0x422913
Capabilities:
Set current directory

Disassembly:
push 8
mov eax, 0x4a39ef
call fcn.0049cb58
xor esi, esi
cmp dword [ebx + 4], esi
je 0x42292f
xor eax, eax
inc eax
call fcn.0049cc30
ret
mov eax, dword [0x4dff94]
mov ecx, 0x4dff94
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], esi
call fcn.00420f84
pop ecx
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00408098
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00401291
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], esi
jne 0x4229d9
push 0x104
push 0x10e
mov esi, edi
call fcn.004015fc
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
cmp dword [ebp - 0x10], eax
je 0x4229a0
push dword [ebp - 0x10]
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
lea edx, [ebp - 0x10]
call fcn.00401381
push 0x5c
lea esi, [ebp - 0x10]
call fcn.0042086d
mov ecx, eax
inc ecx
lea edx, [ebp - 0x14]
mov eax, esi
call fcn.00414d80
mov edi, esi
mov byte [ebp - 4], 2
call fcn.00408098
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00401291
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov edi, str.kvipcore.dll
lea eax, [ebp - 0x14]
push edi
push eax
lea ecx, [ebp - 0x10]
call fcn.00407fbe
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop ecx
pop ecx
push dword [eax]
call esi
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00401291
cmp dword [ebx + 4], 0
jne 0x422a1e
push edi
call esi
test eax, eax
mov dword [ebx + 4], eax
je 0x422a73
push str.KVipGetClassObject
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x422a73
lea esi, [ebx + 8]
and dword [esi], 0
push esi
push 0x4b5408
call eax
test eax, eax
jl 0x422a73
mov esi, dword [esi]
test esi, esi
je 0x422a73
push dword [0x4e0364]
mov eax, dword [esi]
push dword [0x4e0360]
push esi
call dword [eax + 0xc]
test eax, eax
jl 0x422a73
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401291
mov eax, esi
jmp 0x422929
mov esi, ebx
call fcn.0044cb3e
xor esi, esi
jmp 0x422a61

Function at 0x422f4d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [eax + 0x34], esi
jne 0x422f62
mov eax, 0x8200000b
jmp 0x422fd3
cmp dword [eax + 0x38], 8
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0x208
mov dword [ebp - 4], esi
jb 0x422f7e
mov eax, dword [eax + 0x24]
jmp 0x422f81
add eax, 0x24
lea ecx, [ebp - 4]
push ecx
push 0x20019
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x422fd3
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
je 0x422fc5
mov eax, edi
jmp 0x422fd2
push 4
push dword [ebp + 8]
call dword [sym.imp.MSVCR80.dll__waccess]
pop ecx
pop ecx
pop edi
pop esi
leave
ret 4
Function at 0x422fd8
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp + 0x19c], eax
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x34], esi
jne 0x423008
mov eax, 0x8200000b
jmp 0x4230d1
or dword [ebp - 0x74], 0xffffffff
push 0x206
lea eax, [ebp - 0x6a]
push esi
push eax
mov dword [ebp - 0x70], esi
mov word [ebp - 0x6c], si
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp ebx, esi
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x80], 0x208
mov dword [ebp - 0x78], esi
je 0x4230ce
cmp dword [edi + 0x38], 8
jb 0x423049
mov edi, dword [edi + 0x24]
jmp 0x42304c
add edi, 0x24
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x4230d1
cmp dword [ebp - 0x78], 2
jne 0x4230a4
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x7c]
push eax
push esi
push esi
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4230a4
lea eax, [ebp - 0x6c]
push eax
push ebx
call dword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x4230a4
mov dword [ebp - 0x74], esi
jmp 0x4230c0
push ebx
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
add eax, eax
push eax
push ebx
push 1
push esi
push esi
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x70], esi
je 0x4230ce
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp + 0x19c]
pop edi
xor ecx, ebp
pop esi
call fcn.00495616
add ebp, 0x1a0
leave
ret

Function at 0x424b49
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
mov dword [esi], vtable.KDownloadToolUpdateTipExe.0
je 0x424b81
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x424b74
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 4], 0
test byte [esp + 8], 1
mov dword [esi], vtable.IExecute.0
je 0x424b95
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
pop esi
ret 4