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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4b4
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x4b0], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, ecx
cmp dword [ebx + 0x14], 0
push edi
mov dword [esp + 0x1c], ebx
mov edi, edx
je 0x946afd
mov eax, 0x40000
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4b0]
xor ecx, esp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret 0xc
cmp byte [ebx + 0x2c], 0
je 0x946b1f
mov eax, 0x50000
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4b0]
xor ecx, esp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx], 0
mov dword [esp + 0x18], 0
je 0x946b39
cmp esi, 4
je 0x946b39
mov dword [esp + 0x18], 0xc
push 0x104
push eax
lea eax, [esp + 0x3b8]
push eax
call fcn.00a7b9de
add esp, 0xc
cmp byte [esp + 0x3b0], 0
mov byte [esp + 0x4b3], 0
je 0x94735f
lea eax, [esp + 0x3b0]
lea esp, [esp]
cmp byte [eax], 0x5c
jne 0x946b78
mov byte [eax], 0x2f
inc eax
cmp byte [eax], 0
jne 0x946b70
cmp esi, 4
sete dl
mov byte [esp + 0x12], dl
test dl, dl
je 0x946bae
lea eax, [esp + 0x3b0]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x946b96
sub eax, esi
cmp byte [esp + eax + 0x3af], 0x2f
mov byte [esp + 0x13], 1
jne 0x946bb3
mov byte [esp + 0x13], 0
mov dword [esp + 0x14], 8
test dl, dl
jne 0x946bcf
lea ecx, [esp + 0x3b0]
call fcn.00946140
test al, al
je 0x946bd7
mov dword [esp + 0x14], 0
mov eax, dword [ebp + 0x10]
cmp eax, 2
jne 0x946bea
mov eax, edi
mov ecx, ebx
call fcn.009465e0
jmp 0x946c1f
cmp eax, 1
jne 0x946bfc
mov ecx, dword [ebp + 0xc]
push ecx
mov esi, ebx
call fcn.00946660
jmp 0x946c1f
cmp eax, 3
jne 0x946c0f
mov ecx, dword [ebp + 0xc]
mov edx, edi
mov esi, ebx
call fcn.00946750
jmp 0x946c1f
cmp eax, 4
jne 0x94735f
mov esi, ebx
call fcn.009467d0
xor esi, esi
cmp eax, esi
jne 0x947364
push 0x104
lea edx, [esp + 0x3b4]
push edx
lea eax, [esp + 0x170]
push eax
mov dword [esp + 0x388], esi
mov byte [esp + 0x64], 0
call fcn.00a7a620
lea eax, [esp + 0x174]
add esp, 0xc
mov byte [esp + 0x26b], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x946c64
sub eax, edx
mov dword [esp + 0x38], eax
cmp byte [esp + 0x13], cl
je 0x946c98
lea edi, [esp + 0x168]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x946c80
mov cx, word [0xaa1560]
mov word [edi], cx
inc dword [esp + 0x38]
xor esi, esi
xor edx, edx
mov eax, 0xb17
mov word [esp + 0x4a], dx
mov edx, dword [ebx + 0x5c]
mov word [esp + 0x20], ax
mov ecx, 0x14
mov eax, 8
mov byte [esp + 0x26c], 0
mov dword [esp + 0x164], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x370], 1
mov dword [esp + 0x378], esi
mov word [esp + 0x22], cx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], esi
mov word [esp + 0x24], ax
cmp dword [ebx], esi
je 0x946d02
cmp byte [esp + 0x12], 0
jne 0x946d02
mov eax, 9
mov word [esp + 0x24], ax
mov word [esp + 0x4c], ax
mov eax, dword [esp + 0x14]
mov word [esp + 0x26], ax
cmp eax, esi
jne 0x946d27
mov eax, dword [ebx + 0x64]
cmp eax, esi
jl 0x946d27
mov ecx, dword [esp + 0x18]
add eax, ecx
mov dword [esp + 0x30], eax
jmp 0x946d2b
mov dword [esp + 0x30], esi
mov edx, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x4c]
mov esi, dword [ebx + 0x50]
mov dword [esp + 0x34], edx
mov edx, dword [ebx + 0x18]
add edx, dword [ebx + 0x10]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
mov dl, byte [ebx + 0x54]
xor eax, eax
mov byte [esp + 0x395], dl
mov word [esp + 0x48], ax
lea eax, [esp + 0x390]
mov dword [esp + 0x15c], eax
mov eax, dword [ebx + 0x54]
lea ecx, [esp + 0x3a4]
mov dword [esp + 0x160], ecx
mov ecx, eax
sar ecx, 8
mov byte [esp + 0x396], cl
movzx ecx, byte [ebx + 0x50]
mov edx, eax
sar edx, 0x10
mov byte [esp + 0x397], dl
mov byte [esp + 0x399], cl
mov edx, esi
sar edx, 8
mov byte [esp + 0x39a], dl
mov ecx, esi
sar ecx, 0x10
mov edx, esi
mov esi, dword [ebx + 0x58]
sar edx, 0x18
mov byte [esp + 0x39b], cl
movzx ecx, byte [ebx + 0x58]
mov byte [esp + 0x39c], dl
mov edx, esi
sar edx, 8
mov byte [esp + 0x39d], cl
mov byte [esp + 0x39e], dl
mov ecx, esi
sar ecx, 0x10
mov edx, esi
sar edx, 0x18
mov byte [esp + 0x390], 0x55
mov byte [esp + 0x391], 0x54
mov byte [esp + 0x392], 0xd
mov byte [esp + 0x393], 0
mov byte [esp + 0x39f], cl
mov ecx, dword [esp + 0x390]
mov byte [esp + 0x394], 7
sar eax, 0x18
mov byte [esp + 0x3a0], dl
mov edx, dword [esp + 0x394]
mov dword [esp + 0x3a4], ecx
mov esi, ebx
lea edi, [esp + 0x20]
mov dword [esp + 0x3c], 0x11
mov dword [esp + 0x40], 9
mov byte [esp + 0x398], al
mov dword [esp + 0x3a8], edx
mov byte [esp + 0x3ac], al
mov byte [esp + 0x3a6], 5
call fcn.00945580
test eax, eax
je 0x946e8c
call fcn.009468e0
mov eax, 0x400
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4b0]
xor ecx, esp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
lea edx, [ecx + eax + 0x1e]
add dword [ebx + 0x18], edx
cmp dword [ebx + 0x14], 0
je 0x946ec0
call fcn.009468e0
mov eax, dword [ebx + 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4b0]
xor ecx, esp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret 0xc
lea esi, [ebx + 0x30]
mov dword [ebx + 0x34], 0x23456789
mov dword [ebx + 0x38], 0x34567890
mov ebx, dword [ebx]
mov dword [esi], 0x12345678
test ebx, ebx
je 0x946ef2
lea ecx, [ecx]
mov cl, byte [ebx]
test cl, cl
je 0x946ef2
mov edx, esi
call fcn.00949060
add ebx, 1
jne 0x946ee0
cmp byte [0xb56a3d], 0
jne 0x946f14
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, eax
push edi
call fcn.00a7e835
add esp, 4
xor edi, edi
call fcn.00a7e847
sar eax, 7
mov byte [esp + edi + 0x384], al
inc edi
cmp edi, 0xc
jl 0x946f16
mov eax, dword [esp + 0x28]
shr eax, 8
mov byte [esp + 0x38f], al
xor ebx, ebx
jmp 0x946f40
mov cl, byte [esp + ebx + 0x384]
movsx ecx, cl
mov edi, dword [esi]
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0xaa6af0]
mov eax, dword [esi + 8]
shr edi, 8
xor ecx, edi
mov dword [esi], ecx
movzx ecx, cl
add ecx, dword [esi + 4]
mov edi, dword [esi]
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 4], ecx
shr ecx, 0x18
xor ecx, eax
and ecx, 0xff
mov edx, eax
shr eax, 8
xor eax, dword [ecx*4 + 0xaa6af0]
mov cl, byte [esp + ebx + 0x385]
movsx ecx, cl
xor ecx, edi
and ecx, 0xff
mov dword [esi + 8], eax
mov ecx, dword [ecx*4 + 0xaa6af0]
and edx, 0xfffd
or edx, 2
shr edi, 8
xor ecx, edi
mov dword [esi], ecx
movzx ecx, cl
add ecx, dword [esi + 4]
mov eax, edx
xor eax, 1
imul ecx, ecx, 0x8088405
imul eax, edx
mov edi, dword [esi]
inc ecx
mov dword [esi + 4], ecx
shr eax, 8
xor al, byte [esp + ebx + 0x384]
shr ecx, 0x18
mov byte [esp + ebx + 0x384], al
mov eax, dword [esi + 8]
xor ecx, eax
and ecx, 0xff
mov edx, eax
shr eax, 8
xor eax, dword [ecx*4 + 0xaa6af0]
mov cl, byte [esp + ebx + 0x386]
movsx ecx, cl
xor ecx, edi
and ecx, 0xff
mov dword [esi + 8], eax
mov ecx, dword [ecx*4 + 0xaa6af0]
and edx, 0xfffd
or edx, 2
mov eax, edx
shr edi, 8
xor ecx, edi
mov dword [esi], ecx
xor eax, 1
imul eax, edx
movzx ecx, cl
add ecx, dword [esi + 4]
shr eax, 8
xor al, byte [esp + ebx + 0x385]
imul ecx, ecx, 0x8088405
inc ecx
mov byte [esp + ebx + 0x385], al
mov eax, dword [esi + 8]
mov dword [esi + 4], ecx
mov edx, eax
shr ecx, 0x18
and edx, 0xfffd
xor ecx, eax
or edx, 2
and ecx, 0xff
mov edi, dword [esi]
shr eax, 8
xor eax, dword [ecx*4 + 0xaa6af0]
mov cl, byte [esp + ebx + 0x387]
movsx ecx, cl
mov dword [esi + 8], eax
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0xaa6af0]
shr edi, 8
xor ecx, edi
mov dword [esi], ecx
movzx ecx, cl
add ecx, dword [esi + 4]
mov eax, edx
xor eax, 1
imul ecx, ecx, 0x8088405
imul eax, edx
shr eax, 8
xor al, byte [esp + ebx + 0x386]
inc ecx
mov byte [esp + ebx + 0x386], al
mov eax, dword [esi + 8]
mov edx, eax
mov dword [esi + 4], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0xaa6af0]
and edx, 0xfffd
mov dword [esi + 8], eax
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor al, byte [esp + ebx + 0x387]
add ebx, 4
cmp ebx, 0xc
mov byte [esp + ebx + 0x383], al
jl 0x946f40
mov ebx, dword [esp + 0x1c]
xor esi, esi
cmp dword [ebx], esi
je 0x947148
cmp byte [esp + 0x12], 0
jne 0x947136
push 0xc
lea ecx, [esp + 0x388]
push ecx
mov ecx, ebx
call fcn.009463e0
add dword [ebx + 0x18], 0xc
cmp dword [ebx], esi
je 0x947148
cmp byte [esp + 0x12], 0
jne 0x947148
mov eax, 1
jmp 0x94714a
xor eax, eax
cmp byte [esp + 0x12], 0
mov byte [ebx + 0x2d], al
jne 0x94717c
mov eax, dword [esp + 0x14]
cmp eax, 8
jne 0x94716d
lea edx, [esp + 0x20]
push edx
mov edi, ebx
call fcn.00946940
mov esi, eax
jmp 0x947182
cmp eax, esi
jne 0x947182
mov eax, ebx
call fcn.00946a50
mov esi, eax
jmp 0x947182
mov dword [ebx + 0x84], esi
cmp byte [ebx + 0x74], 0
mov byte [ebx + 0x2d], 0
je 0x94719a
mov eax, dword [ebx + 0x70]
test eax, eax
je 0x94719a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx + 0x84]
mov eax, dword [ebx + 0x14]
mov edi, dword [ebx + 0x68]
add dword [ebx + 0x18], ecx
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x64], edi
test eax, eax
jne 0x947364
test esi, esi
jne 0x946e70
mov eax, dword [esp + 0x18]
mov edx, dword [ebx + 0x6c]
add eax, ecx
cmp dword [esp + 0x30], eax
mov dword [esp + 0x2c], edx
sete cl
cmp byte [ebx + 0x1c], 0
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edi
je 0x947264
cmp dword [ebx], esi
je 0x9471f0
cmp byte [esp + 0x12], 0
je 0x947264
test byte [esp + 0x24], 1
mov ax, word [esp + 0x14]
mov word [esp + 0x26], ax
jne 0x94720b
mov ecx, 0xfff7
and word [esp + 0x24], cx
mov dx, word [esp + 0x24]
mov word [esp + 0x4c], dx
mov edx, dword [esp + 0x54]
sub edx, dword [ebx + 0x10]
mov eax, ebx
call fcn.00946530
test al, al
je 0x947248
mov esi, ebx
lea edi, [esp + 0x20]
call fcn.00945580
test eax, eax
jne 0x946e70
mov edx, dword [ebx + 0x18]
mov eax, ebx
call fcn.00946530
test al, al
jne 0x9472b4
mov eax, 0x2000000
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4b0]
xor ecx, esp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esp + 0x14]
cmp word [esp + 0x26], ax
je 0x94728b
mov eax, 0x4000000
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4b0]
xor ecx, esp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret 0xc
test eax, eax
jne 0x947293
test cl, cl
je 0x94726f
mov esi, ebx
lea edi, [esp + 0x20]
call fcn.00945850
test eax, eax
jne 0x946e70
mov ax, word [esp + 0x4c]
add dword [ebx + 0x18], 0x10
mov word [esp + 0x24], ax
mov eax, dword [ebx + 0x14]
test eax, eax
jne 0x947364
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00a77370
mov edx, dword [esp + 0x44]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x160]
push edx
push eax
push esi
call fcn.00a828e0
add esp, 0xc
push 0x360
mov dword [esp + 0x164], esi
call fcn.00a7ab3a
mov ecx, 0xd8
lea esi, [esp + 0x24]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x44]
add esp, 4
test ecx, ecx
jne 0x947328
mov dword [ebx + 0x44], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4b0]
xor ecx, esp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ecx + 0x35c], 0
je 0x947340
mov ecx, dword [ecx + 0x35c]
cmp dword [ecx + 0x35c], 0
jne 0x947331
mov dword [ecx + 0x35c], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4b0]
xor ecx, esp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0x10000
mov ecx, dword [esp + 0x4bc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret 0xc