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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
movsx eax, byte [0x5045f0]
test eax, eax
jne 0x4b4083
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0x40
lea ecx, [ebp - 8]
push ecx
push 0x5045f0
lea edx, [ebp - 4]
push edx
push 0x4e57e0
push 0x4e57e8
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x4b4012
push 0x4cfdd3
push 0x5045f0
call fcn.00445f30
add esp, 8
test eax, eax
jne 0x4b4083
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.004be4d0
add esp, 4
movzx edx, al
test edx, edx
je 0x4b4059
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
push 0x4e5804
push 0x5045f0
call fcn.00409430
add esp, 0x18
push 0x5045f0
call fcn.004446f0
add esp, 4
push eax
push 0x5045f0
push 1
push 0x4e5818
push 0x4e5820
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov eax, 0x5045f0
mov esp, ebp
pop ebp
ret
Function at 0x4b64f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
mov ecx, dword [ebp - 4]
add ecx, 0x534
call fcn.004ae620
push 0
mov ecx, dword [ebp - 4]
add ecx, 0x534
call fcn.004ab370
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret

Function at 0x4b65b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
push 0x4e5840
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
push 0x4b62f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4b65f1
jmp 0x4b65fb
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x4b79a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x528], 0
jne 0x4b79f7
call fcn.004b7be0
mov ecx, dword [ebp - 8]
call fcn.004b3ee0
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
push 0x4b78f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 8]
mov dword [edx + 0x528], eax
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x52c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], eax
mov esp, ebp
pop ebp
ret

