joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454724
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor ecx, ecx
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0x108], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x4548d6
push dword fs:[edx]
mov dword fs:[edx], esp
cmp eax, 6
ja case.0x454755.0
jmp dword [eax*4 + 0x45475c]
lea eax, [ebp - 4]
push eax
push 0x19
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0x104]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov eax, ebx
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.00404548
jmp 0x4548b8
lea eax, [ebp - 4]
push eax
push 0x16
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0x104]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov eax, ebx
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.00404548
jmp 0x4548b8
lea eax, [ebp - 4]
push eax
push 0x17
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0x104]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov eax, ebx
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.00404548
jmp 0x4548b8
lea eax, [ebp - 4]
push eax
push 0x18
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0x104]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov eax, ebx
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.00404548
jmp 0x4548b8
push 0xc8
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x108]
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.00404548
mov eax, dword [ebp - 0x108]
mov edx, ebx
call fcn.00408440
jmp 0x4548b8
push 0xc8
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.00404548
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.00408440
jmp 0x4548b8
mov eax, ebx
call fcn.004042e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4548dd
lea eax, [ebp - 0x10c]
mov edx, 2
call fcn.00404304
ret
Function at 0x458140
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x45816e
mov eax, ebx
call fcn.00458bf8
cmp dword [ebx + 0x3c], 0
je 0x458167
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x4581df
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x4581d1
cmp dword [ebx + 8], 0
je 0x458190
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x4581a2
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4581d1
cmp dword [ebx + 8], 0
je 0x458183
cmp eax, 3
je 0x4581b5
dec eax
jne 0x458183
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x458183
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x458183
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x4581fd
cmp dword [ebx + 0x10], 0xcc
je 0x4581fd
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00458208
pop ebx
ret
Function at 0x4011f0
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
push str.CExchange::Initialize__
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x40b628]
test eax, eax
je 0x401211
mov ecx, dword [eax]
add esi, 0x20
push esi
push eax
call dword [ecx + 0x10]
pop esi
ret 4

Function at 0x4019a0
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
push str.CGameClientApp__OnGameMessage
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 0xf8]
pop esi
test eax, eax
je 0x4019c8
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push ecx
push edx
call eax
add esp, 8
ret 8

Function at 0x4019d0
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
push str.CGameClientApp__OnOtherMsg
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 0xfc]
pop esi
test eax, eax
je 0x4019f8
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push ecx
push edx
call eax
add esp, 8
ret 8

Function at 0x401a00
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
push str.CGameClientApp__OnChatMsg
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 0x100]
pop esi
test eax, eax
je 0x401a28
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push ecx
push edx
call eax
add esp, 8
ret 8

Function at 0x401a30
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4077e8
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
mov eax, dword [esi + 0xec]
test eax, eax
jne 0x401a5a
call fcn.00401bf0
push 0x40b65c
lea ecx, [esp + 8]
call fcn.00403558
lea eax, [esp + 0xc]
mov dword [esp + 0x18], 0
push eax
call fcn.004039b8
add esp, 4
push str.GameFrame.dll
lea ecx, [esp + 0xc]
push eax
push ecx
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 8]
mov byte [esp + 0x18], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 0xe4], eax
jne 0x401aff
push eax
push eax
push 0x40b15c
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GameFrameCmd
push eax
call edi
mov dword [esi + 0xc8], eax
mov eax, dword [esi + 0xe4]
push str.OtherMessage
push eax
call edi
mov ecx, dword [esi + 0xe4]
push str.GameMessage
push ecx
mov dword [esi + 0xfc], eax
call edi
mov edx, dword [esi + 0xe4]
push str.ChatMessage
push edx
mov dword [esi + 0xf8], eax
call edi
mov dword [esi + 0x100], eax
mov eax, dword [esi + 0xe4]
push str.GameTimer
push eax
call edi
lea ecx, [esp + 8]
mov dword [esi + 0xcc], eax
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
Function at 0x401bf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x407818
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
push esi
push edi
mov edi, ecx
push 0x40b65c
lea ecx, [esp + 0x10]
call fcn.00403558
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
call fcn.004039b8
add esp, 4
push str.hcq.dll
lea ecx, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 2
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [edi + 0xe8], eax
jne 0x401c96
push eax
push eax
push str.fail_to_load_hcq.dll_
call sub.MFC42.DLL_AfxMessageBox
jmp 0x401d53
push str.DllGetClassObject
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x401cb2
mov eax, dword [edi + 0xe8]
push eax
jmp 0x401d4d
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
push ecx
push 0x408e08
push 0x408588
call eax
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x401d46
test eax, eax
jl 0x401d46
mov edx, dword [ecx]
lea esi, [edi + 0xd0]
push esi
push 0x408568
push 0
push ecx
call dword [edx + 0xc]
mov ebp, eax
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esi]
test eax, eax
je 0x401d31
test ebp, ebp
jl 0x401d31
mov edx, dword [eax]
push 0x10
push eax
call dword [edx + 0xc]
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov eax, dword [edi + 0xe8]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi], 0
jmp 0x401d53
mov ecx, dword [edi + 0xe8]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x401e30
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x40783b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x518
push ebx
push ebp
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x322]
mov word [esp + 0x320], 0
rep stosd dword es:[edi], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x103
stosw word es:[edi], ax
lea eax, [esp + 0x324]
push eax
push 0
call ebx
mov esi, dword [sym.imp.MSVCRT.dll_wcsrchr]
lea ecx, [esp + 0x320]
push 0x5c
push ecx
call esi
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x401eae
lea edx, [esp + 0x320]
push 0x2f
push edx
call esi
add esp, 8
mov ebp, eax
mov word [ebp], 0
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x11a]
mov word [esp + 0x118], 0
push 0x103
rep stosd dword es:[edi], eax
mov ecx, dword [0x40b5c4]
stosw word es:[edi], ax
lea eax, [esp + 0x11c]
push eax
push ecx
call ebx
mov edi, 2
lea edx, [esp + 0x118]
push 0x5c
push edx
call esi
add esp, 8
test eax, eax
jne 0x401f0d
lea eax, [esp + 0x118]
push 0x2f
push eax
call esi
add esp, 8
dec edi
mov word [eax], 0
jne 0x401eeb
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push str..config.ini
push 0
push str.Version
push 0x40b224
call ebx
mov ecx, eax
mov eax, 0x431bde83
mul ecx
mov esi, edx
mov eax, ecx
xor edx, edx
mov edi, 0xf4240
div edi
mov eax, 0xd1b71759
shr esi, 0x12
mul edx
mov edi, edx
mov eax, ecx
xor edx, edx
mov ecx, 0x2710
div ecx
lea ecx, [esp + 0x118]
lea eax, [ebp + 2]
push ecx
push 0xffffffffffffffff
push 0
push 0x804
push 1
push 1
shr edi, 0xd
push edx
push edi
push esi
lea edx, [esp + 0x344]
push eax
push edx
push eax
push str.QQGame
call fcn.00405160
add esp, 0x34
lea eax, [esp + 0x118]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::CString_1
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
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x534], 0
stosb byte es:[edi], al
call sub.MFC42.DLL_CString::GetBuffer
push eax
push str._sconfigDynamicInfo.ini
lea ecx, [esp + 0x1c]
push 0x103
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea edx, [esp + 0x14]
push edx
push 0x2710
push 0x40b1ec
push 0x40b224
call ebx
push 0
push eax
call fcn.00405850
add esp, 8
lea ecx, [esp + 0x10]
mov dword [esp + 0x530], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x518]
mov dword fs:[0], ecx
add esp, 0x524
ret
Function at 0x403ca1
Capabilities:
Get file version info

Disassembly:
mov eax, 0x4079c8
call fcn.00407478
sub esp, 0x24
push esi
push edi
xor edi, edi
push edi
mov dword [ebp - 4], edi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
lea ecx, [ebp - 0x18]
mov esi, eax
call sub.MFC42.DLL_CString::CString_3
cmp esi, edi
mov byte [ebp - 4], 1
jne 0x403cd8
or esi, 0xffffffff
jmp 0x403d5b
lea eax, [esi + 2]
push ebx
push eax
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x10], eax
push eax
push esi
push edi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40b384
push dword [ebp - 0x10]
call sub.VERSION.dll_VerQueryValueA
mov ecx, dword [ebp - 0x14]
push 0x64
xor edx, edx
pop ebx
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov esi, eax
mov edi, ecx
and eax, 0xffff
push dword [ebp - 0x10]
shr edi, 0x10
mov dword [ebp - 0x2c], eax
mov eax, edi
div ebx
and ecx, 0xffff
shr esi, 0x10
mov dword [ebp - 0x20], ecx
mov ebx, eax
imul eax, eax, 0x64
sub edi, eax
call sub.MFC42.DLL_operatordelete
imul esi, esi, 0x64
add esi, dword [ebp - 0x2c]
pop ecx
lea eax, [esi + esi*4]
lea esi, [ebx + eax*2]
pop ebx
imul esi, esi, 0x64
add esi, edi
imul esi, esi, 0x64
add esi, dword [ebp - 0x20]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x405500
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [0x40b700]
sub esp, 0x208
cmp dword [eax + 0x1c], 0x2710
ja 0x40557a
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x40b6f4]
pop edi
test eax, eax
jne 0x40553a
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
push str._s....configDynamicInfo.ini
lea ecx, [esp + 8]
push 0x103
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov eax, dword [0x40b700]
add esp, 0x10
lea edx, [esp]
mov ecx, dword [eax + 0x1c]
push edx
push ecx
push str.LastQQUin
push str.Public
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [0x40b700]
mov dword [edx + 0x1c], eax
add esp, 0x208
ret
Function at 0x405ca0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x94
xor eax, eax
mov edx, dword [esp + 0x98]
mov dword [esp + 9], eax
push ebx
mov dword [esp + 0x11], eax
mov ebx, ecx
mov ecx, dword [esp + 0xa8]
mov word [esp + 0x15], ax
mov byte [esp + 0x17], al
mov dword [esp + 8], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0xc], ecx
test eax, eax
mov dword [esp + 0x14], edx
je 0x405de6
mov eax, dword [str.EPIPEMAGQQ]
mov ecx, dword [0x40b504]
mov dx, word [0x40b508]
mov dword [esp + 0x18], eax
mov al, byte [0x40b50a]
push ebp
push esi
push edi
mov dword [esp + 0x28], ecx
mov byte [esp + 0x2e], al
mov ecx, 0x1d
xor eax, eax
lea edi, [esp + 0x2f]
mov word [esp + 0x2c], dx
rep stosd dword es:[edi], eax
mov edx, dword [ebx + 0x24]
lea esi, [ebx + 0x24]
stosb byte es:[edi], al
mov edi, dword [esp + 0xac]
mov ecx, esi
push edi
call dword [edx]
push eax
mov dword [esp + 0x14], eax
call sub.MFC42.DLL_operatornew
add esp, 4
lea ecx, [esp + 0x10]
mov ebp, eax
mov eax, dword [esi]
push ecx
mov ecx, dword [esp + 0xb4]
lea edx, [esp + 0x28]
push ebp
push edx
push edi
push ecx
mov ecx, esi
call dword [eax + 4]
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [ebx + 0x10]
lea eax, [esp + 0x14]
push esi
mov dword [esp + 0x20], edx
mov edx, dword [ebx + 8]
push eax
lea ecx, [esp + 0x20]
push 0xc
push ecx
push edx
call edi
test eax, eax
jne 0x405dbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xc
push eax
mov ecx, ebx
call fcn.00405e20
cmp eax, 1
jne 0x405dda
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 8]
lea eax, [esp + 0x14]
push esi
push eax
push ecx
push ebp
push edx
call edi
test eax, eax
jne 0x405dc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
push ecx
push eax
mov ecx, ebx
call fcn.00405e20
jmp 0x405dda
cmp dword [esp + 0x14], 0xc
je 0x405d93
jmp 0x405dd3
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp edx, eax
je 0x405dda
mov ecx, ebx
call fcn.00405e70
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 0x10

Function at 0x405f10
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov ecx, dword [esp + 0xc]
mov dword [esi + 4], eax
mov dword [0x40b754], ecx
mov ecx, esi
call fcn.00406250
mov eax, dword [esi + 4]
lea edx, [esp + 8]
push edx
push 0
push eax
push 0x405f60
push 0
push 0
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
ret 8
Function at 0x4065c0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
mov eax, dword [edi]
push eax
call sub.WSOCK32.dll_ntohl
mov ecx, dword [edi + 4]
mov esi, eax
push ecx
call sub.WSOCK32.dll_ntohl
mov ebp, dword [esp + 0x28]
lea edx, [esp + 0x10]
mov edi, eax
lea ebx, [esp + 0x10]
sub ebp, edx
mov dword [esp + 0x24], 4
mov eax, dword [ebx + ebp]
push eax
call sub.WSOCK32.dll_ntohl
mov dword [ebx], eax
mov eax, dword [esp + 0x24]
add ebx, 4
dec eax
mov dword [esp + 0x24], eax
jne 0x4065f6
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x24], 0x10
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
mov edx, edi
sub eax, 0x61c88647
shr edx, 5
add edx, ebx
mov ebx, edi
shl ebx, 4
add ebx, ebp
mov ebp, dword [esp + 0x18]
xor edx, ebx
lea ebx, [eax + edi]
xor edx, ebx
add esi, edx
mov edx, esi
mov ebx, esi
shr edx, 5
shl ebx, 4
add edx, ecx
add ebx, ebp
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
add edi, edx
mov edx, dword [esp + 0x24]
dec edx
mov dword [esp + 0x24], edx
jne 0x40661d
push esi
call sub.WSOCK32.dll_htonl
mov esi, dword [esp + 0x2c]
push edi
mov dword [esi], eax
call sub.WSOCK32.dll_htonl
mov dword [esi + 4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

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

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov eax, dword [esi]
push eax
call sub.WSOCK32.dll_ntohl
mov ecx, dword [esi + 4]
mov edi, eax
push ecx
call sub.WSOCK32.dll_ntohl
mov ebp, dword [esp + 0x28]
lea edx, [esp + 0x10]
mov esi, eax
lea ebx, [esp + 0x10]
sub ebp, edx
mov dword [esp + 0x24], 4
mov eax, dword [ebx + ebp]
push eax
call sub.WSOCK32.dll_ntohl
mov dword [ebx], eax
mov eax, dword [esp + 0x24]
add ebx, 4
dec eax
mov dword [esp + 0x24], eax
jne 0x4066c6
mov ecx, dword [esp + 0x14]
mov eax, 0xe3779b90
mov dword [esp + 0x24], 0x10
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov edx, edi
shr edx, 5
add edx, ebx
mov ebx, edi
shl ebx, 4
add ebx, ebp
mov ebp, dword [esp + 0x10]
xor edx, ebx
lea ebx, [eax + edi]
xor edx, ebx
sub esi, edx
mov edx, esi
mov ebx, esi
shr edx, 5
shl ebx, 4
add edx, ecx
add ebx, ebp
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
add eax, 0x61c88647
sub edi, edx
mov edx, dword [esp + 0x24]
dec edx
mov dword [esp + 0x24], edx
jne 0x4066f0
push edi
call sub.WSOCK32.dll_htonl
mov edi, dword [esp + 0x2c]
push esi
mov dword [edi], eax
call sub.WSOCK32.dll_htonl
mov dword [edi + 4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x40318c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404e6c
test esi, esi
jne 0x4031c2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404f5c
jmp 0x4031e0
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403030
mov edi, eax
test esi, esi
je 0x4031e0
cmp dword [ebx], 0
je 0x4031e0
dec esi
jmp 0x4031c9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403a7c
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, eax
movzx eax, word [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x403aaf
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_WriteFile
pop edx
dec eax
jne 0x403ab6
cmp edx, dword [ebx + 8]
je 0x403ac0
mov eax, 0x65
jmp 0x403abb
mov eax, 5
jmp 0x403abb
call sub.kernel32.dll_GetLastError
call fcn.00402eb0
mov eax, ebx
pop ebx
ret

Function at 0x403e18
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4a2020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403eb0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403e90
xor eax, eax
push ebp
push 0x403e89
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 0x403ecc
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 0x403e90
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x4a2020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4a2020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404cec
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4a604c], 0
je 0x404d4d
cmp word [0x4a6220], 0xd7b2
jne 0x404d15
cmp dword [0x4a6228], 0
jbe 0x404d15
mov eax, 0x4a621c
call dword [0x4a6238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x404d74
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a202c], 0
jne 0x404d69
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret