joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409ce0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x48
push ebx
mov ebx, dword [esp + 0x50]
push esi
xor esi, esi
test ebx, ebx
push edi
jne 0x409cfa
mov dword [esp + 0x58], 0x80000002
jmp 0x409d0b
lea eax, [esp + 0x58]
push eax
push 0x80000002
push ebx
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov edx, dword [esp + 0x58]
lea ecx, [esp + 0xc]
push ecx
push str.SoftwareMicrosoftMSSQLServerMSSQLServerCurrentVersion
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x409ddc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push str.CurrentVersion
push eax
mov dword [esp + 0x28], 0x1e
mov dword [esp + 0x2c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409ddc
mov ax, word [esp + 0x18]
cmp ax, 0x37
jne 0x409d82
mov ecx, 0x30
cmp word [esp + 0x1c], cx
jne 0x409dda
cmp word [esp + 0x1e], cx
jne 0x409dda
mov esi, 3
jmp 0x409ddc
cmp ax, 0x38
jne 0x409da2
mov ecx, 0x30
cmp word [esp + 0x1c], cx
jne 0x409dda
cmp word [esp + 0x1e], cx
jne 0x409dda
mov esi, 4
jmp 0x409ddc
cmp ax, 0x36
jne 0x409dda
mov ax, word [esp + 0x1c]
cmp ax, 0x35
jne 0x409dc2
cmp word [esp + 0x1e], 0x30
jne 0x409dda
mov esi, 2
jmp 0x409ddc
mov ecx, 0x30
cmp ax, cx
jne 0x409dda
cmp word [esp + 0x1e], cx
jne 0x409dda
mov esi, 1
jmp 0x409ddc
xor esi, esi
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x409ded
push eax
call edi
test ebx, ebx
jne 0x409dfc
mov eax, dword [esp + 0x58]
test eax, eax
je 0x409dfc
push eax
call edi
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x48
ret 4

Function at 0x40a240
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push esi
xor esi, esi
test ebx, ebx
push edi
jne 0x40a25a
mov dword [esp + 0x20], 0x80000002
jmp 0x40a26b
lea eax, [esp + 0x20]
push eax
push 0x80000002
push ebx
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push ecx
push str.SYSTEMCurrentControlSetServicesLanmanServerParameters
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40a2c1
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
push str.AutoShareServer
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x40a2d2
push eax
call edi
test ebx, ebx
jne 0x40a2e1
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40a2e1
push eax
call edi
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x40b6a0
Capabilities:
Check if file exists
Get file attributes
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x41798b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push 0x10
call sub.MFC42u.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
xor edi, edi
cmp esi, edi
mov dword [esp + 0x228], edi
je 0x40b6fd
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.SOFTWAREMicrosoftMSSQLserv80Setup
call sub.MFC42u.DLL_CString::CString_1
push 0x80000002
mov ecx, esi
call fcn.0040ec20
mov edi, eax
test edi, edi
mov dword [esp + 0x228], 0xffffffff
mov ebx, edi
jne 0x40b715
xor eax, eax
jmp 0x40b8b1
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.SQLPath
call sub.MFC42u.DLL_CString::CString_1
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.0040ed20
lea esi, [ebp + 0x298]
push eax
mov ecx, esi
mov dword [esp + 0x22c], 1
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esi]
cmp dword [ecx - 8], 4
jge 0x40b812
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 4]
push 0x10
call sub.MFC42u.DLL_operatornew
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
test edi, edi
mov dword [esp + 0x228], 2
je 0x40b7b4
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.SoftwareMicrosoftMSSQLServerSetup
call sub.MFC42u.DLL_CString::CString_1
push 0x80000002
mov ecx, edi
call fcn.0040ec20
mov edi, eax
jmp 0x40b7b6
xor edi, edi
test edi, edi
mov dword [esp + 0x228], 0xffffffff
mov ebx, edi
jne 0x40b7ce
xor eax, eax
jmp 0x40b8b1
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.SQLPath
call sub.MFC42u.DLL_CString::CString_1
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.0040ed20
push eax
mov ecx, esi
mov dword [esp + 0x22c], 3
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x14]
mov dword [esp + 0x228], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi]
lea ecx, [esp + 0x18]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
jne 0x40b84c
push str.GetShortPathName_failed__using_m_strSphinxPath_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x40b858
lea edx, [esp + 0x18]
mov ecx, esi
push edx
call fcn.00415d82
mov ecx, dword [ebp + 0x290]
push esi
call fcn.00414660
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push esi
call sub.MFC42u.DLL_CString::CString_3
mov ecx, dword [ebp + 0x290]
push 0xb9
mov dword [esp + 0x234], 0xffffffff
call fcn.004018c0
mov ecx, eax
call fcn.00403f40
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax + 4]
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x21c
ret
Function at 0x40c1b0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417abe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x22
mov esi, str.SELECT_sum_size__FROM_master..sysusages_WHERE_dbid__db_id_tempdb_
lea edi, [ebp - 0x224]
mov dword [ebp - 0x10], esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x1c], ebx
movsw word es:[edi], word [esi]
call sub.MFC42u.DLL_CDatabase::CDatabase
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x24], 0
xor esi, esi
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString_4
mov eax, dword [ebx + 0x290]
mov byte [ebp - 4], 2
mov ecx, dword [eax + 0x120]
mov edx, dword [eax + 0x128]
push ecx
push edx
lea eax, [ebp - 0x14]
push str.driverSQL_Server_UIDsa_PWD_s_server_s_DATABASEmaster_
push eax
call sub.MFC42u.DLL_CString::Format_1
mov ecx, dword [ebp - 0x14]
add esp, 0x10
push 8
push ecx
lea ecx, [ebp - 0x80]
call sub.MFC42u.DLL_CDatabase::OpenEx
test eax, eax
je 0x40c305
lea edx, [ebp - 0x80]
lea ecx, [ebp - 0x198]
push edx
call fcn.004055b0
lea eax, [ebp - 0x224]
push 4
push eax
push 2
lea ecx, [ebp - 0x198]
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CRecordset::Open
test eax, eax
je 0x40c2a4
mov eax, dword [ebp - 0xd0]
test eax, eax
jne 0x40c299
mov ecx, dword [ebp - 0x88]
push ecx
call dword [sym.imp.MSVCRT.dll__wtol]
add esp, 4
mov esi, eax
lea ecx, [ebp - 0x198]
call sub.MFC42u.DLL_CRecordset::Close
lea ecx, [ebp - 0x80]
call sub.MFC42u.DLL_CDatabase::Close
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x198]
mov byte [ebp - 4], 2
call fcn.00415e4e
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
xor edx, edx
cmp esi, 0x1400
setge dl
lea ecx, [ebp - 0x80]
mov esi, edx
mov dword [ebp - 4], 0xffffffff
call fcn.00415ea2
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x80]
mov dword [ebp - 4], 0xffffffff
call fcn.00415ea2
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c800
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x417b2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
mov eax, dword [ecx + 0x290]
push esi
add eax, 0x120
push edi
push eax
lea ecx, [esp + 0xc]
xor edi, edi
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [esp + 0xc]
mov dword [esp + 0x22c], edi
push ecx
push 0x80000002
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::LockBuffer
push eax
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::ReleaseBuffer
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push str.SoftwareMicrosoftMSSQLServerMSSQLServerParameters
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40c8c3
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push eax
push edi
push str.SQLArg0
push ecx
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c8c3
mov ecx, dword [esp + 0x234]
lea edx, [esp + 0x20]
push edx
call fcn.00415d82
mov edi, 1
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x40c8d4
push eax
call esi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40c8df
push eax
call esi
lea ecx, [esp + 8]
mov dword [esp + 0x22c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x224]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x228
ret 4

Function at 0x40ccc0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x417be8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, 4
push esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 4]
mov esi, ecx
push eax
push str.SoftwareMicrosoftMSSQLServerMSSQLServer
push 0x80000002
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40cdb7
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push str.LoginMode
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40cdb7
cmp dword [esp + 0x14], 1
jne 0x40cdb7
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::CString_4
mov edx, dword [esi + 0x290]
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0
mov eax, dword [edx + 0x124]
push eax
push 0x825
push ecx
call sub.MFC42u.DLL_CString::Format
mov edx, dword [esp + 0x14]
add esp, 0xc
push 0
push 0
push edx
call sub.MFC42u.DLL_AfxMessageBox
lea ecx, [esi + 0x210]
call sub.MFC42u.DLL_CWnd::SetFocus
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov eax, 1
pop esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov eax, dword [esp + 4]
test eax, eax
je 0x40cdc6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x40cde0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x417c0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push esi
push edi
mov esi, ecx
mov edi, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], edi
call sub.MFC42u.DLL_CString::CString_4
mov eax, dword [esi + 0x290]
lea ecx, [esp + 0x20]
mov dword [esp + 0x228], 0
mov eax, dword [eax + 0x120]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x20]
push edx
push 0x80000002
push eax
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
test eax, eax
jne 0x40cf46
mov eax, dword [esp + 0x230]
lea ecx, [esp + 8]
cmp eax, edi
push ecx
jne 0x40ced8
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
push str.SoftwareMicrosoftMSSQLServ65MSSQLServer
push edx
call edi
test eax, eax
jne 0x40cec1
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x20]
push ecx
push edx
push 0
push str.LoginMode
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40cf46
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x40cf19
jmp 0x40cf46
mov edx, dword [esp + 0x10]
lea ecx, [esp + 8]
push ecx
push str.SoftwareMicrosoftMSSQLServ60MSSQLServer
push edx
call edi
test eax, eax
jne 0x40cf46
jmp 0x40ce8b
mov edx, dword [esp + 0x14]
push str.SoftwareMicrosoftMSSQLServerMSSQLServer
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40cf46
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x20]
push ecx
push edx
push 0
push str.LoginMode
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40cf46
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40cf46
mov ecx, dword [esi + 0x290]
lea eax, [esp + 0x18]
mov edx, dword [ecx + 0x120]
push edx
push 0x82b
push eax
call sub.MFC42u.DLL_CString::Format
mov ecx, dword [esp + 0x24]
add esp, 0xc
push 0
push 0x40
push ecx
call sub.MFC42u.DLL_AfxMessageBox
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x40cf57
push eax
call esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40cf62
push eax
call esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x228], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x220]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x224
ret 4
Function at 0x40cf90
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x514
push ebx
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x22]
mov word [esp + 0x20], 0
mov dword [esp + 0x10], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 1
mov dword [esp + 0x1c], 0x80
stosw word es:[edi], ax
xor esi, esi
call sub.MFC42u.DLL_CString::CString_4
mov ecx, dword [esp + 0x524]
lea eax, [esp + 0x10]
push eax
push 0x80000002
push ecx
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40d078
mov eax, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea edx, [esp + 0xc]
push edx
push str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
push eax
call ebx
test eax, eax
jne 0x40d078
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push eax
push esi
push str._VIRTUAL_SERVER_NAME_
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d078
mov edx, dword [esp + 0xc]
push edx
call edi
lea eax, [esp + 0x20]
lea ecx, [esp + 0x120]
push eax
push str.SYSTEMCurrentControlSetServicesMSSQLServer__s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0xc]
lea eax, [esp + 0x120]
push edx
push eax
push ecx
call ebx
mov esi, eax
neg esi
sbb esi, esi
inc esi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40d083
push eax
call edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40d08e
push eax
call edi
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::CString
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x514
ret 4

Function at 0x40d0b0
Capabilities:
Terminate process

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_FindWindowW]
push 0
push str.SQLManagerApplicationClass
mov dword [esp + 0x14], 0
call edi
test eax, eax
je 0x40d109
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [esp + 8]
push edx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40d109
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push str.SQL_STOPLITEGJWnd
call edi
pop edi
pop esi
test eax, eax
je 0x40d12e
lea ecx, [esp + 4]
push ecx
push 0x64
push 2
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
add esp, 8
ret
Function at 0x40e3d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x417d82
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
xor edi, edi
lea ecx, [esi + 0x10]
mov dword [esp + 0x1c], edi
mov dword [esi + 4], edi
mov word [esi + 8], di
mov dword [esi + 0xc], edi
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esi + 0x14]
mov byte [esp + 0x1c], 1
call sub.MFC42u.DLL_CString::CString_4
mov ebx, dword [esp + 0x28]
or eax, 0xffffffff
push ebx
lea ecx, [esi + 0x24]
mov byte [esp + 0x20], 2
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
call sub.MFC42u.DLL_CString::CString_1
mov ebp, dword [esp + 0x2c]
lea ecx, [esi + 0x28]
push ebp
mov byte [esp + 0x20], 3
call sub.MFC42u.DLL_CString::CString_1
lea eax, [esp + 0x24]
lea ecx, [esi + 0x90]
push eax
mov byte [esp + 0x20], 4
mov dword [esi + 0x2c], 0xffffffff
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x8c], edi
call sub.MFC42u.DLL_CString::CString_3
push ebp
push ebx
mov ecx, esi
mov byte [esp + 0x24], 5
mov dword [esi], 0x41a4c0
call fcn.0040e4b0
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc

Function at 0x40eb30
Capabilities:
Get file size
Write file on windows

Disassembly:
mov eax, 0x100c
call fcn.00416290
push esi
mov esi, dword [esp + 0x1014]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
je 0x40ebf8
push edi
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
call sub.MFC42u.DLL_CTime::GetTickCount
mov ecx, dword [eax]
lea edx, [esp + 8]
mov dword [esp + 0xc], ecx
push str._A___B__d___Y____H:_M:_S
push edx
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CTime::Format
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push eax
push str._r_n_r_n__s__r_n_r_n
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::CString
push 0
push 0
lea edx, [esp + 0x81c]
push 0x800
push edx
lea eax, [esp + 0x24]
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [esp + 0x10]
push 0
lea edx, [esp + 0x818]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x820]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
add esp, 0x100c
ret 4
Function at 0x40ee10
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x417ea7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov dword [esp + 0x10], 0
lea ecx, [esp + 4]
mov dword [esp + 0x1c], 1
call sub.MFC42u.DLL_CString::CString_4
mov eax, 2
lea ecx, [esp + 4]
mov byte [esp + 0x1c], al
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x104
push eax
push 0x104
call sub.MFC42u.DLL_CString::GetBuffer
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
lea ecx, [esp + 0x38]
call sub.MFC42u.DLL_CString::LockBuffer
mov edx, dword [esp + 0x3c]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [esp + 0x2c]
call sub.MFC42u.DLL_CString::ReleaseBuffer
push 0xffffffffffffffff
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::ReleaseBuffer
mov esi, dword [esp + 0x24]
lea eax, [esp + 4]
push eax
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_3
mov dword [esp + 0x10], 1
lea ecx, [esp + 4]
mov byte [esp + 0x1c], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 0
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc

Function at 0x40efc0
Capabilities:
Get hostname

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
mov edi, ecx
test ebx, ebx
je 0x40f036
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x40f036
mov eax, dword [edi + 0x20]
test eax, eax
je 0x40f036
push 0x5c
push ebx
call dword [sym.imp.MSVCRT.dll_wcsrchr]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x40f036
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x20
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [edi + 0xc], eax
je 0x40f036
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x40f03f
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0x10
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x40f047
mov edx, dword [edi + 0xc]
push edx
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, ebp
push ebx
sub esi, ebx
mov ecx, edi
sar esi, 1
mov word [ebx + esi*2], 0
call fcn.0040f130
test eax, eax
jne 0x40f075
mov ecx, edi
mov word [ebx + esi*2], 0x5c
call fcn.0040f090
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
mov eax, dword [edi + 0x10]
add ebp, 2
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 8
Function at 0x40f490
Capabilities:
Print debug messages

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi + 4]
mov edi, 0x4fb0
cmp eax, ebx
jne 0x40f4b0
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 8
jmp 0x40f4c8
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
push ebx
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x4fb0
push 8
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [esi + 4], eax
je 0x40f57a
push str.ntdll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x40f57a
push str.NtQuerySystemInformation
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
mov eax, dword [esi + 4]
push 0
push 0x4fb0
push eax
push 5
call ebx
cmp eax, 0xc0000004
je 0x40f54e
test eax, eax
jge 0x40f55d
push 0x423828
add edi, edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esi + 4]
push edi
push ecx
push 8
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x40f57d
push 0
push edi
push eax
push 5
mov dword [esi + 4], eax
call ebx
cmp eax, 0xc0000004
jne 0x40f517
mov dword [esi + 8], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov edx, dword [esp + 0x10]
mov dword [esi + 8], 1
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
mov dword [esi + 8], ebx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x411f70
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x411f7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push 0
lea ecx, [esp + 0xc]
push 0
push ecx
push 0x400
push eax
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov edx, dword [esp + 8]
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push edx
add eax, 0x40
push str.CTape:_t_s_n
push eax
call dword [sym.imp.MSVCRT.dll_fwprintf]
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add esp, 0xc
push ecx
call esi
push 0x42394c
call esi
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
ret 4