joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44a870
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44a8a3
push esi
call fcn.0044d960
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44a89c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x44a929
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44a912
mov eax, dword [esi + 8]
test eax, eax
je 0x44a8c7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44a90e
cmp eax, 2
je 0x44a912
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44a8ba
cmp eax, 3
je 0x44a8ed
cmp eax, 1
jne 0x44a8ba
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44a8ba
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44a8ba
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044a950
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44a938
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044a950
add esp, 4
pop esi
ret

Function at 0x4571c0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x457263
test eax, eax
jbe 0x457263
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x457263
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x45720e
xor esi, esi
jmp 0x457214
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x45723f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00458a90
add esi, eax
push esi
mov ebx, esi
call fcn.00458a90
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x457220
pop ebp
test edi, edi
pop edi
jne 0x457263
test ebx, ebx
je 0x457263
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0045af40
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x4573a5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4574bd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4574bd
mov eax, dword [esi + 0x3c]
push eax
call fcn.0046b998
mov esi, eax
test esi, esi
je 0x4574bd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4574bd
mov ecx, esi
call fcn.00457310
cmp edi, eax
jge 0x4574bd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x457443
mov dword [esp + 0x34], 1
jmp 0x45749e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4574bd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00455bb0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x46c33b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46c373
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046a3f2
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046a3ca
jmp 0x46c37f
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46da30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46da72
call fcn.004734e5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46da72
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46da69
xor eax, eax
jmp 0x46da7a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046da80
pop edi
pop esi
pop ebx
ret 4
Function at 0x473a15
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x473a43
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x473a61
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047397b
jmp 0x473a61
mov eax, dword [esi + 0x14]
test eax, eax
je 0x473a61
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047397b
test edi, edi
mov eax, edi
jne 0x473a4b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4011c0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x40b160
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
lea ecx, [esp + 0x14]
push edi
call sub.MFC42.DLL_CString::CString_1
xor ebx, ebx
mov ecx, edi
mov dword [esp + 0x28], ebx
call sub.MFC42.DLL_CString::Empty
mov eax, dword [esp + 0x14]
push eax
call sub.WSOCK32.dll_gethostbyname
mov ebp, eax
cmp ebp, ebx
je 0x4012a2
mov ecx, dword [ebp + 0xc]
mov esi, dword [ecx]
cmp esi, ebx
je 0x4012a2
movsx ecx, word [ebp + 0xa]
mov edx, ecx
lea edi, [esp + 0x10]
shr ecx, 2
mov dword [esp + 0x10], 0
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
push eax
call sub.WSOCK32.dll_ntohl
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x19]
mov edx, dword [esp + 0x1a]
mov esi, dword [esp + 0x30]
and eax, 0xff
and ecx, 0xff
push eax
mov eax, dword [esp + 0x1f]
and edx, 0xff
push ecx
and eax, 0xff
push edx
push eax
push str._d._d._d._d
push esi
call sub.MFC42.DLL_CString::Format
mov eax, dword [0x40f930]
add esp, 0x18
mov ecx, 0x40f928
push esi
push eax
call sub.MFC42.DLL_CStringArray::SetAtGrow
mov ecx, dword [ebp + 0xc]
add ebx, 4
mov esi, dword [ecx + ebx]
test esi, esi
jne 0x401218
mov edi, dword [esp + 0x30]
mov eax, dword [0x40f930]
mov ebx, 1
cmp eax, ebx
jle 0x401328
lea ecx, [esp + 0x30]
call fcn.004084c2
mov eax, dword [0x40f930]
xor esi, esi
test eax, eax
mov byte [esp + 0x28], bl
jle 0x40131a
mov edx, dword [0x40f92c]
mov eax, dword [edx + esi*4]
push eax
call sub.WSOCK32.dll_inet_addr
push eax
call sub.WSOCK32.dll_htonl
push eax
call fcn.00401180
add esp, 4
test eax, eax
je 0x4012f6
mov eax, dword [0x40f930]
inc esi
cmp esi, eax
jge 0x40131a
jmp 0x4012c8
push ebx
push esi
mov ecx, 0x40f928
call sub.MFC42.DLL_CStringArray::RemoveAt
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
cmp dword [0x40f930], ebx
jle 0x401328
jmp 0x4012b0
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x40f930]
test eax, eax
je 0x40133e
mov eax, dword [0x40f92c]
mov ecx, edi
push eax
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x401440
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b180
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov bl, 1
push 0
mov dword [ebp - 4], 0
push 0xf
mov byte [ebp - 4], bl
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [ebp + 8]
mov esi, eax
mov dword [ebp - 0x13c], 0x128
call sub.MFC42.DLL_CString::MakeLower
lea eax, [ebp - 0x13c]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x401533
lea ecx, [ebp - 0x118]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004085dc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::MakeLower
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x40150c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x134]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
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], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x13c]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4014a2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4016e0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using rc4 via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
sub esp, 0x10
lea eax, [esp + 4]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
xor ebx, ebx
push edi
push ebx
push 1
push ebx
push ebx
push eax
call esi
test eax, eax
je 0x401706
push str.A_cryptographic_provider_has_been_acquired.__n
jmp 0x401720
push 8
push 1
push ebx
lea ecx, [esp + 0x20]
push ebx
push ecx
call esi
test eax, eax
je 0x40189a
push str.A_new_key_container_has_been_created._n
mov esi, dword [sym.imp.MSVCRT.dll_printf]
call esi
mov eax, dword [esp + 0x18]
add esp, 4
lea edx, [esp + 0x10]
push edx
push ebx
push ebx
push 0x8003
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x40189a
push str.A_hash_object_has_been_created.__n
call esi
mov edx, dword [esp + 0x30]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebx
push ecx
mov ecx, dword [esp + 0x18]
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x40189a
push str.The_password_has_been_added_to_the_hash.__n
call esi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add esp, 4
lea edx, [esp + 0x1c]
push edx
push 0x800000
push eax
push 0x6801
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x40189a
push str.An_encryption_key_is_derived_from_the_password_hash.__n
call esi
mov edx, dword [esp + 0x14]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edi, dword [esp + 0x28]
mov eax, 0x4104105
mul edi
mov esi, edi
mov dword [esp + 0x10], ebx
sub esi, edx
mov dword [esp + 0x18], 0x3f0
shr esi, 1
add esi, edx
shr esi, 9
cmp esi, ebx
jle 0x401819
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push 0x3f0
push eax
push ebp
push 0
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x40189a
inc ebx
add ebp, 0x3f0
cmp ebx, esi
jl 0x4017ea
mov eax, edi
xor edx, edx
mov ecx, 0x3e8
div ecx
test edx, edx
je 0x40185e
mov ecx, dword [esp + 0x24]
mov eax, ebx
shl eax, 6
sub eax, ebx
lea edx, [esp + 0x18]
shl eax, 4
sub edi, eax
push 0x3f0
add eax, ecx
push edx
mov edx, dword [esp + 0x24]
push eax
push 0
push 1
push 0
push edx
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x40189a
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40186d
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40187c
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40188d
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
Function at 0x401f20
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b278
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CStdioFile::CStdioFile
push str._autorun.txt
lea eax, [ebp - 0x14]
push 0x40fd60
push eax
mov byte [ebp - 4], 2
call sub.MFC42.DLL_operator_1
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 3
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
push 0
je 0x401ff5
mov edx, dword [ebp - 0x14]
push 1
push edx
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CStdioFile::Open
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CFile::GetLength
cmp eax, 0x500000
jle 0x401fe6
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CStdioFile::Close
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00408648
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x3c]
push 2
push 0
lea ecx, [ebp - 0x3c]
call dword [edx + 0x30]
jmp 0x402006
mov eax, dword [ebp - 0x14]
push 0x1001
push eax
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CStdioFile::Open
lea ecx, [ebp - 0x28]
push ecx
call sub.MFC42.DLL_CTime::GetTickCount
lea edx, [ebp - 0x24]
push str._Y__m__d__H:_M:_S
push edx
mov ecx, eax
call sub.MFC42.DLL_CTime::Format
push 0x40f1ac
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 4
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [ebp + 8]
lea edx, [ebp - 0x1c]
push ecx
push eax
push edx
mov byte [ebp - 4], 5
call sub.MFC42.DLL_operator
push 0x40f1a8
push eax
lea eax, [ebp - 0x18]
mov bl, 6
push eax
mov byte [ebp - 4], bl
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
lea ecx, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CStdioFile::WriteString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CStdioFile::Close
jmp 0x401fae
Function at 0x4020b0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x40b2ec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push ebx
push esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0
call fcn.004084c2
lea ecx, [esp + 0x14]
mov dword [esp + 0x138], 1
call sub.MFC42.DLL_CStdioFile::CStdioFile
push str.log.txt
lea eax, [esp + 0xc]
mov bl, 2
push 0x40fd60
push eax
mov byte [esp + 0x144], bl
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push 0
push 0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x144], 3
call sub.MFC42.DLL_CStdioFile::Open
lea ecx, [esp + 8]
mov esi, eax
mov byte [esp + 0x138], bl
call sub.MFC42.DLL_CString::CString
test esi, esi
je 0x4021b5
lea ecx, [esp + 8]
call fcn.004084c2
lea ecx, [esp + 8]
mov byte [esp + 0x138], 4
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CStdioFile::ReadString
push 0x40f1f0
lea ecx, [esp + 0x10]
call fcn.004085f4
mov edx, dword [esp + 0x24]
test byte [edx + 0xc], 0x10
jne 0x40219a
lea eax, [esp + 8]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CStdioFile::ReadString
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 0x10]
call fcn.00408672
mov edx, dword [esp + 0x24]
test byte [edx + 0xc], 0x10
je 0x402174
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CStdioFile::Close
lea ecx, [esp + 8]
mov byte [esp + 0x138], bl
call sub.MFC42.DLL_CString::CString
jmp 0x4021c3
push 0x40f1e8
lea ecx, [esp + 0x10]
call fcn.004085f4
lea eax, [esp + 0x2c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x14]
call fcn.004085dc
push str._regcode.txt
lea ecx, [esp + 0x14]
mov byte [esp + 0x13c], 5
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x10]
push 0
push 0
push edx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CStdioFile::Open
test eax, eax
je 0x402262
lea ecx, [esp + 8]
call fcn.004084c2
lea eax, [esp + 8]
lea ecx, [esp + 0x14]
push eax
mov byte [esp + 0x13c], 6
call sub.MFC42.DLL_CStdioFile::ReadString
push 0x40f1d4
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 0x10]
call fcn.00408672
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CStdioFile::Close
lea ecx, [esp + 8]
mov byte [esp + 0x138], 5
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x140]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x28], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x138], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x138], 1
call fcn.00408648
lea ecx, [esp + 0xc]
mov byte [esp + 0x138], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x130]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x134
ret
Function at 0x402780
Capabilities:
Delete directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b350
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CFileFind::CFileFind
lea eax, [ebp + 8]
push 0x40f424
lea ecx, [ebp - 0x18]
push eax
push ecx
mov byte [ebp - 4], 2
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push 0
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CFileFind::FindFile
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x48]
test eax, eax
je 0x4028f1
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x48]
push edx
mov dword [ebp - 0x14], eax
call sub.MFC42.DLL_CFileFind::GetFileName
mov eax, dword [eax]
push 0x40f420
push eax
mov byte [ebp - 4], 4
call esi
add esp, 8
test eax, eax
je 0x402857
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x48]
push eax
call sub.MFC42.DLL_CFileFind::GetFileName
mov eax, dword [eax]
push 0x40f41c
push eax
call esi
add esp, 8
lea ecx, [ebp - 0x18]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x402859
mov bl, 1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
test bl, bl
jne 0x4027f6
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x48]
call sub.MFC42.DLL_CFileFind::GetFilePath
mov eax, dword [eax]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp - 0x48]
push 0x10
lea ecx, [ebp - 0x48]
call dword [edx + 0x40]
test eax, eax
je 0x4028cf
push ecx
lea ecx, [ebp - 0x48]
mov eax, esp
mov dword [ebp - 0x2c], esp
push eax
call sub.MFC42.DLL_CFileFind::GetFilePath
call fcn.00402780
add esp, 4
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x48]
call sub.MFC42.DLL_CFileFind::GetFilePath
mov eax, dword [eax]
push eax
call edi
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::CString
jmp 0x4027f6
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x48]
push edx
call sub.MFC42.DLL_CFileFind::GetFilePath
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString
jmp 0x4027f6
call sub.MFC42.DLL_CFileFind::Close
mov eax, dword [ebp + 8]
push eax
call edi
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.004086ae
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403180
Capabilities:
Inspect load icon resource

