joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407400
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
mov esi, dword [esp + 0x114]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
push esi
call edi
mov ebp, dword [esp + 0x11c]
push 0x80
push ebp
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 1
push esi
push ebp
call ebx
test eax, eax
je 0x407453
push 1
push esi
call edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret
push esi
push 0x441e88
lea eax, [esp + 0x18]
push 0x104
push eax
call fcn.0042b070
add esp, 0x10
lea ecx, [esp + 0x10]
push 0x80
push ecx
call edi
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x10]
push 1
push eax
push esi
call ebx
test eax, eax
je 0x4074b9
push 4
lea ecx, [esp + 0x14]
push 0
push ecx
call ebx
test eax, eax
je 0x4074b9
push 1
push esi
push ebp
call ebx
test eax, eax
je 0x4074b9
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x104
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret
Function at 0x4074d0
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
sub esp, 0x138
push ebp
push esi
mov esi, dword [esp + 0x144]
test esi, esi
je 0x407525
cmp byte [esi], 0
je 0x407525
mov ebp, dword [esp + 0x148]
test ebp, ebp
je 0x407525
push esi
push 0x442000
call fcn.004112e0
push eax
call fcn.004112c0
add esp, 0xc
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x407530
push 0x441fdc
call fcn.004112e0
push eax
call fcn.004112c0
add esp, 8
pop esi
xor eax, eax
pop ebp
add esp, 0x138
ret
xor eax, eax
push edi
mov dword [esp + 0xd], eax
mov ecx, 8
mov dword [esp + 0x11], eax
lea edi, [esp + 0x1d]
mov dword [esp + 0x15], eax
mov byte [esp + 0xc], 0
mov word [esp + 0x19], ax
mov byte [esp + 0x1c], al
mov byte [esp + 0x1b], al
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push ecx
push esi
call fcn.0040c160
mov ecx, eax
call fcn.0040bcd0
mov edi, eax
push edi
push 0x441fa8
call fcn.004112e0
push eax
call fcn.004112c0
add esp, 0xc
test edi, edi
jne 0x4075b6
lea edx, [esp + 0x1c]
push 0x21
push edx
lea eax, [esp + 0x14]
push 0x10
push eax
call fcn.004028e0
add esp, 0x10
lea ecx, [esp + 0x1c]
push ecx
push 0x441f74
call fcn.004112e0
push eax
call fcn.004112c0
add esp, 0xc
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x41]
mov byte [esp + 0x40], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x40]
stosb byte es:[edi], al
push edx
push esi
xor edi, edi
call fcn.0040c160
mov ecx, eax
call fcn.0040be30
test eax, eax
je 0x40765e
lea eax, [esp + 0x40]
push eax
push esi
call fcn.0040c160
mov ecx, eax
call fcn.0040bed0
test eax, eax
jne 0x40766c
lea ecx, [esp + 0xc]
lea edx, [esp + 0x40]
push ecx
push edx
call fcn.0040c160
mov ecx, eax
call fcn.0040bcd0
mov esi, eax
push esi
push 0x441f34
call fcn.004112e0
push eax
call fcn.004112c0
add esp, 0xc
test esi, esi
jne 0x407680
lea eax, [esp + 0x1c]
push 0x21
push eax
lea ecx, [esp + 0x14]
push 0x10
push ecx
call fcn.004028e0
add esp, 0x10
lea edx, [esp + 0x1c]
push edx
push 0x441ef8
call fcn.004112e0
push eax
call fcn.004112c0
add esp, 0xc
mov edi, 1
jmp 0x407680
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x441ec8
jmp 0x407672
push eax
push 0x441e90
call fcn.004112e0
push eax
call fcn.004112c0
add esp, 0xc
push 4
lea eax, [esp + 0x44]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test edi, edi
pop edi
je 0x407525
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov dword [ebp], ecx
mov ecx, dword [esp + 0x14]
mov dword [ebp + 4], edx
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ecx
pop esi
mov eax, 1
pop ebp
add esp, 0x138
ret
Function at 0x407750
Capabilities:
Extract resource via kernel32 functions
Set file attributes
Write file on windows

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
push 0x442020
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x40777e
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
jne 0x407791
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
cmp ebp, ebx
jne 0x4077a5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebx
jne 0x4077ba
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov esi, dword [esp + 0x14]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
push 0x80
push 2
push ebx
push 7
push 0x120116
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4077f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
lea ecx, [esp + 0x18]
push ebx
push ecx
push edi
push ebp
push esi
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407817
cmp dword [esp + 0x18], edi
jne 0x407817
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
ret
Function at 0x407830
Capabilities:
Delete file
Query or enumerate registry value
Set file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp eax, edi
jne 0x40784b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
mov esi, dword [esp + 0x24]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], edi
push ecx
push edi
push edi
push edi
push esi
push eax
call ebx
test eax, eax
je 0x407873
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x10]
add eax, 0x104
push eax
mov dword [esp + 0x14], eax
call sub.MFC42.DLL_operatornew
mov ebp, eax
add esp, 4
cmp ebp, edi
jne 0x407899
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], edi
mov edx, ecx
xor eax, eax
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0
push ecx
push ebp
push 0
push 0
push esi
push edi
mov dword [esp + 0x2c], eax
call ebx
test eax, eax
jne 0x407993
mov eax, dword [esp + 0x10]
cmp eax, 0x7fffffff
ja 0x407938
test eax, eax
mov edx, eax
mov ecx, ebp
je 0x407938
cmp byte [ecx], 0
je 0x4078fb
inc ecx
dec edx
jne 0x4078f0
jmp 0x407938
test edx, edx
je 0x407938
lea ecx, [esp + 0x20]
test ecx, ecx
je 0x40790d
mov ecx, eax
sub ecx, edx
jmp 0x407911
mov ecx, dword [esp + 0x20]
sub eax, ecx
mov esi, eax
lea eax, [ecx + ebp]
je 0x407938
mov edx, 0x442024
sub edx, eax
mov cl, byte [edx + eax]
test cl, cl
je 0x407930
mov byte [eax], cl
inc eax
dec esi
jne 0x407921
jmp 0x407934
test esi, esi
jne 0x407935
dec eax
mov byte [eax], 0
lea edx, [esp + 0x24]
push edx
push ebp
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x407993
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x407978
mov esi, dword [esp + 0x28]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x24]
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSaveKeyA]
jmp 0x40798a
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push 8
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegRestoreKeyA]
test eax, eax
mov esi, 1
je 0x407997
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4079a6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.0042a030
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4079c0
Capabilities:
Check if file exists

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x442070
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4079e6
xor eax, eax
pop ecx
ret
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
test esi, esi
jne 0x407a02
push edi
call ebx
test eax, eax
je 0x407a3d
mov ecx, dword [esp + 0xc]
push esi
push edi
push 0x442054
push ecx
call fcn.00407830
add esp, 0x10
test eax, eax
je 0x407a3d
mov edi, dword [esp + 0x1c]
test esi, esi
jne 0x407a29
push edi
call ebx
test eax, eax
je 0x407a3d
mov edx, dword [esp + 0xc]
push esi
push edi
push 0x442038
push edx
call fcn.00407830
add esp, 0x10
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x407e60
Capabilities:
Create process on windows
Terminate process

