joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7549e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov byte [ebp - 1], dl
mov esi, eax
xor eax, eax
push ebp
push 0x754c18
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [esi + 0x3b0]
call fcn.004c5b58
mov edi, eax
dec edi
test edi, edi
jl 0x754a55
inc edi
xor ebx, ebx
mov edx, ebx
mov eax, dword [esi + 0x3b0]
call fcn.004c5b24
mov eax, dword [eax]
lea edx, [ebp - 8]
call fcn.00407d38
mov eax, dword [ebp - 8]
mov edx, 0x754c34
call fcn.0040acb0
jne 0x754a51
mov edx, ebx
mov eax, dword [esi + 0x3b0]
call fcn.004c5b24
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x88]
inc ebx
dec edi
jne 0x754a14
call fcn.00427660
fstp qword [esi + 0x418]
wait
mov eax, dword [0x773558]
mov eax, dword [eax]
mov eax, dword [eax + 0x68]
mov dword [eax + 0x54], esi
mov dword [eax + 0x50], 0x756eb8
mov dword [eax + 0x4c], esi
mov dword [eax + 0x48], 0x756d30
cmp byte [ebp - 1], 0
je 0x754a91
mov dword [eax + 0x5c], esi
mov dword [eax + 0x58], 0x756fa8
jmp 0x754a9b
mov dword [eax + 0x5c], esi
mov dword [eax + 0x58], 0x756f20
mov eax, dword [esi + 0x3e0]
call fcn.0053ac24
mov eax, dword [esi + 0x3e4]
call fcn.0053ac24
mov dl, 1
mov eax, dword [esi + 0x3d8]
call fcn.0053a4e4
mov eax, dword [esi + 0x3ec]
call fcn.0053ac2c
mov eax, dword [0x77afbc]
mov edx, dword [eax]
call dword [edx + 0xac]
mov eax, dword [0x773c64]
mov eax, dword [eax]
call fcn.005eb954
mov eax, dword [0x773310]
mov eax, dword [eax]
mov eax, dword [eax + 8]
call fcn.006c4c4c
mov eax, dword [esi + 0x3e8]
mov dword [eax + 0xc], 2
mov edx, 0x64
mov eax, dword [esi + 0x3ec]
call fcn.0056012c
mov edx, 0x64
mov eax, dword [esi + 0x3ec]
call fcn.005601ac
xor edx, edx
mov eax, dword [esi + 0x3d8]
call fcn.0053a61c
lea eax, [ebp - 0xc]
mov edx, dword [0x773310]
mov edx, dword [edx]
mov edx, dword [edx + 8]
mov edx, dword [edx + 0xc]
call fcn.0040aa18
mov eax, dword [ebp - 0xc]
call fcn.006ca3fc
test al, al
je 0x754b7f
push 1
push 0x754c48
push 0x754c48
mov eax, dword [0x773310]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0xc]
call fcn.0040a90c
push eax
push 0x754c4c
push 0
call sub.shell32.dll_ShellExecuteW
mov eax, esi
call fcn.005e6764
mov eax, dword [0x773310]
mov eax, dword [eax]
mov ebx, dword [eax + 8]
cmp byte [ebx + 0x18], 0
je 0x754bbf
cmp byte [ebp - 1], 0
je 0x754bbf
push 1
push 0x754c48
push 0x754c48
mov eax, dword [ebx + 0x14]
call fcn.0040a90c
push eax
push 0x754c4c
push 0
call sub.shell32.dll_ShellExecuteW
mov eax, esi
call fcn.005e6764
jmp 0x754bf2
push 1
push 0x754c48
push 0x754c48
lea edx, [ebp - 0x10]
mov eax, dword [ebx + 0x14]
call fcn.00424f18
mov eax, dword [ebp - 0x10]
call fcn.0040a90c
push eax
push 0x754c4c
push 0
call sub.shell32.dll_ShellExecuteW
mov eax, esi
call fcn.005e6764
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x754c1f
lea eax, [ebp - 0x10]
call fcn.00409d4c
lea eax, [ebp - 0xc]
call fcn.00409d94
lea eax, [ebp - 8]
call fcn.00409d4c
ret
Function at 0x766508
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, 0x759360
call fcn.0040f138
xor eax, eax
push ebp
push 0x766698
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [0x773558]
mov eax, dword [0x773c64]
mov eax, dword [eax]
mov edx, dword [0x6c62e4]
call fcn.005eba84
lea edx, [ebp - 0x14]
mov eax, 1
call fcn.00406e50
cmp dword [ebp - 0x14], 0
jne 0x76662f
call fcn.006c8c10
test al, al
jne 0x766588
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406e50
mov eax, dword [ebp - 0x18]
xor edx, edx
call fcn.006c8cb0
push 0
call sub.KERNEL32.DLL_ExitProcess_1
push 0
push 0x7666a8
call sub.user32.dll_FindWindowW
mov ebx, eax
push ebx
call sub.user32.dll_IsWindow
test eax, eax
je 0x7665b3
push ebx
call sub.user32.dll_SetForegroundWindow
push 9
push ebx
call sub.user32.dll_ShowWindow
call fcn.00409a38
push 0
push 0x7666c0
call sub.user32.dll_FindWindowW
mov ebx, eax
push ebx
call sub.user32.dll_IsWindow
test eax, eax
je 0x7665de
push ebx
call sub.user32.dll_SetForegroundWindow
push 9
push ebx
call sub.user32.dll_ShowWindow
call fcn.00409a38
push 0
push 0x7666dc
call sub.user32.dll_FindWindowW
mov ebx, eax
push ebx
call sub.user32.dll_IsWindow
test eax, eax
je 0x766609
push ebx
call sub.user32.dll_SetForegroundWindow
push 9
push ebx
call sub.user32.dll_ShowWindow
call fcn.00409a38
mov eax, dword [0x773c64]
mov eax, dword [eax]
call fcn.005eba6c
mov ecx, dword [0x773fa0]
mov eax, dword [0x773c64]
mov eax, dword [eax]
mov edx, dword [0x75174c]
call fcn.005eba84
jmp 0x766671
push 0xa
call sub.KERNEL32.DLL_Sleep_2
call fcn.006c8c10
test al, al
jne 0x76666a
lea edx, [ebp - 0x1c]
mov eax, 1
call fcn.00406e50
mov eax, dword [ebp - 0x1c]
push eax
lea edx, [ebp - 0x20]
xor eax, eax
call fcn.00406e50
mov eax, dword [ebp - 0x20]
pop edx
call fcn.006c8cb0
push 0
call sub.KERNEL32.DLL_ExitProcess_1
xor eax, eax
call fcn.0075709c
mov eax, dword [0x773c64]
mov eax, dword [eax]
call fcn.005ebbe0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x76669f
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.00409dac
ret
Function at 0x41e9ee
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c5b0
push 0x42c5a8
push str.FlsAlloc
push 0x1f
call fcn.0041e88a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ea22
push dword [ebp + 8]
mov ecx, esi
call dword [0x4281d0]
call esi
jmp 0x41ea28
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41ea6c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c5c0
push 0x42c5b8
push str.FlsGetValue
push 0x21
call fcn.0041e88a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41eaa3
push dword [ebp + 8]
mov ecx, esi
call dword [0x4281d0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41eaab
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c5c8
push 0x42c5c0
push str.FlsSetValue
push 0x22
call fcn.0041e88a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41eae5
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4281d0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x406f79
Capabilities:
Execute anti-debugging instructions
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea8
movd mm2, eax
movd mm7, eax
pxor mm2, mm7
movd eax, mm2
cpuid
movd mm1, dword [ebp + 8]
movd edi, mm1
movd mm2, ebx
movd eax, mm2
pcmpeqw mm3, mm0
stosd dword es:[edi], eax
psrad mm3, mm2
rdtsc
movq mm3, mm5
movd mm3, edx
movd dword [ebp - 0xc], mm3
movd mm4, eax
movd dword [ebp - 8], mm4
push 0x3e8
call sub.KERNEL32.DLL_Sleep
psubb mm5, mm2
rdtsc
push edx
push eax
fild qword [esp]
push dword [ebp - 0xc]
push dword [ebp - 8]
fild qword [esp]
pcmpgtb mm4, mm3
fsubp st(1)
push 0xf4240
psubsw mm1, mm5
fidiv dword [esp]
paddusb mm6, mm2
frndint
pmulhuw mm2, mm0
fistp dword [esp]
paddusw mm0, mm3
pop eax
add esp, 0x10
bswap eax
stosd dword es:[edi], eax
call sub.KERNEL32.DLL_GetTickCount
mov ecx, 0x3e8
movd mm3, edx
movd mm0, edx
pxor mm3, mm0
movd edx, mm3
pcmpeqw mm0, mm4
idiv ecx
bswap eax
stosd dword es:[edi], eax
por mm6, mm3
mov dword [ebp - 0xb8], 0x9c
psubsw mm4, mm3
lea eax, [ebp - 0xb8]
psraw mm3, mm6
push eax
call sub.KERNEL32.DLL_GetVersionExA
movd mm7, dword [ebp - 0xb4]
movd eax, mm7
pcmpeqb mm3, mm5
xchg ah, al
psubusw mm5, mm3
stosw word es:[edi], ax
psrad mm4, mm3
movd mm0, dword [ebp - 0xb0]
movd eax, mm0
xchg ah, al
stosw word es:[edi], ax
movd mm1, dword [ebp - 0xac]
movd eax, mm1
punpckhbw mm5, mm3
xchg ah, al
stosw word es:[edi], ax
punpckhbw mm5, mm4
mov ax, word [ebp - 0x24]
xchg ah, al
stosw word es:[edi], ax
paddb mm1, mm0
mov ax, word [ebp - 0x22]
xchg ah, al
stosw word es:[edi], ax
push edi
lea edi, [ebp - 0xd8]
mov ecx, 0x20
movd mm3, eax
movd mm1, eax
pxor mm3, mm1
movd eax, mm3
pavgw mm6, mm5
rep stosb byte es:[edi], al
lea eax, [ebp - 0xd8]
movq mm6, mm5
push eax
call sub.KERNEL32.DLL_GlobalMemoryStatus
pop edi
movd mm5, dword [ebp - 0xd0]
movd eax, mm5
pcmpgtd mm5, mm4
shr eax, 0xa
psubsw mm2, mm3
bswap eax
stosd dword es:[edi], eax
movd mm6, dword [ebp - 0xcc]
movd eax, mm6
shr eax, 0xa
bswap eax
stosd dword es:[edi], eax
cmp dword [0x417bd3], 0
je 0x407121
push 0
push 0x80
pandn mm3, mm1
lea eax, [ebp - 0x158]
psllw mm3, mm6
push eax
lea eax, [ebp - 4]
push eax
push 0x407115
push dword [0x417bd3]
push sub.KERNEL32.DLL_GetCurrentProcessId
push 0x40abfc
push 0x40abae
jmp fcn.0040abc6
mov ax, 0xffff
xchg ah, al
stosw word es:[edi], ax
movd mm1, dword [ebp + 0xc]
movd eax, mm1
psubsb mm1, mm0
stosd dword es:[edi], eax
movd mm3, edi
movd mm5, dword [ebp + 8]
psubd mm3, mm5
movd edi, mm3
movd mm2, edi
movd eax, mm2
psubsw mm3, mm0
leave
ret 8
Function at 0x407457
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
punpckhwd mm0, mm3
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call sub.KERNEL32.DLL_CreateFileA
pcmpgtw mm0, mm4
inc eax
je 0x407567
dec eax
movd mm6, eax
movd ebx, mm6
push 0
push ebx
call sub.KERNEL32.DLL_GetFileSize
movq mm3, mm2
movd mm7, eax
movd dword [ebp - 4], mm7
push 0
push 0
push 0
push 2
push 0
push ebx
call sub.KERNEL32.DLL_CreateFileMappingA
movd mm0, eax
movd esi, mm0
push 0
push 0
push 0
push 4
push esi
call sub.KERNEL32.DLL_MapViewOfFile
pcmpgtw mm1, mm0
movd mm1, eax
movd edi, mm1
punpckhdq mm6, mm1
pushal
movd mm2, edi
movd esi, mm2
pcmpgtd mm6, mm5
movd mm3, dword [esi + 0x64]
movd ebx, mm3
or ebx, ebx
je 0x40754e
movd mm4, dword [esi + 0x60]
movd eax, mm4
cmp eax, dword [ebp - 4]
jg 0x40754e
pminub mm5, mm2
add esi, dword [esi + 0x60]
pmaddwd mm2, mm0
movd mm5, dword [ebp + 0x10]
movd edi, mm5
movd mm6, dword [ebp + 0x14]
movd edx, mm6
jmp 0x407549
movd mm7, esi
movd ecx, mm7
lodsw ax, word [esi]
psubusb mm5, mm1
stosb byte es:[edi], al
dec edx
psraw mm5, mm1
je 0x407572
or ax, ax
jne 0x40750e
movd mm3, esi
movd mm6, ecx
psubd mm3, mm6
movd esi, mm3
shr esi, 1
pmaxsw mm5, mm3
movd mm0, dword [ebp + 0xc]
movd eax, mm0
packsswb mm0, mm6
add dword [eax], esi
add ecx, 0x44
movd mm1, ecx
movd esi, mm1
punpckhbw mm4, mm6
dec ebx
cmp ebx, 0
ja 0x407508
popal
push edi
call sub.KERNEL32.DLL_UnmapViewOfFile
pmaxub mm5, mm4
push esi
call sub.KERNEL32.DLL_CloseHandle
push ebx
call sub.KERNEL32.DLL_CloseHandle
psrad mm2, mm4
popal
psrad mm1, mm3
leave
ret 0x10
mov byte [edi], 0
dec edi
psubusw mm0, mm1
cmp byte [edi], 0
jne 0x407572
pushal
movd mm3, edi
movd mm7, dword [0x417340]
psubd mm3, mm7
movd edi, mm3
psubw mm0, mm3
sub edi, 4
movd mm3, dword [0x417340]
movd eax, mm3
pmaxub mm1, mm3
movd mm4, edi
movd dword [eax], mm4
push 0
push dword [ebp + 0xc]
call fcn.0040954d
paddw mm3, mm5
popal
psubd mm1, mm6
movd mm5, ecx
movd esi, mm5
movd mm0, dword [ebp + 0xc]
movd dword [ebp + 0x10], mm0
add dword [ebp + 0x10], 4
movd mm6, dword [ebp + 0xc]
movd eax, mm6
punpckhdq mm5, mm0
mov dword [eax], 0
mov dword [ebp + 0x14], 0xf9ffc
jmp 0x4074f8
Function at 0x40a780
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add dword [ebp + 8], 1
call sub.KERNEL32.DLL_GetCommandLineA
push 0
push dword [ebp + 8]
push dword [ebp + 0xc]
push eax
call fcn.0040aa90
cmp eax, 0
jb 0x40a7b5
mov ecx, dword [ebp + 0xc]
cmp byte [ecx], 0
je 0x40a7ae
mov eax, 1
jmp 0x40a7bf
mov eax, 2
jmp 0x40a7bf
cmp eax, 0xffffffff
jne 0x40a7bf
mov eax, 3
leave
ret 8
Function at 0x40ad04
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0x80000000
push ebx
push esi
push edi
ja 0x40af0f
inc dword [0x417c44]
mov eax, ebp
mov eax, dword [eax + 4]
mov dword [ebp - 4], eax
xor ebx, ebx
cmp dword [0x417cb0], ebx
jne 0x40ad7f
mov esi, dword [sym.imp.KERNEL32.DLL_HeapCreate]
push ebx
push ebx
push 2
pop edi
push edi
call esi
push ebx
push ebx
push edi
mov dword [0x417cb0], eax
call esi
push ebx
push ebx
push edi
mov dword [0x417cb4], eax
call esi
push ebx
push ebx
push edi
mov dword [0x417cb8], eax
call esi
push ebx
push ebx
push edi
mov dword [0x417cbc], eax
call esi
push ebx
push ebx
push edi
mov dword [0x417cc0], eax
call esi
push ebx
push ebx
push edi
mov dword [0x417cc4], eax
call esi
mov dword [0x417cc8], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.DLL_HeapAlloc]
add eax, 0x14
push eax
push ebx
push dword [0x417cb0]
call edi
mov esi, eax
add esi, 0x10
cmp esi, 0x10
jbe 0x40adb6
push dword [ebp + 0xc]
push ebx
push esi
call sub.MSVCRT.dll_memset
mov eax, dword [0x417cb0]
add esp, 0xc
jmp 0x40aed1
mov eax, dword [ebp + 0xc]
add eax, 0x14
push eax
push ebx
push dword [0x417cb4]
call edi
mov esi, eax
add esi, 0x10
cmp esi, 0x10
jbe 0x40ade7
push dword [ebp + 0xc]
push ebx
push esi
call sub.MSVCRT.dll_memset
mov eax, dword [0x417cb4]
add esp, 0xc
jmp 0x40aed1
mov eax, dword [ebp + 0xc]
add eax, 0x14
push eax
push ebx
push dword [0x417cb8]
call edi
mov esi, eax
add esi, 0x10
cmp esi, 0x10
jbe 0x40ae18
push dword [ebp + 0xc]
push ebx
push esi
call sub.MSVCRT.dll_memset
mov eax, dword [0x417cb8]
add esp, 0xc
jmp 0x40aed1
mov eax, dword [ebp + 0xc]
add eax, 0x14
push eax
push ebx
push dword [0x417cbc]
call edi
mov esi, eax
add esi, 0x10
cmp esi, 0x10
jbe 0x40ae49
push dword [ebp + 0xc]
push ebx
push esi
call sub.MSVCRT.dll_memset
mov eax, dword [0x417cbc]
add esp, 0xc
jmp 0x40aed1
mov eax, dword [ebp + 0xc]
add eax, 0x14
push eax
push ebx
push dword [0x417cc0]
call edi
mov esi, eax
add esi, 0x10
cmp esi, 0x10
jbe 0x40ae77
push dword [ebp + 0xc]
push ebx
push esi
call sub.MSVCRT.dll_memset
mov eax, dword [0x417cc0]
add esp, 0xc
jmp 0x40aed1
mov eax, dword [ebp + 0xc]
add eax, 0x14
push eax
push ebx
push dword [0x417cc4]
call edi
mov esi, eax
add esi, 0x10
cmp esi, 0x10
jbe 0x40aea5
push dword [ebp + 0xc]
push ebx
push esi
call sub.MSVCRT.dll_memset
mov eax, dword [0x417cc4]
add esp, 0xc
jmp 0x40aed1
mov eax, dword [ebp + 0xc]
add eax, 0x14
push eax
push ebx
push dword [0x417cc8]
call edi
mov esi, eax
add esi, 0x10
cmp esi, 0x10
jbe 0x40aeee
push dword [ebp + 0xc]
push ebx
push esi
call sub.MSVCRT.dll_memset
mov eax, dword [0x417cc8]
add esp, 0xc
mov dword [esi - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + eax], eax
mov dword [esi - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [esi - 4], 0x474c4f42
mov dword [esi - 8], eax
mov eax, esi
jmp 0x40af11
lea eax, [ebp + 0xc]
push 0xffffffffffffffff
push eax
push ebx
push dword [0x417c5c]
push 0x40bfef
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40c683
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
jne 0x40c694
mov esi, 0x418140
mov ax, word [esi + 0x10]
push eax
call dword [sym.imp.ws2_32.dll_htons]
cmp dword [esi + 0x98], 0
movzx edi, ax
jne 0x40c6c9
push 0x7f000001
mov word [esi + 0x18], 2
call dword [sym.imp.ws2_32.dll_htonl]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x98], 1
xor ecx, ecx
cmp dword [esi + 0x98], ecx
jbe 0x40c6eb
lea eax, [esi + 0x1a]
cmp word [eax], 0
jne 0x40c6df
mov word [eax], di
inc ecx
add eax, 0x10
cmp ecx, dword [esi + 0x98]
jb 0x40c6d6
push 0x11
push 2
push 2
call dword [sym.imp.ws2_32.dll_socket]
mov edi, eax
mov dword [esi + 0x9c], 0x10
test edi, edi
jge 0x40c710
or dword [esi + 0x4cc], 0xffffffff
jmp 0x40c766
lea eax, [ebp + 8]
mov dword [ebp + 8], 1
push eax
push 0x8004667e
push edi
call dword [sym.imp.ws2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x40c735
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
jmp 0x40c707
push dword [esi + 0x14]
call dword [sym.imp.MSVCRT.dll_malloc]
test eax, eax
pop ecx
mov dword [esi + 0x4c8], eax
jne 0x40c76b
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
mov dword [esi + 0x4cc], 0xfffffffb
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 0xc
or eax, 0xffffffff
jmp 0x40c784
cmp dword [esi + 0x4a4], 0
mov dword [esi + 0x4b8], edi
je 0x40c782
push 0
push esi
call fcn.0040c4ef
mov eax, edi
pop edi
pop esi
pop ebp
ret 4
Function at 0x40cd71
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0xc
push 0
mov ebx, dword [esi + 0x4c8]
push ebx
call sub.MSVCRT.dll_memset
mov edi, dword [ebp + 0xc]
add esp, 0xc
test byte [edi + 0xe], 2
jne 0x40cd9b
or byte [ebx + 2], 1
test byte [edi + 0xe], 4
je 0x40cda5
or byte [ebx + 2], 4
lea eax, [edi + 0x38]
push 2
push eax
push ebx
mov byte [ebx + 5], 1
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add ebx, 0xc
lea eax, [edi + 0x3e]
push 0xff
push ebx
push eax
call fcn.0040d832
add ebx, eax
lea eax, [edi + 0x3a]
push 4
push eax
push ebx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add ebx, 4
cmp dword [esi + 0x14], 0x200
jbe 0x40ce2d
mov ecx, dword [ebp + 0x10]
push 1
pop eax
shl eax, cl
test dword [edi + 0x1c], eax
jne 0x40ce2d
and byte [ebx], 0
and byte [ebx + 1], 0
inc ebx
push 6
inc ebx
push 0
mov byte [ebx], 0x29
mov ecx, dword [esi + 0x14]
mov edx, ecx
lea eax, [ebx + 1]
shr edx, 8
mov byte [eax], dl
inc eax
lea ebx, [eax + 1]
mov byte [eax], cl
push ebx
call sub.MSVCRT.dll_memset
mov eax, dword [esi + 0x4c8]
add esp, 0xc
add ebx, 6
mov byte [eax + 0xb], 1
mov eax, dword [esi + 0x4c8]
mov ecx, dword [ebp + 0x10]
push dword [esi + 0x9c]
sub ebx, eax
shl ecx, 4
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], 0xa
lea ecx, [ecx + esi + 0x18]
push ecx
push 0
push ebx
mov ebx, dword [sym.imp.ws2_32.dll_sendto]
push eax
mov dword [ebp - 4], ecx
push dword [esi + 0x4b8]
call ebx
test eax, eax
jge 0x40ce9d
dec dword [ebp + 8]
je 0x40ce8a
push dword [esi + 0x9c]
push dword [ebp - 4]
push 0
push dword [ebp + 0xc]
push dword [esi + 0x4c8]
push dword [esi + 0x4b8]
jmp 0x40ce63
push 0
push 0xffffffffffffffff
push edi
push esi
call fcn.0040cd2b
or eax, 0xffffffff
jmp 0x40cf24
mov eax, dword [esi + 0x4b0]
test eax, eax
je 0x40cebd
push dword [edi + 0x34]
push edi
push dword [ebp + 0xc]
push dword [esi + 0x4c8]
push 0x10
push dword [ebp - 4]
push 1
call eax
mov ecx, dword [ebp + 0x10]
push 1
pop eax
shl eax, cl
push edi
push esi
or dword [edi + 0x14], eax
call fcn.0040cf2b
test eax, eax
je 0x40ced8
push 1
pop eax
jmp 0x40cee0
mov eax, dword [esi + 4]
mov ecx, dword [edi + 0x20]
shl eax, cl
mov ecx, dword [ebp + 0x14]
add eax, ecx
mov ecx, dword [edi + 4]
mov dword [edi + 0x28], eax
mov eax, dword [edi]
mov dword [eax + 4], ecx
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov dword [eax], ecx
mov eax, dword [esi + 0x4c0]
lea ecx, [esi + 0x4bc]
cmp eax, ecx
je 0x40cf16
mov edx, dword [edi + 0x28]
cmp dword [eax + 0x28], edx
jle 0x40cf16
mov eax, dword [eax + 4]
cmp eax, ecx
jne 0x40cf0a
mov ecx, dword [eax]
mov dword [edi + 4], eax
mov dword [edi], ecx
mov dword [ecx + 4], edi
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40d049
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
cmp ebx, edi
jne 0x40d062
mov ebx, 0x418140
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x40d07d
mov ecx, 0x40d102
cmp dword [eax + 0x30], ecx
jne 0x40d081
mov dword [ebx + 0x4cc], 0xfffffffa
xor eax, eax
jmp 0x40d0fc
mov dword [eax + 0x30], ecx
push esi
mov esi, dword [sym.imp.MSVCRT.dll_time]
lea ecx, [ebp - 8]
push edi
mov dword [eax + 0x34], ecx
mov dword [ebp - 8], edi
call esi
pop ecx
mov dword [ebp + 8], eax
cmp dword [ebp - 8], edi
jne 0x40d0f8
push dword [ebp + 8]
push 0xffffffffffffffff
push ebx
call fcn.0040cfbe
cmp eax, edi
jl 0x40d0f8
mov ecx, dword [ebx + 0x4b8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x110], ecx
push eax
push edi
lea eax, [ebp - 0x114]
push edi
inc ecx
push eax
push ecx
mov dword [ebp - 0x114], 1
mov dword [ebp - 0xc], edi
call dword [sym.imp.ws2_32.dll_select]
push edi
mov dword [ebp + 0xc], eax
call esi
cmp dword [ebp + 0xc], edi
pop ecx
mov dword [ebp + 8], eax
jle 0x40d09b
push eax
push ebx
call fcn.0040c9c8
jmp 0x40d09b
mov eax, dword [ebp - 4]
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x40f7a6
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x2c]
mov ebx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x2c]
sub ebx, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
lea ecx, [edi + ecx - 0x106]
sub ebx, eax
cmp eax, ecx
jb 0x40f82e
mov eax, dword [esi + 0x38]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], edi
sub dword [esi + 0x6c], edi
add esp, 0xc
sub dword [esi + 0x5c], edi
mov dword [ebp + 8], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp + 8]
mov word [eax], cx
jne 0x40f7f1
mov eax, dword [esi + 0x40]
mov dword [ebp + 8], edi
lea eax, [eax + edi*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp + 8]
mov word [eax], cx
jne 0x40f813
add ebx, edi
mov eax, dword [esi]
cmp dword [eax + 4], 0
je 0x40f886
mov ecx, dword [esi + 0x74]
push ebx
add ecx, dword [esi + 0x6c]
add ecx, dword [esi + 0x38]
push ecx
push eax
call fcn.0040f88d
add dword [esi + 0x74], eax
mov ebx, dword [esi + 0x74]
cmp ebx, 3
jb 0x40f872
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edx, [eax + ecx]
mov ecx, dword [esi + 0x58]
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp ebx, 0x106
jae 0x40f886
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x40f7b2
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4031aa
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 0x14
mov eax, 0x465f62
call fcn.0043dbc4
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0x4c950c
push 1
push 0
push 0x4c9e78
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test ebx, ebx
js 0x4032c5
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0x18]
and dword [ebp - 0x18], 0
push edx
push 0x4c9e68
mov eax, dword [ecx]
push ecx
call dword [eax]
mov ebx, eax
test ebx, ebx
js 0x4032bc
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.004147f4
mov ecx, dword [ebp - 0x10]
xor ebx, ebx
push dword [ebp - 0x14]
mov dword [ebp - 4], ebx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x50]
cmp dword [ebp + 0x14], ebx
je 0x403242
push dword [ebp + 0x14]
lea ecx, [ebp - 0x1c]
call fcn.004147f4
mov ecx, dword [ebp - 0x10]
push dword [ebp - 0x1c]
mov byte [ebp - 4], 1
push ecx
mov eax, dword [ecx]
call dword [eax + 0x2c]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00414857
mov ecx, dword [ebp - 0x10]
push ebx
push dword [ebp - 0x14]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x44]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00414857
push dword [ebp + 0x10]
lea ecx, [ebp - 0x1c]
call fcn.004147f4
mov ecx, dword [ebp - 0x10]
push dword [ebp - 0x1c]
mov dword [ebp - 4], 2
push ecx
mov eax, dword [ecx]
call dword [eax + 0x24]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00414857
push dword [ebp + 8]
lea ecx, [ebp - 0x20]
call fcn.004147f4
mov ecx, dword [ebp - 0x18]
push 1
push dword [ebp - 0x20]
mov dword [ebp - 4], 3
mov eax, dword [ecx]
push ecx
call dword [eax + 0x18]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
mov ebx, eax
call fcn.00414857
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
shr ebx, 0x1f
xor bl, 1
mov al, bl
call fcn.0043db92
ret

Function at 0x403645
Capabilities:
Persist via run registry key

Disassembly:
push str.Spotify_Web_Helper
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call fcn.004148a0
add esp, 0xc
ret