Function at 0x417ba0
Capabilities:
Copy file
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51f1b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0xa8
push esi
push edi
xorps xmm0, xmm0
mov dword [ebp - 0x40], edx
mov edi, ecx
mov byte [ebp - 0x1a], 0xb7
movq qword [ebp - 0x19], xmm0
xor ecx, ecx
mov byte [ebp - 0x11], 0
nop dword [eax + eax]
lea eax, [ecx - 0x15]
xor byte [ebp + ecx - 0x1a], al
inc ecx
cmp ecx, 1
jb 0x417bf0
mov dword [0x5585d0], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x1a]
mov byte [ebp - 0x19], 0
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x4c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x48], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x417c22
sub ecx, edx
lea eax, [ebp - 0x1a]
push ecx
push eax
lea ecx, [ebp - 0x5c]
call fcn.00402b20
mov dword [ebp - 4], 0
lea edx, [ebp - 0x5c]
cmp dword [ebp - 0x48], 0x10
xorps xmm0, xmm0
cmovae edx, dword [ebp - 0x5c]
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x20], esp
mov ecx, edx
movups xmmword [esi], xmm0
lea eax, [ecx + 1]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [ebp - 0x24], eax
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x417c70
sub ecx, dword [ebp - 0x24]
push ecx
push edx
mov ecx, esi
call fcn.00402b20
sub esp, 0x18
mov byte [ebp - 4], 1
mov edx, esp
mov ecx, edi
xorps xmm0, xmm0
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
lea esi, [ecx + 1]
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x417ca5
sub ecx, esi
push ecx
push edi
mov ecx, edx
call fcn.00402b20
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0
call fcn.0040ca20
add esp, 0x30
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x48]
cmp ecx, 0x10
jb 0x417d01
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x417cf7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4180fe
push ecx
push edx
call fcn.004f7c11
add esp, 8
mov ecx, dword [ebp - 0x80]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x84]
sub ecx, esi
imul ecx
lea ecx, [ebp - 0xb4]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, 0xc
lea eax, [eax + eax*2]
lea eax, [eax - 3]
lea eax, [esi + eax*8]
mov dword [ebp - 0x20], eax
call fcn.0040cd80
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 4
xorps xmm0, xmm0
mov byte [ebp - 0x1a], 0xb7
xor ecx, ecx
movq qword [ebp - 0x19], xmm0
mov byte [ebp - 0x11], 0
lea eax, [ecx - 0x15]
xor byte [ebp + ecx - 0x1a], al
inc ecx
cmp ecx, 1
jb 0x417d52
mov dword [0x5585d0], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x1a]
mov byte [ebp - 0x19], 0
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x4c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x48], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x417d84
sub ecx, edx
lea eax, [ebp - 0x1a]
push ecx
push eax
lea ecx, [ebp - 0x5c]
call fcn.00402b20
mov byte [ebp - 4], 5
lea edx, [ebp - 0x5c]
cmp dword [ebp - 0x48], 0x10
mov esi, dword [0x555b8c]
cmovae edx, dword [ebp - 0x5c]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x24], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x417db7
sub ecx, dword [ebp - 0x24]
mov eax, closesocket
sub eax, esi
cmp eax, ecx
jb 0x4180ee
cmp dword [0x555b90], 0x10
mov eax, 0x555b7c
push ecx
cmovae eax, dword [0x555b7c]
push edx
push esi
push eax
push ecx
push dword [ebp - 0x20]
lea ecx, [ebp - 0x74]
call fcn.00487550
push dword [ebp - 0x44]
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 6
push eax
push dword [ebp - 0x20]
lea ecx, [ebp - 0x9c]
call fcn.00487360
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x9c]
push dword [ebp - 0x20]
call fcn.0047f840
mov dword [ebp - 0x2c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x28], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x3c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x2c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x88]
cmp ecx, 0x10
jb 0x417e93
mov edx, dword [ebp - 0x9c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x417e89
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4180f3
push ecx
push edx
call fcn.004f7c11
add esp, 8
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0xf
mov byte [ebp - 0x9c], 0
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x60]
cmp ecx, 0x10
jb 0x417ee6
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x417edc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4180f3
push ecx
push edx
call fcn.004f7c11
add esp, 8
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x48]
cmp ecx, 0x10
jb 0x417f1e
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x417f14
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4180f3
push ecx
push edx
call fcn.004f7c11
add esp, 8
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0xa0]
cmp ecx, 0x10
jb 0x417f5c
mov edx, dword [ebp - 0xb4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x417f52
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4180f3
push ecx
push edx
call fcn.004f7c11
add esp, 8
cmp dword [ebp - 0x28], 0x10
lea eax, [ebp - 0x3c]
push 0
cmovae eax, dword [ebp - 0x3c]
push eax
push edi
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 0xf
mov byte [ebp - 0xb4], 0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x417fc7
cmp dword [ebp - 0x28], 0x10
lea esi, [ebp - 0x3c]
mov ecx, edi
cmovae esi, dword [ebp - 0x3c]
call fcn.0040a520
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x417fc7
mov edx, dword [ebp - 0x40]
push ecx
push 6
mov ecx, edi
call fcn.004f5490
add esp, 8
mov esi, eax
jmp 0x41808c
push 0x557f94
call fcn.004f6f12
add esp, 4
test eax, eax
jne 0x4180f8
cmp dword [ebp - 0x28], 0x10
lea ecx, [ebp - 0x3c]
mov edi, dword [ebp - 0x40]
mov edx, edi
cmovae ecx, dword [ebp - 0x3c]
push ecx
push 1
call fcn.004f5490
add esp, 8
lea ecx, [ebp - 0x78]
mov esi, eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0047faa0
mov edx, dword [edi]
mov dword [ebp - 0x60], edx
mov byte [ebp - 4], 0xd
mov eax, dword [0x558040]
cmp eax, dword [0x558044]
je 0x418041
movups xmm0, xmmword [ebp - 0x78]
mov ecx, 0xf
mov byte [ebp - 0x78], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x68]
movq qword [eax + 0x10], xmm0
mov dword [eax + 0x18], edx
add dword [0x558040], 0x1c
jmp 0x41804e
lea ecx, [ebp - 0x78]
push ecx
push eax
call fcn.0048c240
mov ecx, dword [ebp - 0x64]
cmp ecx, 0x10
jb 0x41807f
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x418075
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4180fe
push ecx
push edx
call fcn.004f7c11
add esp, 8
push 0x557f94
call fcn.004f6f23
add esp, 4
mov ecx, dword [ebp - 0x28]
cmp ecx, 0x10
jb 0x4180bc
mov edx, dword [ebp - 0x3c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4180b2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4180fe
push ecx
push edx
call fcn.004f7c11
add esp, 8
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0xf
mov byte [ebp - 0x3c], 0
call fcn.00481d80
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00402390
call fcn.004fceb0
push eax
call fcn.004f6bbb
call fcn.004fceb0
int3