joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bfee2
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
push esi
lea ecx, [ebp - 0xc]
call fcn.004269a9
push 1
push esi
push 1
push dword [ebx + 4]
lea ecx, [ebp - 0x24]
call fcn.00419f27
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x43c
push dword [ebx + 4]
call edi
push esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, 0x4e5
push esi
push dword [ebx + 4]
call edi
push 0
push 0
push esi
push dword [ebx + 4]
lea ecx, [ebx + 0x20]
mov dword [ebx + 0x44], eax
call fcn.004b523a
push 0x52b458
lea eax, [ebx + 0x94]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00413428
add esp, 0xc
mov esi, dword [eax]
push 0x40e
push dword [ebx + 4]
call edi
push esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.004042e9
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.004042e9
mov edx, dword [ebp - 8]
pop edi
pop esi
pop ebx
test edx, edx
je 0x4bff93
push dword [ebp - 0xc]
mov ecx, dword [edx]
push edx
call dword [ecx + 0x14]
xor eax, eax
inc eax
leave
ret 8

Function at 0x4c0168
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x56afe8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor esi, esi
lea eax, [ebp - 0x20c]
push esi
push eax
mov edi, ecx
call sub.msvcrt.dll_memset
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
add esp, 0xc
push 0x40d
push dword [edi + 4]
call ebx
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x543574
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4c0218
push esi
push dword [edi + 4]
mov dword [edi + 0x64], 1
call dword [sym.imp.USER32.dll_KillTimer]
push 0x535830
lea eax, [edi + 0x94]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00413428
add esp, 0xc
mov esi, dword [eax]
push 0x40d
push dword [edi + 4]
call ebx
push esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp - 0x210]
jmp 0x4c0262
mov dword [edi + 0x64], esi
cmp dword [edi + 0x5c], esi
jne 0x4c022d
push esi
push 0x64
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
push 0x543574
lea eax, [edi + 0x94]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.00413428
add esp, 0xc
mov esi, dword [eax]
push 0x40d
push dword [edi + 4]
call ebx
push esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp - 0x214]
lea ecx, [ecx - 0x10]
call fcn.004042e9
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00522d04
leave
ret
Function at 0x4c0bc4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.00522d80
mov eax, dword [0x56afe8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x2004]
push edi
mov edi, dword [ebp + 0xc]
push 0x2000
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x200c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x4c0c83
cmp eax, 0x1fff
ja 0x4c0c83
lea ecx, [ebp - 0x2004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4c0c83
lea eax, [ebp - 0x2010]
push eax
lea eax, [ebp - 0x2008]
push eax
push 0x528004
lea eax, [ebp - 0x2004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4c0c83
push dword [ebp + 0x10]
push 0
push edi
call sub.msvcrt.dll_memset
mov ecx, dword [ebp - 0x2008]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
push dword [ebp + 0x10]
push edi
call fcn.0044b53c
xor eax, eax
add esp, 0x28
inc eax
jmp 0x4c0c85
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00522d04
leave
ret

Function at 0x4c0c93
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 2
xor esi, esi
push esi
push dword [ebp + 8]
mov edi, esi
call dword [0x527b90]
mov ebx, eax
test ebx, ebx
je 0x4c0d1b
push 0x10
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 4], eax
test eax, eax
je 0x4c0d14
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 4]
mov dword [ebp + 8], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x4c0d14
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4c0d0b
push dword [ebp + 8]
call sub.msvcrt.dll_malloc
mov edi, eax
pop ecx
test edi, edi
je 0x4c0d0b
push dword [ebp + 8]
push dword [ebp - 4]
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x4c0d59
lea eax, [ebp - 8]
mov dword [ebp + 8], esi
push eax
lea eax, [ebp + 8]
mov dword [ebp - 8], esi
push eax
push 0x528004
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4c0d52
mov edx, dword [ebp + 8]
xor esi, esi
mov eax, dword [ebp + 0xc]
inc esi
mov ecx, dword [edx + 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [edx + 0xc]
mov dword [eax], ecx
push edi
call sub.msvcrt.dll_free
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4c1024
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x56afe8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
mov edi, dword [ebp + 0xc]
push 0x208
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x4c107e
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00402af5
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00522d04
leave
ret

Function at 0x4c1490
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 4], 0
push esi
push 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push str.StartTime
push str.SOFTWARE360Safe360Scan
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push 0
call sub.msvcrt.dll__time64
pop ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x3e8
div ecx
sub esi, eax
sub esi, dword [ebp - 4]
push esi
call sub.msvcrt.dll_abs
pop ecx
xor ecx, ecx
cmp eax, 5
pop esi
setge cl
mov eax, ecx
leave
ret

