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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4591b0
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x46a008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 0x14], 0
mov dword [esi], vtable.CExtractCallbackImp.4.0
mov dword [esi + 4], vtable.CExtractCallbackImp.3.0
mov dword [esi + 8], vtable.CExtractCallbackImp.2.0
mov dword [esi + 0xc], vtable.CExtractCallbackImp.1.0
mov dword [esi + 0x10], vtable.CExtractCallbackImp.0
push 8
mov dword [esi + 0x18], 0
call fcn.00448381
xor ecx, ecx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 3
mov word [eax], cx
mov dword [ebp - 4], ecx
push 8
mov dword [esi + 0x28], ecx
call fcn.00448381
xor ecx, ecx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 3
mov word [eax], cx
mov byte [ebp - 4], 1
push 8
mov dword [esi + 0x34], ecx
call fcn.00448381
xor ecx, ecx
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 3
mov word [eax], cx
mov byte [ebp - 4], 2
mov word [esi + 0x40], 1
mov dword [esi + 0x50], ecx
mov word [esi + 0x54], cx
push 8
mov dword [esi + 0x58], ecx
call fcn.00448381
xor ecx, ecx
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 3
mov word [eax], cx
mov byte [ebp - 4], 3
push 8
mov dword [esi + 0x64], ecx
call fcn.00448381
xor ecx, ecx
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 3
mov word [eax], cx
mov byte [ebp - 4], 4
push 8
mov dword [esi + 0x70], ecx
call fcn.00448381
xor ecx, ecx
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 3
mov word [eax], cx
mov byte [ebp - 4], 5
push 8
mov dword [esi + 0x7c], ecx
call fcn.00448381
xor ecx, ecx
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 3
mov word [eax], cx
mov byte [ebp - 4], 6
mov dword [esi + 0x88], ecx
push 8
call fcn.00448381
xor ecx, ecx
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], 0
mov dword [esi + 0x90], 3
mov word [eax], cx
mov byte [ebp - 4], 7
push 8
mov dword [esi + 0x94], ecx
call fcn.00448381
mov dword [esi + 0x94], eax
add esp, 0x24
xor ecx, ecx
mov dword [esi + 0x98], 0
mov dword [esi + 0x9c], 3
mov word [eax], cx
mov eax, esi
mov word [esi + 0xa0], cx
mov byte [esi + 0xa2], cl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x447f90
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp + 8]
mov eax, 0x1fffffff
push ebx
mov ebx, ecx
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 0xc], ebx
mov eax, edi
shl eax, cl
cmp edx, eax
ja 0x4480e3
mov esi, dword [ebx + 4]
lea eax, [edx - 1]
or eax, edi
mov dword [ebp + 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.00447b10
mov ecx, dword [ebx + 4]
lea eax, [edi - 1]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], edi
mov ecx, dword [ecx]
mov edx, ecx
cmp ecx, esi
je 0x4480b6
movzx eax, byte [ecx + 8]
mov edx, dword [edx]
xor eax, 0x811c9dc5
imul edi, eax, 0x1000193
movzx eax, byte [ecx + 9]
xor edi, eax
imul eax, edi, 0x1000193
mov edi, dword [ebx + 0x18]
and edi, eax
mov eax, dword [ebx + 0xc]
mov ebx, dword [eax + edi*8]
lea eax, [eax + edi*8]
mov dword [ebp - 4], eax
cmp ebx, esi
jne 0x44802e
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x4480a9
mov eax, dword [eax + 4]
movzx edi, word [ecx + 8]
cmp di, word [eax + 8]
jne 0x44806a
mov eax, dword [eax]
mov dword [ebp - 8], eax
cmp eax, ecx
je 0x448062
mov ebx, dword [ecx + 4]
mov esi, dword [ebp - 8]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov dword [esi + 4], edi
mov esi, dword [ebp + 8]
mov dword [edx + 4], ebx
mov dword [ecx + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ecx
jmp 0x4480a9
mov edi, eax
cmp ebx, eax
je 0x448086
mov eax, dword [eax + 4]
mov edi, eax
movzx esi, word [ecx + 8]
cmp si, word [eax + 8]
mov esi, dword [ebp + 8]
je 0x4480bf
cmp ebx, eax
jne 0x448070
mov eax, dword [ecx + 4]
mov dword [ebp - 8], eax
mov dword [eax], edx
mov ebx, dword [edx + 4]
mov dword [ebx], edi
mov eax, dword [edi + 4]
mov dword [eax], ecx
mov dword [edi + 4], ebx
mov edi, dword [ebp - 8]
mov dword [edx + 4], edi
mov dword [ecx + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax], ecx
mov ebx, dword [ebp - 0xc]
mov ecx, edx
cmp edx, esi
jne 0x447ff2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov esi, eax
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov dword [esi + 4], edi
mov esi, dword [ebp + 8]
mov dword [edx + 4], ebx
mov dword [ecx + 4], eax
jmp 0x4480a9
push str.invalid_hash_bucket_count
call fcn.00449164
int3

Function at 0x44f623
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45c46c
push 0x45c464
push str.FlsAlloc
push 0x1e
call fcn.0044f501
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44f657
push dword [ebp + 8]
mov ecx, esi
call dword [0x45a308]
call esi
jmp 0x44f65d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x44f6a1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45c47c
push 0x45c474
push str.FlsGetValue
push 0x20
call fcn.0044f501
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44f6d8
push dword [ebp + 8]
mov ecx, esi
call dword [0x45a308]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x450f6b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x451008
push ebx
push esi
call fcn.00450f34
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0044f1e3
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x450fb5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x451007
push edi
push eax
call fcn.0044f33d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x450fd5
call fcn.0044f303
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x451006
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0044f1e3
add esp, 0x20
test eax, eax
jne 0x450ff4
push edi
call fcn.0044f303
jmp 0x450ffc
push ebx
call fcn.0044f303
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x1000119b
Capabilities:
Create process on windows
Extract resource via kernel32 functions
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0xa
push 0x66
push dword [0x100042a0]
xor esi, esi
mov dword [ebp - 0x210], esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
je 0x10001308
push edi
push dword [0x100042a0]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push dword [0x100042a0]
mov dword [ebp - 0x214], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
je 0x10001308
cmp dword [ebp - 0x214], esi
je 0x10001308
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x218], eax
cmp eax, esi
je 0x10001308
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x100031cc
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push esi
push esi
push 2
push esi
xor ebx, ebx
inc ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10001307
push esi
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x214]
mov dword [ebp - 0x21c], esi
push dword [ebp - 0x218]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x210], eax
call edi
cmp dword [ebp - 0x210], ebx
jne 0x10001307
push 0x44
lea eax, [ebp - 0x270]
push esi
push eax
call fcn.10001fa0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x240], ax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x270]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
push esi
mov dword [ebp - 0x270], 0x44
mov dword [ebp - 0x244], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x210], eax
cmp eax, ebx
jne 0x10001307
push dword [ebp - 0x228]
call edi
push dword [ebp - 0x22c]
call edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
xor ecx, ebp
pop esi
call fcn.10001f91
leave
ret
Function at 0x1000141d
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push 0x44
xor esi, esi
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.10001fa0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x58], 0x44
push esi
mov dword [ebp - 0x2c], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1000146d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100014b2
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1000148b
push 0x5b4
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 4], 0x2c9
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
mov eax, dword [ebp - 4]
pop esi
leave
ret
Function at 0x100014b5
Capabilities:
Check if file exists
Get common file path
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 2
push 0
push 0x10003318
push 0x80000000
mov dword [ebp - 0x828], 0x208
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
test eax, eax
jne 0x10001692
cmp word [ebp - 0x20c], 0x22
setne al
test eax, eax
jne 0x1000169f
lea eax, [ebp - 0x20a]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, 0x10003314
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x10001692
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x10003304
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10001692
push esi
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHELL32.dll_PathGetShortPath]
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x100032f8
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x414]
push eax
push ebx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x824]
push 0x100032a0
push eax
call esi
mov edi, 0xea60
lea eax, [ebp - 0x824]
push edi
push eax
call fcn.1000141d
add esp, 0x1c
test eax, eax
je 0x10001690
lea eax, [ebp - 0x414]
push eax
push ebx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x824]
push 0x1000326c
push eax
call esi
lea eax, [ebp - 0x824]
push 0x1d4c0
push eax
call fcn.1000141d
add esp, 0x1c
lea eax, [ebp - 0x414]
push eax
call fcn.10001718
lea eax, [ebp - 0x414]
push eax
push ebx
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x824]
push 0x10003220
push eax
call esi
lea eax, [ebp - 0x824]
push 0x3a980
push eax
call fcn.1000141d
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x824]
push 0x100031f4
push eax
call esi
lea eax, [ebp - 0x824]
push edi
push eax
call fcn.1000141d
add esp, 0x34
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10001f91
leave
ret
mov eax, 0x100031f0
jmp 0x1000152e
Function at 0x10001adc
Capabilities:
Create thread
Resume thread
Terminate thread

Disassembly:
push esi
xor esi, esi
push esi
push 4
push esi
push 0x100019a3
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xfffffffffffffff1
push eax
mov dword [0x100042a8], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x10001b13
push dword [0x100042a8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x10001b26
push esi
push dword [0x100042a8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x100042a8], esi
pop esi
ret

Function at 0x10001f91
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x10001f9b
repz ret
jmp fcn.1000212d
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x403203
pop dword [ebp - 0x3c]
mov eax, 0x6818c284
sub eax, 0x67d89081
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x48a5a33c
sub dword [ebp - 0x4c], 0xfa535df1
mov dword [ebp - 0x48], 0xefee6d54
sub dword [ebp - 0x48], 0xbdbb210f
mov dword [ebp - 0x44], 0xdc73c5fd
sub dword [ebp - 0x44], 0x902781cf
mov dword [ebp - 0x40], 0x4618ef5f
add dword [ebp - 0x40], 0xb9e710a1
lea eax, [ebp - 0x4c]
push eax
mov eax, 0xbac24b9f
add eax, 0x457e34ed
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x71f3482b
sub dword [ebp - 0x4c], 0xfd80ded5
mov dword [ebp - 0x48], 0x917205ad
sub dword [ebp - 0x48], 0x5005a438
mov dword [ebp - 0x44], 0x1cd5a938
add dword [ebp - 0x44], 0x4699c334
mov dword [ebp - 0x40], 0x17a8a7c1
add dword [ebp - 0x40], 0xe857583f
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x36909
push 0
call eax
mov ecx, 0x47e2
mov edi, eax
mov edx, 0x96bf8d8a
sub edx, 0x967e7d8a
add edx, dword [ebp - 0x3c]
mov esi, 0x9d9c8ec1
sub esi, 0x4c499ba2
add dword [ebp - 0x34], 0x22c70ce8
mov ebx, dword [edx]
xor ebx, esi
add dword [ebp - 0x10], 0x8dfd83c4
mov dword [edi], ebx
add dword [ebp - 0x14], ecx
add edi, 0xcabe6017
sub edi, 0xcabe6013
add edx, 0x3b1dddbb
sub edx, 0x3b1dddb7
loop 0x40331a
add eax, 0x1125b
xor ebx, ebx
add ebx, eax
add eax, 0x14ada2d3
add eax, 0xeb525d32
mov ecx, 0x400000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x4013cf
Capabilities:
Get number of processors

Disassembly:
mov ecx, 0x5087b0
jmp 0x4013c3
mov eax, 0x4c7b54
call fcn.0049708c
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.004014f4
mov eax, dword [0x504198]
lea ecx, [esi + 0xac]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ecx], eax
mov eax, dword [0x504198]
mov dword [esi + 0xb4], eax
push 1
mov dword [esi], 0x4cf7cc
pop eax
mov ebx, 0x5087ac
push 0xa
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], 7
or dword [esi + 0x28], 0xffffffff
or dword [esi + 0x24], 0xffffffff
pop edx
push 0x64
mov dword [esi + 0x30], edi
mov dword [esi + 0x64], edx
mov dword [esi + 0x6c], edx
mov dword [esi + 0x2c], edi
pop edx
mov dword [esi + 0x34], 2
mov dword [esi + 0x38], eax
push ebx
mov byte [ebp - 4], 2
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], 5
mov dword [esi + 0x60], eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x9c], edx
mov dword [esi + 0xa0], edx
mov dword [esi + 0xa4], edi
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], 0x3e8
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], eax
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], 0xc0
mov dword [esi + 0x90], 0x6c
mov dword [esi + 0x94], eax
mov dword [esi + 0x98], edi
mov dword [esi + 0xa8], edi
call fcn.004b238d
push ebx
lea ecx, [esi + 0xb4]
mov dword [esi + 0xb0], edi
call fcn.004b238d
or dword [esi + 0xc0], 0xffffffff
or dword [esi + 0xbc], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0xb8], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40d60f
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x4c8b88
call fcn.0049708c
sub esp, 0x22c
push ebx
push esi
mov dword [ebp - 0x2c], ecx
mov esi, 0x508878
push str.DataFile_Types
mov ecx, esi
call fcn.004c505f
xor ebx, ebx
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x40d645
xor eax, eax
jmp 0x40d78d
mov eax, dword [0x504198]
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x38]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push eax
push ebx
push ebx
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 2
push eax
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 0x24], pe_nt_image_headers32
mov dword [ebp - 0x20], ebx
call edi
cmp eax, 0x103
je 0x40d75d
lea eax, [ebp - 0x238]
push eax
push str.DataFile_Types
lea eax, [ebp - 0x10]
push 0x4f0100
push eax
call fcn.004afb27
add esp, 0x10
lea eax, [ebp - 0x28]
mov ecx, esi
push ebx
push str.Name
push dword [ebp - 0x10]
push eax
call fcn.004c5111
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004b233d
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004b21f6
push ebx
push str.Extension
push dword [ebp - 0x10]
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
call fcn.004c5111
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.004b233d
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.004b21f6
push 0xffffffffffffffff
push str.Icon
push dword [ebp - 0x10]
mov ecx, esi
call fcn.004c50a5
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 8], ebx
je 0x40d736
mov edx, dword [ebp - 0x1c]
cmp dword [edx - 8], ebx
je 0x40d736
cmp eax, 0xffffffff
je 0x40d736
push eax
push edx
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.0040d87a
lea eax, [ebp - 0x38]
inc dword [ebp - 0x20]
push eax
push ebx
push ebx
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x238]
mov dword [ebp - 0x24], pe_nt_image_headers32
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x18]
jmp 0x40d681
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004b21f6
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.004b21f6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004b21f6
push 1
pop eax
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40e8b5
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push ebx
push esi
lea eax, [ebp - 4]
push edi
xor ebx, ebx
push eax
mov edi, 0x4d2558
push ebx
push ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov esi, 0x2b4
lea eax, [ebp - 0x2bc]
push esi
push ebx
push eax
call fcn.004970b0
lea eax, [ebp - 8]
add esp, 0xc
neg eax
sbb eax, eax
lea ecx, [ebp - 4]
and eax, ecx
xor ecx, ecx
cmp dword [ebp + 8], ebx
mov eax, dword [eax]
sete cl
or cx, 0x4008
push ecx
lea ecx, [ebp - 0x2bc]
push esi
push ecx
push ebx
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea ecx, [ebp - 8]
mov esi, eax
neg ecx
sbb ecx, ecx
lea eax, [ebp - 4]
and ecx, eax
mov dword [ebp - 8], edi
call fcn.0040ec43
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4