joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419a00
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
mov ebx, dword fs:[0x18]
sub esp, 0x4c
mov dword [ebp - 0x30], edx
mov esi, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 8], edx
mov dword [ebp - 0x1c], 0xffffffff
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call esi
sub esp, 0x18
mov ecx, eax
add eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov dword [ebp - 0x2c], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
sub esp, 0xc
test eax, eax
mov dword [ebp - 0x20], eax
je 0x419b08
mov dword [esp + 0x14], ecx
mov dword [esp + 8], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call esi
lea edx, [ebp - 0x1c]
mov eax, dword [edi]
sub esp, 0x18
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x20]
mov dword [esp + 8], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 1
mov dword [esp + 4], 0x5431d4
mov dword [esp], edi
call dword [eax + 0x14]
mov esi, eax
mov eax, dword [ebp - 0x20]
sub esp, 0x18
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
test esi, esi
jne 0x419b13
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0xffffffff
jmp 0x419b0b
Function at 0x41a700
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x11c]
push ebx
mov ebx, eax
sub esp, 0x13c
mov dword [esp + 0xc], 0x104
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], ebx
call sub.advapi32.dll_RegEnumKeyA
sub esp, 0x10
mov edi, eax
test eax, eax
jne 0x41a768
lea eax, [ebp - 0x120]
mov dword [esp + 0xc], 8
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.advapi32.dll_RegOpenKeyExA
sub esp, 0x14
mov edi, eax
test eax, eax
je 0x41a780
cmp edi, 0x103
je 0x41a7b0
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x120]
call fcn.0041a700
mov edi, eax
mov eax, dword [ebp - 0x120]
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
sub esp, 4
test edi, edi
je 0x41a714
jmp 0x41a768
mov dword [esp], ebx
xor edi, edi
mov dword [esp + 4], 0x53fb0a
call sub.advapi32.dll_RegDeleteKeyA
mov eax, edi
sub esp, 8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x41a7d0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x58b4d0]
test ebx, ebx
je 0x41a800
mov dword [esp + 0xc], 0
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call ebx
mov ebx, dword [ebp - 4]
sub esp, 0x10
leave
ret
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.advapi32.dll_RegDeleteKeyA
mov ebx, dword [ebp - 4]
sub esp, 8
leave
ret
Function at 0x41a8d0
Capabilities:
Get process heap flags
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
mov esi, ecx
push ebx
sub esp, 0x5c
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x20]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], edi
mov dword [ebp - 0x30], edx
call sub.advapi32.dll_RegOpenKeyExA
sub esp, 0x14
mov ebx, eax
test eax, eax
je 0x41a915
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x1c]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.advapi32.dll_RegQueryInfoKeyA
sub esp, 0x30
mov ebx, eax
test eax, eax
jne 0x41a90b
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
add eax, 1
mov dword [esp + 8], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x41aa40
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sub.advapi32.dll_RegEnumKeyA
sub esp, 0x10
test eax, eax
jne 0x41a9f0
mov eax, dword [ebp - 0x20]
mov ecx, esi
mov edx, edi
call fcn.0041a8d0
jmp 0x41a9b8
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
sub esp, 4
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
mov ecx, esi
sub esp, 0xc
call fcn.0041a7d0
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, 8
jmp 0x41a90b