Function at 0x4c167c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0
je 0x4c16c3
cmp dword [ebp + 0xc], 0
je 0x4c16c3
cmp dword [ebp + 0x10], 0
je 0x4c16c3
mov eax, dword [ebp + 0x14]
push 4
pop ecx
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0xc], ecx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ecx
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov eax, dword [ebp - 4]
leave
ret
mov eax, dword [ebp + 0x14]
leave
ret
Function at 0x4c16c8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4c17ee
cmp dword [ebp + 0x10], 0
je 0x4c17ee
cmp dword [ebp + 0x14], 0
je 0x4c17ee
push esi
push 0x527fb4
lea ecx, [ebp - 8]
call fcn.00402af5
push 0x577e22
push 0x20a
mov dword [ebp + 0xc], 0x104
mov dword [ebp - 4], 1
call fcn.004f4050
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4c17cd
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx*2 + 2]
push ecx
push 0
push esi
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 0xc]
add esp, 0xc
add eax, eax
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp eax, 0xea
jne 0x4c17c0
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov dword [esp], 0x577e22
inc eax
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004f4050
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4c17cd
mov eax, dword [ebp + 0xc]
lea eax, [eax*2 + 2]
push eax
push 0
push esi
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 0xc]
add esp, 0xc
add eax, eax
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4c17cd
push esi
lea ecx, [ebp - 8]
call fcn.00404527
mov edi, dword [ebp - 8]
add edi, 0xfffffff0
push edi
call fcn.00402f5d
mov esi, dword [ebp + 8]
add eax, 0x10
pop ecx
mov ecx, edi
mov dword [esi], eax
call fcn.004042e9
mov eax, esi
pop esi
jmp 0x4c17fe
mov ecx, dword [ebp + 8]
push 0x527fb4
call fcn.00402af5
mov eax, dword [ebp + 8]
pop edi
leave
ret

