Function at 0x48de50
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x509c
call fcn.004b2070
mov eax, dword [0x504c94]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov dword [ebp - 0x5094], eax
cmp dword [ebx + 0x14], esi
je 0x48de90
mov eax, 0x40000
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004aaf83
mov esp, ebp
pop ebp
ret 4
cmp byte [ebx + 0x2c], 0
je 0x48dead
mov eax, 0x50000
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004aaf83
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 0x509c], esi
cmp dword [ebx], esi
je 0x48dec1
mov dword [ebp - 0x509c], 0xc
xor eax, eax
jmp 0x48ded0
movzx ecx, word [eax + str.Log.txt]
mov word [ebp + eax - 0x2034], cx
add eax, 2
cmp cx, si
jne 0x48ded0
cmp word [ebp - 0x2034], si
jne 0x48df07
mov eax, 0x10000
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004aaf83
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2034]
lea ecx, [ecx]
cmp word [eax], 0x5c
jne 0x48df1e
mov ecx, 0x2f
mov word [eax], cx
add eax, 2
cmp word [eax], si
jne 0x48df10
mov edi, 8
lea edx, [ebp - 0x2034]
mov dword [ebp - 0x5098], edi
call fcn.0048d400
test al, al
je 0x48df48
mov dword [ebp - 0x5098], esi
mov edi, esi
mov eax, dword [ebp - 0x5094]
mov ecx, ebx
call fcn.0048d9f0
cmp eax, esi
jne 0x48e677
push esi
push esi
push 0x1000
lea edx, [ebp - 0x4048]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x2034]
push eax
push esi
push 0xfde9
mov dword [ebp - 0x203c], esi
mov byte [ebp - 0x5054], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x4048]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x48df96
sub eax, edx
mov dword [ebp - 0x5074], eax
mov byte [ebp - 0x3048], cl
xor ecx, ecx
mov eax, 0x14
mov word [ebp - 0x5062], cx
mov ecx, dword [ebx + 0x68]
mov word [ebp - 0x508a], ax
mov edx, 0xb17
mov eax, 8
mov dword [ebp - 0x404c], esi
mov dword [ebp - 0x5068], esi
mov dword [ebp - 0x2048], 1
mov dword [ebp - 0x2040], esi
mov word [ebp - 0x508c], dx
mov dword [ebp - 0x5084], ecx
mov dword [ebp - 0x5080], esi
mov word [ebp - 0x5088], ax
cmp dword [ebx], esi
je 0x48e013
mov eax, 9
mov word [ebp - 0x5088], ax
mov word [ebp - 0x5060], ax
mov word [ebp - 0x5086], di
cmp edi, esi
jne 0x48e03c
mov eax, dword [ebx + 0x70]
cmp eax, esi
jl 0x48e03c
mov edx, dword [ebp - 0x509c]
add eax, edx
mov dword [ebp - 0x507c], eax
jmp 0x48e042
mov dword [ebp - 0x507c], esi
mov eax, dword [ebx + 0x70]
mov edx, dword [ebx + 0x4c]
mov esi, dword [ebx + 0x58]
mov edi, dword [ebx + 0x5c]
mov dword [ebp - 0x5078], eax
mov eax, dword [ebx + 0x10]
add eax, dword [ebx + 0x18]
xor ecx, ecx
mov word [ebp - 0x5064], cx
mov dword [ebp - 0x505c], edx
mov dword [ebp - 0x5058], eax
mov al, byte [ebx + 0x58]
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x34]
mov dword [ebp - 0x4054], ecx
mov dword [ebp - 0x4050], edx
mov byte [ebp - 0x23], al
mov eax, esi
mov edx, edi
mov cl, 8
mov dword [ebp - 0x5070], 0x11
mov dword [ebp - 0x506c], 9
mov byte [ebp - 0x28], 0x55
mov byte [ebp - 0x27], 0x54
mov byte [ebp - 0x26], 0xd
mov byte [ebp - 0x25], 0
mov byte [ebp - 0x24], 7
call fcn.004c8a00
mov byte [ebp - 0x22], al
mov eax, esi
mov edx, edi
mov cl, 0x10
call fcn.004c8a00
mov byte [ebp - 0x21], al
mov eax, esi
mov edx, edi
mov cl, 0x18
call fcn.004c8a00
mov cl, byte [ebx + 0x50]
mov esi, dword [ebx + 0x50]
mov edi, dword [ebx + 0x54]
mov byte [ebp - 0x20], al
mov byte [ebp - 0x1f], cl
mov eax, esi
mov edx, edi
mov cl, 8
call fcn.004c8a00
mov byte [ebp - 0x1e], al
mov eax, esi
mov edx, edi
mov cl, 0x10
call fcn.004c8a00
mov byte [ebp - 0x1d], al
mov eax, esi
mov edx, edi
mov cl, 0x18
call fcn.004c8a00
movzx edx, byte [ebx + 0x60]
mov esi, dword [ebx + 0x60]
mov edi, dword [ebx + 0x64]
mov byte [ebp - 0x1c], al
mov byte [ebp - 0x1b], dl
mov eax, esi
mov edx, edi
mov cl, 8
call fcn.004c8a00
mov byte [ebp - 0x1a], al
mov eax, esi
mov edx, edi
mov cl, 0x10
call fcn.004c8a00
mov byte [ebp - 0x19], al
mov eax, esi
mov edx, edi
mov cl, 0x18
call fcn.004c8a00
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 0x18], al
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ecx
movzx edx, byte [ebp - 0x20]
mov esi, ebx
lea edi, [ebp - 0x508c]
mov byte [ebp - 0x2c], dl
mov byte [ebp - 0x32], 5
call fcn.0048c910
test eax, eax
je 0x48e18a
call fcn.0048dc70
mov eax, 0x400
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004aaf83
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x5074]
mov ecx, dword [ebp - 0x5070]
lea edx, [ecx + eax + 0x1e]
add dword [ebx + 0x18], edx
cmp dword [ebx + 0x14], 0
je 0x48e1bd
call fcn.0048dc70
mov eax, dword [ebx + 0x14]
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004aaf83
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebx]
lea edi, [ebx + 0x30]
mov dword [edi], 0x12345678
mov dword [ebx + 0x34], 0x23456789
mov dword [ebx + 0x38], 0x34567890
test esi, esi
je 0x48e1ec
mov cl, byte [esi]
test cl, cl
je 0x48e1ec
mov edx, edi
call fcn.0048d3b0
add esi, 1
jne 0x48e1da
cmp byte [0x509ea1], 0
jne 0x48e20e
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
push esi
call fcn.004aecac
add esp, 4
xor esi, esi
call fcn.004aecbe
sar eax, 7
mov byte [ebp + esi - 0x14], al
inc esi
cmp esi, 0xc
jl 0x48e210
mov eax, dword [ebp - 0x5084]
shr eax, 8
mov byte [ebp - 9], al
mov dword [ebp - 0x5094], 0
mov ecx, dword [ebp - 0x5094]
mov cl, byte [ebp + ecx - 0x14]
movsx ecx, cl
mov esi, dword [edi]
xor ecx, esi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4ef7b8]
mov dword [ebp - 0x5090], ecx
mov eax, dword [edi + 8]
shr esi, 8
xor dword [ebp - 0x5090], esi
mov ecx, dword [ebp - 0x5090]
mov dword [edi], ecx
movzx ecx, cl
add ecx, dword [edi + 4]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [edi + 4], ecx
shr ecx, 0x18
xor ecx, eax
and ecx, 0xff
and edx, 0xfffd
or edx, 2
shr eax, 8
xor eax, dword [ecx*4 + 0x4ef7b8]
mov esi, dword [edi]
mov ecx, edx
xor ecx, 1
imul ecx, edx
shr ecx, 8
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x5094]
xor cl, byte [ebp + eax - 0x14]
mov byte [ebp + eax - 0x14], cl
mov cl, byte [ebp + eax - 0x13]
movsx ecx, cl
xor ecx, esi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4ef7b8]
mov dword [ebp - 0x5090], ecx
mov eax, dword [edi + 8]
shr esi, 8
xor dword [ebp - 0x5090], esi
mov ecx, dword [ebp - 0x5090]
mov dword [edi], ecx
movzx ecx, cl
add ecx, dword [edi + 4]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [edi + 4], ecx
shr ecx, 0x18
xor ecx, eax
and ecx, 0xff
and edx, 0xfffd
mov esi, dword [edi]
or edx, 2
shr eax, 8
xor eax, dword [ecx*4 + 0x4ef7b8]
mov ecx, edx
xor ecx, 1
imul ecx, edx
shr ecx, 8
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x5094]
xor cl, byte [ebp + eax - 0x13]
mov byte [ebp + eax - 0x13], cl
mov cl, byte [ebp + eax - 0x12]
mov eax, dword [edi + 8]
movsx ecx, cl
xor ecx, esi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4ef7b8]
mov edx, eax
and edx, 0xfffd
mov dword [ebp - 0x5090], ecx
shr esi, 8
or edx, 2
xor dword [ebp - 0x5090], esi
mov ecx, dword [ebp - 0x5090]
mov dword [edi], ecx
movzx ecx, cl
add ecx, dword [edi + 4]
mov esi, dword [edi]
imul ecx, ecx, 0x8088405
inc ecx
mov dword [edi + 4], ecx
shr ecx, 0x18
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x4ef7b8]
mov ecx, edx
xor ecx, 1
imul ecx, edx
shr ecx, 8
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x5094]
xor cl, byte [ebp + eax - 0x12]
mov byte [ebp + eax - 0x12], cl
mov cl, byte [ebp + eax - 0x11]
movsx ecx, cl
xor ecx, esi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4ef7b8]
mov dword [ebp - 0x5090], ecx
mov eax, dword [edi + 8]
shr esi, 8
xor dword [ebp - 0x5090], esi
mov ecx, dword [ebp - 0x5090]
mov dword [edi], ecx
movzx ecx, cl
add ecx, dword [edi + 4]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [edi + 4], ecx
shr ecx, 0x18
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x4ef7b8]
and edx, 0xfffd
or edx, 2
mov ecx, edx
xor ecx, 1
imul ecx, edx
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x5094]
shr ecx, 8
xor cl, byte [ebp + eax - 0x11]
add eax, 4
cmp eax, 0xc
mov byte [ebp + eax - 0x15], cl
mov dword [ebp - 0x5094], eax
jl 0x48e238
cmp dword [ebx], 0
je 0x48e45e
push 0xc
lea edx, [ebp - 0x14]
push edx
mov ecx, ebx
call fcn.0048d7d0
add dword [ebx + 0x18], 0xc
mov edx, dword [ebp - 0x5098]
xor esi, esi
xor eax, eax
cmp dword [ebx], esi
setne al
mov byte [ebx + 0x2d], al
cmp edx, 8
jne 0x48e485
lea eax, [ebp - 0x508c]
push eax
mov edi, ebx
call fcn.0048dcd0
jmp 0x48e490
test edx, edx
jne 0x48e498
mov edi, ebx
call fcn.0048dde0
mov edx, dword [ebp - 0x5098]
mov esi, eax
cmp byte [ebx + 0x80], 0
mov byte [ebx + 0x2d], 0
je 0x48e4b9
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x48e4b9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x5098]
mov ecx, dword [ebx + 0x90]
mov eax, dword [ebx + 0x14]
mov edi, dword [ebx + 0x74]
add dword [ebx + 0x18], ecx
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x70], edi
test eax, eax
jne 0x48e677
test esi, esi
jne 0x48e173
mov eax, dword [ebp - 0x509c]
mov esi, dword [ebx + 0x78]
add eax, ecx
cmp dword [ebp - 0x507c], eax
mov dword [ebp - 0x5080], esi
sete cl
cmp byte [ebx + 0x1c], 0
mov dword [ebp - 0x507c], eax
mov dword [ebp - 0x5078], edi
je 0x48e58b
cmp dword [ebx], 0
jne 0x48e58b
test byte [ebp - 0x5088], 1
mov word [ebp - 0x5086], dx
jne 0x48e52f
mov ecx, 0xfff7
and word [ebp - 0x5088], cx
mov dx, word [ebp - 0x5088]
mov word [ebp - 0x5060], dx
mov edx, dword [ebp - 0x5058]
sub edx, dword [ebx + 0x10]
mov eax, ebx
call fcn.0048d930
test al, al
je 0x48e574
mov esi, ebx
lea edi, [ebp - 0x508c]
call fcn.0048c910
test eax, eax
jne 0x48e173
mov edx, dword [ebx + 0x18]
mov eax, ebx
call fcn.0048d930
test al, al
jne 0x48e5da
mov eax, 0x2000000
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004aaf83
mov esp, ebp
pop ebp
ret 4
cmp word [ebp - 0x5086], dx
je 0x48e5ab
mov eax, 0x4000000
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004aaf83
mov esp, ebp
pop ebp
ret 4
test edx, edx
jne 0x48e5b3
test cl, cl
je 0x48e594
mov esi, ebx
lea edi, [ebp - 0x508c]
call fcn.0048cbb0
test eax, eax
jne 0x48e173
mov ax, word [ebp - 0x5060]
add dword [ebx + 0x18], 0x10
mov word [ebp - 0x5088], ax
mov eax, dword [ebx + 0x14]
test eax, eax
jne 0x48e677
mov ecx, dword [ebp - 0x506c]
push ecx
call fcn.0049cb24
mov edx, dword [ebp - 0x506c]
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x4050]
push edx
push eax
push esi
call fcn.004abb70
add esp, 0xc
push 0x3054
mov dword [ebp - 0x4050], esi
call fcn.0049caea
add esp, 4
push 0x3054
lea ecx, [ebp - 0x508c]
mov esi, eax
push ecx
push esi
call fcn.004abb70
mov eax, dword [ebx + 0x44]
add esp, 0xc
test eax, eax
jne 0x48e653
mov dword [ebx + 0x44], esi
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004aaf83
mov esp, ebp
pop ebp
ret 4
cmp dword [eax + 0x3050], 0
je 0x48e66f
lea esp, [esp]
mov eax, dword [eax + 0x3050]
cmp dword [eax + 0x3050], 0
jne 0x48e660
mov dword [eax + 0x3050], esi
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.004aaf83
mov esp, ebp
pop ebp
ret 4