joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f910
Capabilities:
Access peb ldr_data
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x5bd118
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
lea eax, [esp + 8]
mov ecx, 0x63a168
push eax
mov dword [esp + 0xc], 0
call fcn.004348b0
test eax, eax
jne 0x43f96d
push str.UpdateTSDUserCfg_GetSDProductIDFromUDPolicy_fail
push str.CheckModule
push 0xf
push 0x642404
call fcn.004439a0
add esp, 0x10
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov ecx, dword [0x61cab0]
push esi
push edi
mov dword [esp + 8], ecx
lea edx, [esp + 8]
push str.tsdusercfg_
push edx
mov ecx, 0x63a168
mov dword [esp + 0x38], 0
call fcn.00431e80
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
call fcn.0059d8fc
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.0059a7f7
mov ecx, dword [esp + 0x18]
add esp, 0x10
push ecx
lea ecx, [esp + 0x18]
call fcn.00468580
mov edx, dword [0x5d44ec]
mov dword [esp + 0xc], edx
push str.tsdusercfg_
lea ecx, [esp + 0x28]
mov byte [esp + 0x34], 3
call fcn.00468580
mov esi, eax
push str.tsusercfg
lea ecx, [esp + 0x24]
mov byte [esp + 0x34], 4
call fcn.00468580
mov edi, eax
mov byte [esp + 0x30], 5
call fcn.00401080
push eax
lea ecx, [esp + 0x20]
call fcn.00468580
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.0046be00
add esp, 0x18
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 5
call fcn.00468df0
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 4
call fcn.00468df0
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], 3
call fcn.00468df0
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 0x642404
call fcn.004439a0
add esp, 0x1c
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 2
call fcn.00468df0
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call fcn.00468df0
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 0
call fcn.0059db8f
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0xffffffff
call fcn.0059db8f
mov ecx, dword [esp + 0x28]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x4405b0
Capabilities:
Copy file
Move file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5bd228
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
mov edi, dword [esp + 0x20]
test edi, edi
je 0x4406a1
push edi
call fcn.0044fa0c
add esp, 4
test eax, eax
je 0x4406a1
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x4406a1
push ebx
call fcn.0044fa0c
add esp, 4
test eax, eax
je 0x4406a1
mov eax, dword [0x61cab0]
mov dword [esp + 0x20], eax
push edi
lea ecx, [esp + 0x24]
push str._s_temp
push ecx
mov dword [esp + 0x20], 0
call fcn.0059a7f7
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 0x44065b
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 0x44067a
mov ecx, dword [esp + 0x20]
push edi
push ecx
push str.CUpdatePolicyMgr::SaveCopyFile_MoveFile__s_____s__fail
jmp 0x440666
mov edx, dword [esp + 0x20]
push edx
push ebx
push str.CUpdatePolicyMgr::SaveCopyFile_CopyFile__s_____s__fail
push str.CheckModule
push 0xf
push 0x642404
call fcn.004439a0
add esp, 0x18
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.0059db8f
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 0x4410b0
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0x14]
mov dword [esp], 0
test ecx, ecx
mov eax, 0x2001f
je 0x4410cb
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 0x441123
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4410ff
push esi
call fcn.0044fa0c
add esp, 4
lea eax, [eax + eax + 2]
jmp 0x441101
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 0x441130
Capabilities:
Set registry value

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

Disassembly:
push ecx
mov ecx, dword [esp + 0x18]
mov dword [esp], 0
test ecx, ecx
mov eax, 0x2001f
je 0x4411bb
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 0x4411fd
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 0x441210
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 0x4412aa
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 0x441294
add eax, 2
mov dword [esp + 0x18], eax
shr eax, 1
lea edx, [eax + eax]
push edx
call fcn.0059e258
mov esi, eax
add esp, 4
test esi, esi
je 0x441294
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 0x4412c0
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 0x441324
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 0x441330
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 0x44139c
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 0x4414c0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x5bd338
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 0x642404
call fcn.004439a0
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x40]
add esp, 0x10
mov ecx, esi
push edi
call fcn.0059dd26
push str._NEW.txt
push 0x61c5d0
mov ecx, esi
call fcn.0059a0b3
mov ebp, dword [esp + 0x28]
lea ecx, [esp + 0x14]
push ebp
call fcn.0059dc03
push ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0
call fcn.0059dc03
lea eax, [esp + 0x14]
push 0x61061c
lea ecx, [esp + 0x34]
mov bl, 1
push eax
push ecx
mov byte [esp + 0x2c], bl
call fcn.0059de34
push edi
lea edx, [esp + 0x30]
push eax
push edx
mov byte [esp + 0x2c], 2
call fcn.0059de34
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 3
call fcn.0059dcd6
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 2
call fcn.0059db8f
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], bl
call fcn.0059db8f
lea eax, [esp + 0x10]
push 0x61061c
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.0059de34
push esi
lea edx, [esp + 0x30]
push eax
push edx
mov byte [esp + 0x2c], 4
call fcn.0059ddce
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 5
call fcn.0059dcd6
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 4
call fcn.0059db8f
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], bl
call fcn.0059db8f
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.00468580
mov eax, dword [eax]
push edi
push eax
push str.CopyFile_1______s___d_
push str.cmdtest
push 0xf
push 0x642404
mov byte [esp + 0x38], 6
call fcn.004439a0
add esp, 0x18
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], bl
call fcn.00468df0
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 0
call fcn.0059db8f
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
call fcn.0059db8f
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 0x4672e0
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 0x467339
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x467339
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 0x467340
inc edi
lea esi, [esi + ebx*2]
cmp edi, 0x10
jl 0x46731d
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 0x46733b
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 0x46ce10
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 0x46ce60
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x46ce60
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x46ce65
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x46ce4b
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x46ce72
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 0x477b50
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 0x477b91
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 0x477b93
mov esi, edi
test esi, esi
je 0x477c08
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 0x477bfd
mov ecx, dword [esp + 0x20]
mov eax, 4
cmp ecx, eax
jne 0x477bfd
cmp dword [esp + 0x1c], eax
jbe 0x477bce
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 0x477bfd
cmp esi, edi
je 0x477bef
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 0x477c08
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 0x477c20
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 0x477c85
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 0x477c85
mov ecx, dword [esp + 0x10]
mov eax, 4
cmp ecx, eax
jne 0x477c85
cmp dword [esp + 0x18], eax
jbe 0x477c6b
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 0x477c89
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
add esp, 8
ret 8

Function at 0x477d60
Capabilities:
Query or enumerate registry value

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

Disassembly:
push 0xffffffffffffffff
push 0x5bf7bf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x61cab0]
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 0x477f8b
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 0x477f8d
mov esi, edi
test esi, esi
je 0x478057
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 0x47804c
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x477fcf
cmp eax, 2
je 0x477fcf
cmp eax, 6
je 0x477fcf
cmp eax, 7
jne 0x47804c
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.0059e258
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 0x478032
lea ecx, [esp + 0x14]
call fcn.0059dd26
cmp esi, dword [esp + 0x14]
je 0x478027
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.0059e281
add esp, 4
jmp 0x478069
call fcn.0059e281
add esp, 4
lea ecx, [esp + 0x10]
push 0x6399d8
call fcn.0059dd26
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x478057
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x478069
push eax
lea ecx, [esp + 0x14]
call fcn.0059dd26
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.0059d8fc
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.0059db8f
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
Function at 0x4781b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
test eax, eax
je 0x4781e7
mov edx, dword [ebp + 0x14]
lea ecx, [ebp + 0xc]
or edx, 0x20019
push ecx
push edx
push 0
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x4781ea
mov esi, dword [ebp + 8]
test esi, esi
je 0x47839d
call fcn.005360b0
test eax, eax
je 0x478295
mov eax, dword [ebp + 0x10]
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp + 0x14]
push 0
push edx
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x478391
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x478239
cmp eax, 2
je 0x478239
cmp eax, 6
je 0x478239
cmp eax, 7
jne 0x478391
mov ecx, dword [ebp + 0xc]
add ecx, 2
push ecx
call fcn.0059e258
mov edx, dword [ebp + 0xc]
mov ebx, eax
xor eax, eax
mov edi, ebx
lea ecx, [edx + 2]
add esp, 4
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push ebx
jne 0x47837c
mov ecx, dword [ebp + 0x18]
call fcn.004690d0
cmp esi, dword [ebp + 8]
je 0x478366
jmp 0x47835f
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4782a1
mov dword [ebp + 0x10], eax
jmp 0x4782d6
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.00450be0
mov edx, dword [ebp + 0x10]
mov edi, esp
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push edx
push 0
push 0
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp + 0x10], edi
mov edx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 0x14]
push 0
push ecx
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x478391
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x478310
cmp eax, 2
je 0x478310
cmp eax, 6
je 0x478310
cmp eax, 7
jne 0x478391
mov eax, dword [ebp + 0xc]
add eax, 2
push eax
call fcn.0059e258
mov ecx, dword [ebp + 0xc]
mov ebx, eax
add ecx, 2
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push ebx
jne 0x47837c
mov ecx, dword [ebp + 0x18]
call fcn.004691a0
cmp esi, dword [ebp + 8]
je 0x478366
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.0059e281
add esp, 4
mov eax, 1
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.0059e281
mov ecx, dword [ebp + 0x18]
add esp, 4
push 0x6399d8
call fcn.004690d0
cmp esi, dword [ebp + 8]
je 0x47839d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esp, [ebp - 0xc]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x478600
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [ecx]
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push 0
call fcn.0059c044
test esi, esi
je 0x4786e2
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
push 0
push ecx
push 0
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4786e2
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x478659
cmp eax, 2
je 0x478659
cmp eax, 6
je 0x478659
cmp eax, 7
jne 0x4786e2
mov edx, dword [esp + 0x14]
push edi
add edx, 2
push edx
call fcn.0059e258
mov ebx, eax
mov eax, dword [esp + 0x1c]
mov edi, ebx
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 + 0x18]
push eax
push ebx
push 0
push 0
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
pop edi
jne 0x4786d9
cmp word [ebx], ax
mov esi, ebx
je 0x4786c4
mov ecx, dword [esp + 0x18]
push esi
mov edx, dword [ecx + 8]
push edx
call fcn.0059c25a
push esi
call fcn.0044fa0c
lea esi, [esi + eax*2 + 2]
add esp, 4
cmp word [esi], 0
jne 0x4786a3
push ebx
call fcn.0059e281
add esp, 4
mov eax, 1
pop esi
pop ebp
pop ebx
pop ecx
ret 8
push ebx
call fcn.0059e281
add esp, 4
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8