Function at 0x4c1801
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x56afe8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
xor esi, esi
mov dword [ebp - 0x18], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4c1889
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x4c1880
push esi
push esi
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push esi
push dword [ebp - 0x18]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4c1880
push esi
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov esi, eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00522d04
leave
ret
Function at 0x4c1899
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1058
call fcn.00522d80
mov eax, dword [0x56afe8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x1058]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x44
push 0
push eax
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0x1058], 0x44
lea edi, [ebp - 0x1014]
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x1058]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov ax, word [ebp + 0x10]
xor edi, edi
push 0x1000
mov word [ebp - 0x1028], ax
lea eax, [ebp - 0x1004]
push edi
push eax
mov dword [ebp - 0x102c], 1
call sub.msvcrt.dll_memset
add esp, 0xc
test esi, esi
je 0x4c1926
push esi
call sub.msvcrt.dll_wcslen
pop ecx
push ebx
lea eax, [ebp - 0x1004]
push str.__s_
push eax
call fcn.004c0b5d
add esp, 0xc
test esi, esi
je 0x4c1954
push esi
lea eax, [ebp - 0x1004]
push 0x800
push eax
call fcn.00512780
add esp, 0xc
lea eax, [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1058]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x1004]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4c19a9
cmp dword [ebp + 0x14], edi
je 0x4c198e
push dword [ebp + 0x18]
push dword [ebp - 0x1014]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0x1010]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1014]
call esi
xor eax, eax
inc eax
jmp 0x4c19ab
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00522d04
leave
ret
Function at 0x4c1b9d
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x634
mov eax, dword [0x56afe8]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
mov dword [ebp - 0x620], edi
cmp dword [ebp + 8], edi
jne 0x4c1be1
push 0x52aef0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
jmp 0x4c1d54
push ebx
push esi
mov esi, 0x410
lea eax, [ebp - 0x61c]
push esi
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x62c], esi
lea eax, [ebp - 0x62c]
xor ebx, ebx
inc ebx
mov dword [ebp - 0x630], ebx
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x630]
push eax
push 0x52aef0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
call fcn.00403a64
push eax
lea ecx, [ebp - 0x624]
call fcn.00402a6b
push 0x208
lea eax, [ebp - 0x20c]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x624]
push str.__s___dbootini
push eax
call fcn.00415254
mov esi, dword [ebp - 0x624]
lea eax, [ebp - 0x61c]
add esp, 0xc
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x4c1d48
push edi
call sub.msvcrt.dll__time64
pop ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x3e8
div ecx
push 4
sub edi, eax
lea eax, [ebp - 0x634]
push eax
push 4
push str.StartTime
push str.SOFTWARE360Safe360Scan
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x634], edi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
and dword [ebp - 0x620], 0
mov edi, dword [esi - 0xc]
call fcn.004c2fca
lea ecx, [ebp - 0x620]
push ecx
lea ecx, [edi + edi]
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push ecx
push esi
push ebx
push 0x52aef0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push edi
lea ecx, [eax + 0x18]
call fcn.004c1ea6
test eax, eax
jne 0x4c1d3b
mov eax, dword [esi - 0xc]
add eax, eax
push eax
push esi
push ebx
push 0x52aef0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push edi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov dword [ebp - 0x620], eax
jmp 0x4c1d41
mov eax, dword [ebp - 0x620]
xor ebx, ebx
test eax, eax
sete bl
lea ecx, [esi - 0x10]
call fcn.004042e9
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00522d04
leave
ret
Function at 0x4c30e0
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
xor eax, eax
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x4c1f37
cmp dword [esi + 0xc], eax
je 0x4c1f37
push dword [esi + 0xc]
call ecx
and dword [esi + 0xc], 0
pop esi
ret
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x854], 0
je 0x4c3132
call fcn.004c3ccb
xor edi, edi
cmp dword [esi + 0x854], edi
je 0x4c3132
call fcn.004c1b68
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
add edi, 0xc8
cmp edi, 0x7d0
jle 0x4c3129
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [esi + 0x854], 0
jne 0x4c30fc
cmp dword [esi + 0x858], 0
je 0x4c3182
mov ecx, esi
call fcn.004c3ccb
xor edi, edi
cmp dword [esi + 0x858], edi
je 0x4c3182
call fcn.004c1b68
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
add edi, 0xc8
cmp edi, 0x7d0
jle 0x4c3179
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [esi + 0x858], 0
jne 0x4c314c
mov ecx, esi
call fcn.004c2fd0
pop edi
lea ecx, [esi + 0x18]
pop esi
jmp 0x4c1f21

Function at 0x4c3c89
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
xor ecx, ecx
mov dword [esi + 0x14], eax
lea eax, [ebp + 8]
push eax
push 4
push esi
push 0x4c3cde
push ecx
push ecx
mov dword [esi + 0x82c], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
pop esi
test eax, eax
je 0x4c3cc5
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
inc eax
jmp 0x4c3cc7
xor eax, eax
pop ebp
ret 4

Function at 0x4c4c2d
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov ebx, str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
mov edi, ecx
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004c4cee
test eax, eax
je 0x4c4c85
and dword [ebp - 4], 0
push 0x35
call fcn.004044d6
pop ecx
test eax, eax
je 0x4c4c67
lea ecx, [ebp - 4]
push ecx
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call eax
jmp 0x4c4c77
lea eax, [ebp - 4]
push eax
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
cmp dword [ebp - 4], 0
je 0x4c4c85
push dword [ebp - 4]
call fcn.00402f04
push ebx
push SysReAllocStringLen
mov ecx, edi
call fcn.004c4cee
test eax, eax
je 0x4c4cd2
and dword [ebp - 4], 0
push 0x35
call fcn.004044d6
pop ecx
test eax, eax
je 0x4c4cb4
lea ecx, [ebp - 4]
push ecx
push ebx
push SysReAllocStringLen
call eax
jmp 0x4c4cc4
lea eax, [ebp - 4]
push eax
push ebx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
cmp dword [ebp - 4], 0
je 0x4c4cd2
push dword [ebp - 4]
call fcn.00402f04
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret
Function at 0x4c4cee
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x56afe8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
mov dword [ebp - 0x628], ecx
call sub.msvcrt.dll_wcslen
mov ebx, 0x410
lea eax, [ebp - 0x414]
push ebx
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0x10
lea eax, [ebp - 0x414]
push esi
push ebx
push eax
call fcn.00418e21
push 0x39
call fcn.004044d6
pop ecx
test eax, eax
je 0x4c4d53
lea ecx, [ebp - 0x414]
push ecx
push edi
call eax
jmp 0x4c4d61
lea eax, [ebp - 0x414]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x4c4db4
push 0x33
call fcn.004044d6
pop ecx
test eax, eax
je 0x4c4d8b
lea ecx, [ebp - 0x624]
push ecx
push 0x20019
push 0
lea ecx, [ebp - 0x414]
push ecx
push edi
call eax
jmp 0x4c4da7
lea eax, [ebp - 0x624]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x414]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4c4dc8
cmp eax, 2
jne 0x4c4ec2
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00522d04
leave
ret 8
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [ebp - 0x414]
push 0x5c
lea esi, [esi + eax*2]
pop eax
cmp word [esi - 2], ax
je 0x4c4e1d
mov word [esi], ax
add esi, 2
xor eax, eax
mov word [esi], ax
jmp 0x4c4e1d
lea eax, [ebp - 0x61c]
push eax
push 0x208
push esi
call fcn.00418e21
mov ecx, dword [ebp - 0x628]
lea eax, [ebp - 0x414]
push eax
push edi
call fcn.004c4cee
test eax, eax
je 0x4c4e83
mov ebx, dword [ebp - 0x624]
push 0x3f
mov dword [ebp - 0x620], 0x104
call fcn.004044d6
pop ecx
test eax, eax
je 0x4c4e59
xor edx, edx
lea ecx, [ebp - 0x630]
push ecx
push edx
push edx
push edx
lea ecx, [ebp - 0x620]
push ecx
lea ecx, [ebp - 0x61c]
push ecx
push edx
push ebx
call eax
jmp 0x4c4e7b
xor ecx, ecx
lea eax, [ebp - 0x630]
push eax
push ecx
push ecx
push ecx
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x61c]
push eax
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4c4df4
push dword [ebp - 0x624]
xor eax, eax
mov word [esi - 2], ax
call fcn.00402f04
push 0x39
call fcn.004044d6
pop ecx
test eax, eax
je 0x4c4eac
lea ecx, [ebp - 0x414]
push ecx
push edi
call eax
jmp 0x4c4eba
lea eax, [ebp - 0x414]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x4c4db4
xor eax, eax
jmp 0x4c4db7

Function at 0x4c4f27
Capabilities:
Shutdown system

Disassembly:
call fcn.004c19ba
test eax, eax
je fcn.004c1801
xor eax, eax
ret
Function at 0x4c5245
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0xc], ebx
jne 0x4c5319
push dword [ebp + 8]
call fcn.004125ba
mov dword [edi + 4], eax
pop ecx
test eax, eax
je 0x4c533c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.XDOpen
push eax
call esi
push str.XDClose
push dword [edi + 4]
mov dword [edi + 0x14], eax
call esi
push str.XDAddRecordsEx
push dword [edi + 4]
mov dword [edi + 0x18], eax
call esi
push str.XDDeleteRecords
push dword [edi + 4]
mov dword [edi + 0x1c], eax
call esi
push str.XDGetFirst
push dword [edi + 4]
mov dword [edi + 0x24], eax
call esi
push str.XDGetNext
push dword [edi + 4]
mov dword [edi + 0x28], eax
call esi
push str.XDGetCounts
push dword [edi + 4]
mov dword [edi + 0x2c], eax
call esi
push str.XDGetLastFlag
push dword [edi + 4]
mov dword [edi + 0x30], eax
call esi
push str.XDAddRecords
push dword [edi + 4]
mov dword [edi + 0x34], eax
call esi
mov dword [edi + 0x20], eax
pop esi
cmp dword [edi + 0x14], ebx
je 0x4c5324
cmp dword [edi + 0x18], ebx
je 0x4c5324
cmp dword [edi + 0x1c], ebx
je 0x4c5324
cmp dword [edi + 0x24], ebx
je 0x4c5324
cmp dword [edi + 0x28], ebx
je 0x4c5324
cmp dword [edi + 0x2c], ebx
je 0x4c5324
cmp dword [edi + 0x30], ebx
je 0x4c5324
cmp dword [edi + 0x34], ebx
je 0x4c5324
test eax, eax
je 0x4c5324
mov dword [edi + 0xc], 1
xor ebx, ebx
inc ebx
pop edi
mov eax, ebx
pop ebx
pop ebp
ret 4
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x28], ebx
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
mov dword [edi + 0x24], ebx
cmp dword [edi + 4], ebx
je 0x4c531c
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [edi + 4], ebx
jmp 0x4c531c