Disassembly:
push 0xffffffffffffffff
push 0x40b3fd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push esi
mov esi, ecx
push eax
push 0x66
mov dword [esp + 0xc], esi
call sub.MFC42.DLL_CDialog::CDialog
lea ecx, [esi + 0x6c]
mov dword [esp + 0x10], 0
call fcn.00405a40
mov byte [esp + 0x10], 1
mov dword [esi], 0x40c634
call sub.MFC42.DLL_AfxGetModuleState
push 0x80
push 0xe
push 0x80
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7c
mov dword [esi + 0x84], eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0x10], 2
je 0x403209
push 0
mov ecx, eax
call fcn.004052d0
jmp 0x40320b
xor eax, eax
push esi
push 0x86
mov ecx, eax
mov byte [esp + 0x18], 1
mov dword [0x40fd70], eax
call sub.MFC42.DLL_CDialog::Create
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x403660
Capabilities:
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x40b438
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2c]
push esi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
xor ebp, ebp
mov ecx, esi
mov dword [esp + 0x24], ebp
call sub.MFC42.DLL_CString::Empty
mov eax, dword [esp + 0x10]
push eax
call sub.WSOCK32.dll_gethostbyname
mov ebx, eax
cmp ebx, ebp
je 0x403722
mov ecx, dword [ebx + 0xc]
mov esi, dword [ecx]
cmp esi, ebp
je 0x403722
push edi
movsx ecx, word [ebx + 0xa]
mov edx, ecx
lea edi, [esp + 0x10]
shr ecx, 2
mov dword [esp + 0x10], 0
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
push eax
call sub.WSOCK32.dll_ntohl
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x19]
mov edx, dword [esp + 0x1a]
and eax, 0xff
push eax
mov eax, dword [esp + 0x1f]
and ecx, 0xff
and edx, 0xff
push ecx
mov ecx, dword [esp + 0x38]
and eax, 0xff
push edx
push eax
push str._d._d._d._d
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [ebx + 0xc]
add ebp, 4
add esp, 0x18
mov esi, dword [edx + ebp]
test esi, esi
jne 0x4036b0
pop edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret