joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441bb0
Capabilities:
Access peb ldr_data
Copy file
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5cc018
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x62ed80]
push esi
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
push str.tsdosm.dat
push ecx
mov ecx, 0x64c768
mov dword [esp + 0x28], 0
call fcn.004344a0
mov edx, dword [esp + 0xc]
lea ecx, [esp + 8]
push edx
call fcn.0046ab70
mov eax, dword [0x5e45d4]
mov dword [esp + 4], eax
push str.tsdosm.dat
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 2
call fcn.0046ab70
mov esi, eax
mov byte [esp + 0x20], 3
call fcn.00401080
push eax
lea ecx, [esp + 0x14]
call fcn.0046ab70
mov ecx, dword [esi]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0xc]
push str._sTSafeDoc_s
push eax
mov byte [esp + 0x30], 4
call fcn.0046e3f0
add esp, 0x10
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 3
call fcn.0046b3e0
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 2
call fcn.0046b3e0
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [esp + 8]
mov esi, eax
mov eax, dword [esp + 4]
push esi
push eax
push ecx
push str.UpdateOutgoCom___s_____s__bRet__lu_
push str.CheckModule
push 0xf
push 0x654a04
call fcn.00445f90
add esp, 0x1c
lea ecx, [esp + 4]
mov byte [esp + 0x20], 1
call fcn.0046b3e0
lea ecx, [esp + 8]
mov byte [esp + 0x20], 0
call fcn.0046b3e0
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.005ac543
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x441ce0
Capabilities:
Access peb ldr_data
Copy file
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5cc058
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x62ed80]
push esi
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
push str.tsdarea.dat
push ecx
mov ecx, 0x64c768
mov dword [esp + 0x28], 0
call fcn.004344a0
mov edx, dword [esp + 0xc]
lea ecx, [esp + 8]
push edx
call fcn.0046ab70
mov eax, dword [0x5e45d4]
mov dword [esp + 4], eax
push str.tsdarea.dat
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 2
call fcn.0046ab70
mov esi, eax
mov byte [esp + 0x20], 3
call fcn.00401080
push eax
lea ecx, [esp + 0x14]
call fcn.0046ab70
mov ecx, dword [esi]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0xc]
push str._sTSafeDoc_s
push eax
mov byte [esp + 0x30], 4
call fcn.0046e3f0
add esp, 0x10
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 3
call fcn.0046b3e0
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 2
call fcn.0046b3e0
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [esp + 8]
mov esi, eax
mov eax, dword [esp + 4]
push esi
push eax
push ecx
push str.UpdateOutgoCom___s_____s__bRet__lu_
push str.CheckModule
push 0xf
push 0x654a04
call fcn.00445f90
add esp, 0x1c
lea ecx, [esp + 4]
mov byte [esp + 0x20], 1
call fcn.0046b3e0
lea ecx, [esp + 8]
mov byte [esp + 0x20], 0
call fcn.0046b3e0
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.005ac543
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret

Function at 0x441e10
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x5cc098
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x62ed80]
push esi
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
push str.UDiskInfo.dat
push ecx
mov ecx, 0x64c768
mov dword [esp + 0x28], 0
call fcn.004344a0
mov edx, dword [esp + 0xc]
lea ecx, [esp + 8]
push edx
call fcn.0046ab70
mov eax, dword [0x5e45d4]
mov dword [esp + 4], eax
mov byte [esp + 0x20], 2
call fcn.00436b00
push eax
lea ecx, [esp + 0x14]
call fcn.005ac5b7
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x20], 3
push ecx
lea ecx, [esp + 0x18]
call fcn.0046ab70
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x24], 4
call fcn.0046b590
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 3
call fcn.0046b3e0
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov esi, eax
push esi
push ecx
push edx
push str.UpdateUDiskAuth___s_____s__bRet__lu_
push str.CheckModule
push 0xf
push 0x654a04
call fcn.00445f90
add esp, 0x1c
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 2
call fcn.005ac543
lea ecx, [esp + 4]
mov byte [esp + 0x20], 1
call fcn.0046b3e0
lea ecx, [esp + 8]
mov byte [esp + 0x20], 0
call fcn.0046b3e0
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.005ac543
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x441f30
Capabilities:
Access peb ldr_data
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x5cc0e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
lea eax, [esp + 8]
mov ecx, 0x64c768
push eax
mov dword [esp + 0xc], 0
call fcn.00436ed0
test eax, eax
jne 0x441f8d
push str.UpdateTSDUserCfg_GetSDProductIDFromUDPolicy_fail
push str.CheckModule
push 0xf
push 0x654a04
call fcn.00445f90
add esp, 0x10
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov ecx, dword [0x62ed80]
push esi
push edi
mov dword [esp + 8], ecx
lea edx, [esp + 8]
push str.tsdusercfg_
push edx
mov ecx, 0x64c768
mov dword [esp + 0x38], 0
call fcn.004344a0
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
call fcn.005ac2b0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
push ecx
push edx
lea eax, [esp + 0x10]
push str._s_lu.dat
push eax
mov byte [esp + 0x40], 1
call fcn.005a91ab
mov ecx, dword [esp + 0x18]
add esp, 0x10
push ecx
lea ecx, [esp + 0x18]
call fcn.0046ab70
mov edx, dword [0x5e45d4]
mov dword [esp + 0xc], edx
push str.tsdusercfg_
lea ecx, [esp + 0x28]
mov byte [esp + 0x34], 3
call fcn.0046ab70
mov esi, eax
push str.tsusercfg
lea ecx, [esp + 0x24]
mov byte [esp + 0x34], 4
call fcn.0046ab70
mov edi, eax
mov byte [esp + 0x30], 5
call fcn.00401080
push eax
lea ecx, [esp + 0x20]
call fcn.0046ab70
mov ecx, dword [esp + 0x10]
mov edx, dword [esi]
push ecx
mov ecx, dword [edi]
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x1c]
push str._s_tsafedoc_s_s_lu.dat
push eax
mov byte [esp + 0x48], 6
call fcn.0046e3f0
add esp, 0x18
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 5
call fcn.0046b3e0
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 4
call fcn.0046b3e0
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], 3
call fcn.0046b3e0
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0xc]
push esi
push eax
push ecx
push str.UpdateTSDUserCfg___s_____s__bRet__lu_
push str.CheckModule
push 0xf
push 0x654a04
call fcn.00445f90
add esp, 0x1c
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 2
call fcn.0046b3e0
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call fcn.0046b3e0
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 0
call fcn.005ac543
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0xffffffff
call fcn.005ac543
mov ecx, dword [esp + 0x28]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x442bd0
Capabilities:
Copy file
Move file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5cc1f8
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
mov edi, dword [esp + 0x20]
test edi, edi
je 0x442cc1
push edi
call fcn.00451ffc
add esp, 4
test eax, eax
je 0x442cc1
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x442cc1
push ebx
call fcn.00451ffc
add esp, 4
test eax, eax
je 0x442cc1
mov eax, dword [0x62ed80]
mov dword [esp + 0x20], eax
push edi
lea ecx, [esp + 0x24]
push str._s_temp
push ecx
mov dword [esp + 0x20], 0
call fcn.005a91ab
mov edx, dword [esp + 0x2c]
add esp, 0xc
push 0
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
test esi, esi
je 0x442c7b
mov eax, dword [esp + 0x20]
push 1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, eax
test esi, esi
jne 0x442c9a
mov ecx, dword [esp + 0x20]
push edi
push ecx
push str.CUpdatePolicyMgr::SaveCopyFile_MoveFile__s_____s__fail
jmp 0x442c86
mov edx, dword [esp + 0x20]
push edx
push ebx
push str.CUpdatePolicyMgr::SaveCopyFile_CopyFile__s_____s__fail
push str.CheckModule
push 0xf
push 0x654a04
call fcn.00445f90
add esp, 0x18
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.005ac543
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
mov ecx, dword [esp + 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 8

Function at 0x4436d0
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0x14]
mov dword [esp], 0
test ecx, ecx
mov eax, 0x2001f
je 0x4436eb
mov eax, 0x2011f
mov edx, dword [esp + 8]
lea ecx, [esp]
push ecx
push eax
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x443743
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x44371f
push esi
call fcn.00451ffc
add esp, 4
lea eax, [eax + eax + 2]
jmp 0x443721
xor eax, eax
mov ecx, dword [esp + 4]
push eax
mov eax, dword [esp + 0x14]
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
ret 0x10

Function at 0x443750
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0x14]
mov dword [esp], 0
test ecx, ecx
mov eax, 0x2001f
je 0x44376b
mov eax, 0x2011f
mov edx, dword [esp + 8]
lea ecx, [esp]
push ecx
push eax
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4437ad
mov ecx, dword [esp + 0xc]
mov edx, dword [esp]
lea eax, [esp + 0x10]
push 4
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret 0x10
Function at 0x4437c0
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0x18]
mov dword [esp], 0
test ecx, ecx
mov eax, 0x2001f
je 0x4437db
mov eax, 0x2011f
mov edx, dword [esp + 8]
lea ecx, [esp]
push ecx
push eax
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x44381d
mov ecx, dword [esp + 0xc]
mov edx, dword [esp]
lea eax, [esp + 0x10]
push 8
push eax
push 3
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret 0x14

Function at 0x443830
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0xc]
lea eax, [esp]
push esi
push eax
xor esi, esi
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4438ca
mov ecx, dword [esp + 4]
push ebx
lea edx, [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
push eax
lea eax, [esp + 0x18]
push eax
push esi
push edi
push ecx
call ebx
mov eax, dword [esp + 0x18]
cmp eax, 2
jb 0x4438b4
add eax, 2
mov dword [esp + 0x18], eax
shr eax, 1
lea edx, [eax + eax]
push edx
call fcn.005acc0c
mov esi, eax
add esp, 4
test esi, esi
je 0x4438b4
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push esi
push ecx
push 0
push edi
push edx
call ebx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop ebx
pop esi
add esp, 8
ret 8
mov eax, esi
pop esi
add esp, 8
ret 8

Function at 0x4438e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x10]
lea eax, [esp]
push eax
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x443944
mov dword [esp + 8], eax
lea edx, [esp + 0x10]
lea eax, [esp + 4]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 8]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 4]
add esp, 0xc
ret 8

Function at 0x443950
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x14]
lea eax, [esp]
push eax
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4439bc
mov dword [esp + 4], eax
lea edx, [esp + 0x14]
lea eax, [esp + 8]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x2c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
fld qword [esp + 8]
add esp, 0x10
ret 8
Function at 0x443ae0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x5cc308
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
push str.CopyFile_1_______
push str.cmdtest
push 0xf
push 0x654a04
call fcn.00445f90
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x40]
add esp, 0x10
mov ecx, esi
push edi
call fcn.005ac6da
push str._NEW.txt
push 0x62e8a0
mov ecx, esi
call fcn.005a8a67
mov ebp, dword [esp + 0x28]
lea ecx, [esp + 0x14]
push ebp
call fcn.005ac5b7
push ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0
call fcn.005ac5b7
lea eax, [esp + 0x14]
push 0x62261c
lea ecx, [esp + 0x34]
mov bl, 1
push eax
push ecx
mov byte [esp + 0x2c], bl
call fcn.005ac7e8
push edi
lea edx, [esp + 0x30]
push eax
push edx
mov byte [esp + 0x2c], 2
call fcn.005ac7e8
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 3
call fcn.005ac68a
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 2
call fcn.005ac543
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], bl
call fcn.005ac543
lea eax, [esp + 0x10]
push 0x62261c
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.005ac7e8
push esi
lea edx, [esp + 0x30]
push eax
push edx
mov byte [esp + 0x2c], 4
call fcn.005ac782
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 5
call fcn.005ac68a
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 4
call fcn.005ac543
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], bl
call fcn.005ac543
mov eax, dword [esp + 0x34]
push eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, dword [esi]
lea ecx, [esp + 0x2c]
push esi
mov edi, eax
call fcn.0046ab70
mov eax, dword [eax]
push edi
push eax
push str.CopyFile_1______s___d_
push str.cmdtest
push 0xf
push 0x654a04
mov byte [esp + 0x38], 6
call fcn.00445f90
add esp, 0x18
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], bl
call fcn.0046b3e0
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 0
call fcn.005ac543
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
call fcn.005ac543
mov ecx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4698d0
Capabilities:
Extract resource via kernel32 functions
Print debug messages

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, eax
push esi
mov esi, dword [esp + 0x10]
and ebp, 0xf
shr eax, 4
inc eax
push edi
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x469929
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x469929
xor edi, edi
xor ebx, ebx
mov bx, word [esi]
add esi, 2
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp ebp, edi
je 0x469930
inc edi
lea esi, [esi + ebx*2]
cmp edi, 0x10
jl 0x46990d
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov edx, ecx
xor eax, eax
mov edi, ebp
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
dec eax
push eax
push ebp
push ebx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x46992b
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
pop edi
dec ecx
pop esi
pop ebp
mov eax, ecx
pop ebx
ret

Function at 0x46f400
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x46f450
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x46f450
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x46f455
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x46f43b
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x46f462
mov eax, ecx
lea edx, [eax + eax]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edx
push ebp
mov ebp, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [edx + ebx], 0
pop ebx
pop edi
pop esi
ret
Function at 0x47a140
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [ecx + 4]
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
test ecx, ecx
je 0x47a181
lea edx, [esp + 0x14]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0x14]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x47a183
mov esi, edi
test esi, esi
je 0x47a1f8
mov ebx, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push 0
push ecx
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x47a1ed
mov ecx, dword [esp + 0x20]
mov eax, 4
cmp ecx, eax
jne 0x47a1ed
cmp dword [esp + 0x1c], eax
jbe 0x47a1be
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x47a1ed
cmp esi, edi
je 0x47a1df
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
cmp esi, edi
je 0x47a1f8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x47a210
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [ecx]
push edi
test esi, esi
mov dword [esp + 0xc], 0
je 0x47a275
mov edi, dword [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push 0
push ecx
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x47a275
mov ecx, dword [esp + 0x10]
mov eax, 4
cmp ecx, eax
jne 0x47a275
cmp dword [esp + 0x18], eax
jbe 0x47a25b
mov dword [esp + 0x18], eax
lea edx, [esp + 0x18]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push 0
push edi
push esi
call ebx
test eax, eax
mov eax, dword [esp + 0xc]
je 0x47a279
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
add esp, 8
ret 8

Function at 0x47a350
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [ecx]
push edi
test esi, esi
je 0x47a3af
mov edi, dword [esp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
push 0
push ecx
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x47a3af
cmp dword [esp + 0xc], 3
jne 0x47a3af
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp edx, eax
jb 0x47a3af
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push ecx
push 0
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x47a3af
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc
Function at 0x47a510
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5ce78f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x62ed80]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], 1
test ecx, ecx
mov dword [esp + 0x14], edi
je 0x47a57b
lea edx, [esp + 0x18]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x47a57d
mov esi, edi
test esi, esi
je 0x47a647
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push 0
push ecx
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47a63c
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x47a5bf
cmp eax, 2
je 0x47a5bf
cmp eax, 6
je 0x47a5bf
cmp eax, 7
jne 0x47a63c
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.005acc0c
mov ebp, eax
mov eax, dword [esp + 0x38]
mov edi, ebp
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x34]
push eax
push ebp
push 0
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push ebp
jne 0x47a622
lea ecx, [esp + 0x14]
call fcn.005ac6da
cmp esi, dword [esp + 0x14]
je 0x47a617
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.005acc35
add esp, 4
jmp 0x47a659
call fcn.005acc35
add esp, 4
lea ecx, [esp + 0x10]
push 0x64bfd8
call fcn.005ac6da
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x47a647
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x47a659
push eax
lea ecx, [esp + 0x14]
call fcn.005ac6da
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.005ac2b0
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.005ac543
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10