joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404d30
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40d8a8
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x15c]
mov esi, dword [esp + 0x1c]
cmp eax, 3
mov dword [esp + 0x14], 0
jne 0x404d6f
mov eax, dword [esi]
push 0xa2a2a2
mov ecx, esi
call dword [eax + 0x38]
jmp 0x404d7b
mov eax, dword [esp + 0x34]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x38]
push 1
mov ecx, esi
mov ebx, eax
call sub.MFC42.DLL_CDC::SetBkMode
mov eax, dword [edi + 0x16c]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x30]
lea ecx, [edi + 0x184]
call fcn.0040a2b0
test al, al
je 0x404dc2
lea ecx, [edi + 0x174]
call fcn.0040a2b0
test al, al
je 0x404dc2
mov ecx, dword [edi + 0x194]
mov eax, dword [esp + 0x28]
sub eax, ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
mov edx, dword [esi]
lea edi, [esp + 0x20]
push 0x25
mov ecx, dword [eax - 8]
push edi
push ecx
push eax
mov ecx, esi
call dword [edx + 0x70]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x38]
lea ecx, [esp + 0x30]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0x1c

Function at 0x4055f0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
xor ebx, ebx
push ebp
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x405614
pop ebp
xor eax, eax
pop ebx
add esp, 0x128
ret
push esi
push edi
mov ecx, 0x4a
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x128
push eax
push ebp
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40569c
mov edi, dword [esp + 0x13c]
mov esi, edi
lea eax, [esp + 0x34]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40566b
test cl, cl
je 0x405667
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40566b
add eax, 2
add esi, 2
test cl, cl
jne 0x405647
xor eax, eax
jmp 0x405670
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x405697
lea eax, [esp + 0x10]
push eax
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x405641
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x128
ret
mov ebx, 1
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x128
ret
Function at 0x4056b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, str.VnetClientUpdate2eLive.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], eax
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
mov dword [esp + 0xc], eax
and ecx, 3
lea eax, [esp + 0xc]
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.IMAGEHLP.dll_MapFileAndCheckSumA]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
add esp, 0x10c
ret
Function at 0x406350
Capabilities:
Create thread
Print debug messages

Disassembly:
push esi
mov esi, ecx
push str.UpdateStart..._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0
mov ecx, esi
call sub.MFC42.DLL_CWnd::ShowWindow
lea eax, [esi + 0xc8]
push eax
push 0
push esi
push 0x4063a0
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
pop esi
ret

Function at 0x406ad0
Capabilities:
Create thread
Print debug messages

Disassembly:
push esi
mov esi, ecx
push str.UpdateStart..._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0
mov ecx, esi
call sub.MFC42.DLL_CWnd::ShowWindow
lea eax, [esi + 0xd4]
push eax
push 0
push esi
push 0x406b10
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
pop esi
ret
Function at 0x409340
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40dcd8
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [esp + 0x38]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40937d
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0
call fcn.0040a5ba
push 0x411a3c
lea ecx, [esp + 0xc]
mov ebx, 1
push esi
push ecx
mov byte [esp + 0x3c], bl
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 8]
mov byte [esp + 0x30], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x38]
push 0
push edx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x409411
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], al
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.0040a9ec
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov esi, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x10]
mov edi, eax
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x409492
mov eax, dword [esp + 0x10]
push 0x10
lea ecx, [esp + 0x14]
call dword [eax + 0x40]
test eax, eax
je 0x409466
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFileFind::GetFilePath
push esi
push eax
mov byte [esp + 0x3c], 3
call fcn.00409340
add esp, 8
mov byte [esp + 0x34], bl
lea ecx, [esp + 0x40]
jmp 0x40948d
lea edx, [esp + 0xc]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CFileFind::GetFilePath
mov ecx, dword [esi + 8]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x3c], 4
call sub.MFC42.DLL_CStringArray::SetAtGrow
mov byte [esp + 0x34], bl
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
test edi, edi
jne 0x409416
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call fcn.0040a9ec
mov ecx, dword [esp + 0x2c]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x4094d0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40dd10
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [esp + 0x38]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40950d
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0
call fcn.0040a5ba
push 0x411a3c
lea ecx, [esp + 0xc]
mov ebx, 1
push esi
push ecx
mov byte [esp + 0x3c], bl
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 8]
mov byte [esp + 0x30], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x38]
push 0
push edx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x4095a1
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], al
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.0040a9ec
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov esi, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x10]
mov edi, eax
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x40960d
mov eax, dword [esp + 0x10]
push 0x10
lea ecx, [esp + 0x14]
call dword [eax + 0x40]
test eax, eax
je 0x40960d
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFileFind::GetFilePath
lea edx, [esp + 0x40]
push esi
push edx
mov byte [esp + 0x3c], 3
call fcn.004094d0
mov eax, dword [esi + 8]
add esp, 8
lea ecx, [esp + 0x40]
push ecx
push eax
mov ecx, esi
call sub.MFC42.DLL_CStringArray::SetAtGrow
lea ecx, [esp + 0x40]
mov byte [esp + 0x34], bl
call sub.MFC42.DLL_CString::CString
test edi, edi
jne 0x4095a6
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call fcn.0040a9ec
mov ecx, dword [esp + 0x2c]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x409650
Capabilities:
Delete registry key

Disassembly:
push ecx
mov edx, dword [esp + 8]
lea eax, [esp]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x409680
xor eax, eax
pop ecx
ret
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov eax, 1
pop ecx
ret

Function at 0x4096a0
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4096b7
mov eax, 1
pop esi
ret
push edi
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push esi
push 0x2001
push 4
mov edi, eax
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov eax, edi
pop edi
pop esi
ret
Function at 0x4096f0
Capabilities:
Delete directory
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
push esi
push 0x2001
push 4
mov edi, eax
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov eax, edi
pop edi
pop esi
ret

Function at 0x409720
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40dd36
push eax
mov dword fs:[0], esp
sub esp, 0x10c
mov ecx, 0x41
xor eax, eax
push ebp
push esi
mov esi, dword [esp + 0x124]
push edi
lea edi, [esp + 0x14]
push eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push esi
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
cmp esi, 0x1a
jne 0x409794
mov edi, str.MicrosoftInternet_ExplorerQuick_Launch
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
call fcn.0040a5ba
lea eax, [esp + 0x14]
push 0x4111f0
push eax
lea ecx, [esp + 0x14]
push str._s_s.lnk
push ecx
mov dword [esp + 0x130], 0
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 0x10
push 0x80
push edx
call esi
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call edi
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.SHELL32.dll_SHChangeNotify]
push 0
push ecx
push 0x2001
push 4
call ebp
lea ecx, [esp + 0x10]
call fcn.0040a5ba
lea edx, [esp + 0x14]
push 0x4111e4
push edx
lea eax, [esp + 0x18]
push str._s_s.lnk
push eax
mov byte [esp + 0x130], 1
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x20]
add esp, 0x10
push 0x80
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call edi
mov eax, dword [esp + 0x10]
push 0
push eax
push 0x2001
push 4
call ebp
lea ecx, [esp + 0x10]
mov byte [esp + 0x120], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x120], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x118
ret
Function at 0x409b60
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x40dd56
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push edi
xor eax, eax
mov ecx, 0x49
lea edi, [esp + 0x10]
mov dword [esp + 0xc], 0
push eax
rep stosd dword es:[edi], eax
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x409bb8
xor eax, eax
pop edi
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
add esp, 0x13c
ret
lea eax, [esp + 0xc]
push esi
push eax
push edi
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x409c96
lea ecx, [esp + 8]
call fcn.0040a5ba
push str.VnetClient.exe
lea ecx, [esp + 0x10]
mov dword [esp + 0x144], 0
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0xc]
mov byte [esp + 0x140], 1
call sub.MFC42.DLL_CString::MakeLower
lea ecx, [esp + 0x34]
xor esi, esi
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::MakeLower
mov edx, dword [esp + 0xc]
lea ecx, [esp + 8]
push edx
call sub.MFC42.DLL_CString::Find_2
test eax, eax
jge 0x409c6a
lea eax, [esp + 0x10]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x409c6f
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::MakeLower
mov edx, dword [esp + 0xc]
lea ecx, [esp + 8]
push edx
call sub.MFC42.DLL_CString::Find_2
test eax, eax
jl 0x409c32
mov esi, 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x140], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x140], 0xffffffff
call sub.MFC42.DLL_CString::CString
jmp 0x409c98
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x138]
mov eax, esi
pop esi
pop edi
mov dword fs:[0], ecx
add esp, 0x13c
ret

Function at 0x409d20
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
sub esp, 8
push esi
push edi
push 0
push 0x409cc0
call dword [sym.imp.USER32.dll_EnumWindows]
push 0
call fcn.00409890
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
add esp, 4
test esi, esi
je 0x409d77
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0
push 0
push 0x402
push esi
call edi
push 0
push 0
push 0x401
push esi
call edi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00409b60
cmp eax, 1
jne 0x409da9
mov ecx, dword [esp + 8]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea edx, [esp + 0xc]
mov esi, eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push str.GetVnetBrowserUrl
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x409dc6
push 0
push 0
push 0x401
push eax
call edi
push 0
call fcn.00409de0
add esp, 4
pop edi
pop esi
add esp, 8
ret
Function at 0x40a2c0
Capabilities:
Capture screenshot

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40ddf8
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x40a3d0
push ebx
push ebp
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CDC::CDC
mov ecx, dword [esi + 4]
lea eax, [esp + 0x24]
push eax
push 0x18
push ecx
mov dword [esp + 0x50], 0
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
test eax, eax
je 0x40a31e
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CDC::Attach
test esi, esi
je 0x40a336
mov esi, dword [esi + 4]
mov edx, dword [esp + 0x18]
push esi
push edx
call sub.MFC42.DLL_CDC::SelectGdiObject
mov ebx, dword [esp + 0x54]
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x50]
cmp ebx, ecx
mov dword [esp + 0x10], eax
jge 0x40a3a1
cmp esi, dword [esp + 0x58]
jge 0x40a393
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
neg eax
sbb eax, eax
push 0xcc0020
and eax, ecx
push 0
push 0
push eax
mov eax, dword [esp + 0x5c]
push ebp
push edi
push ebx
mov ecx, dword [eax + 4]
push esi
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x58]
add esi, edi
cmp esi, eax
jl 0x40a35b
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x5c]
add ebx, ebp
cmp ebx, eax
jl 0x40a355
mov eax, dword [esp + 0x10]
pop edi
pop ebp
test eax, eax
pop ebx
je 0x40a3ab
mov eax, dword [eax + 4]
mov edx, dword [esp + 0xc]
push eax
push edx
call sub.MFC42.DLL_CDC::SelectGdiObject
lea ecx, [esp + 8]
call sub.MFC42.DLL_CDC::DeleteDC
lea ecx, [esp + 8]
mov dword [esp + 0x38], 0xffffffff
call fcn.0040a84e
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 0x14
Function at 0x4033a4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45a00c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40343c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40341c
xor eax, eax
push ebp
push 0x403415
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403458
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40341c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x45a00c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45a00c], ax
mov esp, ebp
pop ebp
ret

Function at 0x404124
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45c048], 0
je 0x404185
cmp word [0x45c21c], 0xd7b2
jne 0x40414d
cmp dword [0x45c224], 0
jbe 0x40414d
mov eax, 0x45c218
call dword [0x45c234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45a054
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4041ac
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45a01c], 0
jne 0x4041a1
push 0
push 0x45a074
push 0x45a054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40a1a8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a1e1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404390
jmp 0x40a1ea
mov eax, ebx
mov edx, esi
call fcn.004042f4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a1f4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a215
mov al, byte [esp]
jmp 0x40a217
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40a89c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a714
mov eax, dword [0x45b044]
cmp byte [eax], 0
je 0x40a909
mov eax, dword [0x45ae7c]
call fcn.00402cc0
call fcn.00402870
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408a0c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40a950
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a93f
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45ae34]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45c714]
call fcn.00405a18
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40b498
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40b4fc
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404508
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408654
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b503
lea eax, [ebp - 0xc]
call fcn.004042a0
ret
Function at 0x4219b8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x45ca20
cmp dword [edi], 0
jne 0x421a34
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x45ca1c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45a5cc
mov ecx, 2
call fcn.00402904
mov edx, 0x421990
lea eax, [esi + 5]
call fcn.004219b0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004219b0
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x421a09
mov dword [0x45ca1c], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x422f10
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x422f16
ret

Function at 0x4253ac
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4253fd
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4253e4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4253d4
jmp 0x4253fd
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4253e5
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42fe0c
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404740
xor eax, eax
push ebp
push 0x42ff3a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x42ff0d
xor eax, eax
push ebp
push 0x42ff06
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404558
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x42fedb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x42feca
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404558
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00404750
mov edx, ebx
pop ecx
call fcn.00402904
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42fed1
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x45ade0]
mov dl, 1
mov eax, dword [0x40763c]
call fcn.0040aa10
call fcn.00403d00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ff41
lea eax, [ebp - 4]
call fcn.004042a0
ret