joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414a10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4f2500]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4f36ec]
mov edx, dword [eax + 0xc]
mov ecx, 0x4f36ec
call edx
add eax, 0x10
mov dword [esi], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.004276b0
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
push 1
push 0
push 0x4cda5c
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x414ae7
lea eax, [ebp - 0x214]
push eax
mov eax, dword [ebp - 0x210]
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x218]
push edx
push 0
push str.ChannelID
push eax
mov dword [ebp - 0x218], 1
mov dword [ebp - 0x214], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x210]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414ac7
push ebx
sub eax, edx
lea edx, [ebp - 0x20c]
sar eax, 1
push edx
push esi
mov ebx, eax
call fcn.00403580
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.0042292e
mov esp, ebp
pop ebp
ret

Function at 0x414b00
Capabilities:
Delete file

Disassembly:
mov eax, dword [0x4f7510]
push esi
push edi
test eax, eax
jne 0x414b2c
push 0x24d0
call fcn.0042336c
add esp, 4
test eax, eax
je 0x414b25
mov esi, eax
call fcn.00415ef0
jmp 0x414b27
xor eax, eax
mov dword [0x4f7510], eax
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
cmp byte [ebx + 0x2084], 0
je 0x414b4c
lea eax, [ebx + 0x208]
push eax
mov ecx, ebx
call fcn.00415c00
mov eax, dword [0x4f7510]
test eax, eax
jne 0x414b76
push 0x24d0
call fcn.0042336c
add esp, 4
test eax, eax
je 0x414b6f
mov esi, eax
call fcn.00415ef0
jmp 0x414b71
xor eax, eax
mov dword [0x4f7510], eax
add eax, 0x1658
push eax
call edi
mov eax, dword [0x4f7510]
test eax, eax
jne 0x414ba8
push 0x24d0
call fcn.0042336c
add esp, 4
test eax, eax
je 0x414ba1
mov esi, eax
call fcn.00415ef0
jmp 0x414ba3
xor eax, eax
mov dword [0x4f7510], eax
add eax, 0x1860
push eax
call edi
push ebx
call fcn.00416cf0
push ebx
call fcn.00416e80
pop edi
pop esi
ret
Function at 0x414bc0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
push ebx
push esi
push edi
push 0x4cdaf8
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push ecx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
mov edi, eax
mov eax, dword [ebp + 8]
lea edx, [ebp + 8]
push edx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8
Function at 0x414c50
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4f2500]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x214]
mov edi, edx
push 0
push eax
mov esi, ecx
mov dword [ebp - 0x218], edi
call fcn.004276b0
lea edx, [ebp - 0x214]
add esp, 0xc
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x414c90
lea ebx, [edi + 0x208]
mov edx, ebx
mov eax, esi
sub edx, esi
jmp 0x414cb0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x414cb0
lea eax, [ebp - 0x214]
add eax, 0xfffffffe
jmp 0x414cd0
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x414cd0
mov ecx, dword [str.program.7z]
mov edx, dword [0x4cf608]
mov dword [eax], ecx
mov ecx, dword [0x4cf60c]
mov dword [eax + 4], edx
mov edx, dword [0x4cf610]
mov dword [eax + 8], ecx
mov ecx, dword [0x4cf614]
mov dword [eax + 0xc], edx
mov edx, dword [0x4cf618]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
lea eax, [ebp - 0x214]
push eax
push str.szProgramFile_program_file___s
push 0x47d
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x4f6d14]
push eax
push str.ModuleAid.cpp
push 1
push ecx
mov eax, str.CModuleAidManger::ReleaseProgramFile
call fcn.00403090
add esp, 0x1c
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea edx, [ebp - 0x214]
push edx
push 0x8d
call fcn.00414bc0
add edi, 0x1860
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x414d9f
push str.UnPackEx2
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x414d98
mov ecx, dword [ebp - 0x218]
add ecx, 0x1658
push ecx
lea edx, [ebp - 0x214]
push edx
push ebx
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push esi
push str.hDll__0x_x_wClient7zFile___s_Error___d
push 0x5b5
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov eax, dword [0x4f6d14]
push str.ModuleAid.cpp
push 1
push eax
mov eax, str.CModuleAidManger::Un7zZip
call fcn.00403090
mov ecx, dword [ebp - 8]
add esp, 0x24
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042292e
mov esp, ebp
pop ebp
ret 4
Function at 0x4155f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4f2500]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.004276b0
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
push 1
push 0
push edi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x415689
lea eax, [ebp - 0x214]
push eax
mov eax, dword [ebp - 0x210]
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x218]
push edx
push 0
push str.SetupPath
push eax
mov dword [ebp - 0x218], 1
mov dword [ebp - 0x214], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x210]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x20c]
call fcn.004032d0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042292e
mov esp, ebp
pop ebp
ret

Function at 0x4156b0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0xc
push ebx
lea eax, [ebp - 4]
push eax
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x415749
push esi
push edi
push ebx
push 2
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [ebp - 4]
mov edi, eax
mov eax, dword [ebp + 8]
push edi
push ebx
push edx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0x4cb7dc
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0xc]
movzx edx, word [eax + 0x10]
movzx ecx, word [eax + 0x12]
movzx edi, word [eax + 0x16]
movzx eax, word [eax + 0x14]
push eax
push edi
push edx
mov edx, dword [ebp + 0xc]
push ecx
push str._d._d._d._d
call fcn.00411e20
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x415820
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x4f2500]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x228
lea eax, [ebp - 0x434]
push 0
push eax
call fcn.004276b0
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x20a]
push edx
mov dword [ebp - 0x438], 0x22c
mov word [ebp - 0x20c], cx
call fcn.004276b0
add esp, 0x18
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x415891
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042292e
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x438]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4158d6
mov esi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea ebx, [ebx]
lea ecx, [ebp - 0x414]
push ecx
push str.GamePP.exe
call fcn.00424db2
add esp, 8
test eax, eax
je 0x4158f2
lea edx, [ebp - 0x438]
push edx
push edi
call esi
test eax, eax
jne 0x4158b0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, 0x4cb44c
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042292e
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x430]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x415951
lea ecx, [ebp - 0x440]
push ecx
push 4
lea edx, [ebp - 0x43c]
push edx
push esi
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x440], 0
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
mov ecx, dword [ebp - 0x43c]
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ecx
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
lea eax, [ebp - 0x20c]
pop edi
call fcn.0042292e
mov esp, ebp
pop ebp
ret
Function at 0x415970
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4f2500]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x206
mov edi, ecx
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.004276b0
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
lea esi, [edi + 0x1658]
mov edx, esi
mov ecx, eax
sub edx, ecx
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4159d0
add edi, 0x1860
lea eax, [ebp - 0x20c]
mov edx, edi
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4159f1
push ebx
push str.7z.dll
push 0x104
push esi
call fcn.00425516
push str.Client7z.dll
push 0x104
push edi
call fcn.00425516
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x18
push esi
call ebx
test eax, eax
je 0x415a38
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push 0x89
call fcn.00414bc0
push edi
call ebx
pop ebx
test eax, eax
je 0x415a52
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
push 0x8a
call fcn.00414bc0
push edi
push esi
push str.w7zFile___s_wClient7zFile___s
push 0x5ce
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [0x4f6d14]
push eax
push str.ModuleAid.cpp
push 1
push edx
mov eax, str.CModuleAidManger::Release7z
call fcn.00403090
mov ecx, dword [ebp - 4]
add esp, 0x20
pop edi
xor ecx, ebp
pop esi
call fcn.0042292e
mov esp, ebp
pop ebp
ret
Function at 0x415aa0
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x4f2500]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
mov dword [ebp - 0x41c], eax
call esi
test eax, eax
jne 0x415be9
push edi
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x412]
push edx
mov word [ebp - 0x414], cx
call fcn.004276b0
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.004276b0
add esp, 0x18
lea edx, [ebp - 0x414]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
push eax
push 0
push str.retmp
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 3
lea edx, [ebp - 0x20c]
push edx
push ebx
call edi
test eax, eax
jne 0x415bdb
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
lea esi, [ebp - 0x418]
call fcn.004032d0
mov ecx, dword [ebp - 0x41c]
push ecx
lea edx, [ebp - 0x414]
push edx
mov eax, esi
push eax
call fcn.00410490
mov esi, dword [ebp - 0x418]
push 3
push esi
push ebx
call edi
test eax, eax
je 0x415b9f
push 3
lea ecx, [ebp - 0x20c]
push ecx
push esi
call edi
test eax, eax
jne 0x415bad
push 5
push 0
push ebx
call edi
push 3
push 0
push esi
call edi
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x415be8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042292e
mov esp, ebp
pop ebp
ret 4
push 5
push 0
lea ecx, [ebp - 0x20c]
push ecx
call edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042292e
mov esp, ebp
pop ebp
ret 4
Function at 0x415c00
Capabilities:
Check if file exists
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x26c
mov eax, dword [0x4f2500]
xor eax, esp
mov dword [esp + 0x268], eax
mov eax, dword [0x4f36ec]
mov edx, dword [eax + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x14], ecx
push edi
mov ecx, 0x4f36ec
call edx
add eax, 0x10
push esi
push str._s.
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], eax
call fcn.00404650
mov ecx, dword [esp + 0x1c]
add esp, 8
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x415d6f
mov ecx, 0x4cbc2c
lea eax, [esp + 0x4c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x415c98
test dx, dx
je 0x415c94
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x415c98
add eax, 4
add ecx, 4
test dx, dx
jne 0x415c72
xor eax, eax
jmp 0x415c9d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x415d50
mov ecx, 0x4cbc30
lea eax, [esp + 0x4c]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x415cd6
test dx, dx
je 0x415cd2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x415cd6
add eax, 4
add ecx, 4
test dx, dx
jne 0x415cb0
xor eax, eax
jmp 0x415cdb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x415d50
mov edx, dword [0x4f36ec]
mov eax, dword [edx + 0xc]
mov ecx, 0x4f36ec
call eax
lea ecx, [esp + 0x4c]
push ecx
add eax, 0x10
push esi
push str._s_s
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], eax
call fcn.00404650
mov ebx, dword [esp + 0x1c]
add esp, 0xc
test byte [esp + 0x20], 0x10
push ebx
je 0x415d24
mov ecx, dword [esp + 0x1c]
call fcn.00415c00
jmp 0x415d34
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x415d34
push esi
call fcn.00415aa0
lea eax, [ebx - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x415d50
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x415c69
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x415d96
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x274]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042292e
mov esp, ebp
pop ebp
ret 4
Function at 0x415db0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x415dc0
push esi
sub eax, edx
mov esi, eax
lea eax, [ebp - 4]
push eax
push str.SoftWareGamePP3
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x415e0c
mov ecx, dword [ebp - 4]
push esi
push edi
push 1
push eax
push 0x4cf818
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x415e20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4f2500]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
push 0x4cb35d
mov ecx, esi
mov byte [esi], 0
call fcn.00402a10
xor eax, eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
lea eax, [ebp - 0x28]
push eax
push 1
push 0
push str.SoftWareGamePP2
push SysReAllocString
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], 0x20
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x415ec2
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x30]
push eax
push 0
push 0x4cf818
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x24]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x415ec8
sub eax, edx
push eax
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.00402a10
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.0042292e
mov esp, ebp
pop ebp
ret
Function at 0x4163d0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4f2500]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0x228
lea ecx, [ebp - 0x22c]
push 0
push ecx
mov dword [ebp - 0x238], eax
call fcn.004276b0
add esp, 0xc
push 0
push 2
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x234], esi
cmp esi, 0xffffffff
je 0x4164a5
lea edx, [ebp - 0x230]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x41649e
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
jmp 0x416450
mov ecx, dword [ebp - 0x238]
lea eax, [ebp - 0x20c]
push eax
push ecx
call fcn.00424db2
add esp, 8
test eax, eax
jne 0x41648a
mov edx, dword [ebp - 0x228]
push edx
push eax
push 1
call edi
mov esi, eax
push 0
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x416450
pop edi
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042292e
mov esp, ebp
pop ebp
ret 4

Function at 0x4164c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4f2500]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x228
xor edi, edi
lea eax, [ebp - 0x22c]
push edi
push eax
call fcn.004276b0
add esp, 0xc
push edi
push 2
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x416518
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042292e
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x230]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x41655d
lea ebx, [ebx]
lea edx, [ebp - 0x20c]
push edx
push ebx
call fcn.00424db2
add esp, 8
test eax, eax
je 0x416558
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x416530
jmp 0x41655d
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0042292e
mov esp, ebp
pop ebp
ret
Function at 0x416580
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa80
mov eax, dword [0x4f2500]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
push 0x7fe
mov esi, ecx
push eax
lea ecx, [ebp - 0x806]
push ecx
mov ebx, edx
mov word [ebp - 0x808], ax
call fcn.004276b0
lea edx, [ebp - 0x808]
add esp, 0xc
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4165c1
lea eax, [ebp - 0x808]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4165e0
mov edx, dword [0x4cbc14]
mov ecx, dword [0x4cbc18]
mov dword [eax], edx
mov dx, word [0x4cbc1c]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
lea eax, [ebp - 0xa78]
push eax
lea ecx, [ebp - 0x808]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xa7c], eax
cmp eax, 0xffffffff
jne 0x416646
push 0x4cbc20
call fcn.0042534f
add esp, 4
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042292e
mov esp, ebp
pop ebp
ret
mov esi, 8
jmp 0x416650
mov ecx, 0x4cbc2c
lea eax, [ebp - 0xa4c]
jmp 0x416660
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x416686
test dx, dx
je 0x416682
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x416686
add eax, 4
add ecx, 4
test dx, dx
jne 0x416660
xor eax, eax
jmp 0x41668b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x416743
mov ecx, 0x4cbc30
lea eax, [ebp - 0xa4c]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4166c6
test dx, dx
je 0x4166c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4166c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4166a0
xor eax, eax
jmp 0x4166cb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x416743
test byte [ebp - 0xa78], 0x10
je 0x416743
xor edx, edx
lea eax, [ebp - 0xa4c]
mov word [ebp - 0x824], dx
mov dword [ebp - 0x810], 7
mov dword [ebp - 0x814], 0
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416700
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0xa4c]
lea ecx, [ebp - 0x824]
call fcn.00409860
lea eax, [ebp - 0x824]
call fcn.00409480
cmp dword [ebp - 0x810], esi
jb 0x416743
mov eax, dword [ebp - 0x824]
push eax
call fcn.00423310
add esp, 4
mov edx, dword [ebp - 0xa7c]
lea ecx, [ebp - 0xa78]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x416650
mov eax, dword [ebp - 0xa7c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0042292e
mov esp, ebp
pop ebp
ret