joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407ac0
Capabilities:
Get common file path
Persist via run registry key

Disassembly:
push 0xffffffffffffffff
push 0x454b02
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push esi
lea eax, [esp + 0x11c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [0x471df4]
mov dword [esp + 4], eax
mov dword [esp + 0x228], 0
mov dword [esp + 8], eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x228], 1
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.UIUCU2.EXE
lea ecx, [esp + 0x10]
call fcn.0044a442
mov esi, eax
lea edx, [esp + 0x18]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x22c], 2
call fcn.0044a442
push esi
push eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x230], 3
push eax
call fcn.0044a5b7
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x22c], 4
call fcn.0044a4c1
lea ecx, [esp + 0x14]
mov byte [esp + 0x228], 3
call fcn.0044a3d4
lea ecx, [esp + 0x10]
mov byte [esp + 0x228], 2
call fcn.0044a3d4
lea ecx, [esp + 0xc]
mov byte [esp + 0x228], 1
call fcn.0044a3d4
mov ecx, dword [esp + 4]
lea edx, [esp + 0x11c]
push ecx
push edx
call fcn.0042cf30
add esp, 8
lea eax, [esp + 4]
lea ecx, [esp + 0xc]
push str.__CLEAN_UP2
push eax
push ecx
call fcn.0044a61d
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x22c], 5
call fcn.0044a4c1
lea ecx, [esp + 0xc]
mov byte [esp + 0x228], 1
call fcn.0044a3d4
mov edx, dword [esp + 8]
push 0
push edx
push str.UIUCU2
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
call fcn.004301e0
add esp, 0x14
lea ecx, [esp + 8]
mov byte [esp + 0x228], 0
call fcn.0044a3d4
mov dword [esp + 0x228], 0xffffffff
lea ecx, [esp + 4]
call fcn.0044a3d4
mov ecx, dword [esp + 0x220]
pop esi
mov dword fs:[0], ecx
add esp, 0x228
ret
Function at 0x407cb0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x454b68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
mov eax, dword [0x471df4]
push ebx
push esi
mov dword [esp + 8], eax
mov dword [esp + 0x230], 0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x124]
push 0x104
push eax
mov byte [esp + 0x238], 1
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x20]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.SUCATREG.EXE
lea ecx, [esp + 0x10]
call fcn.0044a442
mov esi, eax
lea edx, [esp + 0x20]
lea ecx, [esp + 0x18]
push edx
mov byte [esp + 0x234], 2
call fcn.0044a442
push esi
push eax
lea eax, [esp + 0x24]
mov bl, 3
push eax
mov byte [esp + 0x23c], bl
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x234], 4
call fcn.0044a4c1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x230], bl
call fcn.0044a3d4
lea ecx, [esp + 0x18]
mov byte [esp + 0x230], 2
call fcn.0044a3d4
lea ecx, [esp + 0xc]
mov byte [esp + 0x230], 1
call fcn.0044a3d4
mov ecx, dword [0x471df4]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x238]
mov byte [esp + 0x230], 5
mov eax, dword [ecx + 0xc]
mov esi, dword [ecx + 4]
test eax, eax
jbe 0x407e43
push edi
mov edi, eax
mov bl, 6
mov eax, esi
mov esi, dword [esi]
add eax, 8
lea ecx, [esp + 0x14]
push eax
call fcn.0044a4c1
push 0x46adf8
lea ecx, [esp + 0x20]
call fcn.0044a442
lea edx, [esp + 0x14]
mov byte [esp + 0x234], bl
push edx
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x238], 7
call fcn.0044a4c1
lea ecx, [esp + 0x10]
mov byte [esp + 0x234], bl
call fcn.0044a3d4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x234], 5
call fcn.0044a3d4
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
push 0
push ecx
push eax
push eax
push 0
call fcn.0043ad00
add esp, 0x14
dec edi
jne 0x407dbb
pop edi
lea ecx, [esp + 0x10]
mov byte [esp + 0x230], 1
call fcn.0044a3d4
lea ecx, [esp + 0x14]
mov byte [esp + 0x230], 0
call fcn.0044a3d4
lea ecx, [esp + 8]
mov dword [esp + 0x230], 0xffffffff
call fcn.0044a3d4
mov ecx, dword [esp + 0x228]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x22c
ret 4
Function at 0x407ea0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x454bcd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
mov eax, dword [0x471df4]
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor ebp, ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x168], ebp
mov dword [esp + 0x18], eax
mov ebx, 1
push str.SETUP_
lea ecx, [esp + 0x18]
mov byte [esp + 0x16c], bl
call fcn.0044a442
push eax
lea eax, [esi + 0x5e0]
lea ecx, [esp + 0x20]
push eax
push ecx
mov byte [esp + 0x174], 2
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x16c], 3
call fcn.0044a4c1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x168], 2
call fcn.0044a3d4
lea ecx, [esp + 0x14]
mov byte [esp + 0x168], bl
call fcn.0044a3d4
push 0x46ae0c
lea ecx, [esp + 0x20]
call fcn.0044a442
push eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x18]
push edx
push eax
mov byte [esp + 0x174], 4
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x16c], 5
call fcn.0044a4c1
lea ecx, [esp + 0x14]
mov byte [esp + 0x168], 4
call fcn.0044a3d4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x168], bl
call fcn.0044a3d4
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x408029
add esi, 0x5b8
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.0044a61d
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x16c], 6
call fcn.0044a4c1
lea ecx, [esp + 0x14]
mov byte [esp + 0x168], bl
call fcn.0044a3d4
lea ecx, [esp + 0x10]
call fcn.0044a88a
mov eax, dword [esp + 0x10]
push 0
push 0
push 0
push 0
push 0
push ebx
push 0
push eax
mov ecx, esi
call fcn.00421bd0
test eax, eax
je 0x408012
mov ebp, ebx
lea ecx, [esp + 0x20]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x407fb4
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x18]
mov byte [esp + 0x168], 0
call fcn.0044a3d4
lea ecx, [esp + 0x10]
mov dword [esp + 0x168], 0xffffffff
call fcn.0044a3d4
mov ecx, dword [esp + 0x160]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x15c
ret
Function at 0x408070
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x454c35
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push esi
mov eax, dword [0x471df4]
mov dword [esp + 0x230], 0
mov dword [esp + 8], eax
lea ecx, [esp + 0x124]
mov byte [esp + 0x230], 1
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.CnxtTemp.inf
lea ecx, [esp + 0x10]
call fcn.0044a442
mov esi, eax
lea edx, [esp + 0x124]
lea ecx, [esp + 0x1c]
push edx
mov byte [esp + 0x234], 2
call fcn.0044a442
push esi
push eax
lea eax, [esp + 0x20]
mov byte [esp + 0x238], 3
push eax
call fcn.0044a5b7
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x234], 4
call fcn.0044a4c1
lea ecx, [esp + 0x18]
mov byte [esp + 0x230], 3
call fcn.0044a3d4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x230], 2
call fcn.0044a3d4
lea ecx, [esp + 0xc]
mov byte [esp + 0x230], 1
call fcn.0044a3d4
mov eax, dword [0x471df4]
mov dword [esp + 4], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 8]
push 0x46ae3c
push ecx
mov byte [esp + 0x238], 7
call fcn.0043af00
mov esi, eax
add esp, 8
test esi, esi
je 0x408220
mov edx, dword [esp + 0x238]
push edi
push 0x46ae38
push edx
call fcn.0043af00
mov edi, eax
add esp, 8
test edi, edi
je 0x408216
push edi
lea eax, [esp + 0x28]
push 0x103
push eax
call fcn.0043ae30
add esp, 0xc
test eax, eax
je 0x40820d
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0xc]
call fcn.0044a511
lea edx, [esp + 8]
push edx
call fcn.004136a0
add esp, 4
lea ecx, [esp + 8]
push 0x46ae28
call fcn.00449464
test eax, eax
je 0x4081f6
push str.COPYFILES
lea ecx, [esp + 0xc]
call fcn.00449464
test eax, eax
je 0x4081f6
lea eax, [esp + 0x24]
push esi
push eax
call fcn.0043add0
add esp, 8
push edi
lea ecx, [esp + 0x28]
push 0x103
push ecx
call fcn.0043ae30
add esp, 0xc
test eax, eax
jne 0x4081a9
push edi
call fcn.0043ad20
add esp, 4
push esi
call fcn.0043ad20
add esp, 4
pop edi
mov edx, dword [esp + 0x238]
mov eax, dword [esp + 8]
push edx
push eax
call fcn.0042cf30
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0042cc40
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x230], 6
call fcn.0044a3d4
lea ecx, [esp + 0x14]
mov byte [esp + 0x230], 5
call fcn.0044a3d4
lea ecx, [esp + 4]
mov byte [esp + 0x230], 1
call fcn.0044a3d4
lea ecx, [esp + 8]
mov byte [esp + 0x230], 0
call fcn.0044a3d4
lea ecx, [esp + 0x238]
mov dword [esp + 0x230], 0xffffffff
call fcn.0044a3d4
mov ecx, dword [esp + 0x228]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x230
ret 4
Function at 0x40bf40
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x455561
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8ec
push ebx
lea eax, [esp + 0x1c]
xor ebx, ebx
push 0x104
push eax
push ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 8]
call fcn.0044a442
lea ecx, [esp + 4]
mov dword [esp + 0x8f8], ebx
call fcn.0044a88a
push 0x5c
lea ecx, [esp + 8]
call fcn.00449442
cmp eax, 0xffffffff
je 0x40bfd2
lea edx, [esp + 0x18]
push eax
push edx
lea ecx, [esp + 0xc]
call fcn.004493ca
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x8fc], 1
call fcn.0044a4c1
lea ecx, [esp + 0x18]
mov byte [esp + 0x8f8], bl
call fcn.0044a3d4
push str.SOFTWAREMicrosoftWindowsCurrentVersionSetup
lea ecx, [esp + 0x14]
call fcn.0044a442
mov ecx, dword [esp + 0x10]
lea eax, [esp + 8]
push eax
push 0xf003f
push ebx
push ecx
push 0x80000002
mov byte [esp + 0x90c], 2
mov dword [esp + 0x28], 0x3e8
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c0e4
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
lea eax, [esp + 0x508]
push edx
push eax
push ebx
push ebx
push str.Installation_Sources
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40c0d9
mov edx, dword [esp + 4]
push ebp
push esi
push edi
mov eax, dword [edx - 8]
lea ecx, [esp + 0x10]
push eax
call fcn.0044a7b8
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x12c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, dword [esp + 0x20]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax - 8]
lea esi, [esp + 0x514]
mov byte [esp + ecx + 0x12c], bl
mov edx, dword [eax - 8]
mov ecx, ebp
lea edi, [esp + edx + 0x12d]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [eax - 8]
mov ecx, dword [esp + 0x14]
lea eax, [eax + ebp + 1]
push eax
lea eax, [esp + 0x130]
push eax
push 7
push ebx
push str.Installation_Sources
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
test eax, eax
pop ebp
jne 0x40c0d9
mov dword [esp + 0xc], 1
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov byte [esp + 0x8f8], bl
call fcn.0044a3d4
lea ecx, [esp + 4]
mov dword [esp + 0x8f8], 0xffffffff
call fcn.0044a3d4
mov ecx, dword [esp + 0x8f0]
mov eax, dword [esp + 0xc]
pop ebx
mov dword fs:[0], ecx
add esp, 0x8f8
ret
Function at 0x40c130
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x455588
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x471df4]
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x5e0]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edi, [esi + 0x5e0]
push 0
push eax
mov dword [esp + 0x28], 0
call ebp
push str.SETUP
lea ecx, [esp + 0x18]
call fcn.0044a442
push eax
lea ecx, [esp + 0x14]
push edi
push ecx
mov byte [esp + 0x2c], 1
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 2
call fcn.0044a4c1
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 1
call fcn.0044a3d4
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 0
call fcn.0044a3d4
mov edx, dword [esp + 0xc]
push 0
push edx
call ebp
mov eax, dword [esi + 0x5dc]
not eax
test al, 0x40
je 0x40c1fd
mov ecx, esi
call fcn.00407ac0
mov ecx, esi
call fcn.0040f2c0
mov eax, dword [esi + 0xb64]
mov dword [esi + 0xd6c], 1
test eax, eax
jne 0x40c1fd
mov ecx, esi
call fcn.0040bf40
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.0044a3d4
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret

Function at 0x40c220
Capabilities:
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4555c1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push esi
lea eax, [esp + 0x10]
push edi
push eax
mov esi, ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x46b2a0
lea ecx, [esp + 0x10]
call fcn.0044a442
mov edi, eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x120], 0
push ecx
lea ecx, [esp + 0xc]
call fcn.0044a442
push edi
lea edx, [esp + 0x14]
push eax
push edx
mov byte [esp + 0x12c], 1
call fcn.0044a5b7
lea edi, [esi + 0xdb4]
push eax
mov ecx, edi
mov byte [esp + 0x124], 2
call fcn.0044a4c1
lea ecx, [esp + 0x10]
mov byte [esp + 0x120], 1
call fcn.0044a3d4
lea ecx, [esp + 8]
mov byte [esp + 0x120], 0
call fcn.0044a3d4
lea ecx, [esp + 0xc]
mov dword [esp + 0x120], 0xffffffff
call fcn.0044a3d4
test dword [esi + 0x5dc], 0x40000
je 0x40c306
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
add esp, 0x11c
ret
mov eax, dword [esi + 0xd64]
mov ecx, esi
test eax, eax
jne 0x40c32e
call fcn.0040b980
pop edi
pop esi
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
add esp, 0x11c
ret
call fcn.0040c130
mov ecx, dword [esp + 0x118]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x11c
ret
Function at 0x40c7b0
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x4556cc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebp
xor ebp, ebp
mov dword [esp + 0x124], ebp
mov eax, dword [0x471df4]
mov dword [esp + 8], eax
mov dword [esp + 0x10], eax
mov dword [esp + 4], eax
mov eax, dword [ecx + 0xd64]
mov byte [esp + 0x124], 4
cmp eax, ebp
je 0x40c7ff
push str.SystemCurrentControlSetEnum_
jmp 0x40c804
push str.Enum_
lea ecx, [esp + 0xc]
call fcn.0044a511
lea eax, [esp + 0x12c]
lea ecx, [esp + 8]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x128], 5
call fcn.0044a4c1
lea ecx, [esp + 0x14]
mov byte [esp + 0x124], 4
call fcn.0044a3d4
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
push 0x20019
push ebp
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c8f8
mov eax, dword [esp + 0xc]
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea edx, [esp + 0x20]
push 0x104
push edx
push ebp
push eax
mov esi, 1
call edi
test eax, eax
jne 0x40c8eb
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x10]
call fcn.0044a511
lea ecx, [esp + 0xc]
call fcn.0044a88a
mov edx, dword [esp + 0x138]
lea ecx, [esp + 0xc]
push edx
call fcn.00449464
cmp eax, 0xffffffff
jne 0x40c8d5
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
mov eax, esi
push 0x104
push ecx
push eax
push edx
inc esi
call edi
test eax, eax
je 0x40c88d
jmp 0x40c8eb
mov ecx, dword [esp + 0x13c]
lea eax, [esp + 0xc]
push eax
call fcn.0044a4c1
mov ebp, 1
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
lea ecx, [esp + 4]
mov byte [esp + 0x124], 3
call fcn.0044a3d4
lea ecx, [esp + 0x10]
mov byte [esp + 0x124], 2
call fcn.0044a3d4
lea ecx, [esp + 8]
mov byte [esp + 0x124], 1
call fcn.0044a3d4
lea ecx, [esp + 0x12c]
mov byte [esp + 0x124], 0
call fcn.0044a3d4
lea ecx, [esp + 0x130]
mov dword [esp + 0x124], 0xffffffff
call fcn.0044a3d4
mov ecx, dword [esp + 0x11c]
mov eax, ebp
pop ebp
mov dword fs:[0], ecx
add esp, 0x124
ret 0xc
Function at 0x40d1a0
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x455903
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
mov eax, dword [0x471df4]
push ebx
mov ebx, ecx
mov dword [esp + 8], eax
mov dword [esp + 0x140], 0
mov dword [esp + 4], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0xd64]
mov byte [esp + 0x140], 3
test eax, eax
jne 0x40d1f7
push str.Enum_
jmp 0x40d1fc
push str.SystemCurrentControlSetEnum_
lea ecx, [esp + 0xc]
call fcn.0044a511
mov ecx, dword [ebx + 0x830]
mov eax, dword [ebx + 0x828]
test ecx, ecx
jbe 0x40d3ac
push ebp
push esi
push edi
mov dword [esp + 0x20], ecx
jmp 0x40d226
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
add eax, 8
push eax
lea edx, [esp + 0x18]
lea eax, [esp + 0x28]
push edx
push eax
mov dword [esp + 0x38], ecx
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x150], 4
call fcn.0044a4c1
lea ecx, [esp + 0x24]
mov byte [esp + 0x14c], 3
call fcn.0044a3d4
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d39a
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x40]
push 0x104
push eax
push 0
push ecx
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x40d38f
lea ebp, [ebx + 0x9a4]
lea edx, [esp + 0x40]
lea ecx, [esp + 0x30]
push edx
call fcn.0044a442
mov edi, eax
push 0x46a404
lea ecx, [esp + 0x2c]
mov byte [esp + 0x150], 5
call fcn.0044a442
push eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x38]
push eax
push ecx
mov byte [esp + 0x158], 6
call fcn.0044a5b7
push edi
lea edx, [esp + 0x40]
push eax
push edx
mov byte [esp + 0x158], 7
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x150], 8
call fcn.0044a4c1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x14c], 7
call fcn.0044a3d4
lea ecx, [esp + 0x34]
mov byte [esp + 0x14c], 6
call fcn.0044a3d4
lea ecx, [esp + 0x28]
mov byte [esp + 0x14c], 5
call fcn.0044a3d4
lea ecx, [esp + 0x30]
mov byte [esp + 0x14c], 3
call fcn.0044a3d4
lea eax, [esp + 0x1c]
mov ecx, ebp
push eax
call fcn.00449c44
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x40]
mov eax, esi
push 0x104
push ecx
push eax
push edx
mov dword [ebx + 0x9c0], 0
inc esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x40d2b0
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
dec eax
mov dword [esp + 0x20], eax
jne 0x40d222
pop edi
pop esi
pop ebp
lea ecx, [esp + 0x10]
mov byte [esp + 0x140], 2
call fcn.0044a3d4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x140], 1
call fcn.0044a3d4
lea ecx, [esp + 4]
mov byte [esp + 0x140], 0
call fcn.0044a3d4
lea ecx, [esp + 8]
mov dword [esp + 0x140], 0xffffffff
call fcn.0044a3d4
mov ecx, dword [esp + 0x138]
pop ebx
mov dword fs:[0], ecx
add esp, 0x140
ret
Function at 0x40ef60
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x455c86
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push esi
lea eax, [esp + 0xc]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x110]
push 0x104
push ecx
push str.ProgramFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00430370
add esp, 0x14
lea edx, [esp + 0xc]
lea ecx, [esp + 4]
push edx
call fcn.0044a442
push 0x5c
lea ecx, [esp + 8]
mov dword [esp + 0x220], 0
call fcn.0044a84f
mov esi, dword [esp + 0x224]
cmp eax, 0xffffffff
je 0x40f023
push eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
call fcn.004493ca
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x220], 1
call fcn.0044a4c1
lea ecx, [esp + 8]
mov byte [esp + 0x21c], 0
call fcn.0044a3d4
mov ecx, dword [esp + 4]
push ecx
push str._SYSTEMDRIVE_
mov ecx, esi
call fcn.00449180
lea edx, [esp + 0xc]
push edi
push edx
push str._HOMEDRIVE_
mov ecx, esi
call fcn.00449180
lea eax, [esp + 0x10]
mov ecx, esi
push eax
push str._SYSTEMROOT_
call fcn.00449180
lea ecx, [esp + 0x10]
push ecx
push str._WINDIR_
mov ecx, esi
call fcn.00449180
lea edx, [esp + 0x114]
mov ecx, esi
push edx
push str._PROGRAMFILES_
call fcn.00449180
mov eax, dword [esi]
push 0x5c
mov ecx, esi
mov edi, dword [eax - 8]
call fcn.00449442
dec edi
cmp eax, edi
pop edi
jne 0x40f097
push 0x5c
mov ecx, esi
call fcn.00449442
cmp eax, 0xffffffff
je 0x40f097
push 1
push eax
mov ecx, esi
call fcn.004490eb
lea ecx, [esp + 4]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0044a3d4
mov ecx, dword [esp + 0x214]
pop esi
mov dword fs:[0], ecx
add esp, 0x21c
ret
Function at 0x40faa0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x455e64
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [0x471df4]
mov dword [esp + 0x168], 0
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x170]
push 0x46ae0c
lea edx, [esp + 0x18]
push ecx
push edx
mov byte [esp + 0x174], 1
call fcn.0044a61d
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x16c], 2
call fcn.0044a4c1
lea ecx, [esp + 0x14]
mov byte [esp + 0x168], 1
call fcn.0044a3d4
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40fbea
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov bl, 3
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x18]
push edx
call fcn.0044a442
push eax
lea eax, [esp + 0x174]
lea ecx, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x174], bl
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x16c], 4
call fcn.0044a4c1
lea ecx, [esp + 0x14]
mov byte [esp + 0x168], bl
call fcn.0044a3d4
lea ecx, [esp + 0x18]
mov byte [esp + 0x168], 1
call fcn.0044a3d4
push 0x46b778
lea ecx, [esp + 0x14]
call fcn.00449464
cmp eax, 0xffffffff
jne 0x40fbd3
push 0x46b774
lea ecx, [esp + 0x14]
call fcn.00449464
cmp eax, 0xffffffff
jne 0x40fbd3
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.0044a149
mov ecx, edi
call fcn.0040fa00
lea eax, [esp + 0x20]
push eax
push esi
call ebp
test eax, eax
jne 0x40fb3a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x10]
mov byte [esp + 0x168], 0
call fcn.0044a3d4
lea ecx, [esp + 0x170]
mov dword [esp + 0x168], 0xffffffff
call fcn.0044a3d4
mov ecx, dword [esp + 0x160]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x15c
ret 4