joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1315bbb0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Send data
Send data on socket

Disassembly:
sub esp, 0x9a0
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov edi, ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dx, word [0x1315e074]
xor ecx, ecx
mov dword [esp + 8], ecx
push edx
mov dword [esp + 0x10], ecx
mov word [esp + 0xc], 2
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
call dword [sym.imp.WS2_32.dll_ntohs]
push 0x1315df70
mov ecx, edi
mov word [esp + 0xe], ax
call fcn.1315b460
push 6
push 1
push 2
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
lea eax, [esp + 8]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1315bc3c
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
mov eax, 1
pop esi
add esp, 0x9a0
ret
push ebx
push 0x400
mov ecx, edi
call fcn.131597b0
mov ebx, eax
push 0x1a
mov ecx, edi
add ebx, 0x400
call fcn.131597b0
add eax, 0x61
mov ecx, ebx
mov bl, al
mov edx, ecx
mov bh, bl
lea edi, [esp + 0x1ac]
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [sym.imp.kernel32.dll_Sleep]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [sym.imp.WS2_32.dll_send]
cmp dword [0x1315ec04], 1
je 0x1315bcad
push 0
lea eax, [esp + 0x1b0]
push 0x800
push eax
push esi
call edi
push 0xa
call ebx
jmp 0x1315bc8c
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x9a0
ret

Function at 0x1315bcd0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x404]
test eax, eax
jle 0x1315bd03
push ebx
mov ebx, dword [sym.imp.kernel32.dll_CreateThread]
push 0
push 0
push esi
push 0x1315bcc0
push 0
push 0
call ebx
mov eax, dword [esi + 0x404]
inc edi
cmp edi, eax
jl 0x1315bce7
pop ebx
pop edi
pop esi
ret
Function at 0x1315c620
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x404]
test eax, eax
jle 0x1315c653
push ebx
mov ebx, dword [sym.imp.kernel32.dll_CreateThread]
push 0
push 0
push esi
push 0x1315c610
push 0
push 0
call ebx
mov eax, dword [esi + 0x404]
inc edi
cmp edi, eax
jl 0x1315c637
pop ebx
pop edi
pop esi
ret

Function at 0x13162e91
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
cmp eax, 5
jae 0x13162ea7
xor eax, eax
jmp 0x1316301d
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x18]
mov edx, ecx
push esi
sub edx, dword [ebx]
cmp edx, 5
jbe 0x13162ebd
lea edx, [ecx - 5]
mov dword [ebx], edx
mov esi, dword [ebp + 0x14]
add eax, 0xfffffffb
mov dword [ebp - 4], eax
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 8]
mov al, byte [edi + edx]
cmp al, 0xe8
je 0x13162ee0
cmp al, 0xe9
je 0x13162ee0
inc edi
inc dword [ebp + 0xc]
jmp 0x13163010
mov eax, dword [ebp + 0xc]
mov ecx, edi
sub ecx, dword [ebx]
mov dword [ebx], eax
add ecx, dword [ebp + 0x10]
cmp ecx, 5
jbe 0x13162ef6
and dword [esi], 0
jmp 0x13162f06
test ecx, ecx
jbe 0x13162f06
mov eax, dword [esi]
and eax, 0x77
shl eax, 1
dec ecx
mov dword [esi], eax
jne 0x13162efa
mov cl, byte [edi + edx + 4]
lea eax, [edi + edx + 4]
test cl, cl
je 0x13162f1b
cmp cl, 0xff
jne 0x13162ff8
mov ebx, dword [esi]
mov dword [ebp + 0x14], ebx
shr dword [ebp + 0x14], 1
mov ebx, dword [ebp + 0x14]
and ebx, 7
cmp dword [ebx*4 + 0x131625f4], 0
je 0x13162ff5
mov ebx, dword [esi]
and ebx, 0xfffffffe
cmp ebx, 0x20
jae 0x13162ff5
xor ebx, ebx
mov bh, cl
mov bl, byte [edi + edx + 3]
movzx ecx, byte [edi + edx + 2]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [edi + edx + 1]
shl ebx, 8
or ebx, ecx
mov edx, ebx
cmp dword [ebp + 0x1c], 0
je 0x13162f72
mov ecx, dword [ebp + 0xc]
lea ebx, [ecx + edx + 5]
jmp 0x13162f7c
sub edx, edi
sub edx, dword [ebp + 0x10]
sub edx, 5
mov ebx, edx
mov ecx, dword [esi]
test ecx, ecx
je 0x13162fbf
mov ecx, dword [ebp + 0x14]
push 0x18
movzx ecx, byte [ecx + 0x13162614]
shl ecx, 3
mov edx, ecx
pop ecx
sub ecx, edx
mov edx, ebx
shr edx, cl
test dl, dl
je 0x13162fa3
cmp dl, 0xff
jne 0x13162fbf
mov edx, dword [ebp + 0x14]
push 4
pop ecx
movzx edx, byte [edx + 0x13162614]
sub ecx, edx
push 1
shl ecx, 3
pop edx
shl edx, cl
dec edx
xor edx, ebx
jmp 0x13162f63
mov ecx, ebx
add dword [ebp + 0xc], 5
shr ecx, 0x18
and cl, 1
add edi, 5
dec cl
not cl
mov byte [eax], cl
mov eax, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + eax - 2], cl
mov ecx, ebx
shr ecx, 8
mov byte [edi + eax - 3], cl
mov byte [edi + eax - 4], bl
and dword [esi], 0
mov ebx, dword [ebp + 0x18]
jmp 0x13163010
mov ebx, dword [ebp + 0x18]
or dword [esi], 1
mov al, byte [eax]
mov ecx, dword [esi]
inc edi
inc dword [ebp + 0xc]
test al, al
je 0x1316300b
cmp al, 0xff
jne 0x13163010
or ecx, 0x10
mov dword [esi], ecx
cmp edi, dword [ebp - 4]
jbe 0x13162ec9
pop esi
mov eax, edi
pop ebx
pop edi
leave
ret
Function at 0x40144c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 4, 0
mov esi, eax
lea edx, [eax + 1]
imul edx, dword [0x402050]
mov ebx, eax
mov eax, 0x402054
call fcn.0040139e
lea edx, [ebp - 4]
push edx
mov edx, esi
or dl, 0x40
mov edi, 0x401e27
push edx
sub edi, fcn.004015f2
push edi
xor eax, eax
push fcn.004015f2
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp - 4], 0
je 0x4014b8
mov eax, fcn.004015f2
mov ebx, esi
mov edx, edi
call fcn.0040139e
mov edx, 0x1b400
mov eax, 0x402054
mov ebx, esi
call fcn.0040126b
leave
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret

Function at 0x401535
Capabilities:
Encode data using base64 via winapi
Initialize winsock library

Disassembly:
push ebx
push ecx
push edx
enter 0x13c, 0
push 0
push 0x202
call dword [sym.imp.WS2_32.DLL_WSAStartup]
xor eax, eax
push eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push 0x7f00
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x1c], 6
push eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.USER32.DLL_LoadIconA]
push 0x7f00
push 0
mov dword [ebp - 0x24], eax
call dword [sym.imp.USER32.DLL_LoadCursorA]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.DLL_RegisterClassW]
push 0
push 0
call dword [sym.imp.USER32.DLL_LoadAcceleratorsA]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 1
push 1
lea eax, [ebp - 0x13c]
push eax
mov dword [ebp - 4], 0xa
mov byte [ebp - 0x13c], 0
call dword [sym.imp.CRYPT32.DLL_CryptBinaryToStringA]
movzx eax, byte [ebp - 0x10]
lea ebx, [eax - 0x47]
call dword [sym.imp.WS2_32.DLL_WSACleanup]
mov eax, dword [ebp - 4]
add eax, ebx
leave
pop edx
pop ecx
pop ebx
ret
Function at 0x40121e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401235
test al, 0x10
jne 0x401235
xor eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x401279
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4d7590]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test ebx, ebx
jne 0x40129f
xor al, al
jmp 0x4013bd
push edi
xor eax, eax
push 0x206
push eax
mov word [ebx], ax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00436ec0
add esp, 0xc
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x4a98e0
call fcn.00436ac4
mov esi, eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00436ac4
add esi, eax
pop ecx
pop ecx
cmp esi, edi
ja 0x40131e
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.00436617
mov esi, eax
lea eax, [ebp - 0x20c]
push 0x2f
push eax
call fcn.00436617
add esp, 0x10
test esi, esi
jne 0x401325
test eax, eax
jne 0x401329
xor al, al
jmp 0x4013bc
cmp esi, eax
ja 0x40132b
mov esi, eax
xor eax, eax
mov word [esi], ax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00436ec0
lea eax, [esi + 4]
push 0x2e
push eax
call fcn.00436617
add esp, 0x14
test eax, eax
je 0x401360
xor ecx, ecx
mov word [eax], cx
add esi, 2
push esi
push str._s.log
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.00436dd8
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.00436db9
push 0x4a98b0
push ebx
call fcn.00436d8b
push ebx
call fcn.0040121e
add esp, 0x24
test eax, eax
je 0x4013a2
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x414]
push eax
push ebx
call fcn.00436d8b
pop ecx
pop ecx
mov al, 1
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00436eab
leave
ret

