joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10045b20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1008a668
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x100c90c0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov dword [esp + 8], vtable.CSetupRegW.0
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x3c], 0
call fcn.10045c10
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10045be3
cmp dword [esp + 0x10], 0
je 0x10045be3
push 0x2e
push eax
call fcn.1006fe23
mov ecx, eax
mov eax, dword [esp + 0x20]
add esp, 8
test ecx, ecx
je 0x10045bc3
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x10045bc3
push ecx
push 0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
call fcn.1003f540
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 2
call fcn.1003ecf0
lea ecx, [esp + 0x1c]
call fcn.10022960
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10045bdf
cmp dword [esp + 0x10], 0
je 0x10045bdf
push eax
call fcn.1007011f
mov esi, eax
mov eax, dword [esp + 0x1c]
add esp, 4
jmp 0x10045be6
xor esi, esi
jmp 0x10045be6
or esi, 0xffffffff
mov dword [esp + 0xc], vtable.CStringBufferW.0
test eax, eax
je 0x10045bfb
push eax
call fcn.1006eaef
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10047010
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008ace9
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x100c90c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
lea eax, [ebx + 0xc]
mov dword [ebx], vtable.CReferencedSeed.0
push eax
mov dword [ebx + 8], vtable.CCritical.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebx + 4], 1
mov dword [ebp - 4], 0
mov dword [ebx], vtable.CJob.0
mov dword [ebx + 0x2c], vtable.CStringBufferW.0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], vtable.CMapPtr.0
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x50], 1
mov dword [ebx + 0x54], 0
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x60], 0
lea eax, [ebx + 0x6c]
push eax
mov dword [ebx + 0x68], vtable.CCritical.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 3
mov dword [ebx + 0x64], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x24], eax
mov eax, dword [ebx + 0x48]
push 7
lea ecx, [ebx + 0x48]
mov dword [ebx + 0x28], 0
call dword [eax + 4]
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x84], 1
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10047460
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008ad77
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100c90c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
cmp dword [ebp + 0xc], 0
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
je 0x1004750f
mov dword [edi + 4], 0x100b3878
lea eax, [edi + 0xe0]
mov dword [edi + 0xd4], vtable.CReferencedSeed.0
push eax
mov dword [edi + 0xdc], vtable.CCritical.0
call ebx
lea eax, [edi + 0xfc]
mov dword [edi + 0xd8], 1
mov dword [edi + 0xd4], vtable.CSingletonSeed.0
push eax
mov dword [edi + 0xf8], vtable.CCritical.0
call ebx
mov eax, dword [ebp + 8]
mov dword [edi + 0x118], eax
mov dword [edi + 0x11c], 0
mov dword [edi + 0x114], 0
mov dword [ebp - 0x10], 1
mov eax, dword [edi + 4]
mov dword [edi], vtable.CThreadPool.0
mov eax, dword [eax + 4]
mov dword [eax + edi + 4], vtable.CThreadPool.1.0
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0xd0]
mov dword [ecx + edi], eax
mov dword [edi + 0x14], vtable.CMapPtr.0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 1
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
lea eax, [edi + 0x38]
mov dword [ebp - 4], 1
push eax
mov dword [edi + 0x34], vtable.CCritical.0
call ebx
lea esi, [edi + 0x50]
lea eax, [esi + 4]
push eax
mov dword [esi], vtable.CCritical.0
call ebx
lea eax, [edi + 0x70]
push eax
mov dword [edi + 0x6c], vtable.CCritical.0
call ebx
lea ebx, [edi + 0x90]
mov dword [ebx], vtable.CMapPtr.0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 1
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
lea eax, [edi + 0xac]
mov dword [eax], vtable.CMapPtr.0
mov dword [eax + 4], 0
mov dword [eax + 8], 1
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov byte [ebp - 4], 6
mov dword [ebp + 0xc], esi
test esi, esi
je 0x10047614
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebp + 0xc]
mov dword [edi + 0x30], 0
call fcn.10046c80
mov eax, dword [edi + 0xac]
lea ecx, [edi + 0xac]
push 0x17
mov dword [edi + 8], 0
call dword [eax + 4]
mov eax, dword [ebx]
push 0x35
mov ecx, ebx
call dword [eax + 4]
mov eax, dword [edi + 0x14]
lea ecx, [edi + 0x14]
push 0x35
call dword [eax + 4]
mov dword [edi + 0xc], 0
mov dword [edi + 0xc8], 0
mov dword [edi + 0x88], 0xa
mov dword [edi + 0x8c], 0xa
mov dword [edi + 0x10], 0xf
mov dword [edi + 0xcc], 0x1388
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10047b10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008ae80
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x100c90c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
test edi, edi
je 0x10047bb2
cmp dword [0x100f27d8], 0
je 0x10047bc6
cmp dword [ebp + 0xc], 0xffffffff
jne 0x10047bb2
lea eax, [esi + 0x6c]
mov dword [ebp + 8], eax
test eax, eax
je 0x10047b61
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + esi + 0x48]
call fcn.10047ac0
mov dword [edi + 0x28], eax
lea eax, [ebp + 0xc]
push eax
push 0
push edi
push 0x100480b0
push 0
push 0
mov dword [ebp + 0xc], 0
call fcn.1006e348
add esp, 0x18
test eax, eax
je 0x10047baa
mov edx, dword [esi + 0x14]
lea ecx, [esi + 0x14]
push eax
push dword [ebp + 0xc]
call dword [edx + 8]
lea ecx, [ebp + 8]
call fcn.10046c80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp + 0xc]
cmp ebx, 0xffffffff
je 0x10047b4d
mov eax, dword [esi]
push ebx
push edi
call dword [eax + 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
cmp ebx, eax
ja 0x10047bb2
lea eax, [esi + 0x6c]
mov dword [ebp + 8], eax
test eax, eax
je 0x10047bf7
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 1
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x10]
jge 0x10047baa
mov eax, dword [esi + 4]
mov dword [ebp + 0xc], 0
mov eax, dword [eax + 4]
lea ecx, [esi + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 4]
cmp eax, 0xffffffff
je 0x10047baa
lea eax, [ebp + 0xc]
push eax
push 0
push esi
push 0x10047f40
push 0
push 0
call fcn.1006e348
add esp, 0x18
inc dword [esi + 0xc]
jmp 0x10047b9d
Function at 0x10049b30
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0xc
test eax, eax
jne 0x10049b43
mov esp, ebp
pop ebp
ret 0xc
push ebx
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10049c61
test ebx, ebx
je 0x10049c61
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x10049c4b
mov dword [ebp - 8], 0
mov eax, 0x400
push esi
mov dword [ebp + 8], eax
inc eax
push edi
xor esi, esi
push eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], esi
call fcn.1006e6ed
mov edi, eax
add esp, 4
test edi, edi
je 0x10049c6a
push dword [ebp - 0xc]
push esi
push edi
call fcn.10074d40
add esp, 0xc
lea eax, [ebp - 4]
push esi
push eax
push dword [ebp + 8]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10049c1d
lea ecx, [ecx]
mov eax, dword [ebp - 4]
test eax, eax
je 0x10049c1d
add esi, eax
cmp dword [ebp - 8], 0
jne 0x10049c05
mov eax, dword [ebp + 8]
add eax, esi
push eax
push edi
call fcn.1007171c
mov edi, eax
add esp, 8
test edi, edi
je 0x10049c6a
push dword [ebp + 8]
lea eax, [edi + esi]
push 0
push eax
call fcn.10074d40
add esp, 0xc
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
lea eax, [edi + esi]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10049bd0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov ecx, dword [ebp + 0xc]
push edi
mov byte [edi + esi], 0
call fcn.1003e970
push edi
call fcn.100716e4
add esp, 4
xor eax, eax
pop edi
test esi, esi
pop esi
setg al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp - 8], 1
test eax, eax
jne 0x10049b8b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10049c80
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008b408
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
push edi
mov eax, dword [0x100c90c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [ebp + 8], 0
je 0x10049d78
cmp dword [ebp + 0xc], 0
je 0x10049d78
test esi, esi
je 0x10049d78
push ecx
push esi
lea ecx, [ebp - 0x30]
call fcn.1003e580
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0
call fcn.1003ff80
mov dword [ebp - 0x10], vtable.CFileHandler.0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10049d05
cmp dword [ebp - 0x1c], 0
je 0x10049d05
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10049d0e
lea eax, [ebp - 0x20]
push eax
call fcn.10049e60
push 0x30
push 0x100b3910
push esi
call fcn.1007091c
mov edi, eax
add esp, 0xc
test edi, edi
je 0x10049d51
push edi
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.100710ef
push edi
mov esi, eax
call fcn.1006f79a
add esp, 0x14
push edi
call fcn.10070f21
add esp, 4
test esi, esi
jle 0x10049d51
mov esi, 1
jmp 0x10049d53
xor esi, esi
lea ecx, [ebp - 0x20]
call fcn.10022960
lea ecx, [ebp - 0x30]
call fcn.10022960
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x10049dc0
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x100f2570], 0
push esi
jne 0x10049e0b
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10049e0e
cmp dword [ebp + 0xc], 0
je 0x10049e0e
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10049e0b
xor eax, eax
cmp dword [ebp + 0x28], eax
sete al
push eax
push dword [ebp + 0x24]
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
test esi, esi
jne 0x10049e06
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp + 0x14]
jmp 0x10049e10
mov eax, dword [ebp + 0x14]
xor esi, esi
mov dword [ebp + 8], vtable.CStringBufferW.0
test eax, eax
je 0x10049e24
push eax
call fcn.1006eaef
add esp, 4
mov eax, dword [ebp + 0x24]
mov dword [ebp + 0x14], 0
mov dword [ebp + 0x10], 0
mov dword [ebp + 0xc], 0
mov dword [ebp + 8], vtable.CSeed.0
mov dword [ebp + 0x18], vtable.CStringBufferW.0
test eax, eax
je 0x10049e57
push eax
call fcn.1006eaef
add esp, 4
mov eax, esi
pop esi
pop ebp
ret 0x24

Function at 0x10049e60
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x100f2570], 0
mov eax, dword [ebp + 8]
push edi
mov edi, dword [eax + 0xc]
jne 0x10049ea0
test edi, edi
je 0x10049ea0
push esi
push edi
mov esi, 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10049e98
push eax
push edi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
xor ecx, ecx
test eax, eax
cmovne esi, ecx
mov eax, esi
pop esi
pop edi
pop ebp
ret 4
xor eax, eax
pop edi
pop ebp
ret 4
Function at 0x10049eb0
Capabilities:
Delete directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008b6b8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x100c90c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], 0
test edi, edi
je 0x10049ef6
cmp edi, 2
je 0x10049ef6
cmp edi, 1
jne 0x10049f56
cmp dword [ebp + 0x18], esi
jne 0x10049f42
jmp 0x10049f4c
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test esi, esi
jne 0x10049f56
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x80
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x10049f33
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test esi, esi
je 0x10049f33
mov esi, 1
jmp 0x10049f56
cmp edi, 2
jne 0x10049f56
cmp dword [ebp + 0x18], 0
jne 0x10049f42
xor esi, esi
jmp 0x10049f4c
mov ecx, dword [ebp + 0x18]
call fcn.1004a420
mov esi, eax
test esi, esi
jne 0x10049f56
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0xc], vtable.CStringBufferW.0
test eax, eax
je 0x10049f6d
push eax
call fcn.1006eaef
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x1004a420
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008b346
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x100c90c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.10074d40
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x103
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov esi, eax
mov dword [ebp - 4], 0
push 4
lea ecx, [ebp - 0x228]
mov dword [ebp - method.CStringBufferW.virtual_0], vtable.CStringBufferW.0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x224], 0
call fcn.1003f120
mov ebx, dword [ebp - 0x21c]
push 4
push 0x100b3924
push dword [ebp - 0x220]
push ebx
call fcn.1006fb74
add esp, 0x10
mov dword [ebp - 0x224], 4
mov dword [ebp - 0x220], 5
mov dword [ebp - 4], 1
test esi, esi
je 0x1004a5a8
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004a507
sub ecx, edx
sar ecx, 1
test ebx, ebx
jne 0x1004a56b
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x228]
call fcn.1003ea90
mov esi, dword [ebp - 0x21c]
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, eax
test esi, esi
je 0x1004a54d
push esi
call fcn.1006eaef
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006daee
mov esp, ebp
pop ebp
ret
lea eax, [ecx + 4]
push eax
lea ecx, [ebp - 0x228]
call fcn.1003f120
test eax, eax
je 0x1004a52d
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x224]
mov eax, dword [ebp - 0x220]
mov esi, dword [ebp - 0x21c]
sub eax, ecx
push eax
lea eax, [esi + ecx*2]
push eax
call fcn.1006fdc7
add esp, 0xc
jmp 0x1004a533
mov ecx, edi
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004a5b0
sub ecx, edx
sar ecx, 1
test ebx, ebx
jne 0x1004a5ca
push ecx
push edi
jmp 0x1004a522
lea eax, [ecx + 4]
push eax
lea ecx, [ebp - 0x228]
call fcn.1003f120
test eax, eax
je 0x1004a52d
push edi
jmp 0x1004a585
Function at 0x1004a5f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008b446
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x100c90c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
lea ecx, [ebx + 8]
mov dword [ebx], vtable.CXmlDocument.0
mov dword [ecx], vtable.CMapStringPtrW.0
mov dword [ecx + 4], vtable.CMapPtr.0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 1
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ebp - 4], 0
mov dword [ebx + 0x28], vtable.CMapPtr.0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 1
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
mov byte [ebp - 4], 1
mov eax, dword [ecx]
lea esi, [ebx + 4]
push 0x25
mov dword [esi], 0
call dword [eax]
mov eax, dword [ebx + 0x28]
push 0x25
lea ecx, [ebx + 0x28]
call dword [eax + 4]
push esi
push 0x10096c94
push 1
push 0
push 0x10096ca4
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1004bd80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov eax, dword [ebx + 0xc]
push eax
push eax
push dword [ebp + 8]
mov edi, ecx
push edi
push str.Start_:_hRoot0x_X__wCharKey_s__wStrValueName_s__wStrValue_s
push str.CSetupRegW::SetRegEntry
push 8
call fcn.10041ef0
add esp, 0x1c
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0x10]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1004bdf4
xor ecx, ecx
cmp eax, 5
setne cl
push eax
push str.End_:_return_FALSE__RegCreateKeyExW_returned_0x_X_
push str.CSetupRegW::SetRegEntry
add ecx, 2
push ecx
call fcn.10041ef0
add esp, 0x10
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x1004be0d
mov eax, dword [ebx + 4]
test eax, eax
je 0x1004be0d
lea eax, [eax*2 + 1]
push eax
push ecx
jmp 0x1004be14
push 1
push 0x10096ed4
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, eax
test ecx, ecx
je 0x1004be53
xor eax, eax
cmp ecx, 5
setne al
push ecx
push str.End_:_return_FALSE__RegSetValueExW_returned_0x_X_
push str.CSetupRegW::SetRegEntry
add eax, 2
push eax
call fcn.10041ef0
add esp, 0x10
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.End_:_return_TRUE
push str.CSetupRegW::SetRegEntry
push 8
call fcn.10041ef0
add esp, 0xc
mov eax, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1004be80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008b7e8
mov eax, dword fs:[0]
push eax
push ebx
mov eax, dword [0x100c90c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
push dword [ebp + 0x20]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.Start_:_root0x_X__key_s__wStrValName_s__iType0x_X
push str.CSetupRegW::IsValueInRegistry
push 8
call fcn.10041ef0
add esp, 0x1c
lea eax, [ebp + 0x10]
push eax
push 0x201
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0x20]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x10]
mov ecx, 1
test eax, eax
cmove ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x20]
mov dword [ebp + 0x14], vtable.CStringBufferW.0
test eax, eax
je 0x1004bf1c
push eax
call fcn.1006eaef
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x1004c1b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x100c90c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 0x118], edx
lea edx, [ebp - 0x114]
push edx
push 0x201
xor edi, edi
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x1004c27b
push 0x103
push eax
mov byte [ebp - 0x110], al
lea eax, [ebp - 0x10f]
push eax
call fcn.10074d40
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x11c]
push eax
push esi
push dword [ebp - 0x118]
mov dword [ebp - 0x120], 0x104
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x1004c264
cmp dword [ebp - 0x11c], 4
je 0x1004c257
lea esi, [edi + 0xd]
jmp 0x1004c264
mov eax, dword [ebp - 0x110]
mov dword [ebx], eax
mov edi, 1
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x1004c27b
mov eax, 8
jmp 0x1004c286
xor eax, eax
cmp esi, 5
setne al
add eax, 2
push esi
push edi
push str.End_:_return_value_d__rc0x_X
push str.CSetupRegW::GetIntFromRegistryValue
push eax
call fcn.10041ef0
mov ecx, dword [ebp - 4]
add esp, 0x14
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006daee
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1004c2b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
mov edi, ecx
push dword [ebp + 0xc]
push esi
push edi
push str.Start_:_root0x_X__key_s__valueName_s__value_ld
push str.CSetupRegW::WriteDWORDToRegistry
push 8
call fcn.10041ef0
add esp, 0x1c
mov dword [ebp - 4], 0
call fcn.10062420
mov ebx, eax
test ebx, ebx
je 0x1004c2fe
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp + 0xc]
push esi
push edi
call fcn.10062140
mov dword [ebp - 4], eax
lea eax, [ebp + 8]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x1004c338
xor ecx, ecx
cmp eax, 5
setne cl
push eax
push str.End_:_return_FALSE__RegCreateKeyW_returned_0x_X_
push str.CSetupRegW::WriteDWORDToRegistry
add ecx, 2
push ecx
call fcn.10041ef0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x1004c387
xor eax, eax
cmp edi, 5
setne al
push edi
push str.End_:_return_FALSE__RegSetValueExW_returned_0x_X_
push str.CSetupRegW::WriteDWORDToRegistry
add eax, 2
push eax
call fcn.10041ef0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push str.End_:_return_TRUE
push str.CSetupRegW::WriteDWORDToRegistry
push 8
call fcn.10041ef0
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x1004c3b0
test ebx, ebx
je 0x1004c3b0
test esi, esi
je 0x1004c3b0
mov ecx, esi
call fcn.100621f0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc