joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426afe
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
mov eax, 0x442c08
call fcn.0043e4e0
sub esp, 0x370
push esi
lea eax, [ebp - 0x10]
push edi
push eax
push str.CLSID0002DF01_0000_0000_C000_000000000046LocalServer32
mov esi, ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x426b36
and dword [0x4558e8], 0
jmp 0x426c28
lea eax, [ebp - 0x14]
xor edi, edi
push eax
lea eax, [ebp - 0x174]
push eax
push edi
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push dword [ebp - 0x10]
test eax, eax
je 0x426b63
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x426bd0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x174]
push eax
lea eax, [ebp - 0x37c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x37c]
push str._about:blank
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x44
lea eax, [ebp - 0x70]
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x70], 0x44
mov word [ebp - 0x40], di
push eax
lea eax, [ebp - 0x70]
push eax
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x37c]
push edi
push eax
push edi
mov dword [ebp - 0x44], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x426bd8
mov dword [0x4558e8], edi
jmp 0x426c28
mov eax, dword [ebp - 0x24]
mov byte [esi + 0x1a19], 1
mov dword [esi + 0x2734], eax
lea eax, [ebp - 0x1c]
push eax
call sub.MFC42.DLL_CTime::GetTickCount
mov eax, dword [eax]
push 0x448ffc
mov dword [esi + 0x17d8], eax
lea eax, [ebp - 0x18]
push 0x4558c8
push eax
call sub.MFC42.DLL_operator_4
push dword [eax]
lea ecx, [esi + 0x16b8]
mov dword [ebp - 4], edi
call fcn.0040bc5c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4275df
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x442d78
call fcn.0043e4e0
sub esp, 0x20
push ebx
push esi
push edi
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_4
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x2c]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CTime::GetAsSystemTime
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004290db
mov esi, eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00429098
mov edi, eax
lea eax, [ebp + 0xc]
push 0xe05c
push eax
mov byte [ebp - 4], 2
call fcn.00429029
add esp, 0x18
push dword [ebp + 0x14]
mov eax, dword [eax]
mov byte [ebp - 4], 3
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push dword [esi]
push dword [edi]
push eax
lea eax, [ebp - 0x10]
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x1c
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4276d4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x1c]
push ebx
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
jne 0x4276c2
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4276d4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call fcn.0042aafa
pop ecx
push 1
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4279c9
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4f0
push ebx
push esi
push edi
lea eax, [ebp - 0x10c]
push dword [0x4558c8]
mov ebx, ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x10c]
push 0x448f98
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor esi, esi
lea eax, [ebp - 0x10c]
push esi
push esi
push 3
push esi
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x427a51
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, 0x3e4
cmp eax, ecx
je 0x427a32
push edi
jmp 0x427a4b
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x4f0]
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
push edi
jne 0x427a58
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2e0], esi
je 0x427a51
push ecx
mov edi, esp
push ecx
mov ecx, esp
push esi
push esi
push esi
push dword [ebp - 0x2d8]
call fcn.00427a9f
push edi
lea ecx, [ebx + 0x1a0c]
call fcn.00427ac2
lea eax, [ebp - 4]
push eax
call sub.MFC42.DLL_CTime::GetTickCount
mov ecx, eax
call fcn.0042387b
test eax, eax
je 0x427a51
push 1
pop eax
jmp 0x427a53
Function at 0x427ad1
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x442de0
call fcn.0043e4e0
sub esp, 0x160
push esi
xor esi, esi
push esi
lea eax, [ebp - 0x16c]
push 1
push eax
call fcn.0042a660
add esp, 0xc
lea eax, [ebp - 0x16c]
lea ecx, [ebp - 0x14]
push eax
call sub.MFC42.DLL_CString::CString_3
push 0x454cc4
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], esi
push eax
call sub.MFC42.DLL_operator_4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
push 0x44
lea eax, [ebp - 0x68]
push esi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x24]
mov dword [ebp - 0x68], 0x44
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x427b58
push 1
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x42817c
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
push ebx
push edi
call fcn.00428249
lea eax, [ebp - 0x260]
push 0x104
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [ebp + 8]
cmp byte [edi], bl
je 0x4281dc
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x15c]
push 0x4541c8
push eax
call esi
lea eax, [ebp - 0x15c]
push edi
push eax
call esi
pop esi
push ebx
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.0042a6aa
lea eax, [ebp - 0x44]
push 0x2e
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 0x14
mov byte [eax], bl
lea eax, [ebp - 4]
push eax
xor eax, eax
cmp dword [ebp + 0xc], 1
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
setne al
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x15c]
push eax
push 1
lea eax, [ebp - 0x44]
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
leave
ret
Function at 0x428249
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
xor ebx, ebx
push edi
push ebx
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.0042a6aa
lea eax, [ebp - 0x44]
push 0x2e
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
add esp, 0x14
mov byte [eax], bl
lea eax, [ebp - 4]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push closesocket
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 4]
call edi
push dword [ebp - 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
lea eax, [ebp - 4]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call esi
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42860b
Capabilities:
Delete file

Disassembly:
mov eax, 0x442f14
call fcn.0043e4e0
sub esp, 0x28
push ebx
push edi
push dword [ebp + 8]
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor ebx, ebx
cmp dword [edi + 0x4b0], ebx
jne 0x428637
push 1
pop eax
jmp 0x428721
push esi
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CStdioFile::CStdioFile
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CException::CException
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_4
or dword [ebp - 0x14], 0xffffffff
mov esi, 0x445490
push ebx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], ebx
call sub.MFC42.DLL_CString::operator_2
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x34]
push eax
push 0x1001
push dword [ebp + 8]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CStdioFile::Open
test eax, eax
jne 0x428698
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 4
jmp 0x428703
cmp dword [edi + 0x4b0], ebx
mov dword [ebp + 8], ebx
jle 0x4286cd
mov ebx, edi
push dword [ebx]
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CStdioFile::WriteString
push 0x4532cc
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CStdioFile::WriteString
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
add ebx, 4
cmp eax, dword [edi + 0x4b0]
jl 0x4286a5
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CStdioFile::Close
lea eax, [ebp + 8]
lea ecx, [ebp - 0x34]
push eax
call sub.MFC42.DLL_CFile::GetFilePath
push dword [eax]
mov byte [ebp - 4], 5
call fcn.0042aafa
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 0x20], esi
push 1
mov byte [ebp - 4], 6
pop ebx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x20], 0x44547c
call fcn.0043e46e
mov eax, ebx
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x428aa6
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 6
sbb eax, eax
inc eax
leave
ret
Function at 0x428e0f
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
call fcn.00428bc9
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x428e36
push esi
call dword [sym.imp.USER32.dll_IsWindowUnicode]
test eax, eax
je 0x428e36
push 1
pop edi
jmp 0x428e38
xor edi, edi
mov esi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 0xd
call esi
test eax, eax
je 0x428e4f
test edi, edi
je 0x428e4f
push 1
pop edi
jmp 0x428e51
xor edi, edi
push 1
call esi
test eax, eax
jne 0x428e5d
test edi, edi
je 0x428e6a
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x428e6e
xor al, al
jmp 0x428ee7
test edi, edi
je 0x428e76
push 0xd
jmp 0x428e78
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
test eax, eax
mov dword [ebp + 8], eax
push ebx
je 0x428ede
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x428ede
test edi, edi
push ebx
je 0x428ecd
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + 1]
push esi
call sub.MFC42.DLL_operatornew
mov edi, eax
pop ecx
xor eax, eax
push eax
push eax
push esi
push edi
push 0xffffffffffffffff
push ebx
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [ebp + 0xc]
push edi
call sub.MFC42.DLL_CString::operator_2
push edi
call sub.MFC42.DLL_operatordelete
pop ecx
jmp 0x428ed5
mov ecx, dword [ebp + 0xc]
call sub.MFC42.DLL_CString::operator_2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov al, 1
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x428eeb
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test byte [ebp - 0x84], 2
je 0x428fa8
cmp dword [ebp - 0x90], 5
jb 0x428fa8
push 0x1e8
lea eax, [ebp - 0x27c]
push 0
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x278], eax
lea eax, [ebp - 0xd8]
push dword [ebp + 0x10]
mov dword [ebp - 0x27c], 0x1e8
mov dword [ebp - 0x270], 0x10
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 0x18]
push 0x100
push dword [ebp + 0x14]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x274], eax
lea eax, [ebp - 0x1dc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x27c]
mov dword [ebp - 0xdc], 0x61a8
push eax
push 1
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
leave
ret

Function at 0x42900a
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push 0
push eax
mov dword [ebp - 4], 7
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
neg eax
sbb eax, eax
neg eax
leave
ret
Function at 0x42980f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push edi
call sub.MFC42.DLL_AfxGetModuleState
push dword [ebp + 0x10]
mov eax, dword [eax + 0xc]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x42985e
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42985e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x42986d
mov ecx, dword [ebp + 8]
push 0x4550cc
call sub.MFC42.DLL_CString::CString_3
jmp 0x429877
mov ecx, dword [ebp + 8]
push edi
push eax
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret

Function at 0x42a727
Capabilities:
Read file on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
lea eax, [ebp - 0x108]
push 0x104
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
mov byte [eax], bl
pop ecx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ebx
push ebx
push 3
push ebx
push 1
push closesocket
push str.install.log
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42a789
xor eax, eax
jmp 0x42a7ad
lea eax, [ebp - 4]
push ebx
push eax
push 0x208
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42a7a4
push 1
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x42a7b1
Capabilities:
Delete file
Encode data using xor
Move file

Disassembly:
mov eax, 0x443208
call fcn.0043e4e0
sub esp, 0x24
push ebx
push esi
lea ecx, [ebp - 0x20]
call fcn.0043dde4
xor esi, esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], esi
call fcn.0043dde4
mov ebx, dword [ebp + 8]
push esi
push 0x8000
push ebx
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x42a8e6
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CFile::GetLength
test eax, eax
je 0x42a8e6
push ebx
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString_3
push str..tmp
push eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push eax
call sub.MFC42.DLL_operator_4
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
push esi
push 0xb021
push dword [ebp - 0x10]
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x42a851
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
jmp 0x42a8e6
mov esi, 0x800
push edi
push esi
call sub.MFC42.DLL_operatornew
pop ecx
mov edi, eax
push esi
push edi
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CFile::Read
test eax, eax
je 0x42a88b
xor ecx, ecx
test eax, eax
jle 0x42a87f
mov dl, byte [ebp + 0xc]
xor byte [ecx + edi], dl
inc ecx
cmp ecx, eax
jl 0x42a874
push eax
push edi
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CFile::Write
jmp 0x42a860
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CFile::Close
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CFile::Close
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x30]
push eax
call sub.MFC42.DLL_CFile::GetFilePath
push dword [eax]
mov byte [ebp - 4], 5
call fcn.0042aafa
pop ecx
mov byte [ebp - 4], 4
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
push edi
call sub.MFC42.DLL_operatordelete
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea ecx, [ebp - 0x10]
mov esi, eax
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
pop edi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CFile::CFile
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CFile::CFile
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x42a943
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
lea eax, [ebp - 0x20c]
push edi
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
mov eax, dword [ebp + 8]
push 0x64
and byte [eax], 0
lea eax, [ebp - 0x7c]
push eax
call sub.WSOCK32.dll_gethostname
test eax, eax
jne 0x42aa97
lea eax, [ebp - 0x7c]
push 0x4550cc
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x42aa97
lea eax, [ebp - 0x7c]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
mov dword [ebp - 0x18], eax
je 0x42aa97
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x14], 1
test eax, eax
je 0x42aa97
and dword [ebp - 0xc], 0
mov esi, dword [sym.imp.MSVCRT.dll__itoa]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, 0x453f68
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + eax]
test eax, eax
je 0x42aa97
push dword [eax]
call sub.WSOCK32.dll_ntohl
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 8]
shr eax, 0x18
movzx eax, al
push 0xa
push ecx
push eax
call esi
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call edi
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
shr eax, 0x10
movzx eax, al
push 0xa
push ecx
push eax
call esi
add esp, 0xc
push ebx
push dword [ebp + 8]
call edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.MSVCRT.dll_strcat
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
shr eax, 8
movzx eax, al
push 0xa
push ecx
push eax
call esi
add esp, 0x14
push ebx
push dword [ebp + 8]
call edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 8]
push 0xa
push eax
movzx eax, byte [ebp - 0x10]
push eax
call esi
add esp, 0x14
push ebx
push dword [ebp + 8]
call edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.MSVCRT.dll_strcat
add dword [ebp - 0xc], 4
cmp dword [ebp - 0x14], 6
pop ecx
pop ecx
jge 0x42aa92
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
inc dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
add ecx, eax
test ecx, ecx
jne 0x42a9cb
jmp 0x42aa97
call sub.WSOCK32.dll_WSACleanup
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42aa9c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x42aae1
lea eax, [ebp - 4]
push 0
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
jne 0x42aae5
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x42aaf7
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call fcn.0042aafa
pop ecx
push 1
pop eax
pop esi
leave
ret
Function at 0x42aafa
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
xor esi, esi
push edi
push esi
push esi
push 3
push esi
push 1
push 0x10000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42ab24
xor eax, eax
jmp 0x42ab7d
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
dec word [ebp - 0x18]
cmp word [ebp - 0x10], 5
jbe 0x42ab3f
add word [ebp - 0x10], 0xfffc
cmp word [ebp - 0xe], 0x14
jbe 0x42ab4c
add word [ebp - 0xe], 0xfff7
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
je 0x42ab74
push 1
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x42c9c5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42ca1d
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x4550cc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42ca10
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x42ca1f
xor eax, eax
pop esi
leave
ret 4
Function at 0x4359b0
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov dword [edi + 4], ebx
call fcn.0043ab20
add esp, 4
mov dword [esp + 0xc], eax
push 0x50
push edi
call fcn.0043aae0
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x4359fa
push edi
call fcn.0043ab30
mov eax, dword [edi]
add esp, 4
mov dword [eax + 0x14], 0x33
mov ecx, dword [edi]
push edi
mov dword [ecx + 0x18], ebx
mov edx, dword [edi]
call dword [edx]
add esp, 4
mov dword [esi], fcn.00435af0
mov dword [esi + 4], fcn.00435c40
mov dword [esi + 8], fcn.00435cf0
mov dword [esi + 0xc], fcn.00435da0
mov dword [esi + 0x10], 0x435e50
mov dword [esi + 0x14], 0x435ec0
mov dword [esi + 0x18], 0x435f30
mov dword [esi + 0x1c], 0x4360d0
mov dword [esi + 0x20], 0x4362b0
mov dword [esi + 0x24], fcn.00436490
mov dword [esi + 0x28], 0x436590
mov eax, dword [esp + 0xc]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x3c]
mov ecx, 2
mov dword [eax - 8], ebx
mov dword [eax], ebx
sub eax, 4
dec ecx
jne 0x435a55
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], 0x50
push str.JPEGMEM
mov dword [edi + 4], esi
call sub.MSVCRT.dll_getenv
add esp, 4
cmp eax, ebx
je 0x435ae5
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
push edx
push str._ld_c
push eax
mov byte [esp + 0x24], 0x78
call sub.MSVCRT.dll_sscanf
add esp, 0x10
test eax, eax
jle 0x435ae5
mov al, byte [esp + 0x14]
cmp al, 0x6d
je 0x435aae
cmp al, 0x4d
jne 0x435ad2
mov eax, dword [esp + 0xc]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esp + 0xc]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebx
pop ecx
ret