Function at 0x4013cb
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
or edx, 0xffffffff
cmp edi, edx
jne 0x4013f9
mov eax, edx
jmp 0x401424
push ebx
lea eax, [ebp - 4]
push eax
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push esi
push esi
push dword [ebp - 4]
call fcn.00436f40
xor ecx, ecx
add eax, ebx
adc edx, ecx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x4018ad
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4d7590]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00436ec0
push 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0043729d
add esp, 0x18
test esi, esi
je 0x401940
cmp word [esi], 0
je 0x401940
lea eax, [ebp - 0x20c]
push eax
call fcn.00401238
pop ecx
test al, al
je 0x401940
lea eax, [ebp - 0x20c]
push eax
call fcn.0040121e
pop ecx
test eax, eax
je 0x40192d
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov al, 1
jmp 0x401942
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00436eab
leave
ret
Function at 0x40194f
Capabilities:
Check mutex on windows
Delete file
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x119c]
mov eax, 0x121c
call fcn.00437a10
mov eax, dword [0x4d7590]
xor eax, ebp
mov dword [ebp + 0x1198], eax
cmp dword [ebp + 0x11a4], 0xffffffff
jne 0x401983
mov byte [0x4d503c], 1
jmp 0x401b73
cmp dword [ebp + 0x11a4], 0xfffffffe
jne 0x401998
mov byte [0x4d503c], 0
jmp 0x401b73
push ebx
xor ebx, ebx
cmp byte [0x4d503c], bl
je 0x401b72
cmp dword [ebp + 0x11a4], ebx
je 0x401b72
cmp byte [0x4dbeb4], bl
jne 0x4019d4
push str.LOCALLOG
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x4dbeb0], eax
mov byte [0x4dbeb4], 1
push esi
push 0xffffffffffffffff
push dword [0x4dbeb0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
push 0xffe
mov word [ebp - 0x68], ax
lea eax, [ebp - 0x66]
push ebx
push eax
call fcn.00436ec0
xor eax, eax
push 0x1fe
mov word [ebp + 0xf98], ax
lea eax, [ebp + 0xf9a]
push ebx
push eax
call fcn.00436ec0
add esp, 0x18
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x74]
push eax
movzx eax, word [ebp - 0x76]
push eax
movzx eax, word [ebp - 0x78]
push eax
movzx eax, word [ebp - 0x7a]
push eax
movzx eax, word [ebp - 0x7e]
push eax
movzx eax, word [ebp - 0x80]
push eax
push str._04d__02d__02d__02d:_02d:_02d
mov esi, 0x100
lea eax, [ebp + 0xf98]
push esi
push eax
call fcn.00436dd8
push esi
lea eax, [ebp + 0xf98]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.0043729d
add esp, 0x30
lea eax, [ebp + 0x11ac]
push eax
push dword [ebp + 0x11a8]
mov esi, 0x800
lea eax, [ebp + 0xf98]
push esi
push eax
call fcn.00436ac4
pop ecx
lea eax, [ebp + eax*2 - 0x68]
push eax
call fcn.004379e8
lea eax, [ebp - 0x68]
push eax
call fcn.00436ac4
sub esi, eax
push esi
lea eax, [ebp - 0x68]
push 0x4a9930
push eax
call fcn.004378d4
add esp, 0x20
mov esi, 0x4daeb0
cmp byte [0x4daea8], bl
jne 0x401ad5
push ebx
push esi
call fcn.00401279
pop ecx
pop ecx
test al, al
je 0x401b65
mov byte [0x4daea8], 1
push esi
mov byte [ebp - 0x69], bl
call fcn.0040121e
pop ecx
push esi
test eax, eax
jne 0x401af0
call fcn.004018ad
pop ecx
test al, al
je 0x401b65
jmp 0x401b0a
call fcn.004013cb
cmp edx, ebx
pop ecx
jl 0x401b0e
jg 0x401b03
cmp eax, 0xa00000
jbe 0x401b0e
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 0x69], 1
push 0x4a9928
push esi
call fcn.0043786a
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x401b65
mov byte [ebp - 0x70], 0xff
mov byte [ebp - 0x6f], 0xfe
cmp byte [ebp - 0x69], bl
je 0x401b3f
push esi
push 2
lea eax, [ebp - 0x70]
push 1
push eax
call fcn.00437722
add esp, 0x10
lea eax, [ebp - 0x68]
push esi
push eax
call fcn.00436ac4
pop ecx
push eax
lea eax, [ebp - 0x68]
push 2
push eax
call fcn.00437722
push esi
call fcn.00437564
push esi
call fcn.0043735e
add esp, 0x18
push dword [0x4dbeb0]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
pop ebx
mov ecx, dword [ebp + 0x1198]
xor ecx, ebp
call fcn.00436eab
add ebp, 0x119c
leave
ret
Function at 0x402b3b
Capabilities:
Delete directory
Delete file

