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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ecx]
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 4]
push esi
push edi
push eax
lea eax, [ebp - 0xc]
xor esi, esi
push eax
xor eax, eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.00406440
test al, al
jne 0x402622
mov eax, dword [ebp - 0xc]
cmp eax, esi
je 0x402617
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, esi
mov esi, dword [ebp - 0xc]
je 0x40264c
cmp eax, 0xffffffff
je 0x40264c
push 4
lea edx, [ebp - 8]
push edx
push 4
push 0
push str.Codepage
push esi
mov dword [ebp - 8], eax
call edi
mov ebx, dword [ebx + 0xc]
cmp dword [ebx - 0xc], 0
je 0x402672
test ebx, ebx
je 0x402672
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0
push str.DisplayName
push esi
call edi
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx + 0x10]
cmp dword [ebx - 0xc], 0
je 0x40269b
test ebx, ebx
je 0x40269b
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
push ebx
push 1
push 0
push str.FaviconPath
push esi
call edi
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x14]
cmp dword [ebx - 0xc], 0
je 0x4026c4
test ebx, ebx
je 0x4026c4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push ebx
push 1
push 0
push str.FaviconURL
push esi
call edi
mov edx, dword [ebp + 8]
mov ebx, dword [edx + 0x18]
cmp dword [ebx - 0xc], 0
je 0x4026ed
test ebx, ebx
je 0x4026ed
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0
push str.OSDFileURL
push esi
call edi
mov ebx, dword [ebp + 8]
xor eax, eax
cmp dword [ebx + 0x1c], eax
setne al
cmp eax, 0xffffffff
je 0x402712
push 4
lea ecx, [ebp - 8]
push ecx
push 4
push 0
push str.ShowSearchSuggestions
push esi
mov dword [ebp - 8], eax
call edi
mov ebx, dword [ebx + 0x20]
cmp dword [ebx - 0xc], 0
je 0x402738
test ebx, ebx
je 0x402738
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
push ebx
push 1
push 0
push str.SuggestionsURL_JSON
push esi
call edi
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x24]
cmp dword [ebx - 0xc], 0
je 0x402761
test ebx, ebx
je 0x402761
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push ebx
push 1
push 0
push 0x4c4668
push esi
call edi
test esi, esi
je 0x40276c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x402780
Capabilities:
Delete registry key

Disassembly:
push ecx
mov ecx, dword [esi]
push eax
push str.DefaultScope
push ecx
xor eax, eax
mov ecx, str.SOFTWAREMicrosoftInternet_ExplorerSearchScopes
call fcn.00401b50
add esp, 0xc
test al, al
jne 0x4027a1
xor al, al
pop ecx
ret
mov edx, dword [esi]
push str.SOFTWAREMicrosoftInternet_ExplorerUser_Preferences
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x4027b8
cmp eax, 2
jne 0x40279d
mov al, 1
pop ecx
ret
Function at 0x402a70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 4]
push esi
push edi
push eax
lea eax, [ebp - 0xc]
xor esi, esi
push eax
mov eax, 0x100
mov edx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.00406440
test al, al
jne 0x402ab6
mov eax, dword [ebp - 0xc]
cmp eax, esi
je 0x402aad
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, esi
mov esi, dword [ebp - 0xc]
je 0x402ae0
cmp eax, 0xffffffff
je 0x402ae0
push 4
lea ecx, [ebp - 8]
push ecx
push 4
push 0
push str.Codepage
push esi
mov dword [ebp - 8], eax
call edi
mov ebx, dword [ebx + 0xc]
cmp dword [ebx - 0xc], 0
je 0x402b06
test ebx, ebx
je 0x402b06
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
push ebx
push 1
push 0
push str.DisplayName
push esi
call edi
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x10]
cmp dword [ebx - 0xc], 0
je 0x402b2f
test ebx, ebx
je 0x402b2f
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push ebx
push 1
push 0
push str.FaviconPath
push esi
call edi
mov edx, dword [ebp + 8]
mov ebx, dword [edx + 0x14]
cmp dword [ebx - 0xc], 0
je 0x402b58
test ebx, ebx
je 0x402b58
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0
push str.FaviconURL
push esi
call edi
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx + 0x18]
cmp dword [ebx - 0xc], 0
je 0x402b81
test ebx, ebx
je 0x402b81
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
push ebx
push 1
push 0
push str.OSDFileURL
push esi
call edi
mov ebx, dword [ebp + 8]
xor eax, eax
cmp dword [ebx + 0x1c], eax
setne al
cmp eax, 0xffffffff
je 0x402ba6
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.ShowSearchSuggestions
push esi
call edi
mov ebx, dword [ebx + 0x20]
cmp dword [ebx - 0xc], 0
je 0x402bcc
test ebx, ebx
je 0x402bcc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push ebx
push 1
push 0
push str.SuggestionsURL_JSON
push esi
call edi
mov edx, dword [ebp + 8]
mov ebx, dword [edx + 0x24]
cmp dword [ebx - 0xc], 0
je 0x402bf5
test ebx, ebx
je 0x402bf5
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0
push 0x4c4668
push esi
call edi
test esi, esi
je 0x402c00
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402c10
Capabilities:
Delete registry key

Disassembly:
push ecx
push eax
push str.DefaultScope
push reloc.OLEAUT32.dll_SysReAllocString
mov eax, 0x100
mov ecx, str.SOFTWAREMicrosoftInternet_ExplorerSearchScopes
call fcn.00401b50
add esp, 0xc
test al, al
jne 0x402c36
xor al, al
pop ecx
ret
push str.SOFTWAREMicrosoftInternet_ExplorerUser_Preferences
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x402c4f
cmp eax, 2
jne 0x402c32
mov al, 1
pop ecx
ret

Function at 0x402df0
Capabilities:
Create thread

Disassembly:
cmp dword [esi + 8], 0
push edi
jne 0x402e42
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jne 0x402e42
cmp dword [esi], 0
je 0x402e42
mov eax, dword [esi + 0x10]
cmp eax, 0xffffffff
je 0x402e42
test eax, eax
je 0x402e42
mov eax, dword [esi + 0x14]
cmp eax, 0xffffffff
je 0x402e42
test eax, eax
je 0x402e42
push edi
push 0
push esi
push 0x402e90
push 0
push 0
call fcn.00492054
add esp, 0x18
mov dword [esi + 8], eax
test eax, eax
je 0x402e42
cmp dword [edi], 0
je 0x402e42
mov al, 1
pop edi
ret
xor al, al
pop edi
ret

Function at 0x403490
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
push ebx
mov dword [ebp - 0x408], 0x1388
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
push 0
push 0
push 0
push 0
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__SV1_
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
test edi, edi
jne 0x4034e5
lea eax, [edi + 1]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea eax, [ebp - 0x408]
push eax
push 2
push 0
call esi
push 4
lea ecx, [ebp - 0x408]
push ecx
push 5
push 0
call esi
push 4
lea edx, [ebp - 0x408]
push edx
push 6
push 0
call esi
push 4
lea eax, [ebp - 0x408]
push eax
push 8
push 0
call esi
push 0
push 0x80080000
push 0
push 0
push ebx
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x40355e
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop esi
pop edi
lea eax, [ebx + 1]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret
push ebx
lea ecx, [ebp - 0x410]
push ecx
lea edx, [ebp - 0x40c]
push edx
push 0x20000013
push esi
mov dword [ebp - 0x40c], ebx
mov dword [ebp - 0x410], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov eax, dword [ebp - 0x40c]
add eax, 0xffffff38
cmp eax, 0x63
ja 0x4035d1
push 0x400
lea ecx, [ebp - 0x404]
push 0
push ecx
mov dword [ebp - 0x414], ebx
call fcn.00497780
add esp, 0xc
lea edx, [ebp - 0x414]
push edx
push 0x400
lea eax, [ebp - 0x404]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ebx, eax
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
xor eax, eax
test ebx, ebx
pop esi
sete al
pop edi
xor ecx, ebp
pop ebx
call fcn.00491281
mov esp, ebp
pop ebp
ret
Function at 0x403cd0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push ecx
push edx
mov edx, dword [ebp + 8]
push eax
call fcn.00403d30
mov edi, 0x4f4638
call fcn.00403fc0
pop edi
test al, al
jne 0x403cfe
xor eax, eax
pop ebp
ret 0x10
cmp byte [0x4f4645], 0
je 0x403d1f
mov eax, dword [0x4f4660]
mov byte [0x4f4644], 0
cmp eax, 0xffffffff
je 0x403d1f
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
pop ebp
ret 0x10

Function at 0x403fc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bec42
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4e9688]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [edi + 0x2c], 1
jne 0x403fff
mov al, byte [edi + 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x10]
push eax
mov byte [edi + 0x2c], 1
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 1
push 0
call esi
push 0
push 0
push 0
push 0
mov dword [edi + 8], eax
call esi
push 0x4ef3fe
push 0x20
mov dword [edi + 4], eax
call fcn.00492bc8
add esp, 8
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x404053
mov esi, eax
call fcn.00413290
jmp 0x404055
xor eax, eax
lea ecx, [ebp - 0x10]
push ecx
push 4
push edi
push 0x403760
push 0
push 0
mov dword [edi], eax
mov dword [ebp - 0x10], 0
call fcn.00492054
add esp, 0x18
mov dword [edi + 0x28], eax
cmp eax, 0xffffffff
je 0x4040b9
test eax, eax
je 0x4040b9
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
je 0x4040b9
test eax, eax
je 0x4040b9
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x4040b9
test eax, eax
je 0x4040b9
cmp dword [edi], 0
je 0x4040b9
mov byte [edi + 0xd], 1
mov byte [edi + 0xc], 0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404320
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
mov dword [ebp - 0x210], 0
call fcn.00497780
add esp, 0xc
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x210]
push eax
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeMain.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x214], 0x208
mov dword [ebp - 0x210], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4043d6
mov eax, dword [ebp - 0x214]
shr eax, 1
dec eax
cmp eax, 0x104
jae 0x4043d6
cmp word [ebp + eax*2 - 0x20c], 0x5c
je 0x4043ce
cmp eax, 0x103
jae 0x4043d6
mov ecx, 0x5c
xor edx, edx
mov word [ebp + eax*2 - 0x20c], cx
mov word [ebp + eax*2 - 0x20a], dx
lea ecx, [ebp - 0x20c]
jmp 0x4043db
mov ecx, 0x4c4348
push esi
call fcn.00424e40
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.00491281
mov esp, ebp
pop ebp
ret

Function at 0x404470
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.004a7ca0
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x2010], eax
cmp esi, ebx
je 0x40453f
push 0x1fff
lea ecx, [ebp - 0x2003]
push ebx
push ecx
mov byte [ebp - 0x2004], bl
call fcn.00497780
add esp, 0xc
lea edx, [ebp - 0x2014]
push edx
push esi
mov dword [ebp - 0x2014], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, ebx
je 0x40453f
cmp eax, 0x1fff
ja 0x40453f
lea ecx, [ebp - 0x2004]
push ecx
push eax
push ebx
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40452e
lea edx, [ebp - 0x200c]
push edx
lea eax, [ebp - 0x2008]
push eax
push 0x4cd228
lea ecx, [ebp - 0x2004]
push ecx
mov dword [ebp - 0x2008], ebx
mov dword [ebp - 0x200c], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40452e
mov eax, dword [ebp - 0x2008]
mov edx, dword [eax + 8]
mov ecx, dword [ebp - 0x2010]
mov dword [edi], edx
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
mov bl, 1
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop ebx
call fcn.00491281
mov esp, ebp
pop ebp
ret

Function at 0x404570
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 2
push esi
push esi
push esi
push str.SOFTWARE360TotalSecurityDeepScan
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
mov eax, dword [ebp - 4]
je 0x4045a2
cmp eax, esi
je 0x4045cf
push 4
lea ecx, [ebp - 8]
push ecx
push 4
push esi
push str.DisableHRM
push eax
mov dword [ebp - 8], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4045c5
lea esi, [eax + 1]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404f70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor esi, esi
xor eax, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
cmp eax, str.SOFTWARE360TotalSecurityUserProfile
je 0x404fd6
push 0x20019
mov ecx, str.SOFTWARE360TotalSecurityUserProfile
mov edx, reloc.OLEAUT32.dll_SysReAllocString
lea esi, [ebp - 0x10]
call fcn.00424a20
mov esi, dword [ebp - 0x10]
test eax, eax
jne 0x404fd6
mov edx, dword [ebp + 8]
lea ecx, [ebp - 8]
push ecx
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push str.ShowTrayIcon
push esi
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404fd6
cmp dword [ebp - 0xc], 4
jne 0x404fd6
mov bl, 1
jmp 0x404fd8
xor bl, bl
test esi, esi
je 0x404fe3
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405350
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bbad8
mov eax, dword fs:[0]
push eax
mov eax, dword [0x4e9688]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp + 8], 0
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0
jne 0x4053a0
push esi
mov ecx, 0x4c4348
call fcn.00424e40
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
push 0x4c4f2c
push eax
lea edx, [ebp + 8]
push edx
call fcn.00411090
add esp, 0xc
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4053d4
push esi
mov ecx, 0x4c4348
call fcn.00424e40
jmp 0x4053e4
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00425150
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40540a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x405f20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00497780
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x405f77
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret
push 0x4c4fdc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x405f67
push str.RtlGetVersion
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret

Function at 0x405fc0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.00497780
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 5
jne 0x406016
mov eax, 1
cmp dword [ebp - 0x110], eax
je 0x406018
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret

Function at 0x406380
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [esi]
sub eax, 0x10
mov ecx, 0x104
mov dword [ebp - 4], ecx
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, ecx
or edx, eax
jge 0x4063ab
mov eax, esi
call fcn.00425010
mov eax, dword [esi]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp + 8]
push 0
push 0
push 0
lea edx, [ebp - 4]
push edx
mov edx, dword [ecx]
push eax
mov eax, dword [ebp + 0xc]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x406413
mov eax, dword [ebp - 4]
cmp eax, 0xffffffff
jne 0x4063eb
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x4063ef
push ecx
push eax
call fcn.00492d63
add esp, 8
test eax, eax
jl 0x406409
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x406409
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov al, 1
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.004251c0
mov eax, dword [esi]
cmp dword [eax - 8], 0
jl 0x406409
mov dword [eax - 0xc], 0
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
xor al, al
mov esp, ebp
pop ebp
ret 8
Function at 0x406570
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, dword [ebp + 8]
xor esi, esi
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0xc]
push ecx
mov byte [ebp - 0xc], 0
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xa], 0
mov byte [ebp - 9], 0
mov byte [ebp - 8], 0
mov byte [ebp - 7], 5
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x4065d5
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
push edi
mov dword [ebp - 0x14], eax
cmp dword [ebx], esi
jbe 0x4065ff
lea edi, [ebx + 4]
mov edx, dword [edi]
mov eax, dword [ebp - 0x10]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x40661d
inc esi
add edi, 8
cmp esi, dword [ebx]
jb 0x4065e3
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40660a
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40662b
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.00491281
mov esp, ebp
pop ebp
ret

Function at 0x406ab0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00497780
mov ecx, dword [ebp + 8]
add esp, 0xc
mov eax, esi
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 5
mov dword [ebp - 0x38], 0x1440
call fcn.00406a20
test al, al
je 0x406b10
lea edx, [ebp - 0x3c]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
setne al
test al, al
je 0x406b10
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x406d50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4d20
call fcn.004a7ca0
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
jmp 0x406d7f
lea esi, [ebp - 0x4d10]
call fcn.0040fdb0
call fcn.0040fe50
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.00497780
add esp, 0xc
mov edx, esi
push edx
lea ecx, [ebp - 0x210]
mov edx, str.7CF4158BB8E292F27389C3E4FC1B7B06488DC207FAE47A9A391003EC39EC492EF4C66E05EC5DBAEBE9489A5F80A37BBD9D16C4BDA491EB79
call fcn.00410bc0
mov ecx, 0x10
mov esi, str.C435D7366E0385E2CD67BFE1B01C21C0
lea edi, [ebp - 0x620]
rep movsd dword es:[edi], dword [esi]
push 0x1c6
lea eax, [ebp - 0x5de]
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.00497780
add esp, 0xc
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x416]
push edx
mov word [ebp - 0x418], cx
call fcn.00497780
add esp, 0xc
lea eax, [ebp - 0x4d10]
push eax
lea ecx, [ebp - 0x418]
lea edx, [ebp - 0x620]
call fcn.00410bc0
lea ecx, [ebp - 0x4d1c]
push ecx
lea edx, [ebp - 0x4d14]
push edx
lea eax, [ebp - 0x4d18]
push eax
lea ecx, [ebp - 0x418]
push ecx
lea edx, [ebp - 0x210]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x4d18], 0
mov dword [ebp - 0x4d14], 0
mov dword [ebp - 0x4d1c], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
jmp 0x406e80
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x4d14]
pop edi
xor ecx, ebp
pop esi
call fcn.00491281
mov esp, ebp
pop ebp
ret

Function at 0x406fe0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4d10
call fcn.004a7ca0
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
jmp 0x40700f
lea esi, [ebp - 0x4d10]
call fcn.0040fdb0
call fcn.0040fe50
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x416]
push ecx
mov word [ebp - 0x418], ax
call fcn.00497780
add esp, 0xc
mov edx, esi
push edx
lea ecx, [ebp - 0x418]
mov edx, str.02D0D3B17D64A874
call fcn.00410bc0
mov ecx, 0x20
mov esi, str.EE9E757CEA16CAF1CFDB93D3E775370BC1D4E864E95820BF726088A95E9AE71F
lea edi, [ebp - 0x620]
rep movsd dword es:[edi], dword [esi]
push 0x186
lea eax, [ebp - 0x59e]
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.00497780
add esp, 0xc
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x20e]
push edx
mov word [ebp - 0x210], cx
call fcn.00497780
add esp, 0xc
lea eax, [ebp - 0x4d10]
push eax
lea ecx, [ebp - 0x210]
lea edx, [ebp - 0x620]
call fcn.00410bc0
jmp 0x4070c4
lea ecx, [ebp - 0x418]
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_OpenEventLogW]
test eax, eax
jne 0x4070e7
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret
push eax
lea edx, [ebp - 0x210]
push 0x2a
push edx
call fcn.00406ea0
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
xor ecx, ebp
pop esi
call fcn.00491281
mov esp, ebp
pop ebp
ret