joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407b40
Capabilities:
Connect network resource

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

Function at 0x407c00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x21c
mov eax, dword [0x427b3c]
push ebx
mov ebx, dword [esp + 0x228]
push esi
mov esi, dword [esp + 0x228]
push edi
xor edi, edi
test esi, esi
mov dword [esp + 0x224], eax
jne 0x407c33
mov dword [esp + 0xc], 0x80000002
jmp 0x407c44
lea eax, [esp + 0xc]
push eax
push 0x80000002
push esi
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 0x407ca4
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
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 0x407ca4
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebx
call dword [0x41a42c]
mov edi, 1
mov eax, dword [esp + 0x10]
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x407cb5
push eax
call ebx
test esi, esi
jne 0x407cc4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x407cc4
push eax
call ebx
mov ecx, dword [esp + 0x224]
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.00416740
add esp, 0x21c
ret 8
Function at 0x407cf0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x50
mov eax, dword [0x427b3c]
push ebx
mov ebx, dword [esp + 0x58]
push esi
xor esi, esi
test ebx, ebx
mov dword [esp + 0x54], eax
push edi
jne 0x407d13
mov dword [esp + 0xc], 0x80000002
jmp 0x407d24
lea eax, [esp + 0xc]
push eax
push 0x80000002
push ebx
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push str.SoftwareMicrosoftMSSQLServerMSSQLServerCurrentVersion
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x407df5
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push str.CurrentVersion
push eax
mov dword [esp + 0x2c], 0x1e
mov dword [esp + 0x30], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407df5
mov ax, word [esp + 0x1c]
cmp ax, 0x37
jne 0x407d9b
mov ecx, 0x30
cmp word [esp + 0x20], cx
jne 0x407df3
cmp word [esp + 0x22], cx
jne 0x407df3
mov esi, 3
jmp 0x407df5
cmp ax, 0x38
jne 0x407dbb
mov ecx, 0x30
cmp word [esp + 0x20], cx
jne 0x407df3
cmp word [esp + 0x22], cx
jne 0x407df3
mov esi, 4
jmp 0x407df5
cmp ax, 0x36
jne 0x407df3
mov ax, word [esp + 0x20]
cmp ax, 0x35
jne 0x407ddb
cmp word [esp + 0x22], 0x30
jne 0x407df3
mov esi, 2
jmp 0x407df5
mov ecx, 0x30
cmp ax, cx
jne 0x407df3
cmp word [esp + 0x22], cx
jne 0x407df3
mov esi, 1
jmp 0x407df5
xor esi, esi
mov eax, dword [esp + 0x10]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x407e06
push eax
call edi
test ebx, ebx
jne 0x407e15
mov eax, dword [esp + 0xc]
test eax, eax
je 0x407e15
push eax
call edi
mov ecx, dword [esp + 0x58]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.00416740
add esp, 0x50
ret 4

Function at 0x407e30
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 0x407e4a
mov dword [esp + 0x20], 0x80000002
jmp 0x407e5b
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 0x407eb1
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x20]
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]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x407ec2
push eax
call edi
test ebx, ebx
jne 0x407ed1
mov eax, dword [esp + 0x20]
test eax, eax
je 0x407ed1
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x4081d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x51c
mov eax, dword [0x427b3c]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x524], eax
xor esi, esi
mov word [esp + 0x20], si
xor eax, eax
mov ecx, 0x3f
lea edi, [esp + 0x22]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 1
stosw word es:[edi], ax
mov dword [esp + 0x1c], 0x80
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT]
lea eax, [esp + 0x10]
push eax
push 0x80000002
push ebx
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x4082bf
mov edx, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea ecx, [esp + 0xc]
push ecx
push str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
push edx
call ebx
test eax, eax
jne 0x4082bf
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push edx
push esi
push str._VIRTUAL_SERVER_NAME_
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4082bf
mov ecx, dword [esp + 0xc]
push ecx
call edi
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x124]
push str.SYSTEMCurrentControlSetServicesMSSQLServer__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x124]
push edx
push eax
call ebx
mov esi, eax
neg esi
sbb esi, esi
inc esi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4082ca
push eax
call edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4082d5
push eax
call edi
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov ecx, dword [esp + 0x524]
mov eax, esi
call fcn.00416740
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x408300
Capabilities:
Terminate process

Disassembly:
sub esp, 8
push edi
mov edi, dword [sym.imp.USER32.dll_FindWindowW]
push 0
push str.SQLManagerApplicationClass
mov dword [esp + 0x10], 0
call edi
test eax, eax
je 0x40835a
push esi
lea ecx, [esp + 8]
push ecx
push eax
mov dword [esp + 0x10], 0
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 0x408359
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
push 0
push str.SQL_STOPLITEGJWnd
call edi
test eax, eax
pop edi
je 0x40837e
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 0x40a250
Capabilities:
Reference sql statements

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417f4e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
mov eax, dword [0x427b3c]
push ebx
push esi
push edi
mov ebx, ecx
mov ecx, 0x22
mov esi, str.SELECT_sum_size__FROM_master..sysusages_WHERE_dbid__db_id_tempdb_
lea edi, [ebp - 0xa0]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0xac], ebx
movsw word es:[edi], word [esi]
call sub.MFC71U.DLL_CCtrlView::CCtrlView
xor esi, esi
lea ecx, [ebp - 0xa4]
mov dword [ebp - 4], esi
mov dword [ebp - 0xb4], esi
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT]
mov eax, dword [ebx + 0x328]
mov ecx, dword [eax + 0x100]
mov edx, dword [eax + 0x108]
push ecx
push edx
lea eax, [ebp - 0xa4]
push str.driverSQL_Server_UIDsa_PWD_s_server_s_DATABASEmaster_
push eax
mov byte [ebp - 4], 2
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format]
mov ecx, dword [ebp - 0xa4]
add esp, 0x10
push 8
push ecx
lea ecx, [ebp - 0x110]
call sub.MFC71U.DLL_CWinApp::OpenDocumentFile
cmp eax, esi
je 0x40a3af
lea edx, [ebp - 0x110]
push edx
lea ecx, [ebp - 0x228]
call fcn.00405860
push 4
lea eax, [ebp - 0xa0]
push eax
push 2
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 3
call sub.MFC71U.DLL_CMonikerFile::Open
cmp eax, esi
je 0x40a35a
cmp dword [ebp - 0x160], esi
jne 0x40a34f
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.MSVCR71.dll__wtol]
add esp, 4
mov esi, eax
lea ecx, [ebp - 0x228]
call sub.MFC71U.DLL_COleStreamFile::Close
lea ecx, [ebp - 0x110]
call sub.MFC71U.DLL_CCachedDataPathProperty::Close
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [ebp - 0x228]
call fcn.00415dc6
lea ecx, [ebp - 0xa4]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
xor edx, edx
cmp esi, 0x1400
setge dl
lea ecx, [ebp - 0x110]
mov dword [ebp - 4], 0xffffffff
mov esi, edx
call fcn.00415eee
mov eax, esi
jmp 0x40a3cf
lea ecx, [ebp - 0xa4]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [ebp - 0x110]
mov dword [ebp - 4], 0xffffffff
call fcn.00415eee
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.00416740
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a460
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x417f6c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
mov eax, dword [0x427b3c]
mov dword [esp + 0x21c], eax
mov eax, dword [ecx + 0x328]
push esi
mov esi, dword [esp + 0x234]
push edi
add eax, 0x100
push eax
lea ecx, [esp + 0xc]
xor edi, edi
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0xc]
push ecx
push 0x80000002
lea ecx, [esp + 0x10]
mov dword [esp + 0x238], edi
call dword [sym.imp.MFC71U.DLL_CTypeLibCache::Lock]
push eax
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_CDC::ReleaseAttribDC]
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 0x40a535
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
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 0x40a535
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call dword [0x41a42c]
mov edi, 1
mov eax, dword [esp + 0x10]
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40a546
push eax
call esi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40a551
push eax
call esi
lea ecx, [esp + 8]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov ecx, dword [esp + 0x228]
mov eax, edi
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x220]
pop esi
call fcn.00416740
add esp, 0x22c
ret 4
Function at 0x40a910
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x418029
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]
push eax
push str.SoftwareMicrosoftMSSQLServerMSSQLServer
push 0x80000002
mov esi, ecx
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40a9fe
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push str.LoginMode
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a9fe
cmp dword [esp + 0x14], 1
jne 0x40a9fe
lea ecx, [esp + 8]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT]
mov edx, dword [esi + 0x328]
mov eax, dword [edx + 0x104]
push eax
lea ecx, [esp + 0xc]
push 0x825
push ecx
mov dword [esp + 0x2c], 0
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::Fork]
mov edx, dword [esp + 0x14]
add esp, 0xc
push 0
push 0
push edx
call sub.MFC71U.DLL_AfxMessageBox
lea ecx, [esi + 0x280]
call sub.MFC71U.DLL_COleControlSite::SetFocus
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
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 0x40aa0d
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 0x40aa30
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x41804c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
mov eax, dword [0x427b3c]
push esi
push edi
mov esi, ecx
mov edi, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x220], eax
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], edi
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT]
mov eax, dword [esi + 0x328]
mov ecx, dword [eax + 0x100]
push ecx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x234], 0
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x10]
push eax
push 0x80000002
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
test eax, eax
jne 0x40aba0
mov eax, dword [esp + 0x234]
lea edx, [esp + 8]
cmp eax, edi
mov eax, dword [esp + 0x10]
push edx
jne 0x40ab35
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
push str.SoftwareMicrosoftMSSQLServ65MSSQLServer
push eax
call edi
test eax, eax
jne 0x40ab1e
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x24]
push eax
push 0
push str.LoginMode
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40aba0
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x40ab72
jmp 0x40aba0
mov eax, dword [esp + 0x10]
lea edx, [esp + 8]
push edx
push str.SoftwareMicrosoftMSSQLServ60MSSQLServer
push eax
call edi
test eax, eax
jne 0x40aba0
jmp 0x40aae8
push str.SoftwareMicrosoftMSSQLServerMSSQLServer
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40aba0
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x24]
push eax
push 0
push str.LoginMode
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40aba0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40aba0
mov edx, dword [esi + 0x328]
mov eax, dword [edx + 0x100]
push eax
lea ecx, [esp + 0x1c]
push 0x82b
push ecx
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::Fork]
mov edx, dword [esp + 0x24]
add esp, 0xc
push 0
push 0x40
push edx
call sub.MFC71U.DLL_AfxMessageBox
mov eax, dword [esp + 8]
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40abb1
push eax
call esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40abbc
push eax
call esi
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov ecx, dword [esp + 0x224]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x21c]
pop esi
call fcn.00416740
add esp, 0x228
ret 4
Function at 0x40eaa0
Capabilities:
Get file size
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1018
call fcn.00416770
mov eax, dword [0x427b3c]
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push esi
mov dword [esp + 0x1024], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
je 0x40eb7a
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor eax, eax
mov ecx, pe_nt_image_headers32
lea edi, [esp + 0x18]
push eax
rep stosd dword es:[edi], eax
call dword [sym.imp.MSVCR71.dll__time64]
add esp, 4
mov dword [esp + 0xc], eax
push str._A___B__d___Y____H:_M:_S
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], edx
call fcn.00407ef0
mov ecx, dword [eax]
push ecx
lea edx, [esp + 0x1c]
push str._r_n_r_n__s__r_n_r_n
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [esp + 8]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
push 0
push 0
push 0x800
lea eax, [esp + 0x824]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x820]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea ecx, [esp + 0x824]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x101c]
call fcn.00416740
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40ece0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x418678
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], 0x41da00
mov dword [esi + 4], edi
mov word [esi + 8], di
mov dword [esi + 0xc], edi
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT]
lea ecx, [esi + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT]
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 dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_3]
mov ebp, dword [esp + 0x2c]
push ebp
lea ecx, [esi + 0x28]
mov byte [esp + 0x20], 3
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_3]
lea eax, [esp + 0x24]
push eax
lea ecx, [esi + 0x90]
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 dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_1]
push ebp
push ebx
mov ecx, esi
mov byte [esp + 0x24], 5
call fcn.0040ec60
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x40edc0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4186a2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
xor esi, esi
mov dword [esp + 0xc], esi
lea ecx, [esp + 4]
mov dword [esp + 0x18], esi
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT]
lea eax, [esp + 8]
push eax
push 0x104
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 1
mov dword [esp + 0x10], 0x104
mov dword [esp + 0x14], 2
call dword [sym.imp.MFC71U.DLL_CRecordset::GetBoundParamIndex]
push eax
lea ecx, [esp + 0x14]
push ecx
push esi
lea ecx, [esp + 0x34]
call dword [sym.imp.MFC71U.DLL_CTypeLibCache::Lock]
mov edx, dword [esp + 0x38]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC71U.DLL_CDC::ReleaseAttribDC]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call dword [sym.imp.MFC71U.DLL_CDC::ReleaseAttribDC]
mov esi, dword [esp + 0x20]
lea eax, [esp + 4]
push eax
mov ecx, esi
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 4]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc

Function at 0x40f330
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebx
mov ebx, dword [esp + 0xc]
test ebx, ebx
push edi
mov edi, ecx
je 0x40f413
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x40f413
mov eax, dword [edi + 0x20]
test eax, eax
je 0x40f413
push ebp
push 0x5c
push ebx
call dword [sym.imp.MSVCR71.dll_wcsrchr]
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x40f371
pop ebp
pop edi
pop ebx
ret 8
push esi
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 0x40f3ba
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x40f3c3
lea ecx, [esp + 0x18]
push ecx
push eax
mov dword [esp + 0x20], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x40f3cb
mov edx, dword [edi + 0xc]
push edx
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
ret 8
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, ebp
sub esi, ebx
sar esi, 1
push ebx
mov ecx, edi
mov word [ebx + esi*2], 0
call fcn.0040f0b0
test eax, eax
jne 0x40f3f9
mov ecx, edi
mov word [ebx + esi*2], 0x5c
call fcn.0040f250
pop esi
pop ebp
pop edi
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 esi
pop ebp
pop edi
mov eax, 1
pop ebx
ret 8
pop edi
xor eax, eax
pop ebx
ret 8
Function at 0x40f610
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
mov esi, ecx
mov eax, dword [esi + 4]
xor ebx, ebx
cmp eax, ebx
push edi
mov edi, 0x4fb0
je 0x40f638
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 0x40f666
push str.ntdll.dll
push 1
call fcn.004153e0
add esp, 8
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x40f671
mov dword [esi + 8], ebx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
push str.NtQuerySystemInformation
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
mov ebx, eax
mov eax, dword [esi + 4]
push 0x4fb0
push eax
push 5
call ebx
cmp eax, 0xc0000004
je 0x40f6ce
test eax, eax
jge 0x40f6dd
push str.CRunningProcesses::Refresh___Growing_buffer__n
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 0x40f669
push 0
push edi
mov edx, eax
push edx
push 5
mov dword [esi + 4], eax
call ebx
cmp eax, 0xc0000004
jne 0x40f695
pop edi
mov dword [esi + 8], 0
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
push eax
mov dword [esi + 8], 1
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret