joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402420
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e008
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1188
call fcn.00421430
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x104
lea eax, [ebp - 0x118]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_4
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
xor ecx, ecx
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x11c], esi
cmp esi, 0xffffffff
je 0x40252d
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x130], ebx
lea eax, [ebp - 0x118c]
push eax
call fcn.0040f150
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea ecx, [ebp - 0x130]
push ecx
push 0x1000
lea edx, [ebp - 0x1130]
push edx
push esi
call edi
mov eax, dword [ebp - 0x130]
cmp eax, ebx
je 0x402510
push eax
lea eax, [ebp - 0x1130]
push eax
lea ecx, [ebp - 0x118c]
push ecx
call fcn.0040f18b
add esp, 0xc
jmp 0x4024d6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x118c]
push edx
lea eax, [ebp - 0x12c]
push eax
call fcn.0040fcdf
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
push 0x10
lea edx, [ebp - 0x12c]
push edx
call fcn.00402360
add esp, 0xc
mov dword [ebp - 0x1190], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402c10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e020
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x104
lea eax, [ebp - 0x118]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.MSVCRT.dll__mbsrchr]
add esp, 8
mov edx, eax
inc edx
mov byte [edx], 0
mov edi, str.BugReport.log
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebx, dword [ebp + 8]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 4], eax
push eax
push 0x80
push 4
push eax
push 1
push 0x40000000
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x124], esi
cmp esi, 0xffffffff
je 0x402cf0
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 0x120]
push edx
mov eax, dword [ebp - 0x120]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 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 0x403180
Capabilities:
Hide graphical window
Log keystrokes

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x10], edi
je 0x4031a1
push edi
push eax
call ebx
mov edi, eax
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push esi
call ebx
push str.user32.dll
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
test ebp, ebp
je 0x4031de
push 0x4427a0
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4031d7
mov ecx, dword [esp + 0x10]
push ecx
call eax
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4031f2
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
cmp edi, ebx
je 0x40321e
push 1
push ebx
push edi
call dword [sym.imp.USER32.dll_AttachThreadInput]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 8
push esi
mov ebp, eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push ebx
push edi
call dword [sym.imp.USER32.dll_AttachThreadInput]
jmp 0x403230
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 8
push esi
mov ebp, eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40324a
cmp eax, 9
je 0x40324a
cmp eax, 8
je 0x40324a
push eax
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x403540
Capabilities:
Get file version info