Disassembly:
sub esp, 0x158
mov eax, dword [esp + 0x15c]
push esi
push edi
push eax
call dword [sym.imp.MSVCRT.dll__strdup]
mov esi, eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x61]
mov byte [esp + 0x60], 0
add esp, 4
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x5c]
push 0x104
push ecx
push 0
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor edx, edx
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 8], edx
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], edx
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], edx
push eax
push ecx
push edx
push edx
push edx
push edx
push edx
mov dword [esp + 0x30], edx
push edx
lea edx, [esp + 0x7c]
push esi
push edx
mov dword [esp + 0x40], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x407f05
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
push 0
call dword [sym.imp.MSVCRT.dll_exit]
pop edi
pop esi
add esp, 0x158
ret

Function at 0x407f10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x10d]
mov byte [esp + 0x10c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
lea ecx, [esp + 8]
push 0x104
lea edx, [esp + 0xc]
push ecx
push edx
call esi
lea eax, [esp + 8]
push 0x44210c
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [esp + 0x10c]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x10c]
push 0x104
lea eax, [esp + 0x110]
push edx
push eax
call esi
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_StrCmpNIA]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
add esp, 0x208
ret
Function at 0x408050
Capabilities:
Enumerate device drivers on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436ff0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], esp
xor esi, esi
push eax
push esi
push esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
call sub.PSAPI.DLL_EnumDeviceDrivers
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], esi
push ecx
call sub.MFC42.DLL_operatornew
mov ebx, eax
add esp, 4
cmp ebx, esi
mov dword [ebp - 0x1c], ebx
jne 0x4080b8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x14]
push edx
push eax
push ebx
call sub.PSAPI.DLL_EnumDeviceDrivers
test eax, eax
je 0x4081cc
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], esi
test eax, 0xfffffffc
jbe 0x4081cc
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x227]
mov byte [ebp - 0x228], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x123]
mov byte [ebp - 0x124], 0
mov esi, dword [ebx]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 0x228]
push ecx
push esi
stosb byte es:[edi], al
call sub.PSAPI.DLL_GetDeviceDriverBaseNameA
test eax, eax
je 0x40813e
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x228]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x408154
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
inc eax
add ebx, 4
shr ecx, 2
cmp eax, ecx
mov dword [ebp - 0x20], eax
jb 0x4080df
jmp 0x4081c9
lea edx, [ebp - 0x124]
push 0x104
push edx
push esi
call sub.PSAPI.DLL_GetDeviceDriverFileNameA
test eax, eax
jne 0x40816f
mov dword [ebp - 0x18], eax
jmp 0x4081c9
push 4
lea eax, [ebp - 0x124]
push 0x442114
push eax
lea edi, [ebp - 0x124]
call dword [sym.imp.SHLWAPI.dll_StrCmpNIA]
test eax, eax
jne 0x408193
lea edi, [ebp - 0x120]
mov ecx, dword [ebp + 0x10]
cmp ecx, 0x7fffffff
ja 0x4081c2
mov eax, dword [ebp + 0xc]
mov esi, ecx
test ecx, ecx
je 0x4081c2
mov edx, edi
sub edx, eax
mov cl, byte [edx + eax]
test cl, cl
je 0x4081ba
mov byte [eax], cl
inc eax
dec esi
jne 0x4081ab
jmp 0x4081be
test esi, esi
jne 0x4081bf
dec eax
mov byte [eax], 0
mov dword [ebp - 0x18], 1
mov ebx, dword [ebp - 0x1c]
push ebx
call fcn.0042a030
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408390
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x310
push esi
push edi
push 0
push 0
push 3
push 0
push 1
push 0x120089
push 0x442144
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x4083c2
pop edi
xor eax, eax
pop esi
add esp, 0x310
ret
lea eax, [esp + 0xe]
push 0x102
push eax
push 0x442134
mov byte [esp + 0x18], 0x43
mov byte [esp + 0x19], 0x3a
call fcn.00408050
add esp, 0xc
test eax, eax
jne 0x4083f0
pop edi
pop esi
add esp, 0x310
ret
mov al, byte [esp + 0xf]
lea esi, [esp + 0xe]
cmp al, 0x3a
je 0x408461
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
lea edx, [esp + 0x110]
push ecx
push edx
stosw word es:[edi], ax
push 0
push 0x44212c
push 0x441de8
push reloc.OLEAUT32.dll_SysReAllocString
stosb byte es:[edi], al
mov dword [esp + 0x20], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
je 0x408452
pop edi
xor eax, eax
pop esi
add esp, 0x310
ret
mov al, byte [esp + 0x110]
lea esi, [esp + 0xc]
mov byte [esp + 0xc], al
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x408475
pop edi
pop esi
add esp, 0x310
ret
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x215]
mov byte [esp + 0x214], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x214]
push 0x104
push ecx
push esi
stosb byte es:[edi], al
call fcn.004081f0
add esp, 0xc
lea edx, [esp + 0x214]
push 0x44211c
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
xor ecx, ecx
pop edi
test eax, eax
setl cl
mov eax, ecx
pop esi
add esp, 0x310
ret

Function at 0x4084d0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push edi
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
pop edi
jne 0x408503
add esp, 0x94
ret
mov ecx, dword [esp + 4]
xor eax, eax
cmp ecx, 5
jae 0x40851a
mov eax, 1
add esp, 0x94
ret
jne 0x40854f
mov ecx, dword [esp + 8]
sub ecx, 0
je 0x408543
dec ecx
je 0x408537
dec ecx
jne 0x408581
mov eax, 4
add esp, 0x94
ret
mov eax, 3
add esp, 0x94
ret
mov eax, 2
add esp, 0x94
ret
cmp ecx, 6
jne 0x40857c
mov eax, dword [esp + 8]
test eax, eax
jne 0x408568
mov eax, 5
add esp, 0x94
ret
xor ecx, ecx
cmp eax, 1
setne cl
add ecx, 6
mov eax, ecx
add esp, 0x94
ret
mov eax, 7
add esp, 0x94
ret

Function at 0x408590
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x442164
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4085dd
mov edx, dword [esp]
push esi
lea ecx, [esp + 0xc]
push 4
push ecx
push 4
push eax
push 0x442154
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret
Function at 0x408820
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x12c
push esi
push 0
push 2
mov dword [esp + 0xc], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x408849
xor eax, eax
pop esi
add esp, 0x12c
ret
lea eax, [esp + 8]
mov dword [esp + 8], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40883f
push ebx
mov ebx, dword [esp + 0x138]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
mov edi, dword [esp + 0x144]
call ebp
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
je 0x408890
push edi
push ebx
push ecx
call fcn.004088e0
add esp, 0xc
test eax, eax
jne 0x4088a1
lea ecx, [esp + 0x14]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x4088ba
jmp 0x408877
push esi
mov edi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x12c
ret
mov edi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x12c
ret

