joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403830
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x412870
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x404
lea eax, [esp]
mov dword [esp + 0x40c], 1
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SQLBindCol
mov dword [esp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4038fd
push ebp
push esi
push edi
mov ecx, 0xff
lea edi, [esp + 0x11]
mov byte [esp + 0x10], al
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x424]
push 0
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ebp, dword [ecx - 8]
lea ecx, [esp + 0x428]
call sub.MFC42.DLL_CString::GetBuffer
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push 1
push 0
push 0
lea ecx, [esp + 0x434]
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [esp + 0x1c]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
lea ecx, [esp + 0x414]
mov byte [esp + 0x40c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x418]
mov dword [esp + 0x40c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x404]
mov dword fs:[0], ecx
add esp, 0x410
ret 8

Function at 0x404120
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0xc]
mov eax, dword [esi + 0x18]
test eax, eax
je 0x404161
mov edi, dword [ebp + 8]
je 0x404161
mov esi, dword [esi]
push edi
mov ecx, dword [esi + 0x30]
push ecx
call fcn.004040a0
add esp, 8
test eax, eax
mov eax, dword [esi + 0x18]
je 0x404163
test eax, eax
jne 0x404147
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404170
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
xor ebp, ebp
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov edx, dword [eax + 0x1c]
mov ecx, dword [eax + 0x20]
add edx, edi
add ecx, edi
mov dword [esp + 0x14], edx
mov edx, dword [eax + 0x24]
mov eax, dword [eax + 0x18]
add edx, edi
test eax, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], eax
jbe 0x4041ed
mov edx, ecx
mov ecx, dword [edx]
mov esi, dword [esp + 0x20]
mov eax, edi
add eax, ecx
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x4041d8
test cl, cl
je 0x4041d4
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x4041d8
add eax, 2
add esi, 2
test cl, cl
jne 0x4041b4
xor eax, eax
jmp 0x4041dd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4041f7
mov eax, dword [esp + 0x1c]
inc ebp
add edx, 4
cmp ebp, eax
jb 0x4041aa
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov cx, word [edx + ebp*2]
mov eax, dword [eax + ecx*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x4042c0
Capabilities:
Encrypt data using rc4 prga
Hide graphical window

Disassembly:
sub esp, 0xc
mov eax, dword [0x41a420]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.MSVCRT.dll_malloc]
push edi
push eax
call esi
mov ecx, dword [0x41a420]
mov ebp, eax
push ecx
mov dword [esp + 0x20], ebp
call esi
mov ebx, dword [0x41a420]
xor ecx, ecx
add esp, 8
cmp ebx, ecx
mov esi, eax
mov dword [esp + 0x10], ecx
jbe 0x404326
sub eax, ebp
mov dword [esp + 0x14], eax
jmp 0x404305
mov eax, dword [esp + 0x14]
lea edi, [ecx + ebp]
mov byte [eax + edi], cl
mov eax, ecx
cdq
idiv dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
inc ecx
mov dl, byte [edx + eax]
mov byte [edi], dl
mov ebx, dword [0x41a420]
cmp ecx, ebx
jb 0x404301
xor edi, edi
test ebx, ebx
jbe 0x404373
mov ecx, dword [esp + 0x18]
mov ebp, esi
sub ecx, esi
mov dword [esp + 0x2c], ecx
jmp 0x40433e
mov ecx, dword [esp + 0x2c]
mov al, byte [ebp]
xor edx, edx
mov dl, byte [ecx + ebp]
mov ecx, dword [esp + 0x10]
and eax, 0xff
add ecx, edx
add eax, ecx
xor edx, edx
div ebx
mov al, byte [ebp]
inc edi
inc ebp
mov dword [esp + 0x10], edx
mov cl, byte [edx + esi]
mov byte [edx + esi], al
mov byte [ebp - 1], cl
mov ebx, dword [0x41a420]
cmp edi, ebx
jb 0x40433a
mov edx, dword [esp + 0x24]
xor ebp, ebp
test edx, edx
jle 0x40443b
mov ecx, dword [esp + 0x34]
mov eax, ecx
imul eax, ecx
mov dword [esp + 0x34], eax
mov al, cl
imul cl
mov cl, al
mov eax, dword [esp + 0x30]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x30]
mov byte [esp + 0x2c], cl
mov dword [esp + 0x30], edx
mov dword [esp + 0x20], eax
jmp 0x4043bc
mov ebx, dword [0x41a420]
mov cl, byte [esp + 0x2c]
lea eax, [edi + 1]
xor edx, edx
div ebx
xor eax, eax
push 0
push 0
mov edi, edx
xor edx, edx
mov al, byte [edi + esi]
add eax, ebp
div ebx
mov ebp, edx
mov dl, byte [edi + esi]
mov al, byte [esi + ebp]
add al, cl
add cl, dl
mov byte [esp + 0x2c], al
mov byte [esi + ebp], cl
mov ecx, dword [esp + 0x2c]
mov byte [edi + esi], al
xor eax, eax
and ecx, 0xff
mov al, byte [esi + ebp]
xor edx, edx
add eax, ecx
div dword [0x41a420]
mov eax, dword [esp + 0x3c]
mov ebx, edx
add ebx, eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov dl, byte [ebx + esi]
mov al, byte [esp + 0x2c]
mov ecx, dword [esp + 0x20]
add dl, al
mov eax, dword [esp + 0x28]
xor dl, byte [ecx + eax]
mov byte [eax], dl
inc eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
dec eax
mov dword [esp + 0x30], eax
jne 0x4043b2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x404450
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ecx
push 0
push 1
push 0
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esp + 0x14], 0
call sub.ADVAPI32.dll_CryptAcquireContextA
test eax, eax
jne 0x404471
pop ecx
ret
push 8
push 1
push 0
lea ecx, [esp + 0xc]
push 0
push ecx
call sub.ADVAPI32.dll_CryptAcquireContextA
neg eax
sbb eax, eax
neg eax
pop ecx
ret
Function at 0x405080
Capabilities:
Check os version

Disassembly:
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x40513b
push 0x94
mov ebx, 1
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x4051b3
mov ecx, 0x25
xor eax, eax
mov edi, esi
push esi
rep stosd dword es:[edi], eax
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4050d2
call fcn.004051c0
mov eax, dword [esi + 4]
cmp eax, 4
jne 0x4050ef
push esi
mov ebx, 5
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
ret
cmp eax, 5
jne 0x4051a9
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x405114
push esi
mov ebx, 6
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
ret
cmp eax, 5
jne 0x4051a9
cmp dword [esi + 8], ebx
jne 0x4051a9
push esi
mov ebx, 7
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
ret
cmp al, 4
jae 0x405145
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0x94
mov ebx, 2
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x4051b3
mov ecx, 0x25
xor eax, eax
mov edi, esi
push esi
rep stosd dword es:[edi], eax
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esi + 4]
cmp eax, 4
jne 0x4051a9
cmp dword [esi + 8], 0xa
jne 0x405199
push esi
mov ebx, 3
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
ret
cmp eax, 4
jne 0x4051a9
cmp dword [esi + 8], 0x5a
jne 0x4051a9
mov ebx, 4
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop edi
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x405840
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x412aa3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x415900
mov dword [esi + 4], edi
lea ebx, [esi + 8]
mov dword [esp + 0x18], edi
mov ecx, ebx
call sub.MFC42.DLL_CPtrArray::CPtrArray
mov dword [ebx], 0x4158ec
lea ebx, [esi + 0x1c]
mov byte [esp + 0x18], 1
mov ecx, ebx
call sub.MFC42.DLL_CPtrArray::CPtrArray
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov dword [ebx], 0x41589c
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], edi
or eax, 0xffffffff
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi], 0x4158b0
mov dword [esi + 0x30], 0x10
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x38], 0xff000000
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x408ab0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x412e18
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x20]
push ebp
push esi
push edi
push 0xf1
mov edi, ecx
push ebx
call sub.MFC42.DLL_AfxFindResourceHandle
mov esi, eax
push 0xf1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
xor ebp, ebp
cmp eax, ebp
jne 0x408af9
xor eax, eax
jmp 0x408be3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x408b0c
xor eax, eax
jmp 0x408be3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, ebp
jne 0x408b20
xor eax, eax
jmp 0x408be3
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CImageList::CImageList
xor eax, eax
push 0xa
mov ax, word [esi + 4]
xor ecx, ecx
mov cx, word [esi + 2]
push ebp
push 0xff
push eax
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x38], ebp
call sub.MFC42.DLL_CImageList::Create
lea edx, [esp + 0x14]
push ebx
push edx
mov ecx, edi
call fcn.00409b70
mov ebx, eax
cmp ebx, ebp
mov dword [esp + 0x10], ebx
je 0x408bd0
mov ecx, dword [edi + 0x30]
xor eax, eax
mov ax, word [esi + 2]
cmp eax, ecx
jg 0x408b72
mov eax, ecx
mov ecx, dword [edi + 0x34]
mov dword [edi + 0x30], eax
xor eax, eax
mov ax, word [esi + 4]
cmp eax, ecx
jg 0x408b84
mov eax, ecx
xor ebx, ebx
mov dword [edi + 0x34], eax
cmp word [esi + 6], bx
jbe 0x408bcc
lea eax, [esi + 8]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x2c]
xor eax, eax
mov ax, word [ecx]
test eax, eax
je 0x408bb6
mov ecx, ebx
lea edx, [esp + 0x14]
push ecx
push edx
push eax
push 0
mov ecx, edi
inc ebx
call fcn.00408740
mov edx, dword [esp + 0x2c]
xor eax, eax
mov ax, word [esi + 6]
inc ebp
add edx, 2
cmp ebp, eax
mov dword [esp + 0x2c], edx
jl 0x408b96
mov ebx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0xffffffff
call fcn.00411aea
mov eax, ebx
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x409db0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
and esi, 0xffff
push 2
push esi
call sub.MFC42.DLL_AfxFindResourceHandle
mov edi, eax
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x409dd9
pop edi
pop esi
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x409de8
pop edi
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x409df6
pop edi
pop esi
ret
push eax
call fcn.00409d70
add esp, 4
cmp ax, 0x10
je 0x409e0a
pop edi
xor eax, eax
pop esi
ret
push 0
push esi
push edi
call sub.MFC42.DLL_AfxLoadSysColorBitmap
pop edi
pop esi
ret

Function at 0x40a200
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x412fd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x415930
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x70], ebx
call dword [sym.imp.USER32.dll_CopyRect]
push 0xfffffffffffffffe
lea edx, [esp + 0x18]
push 0xfffffffffffffffe
push edx
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x7c]
sub eax, esi
neg ecx
sbb ecx, ecx
mov dword [esp + 0x24], eax
and ecx, 0x12c
mov edi, str.Marlett
add ecx, 0x190
xor eax, eax
mov dword [esp + 0x34], ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x40]
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x28], ebx
shr ecx, 2
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], 1
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], bl
mov byte [esp + 0x3e], bl
mov byte [esp + 0x3f], bl
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CGdiObject::Attach
mov esi, dword [esp + 0x70]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x30]
push 1
mov ecx, esi
mov edi, eax
call sub.MFC42.DLL_CDC::SetBkMode
mov edx, dword [esi]
mov ebx, eax
lea eax, [esp + 0x14]
push 0x21
push eax
lea ecx, [esp + 0x80]
push 1
push ecx
mov ecx, esi
call dword [edx + 0x70]
push ebx
mov ecx, esi
call sub.MFC42.DLL_CDC::SetBkMode
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x30]
mov dword [esp + 0xc], 0x41591c
lea ecx, [esp + 0xc]
mov dword [esp + 0x68], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret 0x10
Function at 0x40da30
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x413498
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
xor ebx, ebx
push str.SoftwareJosefssonDial_up_watch_
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 1
mov dword [esp + 8], ebx
call sub.MFC42.DLL_CString::CString_3
lea eax, [esp + 0x28]
lea ecx, [esp + 8]
push eax
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 4]
push ecx
push ebx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push SQLBindCol
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40dae4
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
push ebx
push ebx
lea ecx, [esp + 0x40]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], 4
mov dword [esp + 0x28], ebx
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [esp + 0x14]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40dad9
mov eax, dword [esp + 0xc]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 8]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x40db30
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4134d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x408
push ebp
xor ebp, ebp
push str.SoftwareJosefssonDial_up_watch_
lea ecx, [esp + 8]
mov dword [esp + 0x418], 2
mov dword [esp + 0xc], ebp
call sub.MFC42.DLL_CString::CString_3
lea eax, [esp + 0x41c]
lea ecx, [esp + 4]
push eax
mov byte [esp + 0x418], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 8]
push ecx
push ebp
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push SQLBindCol
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40dc2f
push ebx
push esi
push edi
mov ecx, 0xff
lea edi, [esp + 0x19]
mov byte [esp + 0x18], al
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x430]
push ebp
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ebx, dword [edx - 8]
lea ecx, [esp + 0x434]
call sub.MFC42.DLL_CString::GetBuffer
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
push 1
push ebp
push ebp
lea ecx, [esp + 0x440]
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [esp + 0x24]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
test eax, eax
pop ebx
jne 0x40dc24
mov ebp, 1
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 4]
mov byte [esp + 0x414], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x41c]
mov byte [esp + 0x414], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x420]
mov byte [esp + 0x414], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x424]
mov dword [esp + 0x414], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x40c]
mov eax, ebp
pop ebp
mov dword fs:[0], ecx
add esp, 0x414
ret
Function at 0x40ed60
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41356b
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call fcn.0040efa0
mov edi, dword [esp + 0x140]
xor ebx, ebx
cmp edi, ebx
je 0x40edc5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x24]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push SQLDisconnect
push edx
jmp 0x40edd0
lea eax, [esp + 0x14]
push eax
push SQLDisconnect
push ebx
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryA]
cmp eax, ebx
jne 0x40eed3
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push ebx
push str.PerfStatsStartStat
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40eec8
lea ecx, [esp + 0x10]
call fcn.00411b50
mov eax, dword [esp + 0x13c]
mov ecx, dword [esp + 0x138]
push eax
push ecx
lea edx, [esp + 0x18]
push str._s_s
push edx
mov dword [esp + 0x140], ebx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x20]
add esp, 0x10
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push ebx
push ecx
push ebx
push edx
push eax
call edi
test eax, eax
jne 0x40eea9
mov ecx, dword [esp + 0x1c]
push ecx
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x14]
add esp, 4
lea edx, [esp + 0x1c]
mov esi, eax
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
push esi
push eax
push ebx
push ecx
push edx
call edi
mov ebx, eax
mov eax, dword [esp + 0x140]
neg ebx
sbb ebx, ebx
push eax
lea ecx, [ebp + 8]
inc ebx
call fcn.00411c5e
lea ecx, [esp + 0x10]
push ecx
lea ecx, [ebp + 4]
call fcn.00411bb6
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov dword [esp + 0x130], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x128]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x124
ret 0xc
Function at 0x40eef0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
mov eax, dword [edi + 8]
lea esi, [edi + 8]
mov ecx, esi
mov eax, dword [eax - 8]
push eax
call sub.MFC42.DLL_CString::GetBuffer
lea ecx, [esp + 0x14]
push ecx
push SQLDisconnect
push eax
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryA]
push 0xffffffffffffffff
mov ecx, esi
mov ebx, eax
call sub.MFC42.DLL_CString::ReleaseBuffer
test ebx, ebx
jne 0x40ef90
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push 0x20019
push ebx
push str.PerfStatsStatData
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40ef90
mov edx, dword [esp + 0x20]
mov edi, dword [edi + 4]
lea ecx, [esp + 0x18]
lea eax, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push eax
push ebx
push edi
push ecx
mov dword [esp + 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x10]
mov esi, eax
neg esi
sbb esi, esi
push edx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4

Function at 0x40efa0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [ecx + 4]
sub esp, 0x10
mov edx, dword [eax - 8]
push ebp
lea ebp, [ecx + 4]
test edx, edx
jne 0x40efbb
mov eax, 1
pop ebp
add esp, 0x10
ret
push ebx
push esi
push edi
lea edi, [ecx + 8]
xor esi, esi
mov ecx, dword [edi]
mov eax, dword [ecx - 8]
mov ecx, edi
push eax
call sub.MFC42.DLL_CString::GetBuffer
lea edx, [esp + 0x18]
push edx
push SQLDisconnect
push eax
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryA]
push 0xffffffffffffffff
mov ecx, edi
mov ebx, eax
call sub.MFC42.DLL_CString::ReleaseBuffer
test ebx, ebx
jne 0x40f07c
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push 0x20019
push ebx
push str.PerfStatsStopStat
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40f071
mov eax, dword [ebp]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ebx
push ecx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push edx
call ebx
test eax, eax
jne 0x40f06a
mov eax, dword [esp + 0x14]
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
lea ecx, [esp + 0x14]
mov edi, eax
mov eax, dword [ebp]
push ecx
lea edx, [esp + 0x20]
push edi
push edx
push esi
push eax
mov eax, dword [esp + 0x24]
push eax
call ebx
mov esi, eax
push edi
neg esi
sbb esi, esi
inc esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x10]
push ecx
jmp 0x40f076
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, ebp
call sub.MFC42.DLL_CString::Empty
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x10
ret