joyce8/EMBER2024-capa huggingface dataset:
Function at 0x482440
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7cc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x434
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x18], esi
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x10], esp
cmp eax, ebx
je 0x48247e
push eax
call fcn.004a22be
add esp, 4
mov dword [esi + 0xc], ebx
push 0x400
lea ecx, [ebp - 0x40]
mov dword [esi + 0x10], ebx
call fcn.004bd68e
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x43f]
mov byte [ebp - 0x440], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, 1
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], al
cmp dword [ebp - 0x14], ebx
je 0x4824fd
mov edx, dword [esi + 8]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x440]
push 0x400
push ecx
push edx
call edi
cmp eax, ebx
je 0x4824ba
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jbe 0x4824ba
push eax
lea eax, [ebp - 0x440]
push eax
lea ecx, [ebp - 0x40]
call fcn.004bd8b1
jmp 0x4824ba
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], ebx
call fcn.004b6554
mov edi, eax
cmp edi, ebx
jbe 0x48251c
lea ecx, [ebp - 0x40]
call fcn.004bd741
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edi
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
cmp ecx, edi
lea ecx, [ebp - 0x40]
sbb esi, esi
neg esi
call fcn.004bd753
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4828f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c7d5a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea ecx, [esi + 0x34]
mov dword [esp + 0x10], 6
call fcn.004b5ad2
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 5
call fcn.004b5ad2
lea ecx, [esi + 0x2c]
mov byte [esp + 0x10], 4
call fcn.004b5ad2
lea ecx, [esi + 0x28]
mov byte [esp + 0x10], 3
call fcn.004b5ad2
lea ecx, [esi + 0xc]
mov byte [esp + 0x10], 2
call fcn.004b5ad2
lea ecx, [esi + 8]
mov byte [esp + 0x10], 1
call fcn.004b5ad2
lea ecx, [esi + 4]
mov byte [esp + 0x10], 0
call fcn.004b5ad2
mov ecx, esi
mov dword [esp + 0x10], 0xffffffff
call fcn.004b5ad2
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x482906
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c7d5a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea ecx, [esi + 0x34]
mov dword [esp + 0x10], 6
call fcn.004b5ad2
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 5
call fcn.004b5ad2
lea ecx, [esi + 0x2c]
mov byte [esp + 0x10], 4
call fcn.004b5ad2
lea ecx, [esi + 0x28]
mov byte [esp + 0x10], 3
call fcn.004b5ad2
lea ecx, [esi + 0xc]
mov byte [esp + 0x10], 2
call fcn.004b5ad2
lea ecx, [esi + 8]
mov byte [esp + 0x10], 1
call fcn.004b5ad2
lea ecx, [esi + 4]
mov byte [esp + 0x10], 0
call fcn.004b5ad2
mov ecx, esi
mov dword [esp + 0x10], 0xffffffff
call fcn.004b5ad2
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x483ef0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x483efb
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x483ffe
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x632f50]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x632f50]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x632f50]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x632f50]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x632f50]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x632f50]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x632f50]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x632f50]
xor eax, edx
inc ecx
dec edi
jne 0x483f16
pop edi
test esi, esi
je 0x484020
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x632f50]
xor eax, edx
inc ecx
dec esi
jne 0x484002
pop esi
pop ebx
not eax
ret
Function at 0x489cc0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x489d26
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x489d26
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x489d07
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x48a0b0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x48a0e8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x48ad10
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x48ad59
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x48b1d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c80d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0048ad80
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0048ae00
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0048ae00
lea ecx, [esi + 0xc]
call fcn.004b5a5d
lea ecx, [esi + 0x10]
call fcn.004b5a5d
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0048c390
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0048c390
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0048c390
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004b5ad2
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004b5ad2
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4932b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x4932fc
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x4932fc
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x4932e6
push eax
call ebp
test ax, ax
jl 0x4932f4
inc esi
add edi, 4
cmp esi, 6
jb 0x4932d8
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.00492fb0
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x496f00
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x496f60
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x496f60
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x496f60
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x496f60
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x496f70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x4b7f01
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4b7f39
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004b5f79
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004b5f51
jmp 0x4b7f45
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4b95f3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4b9635
call fcn.004bfbca
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4b9635
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b962c
xor eax, eax
jmp 0x4b963d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b9643
pop edi
pop esi
pop ebx
ret 4
Function at 0x5889464f
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp ebx, edi
je 0x588946e9
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x588946e9
lea eax, [ebp + 0xc]
push eax
push 0x10008
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x588946ee
push edi
push edi
push edi
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x204]
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
cmp esi, 0x103
je 0x588946d2
cmp esi, edi
jne 0x588946de
lea eax, [ebp - 0x204]
push eax
push dword [ebp + 0xc]
call fcn.5889464f
mov esi, eax
cmp esi, edi
je 0x5889468d
jmp 0x588946de
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x588946ee
mov esi, 0x3f2
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x58894a61
Capabilities:
Set registry value

Disassembly:
mov eax, 0x5889ee4c
call fcn.5889ec10
sub esp, 0xc
push ebx
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString_1
lea eax, [ebp - 0x18]
push eax
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push 0xf003f
push ebx
push 0x58893b70
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x58894b1c
push esi
push edi
push dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::LoadStringW
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add eax, 2
push eax
push ecx
push 1
push ebx
push ebx
push dword [ebp - 0x10]
call esi
mov ecx, 0x58891840
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x58894ad2
sub eax, edi
inc eax
push eax
push ecx
push 1
push ebx
push 0x58891a38
push dword [ebp - 0x10]
call esi
push 4
lea eax, [ebp + 0x14]
push eax
push 3
push ebx
push 0x58891a20
push dword [ebp - 0x10]
call esi
push 4
lea eax, [ebp + 0x18]
push eax
push 3
push ebx
push 0x58891a14
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14
Function at 0x58894b37
Capabilities:
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
mov eax, 0x5889ee95
call fcn.5889ec10
sub esp, 0x20
push ebx
push esi
push edi
xor edi, edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x2c], edi
call sub.MFC42u.DLL_CString::CString_1
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CString::CString_1
lea eax, [ebp - 0x24]
push eax
push ebx
push edi
push 0x58891a50
push 0x80000002
mov byte [ebp - 4], 5
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov esi, 0x104
jne 0x58894bfc
lea eax, [ebp - 0x28]
push eax
push esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x28], esi
call sub.MFC42u.DLL_CString::GetBuffer
push eax
push edi
push edi
push 0x58891a44
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42u.DLL_CString::ReleaseBuffer
mov edi, dword [ebp - 0x18]
push esi
push esi
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::GetBuffer
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::ReleaseBuffer
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push esi
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::ReleaseBuffer
push 0x25
lea ecx, [ebp - 0x1c]
call sub.MFC42u.DLL_CString::LoadStringW
push dword [ebp - 0x1c]
lea eax, [ebp - 0x20]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0x588917f8
push eax
call sub.MFC42u.DLL_CString::Format
mov ecx, dword [ebp + 8]
add esp, 0x14
lea eax, [ebp - 0x20]
push eax
call sub.MFC42u.DLL_CString::CString_2
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x5889519b
Capabilities:
Check os version
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
call fcn.5889e13d
push eax
lea ecx, [ebp - 0xc]
call sub.MFC42u.DLL_AFX_MAINTAIN_STATE2::AFX_MAINTAIN_STATE2
lea ecx, [ebp - 4]
call sub.MFC42u.DLL_CString::CString_1
xor esi, esi
push esi
push esi
push esi
push 0x588917a0
call sub.MFC42u.DLL_AfxOleUnregisterTypeLib
test eax, eax
jne 0x588951d8
mov esi, 0x80040200
jmp 0x588952a8
push esi
call sub.MFC42u.DLL_COleObjectFactory::UpdateRegistryAll
test eax, eax
jne 0x588951ec
mov esi, 0x80040201
jmp 0x588952a8
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x110], 2
jne 0x58895219
cmp dword [ebp - 0x11c], 5
jae 0x588952a6
push edi
mov edi, 0x58891c10
push edi
lea ecx, [ebp - 4]
call fcn.5889e436
push 0x5c
lea ecx, [ebp - 4]
call fcn.5889e3be
push 0x58891bf4
lea ecx, [ebp - 4]
call sub.MFC42u.DLL_CString::operator_1
push 0x5c
lea ecx, [ebp - 4]
call fcn.5889e3be
push 0x58891bd0
lea ecx, [ebp - 4]
call sub.MFC42u.DLL_CString::operator_1
push dword [ebp - 4]
mov esi, 0x80000002
push esi
call fcn.5889464f
push edi
lea ecx, [ebp - 4]
call fcn.5889e436
push 0x5c
lea ecx, [ebp - 4]
call fcn.5889e3be
push 0x58891ad0
lea ecx, [ebp - 4]
call sub.MFC42u.DLL_CString::operator_1
push 0x5c
lea ecx, [ebp - 4]
call fcn.5889e3be
push 0x58891abc
lea ecx, [ebp - 4]
call sub.MFC42u.DLL_CString::operator_1
push dword [ebp - 4]
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
xor esi, esi
lea ecx, [ebp - 4]
call sub.MFC42u.DLL_CString::CString
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], ecx
mov eax, esi
pop esi
leave
ret
Function at 0x5889a46e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
call dword [sym.imp.ole32.dll_CoImpersonateClient]
lea eax, [ebp - 8]
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5889a4fa
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp - 0xc], 0x104
push dword [ebp - 8]
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5889a4f1
cmp dword [ebp - 4], 3
je 0x5889a4e1
cmp dword [ebp - 4], 4
je 0x5889a4e1
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x110]
push eax
call sub.MFC42u.DLL_COleVariant::operator
jmp 0x5889a4f1
movzx eax, byte [ebp - 0x110]
mov ecx, dword [ebp + 0x14]
push eax
call sub.MFC42u.DLL_COleVariant::operator_1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 0x10

Function at 0x5889a4fe
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0xc]
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x5889a543
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x14]
mov dword [ebp + 8], 4
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
ret 0x10

Function at 0x5889a54a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
lea eax, [ebp + 0xc]
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x5889a5a1
lea ecx, [ebp + 8]
mov eax, 0x104
push ecx
mov ecx, dword [ebp + 0x14]
push eax
mov dword [ebp + 8], eax
call sub.MFC42u.DLL_CString::GetBuffer
push eax
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp + 0x14]
push 0xffffffffffffffff
mov edi, eax
call sub.MFC42u.DLL_CString::ReleaseBuffer
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop ebp
ret 0x10
Function at 0x5889a79a
Capabilities:
Get file version info

Disassembly:
mov eax, 0x5889f3be
call fcn.5889ec10
sub esp, 0x18
and dword [ebp - 0x20], 0
push esi
push edi
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_1
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
xor edi, edi
inc edi
mov dword [ebp - 4], edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x5889a846
push ebx
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
push ebx
push esi
push dword [ebp - 0x18]
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x5889a833
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x588931b8
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x5889a833
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
lea eax, [ebp - 0x10]
push 0x588931a0
push eax
call sub.MFC42u.DLL_CString::Format
add esp, 0x18
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebx
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], 0
jne 0x5889a859
push 5
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::LoadStringW
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call sub.MFC42u.DLL_CString::CString_2
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x20], edi
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x5889a887
Capabilities:
Get file version info

Disassembly:
mov eax, 0x5889f429
call fcn.5889ec10
sub esp, 0x2c
and dword [ebp - 0x28], 0
push ebx
push esi
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_1
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CString::CString_1
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
mov byte [ebp - 4], 4
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x5889a976
push edi
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
push edi
push esi
push dword [ebp - 0x1c]
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x5889a963
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x5889320c
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x5889a963
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [0x588a26ec], eax
movzx ecx, word [0x588a26ee]
movzx eax, ax
push ecx
push eax
lea eax, [ebp - 0x14]
push 0x588931c0
push eax
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x14]
push edi
call sub.VERSION.dll_VerQueryValueW
push dword [ebp - 0x24]
lea ecx, [ebp - 0x10]
call fcn.5889e436
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], 0
jne 0x5889a989
push 5
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::LoadStringW
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call sub.MFC42u.DLL_CString::CString_2
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x28], ebx
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8