Function at 0x409ac0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4370b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [esp + 0x20]
push 0x441ac8
lea ecx, [esp + 0x24]
xor ebx, ebx
push eax
push ecx
mov dword [esp + 0x20], ebx
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 1
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x20]
mov byte [esp + 0x14], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 4]
mov dword [esp + 4], ebx
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, ebx
je 0x409b5a
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc
mov eax, dword [esp + 4]
push ebp
push esi
lea edx, [esp + 0x28]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edx
push ebx
push ebx
push ebx
push ebx
push eax
xor esi, esi
xor ebp, ebp
mov dword [esp + 0x44], ebx
call edi
cmp eax, ebx
jne 0x409bb5
mov ecx, dword [esp + 0x2c]
push ecx
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x409bb5
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x2c]
push edx
push esi
push ebx
push ebx
push ebx
push eax
call edi
cmp eax, ebx
jne 0x409bb5
mov ecx, dword [esp + 0x30]
push esi
call sub.MFC42.DLL_CString::operator_1
mov ebp, 1
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x409bcd
push esi
call fcn.0042a030
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc
Function at 0x409c00
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x4370ec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 3]
push ebx
push ebp
push esi
push edi
mov edi, ecx
push 0xc
mov dword [esp + 0x34], edi
mov byte [edi + 4], al
call sub.MFC42.DLL_operatornew
xor ebx, ebx
mov dword [eax], eax
mov dword [eax + 4], eax
add esp, 4
mov dword [edi + 8], eax
mov dword [edi + 0xc], ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], ebx
push ecx
push 0x441adc
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [edi], 0x439d2c
mov dword [esp + 0x20], ebx
xor ebp, ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, ebx
jne 0x409db1
push ebx
push ebx
mov ecx, dword [esp + 0x1c]
push ebx
push ebx
push ebx
lea edx, [esp + 0x2c]
push ebx
lea eax, [esp + 0x3c]
push edx
push eax
push ebx
push ebx
push ebx
push ecx
xor esi, esi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x48], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp eax, ebx
jne 0x409db1
mov eax, dword [esp + 0x18]
inc eax
push eax
mov dword [esp + 0x1c], eax
call sub.MFC42.DLL_operatornew
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x409db1
mov edx, dword [esp + 0x18]
xor ebx, ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x34]
push ebx
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x24]
mov eax, esi
push ecx
push ebp
inc esi
push eax
push edx
mov dword [esp + 0x4c], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
je 0x409db1
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_4
push ebp
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 1
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push ecx
push edx
mov ecx, edi
mov byte [esp + 0x50], 2
call fcn.00409ac0
test eax, eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 1
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x409d48
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 0
call sub.MFC42.DLL_CString::CString
jmp 0x409cb9
mov esi, dword [edi + 8]
push 0xc
mov ebx, dword [esi + 4]
call sub.MFC42.DLL_operatornew
add esp, 4
mov ecx, esi
test esi, esi
jne 0x409d60
mov ecx, eax
mov dword [eax], ecx
mov ecx, ebx
test ebx, ebx
jne 0x409d6a
mov ecx, eax
mov dword [eax + 4], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
lea ecx, [eax + 8]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
test ecx, ecx
mov byte [esp + 0x44], 3
je 0x409d93
lea eax, [esp + 0x1c]
push eax
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0x1c]
inc eax
mov byte [esp + 0x44], 0
mov dword [edi + 0xc], eax
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x2c]
jmp 0x409cb9
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x409dc0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebp, ebx
je 0x409dcd
push ebp
call fcn.0042a030
add esp, 4
mov ecx, dword [esp + 0x3c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret