joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4011f0
Capabilities:
Print debug messages

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

Function at 0x401220
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push esi
mov esi, ecx
push str.CExchange::SetSite__
mov dword [esi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x40f9d0]
test eax, eax
je 0x401279
cmp dword [0x40f9e0], 1
jne 0x401279
mov ecx, dword [0x40f9e4]
test ecx, ecx
jne 0x401279
mov ecx, dword [esi + 0x24]
lea edx, [esp + 4]
push edx
push 8
mov dword [esp + 0xc], 0x3ea
mov dword [esp + 0x10], ecx
call eax
add esp, 8
mov dword [0x40f9e4], 1
pop esi
add esp, 8
ret 4
Function at 0x401580
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x409edb
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 0x4015fe
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 [0x40f974]
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 0x40165d
lea eax, [esp + 0x118]
push 0x2f
push eax
call esi
add esp, 8
dec edi
mov word [eax], 0
jne 0x40163b
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push str..config.ini
push 0
push str.Version
push 0x40f0a8
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.00407b40
add esp, 0x34
lea eax, [esp + 0x118]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::CString_3
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 0x40f070
push 0x40f0a8
call ebx
push 0
push eax
call fcn.00408230
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 0x401bd0
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 + 0xec]
pop esi
test eax, eax
je 0x401bf8
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push ecx
push edx
call eax
add esp, 8
ret 8

Function at 0x401c00
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 + 0xf0]
pop esi
test eax, eax
je 0x401c28
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push ecx
push edx
call eax
add esp, 8
ret 8
Function at 0x401c30
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 + 0xf4]
pop esi
test eax, eax
je 0x401c58
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push ecx
push edx
call eax
add esp, 8
ret 8

Function at 0x401c60
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x409f88
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
mov eax, dword [esi + 0xf8]
test eax, eax
jne 0x401c8a
call fcn.00401e20
push 0x40fa0c
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0xc]
mov dword [esp + 0x18], 0
push eax
call fcn.004040bf
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 0x401d2f
push eax
push eax
push 0x40f1dc
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 + 0xf0], eax
call edi
mov edx, dword [esi + 0xe4]
push str.ChatMessage
push edx
mov dword [esi + 0xec], eax
call edi
mov dword [esi + 0xf4], 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 0x401e20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x409fb8
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 0x40fa0c
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
call fcn.004040bf
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 0x401ec6
push eax
push eax
push str.fail_to_load_hcq.dll_
call sub.MFC42.DLL_AfxMessageBox
jmp 0x401f83
push str.DllGetClassObject
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x401ee2
mov eax, dword [edi + 0xe8]
push eax
jmp 0x401f7d
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
push ecx
push 0x40bf58
push 0x40b6a8
call eax
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x401f76
test eax, eax
jl 0x401f76
mov edx, dword [ecx]
lea esi, [edi + 0xd0]
push esi
push 0x40b688
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 0x401f61
test ebp, ebp
jl 0x401f61
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 0x401f83
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 0x4044a5
Capabilities:
Get file version info

Disassembly:
mov eax, 0x40a1f8
call fcn.00409af8
sub esp, 0x24
push ebx
push esi
xor ebx, ebx
lea ecx, [ebp + 8]
push ebx
push ebx
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::GetBuffer
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
lea ecx, [ebp - 0x18]
mov esi, eax
call sub.MFC42.DLL_CString::CString_2
cmp esi, ebx
mov byte [ebp - 4], 1
jne 0x4044e3
or esi, 0xffffffff
jmp 0x40456f
lea eax, [esi + 2]
push edi
push eax
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x10], eax
push eax
push esi
push ebx
push ebx
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40f4d0
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]
imul esi, esi, 0x64
add esi, edi
pop edi
imul esi, esi, 0x64
add esi, dword [ebp - 0x20]
xor ebx, ebx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
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 esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4067f2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp + 0xc]
push esi
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40684e
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x104
push eax
lea eax, [ebp - 0x104]
push eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push dword [ebp + 0x14]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x407531
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
and byte [ebp - 0x104], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x103
push dword [ebp + 8]
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x10
xor edx, edx
test eax, eax
jle 0x407597
cmp byte [ebp + edx - 0x104], 0x2f
lea ecx, [ebp + edx - 0x104]
jne 0x407592
mov byte [ecx], 0x5c
inc edx
cmp edx, eax
jl 0x40757e
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
lea esi, [ebp - 0x104]
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll__mbschr]
pop ecx
test eax, eax
pop ecx
je 0x4075f9
mov bl, byte [eax + 1]
lea esi, [eax + 1]
test bl, bl
je 0x407607
and byte [esi], 0
lea eax, [ebp - 0x104]
push eax
push 0x40f77c
call edi
pop ecx
test eax, eax
pop ecx
je 0x4075f5
lea eax, [ebp - 0x104]
push eax
push 0x40f778
call edi
pop ecx
test eax, eax
pop ecx
je 0x4075f5
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.MSVCRT.dll__mkdir]
pop ecx
mov byte [esi], bl
jmp 0x4075a3
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.MSVCRT.dll__mkdir]
pop ecx
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__mkdir]
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407ee0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [0x40fbc8]
sub esp, 0x208
cmp dword [eax + 0x1c], 0x2710
ja 0x407f5a
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 [0x40fbbc]
pop edi
test eax, eax
jne 0x407f1a
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 [0x40fbc8]
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 [0x40fbc8]
mov dword [edx + 0x1c], eax
add esp, 0x208
ret
Function at 0x408680
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 0x4087c6
mov eax, dword [str.EPIPEMAGQQ]
mov ecx, dword [0x40f8a8]
mov dx, word [0x40f8ac]
mov dword [esp + 0x18], eax
mov al, byte [0x40f8ae]
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 0x40879e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xc
push eax
mov ecx, ebx
call fcn.00408800
cmp eax, 1
jne 0x4087ba
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 0x4087a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
push ecx
push eax
mov ecx, ebx
call fcn.00408800
jmp 0x4087ba
cmp dword [esp + 0x14], 0xc
je 0x408773
jmp 0x4087b3
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp edx, eax
je 0x4087ba
mov ecx, ebx
call fcn.00408850
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 0x4088f0
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 [0x40fc1c], ecx
mov ecx, esi
call fcn.00408c30
mov eax, dword [esi + 4]
lea edx, [esp + 8]
push edx
push 0
push eax
push 0x408940
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 0x408fa0
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 0x408fd6
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 0x408ffd
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 0x409070
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 0x4090a6
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 0x4090d0
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 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10002310
Capabilities:
Create thread

