joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414f80
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x570051
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5d1614]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
call fcn.00447edb
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x414fcd
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx esi, ax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push esi
lea ecx, [ebp - 0x14]
push ecx
call fcn.00414e90
push eax
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.00401f10
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41502f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi]
cmp dword [ecx - 0xc], ebx
jne 0x4150be
and esi, 0x3ff
push esi
lea edx, [ebp - 0x14]
push edx
call fcn.00414e90
push eax
mov ecx, edi
mov dword [ebp - 4], 2
call fcn.00401f10
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41507b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi]
cmp dword [ecx - 0xc], ebx
jne 0x4150be
push 9
lea edx, [ebp - 0x14]
push edx
call fcn.00414e90
push eax
mov ecx, edi
mov dword [ebp - 4], 3
call fcn.00401f10
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4150be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 4
Function at 0x4150e0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x570000
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x5d1614]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x415222
call fcn.00447edb
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41512a
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx esi, ax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov eax, ebx
movzx esi, si
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415162
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp + 8]
push esi
lea ecx, [ebp + 8]
push ecx
call fcn.00414da0
push eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00401f10
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4151a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi]
cmp dword [ecx - 0xc], 0
jne 0x41520f
and esi, 0x3ff
push esi
lea edx, [ebp - 0x10]
push edx
call fcn.00414da0
push eax
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.00401f10
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4151f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi]
cmp dword [ecx - 0xc], 0
jne 0x41520f
push str.English
mov ecx, edi
call fcn.004019e0
test ebx, ebx
je 0x41520f
mov dword [ebx], 9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
movzx esi, word [ebx]
jmp 0x415165
Function at 0x4160b0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f2bd
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5d1614]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [esi], vtable.CLaunchApp.0
call fcn.00447edb
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4160fa
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 8], eax
mov dword [ebp - 4], ebx
call fcn.00447edb
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x416126
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0xc], eax
mov byte [ebp - 4], 1
call fcn.00447edb
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x416153
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x10], eax
mov byte [ebp - 4], 2
call fcn.00447edb
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x416180
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x14], eax
mov byte [ebp - 4], 3
call fcn.00447edb
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4161ad
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x18], eax
mov byte [ebp - 4], 4
call fcn.00447edb
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4161da
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x1c], eax
lea edi, [esi + 0x30]
mov dword [edi], vtable.CArray_class_CSoftwareDispInfo__class_CSoftwareDispInfo__.0
mov dword [edi + 4], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 8], ebx
push ebx
mov byte [ebp - 4], 6
push 0x5a04b0
lea ecx, [esi + 8]
mov dword [esi + 4], ebx
call fcn.00401e60
push ebx
push 0x5a04b0
lea ecx, [esi + 0xc]
call fcn.00401e60
push ebx
push 0x5a04b0
lea ecx, [esi + 0x10]
call fcn.00401e60
push ebx
push 0x5a04b0
lea ecx, [esi + 0x14]
call fcn.00401e60
push ebx
push 0x5a04b0
lea ecx, [esi + 0x18]
call fcn.00401e60
push ebx
push 0x5a04b0
lea ecx, [esi + 0x1c]
call fcn.00401e60
push edi
mov dword [esi + 0x20], ebx
call fcn.00417740
mov dword [esi + 0x44], ebx
mov dword [esi + 0x24], 1
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x416780
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [esi + 4]
mov eax, 0x103
mov dword [ebp - 4], eax
test ecx, ecx
je 0x4167fa
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4167fe
mov eax, dword [esi + 4]
cmp dword [eax + 0x20], 0x20
jbe 0x4167fe
cmp dword [eax + 0x38], 0
je 0x4167f7
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], 0x103
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x38]
push 0x1f4
push ecx
call edi
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x38]
lea edx, [ebp - 4]
push edx
push ecx
call ebx
cmp dword [ebp - 4], 0x103
je 0x4167c4
mov edx, dword [esi + 4]
mov eax, dword [edx + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push 0
push 0
lea ecx, [ebp - 8]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov eax, 0xfffffffe
mov esp, ebp
pop ebp
ret
Function at 0x41bab0
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x54], 0
je 0x41bb3f
push eax
call fcn.00457d61
mov ecx, dword [esi + 0x54]
mov edx, dword [ecx + 0x90]
cmp edx, eax
jl 0x41bb3f
test edx, edx
jle 0x41bb3f
test eax, eax
jl 0x41bb41
cmp eax, edx
jge 0x41bb41
imul eax, eax, 0xdc
add eax, dword [ecx + 0x8c]
test eax, eax
je 0x41bb3f
mov eax, dword [eax + 0xa0]
sub eax, 0x10
push eax
call fcn.00401fe0
mov esi, eax
add esi, 0x10
add esp, 4
cmp dword [esi - 0xc], 0
je 0x41bb23
inc dword [0x5da18c]
push 1
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41bb3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop esi
ret
call fcn.00447de9
int3

Function at 0x41cf90
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x5d1614]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x11c
xor edi, edi
lea eax, [ebp - 0x120]
push edi
push eax
call fcn.005440c0
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call esi
test eax, eax
jne 0x41cfec
lea edx, [ebp - 0x120]
push edx
mov dword [ebp - 0x120], 0x114
call esi
cmp dword [ebp - 0x11c], 6
mov eax, 1
jae 0x41cffc
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00540a86
mov esp, ebp
pop ebp
ret
Function at 0x41e2e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f120
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x5d1614]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.COsasoi::GetShownAnonymousFlag_r_n
push 0x5d9f60
call fcn.00403a60
xor edi, edi
add esp, 8
mov dword [ebp - 0x10], edi
call fcn.00447edb
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x41e339
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
push 0x1f
push str.SoftwareEPSONSoftware_Updater
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
call fcn.00401e60
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
xor eax, eax
mov dword [ebp - 0x14], eax
cmp esi, edi
je 0x41e38c
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov eax, dword [ebp - 0x14]
dec eax
neg eax
sbb eax, eax
and eax, 0xffffff00
add eax, 0x100
or eax, 0x20019
mov esi, eax
mov dword [ebp - 0x34], vtable.Registry.0
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], edi
jne 0x41e3b6
mov esi, 0xf003f
mov ebx, dword [ebp - 0x18]
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x30]
push eax
push edi
push esi
push edi
push edi
push edi
push ebx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], esi
mov byte [ebp - 4], 1
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, edi
je 0x41e42a
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x1c]
push edx
push edi
push edi
push str.Anonymous
push eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x1c], edi
je 0x41e41a
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x30]
cmp eax, edi
je 0x41e427
push eax
call esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov ecx, dword [ebp - 0x10]
push ecx
push str.bRet___d_r_n
push 0x5d9f60
call fcn.00403a60
push 0x5a3da0
push 0x5d9f60
call fcn.00403a60
mov eax, dword [ebp - 0x30]
add esp, 0x14
mov dword [ebp - 0x34], vtable.Registry.0
cmp eax, edi
je 0x41e463
push eax
call esi
mov dword [ebp - 0x30], edi
lea eax, [ebx - 0x10]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41e489
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
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 0x41e4a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56f0f0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x5d1614]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
push str.COsasoi::SetShownAnonymousFlag_r_n
push 0x5d9f60
call fcn.00403a60
push 1
push str.bShown___d_r_n
push 0x5d9f60
call fcn.00403a60
add esp, 0x14
call fcn.00447edb
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x41e50b
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push 0x1f
push str.SoftwareEPSONSoftware_Updater
lea ecx, [esp + 0x20]
mov dword [esp + 0x48], edi
call fcn.00401e60
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
xor eax, eax
mov dword [esp + 0x14], eax
cmp esi, edi
je 0x41e564
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov eax, dword [esp + 0x14]
dec eax
neg eax
sbb eax, eax
and eax, 0xffffff00
add eax, 0x100
or eax, 0x20006
mov esi, eax
mov dword [esp + 0x24], vtable.Registry.0
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
jne 0x41e591
mov esi, 0xf003f
mov ebx, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x2c]
push eax
push edi
push esi
push edi
push edi
push edi
push ebx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], esi
mov byte [esp + 0x40], 1
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, edi
je 0x41e601
mov edx, dword [esp + 0x28]
push 4
lea ecx, [esp + 0x20]
push ecx
push 4
push edi
push str.Anonymous
push edx
mov dword [esp + 0x34], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x41e5fd
push eax
call esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
push 0x5a3da0
push 0x5d9f60
call fcn.00403a60
mov eax, dword [esp + 0x30]
add esp, 8
mov dword [esp + 0x24], vtable.Registry.0
cmp eax, edi
je 0x41e62a
push eax
call esi
mov dword [esp + 0x28], edi
lea eax, [ebx - 0x10]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x40], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e652
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41f5d0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56fd68
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5d1614]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x1c], esi
cmp dword [eax + 8], esi
jne 0x41f62a
mov esi, dword [ebp + 0xc]
push 0x5a04b0
mov ecx, esi
call fcn.00401a30
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.00447edb
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x41f644
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0x200
mov dword [ebp - 4], esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 8
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call ebx
mov esi, eax
test esi, esi
je 0x41f691
push 0x200
push 8
call edi
push eax
call ebx
mov ebx, eax
test ebx, ebx
jne 0x41f6dc
push esi
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp + 0xc]
push 0x5a04b0
mov ecx, esi
call fcn.00401a30
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f6c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x18]
push edx
mov edx, dword [ebp + 8]
push ebx
mov eax, 0x100
push 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [edx + 4]
push esi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x41f715
push esi
lea ecx, [ebp - 0x14]
call fcn.004019e0
push esi
push 0
call edi
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call esi
push ebx
push 0
call edi
push eax
call esi
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
push esi
call fcn.00401fe0
mov edi, dword [ebp + 0xc]
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f762
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
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 0xc
Function at 0x41f780
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f0b8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x5d1614]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x14], esi
push 0x5a04b0
cmp dword [eax + 8], esi
jne 0x41f7c5
mov ecx, edi
call fcn.00401a30
jmp 0x41f88c
lea ecx, [ebp - 0x10]
call fcn.00401a30
mov dword [ebp - 4], esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x200
push 8
mov dword [ebp - 0x14], 0x100
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x41f81b
push 0x5a04b0
mov ecx, edi
call fcn.00401a30
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x41f880
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [eax + 4]
push esi
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x41f846
push esi
lea ecx, [ebp - 0x10]
call fcn.004019e0
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.00401fe0
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41f88c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
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 0x41f8d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f0b8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5d1614]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov edi, ecx
xor esi, esi
mov dword [ebp + 0x10], esi
mov eax, dword [eax]
sub eax, 0x10
mov dword [ebp + 0x10], esi
push eax
cmp dword [edi + 8], esi
jne 0x41f934
call fcn.00401fe0
mov ecx, eax
mov eax, dword [ebp + 8]
add esp, 4
add ecx, 0x10
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.00401fe0
lea ebx, [eax + 0x10]
add esp, 4
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], esi
mov eax, dword [ebp + 0x10]
cmp eax, esi
jne 0x41f9fd
mov eax, dword [ebp + 0xc]
mov ecx, dword [edi + 4]
lea edx, [ebp + 0x10]
push edx
push esi
push esi
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp + 0x10]
cmp eax, esi
jbe 0x41f9c0
add eax, 2
push eax
call fcn.004473ee
mov esi, eax
add esp, 4
test esi, esi
je 0x41f9c0
mov edx, dword [ebp + 0x10]
add edx, 2
push edx
push 0
push esi
call fcn.005440c0
mov ecx, dword [ebp + 0xc]
mov edx, dword [edi + 4]
add esp, 0xc
lea eax, [ebp + 0x10]
push eax
push esi
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41f9b7
push esi
lea ecx, [ebp - 0x10]
call fcn.004019e0
mov ebx, dword [ebp - 0x10]
push esi
call fcn.004473e3
add esp, 4
lea esi, [ebx - 0x10]
push esi
call fcn.00401fe0
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41fa8c
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
jmp 0x41fa8c
add eax, 2
push eax
call fcn.004473ee
mov esi, eax
add esp, 4
test esi, esi
jne 0x41fa1d
lea esi, [ebx - 0x10]
push esi
call fcn.00401fe0
add esp, 4
jmp 0x41fa68
mov eax, dword [ebp + 0x10]
add eax, 2
push eax
push 0
push esi
call fcn.005440c0
mov edx, dword [ebp + 0xc]
mov eax, dword [edi + 4]
add esp, 0xc
lea ecx, [ebp + 0x10]
push ecx
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41fa56
push esi
lea ecx, [ebp - 0x10]
call fcn.004019e0
mov ebx, dword [ebp - 0x10]
push esi
call fcn.004473e3
lea esi, [ebx - 0x10]
push esi
call fcn.00401fe0
add esp, 8
mov edi, dword [ebp + 8]
or edx, 0xffffffff
add eax, 0x10
mov dword [ebp - 4], edx
lea ecx, [esi + 0xc]
mov dword [edi], eax
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41fa8c
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
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 0xc
Function at 0x41fab0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [edi + 8], 0
push esi
mov esi, eax
jne 0x41fac6
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
push esi
lea ecx, [ebp - 4]
call fcn.00401a30
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp + 8]
lea ecx, [eax + eax + 2]
mov eax, dword [edi + 4]
push ecx
push esi
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 4]
neg esi
sbb esi, esi
add eax, 0xfffffff0
inc esi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41fb12
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x41fb20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [eax + 8], 0
jne 0x41fb34
xor eax, eax
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 4]
push edx
mov edx, dword [eax + 4]
push 0
push 0
push ecx
push edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4