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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x40c3cb
cmp word [esi], 0
je 0x40c3cb
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x40c3ca
cmp word [edi], 0
je 0x40c3ca
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
lea edx, [ebp - 0x414]
add esp, 0x18
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40c2f2
lea edx, [ebp - 0x20c]
mov eax, edi
sub edx, edi
jmp 0x40c310
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40c310
lea eax, [ebp - 0x414]
lea edx, [eax + 2]
jmp 0x40c330
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c330
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x416], 0x5c
lea eax, [ebp + eax*2 - 0x414]
jne 0x40c357
xor ecx, ecx
mov word [eax - 2], cx
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll__wcsicmp]
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x414]
push eax
call ebx
add esp, 8
test eax, eax
je 0x40c3c9
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.MSVCR100.dll_wcsrchr]
lea ecx, [ebp - 0x20c]
push ecx
call fcn.0040bb70
add esp, 4
test eax, eax
jne 0x40c39b
call edi
cmp eax, 2
jne 0x40c3c9
lea edx, [ebp - 0x20c]
push 0x5c
push edx
call esi
add esp, 8
test eax, eax
je 0x40c3c9
xor ecx, ecx
lea edx, [ebp - 0x20c]
mov word [eax], cx
push edx
lea eax, [ebp - 0x414]
push eax
call ebx
add esp, 8
test eax, eax
jne 0x40c381
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004b12f6
mov esp, ebp
pop ebp
ret 8
Function at 0x4103b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3921
mov eax, dword fs:[0]
push eax
sub esp, 0x35c
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x206
xor edi, edi
lea ecx, [ebp - 0x216]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x218], ax
call sub.MSVCR100.dll_memset
lea edx, [ebp - 0x218]
push 0x104
push edx
call fcn.004082b0
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0x110
lea ecx, [ebp - 0x360]
push edi
push ecx
mov dword [ebp - 0x364], 0x114
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x364]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [ebp - 0x360], 6
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], cx
lea edx, [eax + 2]
jae 0x4104e6
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x410480
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x234]
call fcn.00405660
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0x368], esp
push 0x4c7ec0
lea ecx, [ebp - 0x234]
push ecx
push eax
mov dword [ebp - 4], edi
call fcn.0040ca00
add esp, 0xc
mov ecx, ebx
call fcn.00410150
cmp dword [ebp - 0x220], 8
mov esi, eax
jb 0x4105ec
mov edx, dword [ebp - 0x234]
jmp 0x4105e3
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4104e6
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x234]
call fcn.00405660
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0x368], esp
push str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedStartMenu_
lea ecx, [ebp - 0x234]
push ecx
push eax
mov dword [ebp - 4], 1
call fcn.0040ca00
add esp, 0xc
mov ecx, ebx
call fcn.00410150
or eax, 0x80004005
cmp dword [ebp - 0x220], 8
mov esi, eax
mov dword [ebp - 4], 0xffffffff
jb 0x41055c
mov edx, dword [ebp - 0x234]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
lea eax, [ebp - 0x218]
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], edi
mov word [ebp - 0x250], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x410582
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x250]
call fcn.00405660
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0x368], esp
push str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedTaskBar_
lea ecx, [ebp - 0x250]
push ecx
push eax
mov dword [ebp - 4], 2
call fcn.0040ca00
add esp, 0xc
mov ecx, ebx
call fcn.00410150
or esi, eax
cmp dword [ebp - 0x23c], 8
jb 0x4105ec
mov edx, dword [ebp - 0x250]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret 4
Function at 0x4108a0
Capabilities:
Access peb ldr_data
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b39ba
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, 1
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x10], eax
mov ecx, 7
xor eax, eax
xor edx, edx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x24], eax
mov dword [ebp - 0x128], esi
mov word [esi + 0x14], dx
mov dword [esi + 0x44], ecx
xor ecx, ecx
mov dword [esi + 0x40], eax
mov dword [ebp - 4], eax
mov word [esi + 0x30], cx
or ecx, 0xffffffff
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], ecx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x58], ecx
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], eax
lea edx, [ebp - 0x124]
push edx
mov byte [ebp - 4], 2
mov dword [ebp - 0x124], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 2
jne 0x410961
cmp dword [ebp - 0x120], 6
jne 0x410961
cmp dword [ebp - 0x11c], 2
jne 0x410961
mov ecx, esi
call fcn.00410610
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret 4
Function at 0x411bd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea ebx, [ecx + 0x34]
push edi
push ebx
mov dword [ebp - 4], ecx
call fcn.004344c0
push 0x5c
push ebx
call dword [sym.imp.MSVCR100.dll_wcsrchr]
add esp, 0xc
xor ecx, ecx
mov word [eax], cx
lea edi, [ebx - 2]
jmp 0x411c00
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x411c00
mov ecx, 0xa
mov esi, str.utilityinstall.ini
rep movsd dword es:[edi], dword [esi]
push ebx
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [ebp - 4]
xor edx, edx
cmp eax, 0xffffffff
setne dl
pop edi
pop esi
pop ebx
mov eax, edx
mov dword [ecx + 0x23c], eax
mov esp, ebp
pop ebp
ret
Function at 0x4147b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b402b
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], esi
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x124], esi
push 0xff
lea ecx, [ebp - 0x113]
push esi
push ecx
mov dword [ebp - 4], esi
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x120], esi
mov byte [ebp - 0x114], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [ebp - 0x11c], 0x100
mov byte [ebp - 4], 1
cmp dword [ebp + 0x14], esi
jne 0x414884
call fcn.00433290
push 1
push ebx
push eax
lea ecx, [ebp - 0x12c]
call fcn.00412570
test eax, eax
jne 0x414884
lea edx, [ebp - 0x11c]
push edx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x120]
push ecx
push esi
mov esi, dword [ebp - 0x12c]
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4148cb
xor esi, esi
push 1
push ebx
push 0x80000002
lea ecx, [ebp - 0x12c]
call fcn.00412570
test eax, eax
jne 0x414947
lea edx, [ebp - 0x11c]
push edx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x120]
push ecx
push esi
mov esi, dword [ebp - 0x12c]
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41494d
mov eax, dword [ebp - 0x120]
cmp eax, 4
jne 0x414907
cmp dword [ebp - 0x11c], eax
jne 0x414938
mov edx, dword [ebp - 0x130]
push edx
call dword [sym.imp.MSVCR100.dll__wtoi]
xor ecx, ecx
add esp, 4
cmp eax, dword [ebp - 0x114]
sete cl
mov dword [ebp - 0x118], ecx
jmp 0x414938
cmp eax, 1
je 0x414916
cmp eax, 7
je 0x414916
cmp eax, 2
jne 0x414938
mov eax, dword [ebp - 0x130]
lea edx, [ebp - 0x114]
push edx
push eax
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x118], eax
test esi, esi
je 0x414958
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
jmp 0x41494d
mov esi, dword [ebp - 0x12c]
test esi, esi
je 0x414958
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret
Function at 0x416f10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push esi
push str.ksaddndr.dll
call fcn.00446460
add esp, 8
call fcn.00488db0
test eax, eax
jne 0x417003
call fcn.0043c7f0
test eax, eax
jne 0x417003
push str.msaddndr.dll
call fcn.00446210
add esp, 4
test eax, eax
js 0x416f6e
push esi
push str.msaddndr.dll
call fcn.00433400
add esp, 8
test esi, esi
jne 0x416ff2
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
push esi
push 0x2c
lea edx, [ebp - 0x20c]
push edx
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x416ff2
push edi
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x416fb3
mov ecx, 0xb
mov esi, str.Designermsaddndr.dll
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x20c]
push eax
movsw word es:[edi], word [esi]
call fcn.00433640
add esp, 4
pop edi
test eax, eax
jne 0x416ff2
lea ecx, [ebp - 0x20c]
push 1
push ecx
call fcn.00433400
add esp, 8
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.004b12f6
mov esp, ebp
pop ebp
ret
Function at 0x417020
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00488db0
test eax, eax
jne 0x41720d
call fcn.0043c7f0
test eax, eax
jne 0x41720d
push str.mscomctl.ocx
call fcn.00446210
add esp, 4
test eax, eax
js 0x41720d
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
push 0x206
mov dword [ebp - 0x418], 1
push ebx
cmp esi, ebx
je 0x417107
lea ecx, [ebp - 0x20a]
xor eax, eax
push ecx
mov word [ebp - 0x20c], ax
call sub.MSVCR100.dll_memset
lea edx, [ebp - 0x20c]
push edx
call fcn.00489850
push esi
push str.mscomctl.ocx
mov edi, eax
call fcn.00433400
add esp, 0x18
test eax, eax
js 0x4171f6
mov dword [ebp - 0x418], ebx
call fcn.00489ab0
lea eax, [ebp - 0x20c]
push eax
call fcn.00489050
add esp, 4
test eax, eax
jne 0x4171f6
cmp edi, ebx
jl 0x4171f6
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004898f0
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x412]
xor edx, edx
push eax
mov word [ebp - 0x414], dx
call sub.MSVCR100.dll_memset
lea ecx, [ebp - 0x414]
push ecx
call fcn.004899a0
mov esi, eax
call fcn.00489a40
push ebx
push str.mscomctl.ocx
call fcn.00433400
add esp, 0x18
test eax, eax
js 0x417147
mov dword [ebp - 0x418], ebx
cmp esi, ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
jl 0x417186
lea edx, [ebp - 0x414]
push edx
call ebx
test eax, eax
je 0x417186
lea eax, [ebp - 0x414]
push 1
push eax
call fcn.00433400
mov eax, dword [ebp - 0x418]
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x20a]
push edx
mov word [ebp - 0x20c], cx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4171c0
mov ecx, 7
mov esi, str.MSCOMCTL.OCX
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x20c]
push ecx
call ebx
test eax, eax
je 0x4171f6
lea edx, [ebp - 0x20c]
push 1
push edx
call fcn.00433400
add esp, 8
mov eax, dword [ebp - 0x418]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.004b12f6
mov esp, ebp
pop ebp
ret
Function at 0x417550
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x417566
push 0x80004005
call fcn.00417330
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push edi
push esi
lea eax, [ebp + 0x10]
push eax
mov eax, dword [ecx]
push 0
push edx
push eax
mov dword [ebp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
je 0x4175cb
mov ecx, dword [edi]
test ecx, ecx
je 0x4175c6
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4175ee
cmp edx, 2
jbe 0x4175d1
cmp edx, 7
jne 0x4175ee
test cl, 1
jne 0x4175c1
shr ecx, 1
cmp ecx, 1
jb 0x4175c1
cmp word [esi + ecx*2 - 2], 0
jne 0x4175c1
cmp ecx, 1
jbe 0x4175cb
cmp word [esi + ecx*2 - 4], 0
je 0x4175cb
mov eax, 0xd
xor ecx, ecx
mov word [esi], cx
pop edi
pop esi
pop ebp
ret 0xc
test cl, 1
jne 0x4175e0
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x4175cb
xor edx, edx
pop edi
mov word [esi], dx
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc

Function at 0x417600
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
test esi, esi
je 0x41761f
cmp dword [edi], 2
jae 0x41761f
pop edi
mov eax, 0x7a
pop esi
pop ebp
ret 0xc
mov eax, dword [edi]
add eax, eax
lea edx, [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push esi
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0x10]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x417689
cmp dword [ebp + 0x10], 7
je 0x417659
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
test esi, esi
je 0x417683
test cl, 1
jne 0x41764e
mov eax, ecx
shr eax, 1
cmp eax, 1
jb 0x41764e
cmp word [esi + eax*2 - 2], 0
jne 0x41764e
cmp eax, 1
jbe 0x417683
cmp word [esi + eax*2 - 4], 0
jne 0x41764e
shr ecx, 1
mov dword [edi], ecx
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x419120
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x5603e8]
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
add esp, 0x18
push 3
push 0x104
lea ecx, [ebp - 0x414]
push ecx
push 0
push 1
call fcn.0043cd90
test eax, eax
js 0x419205
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [ebp + eax - 0x414]
mov word [ebp + eax - 0x20c], cx
add eax, 2
test cx, cx
jne 0x419190
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4191b1
sub eax, edx
sar eax, 1
mov edx, 0x104
sub edx, eax
push edx
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.MSVCR100.dll_wcsncat]
add esp, 0xc
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 0x80004005
pop esi
call fcn.004b12f6
mov esp, ebp
pop ebp
ret 4

Function at 0x419460
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
push esi
push edi
lea edx, [ebp + 8]
push edx
xor esi, esi
lea edx, [ebp - 4]
push edx
push esi
or eax, 0x2001f
push eax
mov eax, dword [ebp + 8]
push esi
push esi
push esi
push eax
push ecx
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x419494
mov esi, dword [ebp - 4]
mov edi, eax
test eax, eax
jne 0x4194c4
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x4194a6
lea edi, [eax + 0xd]
jmp 0x4194c4
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebp + 0x10]
lea ecx, [eax + eax + 2]
push ecx
push edi
push 1
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test esi, esi
je 0x4194cf
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4194e0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
mov edx, dword [edi]
or ecx, 0x2001f
push ecx
xor esi, esi
push eax
push edx
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x208], esi
call fcn.00412570
mov ebx, eax
cmp ebx, esi
je 0x41955a
mov eax, dword [ebp - 0x210]
cmp eax, esi
je 0x419545
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x210]
push esi
push esi
push esi
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x204]
push edx
push esi
push eax
mov dword [ebp - 0x214], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4195dc
mov edi, edi
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x210]
call fcn.004194e0
mov ebx, eax
cmp ebx, esi
jne 0x419534
lea edx, [ebp - 0x220]
push edx
mov edx, dword [ebp - 0x210]
push esi
push esi
push esi
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x204]
push ecx
push esi
push edx
mov dword [ebp - 0x214], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x419590
mov eax, dword [ebp - 0x210]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x4195f5
push eax
call ebx
mov dword [ebp - 0x210], esi
mov eax, dword [ebp - 0x218]
push eax
mov ecx, edi
mov dword [ebp - 0x20c], esi
call fcn.00417430
mov edi, eax
mov eax, dword [ebp - 0x210]
cmp eax, esi
je 0x419618
push eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b12f6
mov esp, ebp
pop ebp
ret 4
Function at 0x41a040
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b499b
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], esi
push 0x206
lea ecx, [ebp - 0x216]
xor eax, eax
push esi
push ecx
mov dword [ebp - 4], esi
mov word [ebp - 0x218], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
jmp 0x41a0b0
movzx ecx, word [eax + str.CLSID_]
mov word [ebp + eax - 0x218], cx
add eax, 2
cmp cx, si
jne 0x41a0b0
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x41a0d0
sub eax, edx
sar eax, 1
mov edx, 0x104
sub edx, eax
push edx
lea eax, [ebp - 0x218]
push edi
push eax
call dword [sym.imp.MSVCR100.dll_wcsncat]
add esp, 0xc
cmp dword [ebp + 8], esi
je 0x41a1a2
lea ecx, [ebp - 0x22c]
push ecx
push 1
push esi
lea edx, [ebp - 0x218]
push edx
push esi
mov dword [ebp - 0x22c], esi
call fcn.0043b220
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41a1c3
push esi
push esi
push 2
push esi
push esi
push ebx
push 0x80000002
lea ecx, [ebp - 0x228]
call fcn.004174b0
test eax, eax
jne 0x41a1b2
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp edi, esi
mov esi, dword [ebp - 0x228]
je 0x41a174
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
push str.AlternateCLSID
push esi
call ebx
push 4
lea ecx, [ebp - 0x21c]
push ecx
push 4
push 0
push str.Compatibility_Flags
push esi
mov dword [ebp - 0x21c], 0x400
call ebx
test esi, esi
je 0x41a19e
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x41a1c8
push ebx
push 0x80000002
call fcn.00435510
add esp, 8
jmp 0x41a1c3
mov eax, dword [ebp - 0x228]
cmp eax, esi
je 0x41a1c3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret