joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402ac0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov eax, dword [ebx + 0x20]
push edi
lea ecx, [eax + ebp]
cmp ecx, 8
mov dword [edx], ecx
ja 0x402b0a
mov esi, dword [esp + 0x18]
mov ecx, ebp
lea edi, [eax + ebx + 0x18]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x20]
pop edi
add eax, ebp
pop esi
mov dword [ebx + 0x20], eax
pop ebp
mov dword [edx], 0
xor eax, eax
pop ebx
ret
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
cmp esi, ebp
jne 0x402b20
pop edi
pop esi
pop ebp
mov eax, 0x1001
pop ebx
ret
mov dword [edx], ecx
mov ecx, 8
sub ecx, eax
mov esi, ebp
mov dword [esp + 0x18], ecx
mov edx, ecx
lea edi, [eax + ebx + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov esi, edx
add ebp, esi
lea esi, [ebx + 0x10]
lea edx, [ecx + eax - 8]
lea eax, [ebx + 0x24]
push esi
push eax
mov dword [esp + 0x24], edx
call fcn.004012e0
mov eax, dword [esi]
mov edi, dword [ebx + 0x18]
xor eax, edi
mov edi, dword [esp + 0x28]
add esp, 8
mov dword [edi], eax
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x14]
add edi, 8
xor ecx, edx
mov dword [edi - 4], ecx
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebx + 0x18]
mov eax, dword [ebx + 0x1c]
cmp ecx, 8
mov dword [esi], edx
mov dword [ebx + 0x14], eax
jbe 0x402be2
lea eax, [ecx - 1]
shr eax, 3
mov dword [esp + 0x18], eax
lea eax, [ebx + 0x24]
push esi
push eax
call fcn.004012e0
mov ecx, dword [esi]
mov edx, dword [ebp]
xor ecx, edx
add esp, 8
mov dword [edi], ecx
mov edx, dword [ebp + 4]
mov ecx, dword [ebx + 0x14]
add ebp, 8
xor edx, ecx
mov dword [edi + 4], edx
mov eax, dword [ebp - 8]
mov dword [esi], eax
mov ecx, dword [ebp - 4]
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x14], ecx
mov ecx, dword [esp + 0x1c]
add edi, 8
sub ecx, 8
dec eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
jne 0x402b9a
mov edx, ecx
mov esi, ebp
lea edi, [ebx + 0x18]
mov eax, dword [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x20]
pop edi
and ecx, 0xf0000000
pop esi
add ecx, eax
pop ebp
mov dword [ebx + 0x20], ecx
mov ecx, dword [esp + 0x18]
pop ebx
mov edx, dword [ecx]
sub edx, eax
xor eax, eax
mov dword [ecx], edx
ret

Function at 0x402e10
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [ebx + 0x20]
push edi
lea edi, [ebx + 0x10]
lea eax, [ebx + 0x24]
push edi
push eax
mov dword [ebp], esi
call fcn.004012e0
add esp, 8
test esi, esi
jbe 0x402e55
mov ecx, dword [esp + 0x18]
mov eax, edi
mov edi, 0xfffffff0
sub edi, ebx
mov dl, byte [eax + 8]
mov bl, byte [eax]
xor dl, bl
inc eax
mov byte [ecx], dl
inc ecx
lea edx, [edi + eax]
cmp edx, esi
jb 0x402e43
mov dword [ebp], esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x402f40
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x428d62
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
lea edi, [esi + 0x10]
mov ecx, edi
call sub.MFC42.DLL_CString::CString_2
lea ebp, [esi + 0x14]
mov dword [esp + 0x1c], 0
mov ecx, ebp
call sub.MFC42.DLL_CString::CString_2
lea ebx, [esi + 0x18]
mov byte [esp + 0x1c], 1
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x24]
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x28]
mov byte [esp + 0x1c], 3
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x2c]
mov byte [esp + 0x1c], 4
call sub.MFC42.DLL_CString::CString_2
push 0x440b68
lea ecx, [esi + 0x28]
mov byte [esp + 0x20], 5
mov dword [esi + 0x30], 0
mov dword [esi + 0x1c], 1
mov dword [esi + 0x20], 2
call sub.MFC42.DLL_CString::operator_1
push 0x440b68
lea ecx, [esi + 0x2c]
call sub.MFC42.DLL_CString::operator_1
push 0x440b68
mov ecx, edi
call sub.MFC42.DLL_CString::operator_1
push 0x440b68
mov ecx, ebp
call sub.MFC42.DLL_CString::operator_1
push 0x440b68
mov ecx, ebx
call sub.MFC42.DLL_CString::operator_1
push 0x440b68
lea ecx, [esi + 0x24]
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0xffffffff
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4033c0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x428de8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push esi
mov esi, dword [esp + 0x88]
mov eax, dword [esp + 0x84]
xor ebx, ebx
mov dword [esi], ebx
mov ecx, dword [eax - 8]
cmp ecx, ebx
mov dword [esp + 0x7c], ebx
jne 0x403424
lea ecx, [esp + 0x84]
mov dword [esi], 3
mov dword [esp + 0x7c], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
add esp, 0x78
ret
lea ecx, [esp + 0x88]
lea edx, [esp + 0xc]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 1
push edx
mov dword [esp + 0xb4], ebx
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], 1
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x40349c
push ebx
push ebx
push str.CXSyncExeApp::CreateDirectory_GrantAccess___:_Fail_to_get_Everyone_SID___
call sub.MFC42.DLL_AfxMessageBox_1
lea ecx, [esp + 0x84]
mov dword [esp + 0x7c], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
add esp, 0x78
ret
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x8c]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x3c]
push ebx
push edx
push 1
mov dword [esp + 0x48], 0x10000000
mov dword [esp + 0x4c], 2
mov dword [esp + 0x50], 3
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], 5
mov dword [esp + 0x64], eax
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclA]
lea eax, [esp + 0x24]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
mov ecx, dword [esp + 0xc]
push ebx
push ecx
lea edx, [esp + 0x2c]
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov edx, dword [esp + 0x88]
lea ecx, [esp + 0x18]
lea eax, [esp + 0x24]
push ecx
push edx
mov dword [esp + 0x20], 0xc
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 1
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
pop edi
jne 0x403544
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov eax, dword [esp + 0x88]
cmp eax, ebx
je 0x403556
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x403565
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esi]
xor eax, eax
cmp ecx, ebx
lea ecx, [esp + 0x84]
sete al
mov esi, eax
mov dword [esp + 0x7c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x74]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x78
ret
Function at 0x406730
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esi], 0x42de20
mov dword [esi + 4], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
cmp eax, ebx
je 0x40676f
mov eax, dword [eax + 0xd0]
cmp eax, ebx
je 0x40676f
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x406786
push str.CKillUtil::CKillUtil__Try_to_use_Kernel32_Library
push 2
push eax
call fcn.00407c90
add esp, 0xc
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.Kernel32
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [esi + 0xc], eax
je 0x4067c7
push str.CreateToolhelp32Snapshot
push eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
push str.Process32First
push eax
call edi
mov ecx, dword [esi + 0xc]
push str.Process32Next
push ecx
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
cmp dword [esi + 0x10], ebx
je 0x4067f4
cmp dword [esi + 0x14], ebx
je 0x4067f4
cmp dword [esi + 0x18], ebx
je 0x4067f4
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x406853
push str.CKillUtil::CKillUtil__Success_to_use_Kernel32_Library
push 2
push eax
call fcn.00407c90
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp dword [esi + 0xc], ebx
je 0x406853
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x406810
push str.CKillUtil::CKillUtil__Try_to_use_ntdll_Library
push 2
push eax
call fcn.00407c90
add esp, 0xc
push str.ntdll.dll
call ebp
cmp eax, ebx
mov dword [esi + 8], eax
je 0x406853
push str.ZwQuerySystemInformation
push eax
call edi
mov edx, dword [esi + 0xc]
push str.GetProcessHeap
push edx
mov dword [esi + 0x1c], eax
call edi
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0xc]
push str.HeapAlloc
push eax
call edi
mov ecx, dword [esi + 0xc]
push 0x4350a4
push ecx
mov dword [esi + 0x24], eax
call edi
mov dword [esi + 0x28], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4068e0
Capabilities:
Terminate process

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esp + 0xc]
push edi
push eax
push ecx
push edx
mov ecx, esi
call fcn.004069c0
mov edi, eax
test edi, edi
jne 0x40691e
mov esi, dword [esi + 4]
test esi, esi
je 0x406917
push str.CKillUtil::KillProcess__hProcess_is_Invalid
push 4
push esi
call fcn.00407c90
add esp, 0xc
pop edi
xor al, al
pop esi
ret 8
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
push edi
call ebp
mov ebx, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x406945
push ebx
push str.CKillUtil::KillProcess__1__TerminateProcess_Return_Value___d
push 2
push eax
call fcn.00407c90
add esp, 0x10
push 0x3e8
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
mov eax, dword [esi + 4]
je 0x406976
test eax, eax
je 0x40696d
push ebx
push str.CKillUtil::KillProcess__2__TerminateProcess_Return_Value___d
push 2
push eax
call fcn.00407c90
add esp, 0x10
push 0
push edi
call ebp
mov ebx, eax
jmp 0x40698f
test eax, eax
je 0x40698a
push str.CKillUtil::KillProcess__WaitForSingleObject_Success
push 2
push eax
call fcn.00407c90
add esp, 0xc
mov ebx, 1
mov esi, dword [esi + 4]
test esi, esi
je 0x4069a6
push str.CKillUtil::KillProcess__Close_Process_Handle
push 2
push esi
call fcn.00407c90
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp ebx, 1
pop ebp
pop ebx
pop edi
pop esi
sete al
ret 8
Function at 0x407550
Capabilities:
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4293c0
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebp
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x14], esi
je 0x40774a
cmp dword [edi + 0x18], esi
je 0x40774a
lea ebp, [edi + 0x48]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esp + 0x1c]
mov ecx, dword [edi + 0x1c]
and eax, 0xffff
cmp ecx, eax
je 0x4075e3
mov ecx, edi
call fcn.004078c0
mov ecx, edi
call fcn.00407b00
test eax, eax
jge 0x4075d7
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
or ax, 0xffff
pop ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 0xc
mov eax, dword [esp + 0x1c]
and eax, 0xffff
mov dword [edi + 0x1c], eax
cmp dword [edi + 0x20], 1
jne 0x4076d8
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x22]
mov edx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x24]
and eax, 0xffff
push edx
mov edx, dword [esp + 0x26]
push eax
mov eax, dword [esp + 0x28]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x2a]
and eax, 0xffff
push edx
mov edx, dword [esp + 0x2a]
push eax
mov eax, dword [esp + 0x2c]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
lea ecx, [esp + 0x30]
push str._04d__02d__02d_02d:_02d:_02d._03d____5s___s_n
push ecx
mov dword [esp + 0x5c], esi
call sub.MFC42.DLL_CString::Format
add esp, 0x2c
lea edx, [esp + 0xc]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0xc]
mov byte [esp + 0x30], 1
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x407698
mov al, byte [esi + eax]
lea ecx, [esp + 0x10]
not al
push eax
push esi
call sub.MFC42.DLL_CString::SetAt
mov eax, dword [esp + 0xc]
inc esi
cmp esi, dword [eax - 8]
jl 0x40767e
mov ecx, dword [edi + 0x10]
mov eax, dword [eax - 8]
push ecx
push eax
push 1
push 0
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
jmp 0x407736
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x26]
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x2a]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x26]
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x32]
and ecx, 0xffff
and eax, 0xffff
and edx, 0xffff
push eax
mov eax, dword [edi + 0x10]
push ecx
push edx
push str._04d__02d__02d_02d:_02d:_02d._03d____5s___s_n
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x2c
mov ecx, dword [edi + 0x10]
push ecx
call dword [sym.imp.MSVCRT.dll_fflush]
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
xor ax, ax
pop ebp
mov dword fs:[0], ecx
add esp, 0x28
ret 0xc
Function at 0x4077d0
Capabilities:
Create directory

Disassembly:
sub esp, 0x210
push ebx
push ebp
push esi
mov edx, ecx
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
push eax
rep stosd dword es:[edi], eax
mov ecx, edx
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea eax, [esp + 0x14]
push 0x435020
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
xor bl, bl
mov ebp, ecx
xor esi, esi
test ebp, ebp
jle 0x40787f
cmp byte [esp + esi + 0x10], 0x5c
jne 0x40787a
test bl, bl
jne 0x407831
mov bl, 1
jmp 0x40787a
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x118]
push esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
lea edx, [esp + 0x11c]
push ecx
push edx
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
lea eax, [esp + 0x118]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40787a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40789d
inc esi
cmp esi, ebp
jl 0x407822
lea ecx, [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4078ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4078ab
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x210
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x210
ret
Function at 0x407c00
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x20
push esi
mov esi, ecx
push edi
mov ecx, 7
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
push 0x1e
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 7
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push eax
call sub.WSOCK32.dll_gethostname
test eax, eax
jge 0x407c42
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x20
ret
lea ecx, [esp + 8]
push ecx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x407c5b
pop edi
mov eax, 0xfffffffe
pop esi
add esp, 0x20
ret
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov eax, dword [eax]
push eax
call sub.WSOCK32.dll_inet_ntoa
push eax
add esi, 0x30
push 0x435020
push esi
call sub.MFC42.DLL_CString::Format
add esp, 0xc
xor eax, eax
pop edi
pop esi
add esp, 0x20
ret
Function at 0x407dd0
Capabilities:
Create shortcut via ishelllink
Get common file path

Disassembly:
sub esp, 0xc08
push esi
push edi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor esi, esi
stosb byte es:[edi], al
push esi
lea eax, [esp + 0x14]
push esi
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [esp + 8]
push ecx
push 0x43014c
push 1
push esi
push 0x43015c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x407f38
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push 0x43016c
mov edx, dword [eax]
push eax
call dword [edx]
test eax, eax
jl 0x407f2e
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc18]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x50]
mov edx, dword [esp + 0xc20]
test edx, edx
je 0x407e76
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x407e76
mov eax, dword [esp + 8]
push esi
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov edx, dword [esp + 0xc1c]
test edx, edx
je 0x407e9a
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x407e9a
mov eax, dword [esp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x211]
mov byte [esp + 0x210], 0
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0xc14]
lea ecx, [esp + 0x210]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push edx
push eax
push str._s_s.lnk
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x410]
lea edx, [esp + 0x410]
push 0x104
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x218]
push 0xffffffffffffffff
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x410]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
je 0x407f24
or esi, 0xffffffff
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 8]
push eax
mov edx, dword [eax]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop edi
pop esi
add esp, 0xc08
ret
Function at 0x408230
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x20
push esi
push edi
mov ecx, 7
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
call sub.MFC42.DLL_AfxGetModuleState
mov esi, dword [eax + 4]
mov ecx, 7
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
push 0x1e
push eax
call sub.WSOCK32.dll_gethostname
test eax, eax
jge 0x408294
call sub.WSOCK32.dll_WSAGetLastError
mov ecx, dword [esi + 0xd0]
push eax
push str.CSockUtil::GetLocalIpAddr__gethostname___Fail__ErrCode___d
push 4
push ecx
call fcn.00407c90
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
add esp, 0x20
ret
lea edx, [esp + 8]
push edx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x4082c9
call sub.WSOCK32.dll_WSAGetLastError
push eax
mov eax, dword [esi + 0xd0]
push str.CSockUtil::GetLocalIpAddr__gethostbyname___Fail__ErrCode___d
push 4
push eax
call fcn.00407c90
add esp, 0x10
mov eax, 0xfffffffe
pop edi
pop esi
add esp, 0x20
ret
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call sub.WSOCK32.dll_inet_ntoa
push eax
mov eax, dword [esp + 0x30]
push 0x435020
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
xor eax, eax
pop edi
pop esi
add esp, 0x20
ret
Function at 0x408e70
Capabilities:
Check for peb ntglobalflag flag
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x429820
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x42de6c
lea ecx, [esi + 0xc0]
mov dword [esp + 0x10], 0x1e
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xb8]
mov byte [esp + 0x10], 0x1d
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xb4]
mov byte [esp + 0x10], 0x1c
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xac]
mov byte [esp + 0x10], 0x1b
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xa8]
mov byte [esp + 0x10], 0x1a
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xa4]
mov byte [esp + 0x10], 0x19
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xa0]
mov byte [esp + 0x10], 0x18
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x94]
mov byte [esp + 0x10], 0x17
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x90]
mov byte [esp + 0x10], 0x16
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x8c]
mov byte [esp + 0x10], 0x15
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x7c]
mov byte [esp + 0x10], 0x14
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x78]
mov byte [esp + 0x10], 0x13
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x74]
mov byte [esp + 0x10], 0x12
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x70]
mov byte [esp + 0x10], 0x11
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x6c]
mov byte [esp + 0x10], 0x10
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x10], 0xf
lea ecx, [esi + 0x68]
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x64]
mov byte [esp + 0x10], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x60]
mov byte [esp + 0x10], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x5c]
mov byte [esp + 0x10], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x58]
mov byte [esp + 0x10], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x54]
mov byte [esp + 0x10], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x3c]
mov byte [esp + 0x10], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x38]
mov byte [esp + 0x10], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x34]
mov byte [esp + 0x10], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x2c]
mov byte [esp + 0x10], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x28]
mov byte [esp + 0x10], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x24]
mov byte [esp + 0x10], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x20]
mov byte [esp + 0x10], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x1c]
mov byte [esp + 0x10], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x14]
mov byte [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x10]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret