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

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov esi, eax
push 0x40
lea ebx, [esi + 0x64]
push 0
push ebx
call fcn.0049a020
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
add esp, 0xc
push 0x4000
push 0
call edi
mov dword [ebx], eax
test eax, eax
je 0x415545
cmp word [esi + 0x3e], 0
je 0x415581
push 0x4c
push 0
call edi
mov dword [esi + 0x80], eax
test eax, eax
je 0x415545
push 0x4c
push 0
push eax
call fcn.0049a020
mov eax, dword [esi + 0x80]
mov dword [eax + 8], 0xf
mov ecx, dword [esi + 0x80]
add esp, 0xc
mov byte [ecx + 0x48], 7
mov edx, dword [esi + 0x80]
push 0x2d00
push 0
mov byte [edx + 0x44], 0
call edi
mov ecx, dword [esi + 0x80]
mov dword [ecx + 0x2c], eax
test eax, eax
je 0x415545
push 0x8000
push 0
call edi
mov edx, dword [esi + 0x80]
mov dword [edx + 0x30], eax
test eax, eax
jne 0x415557
mov dword [esi + 8], 2
call fcn.00415450
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esi + 0x80]
mov ecx, dword [eax + 0x30]
add ecx, 0x8000
mov dword [eax + 0x34], ecx
mov eax, dword [esi + 0x80]
mov edx, dword [eax + 0x30]
mov dword [eax + 0x3c], edx
mov eax, dword [esi + 0x80]
mov ecx, dword [eax + 0x3c]
mov dword [eax + 0x38], ecx
mov eax, dword [esi]
test al, 8
je 0x415593
mov edx, dword [ebp + 0x20]
mov dword [esi + 0x48], edx
mov ecx, dword [ebp + 0x24]
mov dword [esi + 0x4c], ecx
mov ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x48]
mov dword [esi + 0x8c], ecx
movzx ecx, word [esi + 0x3c]
mov dword [esi + 0x88], edx
test cl, 8
je 0x4155b3
mov dl, byte [esi + 0x41]
jmp 0x4155b6
mov dl, byte [esi + 0x47]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov byte [esi + 0xa0], dl
test al, 4
je 0x4155ce
mov eax, dword [esi + 0x5e]
jmp 0x4156d7
test cl, 1
je 0x41567a
mov ebp, dword [esi + 0x30]
mov dword [esi + 0x9c], 0xc
mov dword [esi + 0x90], 0x12345678
mov dword [esi + 0x94], 0x23456789
mov dword [esi + 0x98], 0x34567890
test ebp, ebp
je 0x41567a
mov dl, byte [ebp]
test dl, dl
je 0x41567a
mov eax, dword [esi + 0x90]
mov ecx, dword [esi + 0x94]
mov edi, dword [esi + 0x98]
nop
movsx edx, dl
xor edx, eax
and edx, 0xff
shr eax, 8
mov dword [esp + 0x10], eax
mov eax, dword [edx*4 + 0x4a96d8]
xor eax, dword [esp + 0x10]
inc ebp
movzx edx, al
add ecx, edx
imul ecx, ecx, 0x8088405
inc ecx
mov edx, ecx
shr edx, 0x18
xor edx, edi
and edx, 0xff
shr edi, 8
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], ecx
xor edi, dword [edx*4 + 0x4a96d8]
mov dword [esi + 0x98], edi
mov dl, byte [ebp]
test dl, dl
jne 0x415620
test byte [esi], 1
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x5e]
lea eax, [eax + ecx + 0x1c]
jne 0x4156b0
mov edx, dword [esi + 0xc]
push 0
push 0
add edx, eax
mov eax, dword [esi + 4]
push edx
push eax
call ebx
cmp eax, 0xffffffff
jne 0x4156b3
mov dword [esi + 8], 7
call fcn.00415450
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov dword [esi + 0x14], eax
mov eax, 2
lea edx, [esp + 0x10]
call fcn.00415320
test eax, eax
je 0x41569e
movzx ecx, word [esi + 0x50]
movzx edx, word [esp + 0x10]
mov eax, dword [esi + 0x5e]
add ecx, edx
lea eax, [ecx + eax + 0x1e]
test byte [esi], 1
jne 0x4156f7
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call ebx
cmp eax, 0xffffffff
je 0x41569e
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
mov dword [esi + 0x14], eax
pop esi
pop ebp
pop ebx
pop ecx
ret