Function at 0x41aa50
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x11c]
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x12c
mov dword [esp + 4], 0x58b280
mov dword [esp], edi
call dword [sym.imp.msvcrt.dll_strcpy]
mov eax, edi
mov ecx, dword [eax]
add eax, 4
lea edx, [ecx - 0x1010101]
not ecx
and edx, ecx
and edx, 0x80808080
je 0x41aa79
mov ecx, edx
shr ecx, 0x10
test edx, 0x8080
cmove edx, ecx
lea ecx, [eax + 2]
cmove eax, ecx
mov ecx, edx
add cl, dl
sbb eax, 3
sub eax, edi
mov byte [edi + eax], 0x5c
lea eax, [edi + eax + 1]
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
mov dword [esp], edi
test ebx, ebx
je 0x41aae0
call dword [sym.imp.kernel32.dll_DeleteFileA]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.kernel32.dll_RemoveDirectoryA]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4219f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x4c
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileA]
sub esp, 0x1c
mov ebx, eax
mov dword [esp + 4], 0x17f
mov dword [esp], str..._wine_dlls_msi_tests_automation.c
call fcn.0052ae70
xor eax, eax
cmp ebx, 0xffffffff
mov dword [esp + 8], esi
setne al
mov dword [esp + 4], 0x541269
mov dword [esp], eax
call fcn.0052b0e0
mov edi, dword [sym.imp.msvcrt.dll_strlen]
mov dword [esp], esi
call edi
mov edx, dword [sym.imp.kernel32.dll_WriteFile]
lea ecx, [ebp - 0x1c]
mov dword [esp + 4], esi
mov dword [esp + 0xc], ecx
mov dword [ebp - 0x2c], edx
mov dword [esp], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
call edx
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
sub esp, 0x14
mov dword [esp + 0xc], ecx
mov dword [esp], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x541282
call edx
sub esp, 0x14
mov dword [esp], esi
call edi
mov edx, 0x63
mov dword [esp], ebx
sub edx, eax
mov dword [esp + 0xc], 1
mov dword [esp + 4], edx
mov dword [esp + 8], 0
call dword [sym.imp.kernel32.dll_SetFilePointer]
sub esp, 0x10
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_SetEndOfFile]
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x43c970
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
mov esi, edx
push ebx
sub esp, 0x3c
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileA]
sub esp, 0x1c
mov ebx, eax
lea eax, [ebp - 0x1c]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x43ca00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
mov esi, edx
push ebx
sub esp, 0x3c
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileA]
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x43cab5
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll_strlen]
lea edx, [ebp - 0x1c]
mov dword [esp + 4], esi
mov esi, dword [sym.imp.kernel32.dll_WriteFile]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
mov dword [esp], ebx
call esi
lea edx, [ebp - 0x1c]
sub esp, 0x14
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], 1
mov dword [esp + 4], 0x548ca6
mov dword [esp], ebx
call esi
sub esp, 0x14
test edi, edi
jne 0x43cac0
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_SetFilePointer]
sub esp, 0x10
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_SetEndOfFile]
sub esp, 4
jmp 0x43caa9
Function at 0x43ef40
Capabilities:
Delete file

Disassembly:
push ebp
mov ecx, edx
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0x1c
mov esi, dword [ecx]
add ecx, 4
lea eax, [esi - 0x1010101]
not esi
and eax, esi
and eax, 0x80808080
je 0x43ef4d
mov esi, eax
shr esi, 0x10
test eax, 0x8080
cmove eax, esi
lea esi, [ecx + 2]
cmove ecx, esi
mov ebx, eax
add bl, al
mov eax, str.temp_file
sbb ecx, 3
sub ecx, edx
sub ecx, 1
call fcn.0043c970
mov dword [esp], edi
mov dword [esp + 8], str.temp_file
mov dword [esp + 4], 0x58b4e0
call sub.msi.dll_MsiDatabaseImportA
sub esp, 0xc
mov ebx, eax
mov dword [esp], str.temp_file
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4472c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
lea edi, [ebx + 4]
and edi, 0xfffffffc
sub esp, 0x3c
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov dword [esp], 0x54af8c
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ecx, ebx
mov dword [ebx], 0
sub ecx, edi
mov esi, eax
xor eax, eax
sub esp, 0x1c
mov dword [ebx + 0x100], 0
add ecx, 0x104
shr ecx, 2
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x104
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x465300
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x58b720]
test ebx, ebx
je 0x465330
mov dword [esp + 0xc], 0
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call ebx
mov ebx, dword [ebp - 4]
sub esp, 0x10
leave
ret
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.advapi32.dll_RegDeleteKeyA
mov ebx, dword [ebp - 4]
sub esp, 8
leave
ret

Function at 0x465350
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0xcc
mov dword [ebp - 0xac], edx
mov dword [esp], edx
call dword [sym.imp.msvcrt.dll_strlen]
mov dword [esp], esi
mov edi, eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
call dword [sym.imp.kernel32.dll_CreateFileA]
sub esp, 0x1c
mov ebx, eax
mov dword [esp + 4], 0x14d4
mov dword [esp], str..._wine_dlls_msi_tests_install.c
call fcn.0052ae70
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 8], esi
lea esi, [ebp - 0x98]
mov dword [esp + 4], str.failed_to_open__s___u__n
mov dword [esp + 0xc], eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov dword [esp], eax
call fcn.0052b0e0
lea eax, [ebp - 0x9c]
mov dword [esp + 4], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x465426
cmp dword [ebp - 0x9c], edi
jae 0x465440
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edx, dword [ebp - 0xac]
sub esp, 4
mov dword [esp + 8], edi
mov dword [esp], esi
mov dword [esp + 4], edx
call sub.msvcrt.dll_memcmp
test eax, eax
sete al
lea esp, [ebp - 0xc]
pop ebx
movzx eax, al
pop esi
pop edi
pop ebp
ret
Function at 0x465cc0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x64
mov ecx, dword [edx + 4]
mov ebx, dword [edx + 8]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], ecx
mov ecx, 0x74
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], 0x7469736d
mov dword [ebp - 0x44], 0x20747365
mov dword [ebp - 0x40], 0x74736572
mov dword [ebp - 0x3c], 0x2065726f
mov dword [ebp - 0x38], 0x6e696f70
mov word [ebp - 0x34], cx
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [0x58b70c]
mov ebx, dword [ebp - 4]
sub esp, 8
leave
ret

Function at 0x465ea0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x11c]
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x12c
mov dword [esp + 4], 0x59bfe0
mov dword [esp], edi
call dword [sym.imp.msvcrt.dll_strcpy]
mov eax, edi
mov ecx, dword [eax]
add eax, 4
lea edx, [ecx - 0x1010101]
not ecx
and edx, ecx
and edx, 0x80808080
je 0x465ec9
mov ecx, edx
shr ecx, 0x10
test edx, 0x8080
cmove edx, ecx
lea ecx, [eax + 2]
cmove eax, ecx
mov ecx, edx
add cl, dl
sbb eax, 3
sub eax, edi
mov byte [edi + eax], 0x5c
lea eax, [edi + eax + 1]
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
mov dword [esp], edi
test ebx, ebx
je 0x465f30
call dword [sym.imp.kernel32.dll_DeleteFileA]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.kernel32.dll_RemoveDirectoryA]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x465f50
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x11c]
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x12c
mov dword [esp + 4], 0x59bec0
mov dword [esp], edi
call dword [sym.imp.msvcrt.dll_strcpy]
mov eax, edi
mov ecx, dword [eax]
add eax, 4
lea edx, [ecx - 0x1010101]
not ecx
and edx, ecx
and edx, 0x80808080
je 0x465f79
mov ecx, edx
shr ecx, 0x10
test edx, 0x8080
cmove edx, ecx
lea ecx, [eax + 2]
cmove eax, ecx
mov ecx, edx
add cl, dl
sbb eax, 3
sub eax, edi
mov byte [edi + eax], 0x5c
lea eax, [edi + eax + 1]
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
mov dword [esp], edi
test ebx, ebx
je 0x465fe0
call dword [sym.imp.kernel32.dll_DeleteFileA]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.kernel32.dll_RemoveDirectoryA]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4661a0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea ebx, [ebp - 0x10c]
sub esp, 0x130
mov dword [esp + 4], 0x59c220
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_strcpy]
mov eax, ebx
mov ecx, dword [eax]
add eax, 4
lea edx, [ecx - 0x1010101]
not ecx
and edx, ecx
and edx, 0x80808080
je 0x4661c4
mov ecx, edx
shr ecx, 0x10
test edx, 0x8080
cmove edx, ecx
lea ecx, [eax + 2]
cmove eax, ecx
mov ecx, edx
add cl, dl
sbb eax, 3
sub eax, ebx
mov byte [ebx + eax], 0x5c
lea eax, [ebx + eax + 1]
mov dword [eax], 0x7469736d
mov dword [eax + 4], 0x5c747365
mov dword [eax + 8], 0x75677561
mov dword [eax + 0xc], 0x73757473
mov byte [eax + 0x10], 0
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
call dword [sym.imp.kernel32.dll_CreateFileA]
sub esp, 0x1c
mov ebx, eax
cmp eax, 0xffffffff
je 0x466290
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFileSize]
sub esp, 8
mov esi, eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, esi
sub esp, 4
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
lea esp, [ebp - 8]
mov esi, 0xffffffff
mov eax, esi
pop ebx
pop esi
pop ebp
ret
Function at 0x466460
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get process heap flags
Get process heap force flags
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x11c]
sub esp, 0x13c
mov dword [esp + 4], 0x59c220
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_strcpy]
mov eax, ebx
mov ecx, dword [eax]
add eax, 4
lea edx, [ecx - 0x1010101]
not ecx
and edx, ecx
and edx, 0x80808080
je 0x466485
mov ecx, edx
shr ecx, 0x10
test edx, 0x8080
cmove edx, ecx
lea ecx, [eax + 2]
cmove eax, ecx
mov ecx, edx
add cl, dl
sbb eax, 3
xor esi, esi
sub eax, ebx
mov byte [ebx + eax], 0x5c
lea eax, [ebx + eax + 1]
mov dword [eax], 0x7469736d
mov dword [eax + 4], 0x5c747365
mov dword [eax + 8], 0x65626974
mov dword [eax + 0xc], 0x73756972
mov byte [eax + 0x10], 0
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
call dword [sym.imp.kernel32.dll_CreateFileA]
sub esp, 0x1c
mov edi, eax
mov dword [esp + 8], 9
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x4665a5
lea eax, [ebp - 0x120]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 9
mov dword [esp + 4], ebx
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
cmp dword [ebp - 0x120], 9
je 0x4665c0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, esi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [ebx], 0x64636261
je 0x4665d2
mov esi, 1
xor esi, 1
jmp 0x466581
cmp dword [ebx + 4], 0x68676665
jne 0x4665c8
cmp byte [ebx + 8], 0
je 0x4665cd
jmp 0x4665c8
Function at 0x4665f0
Capabilities:
Get token membership

Disassembly:
push ebp
mov edx, 0x500
mov ebp, esp
push ebx
lea eax, [ebp - 0x24]
sub esp, 0x54
mov dword [ebp - 0xe], 0
mov dword [esp + 0x28], eax
lea eax, [ebp - 0xe]
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x220
mov dword [esp + 8], 0x20
mov dword [esp + 4], 2
mov dword [esp], eax
mov word [ebp - 0xa], dx
mov dword [ebp - 0x24], 0
call sub.advapi32.dll_AllocateAndInitializeSid
sub esp, 0x2c
test eax, eax
je 0x466690
lea eax, [ebp - 0x20]
mov dword [esp], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], eax
call sub.advapi32.dll_CheckTokenMembership
sub esp, 0xc
test eax, eax
jne 0x4666d0
mov dword [esp + 4], 0x8d9
xor ebx, ebx
mov dword [esp], str..._wine_dlls_msi_tests_install.c
call fcn.0052ae70
mov dword [esp], 0x550270
call fcn.0052b110
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sub.advapi32.dll_FreeSid
sub esp, 4
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret
mov eax, dword [ebp - 0x24]
mov ebx, 1
mov dword [esp], eax
call sub.advapi32.dll_FreeSid
mov eax, dword [ebp - 0x20]
sub esp, 4
test eax, eax
je 0x4666c0
lea eax, [ebp - 0x1c]
mov dword [esp + 4], 8
mov dword [esp + 8], eax
mov dword [esp], 0xffffffff
call sub.advapi32.dll_OpenProcessToken
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x4666c0
lea eax, [ebp - 0x14]
mov dword [esp + 0xc], 4
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x18]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], 0x12
mov dword [esp], eax
mov dword [ebp - 0x18], 1
call sub.advapi32.dll_GetTokenInformation
mov ebx, eax
mov eax, dword [ebp - 0x1c]
sub esp, 0x14
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
test ebx, ebx
je 0x4666c0
xor ebx, ebx
cmp dword [ebp - 0x18], 3
sete bl
jmp 0x4666c0