Function at 0x480240
Capabilities:
Encode data using xor
Hash data with md5

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xffffffe0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x51e080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebx + 8]
push esi
mov esi, dword [ebx + 0x10]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0xd0], ecx
xor ecx, ecx
push edi
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xd4], esi
nop dword [eax + eax]
cmp dword [ecx*8 + 0x50c190], 0x2c5
je 0x4803c1
inc ecx
cmp ecx, 0x43
jb 0x480290
mov edi, dword [ebp - 0xe0]
push 0x28
push dword [ebp - 0xd8]
mov dword [ebp - 0xdc], edi
push 0x2c5
push edi
call fcn.004bba30
cmp dword [ebp - 0xcc], 0
mov eax, dword [ebp - 0xd0]
je 0x4806aa
mov eax, dword [eax + 0x38]
mov eax, dword [eax + 0x490]
mov dword [ebp - 0xd8], eax
test edi, edi
je 0x480ab2
test esi, esi
je 0x480a71
cmp dword [edi + 8], 0
je 0x480a71
cmp dword [edi + 0xc], 0
je 0x480a71
mov esi, dword [ebp - 0xcc]
cmp dword [esi + 8], 0
je 0x480a71
cmp dword [esi + 0xc], 0
je 0x480a71
mov eax, dword [edi]
cmp eax, dword [esi]
jne 0x480a71
call fcn.004be740
mov ecx, eax
mov dword [ebp - 0xc4], eax
call fcn.004be890
mov ecx, dword [ebp - 0xc4]
call fcn.004be9b0
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0xc8], eax
call fcn.004be9b0
mov ecx, dword [esi + 8]
mov dword [ebp - 0xcc], eax
call fcn.004c2e60
push dword [ebp - 0xc4]
mov ecx, dword [esi + 8]
mov edx, eax
push dword [esi + 0xc]
mov dword [ebp - 0xd0], eax
push dword [edi + 0xc]
push 0
call fcn.004c30e0
add esp, 0x10
test eax, eax
je 0x48066d
mov ecx, dword [esi + 8]
push dword [ebp - 0xc4]
mov edx, dword [ebp - 0xd0]
push dword [ebp - 0xcc]
mov eax, dword [ecx]
push dword [ebp - 0xc8]
cmp dword [eax], 0x196
jne 0x480418
call fcn.004c2fb0
jmp 0x48041d
mov ecx, dword [ecx*8 + 0x50c194]
call fcn.004c3150
mov dword [ebp - 0xbc], eax
test eax, eax
je 0x4802a7
mov dword [eax + 0x30], 0x2c5
mov esi, dword [eax + 0x4c]
push 0x10
shl esi, 5
call fcn.004d9a7e
mov edi, eax
add esp, 4
mov eax, dword [ebp - 0xbc]
mov dword [edi + 4], esi
mov esi, dword [ebp - 0xd4]
mov dword [edi], 0x2c5
mov dword [edi + 8], eax
mov dword [edi + 0xc], 0
jmp 0x4802ad
call fcn.004c2fb0
add esp, 0xc
test eax, eax
je 0x48066d
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x48043a
push ecx
call eax
add esp, 4
mov ecx, dword [ebp - 0xc8]
add eax, 7
cdq
and edx, 7
lea esi, [edx + eax]
sar esi, 3
mov dword [ebp - 0xcc], esi
call fcn.004bfe00
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [ebp - 0xbc], eax
cmp eax, esi
ja 0x48066d
push esi
call fcn.004d9a7e
sub esi, dword [ebp - 0xbc]
add esp, 4
mov dword [ebp - 0xc0], eax
push esi
push 0
push eax
call fcn.004d6ed0
mov edx, dword [ebp - 0xc0]
add esp, 0xc
mov ecx, dword [ebp - 0xc8]
lea edx, [esi + edx]
call fcn.004c0340
cmp dword [ebp - 0xbc], eax
jne 0x48065a
mov edx, dword [ebp - 0xcc]
cmp edx, 0x10
jae 0x4805f8
cmp edx, 8
jb 0x480579
mov eax, dword [ebp - 0xc0]
test eax, eax
je 0x48055d
or esi, 0xffffffff
mov dword [ebp - 0xbc], eax
or edi, 0xffffffff
movzx ecx, byte [eax]
mov eax, esi
xor eax, ecx
mov dword [ebp - 0xc8], ecx
mov ecx, dword [ebp - 0xd8]
movzx eax, al
shr esi, 8
mov edx, dword [ecx + 4]
xor esi, dword [edx + eax*4]
mov eax, edi
xor eax, dword [ebp - 0xc8]
movzx eax, al
shr edi, 8
xor edi, dword [edx + eax*4 + 0x400]
mov eax, dword [ebp - 0xbc]
inc eax
sub dword [ebp - 0xcc], 1
mov dword [ebp - 0xbc], eax
jne 0x4804e5
mov ecx, dword [ebp - 0xd4]
xor esi, 0x81e6b3f
xor edi, 0x569ed9b
mov dword [ebp - 0xbc], edi
mov eax, dword [ebp - 0xbc]
mov edi, dword [ebp - 0xdc]
mov dword [ecx], esi
mov dword [ecx + 4], eax
jmp 0x48065a
mov ecx, dword [ebp - 0xd4]
mov eax, dword [ebp - 0xf0]
mov esi, dword [ebp - 0xf4]
mov dword [ecx], esi
mov dword [ecx + 4], eax
jmp 0x48065a
cmp edx, 4
jb 0x4805e0
mov eax, dword [ebp - 0xd8]
mov eax, dword [eax + 4]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xc0]
test eax, eax
je 0x4805d0
mov edi, dword [ebp - 0xbc]
mov esi, eax
or eax, 0xffffffff
movzx ecx, byte [esi]
lea esi, [esi + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [edi + ecx*4]
sub edx, 1
jne 0x4805a2
mov ecx, dword [ebp - 0xd4]
xor eax, 0x81e6b3f
mov edi, dword [ebp - 0xdc]
mov dword [ecx], eax
jmp 0x48065a
mov ecx, dword [ebp - 0xd4]
mov eax, dword [ebp - 0xe8]
mov dword [ecx], eax
jmp 0x48065a
mov ecx, dword [ebp - 0xd4]
push edx
push dword [ebp - 0xc0]
push ecx
call fcn.004d6950
add esp, 0xc
jmp 0x48065a
mov eax, dword [ebp - 0xd8]
mov esi, dword [eax + 4]
mov eax, dword [ebp - 0xc0]
test eax, eax
je 0x48064d
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x4c], 0
push ecx
push edx
push eax
mov ecx, esi
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x60], 0x67452301
mov dword [ebp - 0x5c], 0xefcdab89
mov dword [ebp - 0x58], 0x98badcfe
mov dword [ebp - 0x54], 0x10325476
call fcn.004b2200
lea eax, [ebp - 0x60]
mov ecx, esi
push eax
call fcn.004b2580
mov ecx, dword [ebp - 0xd4]
movups xmm0, xmmword [ebp - 0x60]
movups xmmword [ecx], xmm0
mov eax, dword [ebp - 0xc0]
test eax, eax
je 0x48066d
push eax
call fcn.004d9a63
add esp, 4
mov esi, dword [ebp - 0xd0]
test esi, esi
je 0x48068f
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x480686
push esi
call eax
add esp, 4
push esi
call fcn.004d9a63
add esp, 4
mov ecx, dword [ebp - 0xc4]
call fcn.004be940
mov ecx, dword [ebp - 0xc4]
call fcn.004be7a0
jmp 0x480a71
add eax, 4
push eax
mov dword [ebp - 0xe4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0xd0]
mov eax, dword [ecx + 0x38]
mov eax, dword [eax + 0x490]
mov dword [ebp - 0xd8], eax
test edi, edi
je 0x480a61
mov eax, dword [ecx + 0x2c]
test eax, eax
je 0x480a61
test esi, esi
je 0x480a61
cmp dword [edi + 8], 0
je 0x480a61
cmp dword [edi + 0xc], 0
je 0x480a61
mov esi, eax
cmp dword [esi + 8], 0
je 0x480a61
cmp dword [esi + 0xc], 0
je 0x480a61
mov eax, dword [edi]
cmp eax, dword [esi]
jne 0x480a61
call fcn.004be740
mov ecx, eax
mov dword [ebp - 0xc0], eax
call fcn.004be890
mov ecx, dword [ebp - 0xc0]
call fcn.004be9b0
mov ecx, dword [ebp - 0xc0]
mov dword [ebp - 0xc8], eax
call fcn.004be9b0
mov ecx, dword [esi + 8]
mov dword [ebp - 0xbc], eax
call fcn.004c2e60
push dword [ebp - 0xc0]
mov ecx, dword [esi + 8]
mov edx, eax
push dword [esi + 0xc]
mov dword [ebp - 0xcc], eax
push dword [edi + 0xc]
push 0
call fcn.004c30e0
add esp, 0x10
test eax, eax
je 0x480a29
mov ecx, dword [esi + 8]
push dword [ebp - 0xc0]
mov edx, dword [ebp - 0xcc]
push dword [ebp - 0xbc]
mov eax, dword [ecx]
push dword [ebp - 0xc8]
cmp dword [eax], 0x196
jne 0x4807af
call fcn.004c2fb0
jmp 0x4807b4
call fcn.004c2fb0
add esp, 0xc
test eax, eax
je 0x480a29
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x4807d1
push ecx
call eax
add esp, 4
mov ecx, dword [ebp - 0xc8]
add eax, 7
cdq
and edx, 7
lea esi, [edx + eax]
sar esi, 3
mov dword [ebp - 0xd0], esi
call fcn.004bfe00
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [ebp - 0xbc], eax
cmp eax, esi
ja 0x480a29
push esi
call fcn.004d9a7e
sub esi, dword [ebp - 0xbc]
add esp, 4
mov dword [ebp - 0xc4], eax
push esi
push 0
push eax
call fcn.004d6ed0
mov edx, dword [ebp - 0xc4]
add esp, 0xc
mov ecx, dword [ebp - 0xc8]
lea edx, [esi + edx]
call fcn.004c0340
cmp dword [ebp - 0xbc], eax
jne 0x480a16
mov edx, dword [ebp - 0xd0]
cmp edx, 0x10
jae 0x480999
cmp edx, 8
jb 0x480914
mov eax, dword [ebp - 0xc4]
test eax, eax
je 0x4808f8
or esi, 0xffffffff
mov dword [ebp - 0xbc], eax
or edi, 0xffffffff
nop dword [eax]
movzx ecx, byte [eax]
mov eax, esi
xor eax, ecx
mov dword [ebp - 0xc8], ecx
mov ecx, dword [ebp - 0xd8]
movzx eax, al
shr esi, 8
mov edx, dword [ecx + 4]
xor esi, dword [edx + eax*4]
mov eax, edi
xor eax, dword [ebp - 0xc8]
movzx eax, al
shr edi, 8
xor edi, dword [edx + eax*4 + 0x400]
mov eax, dword [ebp - 0xbc]
inc eax
sub dword [ebp - 0xd0], 1
mov dword [ebp - 0xbc], eax
jne 0x480880
mov ecx, dword [ebp - 0xd4]
xor esi, 0x81e6b3f
xor edi, 0x569ed9b
mov dword [ebp - 0xbc], edi
mov eax, dword [ebp - 0xbc]
mov edi, dword [ebp - 0xdc]
mov dword [ecx], esi
mov dword [ecx + 4], eax
jmp 0x480a16
mov ecx, dword [ebp - 0xd4]
mov eax, dword [ebp - 0xf8]
mov esi, dword [ebp - 0xfc]
mov dword [ecx], esi
mov dword [ecx + 4], eax
jmp 0x480a16
cmp edx, 4
jb 0x480981
mov eax, dword [ebp - 0xd8]
mov eax, dword [eax + 4]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xc4]
test eax, eax
je 0x48096e
mov edi, dword [ebp - 0xbc]
mov esi, eax
or eax, 0xffffffff
nop dword [eax]
movzx ecx, byte [esi]
lea esi, [esi + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [edi + ecx*4]
sub edx, 1
jne 0x480940
mov ecx, dword [ebp - 0xd4]
xor eax, 0x81e6b3f
mov edi, dword [ebp - 0xdc]
mov dword [ecx], eax
jmp 0x480a16
mov ecx, dword [ebp - 0xd4]
mov eax, dword [ebp - 0xec]
mov dword [ecx], eax
jmp 0x480a16
mov ecx, dword [ebp - 0xd4]
push edx
push dword [ebp - 0xc4]
push ecx
call fcn.004d6950
add esp, 0xc
jmp 0x480a16
mov eax, dword [ebp - 0xd8]
mov esi, dword [eax + 4]
mov eax, dword [ebp - 0xc4]
test eax, eax
je 0x480a06
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0xa4], 0
push ecx
push edx
push eax
mov ecx, esi
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xb8], 0x67452301
mov dword [ebp - 0xb4], 0xefcdab89
mov dword [ebp - 0xb0], 0x98badcfe
mov dword [ebp - 0xac], 0x10325476
call fcn.004b2200
lea eax, [ebp - 0xb8]
mov ecx, esi
push eax
call fcn.004b2580
mov ecx, dword [ebp - 0xd4]
movups xmm0, xmmword [ebp - 0xb8]
movups xmmword [ecx], xmm0
mov eax, dword [ebp - 0xc4]
test eax, eax
je 0x480a29
push eax
call fcn.004d9a63
add esp, 4
mov esi, dword [ebp - 0xcc]
test esi, esi
je 0x480a4b
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x480a42
push esi
call eax
add esp, 4
push esi
call fcn.004d9a63
add esp, 4
mov ecx, dword [ebp - 0xc0]
call fcn.004be940
mov ecx, dword [ebp - 0xc0]
call fcn.004be7a0
push dword [ebp - 0xe4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x480ab2
mov ecx, dword [edi + 8]
mov dword [edi], 0
mov dword [edi + 4], 0
test ecx, ecx
je 0x480a8a
call fcn.004c2a10
mov esi, dword [edi + 0xc]
test esi, esi
je 0x480aa9
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x480aa0
push esi
call eax
add esp, 4
push esi
call fcn.004d9a63
add esp, 4
push edi
call fcn.004d9a63
add esp, 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004d3878
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc