joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423340
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x423d88
call fcn.00423934
and dword [ebp - 0x24], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov edi, dword [eax + 4]
xor esi, esi
mov edx, 0x4248b8
mov ecx, edi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x423145
cmp eax, edi
jne 0x423157
mov esi, ebx
cmp dword [0x4248bc], ebx
jne 0x423164
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x423193
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42312e
cmp dword [0x4248bc], 0
jne 0x42318d
mov dword [0x4248bc], ebx
push 0x401028
push 0x40101c
call fcn.004232e4
pop ecx
pop ecx
test eax, eax
je 0x423193
jmp 0x4232cd
mov dword [0x4243c4], ebx
cmp dword [0x4248bc], ebx
jne 0x4231b6
push 0x401018
push section..text
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4248bc], 2
test esi, esi
jne 0x4231c3
xor eax, eax
mov ecx, 0x4248b8
xchg dword [ecx], eax
cmp dword [0x4248c0], 0
je 0x4231f1
push 0x4248c0
call fcn.00423760
pop ecx
test eax, eax
je 0x4231f1
push 0
push 2
push 0
mov esi, dword [0x4248c0]
mov ecx, esi
call dword [0x4255c0]
call esi
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov ecx, dword [eax]
test ecx, ecx
je 0x4232cd
mov dword [ebp - 0x20], ecx
push 0x20
pop esi
mov edx, dword [ebp - 0x24]
movzx eax, word [ecx]
cmp ax, si
ja 0x423261
test ax, ax
je 0x42321a
test edx, edx
jne 0x423261
movzx eax, word [ecx]
test ax, ax
je 0x42322f
cmp ax, si
ja 0x42322f
add ecx, 2
mov dword [ebp - 0x20], ecx
jmp 0x42321a
test byte [ebp - 0x40], 1
je 0x42323b
movzx eax, word [ebp - 0x3c]
jmp 0x42323e
push 0xa
pop eax
push eax
push ecx
push 0
push 0x400000
call main
mov dword [0x4243c0], eax
cmp dword [0x4243d8], 0
jne 0x4232a9
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp eax, 0x22
jne 0x423272
xor eax, eax
test edx, edx
sete al
mov edx, eax
mov dword [ebp - 0x24], edx
add ecx, 2
mov dword [ebp - 0x20], ecx
jmp 0x423209
cmp dword [0x4243c4], 0
jne 0x4232bd
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x4243c0]
mov dword [ebp - 4], 0xfffffffe
jmp 0x4232d9
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.0042397c
ret
call fcn.00423868
jmp 0x4230f8

Function at 0x42364f
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x423db0
call fcn.00423a88
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x4236af
cmp eax, 0xffffffff
je 0x4236af
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x4236a8
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x4236a8
cmp edx, 0x10000000
jae 0x4236a8
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x4236a5
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.00423acd
ret 4
Function at 0x423710
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x42374e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x423746
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x423750
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x423736
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x423830
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x423846
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x423861
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x4047d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4047e5
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404824
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x404820
lea ebx, [ebx]
cmp esi, edx
jae 0x404824
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x404810
cmp esi, edx
jb 0x404829
xor eax, eax
pop esi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x407080
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5bb270]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00537c80
add esp, 0xc
mov dword [ebp - 0x214], 0
cmp dword [ebp + 8], 0
mov dword [ebp - 0x210], 0
jbe 0x4071e0
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0x410
lea eax, [ebp - 0x210]
push eax
push 0x2001f
push 0
lea ebx, [esi - 0x410]
push ebx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4071cf
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40713a
push dword [ebp - 0x210]
call edi
jmp 0x4071cf
lea eax, [esi - 0x208]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40715c
push dword [ebp - 0x210]
call edi
jmp 0x4071cf
cmp word [esi], 0
jne 0x407189
push 0x562048
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x210]
call edi
push ebx
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteEmptyKeyW]
jmp 0x4071bd
push 0x104
push esi
call fcn.005372b7
add esp, 8
inc eax
mov dword [ebp - 0x214], eax
push eax
push esi
push 1
push 0
push 0x562048
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x210]
call edi
lea eax, [ebp - 0x20c]
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
add esi, 0x618
dec dword [ebp + 8]
jne 0x4070e1
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0053787e
mov esp, ebp
pop ebp
ret 8
Function at 0x407910
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x5bb270]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 4
push 0
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x407a18
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00537c80
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0053725b
add esp, 0x18
lea eax, [ebp - 0x20c]
push 0x104
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call fcn.00537c80
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00537c80
add esp, 0x18
lea eax, [ebp - 0x414]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x414]
push eax
push str._swininit.ini
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.0053777e
add esp, 0x10
mov ecx, edi
cmp dword [ebp + 0xc], 0
je 0x4079f9
push esi
call fcn.00408540
jmp 0x407a18
lea eax, [ebp - 0x61c]
push eax
push 4
push 0x5621a0
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.004083d0
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0053787e
mov esp, ebp
pop ebp
ret 8

Function at 0x407c40
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value

Disassembly:
push esi
push edi
mov edi, ecx
lea ecx, [edi + 0x150]
call fcn.004047b0
cmp dword [edi + 0x148], 0
je 0x407c81
call fcn.0041334f
mov eax, dword [eax + 4]
mov esi, dword [eax + 0x44]
call fcn.0041334f
mov dword [eax + 0xc], esi
push dword [edi + 0x148]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [edi + 0x148], 0
mov eax, dword [edi + 0x140]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x407c9e
push eax
call esi
mov dword [edi + 0x140], 0
mov eax, dword [edi + 0x144]
test eax, eax
je 0x407cb5
push eax
call esi
mov dword [edi + 0x144], 0
mov ecx, edi
pop edi
pop esi
jmp fcn.004082d0
Function at 0x407cd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
xor eax, eax
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
cmp ecx, 1
jne 0x407d2a
mov dword [ebp - 8], eax
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 0
push esi
push 0x407cc0
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0xc
push eax
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x140], eax
test eax, eax
jne 0x407d21
mov eax, 0x643
pop esi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
cmp ecx, 2
jne 0x407db3
push ebx
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
push edi
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x28]
push eax
call edi
test eax, eax
je 0x407d7f
lea eax, [esi + 0xd624]
test eax, eax
je 0x407d60
mov eax, dword [eax + 0x20]
lea ecx, [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x407d7f
lea eax, [ebp - 0x28]
push eax
call ebx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [ebp + 8]
push eax
push dword [esi + 0x140]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp + 8], 0x103
je 0x407d41
push dword [esi + 0x140]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
pop edi
mov dword [esi + 0x140], 0
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4082d0
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x5bb270]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00537c80
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0x19
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x408381
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x210]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408381
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push str.Common_Desktop
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
lea eax, [ebp - 0x20c]
push eax
push 5
push 0x1000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053787e
mov esp, ebp
pop ebp
ret
Function at 0x4083d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5514e0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5bb270]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0xfffe
mov dword [ebp - 4], 0
call fcn.00411431
add esp, 4
mov ebx, eax
mov dword [ebp - 0x14], ebx
push dword [ebp + 0x18]
push 0x7fff
push ebx
push str.rename
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov eax, ebx
xor esi, esi
mov edi, 0x7fff
mov dword [ebp - 0x18], edi
cmp word [eax], si
je 0x40846a
lea esp, [esp]
push edi
push ebx
call fcn.005372b7
add esp, 8
lea esi, [eax + 1]
cmp esi, 0x7fff
ja 0x40850e
lea ebx, [ebx + esi*2]
sub edi, esi
cmp word [ebx], 0
mov dword [ebp - 0x18], edi
jne 0x408440
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x408530
cmp word [ecx], 0
je 0x408530
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005372b7
push dword [ebp + 0x14]
push dword [ebp + 0x10]
lea edi, [esi + eax]
call fcn.005372b7
add eax, 2
add esp, 0x10
add eax, edi
cmp eax, 0x7fff
ja 0x40850e
push dword [ebp + 8]
push dword [ebp + 0x10]
push str._s_s
push esi
push ebx
call fcn.0053777e
push dword [ebp - 0x18]
push ebx
call fcn.005372b7
mov edi, dword [ebp + 0x18]
add esp, 0x1c
mov esi, dword [ebp - 0x14]
xor ecx, ecx
mov word [ebx + eax*2 + 2], cx
push edi
push esi
push str.rename
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionW]
push edi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push esi
call fcn.0041143a
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov esi, dword [ebp - 0x14]
push esi
call fcn.0041143a
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push eax
jmp 0x408512
Function at 0x408540
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x5bb270]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
push 0x206
push eax
mov word [ebp - 0x20c], ax
mov edi, ecx
lea eax, [ebp - 0x20a]
push eax
call fcn.00537c80
push esi
push str.RD___s__r_n
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 0
push 0x104
push eax
call fcn.0053777e
add esp, 0x1c
lea eax, [ebp - 0x218]
lea ecx, [edi + 0x150]
push eax
call fcn.00403800
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, dword [ebp - 0x218]
mov esi, eax
add edi, 0xfffffff0
or ecx, 0xffffffff
lea edx, [edi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4085e7
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
cmp esi, 0xffffffff
jne 0x408600
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053787e
mov esp, ebp
pop ebp
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push 0
push 0
push esi
call edi
cmp dword [0x5ba22c], 0
je 0x408675
push str.ECHO_OFF_r_n
lea ecx, [ebp - 0x214]
call fcn.00401b80
push 0
lea eax, [ebp - 0x210]
push eax
mov eax, dword [ebp - 0x214]
push dword [eax - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 2
push 0
push 0
push esi
call edi
mov edx, dword [ebp - 0x214]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov dword [0x5ba22c], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408675
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.005372b7
add esp, 8
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0053787e
mov esp, ebp
pop ebp
ret 4
Function at 0x409ae0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
mov eax, dword [0x5bb270]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
mov dword [ebp - 0x82c], 0
push 0x206
push eax
mov word [ebp - 0x20c], ax
mov edi, ecx
lea eax, [ebp - 0x20a]
mov dword [ebp - 0x830], 0
push eax
call fcn.00537c80
add esp, 0xc
mov dword [ebp - 0x828], 0x104
lea eax, [ebp - 0x82c]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionProfileList
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x409b65
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053787e
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 1
push str.SeRestorePrivilege
mov ecx, edi
call fcn.00409ff0
xor eax, eax
xor esi, esi
push 0x206
push eax
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push eax
call fcn.00537c80
add esp, 0xc
mov dword [ebp - 0x828], 0x104
lea eax, [ebp - 0x838]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, 0x103
je 0x409d54
jmp 0x409be0
push 9
push str.S_1_5_21
call fcn.005372b7
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x824]
push 0x104
push eax
call fcn.005386a2
add esp, 0x18
lea eax, [ebp - 0x824]
push str.S_1_5_21
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x409d16
lea eax, [ebp - 0x830]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x20c]
push eax
push VariantInit
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409c53
push dword [ebp - 0x830]
call ebx
jmp 0x409d08
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call fcn.00537c80
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00537c80
lea eax, [ebp - 0x20c]
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionProfileList
push 0x561e78
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.0053777e
add esp, 0x2c
lea eax, [ebp - 0x414]
push 0
push eax
push str.ProfileImagePath
lea eax, [ebp - 0x61c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHRegGetPathW]
test eax, eax
jne 0x409d16
push str.Ntuser.dat
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.005395cb
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
push VariantInit
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
test eax, eax
jne 0x409d16
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.004099d0
lea eax, [ebp - 0x838]
mov dword [ebp - 0x828], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x828]
inc esi
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x409be0
push dword [ebp - 0x82c]
call ebx
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
pop ebx
xor ecx, ebp
pop edi
call fcn.0053787e
mov esp, ebp
pop ebp
ret
Function at 0x409d80
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x638
mov eax, dword [0x5bb270]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
mov dword [ebp - 0x630], ecx
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0x624], 0
mov dword [ebp - 0x62c], 0
call fcn.00537c80
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x624]
add esp, 0xc
mov dword [ebp - 0x620], 0x104
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionProfileList
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x409fd2
push esi
push edi
xor edi, edi
mov dword [ebp - 0x620], 0x104
lea eax, [ebp - 0x638]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push dword [ebp - 0x624]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, 0x103
je 0x409fc8
lea eax, [ebp - 0x62c]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x20c]
push eax
push VariantInit
call ebx
test eax, eax
jne 0x409e6d
push dword [ebp - 0x62c]
jmp 0x409f88
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call fcn.00537c80
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00537c80
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x628], 0
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionProfileList
push 0x561e78
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.0053777e
add esp, 0x2c
lea eax, [ebp - 0x628]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x61c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x409f8a
lea eax, [ebp - 0x620]
mov dword [ebp - 0x620], 0x208
push eax
lea eax, [ebp - 0x414]
push eax
push 0
push 0
push str.ProfileImagePath
push dword [ebp - 0x628]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409f82
push str.User.dat
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.005395cb
add esp, 0xc
lea eax, [ebp - 0x414]
push 0x104
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
push VariantInit
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
test eax, eax
jne 0x409f82
mov ecx, dword [ebp - 0x630]
lea eax, [ebp - 0x20c]
push eax
call fcn.004099d0
push dword [ebp - 0x628]
call esi
lea eax, [ebp - 0x638]
mov dword [ebp - 0x620], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x620]
inc edi
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push dword [ebp - 0x624]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x409e42
push dword [ebp - 0x624]
call esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop ebx
call fcn.0053787e
mov esp, ebp
pop ebp
ret
Function at 0x40a370
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 8]
push eax
push 2
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a3a6
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x40a3a6
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ebp
ret 0xc