joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41fad1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
xor esi, esi
push edi
push esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call sub.gdiplus.dll_GdiplusStartup
push dword [ebp + 0x10]
movzx eax, word [ebp + 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
je 0x41fbb7
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, esi
je 0x41fbb6
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, esi
je 0x41fbb6
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x41fbb6
push ebx
push edi
push eax
call fcn.0043e3b0
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp + 0xc], esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x41fbb6
push dword [ebp + 0xc]
call fcn.0041fe44
pop ecx
mov edi, eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp edi, esi
je 0x41fbb6
mov eax, dword [edi + 8]
mov dword [edi + 8], esi
cmp eax, esi
jne 0x41fbae
push esi
lea eax, [ebp - 0xc]
push eax
push dword [edi + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
cmp eax, esi
je 0x41fbae
mov dword [edi + 8], eax
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
pop ebx
push dword [ebp - 8]
call sub.gdiplus.dll_GdiplusShutdown
cmp dword [ebp - 4], esi
pop edi
pop esi
je 0x41fbcf
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x4218e2
Capabilities:
Get storage device properties

Disassembly:
push ebp
lea ebp, [esp - 0x2c9c]
mov eax, 0x2d1c
call fcn.0045ff20
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp + 0x2c98], eax
mov eax, dword [ebp + 0x2ca4]
push ebx
xor ebx, ebx
mov dword [ebp - 0x7c], eax
cmp eax, ebx
je 0x4219fb
push esi
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
push edi
push dword [ebp - 0x70]
mov eax, 0x200
push 0x4786e4
lea edi, [ebp + 0x2a98]
call fcn.00418d8a
pop ecx
pop ecx
push ebx
push ebx
push 3
push ebx
push 3
push ebx
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x78], eax
cmp eax, 0xffffffff
je 0x4219e7
xor eax, eax
lea edi, [ebp - 0x6c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, 0x2710
push esi
lea eax, [ebp - 0x60]
push ebx
push eax
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
call fcn.0043e330
add esp, 0xc
push ebx
lea eax, [ebp - 0x80]
push eax
push esi
lea eax, [ebp - 0x60]
push eax
push 0xc
lea eax, [ebp - 0x6c]
push eax
push 0x2d1400
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4219d9
push 0x3e8
lea eax, [ebp + 0x26b0]
push ebx
push eax
call fcn.0043e330
mov eax, dword [ebp - 0x48]
add esp, 0xc
lea esi, [ebp + 0x26b0]
lea ecx, [ebp - 0x60]
call fcn.0042819b
mov edx, dword [ebp - 0x7c]
mov eax, esi
push eax
push 0x64
pop ecx
call fcn.004211dc
test eax, eax
jne 0x4219d9
mov dword [ebp - 0x74], 1
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x74], ebx
jne 0x4219f4
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x10
jl 0x42191d
mov eax, dword [ebp - 0x74]
pop edi
pop esi
jmp 0x4219fd
xor eax, eax
mov ecx, dword [ebp + 0x2c98]
xor ecx, ebp
pop ebx
call fcn.0043b2b9
add ebp, 0x2c9c
leave
ret
Function at 0x4220bd
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x4fc
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp + 0x70], eax
mov eax, dword [ebp + 0x7c]
push ebx
xor ebx, ebx
mov dword [ebp - 0x488], eax
cmp eax, ebx
je 0x42225f
push 0x64
lea eax, [ebp + 0xc]
push ebx
push eax
call fcn.0043e330
add esp, 0xc
lea eax, [ebp - 0x470]
push eax
push 8
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42223d
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0x260]
push eax
mov dword [ebp - 0x474], ebx
push ebx
jmp 0x422216
lea eax, [ebp - 0x47c]
push eax
push 1
push ebx
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x470]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4221f8
lea eax, [ebp - 0x484]
push eax
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x480]
push eax
push ebx
push 0x478874
push dword [ebp - 0x47c]
mov dword [ebp - 0x480], 1
mov dword [ebp - 0x484], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4221ec
push 0x64
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.0043e330
lea eax, [ebp - 0x46c]
push eax
lea ecx, [ebp - 0x58]
call fcn.00421fc0
add esp, 0x10
test eax, eax
je 0x4221ec
cmp byte [ebp + 0xc], bl
je 0x4221d9
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jge 0x4221ec
push SysReAllocString
push 0x64
lea eax, [ebp - 0x58]
pop ecx
lea edx, [ebp + 0xc]
call fcn.0042132a
push dword [ebp - 0x47c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x474]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x474]
push dword [ebp - 0x470]
mov dword [ebp - 0x478], 0x104
call esi
test eax, eax
je 0x42213c
push dword [ebp - 0x470]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
cmp byte [ebp + 0xc], bl
je 0x42225f
mov edx, dword [ebp - 0x488]
lea eax, [ebp + 0xc]
push eax
push 0x64
pop ecx
call fcn.004211dc
xor ecx, ecx
test eax, eax
setge cl
mov eax, ecx
jmp 0x422261
xor eax, eax
mov ecx, dword [ebp + 0x70]
xor ecx, ebp
pop ebx
call fcn.0043b2b9
add ebp, 0x74
leave
ret
Function at 0x42240d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x514
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
test ebx, ebx
je 0x422529
mov esi, 0x400
push esi
lea eax, [ebp - 0x508]
push 0
push eax
mov dword [ebp - 0x510], 1
mov dword [ebp - 0x50c], esi
call fcn.0043e330
add esp, 0xc
lea eax, [ebp - 0x50c]
push eax
lea eax, [ebp - 0x508]
push eax
lea eax, [ebp - 0x510]
push eax
push 0x4788a8
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x422529
lea eax, [ebp - 0x508]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42248b
sub eax, edx
cmp eax, 0x40
jne 0x422529
push 0x20
lea eax, [ebp - 0x508]
mov ecx, 0x80
lea edx, [ebp - 0x88]
call fcn.0042132a
push SysReAllocString
lea eax, [ebp - 0x4e8]
mov ecx, 0x80
lea edx, [ebp - 0x108]
call fcn.0042132a
push esi
lea eax, [ebp - 0x508]
push 0
push eax
call fcn.0043e330
add esp, 0xc
lea eax, [ebp - 0x508]
push esi
push eax
lea ecx, [ebp - 0x88]
call fcn.0042142a
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x508]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x422529
lea eax, [ebp - 0x88]
push eax
mov ecx, 0x103
mov edx, ebx
call fcn.004211dc
neg eax
sbb eax, eax
inc eax
jmp 0x42252b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043b2b9
leave
ret
Function at 0x42288f
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x1a8
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
push edi
push 6
pop ecx
mov esi, 0x4788e0
lea edi, [ebp + 0x58]
rep movsd dword es:[edi], dword [esi]
push 0x1a
mov ebx, 0x104
mov ecx, 0xd3a
pop eax
lea edx, [ebp + 0x58]
mov dword [ebp - 0x12c], 1
mov dword [ebp - 0x130], ebx
movsw word es:[edi], word [esi]
call fcn.00422859
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x12c]
push eax
push str.ExeString
lea eax, [ebp + 0x58]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x422921
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x422921
xor eax, eax
inc eax
jmp 0x422a32
push ebx
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.0043e330
add esp, 0xc
push 0xf
pop ecx
mov esi, 0x478908
lea edi, [ebp + 0x1c]
lea eax, [ebp + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x12c], 1
mov dword [ebp - 0x130], ebx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422956
sub eax, esi
mov ecx, 0xd3c
lea edx, [ebp + 0x1c]
call fcn.00422859
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x12c]
push eax
push 0x477db0
lea eax, [ebp + 0x1c]
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x4229ae
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x422919
push ebx
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.0043e330
add esp, 0xc
push 0xf
pop ecx
mov esi, 0x478944
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
push 0x3d
mov ecx, 0xd3c
pop eax
lea edx, [ebp - 0x24]
mov dword [ebp - 0x12c], 1
mov dword [ebp - 0x130], ebx
movsb byte es:[edi], byte [esi]
call fcn.00422859
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x12c]
push eax
push 0x477db0
lea eax, [ebp - 0x24]
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x422a30
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x422919
xor eax, eax
mov ecx, dword [ebp + 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b2b9
add ebp, 0x78
leave
ret
Function at 0x422a44
Capabilities:
Check if file exists
Enumerate files on windows
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x89c
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push eax
push 0x26
lea ecx, [ebp - 0x230]
push ecx
push eax
mov dword [ebp - 0x894], eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x422c08
mov esi, 0x478984
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x478998
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, 0xd3e
push 0x11
mov ecx, esi
pop eax
lea edx, [ebp - 0x28]
call fcn.00422859
push 0xe
mov ecx, esi
pop eax
lea edx, [ebp - 0x14]
call fcn.00422859
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x28]
push eax
call ebx
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x422ad4
and dword [ebp - 0x89c], 0
jmp 0x422af0
lea eax, [edi + edi]
call fcn.0044dbb0
mov esi, esp
push 3
push edi
lea eax, [ebp - 0x28]
push eax
call fcn.004178a6
mov dword [ebp - 0x89c], eax
lea eax, [ebp - 0x14]
push eax
call ebx
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x422b0a
and dword [ebp - 0x898], 0
jmp 0x422b26
lea eax, [edi + edi]
call fcn.0044dbb0
mov esi, esp
push 3
push edi
lea eax, [ebp - 0x14]
push eax
call fcn.004178a6
mov dword [ebp - 0x898], eax
push dword [ebp - 0x89c]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x230]
push eax
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x4789a8
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x640]
push eax
call edi
lea eax, [ebp - 0x890]
push eax
lea eax, [ebp - 0x640]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x422c02
test byte [ebp - 0x890], 0x10
je 0x422bdd
cmp word [ebp - 0x864], 0x2e
jne 0x422ba6
cmp word [ebp - 0x862], 0
je 0x422bdd
cmp word [ebp - 0x862], 0x2e
jne 0x422ba6
cmp word [ebp - 0x860], 0
je 0x422bdd
lea eax, [ebp - 0x864]
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x438]
push eax
call edi
push dword [ebp - 0x898]
lea eax, [ebp - 0x438]
push eax
call esi
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x422bf1
lea eax, [ebp - 0x890]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x422b75
jmp 0x422bfb
mov dword [ebp - 0x894], 1
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x894]
lea esp, [ebp - 0x8a8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b2b9
leave
ret
Function at 0x422c1d
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x478998
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, 0xd3e
push 0xe
mov ecx, ebx
pop eax
lea edx, [ebp - 0x24]
movsw word es:[edi], word [esi]
call fcn.00422859
mov esi, 0x4789ac
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0xd
mov ecx, ebx
pop eax
lea edx, [ebp - 0x14]
movsb byte es:[edi], byte [esi]
call fcn.00422859
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
and dword [ebp - 0x258], 0
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x250], 0x22c
call ebx
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x422c9c
and dword [ebp - 0x254], 0
jmp 0x422cb8
lea eax, [edi + edi]
call fcn.0044dbb0
mov esi, esp
push 3
push edi
lea eax, [ebp - 0x24]
push eax
call fcn.004178a6
mov dword [ebp - 0x254], eax
lea eax, [ebp - 0x14]
push eax
call ebx
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x422ccd
xor ebx, ebx
jmp 0x422ce5
lea eax, [edi + edi]
call fcn.0044dbb0
mov esi, esp
push 3
push edi
lea eax, [ebp - 0x14]
push eax
call fcn.004178a6
mov ebx, eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x422d51
lea eax, [ebp - 0x250]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x422d4a
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
push dword [ebp - 0x254]
lea eax, [ebp - 0x22c]
push eax
call esi
test eax, eax
je 0x422d40
push ebx
lea eax, [ebp - 0x22c]
push eax
call esi
test eax, eax
je 0x422d40
lea eax, [ebp - 0x250]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x422d0c
jmp 0x422d4a
mov dword [ebp - 0x258], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x258]
lea esp, [ebp - 0x264]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b2b9
leave
ret
Function at 0x422d91
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x14
mov eax, 0x46b32e
call fcn.004438a7
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp], ax
lea eax, [ebp + 2]
push ebx
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
call fcn.0043e330
mov edi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x20]
push eax
push str.Uninstallstring
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallDriverGenius
mov esi, 0x208
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x18], esi
call edi
cmp word [ebp], bx
je 0x422e48
lea eax, [ebp]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00402ad3
mov dword [ebp - 4], ebx
lea ebx, [ebp - 0x1c]
call fcn.00424c17
call fcn.00424c62
push dword [ebp - 0x1c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x422e37
mov dword [ebp - 0x14], 1
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004031f6
xor ebx, ebx
push esi
lea eax, [ebp]
push ebx
push eax
mov dword [ebp - 0x18], esi
call fcn.0043e330
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x20]
push eax
push str.Uninstallstring
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallDriverGenius2010
push reloc.OLEAUT32.dll_SysReAllocString
call edi
cmp word [ebp], bx
je 0x422ebc
lea eax, [ebp]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00402ad3
lea ebx, [ebp - 0x10]
mov dword [ebp - 4], 1
call fcn.00424c17
call fcn.00424c62
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x422eb1
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004031f6
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0043b2b9
add ebp, 0x20c
leave
ret
Function at 0x4231ee
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [ebp - 0x223]
push ebx
push eax
mov byte [ebp - 0x224], bl
call fcn.0043e330
push esi
lea eax, [ebp - 0x11f]
push ebx
push eax
mov byte [ebp - 0x120], bl
call fcn.0043e330
push esi
lea eax, [ebp - 0x327]
push ebx
push eax
mov byte [ebp - 0x328], bl
call fcn.0043e330
add esp, 0x24
push ebx
push 0x26
lea eax, [ebp - 0x224]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x42330a
push edi
mov esi, 0x478e10
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, 0x478e18
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0xc]
movsw word es:[edi], word [esi]
lea edx, [eax + 1]
pop edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x423282
sub eax, edx
mov esi, 0x237f
mov ecx, esi
lea edx, [ebp - 0xc]
call fcn.00422859
lea eax, [ebp - 0x1c]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4232a0
sub eax, ecx
mov ecx, esi
lea edx, [ebp - 0x1c]
call fcn.00422859
push SysReAllocString
lea eax, [ebp - 0x224]
mov ecx, 0x104
lea edx, [ebp - 0x120]
call fcn.0042132a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b2b9
leave
ret
Function at 0x423318
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x478e18
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x24]
movsw word es:[edi], word [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x423341
sub eax, edx
mov ebx, 0x237f
mov ecx, ebx
lea edx, [ebp - 0x24]
call fcn.00422859
mov esi, 0x478e28
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
movsb byte es:[edi], byte [esi]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42336b
sub eax, esi
mov ecx, ebx
lea edx, [ebp - 0x14]
call fcn.00422859
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
and dword [ebp - 0x258], 0
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x250], 0x22c
call ebx
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x4233af
and dword [ebp - 0x254], 0
jmp 0x4233cb
lea eax, [edi + edi]
call fcn.0044dbb0
mov esi, esp
push 3
push edi
lea eax, [ebp - 0x24]
push eax
call fcn.004178a6
mov dword [ebp - 0x254], eax
lea eax, [ebp - 0x14]
push eax
call ebx
mov ebx, eax
inc ebx
cmp ebx, 0x3fffffff
jle 0x4233e0
xor edi, edi
jmp 0x4233f8
lea eax, [ebx + ebx]
call fcn.0044dbb0
mov esi, esp
push 3
push ebx
lea eax, [ebp - 0x14]
push eax
call fcn.004178a6
mov edi, eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x423464
lea eax, [ebp - 0x250]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x42345d
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
push dword [ebp - 0x254]
lea eax, [ebp - 0x22c]
push eax
call esi
test eax, eax
je 0x423453
push edi
lea eax, [ebp - 0x22c]
push eax
call esi
test eax, eax
je 0x423453
lea eax, [ebp - 0x250]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x42341f
jmp 0x42345d
mov dword [ebp - 0x258], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x258]
lea esp, [ebp - 0x264]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b2b9
leave
ret
Function at 0x4234a1
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x103
lea eax, [ebp - 0x12f]
push 0
push eax
mov byte [ebp - 0x130], 0
call fcn.0043e330
add esp, 0xc
push 7
pop ecx
mov esi, 0x478e38
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
mov esi, 0x478e54
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x2c]
pop edi
mov dword [ebp - 0x138], 1
mov dword [ebp - 0x134], 0x104
lea ecx, [eax + 1]
pop esi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x423507
sub eax, ecx
mov ecx, 0x837
lea edx, [ebp - 0x2c]
call fcn.00422859
lea eax, [ebp - 0x10]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x423523
sub eax, ecx
mov ecx, 0x844
lea edx, [ebp - 0x10]
call fcn.00422859
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x138]
push eax
push str.ProgramPath
lea eax, [ebp - 0x2c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x423592
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x130]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
test eax, eax
je 0x423592
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x423592
xor eax, eax
inc eax
jmp 0x423594
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b2b9
leave
ret