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

Disassembly:
sub esp, 0x214
mov eax, dword [0x4e7d04]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [esp + 0x218]
cmp dword [eax + 8], 5
jne 0x4179b3
cmp dword [eax + 0xc], 1
jb 0x4179b3
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00482260
add esp, 0xc
lea edx, [esp + 4]
push edx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push str.CSDVersion
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4179b3
lea edx, [esp + 8]
push str.Service_Pack_2
push edx
call fcn.00488d8f
add esp, 8
test eax, eax
jl 0x4179b3
mov eax, 1
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004820d9
add esp, 0x214
ret 4
mov ecx, dword [esp + 0x210]
xor ecx, esp
xor eax, eax
call fcn.004820d9
add esp, 0x214
ret 4

Function at 0x4179d0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
push esi
lea ecx, [esp + 0xc]
push ecx
push str.ProgramFilesDir
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x417a1a
mov edx, dword [esp]
push edx
push esi
push str.ProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x417a56
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417a20
sub eax, edx
sar eax, 1
mov dword [esp], eax
cmp word [esi + eax*2 - 2], 0x5c
je 0x417a4d
mov ecx, 0x5c
mov word [esi + eax*2], cx
mov eax, dword [esp]
xor edx, edx
mov word [esi + eax*2 + 2], dx
mov eax, 1
add esp, 8
ret
xor eax, eax
add esp, 8
ret

Function at 0x417a60
Capabilities:
Get file version info

Disassembly:
mov eax, 0x2010
call fcn.00484d50
mov eax, dword [0x4e7d04]
xor eax, esp
mov dword [esp + 0x200c], eax
push 0x1fff
lea eax, [esp + 0x11]
push 0
push eax
mov byte [esp + 0x18], 0
call fcn.00482260
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x417af9
cmp eax, 0x1fff
ja 0x417af9
lea edx, [esp + 0xc]
push edx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x417af9
lea eax, [esp + 8]
push eax
lea ecx, [esp + 4]
push ecx
push 0x4d0e64
lea edx, [esp + 0x18]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x417af9
mov eax, dword [esp]
movzx ecx, word [eax + 0xa]
mov dword [edi], ecx
mov eax, 1
mov ecx, dword [esp + 0x200c]
xor ecx, esp
call fcn.004820d9
add esp, 0x2010
ret
mov ecx, dword [esp + 0x200c]
xor ecx, esp
xor eax, eax
call fcn.004820d9
add esp, 0x2010
ret
Function at 0x417c90
Capabilities:
Check os version

Disassembly:
sub esp, 0x144
mov eax, dword [0x4e7d04]
xor eax, esp
mov dword [esp + 0x140], eax
mov eax, dword [0x4ea19c]
test eax, eax
jl 0x417ccd
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.004820d9
add esp, 0x144
ret 4
xor eax, eax
push esi
push 0x11c
push eax
lea edx, [esp + 0x30]
push edx
mov dword [0x4ea19c], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call fcn.00482260
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], 0x11c
call esi
test eax, eax
jne 0x417d3d
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], 0x114
call esi
test eax, eax
je 0x417d91
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x417d91
lea edx, [esp + 4]
push edx
call eax
mov eax, dword [esp + 4]
cmp ax, 9
je 0x417d6f
cmp ax, 6
jne 0x417d91
mov eax, 1
mov dword [0x4ea19c], eax
pop esi
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.004820d9
add esp, 0x144
ret 4
mov ecx, dword [esp + 0x144]
pop esi
xor ecx, esp
xor eax, eax
call fcn.004820d9
add esp, 0x144
ret 4

Function at 0x418140
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x110c
call fcn.00484d50
mov eax, dword [0x4e7d04]
xor eax, esp
mov dword [esp + 0x1108], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x800
lea ecx, [esp + 0x914]
push 0
push ecx
mov dword [esp + 0x18], eax
call fcn.00482260
add esp, 0xc
push 0x800
lea edx, [esp + 0x114]
push 0
push edx
call fcn.00482260
add esp, 0xc
lea eax, [esp + 0x910]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x100
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.00482260
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
xor esi, esi
jmp 0x4181d0
lea edx, [esp + 0x10]
push 0x80
push edx
call fcn.00407ef0
add esp, 8
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x914]
push ecx
lea edx, [esp + 0x118]
push edx
call edi
push str..tmp
lea eax, [esp + 0x114]
push 0x400
push eax
call fcn.00485881
add esp, 0xc
lea ecx, [esp + 0x110]
push ecx
call ebx
test eax, eax
je 0x41823e
inc esi
cmp esi, 0xa
jl 0x4181d0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1108]
xor ecx, esp
call fcn.004820d9
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x110]
lea edx, [eax + 2]
jmp 0x418250
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418250
mov ecx, dword [esp + 0xc]
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x114]
push edx
call fcn.00404340
mov ecx, dword [esp + 0x1114]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004820d9
mov esp, ebp
pop ebp
ret
Function at 0x418290
Capabilities:
Get token membership

Disassembly:
sub esp, 0x14
mov eax, dword [0x4e7d04]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
xor ebx, ebx
lea eax, [esp + 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [esp + 4], eax
cmp eax, ebx
je 0x418309
mov eax, dword [esp + 8]
lea edx, [esp + 4]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x4182fa
mov dword [esp + 4], ebx
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x14]
pop ebx
xor ecx, esp
call fcn.004820d9
add esp, 0x14
ret

Function at 0x4184c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
push eax
xor edi, edi
push ecx
push ebx
mov dword [ebp + 4], edi
mov dword [ebp + 8], edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
jne 0x4184fa
mov ecx, dword [esp + 0x10]
mov dword [ebp + 4], edi
pop edi
pop esi
mov dword [ebp + 8], ecx
xor eax, eax
pop ebp
add esp, 8
ret 4
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push ebx
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4184e5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [esp + 0x18]
mov edi, eax
mov dword [ebp + 4], edi
pop edi
mov ecx, edx
pop esi
mov dword [ebp + 8], ecx
mov dword [esp + 8], edx
mov eax, 1
pop ebp
add esp, 8
ret 4

Function at 0x418570
Capabilities:
Delete file

Disassembly:
push ecx
push esi
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 1
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4185a0
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [edi + 4]
mov edx, dword [edi + 8]
push eax
push esi
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
call fcn.004185d0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
pop ecx
ret
Function at 0x4185d0
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x1010
call fcn.00484d50
mov eax, dword [0x4e7d04]
xor eax, esp
mov dword [esp + 0x100c], eax
mov eax, dword [esp + 0x1014]
push ebx
push ebp
push edi
mov edi, dword [esp + 0x1024]
mov ebx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
cmp eax, 0xffffffff
je 0x4186fb
xor ebp, ebp
cmp edi, ebp
je 0x4186fb
cmp ebx, ebp
jle 0x4186fb
mov eax, ebx
cdq
and edx, 0xfff
add eax, edx
push esi
mov esi, eax
sar esi, 0xc
and ebx, 0x80000fff
jns 0x41863f
dec ebx
or ebx, 0xfffff000
inc ebx
cmp esi, ebp
mov dword [esp + 0x10], ebp
jle 0x41869c
jmp 0x418650
push 0x1000
lea edx, [esp + 0x20]
push edi
push edx
call fcn.004851a0
mov edx, dword [esp + 0x20]
add esp, 0xc
push 0
lea eax, [esp + 0x14]
push eax
push 0x1000
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4186cb
mov eax, dword [esp + 0x18]
test eax, eax
je 0x418691
mov ecx, dword [esp + 0x10]
add dword [eax], ecx
inc ebp
add edi, 0x1000
cmp ebp, esi
jl 0x418650
test ebx, ebx
jle 0x4186f4
push ebx
lea edx, [esp + 0x20]
push edi
push edx
call fcn.004851a0
mov edx, dword [esp + 0x20]
add esp, 0xc
push 0
lea eax, [esp + 0x14]
push eax
push ebx
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4186e6
xor eax, eax
pop esi
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.004820d9
add esp, 0x1010
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4186f4
mov ecx, dword [esp + 0x10]
add dword [eax], ecx
mov eax, 1
jmp 0x4186cd
mov ecx, dword [esp + 0x1018]
pop edi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004820d9
add esp, 0x1010
ret
Function at 0x418760
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4bfc10
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
mov eax, dword [0x4e7d04]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x4eab28]
mov edx, dword [eax + 0xc]
mov ecx, 0x4eab28
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
mov dword [esp + 0x24], ebx
call fcn.00418140
add esp, 4
test eax, eax
jne 0x4187f2
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4187db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
mov ebp, dword [esp + 0x10]
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, ebp
call fcn.00418570
test eax, eax
jne 0x418815
mov dword [esp + 0x20], 0xffffffff
lea eax, [ebp - 0x10]
jmp 0x4187c2
mov edx, dword [0x4eab28]
mov eax, dword [edx + 0xc]
mov ecx, 0x4eab28
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0x24], 1
call fcn.00418140
mov esi, dword [esp + 0x18]
add esp, 4
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
cmp dword [esp + 0x2c], ebx
je 0x41888f
push ebx
push esi
push ebp
call fcn.0047cbd0
add esp, 0xc
test eax, eax
jge 0x4188bf
lea eax, [esi - 0x10]
mov byte [esp + 0x20], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41887f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x20], 0xffffffff
lea eax, [ebp - 0x10]
jmp 0x4187c2
cmp ebp, ebx
je 0x4188a9
cmp esi, ebx
je 0x4188a9
push esi
push 0x418960
push ebx
push ebp
call dword [sym.imp.SETUPAPI.dll_SetupIterateCabinetW]
cmp eax, ebx
jne 0x4188bf
lea eax, [esi - 0x10]
mov byte [esp + 0x20], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x418873
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.00403120
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi - 0x10]
mov byte [esp + 0x20], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4188f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418918
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
Function at 0x41a480
Capabilities:
Check if file exists
Delete file
Get file size

Disassembly:
sub esp, 8
push eax
mov ecx, 0x4ed098
call fcn.00403120
mov ecx, dword [0x4ed098]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41a50c
mov eax, dword [0x4ed098]
mov dword [esp], 0
mov dword [esp + 4], 0
cmp dword [eax - 0xc], 0
je 0x41a50c
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41a4ed
lea edx, [esp + 4]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 8], 0
pop esi
jl 0x41a50c
jg 0x41a500
cmp dword [esp], 0x40000000
jbe 0x41a50c
mov eax, dword [0x4ed098]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 8
ret
Function at 0x41d5a0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4be686
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x4e7d04]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push ebp
push esi
mov eax, dword [0x4e7d04]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
lea eax, [esp + 0x14]
push eax
push 0x2001f
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
mov dword [esp + 0x248], ebx
push SysReAllocString
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x41d6f2
mov edx, dword [0x4eab28]
mov ebp, dword [esp + 0x14]
mov eax, dword [edx + 0xc]
mov ecx, 0x4eab28
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebx
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x238], 1
mov ecx, dword [esi + 8]
mov edx, dword [esi]
push ecx
push edx
lea eax, [esp + 0x1c]
push str._s___s_
push eax
call fcn.00409b50
push 0x208
lea ecx, [esp + 0x38]
push ebx
push ecx
call fcn.00482260
add esp, 0x1c
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x28]
push eax
push edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x2c], 0x104
call fcn.0041df00
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ecx
push esi
call fcn.00488d8f
add esp, 8
cmp eax, ebx
je 0x41d6bd
xor eax, eax
cmp esi, ebx
setne al
cmp eax, ebx
je 0x41d6bd
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
push esi
push 1
push ebx
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add esi, 0xfffffff0
mov byte [esp + 0x238], bl
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41d6e0
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
cmp ebp, ebx
je 0x41d6eb
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x41d6f4
xor eax, eax
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.004820d9
add esp, 0x22c
ret

Function at 0x41d7c0
Capabilities:
Get session user name

Disassembly:
push ecx
mov dword [esp], 0
cmp word [0x4ed308], 0
jne 0x41d7ea
lea eax, [esp]
push eax
push 0x4ed308
push 2
mov dword [esp + 0xc], 0x100
call sub.Secur32.dll_GetUserNameExW
push 0x4ed308
mov ecx, esi
call fcn.00403ac0
mov eax, esi
pop ecx
ret

Function at 0x41dec0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
test esi, esi
jne 0x41ded4
pop edi
lea eax, [esi + 0xd]
pop esi
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc
Function at 0x41df00
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
add eax, eax
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41df76
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x41df45
cmp eax, 2
jne 0x41df61
mov eax, dword [esp + 0x14]
test esi, esi
je 0x41df70
test eax, eax
je 0x41df6b
test al, 1
jne 0x41df61
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x41df70
pop edi
mov eax, 0xd
pop esi
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc
Function at 0x41e230
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4bf138
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4e7d04]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [esp + 0x1c], 7
mov dword [esp + 0x10], 0x80000
mov dword [esp + 0x18], 0
jmp 0x41e280
mov eax, dword [0x4eab28]
mov edx, dword [eax + 0xc]
mov ecx, 0x4eab28
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov dword [esp + 0x28], 0
mov edi, dword [esp + 0x10]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x41e2c1
push edi
lea ecx, [esp + 0x18]
call fcn.004045d0
mov esi, dword [esp + 0x14]
test edi, edi
jl 0x41e401
cmp edi, dword [esi - 8]
jg 0x41e401
lea ecx, [esp + 0x10]
push ecx
push esi
lea edx, [esp + 0x24]
push edx
push str.PendingFileRenameOperations
push 0x4d1668
xor eax, eax
mov dword [esi - 0xc], edi
push reloc.OLEAUT32.dll_SysReAllocString
mov word [esi + edi*2], ax
call ebx
mov edi, eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00485999
add esp, 8
test eax, eax
jl 0x41e401
cmp eax, dword [esi - 8]
jg 0x41e401
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
test edi, edi
je 0x41e38b
cmp edi, 0xea
jne 0x41e3c6
mov edx, dword [esp + 0x10]
lea eax, [edx + edx]
mov dword [esp + 0x10], eax
lea eax, [esi - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e35f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 0xa
mov dword [esp + 0x18], eax
jl 0x41e280
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 8
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, esi
call fcn.0041e4d0
lea eax, [esi - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e371
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41e371
lea eax, [esi - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e3ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 8
push 0x80070057
call fcn.004048a0
int3
Function at 0x41e410
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4be408
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4e7d04]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x4eab28]
mov edx, dword [eax + 0xc]
mov ecx, 0x4eab28
call edx
add eax, 0x10
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esi + 4]
push esi
call fcn.0041e7a0
mov esi, dword [esp + 8]
test eax, eax
je 0x41e48e
mov edx, dword [esp + 0xc]
push edx
push esi
push 7
push str.PendingFileRenameOperations
push 0x4d1668
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e4b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x41e7a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4be3d8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e7d04]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [esp + 0x30]
push eax
mov eax, ebx
call fcn.0041e940
mov edx, dword [0x4eab28]
mov esi, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4eab28
add esi, esi
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
mov dword [esp + 0x28], 0
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x41e817
push esi
lea ecx, [esp + 0x1c]
call fcn.004045d0
mov edi, dword [esp + 0x18]
test esi, esi
jl 0x41e92d
cmp esi, dword [edi - 8]
jg 0x41e92d
lea eax, [esi + esi]
xor ecx, ecx
push eax
push ecx
mov dword [edi - 0xc], esi
push edi
mov word [eax + edi], cx
call fcn.00482260
mov ebp, dword [ebx + 0x10]
sub ebp, dword [ebx + 0xc]
add esp, 0xc
sar ebp, 3
xor ebx, ebx
mov esi, edi
test ebp, ebp
jle 0x41e8b3
mov eax, dword [esp + 0x30]
mov edx, dword [eax + 0x14]
sub edx, dword [eax + 0x10]
sar edx, 3
cmp ebx, edx
jb 0x41e86a
call fcn.00482476
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x10]
lea eax, [eax + ebx*8]
mov dword [esp + 0x1c], eax
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
push esi
mov dword [esp + 0x20], ecx
call fcn.004856e8
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 4]
lea esi, [esi + ecx*2 + 2]
mov ecx, dword [eax - 0xc]
push ecx
push eax
push esi
mov dword [esp + 0x2c], ecx
call fcn.004856e8
mov eax, dword [esp + 0x2c]
inc ebx
add esp, 0x18
cmp ebx, ebp
lea esi, [esi + eax*2 + 2]
jl 0x41e850
mov edx, dword [esp + 0x38]
sub esi, edi
sar esi, 1
lea ecx, [esi + esi + 2]
mov dword [edx], ecx
mov eax, dword [edi - 8]
push eax
push edi
call fcn.00485999
add esp, 8
test eax, eax
jl 0x41e92d
cmp eax, dword [edi - 8]
jg 0x41e92d
xor ecx, ecx
mov dword [edi - 0xc], eax
lea edx, [esp + 0x18]
mov word [edi + eax*2], cx
mov ecx, dword [esp + 0x34]
push edx
call fcn.00403120
lea eax, [edi - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e912
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0xc
push 0x80070057
call fcn.004048a0
int3