Disassembly:
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, ecx
push 0
lea ebp, [esi + 0x30]
push ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jne 0x403560
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
push edi
push ebx
call sub.MFC42.DLL_operatornew
mov ecx, ebx
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esi + 8], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 8]
push eax
push ebx
push 0
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
pop edi
jne 0x40359a
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00403330
test eax, eax
jne 0x4035b1
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov eax, dword [esp + 0x14]
push 0x104
mov edx, eax
mov word [esi + 0xe], ax
mov eax, dword [esp + 0x1c]
shr edx, 0x10
mov ecx, eax
mov word [esi + 0x12], ax
mov eax, dword [esp + 0x20]
mov word [esi + 0xc], dx
shr ecx, 0x10
mov edx, eax
mov word [esi + 0x16], ax
mov eax, dword [esp + 0x24]
mov word [esi + 0x10], cx
mov ecx, eax
mov word [esi + 0x1a], ax
mov eax, dword [esp + 0x2c]
shr ecx, 0x10
shr edx, 0x10
mov word [esi + 0x18], cx
mov ecx, dword [esp + 0x30]
mov word [esi + 0x14], dx
mov edx, dword [esp + 0x28]
mov dword [esi + 0x24], ecx
lea ecx, [esi + 0x134]
mov dword [esi + 0x1c], edx
mov edx, dword [esp + 0x34]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x38]
push ecx
push str.CompanyName
mov ecx, esi
mov dword [esi + 0x28], edx
mov dword [esi + 0x2c], eax
call fcn.004033d0
test eax, eax
jne 0x40363b
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
lea edx, [esi + 0x33c]
push 0x104
push edx
push str.FileDescription
mov ecx, esi
call fcn.004033d0
test eax, eax
jne 0x40365e
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
lea eax, [esi + 0x238]
push 0x104
push eax
push str.ProductName
mov ecx, esi
call fcn.004033d0
neg eax
sbb eax, eax
pop esi
pop ebp
pop ebx
neg eax
add esp, 0x34
ret
Function at 0x4037e0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x14
push esi
push edi
push 0x4428c8
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
jne 0x403828
mov esi, dword [esp + 0x28]
test esi, esi
je 0x403820
call dword [sym.imp.MSVCRT.dll__errno]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.MSVCRT.dll_strerror]
add esp, 4
mov ecx, esi
push eax
call sub.MFC42.DLL_CString::operator
pop edi
xor al, al
pop esi
add esp, 0x14
ret
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x403838
mov edx, dword [eax]
mov dword [esp + 0x20], edx
jmp 0x403840
mov dword [esp + 0x20], 0
xor eax, eax
push ebx
mov ebx, dword [esp + 0x28]
mov dword [esp + 0xd], eax
mov dword [esp + 0x11], eax
push ebp
mov dword [esp + 0x19], eax
mov ecx, ebx
mov dword [esp + 0x1d], eax
mov byte [esp + 0x10], 0
mov word [esp + 0x21], ax
mov byte [esp + 0x23], al
call sub.MFC42.DLL_CString::Empty
mov ebp, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push edi
call ebp
push edi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push edi
mov esi, eax
call ebp
add esp, 0x1c
test esi, esi
je 0x4038af
push edi
push 1
push esi
push esi
mov ecx, ebx
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov ecx, ebx
push esi
call sub.MFC42.DLL_CString::ReleaseBuffer
mov eax, dword [esp + 0x30]
pop ebp
test eax, eax
pop ebx
je 0x4038cd
lea ecx, [esp + 8]
push esi
push ecx
push str._s_d_bytes
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x30]
add esp, 4
test eax, eax
je 0x4038e5
mov edx, dword [esp + 0x20]
mov dword [eax], edx
pop edi
mov al, 1
pop esi
add esp, 0x14
ret
Function at 0x4063d0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x42e35b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push str.HTTP_shellopencommand
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp]
mov dword [esp + 0x118], 0
push eax
push str.HTTP_shell
push 0x80000000
mov dword [esp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4064ad
push edi
mov ecx, 0x40
lea edi, [esp + 0x11]
mov byte [esp + 0x10], al
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push edx
stosb byte es:[edi], al
mov eax, dword [esp + 0xc]
push 0
push 0
push 0
push eax
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
push str.TencentTraveler
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
pop edi
jne 0x4064a2
lea ecx, [esp + 4]
mov dword [esp + 0x118], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
add esp, 0x11c
ret
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 4]
mov dword [esp + 0x118], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x110]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x11c
ret

Function at 0x4068c0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerBrowseNewProcess
push 0x80000001
mov esi, 1
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x406977
push edi
mov ecx, 0x40
lea edi, [esp + 0x11]
mov byte [esp + 0x10], al
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push edx
stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
push 0
push 0
push str.BrowseNewProcess
push eax
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
push 0x442b68
push ecx
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
pop edi
je 0x406962
mov edx, dword [esp + 4]
push 4
push 0x442b68
push esi
push 0
push str.BrowseNewProcess
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x406962
xor esi, esi
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret
xor eax, eax
pop esi
add esp, 0x10c
ret
Function at 0x407850
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42e608
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [esi + 0x2b4]
lea ecx, [esp + 0xc]
push eax
push 0x44212c
push ecx
mov dword [esp + 0x28], 0
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x30]
add esp, 0xc
mov ecx, edi
push edx
push str._UIN_
call sub.MFC42.DLL_CString::Replace
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.00407ca0
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x1c], 1
push ecx
push str._ADDEDSIGN_
mov ecx, edi
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_4
mov edx, dword [esi + 0x2b8]
lea eax, [esp + 8]
push edx
push 0x44211c
push eax
mov byte [esp + 0x28], 2
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x14]
add esp, 0xc
push ecx
push str._VERSION_
mov ecx, edi
call sub.MFC42.DLL_CString::Replace
push str.__domainqq.com__path__
mov ecx, edi
call fcn.00421068
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x40a000
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push edi
mov edi, ecx
call fcn.0040a0f0
test eax, eax
jne 0x40a01f
mov eax, 1
pop edi
add esp, 0x104
ret
push esi
lea esi, [edi + 0x34]
mov ecx, esi
call fcn.00421e80
push edi
mov ecx, esi
call fcn.004242c0
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 8]
push str.qzuif.tmp
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 8]
push 0
push edx
push str.http:__imgcache.qq.com_qzone_qzupdate.xml
mov ecx, esi
call fcn.00421ea0
pop esi
pop edi
add esp, 0x104
ret

Function at 0x40a080
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push esi
push eax
xor esi, esi
push str.SOFTWARETencentQzone
push 0x80000001
mov dword [esp + 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40a0e1
lea ecx, [esp + 0xc]
push ecx
call sub.MFC42.DLL_CTime::GetTickCount
mov edx, dword [eax]
mov ecx, dword [esp + 4]
lea eax, [esp + 8]
push 4
push eax
push 4
push esi
push str.LastUpdate
push ecx
mov dword [esp + 0x20], edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40a0d6
mov esi, 1
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0xc
ret

Function at 0x40a0f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
lea eax, [esp]
push esi
push eax
push str.SOFTWARETencentQzone
push 0x80000001
or esi, 0xffffffff
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40a18b
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x14]
push str.LastUpdate
push eax
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40a180
push ecx
mov ecx, dword [esp + 0x10]
mov eax, esp
lea edx, [esp + 0x14]
push edx
mov dword [eax], ecx
lea eax, [esp + 0x1c]
push eax
call sub.MFC42.DLL_CTime::GetTickCount
mov ecx, eax
call fcn.0040a1a0
mov ecx, dword [esp + 0x10]
mov eax, 0xc22e4507
imul ecx
add edx, ecx
xor eax, eax
sar edx, 0x10
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp edx, 5
setge al
mov esi, eax
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x14
ret

Function at 0x40ae50
Capabilities:
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x40]
call fcn.00421e80
mov eax, dword [esi + 0x3c]
lea edi, [esi + 0x3c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40ae78
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, edi
call sub.MFC42.DLL_CString::Empty
mov ecx, esi
call fcn.0040b4c0
mov ebx, dword [esi + 0x2c]
xor edi, edi
test ebx, ebx
jle 0x40ae9c
mov eax, dword [esi + 0x28]
mov ecx, dword [eax + edi*4]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
inc edi
cmp edi, ebx
jl 0x40ae88
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x24]
call sub.MFC42.DLL_CPtrArray::SetSize
pop edi
pop esi
pop ebx
ret
Function at 0x40be30
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.TTraveler_Tencent_SZCN_00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40be5f
mov edi, 1
test esi, esi
je 0x40be6a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

Function at 0x40c890
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42f1a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.00402d30
xor edi, edi
lea eax, [esi + 0x14]
mov dword [esp + 0x18], edi
mov dword [esp + 0xc], eax
mov dword [eax], 0x434a5c
mov byte [esp + 0x18], 1
mov dword [eax], 0x4351b0
mov dword [eax + 4], edi
mov dword [eax + 8], 0x11
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], edi
mov dword [eax + 0x18], 0xa
mov byte [esp + 0x18], 2
mov dword [esi + 0x30], edi
mov byte [esp + 0x18], 3
mov dword [esi], 0x435184
mov dword [esi + 0x10], edi
mov eax, dword [esi + 0x30]
cmp eax, edi
je 0x40c910
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x30], edi
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x40f150
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call sub.MSVCRT.dll_memset
and dword [esi + 0x10], 0
and dword [esi + 0x14], 0
and dword [esi + 0x58], 0
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
pop esi
ret
Function at 0x40fdfa
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [esi]
call sub.WS2_32.dll_ntohl
push dword [esi + 4]
mov edi, eax
call sub.WS2_32.dll_ntohl
mov ebx, eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
lea esi, [ebp - 0x10]
sub eax, ecx
mov dword [ebp + 8], 4
mov dword [ebp + 0xc], eax
jmp 0x40fe33
mov eax, dword [ebp + 0xc]
push dword [eax + esi]
call sub.WS2_32.dll_ntohl
mov dword [esi], eax
add esi, 4
dec dword [ebp + 8]
jne 0x40fe30
push 0x10
xor eax, eax
pop ecx
mov edx, ebx
mov esi, ebx
shr edx, 5
add edx, dword [ebp - 0xc]
sub eax, 0x61c88647
shl esi, 4
add esi, dword [ebp - 0x10]
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
add edi, edx
mov edx, edi
mov esi, edi
shr edx, 5
add edx, dword [ebp - 4]
shl esi, 4
add esi, dword [ebp - 8]
xor edx, esi
lea esi, [eax + edi]
xor edx, esi
add ebx, edx
dec ecx
jne 0x40fe4a
push edi
call sub.WS2_32.dll_htonl
mov esi, dword [ebp + 0x10]
push ebx
mov dword [esi], eax
call sub.WS2_32.dll_htonl
mov dword [esi + 4], eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40fe9d
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [esi]
call sub.WS2_32.dll_ntohl
push dword [esi + 4]
mov ebx, eax
call sub.WS2_32.dll_ntohl
mov edi, eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
lea esi, [ebp - 0x10]
sub eax, ecx
mov dword [ebp + 8], 4
mov dword [ebp + 0xc], eax
jmp 0x40fed6
mov eax, dword [ebp + 0xc]
push dword [eax + esi]
call sub.WS2_32.dll_ntohl
mov dword [esi], eax
add esi, 4
dec dword [ebp + 8]
jne 0x40fed3
push 0x10
mov eax, 0xe3779b90
pop ecx
mov edx, ebx
mov esi, ebx
shr edx, 5
add edx, dword [ebp - 4]
shl esi, 4
add esi, dword [ebp - 8]
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
sub edi, edx
mov edx, edi
mov esi, edi
shr edx, 5
add edx, dword [ebp - 0xc]
shl esi, 4
add esi, dword [ebp - 0x10]
xor edx, esi
lea esi, [eax + edi]
xor edx, esi
add eax, 0x61c88647
sub ebx, edx
dec ecx
jne 0x40fef0
push ebx
call sub.WS2_32.dll_htonl
mov esi, dword [ebp + 0x10]
push edi
mov dword [esi], eax
call sub.WS2_32.dll_htonl
mov dword [esi + 4], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410db0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x42f5b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea edi, [esi + 4]
mov ecx, edi
call fcn.00411260
lea ebx, [esi + 0x30]
mov dword [esp + 0x18], 0
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_4
mov ecx, edi
mov byte [esp + 0x18], 1
mov dword [esi], 0x4357f4
call fcn.004114e0
push 0x444028
mov ecx, ebx
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x412578
Capabilities:
Get hostname
Resolve dns

Disassembly:
mov eax, 0x42f80b
call fcn.00421770
sub esp, 0x120
push ebx
push esi
push edi
xor esi, esi
push 0x444028
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], esi
call sub.MFC42.DLL_CString::CString_2
push 1
lea ecx, [ebp - 0x1c]
pop edi
mov dword [ebp - 4], edi
call sub.MFC42.DLL_CString::CString_4
lea eax, [ebp - 0x12c]
push 0x100
push eax
mov byte [ebp - 4], 2
call dword [sym.imp.WSOCK32.dll_gethostname]
test eax, eax
je 0x4125e2
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x4125ce
mov dword [eax], esi
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 0x10], edi
jmp 0x41272b
lea eax, [ebp - 0x12c]
lea ecx, [ebp - 0x1c]
push eax
call sub.MFC42.DLL_CString::operator
push dword [ebp - 0x1c]
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x2c], ebx
jne 0x412615
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x41271c
mov dword [eax], esi
jmp 0x41271c
mov eax, dword [ebx + 0xc]
xor edx, edx
mov ecx, eax
cmp dword [ecx], esi
je 0x412626
inc edx
add ecx, 4
jmp 0x41261c
cmp edx, edi
jle 0x4126f0
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 0x20]
add eax, ecx
cmp dword [eax], 0
je 0x4126e2
mov eax, dword [eax]
mov edi, dword [eax]
push edi
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_2
push str.0.0.0.0
mov byte [ebp - 4], 3
push dword [ebp - 0x18]
call esi
pop ecx
test eax, eax
pop ecx
je 0x4126ac
lea eax, [ebp - 0x28]
push 3
push eax
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push 0x4431a0
push eax
mov byte [ebp - 4], 4
call esi
mov ebx, eax
pop ecx
neg ebx
pop ecx
mov byte [ebp - 4], 3
sbb bl, bl
lea ecx, [ebp - 0x28]
inc bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4126c4
mov ebx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
add dword [ebp - 0x20], 4
push 1
pop edi
jmp 0x41263a
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x14]
push eax
mov dword [ebp - 0x24], edi
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
push 1
pop edi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x41270d
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
jmp 0x41270d
mov eax, dword [eax]
mov esi, dword [eax]
push esi
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x41270d
mov dword [eax], esi
push dword [ebp - 0x14]
push str.GetLocalIP__s_r_n
call fcn.004128d7
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 0x10], edi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret