joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56bd66
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x56bd86
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0056e379
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x56bda9
test byte [esp + 8], 2
je 0x56bda9
call fcn.0056e3ec
mov dword [eax], 0xd
call fcn.0056e3f5
mov dword [eax], 5
jmp 0x56bd82
xor eax, eax
ret

Function at 0x57e4f9
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x57e531
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.0057c549
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0057c521
jmp 0x57e53d
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x57fbeb
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 0x57fc2d
call fcn.00585c95
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x57fc2d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x57fc24
xor eax, eax
jmp 0x57fc35
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0057fc3b
pop edi
pop esi
pop ebx
ret 4

Function at 0x5861c5
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 0x5861f3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x586211
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0058612b
jmp 0x586211
mov eax, dword [esi + 0x14]
test eax, eax
je 0x586211
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0058612b
test edi, edi
mov eax, edi
jne 0x5861fb
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4018d0
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x416893
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push esi
push edi
push 0xc
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
xor edi, edi
cmp eax, edi
mov dword [esp + 0x40], edi
je 0x401913
mov ecx, eax
call fcn.0040f390
mov esi, eax
mov dword [esp + 0x10], esi
jmp 0x401919
mov dword [esp + 0x10], edi
mov esi, edi
cmp esi, edi
mov dword [esp + 0x40], 0xffffffff
jne 0x40193a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret
push esi
lea ecx, [esp + 0x18]
call fcn.0040f590
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x14]
push eax
mov dword [esp + 0x44], 1
call fcn.0040f630
test eax, eax
je 0x4019b7
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
call fcn.0040f6a0
push eax
push 0
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4019eb
push 0x64
call edi
push 0xffffffffffffffff
push esi
call ebp
test eax, eax
je 0x4019e8
push 0x64
call edi
push esi
call ebx
mov ecx, dword [esp + 0x48]
push ecx
lea ecx, [esp + 0x18]
call fcn.0040f630
test eax, eax
jne 0x401970
mov esi, dword [esp + 0x10]
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
lea ecx, [esp + 0x14]
mov dword [esp + 0x40], 0xffffffff
call fcn.0040f5c0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret
push esi
call ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x40], 0xffffffff
call fcn.0040f5c0
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret
Function at 0x401d10
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x416930
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::CString_4
lea edi, [esi + 0x94]
lea eax, [esp + 0xc]
xor ebx, ebx
push eax
mov ecx, edi
mov dword [esp + 0x20], ebx
call sub.MFC42u.DLL_CWnd::GetWindowTextW_1
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 8]
cmp eax, 1
jge 0x401d9c
mov ecx, esi
call fcn.00401fd0
lea edx, [esp + 0xc]
mov ecx, edi
push edx
call sub.MFC42u.DLL_CWnd::GetWindowTextW_1
mov eax, dword [esp + 0xc]
cmp dword [eax - 8], 1
jge 0x401d9c
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov ecx, dword [esi + 0xd8]
add ecx, 0x134
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::CString_3
push str.createdb.sql
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 1
call sub.MFC42u.DLL_CString::operator_1
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
cmp eax, ebx
jne 0x401e11
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x401e58
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov esi, ecx
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x403960
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 0xc]
push esi
test eax, eax
mov esi, ecx
je 0x403974
push eax
lea ecx, [esi + 4]
call fcn.00415d82
mov eax, dword [esi]
mov ecx, dword [esp + 8]
mov esi, dword [esi + 4]
push eax
mov eax, dword [esp + 0x10]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop esi
ret 0xc
Function at 0x403990
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x1004
call fcn.00416290
mov eax, dword [esp + 0x1014]
push esi
test eax, eax
mov esi, ecx
mov dword [esp + 4], 0
je 0x4039b9
push eax
lea ecx, [esi + 4]
call fcn.00415d82
mov eax, dword [esi]
mov edx, dword [esp + 0x1014]
push eax
mov eax, dword [esp + 0x1014]
lea ecx, [esp + 0xc]
push 0x800
push ecx
mov ecx, dword [esi + 4]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, dword [esp + 0x100c]
lea edx, [esp + 8]
push edx
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_1
mov eax, esi
pop esi
add esp, 0x1004
ret 0x10

Function at 0x403a00
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x416be8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [esp + 0x38]
mov dword [esp + 0x24], 0
test eax, eax
je 0x403a46
push ecx
lea eax, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
call sub.MFC42u.DLL_CString::CString_3
mov ecx, edi
call fcn.00403600
push 0x7fff
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
mov dword [esp + 0x14], esi
jne 0x403a7c
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42u.DLL_CString::CString
xor eax, eax
jmp 0x403b93
mov eax, dword [edi]
mov ecx, dword [esp + 0x2c]
push eax
push 0x7fff
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
cmp eax, 1
jb 0x403b7d
movsx di, byte [esp + 0x3c]
mov ebp, dword [sym.imp.MSVCRT.dll_wcscmp]
push esi
lea ecx, [esp + 0x40]
call sub.MFC42u.DLL_CString::CString_1
push 1
push edi
lea ecx, [esp + 0x40]
mov byte [esp + 0x2c], 1
call fcn.00415d9a
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x44]
mov byte [esp + 0x2c], 2
call sub.MFC42u.DLL_CString::Right
mov eax, dword [eax]
push eax
mov eax, dword [esp + 0x3c]
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x24], 1
call sub.MFC42u.DLL_CString::CString
test bl, bl
je 0x403b34
push 0x4212ac
lea ecx, [esp + 0x40]
call sub.MFC42u.DLL_CString::Find
mov ecx, eax
mov eax, dword [esp + 0x34]
sub ecx, eax
push ecx
mov edx, esp
mov dword [esp + 0x1c], esp
push ecx
push eax
push edx
lea ecx, [esp + 0x4c]
call sub.MFC42u.DLL_CString::Mid
mov ecx, dword [esp + 0x34]
call fcn.00403190
mov ax, word [esi]
add esi, 2
test ax, ax
je 0x403b4a
mov cx, word [esi]
add esi, 2
test cx, cx
jne 0x403b3f
cmp word [esi + 2], 0
mov byte [esp + 0x24], 0
lea ecx, [esp + 0x3c]
je 0x403b64
call sub.MFC42u.DLL_CString::CString
jmp 0x403aa5
call sub.MFC42u.DLL_CString::CString
mov edx, dword [esp + 0x14]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret 0x14
Function at 0x403bc0
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x416c18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebp
push esi
mov ebp, ecx
push edi
push ebp
lea ecx, [esp + 0x10]
mov esi, 1
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0
call sub.MFC42u.DLL_CString::CString_4
push 0x2e
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 1
call sub.MFC42u.DLL_CString::ReverseFind
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::Left
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 2
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 1
call sub.MFC42u.DLL_CString::CString
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [esp + 0xc]
mov eax, esi
push eax
push ecx
lea edx, [esp + 0x18]
push 0x4212b0
push edx
inc esi
call sub.MFC42u.DLL_CString::Format_1
mov eax, dword [esp + 0x20]
add esp, 0x10
push eax
call edi
cmp eax, 0xffffffff
jne 0x403c3f
mov ecx, dword [esp + 0x10]
mov eax, dword [ebp]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x20], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret

Function at 0x403cb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x403cd0
Capabilities:
Move file

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [esi]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x403cf8
push edi
mov ecx, esi
call fcn.00415d82
pop edi
mov eax, 1
pop esi
ret 4
pop edi
xor eax, eax
pop esi
ret 4
Function at 0x404f40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x416f2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::CString_4
mov eax, dword [ebp + 0x1d4]
mov dword [esp + 0x20], 0
mov ecx, dword [eax + 0x128]
mov edx, dword [eax + 0x114]
push ecx
push edx
lea eax, [esp + 0x14]
push str._sbakdevs.exe__Script___s_
push eax
call sub.MFC42u.DLL_CString::Format_1
push 0x98
call sub.MFC42u.DLL_operatornew
mov esi, eax
add esp, 0x14
mov dword [esp + 0x10], esi
test esi, esi
mov byte [esp + 0x20], 1
je 0x404fcd
push 0
push 0
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call sub.MFC42u.DLL_CString::CString_3
mov ecx, esi
call fcn.0040e3d0
mov esi, eax
jmp 0x404fcf
xor esi, esi
mov eax, dword [esi]
push 0
mov ecx, esi
mov byte [esp + 0x24], 0
mov word [esi + 8], 5
call dword [eax + 0x20]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x24]
mov edi, eax
neg edi
sbb edi, edi
inc edi
test esi, esi
je 0x405005
mov ecx, esi
call fcn.0040e530
push esi
call sub.MFC42u.DLL_operatordelete
add esp, 4
test edi, edi
je 0x405079
mov eax, dword [ebp + 0x1d4]
lea ecx, [esp + 0x10]
add eax, 0x114
push eax
call sub.MFC42u.DLL_CString::CString_3
push str.backup.ini
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 2
call sub.MFC42u.DLL_CString::operator_1
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edx, edx
cmp eax, 0xffffffff
setne dl
lea ecx, [esp + 0x10]
mov esi, edx
mov byte [esp + 0x20], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x18]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebp
add esp, 0x18
ret
Function at 0x405270
Capabilities:
Get disk information
Get disk size
Print debug messages

Disassembly:
sub esp, 0x4b4
push esi
mov esi, dword [esp + 0x4bc]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 6
ja case.0x40528a.2
jmp dword [eax*4 + 0x4053f8]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 8]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x4052b5
pop esi
add esp, 0x4b4
ret 4
mov eax, dword [esp + 8]
test eax, eax
ja 0x4052cb
cmp dword [esp + 4], 0x1d4c000
jbe case.0x40528a.0
mov eax, 1
pop esi
add esp, 0x4b4
ret 4
cmp eax, 2
je 0x4052eb
xor eax, eax
pop esi
add esp, 0x4b4
ret 4
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0x2b4]
push str.._s
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0x2b0]
push 0
push 0
push 3
push 0
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x405356
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0xb4]
push str.IsValidDrive___CreateFile_failed____d__n
push edx
call esi
add esp, 0xc
lea eax, [esp + 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
pop esi
add esp, 0x4b4
ret 4
lea ecx, [esp + 0xc]
push 0
push ecx
lea edx, [esp + 0x28]
push 0x90
push edx
push 0
push 0
push 0x70000
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4053df
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x15
jne 0x4053b2
lea eax, [esp + 0xb0]
push str.The_device_is_not_ready._n
push eax
call esi
add esp, 8
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
pop esi
add esp, 0x4b4
ret 4
push eax
lea edx, [esp + 0xb4]
push str.IsValidDrive___DeviceIoControl_failed____d__n
push edx
call esi
add esp, 0xc
lea eax, [esp + 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
pop esi
add esp, 0x4b4
ret 4
mov ecx, dword [esp + 0x28]
xor eax, eax
cmp ecx, 0xb
pop esi
sete al
add esp, 0x4b4
ret 4

Function at 0x4058f0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push edi
mov edi, ecx
push eax
mov ecx, dword [esi]
push ecx
mov ecx, edi
call fcn.004058b0
mov ecx, dword [esi + 4]
mov dword [esi], eax
and eax, 0xff
mov edx, dword [esi + 8]
add eax, ecx
mov ecx, edi
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
push eax
push edx
call fcn.004058b0
mov dword [esi + 8], eax
pop edi
pop esi
ret 8
Function at 0x407e30
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x118
mov eax, dword [esp + 0x11c]
push ebx
push ebp
push esi
and eax, 0xffff
xor esi, esi
test eax, 0xfffffffc
push edi
mov dword [esp + 0x14], esi
je 0x407e65
pop edi
pop esi
pop ebp
mov eax, 0x10
pop ebx
add esp, 0x118
ret 0x10
mov ebp, dword [esp + 0x130]
cmp ebp, esi
jne 0x407e82
pop edi
pop esi
pop ebp
mov eax, 0x10
pop ebx
add esp, 0x118
ret 0x10
mov ebx, dword [esp + 0x134]
cmp bx, 2
ja 0x407ea1
pop edi
pop esi
pop ebp
mov eax, 0x10
pop ebx
add esp, 0x118
ret 0x10
mov edi, dword [esp + 0x138]
cmp edi, esi
jne 0x407ebe
pop edi
pop esi
pop ebp
mov eax, 0x10
pop ebx
add esp, 0x118
ret 0x10
cmp bx, 3
jae 0x407ed6
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x118
ret 0x10
lea ecx, [esp + 0x18]
mov byte [ebp + 1], 0
push ecx
push 0x20019
push esi
push str.SOFTWAREMicrosoftMSSQLServerClientConnectTo
mov byte [ebp], 0
push 0x80000002
mov word [edi], si
mov byte [esp + 0x34], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407f6f
test byte [esp + 0x12c], 2
je 0x407f6f
mov ecx, dword [esp + 0x18]
push 0
push 0
mov edx, ebx
push 0
lea eax, [esp + 0x1c]
push 0
and edx, 0xffff
push eax
push ebp
sub edx, 2
push esi
push ecx
mov dword [esp + 0x30], edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
je 0x407f6f
test eax, eax
jne 0x407f67
mov edx, dword [esp + 0x10]
inc word [edi]
mov ecx, 0xffff
mov byte [edx + ebp], al
mov eax, dword [esp + 0x10]
sub ecx, eax
add ebx, ecx
inc esi
cmp bx, 2
lea ebp, [eax + ebp + 1]
ja 0x407f0f
jmp 0x407f6f
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], 0x104
test eax, eax
je 0x407f9d
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x20]
push edx
push ecx
push 0
push 0
push str.DSQUERY
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x407fca
mov edi, str.DBNMPNTW
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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]
mov edi, dword [esp + 0x138]
mov ecx, dword [esp + 0x1c]
mov byte [esp + ecx + 0x20], 0
mov al, byte [esp + 0x20]
cmp al, 0x2c
lea ecx, [esp + 0x20]
je 0x407fef
test al, al
je 0x407fef
cmp al, 0x20
je 0x407fef
mov al, byte [ecx + 1]
inc ecx
cmp al, 0x2c
jne 0x407fdf
lea edx, [esp + 0x20]
mov byte [ecx], 0
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
je 0x408033
push str.ConnectionServerEnum
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x408033
mov si, word [edi]
push edi
push ebx
push ebp
call eax
mov ecx, dword [esp + 0x20]
add esp, 0xc
or ecx, eax
add word [edi], si
mov esi, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret 0x10
Function at 0x409ab0
Capabilities:
Connect network resource

Disassembly:
sub esp, 0x228
mov eax, dword [esp + 0x22c]
push esi
push eax
lea ecx, [esp + 0x28]
push str._s_admin_
push ecx
xor esi, esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 4]
lea edx, [esp + 0x24]
mov dword [esp + 4], 2
push esi
push esi
push esi
push eax
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 3
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], esi
call sub.MPR.dll_WNetAddConnection2W
test eax, eax
jne 0x409b30
push esi
lea ecx, [esp + 0x28]
push esi
push ecx
call sub.MPR.dll_WNetCancelConnection2W
mov eax, 1
pop esi
add esp, 0x228
ret 4
mov eax, esi
pop esi
add esp, 0x228
ret 4

Function at 0x409b40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x218
push ebx
push esi
push edi
mov edi, dword [esp + 0x228]
xor ebx, ebx
test edi, edi
jne 0x409b60
mov dword [esp + 0xc], 0x80000002
jmp 0x409b71
lea eax, [esp + 0xc]
push eax
push 0x80000002
push edi
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x409bd5
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
push str.PROCESSOR_ARCHITECTURE
push eax
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409bd5
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x230]
call fcn.00415d82
mov ebx, 1
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x409be6
push eax
call esi
test edi, edi
jne 0x409bf5
mov eax, dword [esp + 0xc]
test eax, eax
je 0x409bf5
push eax
call esi
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x218
ret 8