joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440f20
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46e038
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00467072
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.004408c0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00466fa0
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00463864
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00463864
push 1
push 0
push 0
mov ecx, esi
call fcn.0046380c
push 1
push 0
push 1
mov ecx, esi
call fcn.0046380c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004670e4
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x4410a0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46e058
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00467072
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004408c0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00466fa0
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x441164
cmp dword [esp + 0x40], 1
jne 0x441162
cmp ecx, eax
jge 0x441164
mov eax, ecx
cmp eax, 0xc8
jge 0x441170
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00440f20
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004670e4
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4418f0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46e0c3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00461c84
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0046731a
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00468836
test eax, eax
je 0x441a0c
mov ecx, dword [esp + 0x3c]
call fcn.00467347
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4419d0
push edi
mov ecx, esi
call fcn.004649ab
mov ecx, esi
call fcn.00441b70
cmp dword [esp + 0x38], 1
jne 0x441a05
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00464ae6
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x444430
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x444463
push esi
call fcn.00447520
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44445c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4444e9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4444d2
mov eax, dword [esi + 8]
test eax, eax
je 0x444487
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4444ce
cmp eax, 2
je 0x4444d2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44447a
cmp eax, 3
je 0x4444ad
cmp eax, 1
jne 0x44447a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44447a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44447a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00444510
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4444f8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00444510
add esp, 4
pop esi
ret

Function at 0x462a7a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x462ab2
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00460b2e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00460b06
jmp 0x462abe
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x464168
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4641aa
call fcn.00469c21
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4641aa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4641a1
xor eax, eax
jmp 0x4641b2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004641b8
pop edi
pop esi
pop ebx
ret 4

Function at 0x46a151
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46a17f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46a19d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046a0b7
jmp 0x46a19d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46a19d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046a0b7
test edi, edi
mov eax, edi
jne 0x46a187
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x1007a8a
Capabilities:
Delete registry value

Disassembly:
mov eax, 0x101add7
call fcn.0101a4c8
sub esp, 0x38
push esi
xor esi, esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [edi + 0x90]
mov eax, dword [ecx]
mov dword [ebp - 4], esi
call dword [eax + 0x14]
push eax
call fcn.010164d4
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x1007b2a
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push esi
push esi
push 0x1004
push dword [edi + 0x9c]
mov dword [ebp - 0x44], 4
mov dword [ebp - 0x3c], esi
call ebx
mov esi, eax
jmp 0x1007b26
lea eax, [ebp - 0x44]
push eax
push 0
push 0x104b
push dword [edi + 0x9c]
mov dword [ebp - 0x40], esi
call ebx
test eax, eax
je 0x1007b26
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1007b26
cmp dword [eax + 0xc], 0
jne 0x1007b1b
cmp dword [ebp + 8], 0
jne 0x1007b1b
push dword [eax]
lea ecx, [ebp - 0x10]
push dword [eax + 0x10]
call fcn.01006843
jmp 0x1007b26
push dword [eax]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
dec esi
jns 0x1007adf
pop ebx
lea ecx, [ebp - 0x10]
call fcn.01005d1a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x1008d22
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x101afdc
call fcn.0101a4c8
sub esp, 0x6c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push esi
mov esi, ecx
je 0x1008dfa
push edi
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_1
and dword [ebp - 4], 0
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::CString_1
mov eax, dword [ebx]
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x10]
push ecx
mov ecx, ebx
mov byte [ebp - 4], 1
call dword [eax + 4]
push 0xd
pop ecx
xor eax, eax
lea edi, [ebp - 0x44]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x64]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
and dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0x104d
push dword [esi + 0x60]
mov dword [ebp - 0x44], 5
mov dword [ebp - 0x24], ebx
call edi
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x64], ecx
lea ecx, [ebp - 0x78]
push ecx
push eax
push 0x1074
push dword [esi + 0x60]
mov dword [esi + 0x64], eax
mov dword [ebp - 0x70], 1
call edi
lea eax, [ebp - 0x78]
push eax
push dword [esi + 0x64]
mov dword [ebp - 0x68], 0xf000
push 0x102b
push dword [esi + 0x60]
mov dword [ebp - 0x6c], 0x2000
call edi
inc dword [esi + 0x64]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x1009262
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x101b061
call fcn.0101a4c8
sub esp, 0x70
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push esi
mov esi, ecx
je 0x100939d
push edi
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString_1
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString_1
mov eax, dword [ebx]
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x14]
push ecx
mov ecx, ebx
mov byte [ebp - 4], 2
call dword [eax + 4]
push 0xd
pop ecx
xor eax, eax
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0xa0]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
and dword [ebp - 0x40], 0
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0x104d
push dword [esi + 0x9c]
mov dword [ebp - 0x48], 5
mov dword [ebp - 0x28], ebx
call edi
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x68], ecx
lea ecx, [ebp - 0x7c]
push ecx
push eax
push 0x1074
push dword [esi + 0x9c]
mov dword [esi + 0xa0], eax
mov dword [ebp - 0x74], 1
call edi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x7c]
push eax
push dword [esi + 0xa0]
mov dword [ebp - 0x74], 2
push 0x1074
push dword [esi + 0x9c]
call edi
mov eax, dword [ebx]
mov ecx, ebx
mov dword [ebp - 0x6c], 0xf000
call dword [eax + 8]
xor ecx, ecx
test eax, eax
setne cl
lea eax, [ebp - 0x7c]
push eax
push dword [esi + 0xa0]
push 0x102b
push dword [esi + 0x9c]
inc ecx
shl ecx, 0xc
mov dword [ebp - 0x70], ecx
call edi
inc dword [esi + 0xa0]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x1009573
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 8]
push eax
push 0
push esi
push 0x1008917
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
add esi, 0xc30
test eax, eax
je 0x10095aa
and dword [esi], 0
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x10095b0
mov dword [esi], 0x80004005
mov eax, dword [esi]
pop esi
pop ebp
ret 4
Function at 0x100963e
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
mov eax, 0x101b0e1
call fcn.0101a4c8
sub esp, 0x694
mov eax, dword [0x1020e7c]
push ebx
push esi
push edi
push 7
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x690], ecx
pop eax
xor ebx, ebx
lea ecx, [ebp - 0x69c]
mov dword [ebp - 0x69c], eax
mov dword [ebp - 0x698], 0x18
mov dword [ebp - 0x694], ebx
mov dword [ebp - 0x678], ecx
push ebx
push eax
lea eax, [ebp - 0x420]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jl 0x100984e
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x674]
call sub.MFC42u.DLL_CString::CString_2
push 0x5c
lea ecx, [ebp - 0x674]
mov dword [ebp - 4], ebx
call sub.MFC42u.DLL_CString::ReverseFind
mov edi, eax
cmp edi, 0xffffffff
je 0x100983f
push 0x1002318
lea ecx, [ebp - 0x680]
call sub.MFC42u.DLL_CString::CString_2
mov esi, eax
push edi
lea eax, [ebp - 0x68c]
push eax
lea ecx, [ebp - 0x674]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::Left
push esi
push eax
lea eax, [ebp - 0x688]
push eax
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_operator
push eax
lea ecx, [ebp - 0x674]
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CString::operator
lea ecx, [ebp - 0x688]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x68c]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x680]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
lea eax, [ebp - 0x674]
push eax
lea ecx, [ebp - 0x67c]
call fcn.01019c28
push 0x100230c
lea ecx, [ebp - 0x684]
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CString::CString_2
push eax
lea ecx, [ebp - 0x67c]
mov byte [ebp - 4], 5
call fcn.01019dcc
lea ecx, [ebp - 0x684]
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CString::CString
lea eax, [ebp - 0x670]
push eax
push dword [ebp - 0x67c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1009831
test byte [ebp - 0x670], 2
je 0x10097c6
lea eax, [ebp - 0x644]
push 0x10022f4
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x1009814
test byte [ebp - 0x670], 0x10
jne 0x1009814
push 0x10
call sub.MFC42u.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp - 0x6a0], ecx
cmp ecx, ebx
mov byte [ebp - 4], 6
je 0x1009802
push dword [ebp - 0x674]
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x644]
push eax
call fcn.01008319
jmp 0x1009804
xor eax, eax
mov ecx, dword [ebp - 0x690]
push eax
mov byte [ebp - 4], 4
call fcn.01008d22
lea eax, [ebp - 0x670]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10097a5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x67c]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x674]
call sub.MFC42u.DLL_CString::CString
add dword [ebp - 0x678], 4
mov eax, dword [ebp - 0x678]
mov eax, dword [eax]
cmp eax, ebx
jne 0x1009686
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
inc eax
pop ebx
call fcn.010197bb
leave
ret
Function at 0x10098d2
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x101b0fb
call fcn.0101a4c8
sub esp, 0x218
mov eax, dword [0x1020e7c]
push ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov ebx, ecx
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x214], esi
push 0x2001f
push eax
push dword [ebx]
lea ecx, [ebp - 0x214]
mov dword [ebp - 4], esi
call fcn.01009076
cmp eax, esi
jne 0x100997b
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1009932
lea eax, [ebp - 0x210]
push eax
call fcn.010098d2
cmp eax, esi
jne 0x100997a
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x214]
je 0x1009922
call fcn.01005d1a
push dword [ebp - 0x21c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.01005d1a
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.010197bb
leave
ret 4
Function at 0x1009a67
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x101b150
call fcn.0101a4c8
sub esp, 0x444
mov eax, dword [0x1020e7c]
push ebx
mov dword [ebp - 0x10], eax
xor ebx, ebx
push esi
mov eax, 0x80000002
push edi
mov dword [ebp - 0x43c], ecx
mov dword [ebp - 0x44c], eax
mov dword [ebp - 0x448], 0x80000001
mov dword [ebp - 0x444], ebx
mov dword [ebp - 0x424], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x430], eax
lea edi, [ebp - 0x44c]
mov esi, 0x10023e0
push 0x20019
push esi
push dword [ebp - 0x430]
lea ecx, [ebp - 0x424]
call fcn.01009076
test eax, eax
jne 0x1009c6b
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x440]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1009c60
cmp dword [ebp - 0x440], ebx
mov dword [ebp - 0x428], ebx
jbe 0x1009c60
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x428]
mov dword [ebp - 0x438], 0x104
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1009c48
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x424]
mov dword [ebp - 0x438], 0x104
call fcn.01005d38
test eax, eax
jne 0x1009c48
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x42c]
call sub.MFC42u.DLL_CString::CString_2
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::MakeLower
push 0x10023c0
lea ecx, [ebp - 0x42c]
call sub.MFC42u.DLL_CString::Find_2
cmp eax, 0xffffffff
jne 0x1009c3a
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x434]
call sub.MFC42u.DLL_CString::CString_2
mov ecx, dword [ebp - 0x43c]
lea eax, [ebp - 0x434]
push eax
mov byte [ebp - 4], 2
call fcn.010084ff
push 0x24
call sub.MFC42u.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp - 0x450], ecx
cmp ecx, ebx
mov byte [ebp - 4], 3
je 0x1009c19
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x434]
push esi
push dword [ebp - 0x430]
call fcn.0100867f
jmp 0x1009c1b
xor eax, eax
mov ecx, dword [ebp - 0x43c]
push eax
mov byte [ebp - 4], 2
call fcn.01009262
lea ecx, [ebp - 0x434]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
inc dword [ebp - 0x428]
mov eax, dword [ebp - 0x428]
cmp eax, dword [ebp - 0x440]
jb 0x1009b15
lea ecx, [ebp - 0x424]
call fcn.01005d1a
add edi, 4
mov eax, dword [edi]
cmp eax, ebx
mov dword [ebp - 0x430], eax
jne 0x1009abf
lea ecx, [ebp - 0x424]
call fcn.01005d1a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.010197bb
leave
ret
Function at 0x100aa75
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x101b2d7
call fcn.0101a4c8
sub esp, 0x438
mov eax, dword [0x1020e7c]
push ebx
push esi
mov dword [ebp - 0x10], eax
mov eax, 0x80000002
xor ebx, ebx
push edi
mov dword [ebp - 0x434], ecx
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x43c], 0x80000001
mov dword [ebp - 0x438], ebx
mov edi, eax
lea esi, [ebp - 0x440]
mov dword [ebp - 0x424], ebx
push 0x2001f
push 0x1002340
push edi
lea ecx, [ebp - 0x424]
mov dword [ebp - 4], ebx
call fcn.01009076
test eax, eax
jne 0x100ac16
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x430]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x100abd5
cmp dword [ebp - 0x430], ebx
mov dword [ebp - 0x428], ebx
jbe 0x100abd5
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x428]
mov dword [ebp - 0x42c], 0x104
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x100abbd
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x424]
mov dword [ebp - 0x42c], 0x104
call fcn.01005d38
test eax, eax
jne 0x100abbd
push 0x14
call sub.MFC42u.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp - 0x444], ecx
cmp ecx, ebx
mov byte [ebp - 4], 1
je 0x100abac
push edi
push 0x10025b8
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0100819c
jmp 0x100abae
xor eax, eax
mov ecx, dword [ebp - 0x434]
push eax
mov byte [ebp - 4], bl
call fcn.01008d22
inc dword [ebp - 0x428]
mov eax, dword [ebp - 0x428]
cmp eax, dword [ebp - 0x430]
jb 0x100ab19
lea ecx, [ebp - 0x424]
call fcn.01005d1a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x424]
call fcn.01005d1a
add esi, 4
mov edi, dword [esi]
cmp edi, ebx
jne 0x100aabb
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.010197bb
leave
ret
lea ecx, [ebp - 0x424]
call fcn.01005d1a
xor eax, eax
jmp 0x100abff