Disassembly:
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x1000232f
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 8]
push eax
call fcn.10001bb0
pop edi
ret 0x14
push esi
push 0x350
push 0x40
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x1000239c
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
push edx
lea eax, [esi + 8]
mov dword [esi], edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
mov dword [esi + 4], ecx
call edi
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esi + 0x44]
push edx
call edi
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esi + 0x148]
push ecx
call edi
lea edx, [esp + 0x18]
push edx
push 0
push esi
push 0x100022b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop edi
ret 0x14

Function at 0x10002f40
Capabilities:
Get common file path

Disassembly:
sub esp, 0x310
mov eax, dword [0x1003f050]
xor eax, esp
mov dword [esp + 0x30c], eax
push 0x104
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x100353dc
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x10042160], eax
test eax, eax
jne 0x10002fbd
lea eax, [esp]
push eax
lea ecx, [esp + 0x108]
push 0x100353e8
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x10
push str.AheadLib
lea edx, [esp + 0x10c]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x10042160]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
mov ecx, dword [esp + 0x30c]
xor ecx, esp
call fcn.1001c89c
add esp, 0x310
ret

Function at 0x10002fe0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x118
mov eax, dword [0x1003f050]
xor eax, esp
mov dword [esp + 0x114], eax
mov eax, dword [0x10042160]
push esi
mov esi, ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x10003059
mov ecx, esi
shr ecx, 0x10
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
test ecx, ecx
jne 0x1000302c
push esi
lea edx, [esp + 0xc]
push 0x10035414
push edx
call edi
add esp, 0xc
lea esi, [esp + 8]
push esi
lea eax, [esp + 0x1c]
push 0x10035418
push eax
call edi
add esp, 0xc
push 0x10
push str.AheadLib
lea ecx, [esp + 0x20]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xfffffffffffffffe
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.1001c89c
add esp, 0x118
ret
Function at 0x10003d00
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x10003d19
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x10003d66
mov ecx, dword [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x10003d66
lea edx, [esp + 8]
push edx
push 0x40
push 3
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov cl, byte [esp + 0xc]
mov byte [esp + 8], 0xc2
mov byte [esp + 9], cl
mov dx, word [esp + 8]
xor al, al
mov word [esi], dx
mov byte [esi + 2], al
mov eax, 1
pop esi
ret 8
xor eax, eax
pop esi
ret 8

Function at 0x100042a0
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x228
mov eax, dword [0x1003f050]
xor eax, esp
mov dword [esp + 0x224], eax
push esi
push edi
mov edi, dword [esp + 0x234]
call fcn.10003fc0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x24]
push ecx
push 5
xor esi, esi
push 4
push str.MACHINE
mov dword [esp + 0x34], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x100043a2
mov edx, dword [esp + 0x10]
push esi
push edx
push esi
push eax
push 4
push 4
push str.MACHINESYSTEMCurrentControlSetControlSession_ManagerKnownDLLs
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
lea eax, [esp + 8]
push eax
push str.SYSTEMCurrentControlSetControlSession_ManagerKnownDLLs
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp dword [esp + 8], esi
je 0x100043a2
push 0x206
lea edx, [esp + 0x26]
xor ecx, ecx
push esi
push edx
mov word [esp + 0x2c], cx
call fcn.1001eb30
add esp, 0xc
push edi
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [esp + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea ecx, [esp + 0x20]
push ecx
push edx
call edi
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
mov edx, dword [esp + 8]
lea ecx, [esp + 0x20]
push ecx
push edx
call edi
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
cmp eax, esi
je 0x100043b1
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.1001c89c
add esp, 0x228
ret 4