Disassembly:
push 8
mov eax, 0x4a0c0d
call fcn.00437e40
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [esi], vtable.C360DownApp.0
lea ebx, [esi + 0x100]
push str.LiveUpdate360skin
mov ecx, ebx
mov dword [ebp - 4], 4
call fcn.004014f7
test eax, eax
je 0x402ba3
push 0x4a9c98
lea edi, [esi + 0xfc]
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.004027c1
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401111
mov ecx, dword [ebx]
sub ecx, 0x10
call fcn.00401111
mov ecx, dword [esi + 0xfc]
sub ecx, 0x10
call fcn.00401111
mov ecx, dword [esi + 0xf8]
sub ecx, 0x10
call fcn.00401111
lea ecx, [esi + 0xa8]
mov byte [ebp - 4], 0
call fcn.00414614
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.0041a514
call fcn.00437f18
ret
Function at 0x403308
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
call fcn.00403263
pop ecx
mov dword [esi], eax
test eax, eax
jne 0x403333
push 0x4c89a0
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], str.can_not_load_pdown.dll
call fcn.00437251
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.PPInit
push eax
call edi
push str.PPInit2
push dword [esi]
mov dword [esi + 4], eax
call edi
push str.PPClose
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.PPSetConfig
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.PPGetConfig
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push str.PPDownload
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push str.PPStopTask
push dword [esi]
mov dword [esi + 0x18], eax
call edi
push str.PPRestart
push dword [esi]
mov dword [esi + 0x1c], eax
call edi
push str.PPRemoveTask
push dword [esi]
mov dword [esi + 0x20], eax
call edi
push str.PPStopSeed
push dword [esi]
mov dword [esi + 0x24], eax
call edi
push str.PPCloseHandle
push dword [esi]
mov dword [esi + 0x28], eax
call edi
push str.PPQueryTask
push dword [esi]
mov dword [esi + 0x2c], eax
call edi
push str.PPQueryTaskEx
push dword [esi]
mov dword [esi + 0x30], eax
call edi
push str.PPStartTask
push dword [esi]
mov dword [esi + 0x34], eax
call edi
push str.PPStartTaskEx
push dword [esi]
mov dword [esi + 0x38], eax
call edi
push str._GetTasks
push dword [esi]
mov dword [esi + 0x3c], eax
call edi
push str._StartRun
push dword [esi]
mov dword [esi + 0x40], eax
call edi
push str._StopRun
push dword [esi]
mov dword [esi + 0x44], eax
call edi
push str._Run
push dword [esi]
mov dword [esi + 0x48], eax
call edi
push str._EnableP2P
push dword [esi]
mov dword [esi + 0x4c], eax
call edi
mov dword [esi + 0x50], eax
push str._SetKeep
push dword [esi]
call edi
push str._SetKeepEx
push dword [esi]
mov dword [esi + 0x54], eax
call edi
push str._IsStopped
push dword [esi]
mov dword [esi + 0x58], eax
call edi
push str._PPQueryTask2
push dword [esi]
mov dword [esi + 0x5c], eax
call edi
push str.__PPSetModulePath2
push dword [esi]
mov dword [esi + 0x60], eax
call edi
push str.StartLan
push dword [esi]
mov dword [esi + 0x64], eax
call edi
push str.StopLan
push dword [esi]
mov dword [esi + 0x68], eax
call edi
push str._PPQueryIPPort
push dword [esi]
mov dword [esi + 0x6c], eax
call edi
push str._PPSetLocalLog
push dword [esi]
mov dword [esi + 0x70], eax
call edi
push str._P2SPUpdateRegInfo
push dword [esi]
mov dword [esi + 0x74], eax
call edi
push str._P2SPCheckProxy
push dword [esi]
mov dword [esi + 0x78], eax
call edi
push str._P2SPCancelCheckProxy
push dword [esi]
mov dword [esi + 0x7c], eax
call edi
push str._P2SPSetOption
push dword [esi]
mov dword [esi + 0x80], eax
call edi
mov dword [esi + 0x84], eax
pop edi
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x40416e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 0x14]
push eax
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push str.SOFTWARELiveUpdate360_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4041a3
xor eax, eax
jmp 0x4041d8
push 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push 0x4aa19c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 0x10], esi
setne al
pop esi
leave
ret

Function at 0x4042cb
Capabilities:
Check for time delay via gettickcount

Disassembly:
test byte [0x4dbfc0], 1
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
jne 0x4042ec
or dword [0x4dbfc0], 1
call edi
mov dword [0x4dbfbc], eax
call edi
sub eax, dword [0x4dbfbc]
cmp eax, 0x7530
jae 0x404300
xor al, al
pop edi
pop esi
ret
call edi
mov dword [0x4dbfbc], eax
mov eax, dword [esi + 0x4c0]
cmp eax, dword [esi + 0xb4]
jle 0x404320
mov al, 1
and dword [esi + 0x4c0], 0
jmp 0x4042fd
xor al, al
jmp 0x404317

Function at 0x404324
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
xor ebx, ebx
inc ebx
push ebx
xor esi, esi
push esi
push str.SOFTWARELiveUpdate360_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, 0x4aa19c
push edi
push dword [ebp - 4]
call esi
test eax, eax
je 0x404394
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push edi
push dword [ebp - 4]
call esi
test eax, eax
jne 0x4043a7
mov ecx, dword [ebp - 0x14]
xor eax, eax
cmp dword [ebp - 8], ebx
sete al
mov dword [ecx + 0xe8], eax
jmp 0x4043b0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0xe8], ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404b3c
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4d7590]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0
push 2
push 2
mov esi, ecx
call dword [sym.imp.WSOCK32.dll_socket]
lea ecx, [ebp - 0x1c]
push ecx
xor ebx, ebx
push 0x8004667e
inc ebx
push eax
mov dword [esi + 0x4c4], eax
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
test eax, eax
je 0x404b80
xor al, al
jmp 0x404bea
push 4
lea eax, [ebp - 0x18]
push eax
push 0x20
push 0xffff
push dword [esi + 0x4c4]
mov dword [ebp - 0x18], ebx
call dword [sym.imp.WSOCK32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x404b7c
push 2
pop eax
push 0
mov word [ebp - 0x14], ax
call dword [sym.imp.WSOCK32.dll_htonl]
push 0x23f0
mov dword [ebp - 0x10], eax
call dword [sym.imp.WSOCK32.dll_htons]
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x4c4]
call dword [sym.imp.WSOCK32.dll_bind]
cmp eax, 0xffffffff
jne 0x404be8
push str.bind_failed.
push ebx
call fcn.0040194f
pop ecx
pop ecx
jmp 0x404b7c
mov al, bl
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00436eab
leave
ret

Function at 0x405dc5
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
sub esp, 0x110
lea ebp, [esp - 4]
mov eax, dword [0x4d7590]
xor eax, ebp
mov dword [ebp + 0x110], eax
push 4
mov eax, 0x4a0fd6
call fcn.00437e40
push 0x100
lea eax, [ebp + 0x10]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.WSOCK32.dll_gethostname]
test eax, eax
jne 0x405e7d
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov esi, eax
cmp esi, ebx
je 0x405e7d
mov eax, dword [esi + 0xc]
xor edi, edi
cmp dword [eax], ebx
je 0x405e7d
xor ecx, ecx
movsx edx, word [esi + 0xa]
push edx
push dword [eax + ecx]
lea eax, [ebp + 4]
push eax
call fcn.00438930
add esp, 0xc
push dword [ebp + 4]
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
lea ecx, [ebp - 0x10]
call fcn.00405bdc
push dword [ebp - 0x10]
lea ecx, [ebp + 0x11c]
mov byte [ebp - 4], 1
call fcn.004014f7
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
test eax, eax
je 0x405e76
mov byte [ebp - 4], bl
call fcn.00401111
mov eax, dword [esi + 0xc]
inc edi
mov ecx, edi
shl ecx, 2
cmp dword [eax + ecx], ebx
jne 0x405e1c
jmp 0x405e7d
call fcn.00401111
mov bl, 1
mov ecx, dword [ebp + 0x11c]
add ecx, 0xfffffff0
call fcn.00401111
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x110]
xor ecx, ebp
call fcn.00436eab
add ebp, 0x114
leave
ret 4