joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10041a30
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.1004cae0
mov eax, dword [0x1006f184]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
test esi, esi
je 0x10041b35
cmp word [ebp + 0x14], 0
je 0x10041b35
mov edi, dword [ebp + 0x10]
test edi, edi
jle 0x10041b35
xor eax, eax
push 0x3ffe
push eax
lea ecx, [ebp - 0x4002]
push ecx
mov word [ebp - 0x4004], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x400c]
push edx
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x10041b35
cmp eax, 0x3fff
ja 0x10041b35
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x10041b35
lea edx, [ebp - 0x4010]
push edx
lea eax, [ebp - 0x4008]
push eax
push 0x10061dc8
lea ecx, [ebp - 0x4004]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10041b35
push edi
push 0
push esi
call sub.MSVCR100.dll_memset
mov ecx, dword [ebp - 0x4008]
movzx edx, word [ecx + 0xc]
movzx eax, word [ebp + 0x14]
push edx
movzx edx, word [ecx + 0xe]
push eax
push edx
movzx edx, word [ecx + 8]
push eax
push edx
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d_c_d_c_d_c_d
push 0xffffffffffffffff
push edi
push esi
call dword [sym.imp.MSVCR100.dll__snwprintf_s]
add esp, 0x38
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret
Function at 0x10041d00
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov esi, ecx
push 0
lea ebx, [esi + 0x30]
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jne 0x10041d25
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
push edi
push 0
push eax
mov dword [esi + 8], eax
call sub.MSVCR100.dll_memset
mov eax, dword [esi + 8]
add esp, 0x10
push eax
push edi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x10041d1c
lea ecx, [ebp - 0x34]
push ecx
mov ecx, esi
call fcn.10041b50
test eax, eax
je 0x10041d1c
mov eax, dword [ebp - 0x2c]
mov edx, eax
mov word [esi + 0xe], ax
mov eax, dword [ebp - 0x28]
shr edx, 0x10
mov ecx, eax
mov word [esi + 0x12], ax
mov eax, dword [ebp - 0x24]
shr ecx, 0x10
mov word [esi + 0xc], dx
mov edx, eax
mov word [esi + 0x10], cx
mov word [esi + 0x16], ax
mov eax, dword [ebp - 0x20]
mov ecx, eax
shr ecx, 0x10
mov word [esi + 0x18], cx
mov ecx, dword [ebp - 0x14]
shr edx, 0x10
mov word [esi + 0x14], dx
mov edx, dword [ebp - 0x1c]
mov word [esi + 0x1a], ax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x24], ecx
push 0x104
lea ecx, [esi + 0x238]
push ecx
mov dword [esi + 0x1c], edx
mov edx, dword [ebp - 0x10]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0xc]
push 0x1005c480
mov ecx, esi
mov dword [esi + 0x28], edx
mov dword [esi + 0x2c], eax
call fcn.10041be0
push 0x104
lea edx, [esi + 0x648]
push edx
push 0x1005c460
mov ecx, esi
call fcn.10041be0
push 0x104
lea eax, [esi + 0x440]
push eax
push 0x1005c448
mov ecx, esi
call fcn.10041be0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1006f184]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call sub.MSVCR100.dll_memset
push 0
push 1
push 0x103
lea edx, [ebp - 0x20c]
push edx
add esi, 4
push esi
call fcn.1004eed0
mov esi, eax
add esp, 0x20
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1004266e
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x1004266e
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret
Function at 0x10044f70
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
test ebx, ebx
je 0x10045030
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10044f87
sub eax, edx
sar eax, 1
je 0x10045030
cmp dword [ebp + 0xc], 0
je 0x10045009
push esi
lea esi, [edi + 0x2050]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
lea eax, [edi + 0x1004]
push 0x824
push eax
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push 4
push edi
push fcn.10044ca0
push 0
push 0
call dword [sym.imp.MSVCR100.dll__beginthreadex]
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov eax, 1
pop ebx
pop ebp
ret 8
push ebx
lea ecx, [edi + 0x1004]
push 0x824
push ecx
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
add esp, 0xc
push edi
call fcn.10044ca0
pop edi
mov eax, 1
pop ebx
pop ebp
ret 8
pop edi
xor eax, eax
pop ebx
pop ebp
ret 8

Function at 0x10045050
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1006f184]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10045159
mov eax, dword [ebp - 0x108]
cmp eax, 1
jne 0x100450be
cmp dword [ebp - 0x114], 4
jne 0x10045159
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x10045159
mov eax, dword [ebp - 0x114]
cmp eax, 5
jne 0x1004511f
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x100450ef
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x10045107
mov eax, 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x10045159
mov eax, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x10045159
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x10045141
mov eax, 5
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x10045159
mov eax, 6
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret
Function at 0x10045320
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1006f184]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
call fcn.1004fb70
test eax, eax
je 0x100453d3
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push 0x10
push eax
call fcn.100461b0
add esp, 8
test eax, eax
je 0x100453d3
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x18], ecx
mov ecx, 0x10072d90
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
call fcn.1003e5b0
push 0x10
lea edx, [ebp - 0x24]
push edx
push 3
push eax
mov ecx, 0x10072d80
call fcn.1003e5b0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
test esi, esi
je 0x100453bd
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [esi], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret 4

Function at 0x100453f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov ecx, 0x10072da0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 2
call fcn.1003e5b0
mov ecx, 0x10072d80
mov esi, eax
call fcn.1003e5b0
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
lea ecx, [ebp - 0xc]
push ecx
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov ax, word [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10045440
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1006f184]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10060a68]
mov edx, dword [0x10060a70]
push ebx
mov ebx, ecx
mov ecx, dword [0x10060a6c]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [0x10060a74]
mov dword [ebp - 0x10], ecx
push edi
mov ecx, 0x10072d90
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x10
call fcn.1003e5b0
mov ecx, 0x10072d80
mov edi, eax
call fcn.1003e5b0
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x1c]
push ecx
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x100454e7
test esi, esi
je 0x100454cf
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [esi], edx
mov edx, dword [ebp - 8]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp + 0xc], 0
je 0x10045508
push esi
mov ecx, ebx
call fcn.10045320
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret 8

Function at 0x100458e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1006f184]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call sub.MSVCR100.dll_memset
mov eax, 4
add esp, 0xc
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x214], eax
test esi, esi
je 0x10045983
push ebx
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.10045720
add esp, 0xc
test eax, eax
je 0x10045983
lea eax, [ebp - 0x214]
push eax
push esi
lea ecx, [ebp - 0x210]
push ecx
push edi
lea edx, [ebp - 0x20c]
push edx
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
neg eax
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret
Function at 0x100459a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1006f184]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call sub.MSVCR100.dll_memset
push esi
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.10045720
add esp, 0x18
test eax, eax
jne 0x100459ff
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push edi
lea ecx, [ebp - 0x20c]
push ecx
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
pop edi
xor ecx, ebp
inc eax
pop esi
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret

Function at 0x10045a30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1006f184]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call sub.MSVCR100.dll_memset
mov eax, 4
add esp, 0xc
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x214], eax
test esi, esi
je 0x10045ad7
mov eax, dword [ebp + 8]
push ebx
push 0x104
lea edx, [ebp - 0x20c]
push edx
push eax
call fcn.100457f0
add esp, 0x10
test eax, eax
je 0x10045ad7
lea ecx, [ebp - 0x214]
push ecx
push esi
lea edx, [ebp - 0x210]
push edx
push edi
lea eax, [ebp - 0x20c]
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
neg eax
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret

Function at 0x10045af0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1006f184]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call sub.MSVCR100.dll_memset
mov eax, dword [ebp + 0x14]
add esp, 0xc
lea edx, [eax + eax]
mov dword [ebp - 0x210], 1
mov dword [ebp - 0x214], edx
test esi, esi
je 0x10045b9c
test eax, eax
je 0x10045b9c
push ebx
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.10045720
add esp, 0xc
test eax, eax
je 0x10045b9c
lea ecx, [ebp - 0x214]
push ecx
push esi
lea edx, [ebp - 0x210]
push edx
push edi
lea eax, [ebp - 0x20c]
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
neg eax
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret
Function at 0x10045bb0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1006f184]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
test esi, esi
je 0x10045c3a
push ebx
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.10045720
add esp, 0xc
test eax, eax
je 0x10045c3a
mov eax, dword [ebp + 0x14]
push eax
push esi
push 3
push edi
lea ecx, [ebp - 0x20c]
push ecx
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
neg eax
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret

Function at 0x10045de0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1006f184]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call sub.MSVCR100.dll_memset
push ebx
lea edx, [ebp - 0x20c]
push 0x104
push edx
mov dword [ebp - 0x214], 3
mov dword [ebp - 0x210], 0
call fcn.10045720
add esp, 0x18
test eax, eax
jne 0x10045e5a
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x210]
push eax
push 0
lea ecx, [ebp - 0x214]
push ecx
push esi
lea edx, [ebp - 0x20c]
push edx
push SysReAllocString
call ebx
test eax, eax
jne 0x10045e47
mov eax, dword [ebp - 0x210]
push eax
mov ecx, edi
call fcn.10045d70
mov edi, dword [edi]
lea ecx, [ebp - 0x210]
push ecx
push edi
lea edx, [ebp - 0x214]
push edx
push esi
lea eax, [ebp - 0x20c]
push eax
push SysReAllocString
call ebx
mov ecx, dword [ebp - 4]
neg eax
pop edi
sbb eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret
Function at 0x10045ed0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x1006f184]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
push 0x7e
push eax
lea ecx, [ebp - 0x82]
push ecx
mov word [ebp - 0x84], ax
call sub.MSVCR100.dll_memset
mov edi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynW]
add esp, 0xc
push edi
push 0x10061cc4
push esi
call ebx
push 0x40
lea edx, [ebp - 0x84]
push edx
push 0x10
call fcn.1004d650
add esp, 0xc
cmp eax, 1
jne 0x10045f4f
push edi
lea eax, [ebp - 0x84]
push eax
push esi
call ebx
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret
mov ecx, 0x10072eb0
mov dword [ebp - 0x88], 0x80
call fcn.1003e5b0
lea ecx, [ebp - 0x88]
push ecx
lea edx, [ebp - 0x84]
push edx
lea ecx, [ebp - 0x8c]
push ecx
push str.Version
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x10045fae
push edi
lea edx, [ebp - 0x84]
push edx
push esi
call ebx
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret

Function at 0x10046280
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x1006f184]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x412]
push ecx
mov word [ebp - 0x414], ax
call sub.MSVCR100.dll_memset
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x20a]
push eax
mov word [ebp - 0x20c], dx
call sub.MSVCR100.dll_memset
push esi
push str.CLSID_sInprocServer32
lea ecx, [ebp - 0x414]
push 0x103
push ecx
mov dword [ebp - 0x41c], 0x208
call dword [sym.imp.MSVCR100.dll__snwprintf]
add esp, 0x28
lea edx, [ebp - 0x418]
push edx
lea eax, [ebp - 0x414]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
pop esi
test eax, eax
jne 0x10046347
lea ecx, [ebp - 0x41c]
push ecx
mov ecx, dword [ebp - 0x418]
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x420]
push eax
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10046357
mov edx, dword [ebp - 0x418]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x418]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10046370
mov ecx, dword [ebp - 4]
sub eax, edx
sar eax, 1
cmp eax, 4
setae al
xor ecx, ebp
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret
Function at 0x100464b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1006f184]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, 0x10072f50
xor bl, bl
call fcn.1003e5b0
lea ecx, [ebp - 0x210]
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1004654b
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x20a]
push eax
mov word [ebp - 0x20c], dx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x214]
push ecx
mov ecx, dword [ebp - 0x210]
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x218]
push eax
push 0
push esi
push ecx
mov dword [ebp - 0x214], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1004653e
mov bl, 1
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret

Function at 0x10046560
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1006f184]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, 0x10072f60
xor bl, bl
call fcn.1003e5b0
lea ecx, [ebp - 0x210]
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x100465fb
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x20a]
push eax
mov word [ebp - 0x20c], dx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x214]
push ecx
mov ecx, dword [ebp - 0x210]
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x218]
push eax
push 0
push esi
push ecx
mov dword [ebp - 0x214], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100465ee
mov bl, 1
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret
Function at 0x10047430
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10051c6d
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x1006f184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x238], ebx
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x23c], esi
mov word [esi], ax
push 0x208
lea ecx, [ebp - 0x218]
push ebx
push ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x238], 1
call sub.MSVCR100.dll_memset
movzx edx, byte [ebp + 0xc]
add esp, 0xc
neg edx
sbb edx, edx
push 1
and edx, 0xfffffff7
add edx, 0x23
push edx
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x10047585
xor ecx, ecx
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], cx
lea edx, [eax + 2]
jmp 0x100474f0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x100474f0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x234]
call fcn.10025ce0
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x234]
push eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.10024ec0
cmp dword [ebp - 0x220], 8
mov byte [ebp - 4], bl
jb 0x10047545
mov ecx, dword [ebp - 0x234]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, esi
cmp byte [ebp + 0xc], bl
je 0x10047555
push 0x13
push str.TencentDeskUpdate
jmp 0x1004755c
push 0x10
push str.TencentDesktop
call fcn.100338f0
push esi
call fcn.10046cb0
add esp, 4
test al, al
jne 0x10047577
push esi
call fcn.10046ec0
add esp, 4
push 0xa
push str.Global.db
mov ecx, esi
call fcn.100338f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret