joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b4b35
Capabilities:
Create process on windows

Disassembly:
push 0x88
mov eax, 0x5a4a6d
call fcn.00485177
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x94]
mov edi, dword [ebp + 0xc]
push 0x44
pop ebx
push ebx
push 0
push eax
call fcn.004d7c10
push 0x10
lea eax, [ebp - 0x50]
mov dword [ebp - 0x94], ebx
push 0
push eax
call fcn.004d7c10
add esp, 0x18
xor edx, edx
xor eax, eax
mov dword [ebp - 0x18], edx
mov word [ebp - 0x28], ax
push 7
pop ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
mov word [ebp - 0x40], ax
or ebx, 0xffffffff
mov byte [ebp - 4], 1
test edi, edi
je 0x4b4c13
cmp word [edi], dx
jne 0x4b4ba4
mov eax, edx
jmp 0x4b4bab
push edi
call fcn.004d915b
pop ecx
push eax
push edi
lea ecx, [ebp - 0x40]
call fcn.00427e30
cmp dword [ebp - 0x30], 0
je 0x4b4c13
mov edi, 0x5bbd4c
push edi
call fcn.004d915b
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.00427e30
xor edi, edi
cmp word [esi], di
jne 0x4b4bdc
mov eax, edi
jmp 0x4b4be3
push esi
call fcn.004d915b
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00428a20
mov esi, 0x5bbd50
push esi
call fcn.004d915b
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00428a20
push ebx
push edi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00428af0
jmp 0x4b4c2f
xor edi, edi
cmp word [esi], di
jne 0x4b4c1e
mov eax, edi
jmp 0x4b4c25
push esi
call fcn.004d915b
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00427e30
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.CreateRunProcess__s_
call fcn.004bb62d
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
pop ecx
cmovae eax, dword [ebp - 0x28]
pop ecx
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x94]
push ecx
push edi
push edi
push edi
push edi
push edi
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4b4c73
mov esi, edi
jmp 0x4b4c9e
cmp byte [ebp + 0x10], 0
je 0x4b4c8b
cmp dword [ebp + 0x14], 0
cmovg ebx, dword [ebp + 0x14]
push ebx
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x50]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x4c]
call esi
xor esi, esi
inc esi
push edi
push 1
lea ecx, [ebp - 0x40]
call fcn.00427d40
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.00427d40
mov eax, esi
call fcn.00485121
ret
Function at 0x4b4ce0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
xor edi, edi
push str.EXPLORER.EXE
mov esi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
call fcn.004b61f6
pop ecx
push eax
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x4b4e13
lea eax, [ebp - 0xc]
push eax
push 0xf01ff
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4b4e13
lea eax, [ebp - 4]
inc esi
push eax
push esi
push esi
push edi
push 0xf01ff
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x4b4e11
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x4b4d94
push str.WTSGetActiveConsoleSessionId
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4b4d8d
call eax
push 4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x4b4d8d
xor esi, esi
jmp 0x4b4e13
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x44
pop edi
push edi
lea eax, [ebp - 0x64]
push 0
push eax
call fcn.004d7c10
push 0x10
lea eax, [ebp - 0x20]
push 0
push eax
call fcn.004d7c10
add esp, 0x18
mov dword [ebp - 0x64], edi
xor edi, edi
mov dword [ebp - 0x5c], str.WinSta0Default
mov dword [ebp - 0x38], esi
mov dword [ebp - 8], edi
push 5
pop eax
push edi
push dword [ebp - 4]
mov word [ebp - 0x34], ax
lea eax, [ebp - 8]
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x4b4e11
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push edi
push dword [ebp - 8]
push 0x430
push edi
push edi
push edi
push dword [ebp + 8]
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x4b4e11
cmp dword [ebp - 8], edi
je 0x4b4e13
push dword [ebp - 8]
call sub.USERENV.dll_DestroyEnvironmentBlock
jmp 0x4b4e13
mov esi, edi
mov eax, dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4b4e28
cmp eax, 0xffffffff
je 0x4b4e28
push eax
call edi
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4b4e37
cmp eax, 0xffffffff
je 0x4b4e37
push eax
call edi
test ebx, ebx
jne 0x4b4e3e
push ebx
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b5b57
Capabilities:
Check if file exists
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x62b370]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [ebp - 0x54], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4b5b95
xor al, al
jmp 0x4b5c40
push ebx
lea eax, [ebp - 0x40]
xor ebx, ebx
push eax
push edi
mov dword [ebp - 0x40], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x4b5c0f
push esi
push eax
call fcn.004d93e5
mov esi, eax
pop ecx
test esi, esi
je 0x4b5c03
push esi
push dword [ebp - 0x3c]
push ebx
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4b5c03
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], ebx
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], ebx
push eax
push 0x6194dc
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4b5c03
push 0x34
push dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
push eax
call fcn.004d4c70
add esp, 0xc
cmp dword [ebp - 0x38], 0xfeef04bd
sete al
mov bl, al
push esi
call fcn.004d93e0
pop ecx
pop esi
test bl, bl
jne 0x4b5c13
xor al, al
jmp 0x4b5c3f
mov ecx, dword [ebp - 0x30]
mov eax, ecx
mov edx, dword [ebp - 0x48]
shr eax, 0x10
mov dword [edx], eax
mov edx, dword [ebp - 0x50]
movzx eax, cx
mov ecx, dword [ebp - 0x4c]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x2c]
mov eax, ecx
shr eax, 0x10
mov dword [edx], eax
movzx eax, cx
mov ecx, dword [ebp - 0x54]
mov dword [ecx], eax
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00484636
mov esp, ebp
pop ebp
ret
Function at 0x4b61f6
Capabilities:
Enumerate processes

Disassembly:
push 0x260
mov eax, 0x5a4ceb
call fcn.00485177
mov eax, dword [ebp + 8]
test eax, eax
je 0x4b62f2
push eax
lea ecx, [ebp - 0x40]
call fcn.004276b0
lea eax, [ebp - 0x40]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004b81ca
mov edi, 0x22c
lea eax, [ebp - 0x26c]
push edi
push ebx
push eax
call fcn.004d7c10
add esp, 0x10
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4b62e3
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], edi
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x4b62d8
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
cmp word [ebp - 0x248], ax
jne 0x4b6282
mov eax, ebx
jmp 0x4b628f
lea eax, [ebp - 0x248]
push eax
call fcn.004d915b
pop ecx
push eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x28]
call fcn.00427e30
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.004b81ca
pop ecx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00433050
test eax, eax
je 0x4b62f8
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.00427d40
lea eax, [ebp - 0x26c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4b6265
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, ebx
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.00427d40
mov eax, esi
call fcn.00485121
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x264]
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.00427d40
jmp 0x4b62e5
Function at 0x4b646a
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x83c
mov eax, 0x5a4d7b
call fcn.00485177
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x828]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
and dword [ebp - 0x848], 0
mov dword [ebp - 0x83c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x844], eax
mov eax, dword [ebp + 0x1c]
push eax
call fcn.004276b0
xor ecx, ecx
lea eax, [ebp - 0x82c]
push eax
push 0x20119
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push reloc.WS2_32.dll_closesocket
mov dword [ebp - 4], ecx
mov dword [ebp - 0x82c], ecx
mov dword [ebp - 0x838], ecx
mov dword [ebp - 0x834], ecx
mov dword [ebp - 0x830], ecx
call esi
test eax, eax
je 0x4b64fb
lea eax, [ebp - 0x828]
mov ecx, edi
push eax
call fcn.0042ef80
push 0
jmp 0x4b6638
lea eax, [ebp - 0x838]
push eax
push 0x20119
push 0
push str.SoftWare
push dword [ebp - 0x82c]
call esi
test eax, eax
je 0x4b6528
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4b64e6
lea eax, [ebp - 0x834]
push eax
push 0x20119
push 0
push ebx
push dword [ebp - 0x838]
call esi
test eax, eax
je 0x4b655b
push dword [ebp - 0x838]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x82c]
call esi
jmp 0x4b64e6
lea eax, [ebp - 0x830]
xor ebx, ebx
push eax
push 0x20119
push ebx
push dword [ebp - 0x83c]
push dword [ebp - 0x834]
call esi
test eax, eax
je 0x4b65ad
push dword [ebp - 0x830]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x834]
call esi
push dword [ebp - 0x82c]
call esi
mov ecx, edi
lea eax, [ebp - 0x828]
push eax
call fcn.0042ef80
jmp 0x4b6637
push 0x800
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.004d7c10
add esp, 0xc
mov dword [ebp - 0x840], 0x400
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x810]
push eax
push ebx
push ebx
push dword [ebp - 0x844]
push dword [ebp - 0x830]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x830]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x834]
call esi
push dword [ebp - 0x838]
call esi
push dword [ebp - 0x82c]
call esi
lea eax, [ebp - 0x810]
push eax
call fcn.004d915b
pop ecx
mov ecx, edi
test eax, eax
je 0x4b659c
lea eax, [ebp - 0x810]
push eax
call fcn.004276b0
push ebx
push 1
lea ecx, [ebp - 0x828]
call fcn.00427d40
mov eax, edi
call fcn.00485121
ret
Function at 0x4b664d
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x838
mov eax, 0x5a4dae
call fcn.00485177
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x828]
mov edi, dword [ebp + 8]
xor esi, esi
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x838], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x840], eax
mov eax, dword [ebp + 0x18]
push eax
mov dword [ebp - 0x844], esi
call fcn.004276b0
lea eax, [ebp - 0x834]
mov dword [ebp - 0x834], esi
push eax
push 0x20119
push esi
push str.SoftWare
mov dword [ebp - 0x830], esi
mov dword [ebp - 0x82c], esi
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
je 0x4b66d8
lea eax, [ebp - 0x828]
mov ecx, edi
push eax
call fcn.0042ef80
push 0
jmp 0x4b67c7
lea eax, [ebp - 0x830]
push eax
push 0x20119
push 0
push ebx
push dword [ebp - 0x834]
call esi
test eax, eax
je 0x4b6701
push dword [ebp - 0x834]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4b66c3
lea eax, [ebp - 0x82c]
xor ebx, ebx
push eax
push 0x20119
push ebx
push dword [ebp - 0x838]
push dword [ebp - 0x830]
call esi
test eax, eax
je 0x4b6748
push dword [ebp - 0x830]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x82c]
call esi
mov ecx, edi
lea eax, [ebp - 0x828]
push eax
call fcn.0042ef80
jmp 0x4b67c6
push 0x800
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.004d7c10
add esp, 0xc
mov dword [ebp - 0x83c], 0x400
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x810]
push eax
push ebx
push ebx
push dword [ebp - 0x840]
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x82c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x830]
call esi
push dword [ebp - 0x834]
call esi
lea eax, [ebp - 0x810]
push eax
call fcn.004d915b
pop ecx
mov ecx, edi
test eax, eax
je 0x4b673a
lea eax, [ebp - 0x810]
push eax
call fcn.004276b0
push ebx
push 1
lea ecx, [ebp - 0x828]
call fcn.00427d40
mov eax, edi
call fcn.00485121
ret
Function at 0x4b67dc
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x834
mov eax, 0x5a4de1
call fcn.00485177
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x828]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
and dword [ebp - 0x840], 0
mov dword [ebp - 0x83c], eax
mov eax, dword [ebp + 0x18]
push eax
call fcn.004276b0
xor ecx, ecx
lea eax, [ebp - 0x834]
push eax
push 0xf013f
push ecx
push str.SoftWare
push reloc.WS2_32.dll_accept
mov dword [ebp - 4], ecx
mov dword [ebp - 0x834], ecx
mov dword [ebp - 0x830], ecx
mov dword [ebp - 0x82c], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4b6860
lea eax, [ebp - 0x828]
mov ecx, edi
push eax
call fcn.0042ef80
push 0
jmp 0x4b695e
xor ecx, ecx
lea eax, [ebp - 0x830]
push ecx
push eax
push ecx
push 0xf013f
push ecx
push ecx
push ecx
push esi
push dword [ebp - 0x834]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
call esi
test eax, eax
je 0x4b6894
push dword [ebp - 0x834]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4b684b
xor ecx, ecx
lea eax, [ebp - 0x82c]
push ecx
push eax
push ecx
push 0xf013f
push ecx
push ecx
push ecx
push ebx
push dword [ebp - 0x830]
call esi
test eax, eax
je 0x4b68cf
push dword [ebp - 0x830]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x82c]
call esi
jmp 0x4b684b
push 0x800
xor ebx, ebx
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.004d7c10
add esp, 0xc
mov dword [ebp - 0x838], 0x400
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x810]
push eax
push ebx
push ebx
push dword [ebp - 0x83c]
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x82c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x830]
call esi
push dword [ebp - 0x834]
call esi
lea eax, [ebp - 0x810]
push eax
call fcn.004d915b
pop ecx
mov ecx, edi
test eax, eax
jne 0x4b6951
lea eax, [ebp - 0x828]
push eax
call fcn.0042ef80
jmp 0x4b695d
lea eax, [ebp - 0x810]
push eax
call fcn.004276b0
push ebx
push 1
lea ecx, [ebp - 0x828]
call fcn.00427d40
mov eax, edi
call fcn.00485121
ret
Function at 0x4b6bcb
Capabilities:
Check os version

Disassembly:
push 0x34c
mov eax, 0x5a4eed
call fcn.00485177
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x330]
xor ebx, ebx
mov dword [ebp - 0x358], esi
push 0x118
push ebx
mov dword [ebp - 0x350], ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x334], 0x11c
call fcn.004d7c10
add esp, 0xc
lea eax, [ebp - 0x334]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x6172ac
mov ecx, esi
call fcn.004276b0
mov eax, dword [ebp - 0x330]
mov dword [ebp - 0x34c], eax
movzx eax, byte [ebp - 0x21a]
mov dword [ebp - 0x354], eax
mov eax, dword [ebp - 0x328]
mov dword [ebp - 0x338], eax
mov eax, dword [ebp - 0x32c]
push 0x5bbee4
mov dword [ebp - 4], ebx
mov dword [ebp - 0x350], 1
mov dword [ebp - 0x340], ebx
mov dword [ebp - 0x344], ebx
mov dword [ebp - 0x33c], ebx
mov dword [ebp - 0x348], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x4b6cc2
push str.RtlGetNtVersionNumbers
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4b6cbb
lea ecx, [ebp - 0x33c]
push ecx
lea ecx, [ebp - 0x344]
push ecx
lea ecx, [ebp - 0x340]
push ecx
call eax
movzx eax, word [ebp - 0x33c]
mov dword [ebp - 0x33c], eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x34c]
cmp eax, 5
jne 0x4b6cf4
mov eax, dword [ebp - 0x348]
test eax, eax
je 0x4b6dc0
cmp eax, 1
jne 0x4b6cea
mov edi, str.WindowsXP
jmp 0x4b6db0
mov edi, str.WindowsServer2003
jmp 0x4b6db0
cmp eax, 6
jne 0x4b6dc0
mov eax, dword [ebp - 0x348]
sub eax, ebx
je 0x4b6d9d
sub eax, 1
je 0x4b6d96
mov edi, dword [ebp - 0x338]
sub eax, 1
jne 0x4b6dc6
cmp edi, 0x1ebb
jne 0x4b6d32
mov edi, str.Windows8
jmp 0x4b6db0
lea eax, [edi - 0x1ee6]
cmp eax, 0x25
jbe 0x4b6d2b
cmp edi, 0x1f13
je 0x4b6d2b
cmp dword [ebp - 0x340], 0xa
jne 0x4b6d6a
cmp dword [ebp - 0x344], 0
jne 0x4b6dc6
push str.Windows10
call fcn.004d915b
pop ecx
push eax
push str.Windows10
jmp 0x4b6d8d
cmp dword [ebp - 0x340], 6
jne 0x4b6dc6
cmp dword [ebp - 0x344], 3
jne 0x4b6dc6
push str.Windows8.1
call fcn.004d915b
pop ecx
push eax
push str.Windows8.1
mov ecx, esi
call fcn.00427e30
jmp 0x4b6dc6
mov edi, str.Windows7
jmp 0x4b6db0
cmp dword [ebp - 0x354], 1
mov edi, str.WindowsVista
je 0x4b6db0
mov edi, str.WindowsServer2008
push edi
call fcn.004d915b
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00427e30
mov edi, dword [ebp - 0x338]
push 0x6172ac
mov ecx, esi
call fcn.00433010
test eax, eax
jne 0x4b6e34
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004d7c10
mov eax, dword [ebp - 0x34c]
push edi
push dword [ebp - 0x348]
push eax
lea eax, [ebp - 0x218]
push str.Windows_d._d._d
push eax
call fcn.004b9a6e
add esp, 0x20
cmp word [ebp - 0x218], 0
jne 0x4b6e18
mov eax, ebx
jmp 0x4b6e25
lea eax, [ebp - 0x218]
push eax
call fcn.004d915b
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00427e30
cmp dword [ebp + 0xc], 0
je 0x4b6e62
cmp word [ebp - 0x320], 0
je 0x4b6e53
lea eax, [ebp - 0x320]
push eax
call fcn.004d915b
pop ecx
mov ebx, eax
push ebx
lea eax, [ebp - 0x320]
mov ecx, esi
push eax
call fcn.00428a20
mov eax, esi
call fcn.00485121
ret
Function at 0x4b707f
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc28
mov eax, dword [0x62b370]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
push 0x208
mov dword [ebp - 0xc24], eax
lea eax, [ebp - 0x20c]
push ebx
push eax
mov dword [ebp - 0xc28], ebx
mov dword [ebp - 0xc18], ebx
call fcn.004d7c10
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push ebx
jmp 0x4b7179
lea eax, [ebp - 0xc18]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4b716b
push 0x208
push eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0xc1c], 0x104
push eax
call fcn.004d7c10
add esp, 0xc
mov dword [ebp - 0xc20], 1
lea eax, [ebp - 0xc1c]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0xc20]
push eax
push 0
push str.DisplayName
push dword [ebp - 0xc18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4b715f
push dword [ebp - 0xc24]
lea eax, [ebp - 0x414]
push eax
call fcn.004d7710
pop ecx
pop ecx
test eax, eax
jne 0x4b71a7
push dword [ebp - 0xc18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
lea eax, [ebp - 0x20c]
inc ebx
push eax
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x4b70d9
push 0x6172ac
mov ecx, esi
call fcn.004276b0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00484636
mov esp, ebp
pop ebp
ret
push 0x800
lea eax, [ebp - 0xc14]
push 0
push eax
call fcn.004d7c10
add esp, 0xc
mov dword [ebp - 0xc1c], 0x400
lea eax, [ebp - 0xc1c]
push eax
lea eax, [ebp - 0xc14]
push eax
lea eax, [ebp - 0xc20]
push eax
push 0
push str.UninstallString
push dword [ebp - 0xc18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xc14]
push eax
jmp 0x4b718d
Function at 0x4b73e0
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push 0x124
mov eax, 0x5a4f8f
call fcn.004851e5
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4b7404
xor eax, eax
jmp 0x4b757d
xor ebx, ebx
xor eax, eax
push ebx
push 0x80
push 4
push ebx
inc eax
mov esi, ebx
push eax
push SysReAllocStringLen
push edi
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x12c], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x124], edi
cmp edi, 0xffffffff
je 0x4b744a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x11c], eax
lea ecx, [esi + 1]
mov dword [ebp - 4], ebx
push ecx
call fcn.004846b0
pop ecx
mov ecx, eax
jmp 0x4b7486
mov dword [ebp - 0x128], ecx
test ecx, ecx
je 0x4b73fd
push ebx
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], ebx
push eax
lea eax, [esi + 1]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xe
pop ecx
mov esi, str.identifierBegin:abcdefghijklmnopqrstuvwxyz:identifierEnd
lea edi, [ebp - 0x118]
rep movsd dword es:[edi], dword [esi]
push 0xcb
lea eax, [ebp - 0xdf]
push ebx
push eax
movsb byte es:[edi], byte [esi]
call fcn.004d7c10
lea eax, [ebp - 0x118]
push eax
call fcn.004d90d0
mov ecx, dword [ebp - 0x11c]
add esp, 0x10
mov dword [ebp - 0x120], eax
mov eax, ebx
mov dword [ebp - 0x124], eax
test ecx, ecx
jle 0x4b7564
mov edi, dword [ebp - 0x128]
mov dl, byte [ebp - 0x118]
cmp byte [edi], dl
mov edx, dword [ebp - 0x128]
jne 0x4b7556
cmp dword [ebp - 0x120], 0
mov esi, ebx
mov dword [ebp - 0x11c], ebx
jle 0x4b7556
mov al, byte [edi + esi]
cmp al, byte [ebp + esi - 0x118]
jne 0x4b7550
mov eax, dword [ebp - 0x11c]
inc eax
mov dword [ebp - 0x11c], eax
cmp eax, dword [ebp - 0x120]
je 0x4b7570
inc esi
cmp esi, dword [ebp - 0x120]
jl 0x4b7526
mov eax, dword [ebp - 0x124]
inc eax
inc edi
mov dword [ebp - 0x124], eax
cmp eax, ecx
jl 0x4b7505
jmp 0x4b756a
mov edx, dword [ebp - 0x128]
mov dword [ebp - 0x12c], ebx
push edx
call fcn.00484647
mov eax, dword [ebp - 0x12c]
pop ecx
call fcn.00485132
ret