Function at 0x4ba070
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x4fe37c]
xor eax, ebp
mov dword [ebp - 8], eax
mov byte [ebp - 0x431], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4ba0a9
xor al, al
jmp 0x4ba11e
mov dword [ebp - 0x430], 0x428
lea ecx, [ebp - 0x430]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
jne 0x4ba0d5
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x4ba11e
mov ecx, dword [ebp + 0x10]
call fcn.00407070
push eax
lea ecx, [ebp - 0x410]
push ecx
call fcn.004457ed
add esp, 8
test eax, eax
jne 0x4ba0fa
mov byte [ebp - 0x431], 1
jmp 0x4ba10e
lea edx, [ebp - 0x430]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x4ba0d5
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x431]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004443e3
mov esp, ebp
pop ebp
ret
Function at 0x4ba220
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7e84
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x4fe37c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x268]
push ecx
call fcn.0049e3d0
add esp, 8
mov dword [ebp - 4], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0xffffffff
jne 0x4ba2a1
mov byte [ebp - 0x269], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x268]
call fcn.00406fd0
mov al, byte [ebp - 0x269]
jmp 0x4ba439
mov dword [ebp - 0x244], 0x22c
lea edx, [ebp - 0x244]
push edx
mov eax, dword [ebp - 0x24c]
push eax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x4ba2f3
mov ecx, dword [ebp - 0x24c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x26a], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x268]
call fcn.00406fd0
mov al, byte [ebp - 0x26a]
jmp 0x4ba439
cmp dword [ebp + 0xc], 0
je 0x4ba307
mov edx, dword [ebp + 0xc]
add edx, 8
mov dword [ebp - 0x270], edx
jmp 0x4ba311
mov dword [ebp - 0x270], 0
push 0x4d8754
push str._is_found_in_process_modules_below:
lea eax, [ebp - 0x268]
push eax
push 0x4d87ac
mov ecx, dword [ebp - 0x270]
push ecx
call fcn.00424ff0
add esp, 8
push eax
call fcn.00428c30
add esp, 8
push eax
call fcn.00424ff0
add esp, 8
push eax
call fcn.00424ff0
add esp, 8
mov edx, dword [ebp - 0x23c]
push edx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0
je 0x4ba381
mov eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x268]
push ecx
mov edx, dword [ebp - 0x23c]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004ba070
add esp, 0xc
movzx ecx, al
test ecx, ecx
je 0x4ba3f2
cmp dword [ebp + 0xc], 0
je 0x4ba3b6
mov edx, dword [ebp + 0xc]
add edx, 8
mov dword [ebp - 0x274], edx
jmp 0x4ba3c0
mov dword [ebp - 0x274], 0
push 0x4d87b4
lea eax, [ebp - 0x220]
push eax
push 0x4d87bc
mov ecx, dword [ebp - 0x274]
push ecx
call fcn.00424ff0
add esp, 8
push eax
call fcn.00424ff0
add esp, 8
push eax
call fcn.00424ff0
add esp, 8
lea edx, [ebp - 0x244]
push edx
mov eax, dword [ebp - 0x24c]
push eax
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4ba351
mov ecx, dword [ebp - 0x24c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x26b], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x268]
call fcn.00406fd0
mov al, byte [ebp - 0x26b]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004443e3
mov esp, ebp
pop ebp
ret
Function at 0x4babf0
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x4fe37c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x408], ax
lea ecx, [ebp - 0x408]
push ecx
push 0x1ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x4bade3
mov edx, dword [0x4d8318]
mov dword [ebp - 0x414], edx
mov ax, word [0x4d831c]
mov word [ebp - 0x410], ax
lea ecx, [ebp - 0x408]
mov dword [ebp - 0x40c], ecx
cmp dword [ebp + 8], 0
je 0x4bac5f
mov edx, dword [ebp + 8]
add edx, 8
mov dword [ebp - 0x42c], edx
jmp 0x4bac69
mov dword [ebp - 0x42c], 0
push 0x4d8320
push 0x4d8328
mov eax, dword [ebp - 0x42c]
push eax
call fcn.00424ff0
add esp, 8
push eax
call fcn.00424ff0
add esp, 8
mov ecx, dword [ebp - 0x40c]
mov dx, word [ecx]
mov word [ebp - 0x414], dx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x41c], eax
push 0
push 0
lea ecx, [ebp - 0x428]
push ecx
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0
je 0x4bacfb
push 0
push 0x40000000
mov eax, dword [ebp - 0x424]
push eax
mov ecx, dword [ebp - 0x428]
push ecx
call fcn.004566d0
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x424], edx
cmp dword [ebp + 8], 0
je 0x4bad0f
mov edx, dword [ebp + 8]
add edx, 8
mov dword [ebp - 0x430], edx
jmp 0x4bad19
mov dword [ebp - 0x430], 0
push 0x4d8394
push 0x4d839c
mov eax, dword [ebp - 0x424]
push eax
mov ecx, dword [ebp - 0x428]
push ecx
push 0x4d83a0
push 0x4d83b8
mov edx, dword [ebp - 0x41c]
push edx
push str.Type_
push 0x4d83cc
lea eax, [ebp - 0x414]
push eax
push str.Disk_Info_
mov ecx, dword [ebp - 0x430]
push ecx
call fcn.00424ff0
add esp, 8
push eax
call fcn.00424ff0
add esp, 8
push eax
call fcn.00424ff0
add esp, 8
push eax
call fcn.00424ff0
add esp, 8
mov ecx, eax
call fcn.00438cc0
push eax
call fcn.00424ff0
add esp, 8
push eax
call fcn.00424ff0
add esp, 8
mov ecx, eax
call fcn.004395c0
push eax
call fcn.00424ff0
add esp, 8
push eax
call fcn.00424ff0
add esp, 8
mov edx, dword [ebp - 0x40c]
movzx eax, word [edx]
mov ecx, dword [ebp - 0x40c]
add ecx, 2
mov dword [ebp - 0x40c], ecx
test eax, eax
je 0x4badd2
jmp 0x4badb4
mov edx, dword [ebp - 0x40c]
movzx eax, word [edx]
test eax, eax
jne 0x4bac8b
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004443e3
mov esp, ebp
pop ebp
ret
Function at 0x4bc4f0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c4372
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4fe37c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00406f90
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.0041f4c0
push 0x1e
push 0
lea ecx, [ebp - 0x4c]
push ecx
call fcn.00445020
add esp, 0xc
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 3
lea ecx, [ebp - 0x2c]
call fcn.00407070
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], 0
mov edx, 0x614
mov word [ebp - 0x3c], dx
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x4d], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00406fd0
mov al, byte [ebp - 0x4d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004443e3
mov esp, ebp
pop ebp
ret
Function at 0x4bfb80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x4fe37c]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x810], ecx
mov dword [ebp - 0x80c], 0
mov dword [ebp - 4], 0
xor eax, eax
mov word [ebp - 0x808], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x806]
push ecx
call fcn.00445020
add esp, 0xc
lea edx, [ebp - 4]
push edx
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
jne 0x4bfbfe
lea ecx, [ebp - 0x808]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.SHELL32.dll_ILFree]
jmp 0x4bfc15
lea ecx, [ebp - 0x808]
push ecx
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x808]
push eax
mov ecx, dword [ebp + 8]
call fcn.00406f50
mov ecx, dword [ebp - 0x80c]
or ecx, 1
mov dword [ebp - 0x80c], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004443e3
mov esp, ebp
pop ebp
ret 8
Function at 0x4c0640
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], ecx
call fcn.004b7c10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x14]
mov eax, dword [edx + 0x8c]
call eax
movzx ecx, al
test ecx, ecx
je 0x4c0697
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0x4c05c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0xc], eax
push 0xffffffffffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xa50]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], eax
mov esp, ebp
pop ebp
ret

Function at 0x4c06a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c64c9
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4fe37c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x48], ecx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x48]
mov ecx, dword [ecx + 0x228]
call fcn.00497550
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x50]
push eax
lea ecx, [ebp - 0x44]
push ecx
mov ecx, dword [ebp - 0x48]
call fcn.0047d2f0
mov dword [ebp - 0x54], eax
push 5
push 0
push 0x4e52f0
mov ecx, dword [ebp - 0x54]
call fcn.00407070
push eax
push 0x4e52f4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x44]
call fcn.00406fd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406fd0
mov edx, dword [ebp - 0x48]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x48]
mov edx, dword [eax + 0x248]
call edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4c07b0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c4efb
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x4fe37c]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4c0913
mov dword [ebp - 0x18], 0x2800
mov ecx, dword [ebp - 0x18]
add ecx, 1
push ecx
call fcn.00442b2d
add esp, 4
mov dword [ebp - 0x43c], eax
mov edx, dword [ebp - 0x43c]
mov dword [ebp - 0x14], edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 1
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4c08f1
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], 0
jmp 0x4c0856
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x18]
shr eax, 2
cmp dword [ebp - 0x20], eax
jae 0x4c08f1
push 0x208
lea ecx, [ebp - 0x434]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + edx*4]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.PSAPI.DLL_GetModuleFileNameExW
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 4
jbe 0x4c08ec
push str..tmp
mov eax, dword [ebp - 0x438]
lea ecx, [ebp + eax*2 - 0x43c]
push ecx
call fcn.004457ed
add esp, 8
test eax, eax
jne 0x4c08ec
lea edx, [ebp - 0x434]
push edx
lea ecx, [ebp - 0x458]
call fcn.00406f50
mov dword [ebp - 4], 0
lea eax, [ebp - 0x458]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.00407120
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x458]
call fcn.00406fd0
jmp 0x4c084d
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x45c], ecx
mov edx, dword [ebp - 0x45c]
push edx
call fcn.004443d8
add esp, 4
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.004443e3
mov esp, ebp
pop ebp
ret
Function at 0x4c1f20
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c79a9
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x4fe37c]
xor eax, ebp
mov dword [ebp - 0x28], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x1c], 0
jne 0x4c1f59
jmp 0x4c20fb
lea ecx, [ebp - 0x254]
call fcn.00407090
mov dword [ebp - 4], 0
push SysReAllocString
push 0x7c
lea ecx, [ebp - 0x254]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x1c]
push eax
call fcn.004be770
add esp, 0x10
lea ecx, [ebp - 0x24]
call fcn.0043c4b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
push ecx
push 0x4c1e70
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
jne 0x4c1fca
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00427010
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x254]
call fcn.00407100
jmp 0x4c20fb
lea ecx, [ebp - 0x23c]
call fcn.0040adf0
mov byte [ebp - 4], 2
mov dword [ebp - 0x258], 0
jmp 0x4c1ff4
mov edx, dword [ebp - 0x258]
add edx, 1
mov dword [ebp - 0x258], edx
lea ecx, [ebp - 0x24]
call fcn.00419220
cmp dword [ebp - 0x258], eax
jae 0x4c20a5
mov dword [ebp - 0x25c], 0
jmp 0x4c2023
mov eax, dword [ebp - 0x25c]
add eax, 1
mov dword [ebp - 0x25c], eax
lea ecx, [ebp - 0x254]
call fcn.00415890
cmp dword [ebp - 0x25c], eax
jae 0x4c20a0
mov ecx, dword [ebp - 0x25c]
push ecx
lea ecx, [ebp - 0x254]
call fcn.004259e0
mov ecx, eax
call fcn.00407070
push eax
mov edx, dword [ebp - 0x258]
push edx
lea ecx, [ebp - 0x24]
call fcn.00438e50
mov ecx, dword [eax]
add ecx, 0x3c
call fcn.00407070
push eax
call fcn.004457ed
add esp, 8
test eax, eax
jne 0x4c209b
push 0
mov eax, dword [ebp - 0x258]
push eax
lea ecx, [ebp - 0x24]
call fcn.00438e50
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x23c]
push edx
call fcn.004c1b40
add esp, 0xc
jmp 0x4c20a0
jmp 0x4c2014
jmp 0x4c1fe5
lea ecx, [ebp - 0x23c]
call fcn.0041bf70
push eax
lea ecx, [ebp - 0x23c]
call fcn.004154c0
push eax
push str.wndinfo.txt
mov eax, dword [ebp + 8]
push eax
call fcn.00467cf0
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x23c]
call fcn.0040ae20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00427010
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x254]
call fcn.00407100
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.004443e3
mov esp, ebp
pop ebp
ret
Function at 0x4c2200
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c81f5
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x4fe37c]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x3c], 0
push 0x4db544
lea ecx, [ebp - 0x38]
call fcn.00406f50
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x38]
call fcn.00407030
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x10]
push eax
push str.InstallLog
lea ecx, [ebp - 0x38]
call fcn.00407070
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
xor ecx, ecx
cmp dword [ebp - 0x3c], 0
setne cl
mov byte [ebp - 0x15], cl
movzx edx, byte [ebp - 0x15]
push edx
call fcn.00498600
add esp, 4
call fcn.004c2120
push 0xa8
call fcn.0044527f
add esp, 4
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x44], 0
je 0x4c22c7
mov ecx, dword [ebp - 0x44]
call fcn.00498a50
mov dword [ebp - 0x64], eax
jmp 0x4c22ce
mov dword [ebp - 0x64], 0
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x40]
mov dword [0x503934], ecx
push str.Common
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x60]
push eax
call fcn.00409480
add esp, 0xc
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x6c], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x6c]
push edx
push 1
push 0
mov ecx, dword [0x503934]
call fcn.004988e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.00406fd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00406fd0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004443e3
mov esp, ebp
pop ebp
ret
Function at 0x4c2930
Capabilities:
Accept command line arguments
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 6
jl 0x4c29a7
push 5
push str._dump
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
push eax
call fcn.004459f8
add esp, 0xc
test eax, eax
jne 0x4c29a7
push str.SEGame_Install
lea ecx, [ebp - 0x48]
call fcn.00406f50
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.00489d60
add esp, 0xc
lea ecx, [ebp - 0x48]
call fcn.00406fd0
xor eax, eax
jmp 0x4c2a75
call fcn.00489d10
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp - 4], 2
jle 0x4c2a50
push 0xe
push str._fakeinstaller
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 4]
push edx
call fcn.004459f8
add esp, 0xc
test eax, eax
jne 0x4c2a50
push 0
push 0
push 4
push 0
push 1
push SysReAllocString
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
xor edx, edx
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp dword [ebp - 0x2c], 0xffffffff
je 0x4c2a50
push 0
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x24]
push eax
push 2
push 0
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4c2a4a
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4c2a50
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004c2650
add esp, 0x18
mov dword [ebp - 8], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10