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

Disassembly:
push 0xffffffffffffffff
push 0x5d7a28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x63d178]
push esi
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
push str.tsdosm.dat
push ecx
mov ecx, 0x65b1c8
mov dword [esp + 0x28], 0
call fcn.00435d60
mov edx, dword [esp + 0xc]
lea ecx, [esp + 8]
push edx
call fcn.0046c430
mov eax, dword [0x5f1614]
mov dword [esp + 4], eax
push str.tsdosm.dat
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 2
call fcn.0046c430
mov esi, eax
mov byte [esp + 0x20], 3
call fcn.00401080
push eax
lea ecx, [esp + 0x14]
call fcn.0046c430
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.0046fcb0
add esp, 0x10
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 3
call fcn.0046cca0
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 2
call fcn.0046cca0
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 0x663464
call fcn.00447850
add esp, 0x1c
lea ecx, [esp + 4]
mov byte [esp + 0x20], 1
call fcn.0046cca0
lea ecx, [esp + 8]
mov byte [esp + 0x20], 0
call fcn.0046cca0
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.005b7d03
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x4435a0
Capabilities:
Access peb ldr_data
Copy file
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5d7a68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x63d178]
push esi
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
push str.tsdarea.dat
push ecx
mov ecx, 0x65b1c8
mov dword [esp + 0x28], 0
call fcn.00435d60
mov edx, dword [esp + 0xc]
lea ecx, [esp + 8]
push edx
call fcn.0046c430
mov eax, dword [0x5f1614]
mov dword [esp + 4], eax
push str.tsdarea.dat
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 2
call fcn.0046c430
mov esi, eax
mov byte [esp + 0x20], 3
call fcn.00401080
push eax
lea ecx, [esp + 0x14]
call fcn.0046c430
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.0046fcb0
add esp, 0x10
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 3
call fcn.0046cca0
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 2
call fcn.0046cca0
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 0x663464
call fcn.00447850
add esp, 0x1c
lea ecx, [esp + 4]
mov byte [esp + 0x20], 1
call fcn.0046cca0
lea ecx, [esp + 8]
mov byte [esp + 0x20], 0
call fcn.0046cca0
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.005b7d03
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret

Function at 0x4436d0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x5d7aa8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x63d178]
push esi
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
push str.UDiskInfo.dat
push ecx
mov ecx, 0x65b1c8
mov dword [esp + 0x28], 0
call fcn.00435d60
mov edx, dword [esp + 0xc]
lea ecx, [esp + 8]
push edx
call fcn.0046c430
mov eax, dword [0x5f1614]
mov dword [esp + 4], eax
mov byte [esp + 0x20], 2
call fcn.004383c0
push eax
lea ecx, [esp + 0x14]
call fcn.005b7d77
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x20], 3
push ecx
lea ecx, [esp + 0x18]
call fcn.0046c430
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x24], 4
call fcn.0046ce50
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 3
call fcn.0046cca0
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 0x663464
call fcn.00447850
add esp, 0x1c
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 2
call fcn.005b7d03
lea ecx, [esp + 4]
mov byte [esp + 0x20], 1
call fcn.0046cca0
lea ecx, [esp + 8]
mov byte [esp + 0x20], 0
call fcn.0046cca0
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.005b7d03
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x4437f0
Capabilities:
Access peb ldr_data
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x5d7af8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
lea eax, [esp + 8]
mov ecx, 0x65b1c8
push eax
mov dword [esp + 0xc], 0
call fcn.00438790
test eax, eax
jne 0x44384d
push str.UpdateTSDUserCfg_GetSDProductIDFromUDPolicy_fail
push str.CheckModule
push 0xf
push 0x663464
call fcn.00447850
add esp, 0x10
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov ecx, dword [0x63d178]
push esi
push edi
mov dword [esp + 8], ecx
lea edx, [esp + 8]
push str.tsdusercfg_
push edx
mov ecx, 0x65b1c8
mov dword [esp + 0x38], 0
call fcn.00435d60
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
call fcn.005b7a70
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.005b496b
mov ecx, dword [esp + 0x18]
add esp, 0x10
push ecx
lea ecx, [esp + 0x18]
call fcn.0046c430
mov edx, dword [0x5f1614]
mov dword [esp + 0xc], edx
push str.tsdusercfg_
lea ecx, [esp + 0x28]
mov byte [esp + 0x34], 3
call fcn.0046c430
mov esi, eax
push str.tsusercfg
lea ecx, [esp + 0x24]
mov byte [esp + 0x34], 4
call fcn.0046c430
mov edi, eax
mov byte [esp + 0x30], 5
call fcn.00401080
push eax
lea ecx, [esp + 0x20]
call fcn.0046c430
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.0046fcb0
add esp, 0x18
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 5
call fcn.0046cca0
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 4
call fcn.0046cca0
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], 3
call fcn.0046cca0
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 0x663464
call fcn.00447850
add esp, 0x1c
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 2
call fcn.0046cca0
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call fcn.0046cca0
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 0
call fcn.005b7d03
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0xffffffff
call fcn.005b7d03
mov ecx, dword [esp + 0x28]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x444490
Capabilities:
Copy file
Move file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5d7c08
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
mov edi, dword [esp + 0x20]
test edi, edi
je 0x444581
push edi
call fcn.004538bc
add esp, 4
test eax, eax
je 0x444581
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x444581
push ebx
call fcn.004538bc
add esp, 4
test eax, eax
je 0x444581
mov eax, dword [0x63d178]
mov dword [esp + 0x20], eax
push edi
lea ecx, [esp + 0x24]
push str._s_temp
push ecx
mov dword [esp + 0x20], 0
call fcn.005b496b
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 0x44453b
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 0x44455a
mov ecx, dword [esp + 0x20]
push edi
push ecx
push str.CUpdatePolicyMgr::SaveCopyFile_MoveFile__s_____s__fail
jmp 0x444546
mov edx, dword [esp + 0x20]
push edx
push ebx
push str.CUpdatePolicyMgr::SaveCopyFile_CopyFile__s_____s__fail
push str.CheckModule
push 0xf
push 0x663464
call fcn.00447850
add esp, 0x18
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.005b7d03
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 0x444f90
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0x14]
mov dword [esp], 0
test ecx, ecx
mov eax, 0x2001f
je 0x444fab
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 0x445003
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x444fdf
push esi
call fcn.004538bc
add esp, 4
lea eax, [eax + eax + 2]
jmp 0x444fe1
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 0x445010
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0x14]
mov dword [esp], 0
test ecx, ecx
mov eax, 0x2001f
je 0x44502b
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 0x44506d
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 0x445080
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0x18]
mov dword [esp], 0
test ecx, ecx
mov eax, 0x2001f
je 0x44509b
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 0x4450dd
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 0x4450f0
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 0x44518a
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 0x445174
add eax, 2
mov dword [esp + 0x18], eax
shr eax, 1
lea edx, [eax + eax]
push edx
call fcn.005b83cc
mov esi, eax
add esp, 4
test esi, esi
je 0x445174
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 0x4451a0
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 0x445204
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 0x445210
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 0x44527c
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 0x4453a0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x5d7d18
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 0x663464
call fcn.00447850
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x40]
add esp, 0x10
mov ecx, esi
push edi
call fcn.005b7e9a
push str._NEW.txt
push 0x63cc98
mov ecx, esi
call fcn.005b4227
mov ebp, dword [esp + 0x28]
lea ecx, [esp + 0x14]
push ebp
call fcn.005b7d77
push ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0
call fcn.005b7d77
lea eax, [esp + 0x14]
push 0x63061c
lea ecx, [esp + 0x34]
mov bl, 1
push eax
push ecx
mov byte [esp + 0x2c], bl
call fcn.005b7fa8
push edi
lea edx, [esp + 0x30]
push eax
push edx
mov byte [esp + 0x2c], 2
call fcn.005b7fa8
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 3
call fcn.005b7e4a
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 2
call fcn.005b7d03
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], bl
call fcn.005b7d03
lea eax, [esp + 0x10]
push 0x63061c
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.005b7fa8
push esi
lea edx, [esp + 0x30]
push eax
push edx
mov byte [esp + 0x2c], 4
call fcn.005b7f42
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 5
call fcn.005b7e4a
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 4
call fcn.005b7d03
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], bl
call fcn.005b7d03
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.0046c430
mov eax, dword [eax]
push edi
push eax
push str.CopyFile_1______s___d_
push str.cmdtest
push 0xf
push 0x663464
mov byte [esp + 0x38], 6
call fcn.00447850
add esp, 0x18
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], bl
call fcn.0046cca0
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 0
call fcn.005b7d03
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
call fcn.005b7d03
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 0x46b190
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 0x46b1e9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x46b1e9
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 0x46b1f0
inc edi
lea esi, [esi + ebx*2]
cmp edi, 0x10
jl 0x46b1cd
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 0x46b1eb
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 0x470cc0
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 0x470d10
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x470d10
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x470d15
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x470cfb
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x470d22
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 0x47ba00
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 0x47ba41
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 0x47ba43
mov esi, edi
test esi, esi
je 0x47bab8
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 0x47baad
mov ecx, dword [esp + 0x20]
mov eax, 4
cmp ecx, eax
jne 0x47baad
cmp dword [esp + 0x1c], eax
jbe 0x47ba7e
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 0x47baad
cmp esi, edi
je 0x47ba9f
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 0x47bab8
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 0x47bad0
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 0x47bb35
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 0x47bb35
mov ecx, dword [esp + 0x10]
mov eax, 4
cmp ecx, eax
jne 0x47bb35
cmp dword [esp + 0x18], eax
jbe 0x47bb1b
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 0x47bb39
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
add esp, 8
ret 8

Function at 0x47bc10
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [ecx]
push edi
test esi, esi
je 0x47bc6f
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 0x47bc6f
cmp dword [esp + 0xc], 3
jne 0x47bc6f
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp edx, eax
jb 0x47bc6f
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 0x47bc6f
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 0x47bdd0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5da19f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x63d178]
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 0x47be3b
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 0x47be3d
mov esi, edi
test esi, esi
je 0x47bf07
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 0x47befc
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x47be7f
cmp eax, 2
je 0x47be7f
cmp eax, 6
je 0x47be7f
cmp eax, 7
jne 0x47befc
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.005b83cc
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 0x47bee2
lea ecx, [esp + 0x14]
call fcn.005b7e9a
cmp esi, dword [esp + 0x14]
je 0x47bed7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.005b83f5
add esp, 4
jmp 0x47bf19
call fcn.005b83f5
add esp, 4
lea ecx, [esp + 0x10]
push 0x65aa38
call fcn.005b7e9a
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x47bf07
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x47bf19
push eax
lea ecx, [esp + 0x14]
call fcn.005b7e9a
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.005b7a70
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.005b7d03
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