Function at 0x430f50
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [ebx + 4]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ecx
cmp edi, eax
je 0x431082
cmp eax, 0xffffffff
je 0x430fc7
mov ebx, dword [ebx]
test ebx, ebx
je 0x430fc3
mov esi, dword [ebx + 0x7c]
test esi, esi
je 0x430fc3
mov eax, dword [esi]
test eax, eax
je 0x430f98
push eax
call fcn.004aa0a3
add esp, 4
cmp dword [esi + 0x40], 0
mov dword [esi], 0
je 0x430fac
lea ecx, [esi + 4]
call fcn.0042f490
push esi
mov dword [esi + 0x40], 0
call fcn.004aa0a3
add esp, 4
mov dword [ebx + 0x7c], 0
mov ebx, dword [esp + 0x14]
mov esi, dword [ebx]
mov dword [ebx + 4], 0xffffffff
cmp edi, dword [esi + 4]
jl 0x430fe3
mov eax, 0x10000
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp edi, dword [esi + 0x10]
jge 0x431019
test esi, esi
je 0x431019
mov eax, dword [esi + 0x24]
lea edx, [esi + 0x28]
sub esp, 0x10
mov dword [esi + 0x14], eax
lea eax, [esi + 0x78]
mov dword [esi + 0x10], 0
mov ecx, esi
push 0
push 0
push eax
call fcn.0042fd20
add esp, 0x1c
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x18], eax
mov esi, dword [ebx]
cmp dword [esi + 0x10], edi
jge 0x43106e
test esi, esi
je 0x431067
cmp dword [esi + 0x18], 0
je 0x431067
mov edx, dword [esi + 0x10]
inc edx
cmp edx, dword [esi + 4]
je 0x431067
mov ecx, dword [esi + 0x50]
sub esp, 0x10
mov eax, dword [esi + 0x48]
add ecx, 0x2e
add ecx, dword [esi + 0x4c]
add eax, ecx
mov dword [esi + 0x10], edx
add dword [esi + 0x14], eax
lea edx, [esi + 0x28]
push 0
lea eax, [esi + 0x78]
mov ecx, esi
push 0
push eax
call fcn.0042fd20
add esp, 0x1c
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x18], eax
mov esi, dword [ebx]
cmp dword [esi + 0x10], edi
jl 0x431020
mov edx, dword [ebx + 0x23c]
mov ecx, esi
call fcn.00430630
mov ecx, dword [esp + 0x18]
mov dword [ebx + 4], edi
mov esi, dword [ebx]
xor eax, eax
xor edx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], edx
mov byte [esp + 0xf], al
test esi, esi
jne 0x4310a5
mov dword [esp + 0x10], 0xffffff9a
jmp 0x43136b
mov esi, dword [esi + 0x7c]
test esi, esi
jne 0x4310b9
mov dword [esp + 0x10], 0xffffff9a
jmp 0x43136b
cmp dword [esi], eax
jne 0x4310ca
mov dword [esp + 0x10], 0xffffff9c
jmp 0x43136b
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4310da
mov dword [esp + 0x10], eax
jmp 0x43136b
mov dword [esi + 0x10], ecx
mov ecx, dword [esi + 0x5c]
mov dword [esi + 0x14], eax
cmp eax, ecx
jbe 0x4310ec
mov dword [esi + 0x14], ecx
mov eax, ecx
test eax, eax
je 0x43135d
cmp dword [esi + 8], 0
jne 0x431241
mov eax, dword [esi + 0x58]
test eax, eax
je 0x431241
mov ecx, dword [esi + 0x60]
mov ebx, 0x4000
mov edx, dword [esi + 0x68]
cmp eax, ebx
cmovb ebx, eax
add edx, dword [esi + 0x3c]
cmp byte [ecx], 0
je 0x431140
cmp byte [ecx + 1], 0
je 0x431345
mov eax, dword [ecx + 0xc]
push 0
push 0
add eax, edx
push eax
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x431143
mov dword [ecx + 0x1c], edx
mov edi, dword [esi + 0x60]
mov ecx, ebx
mov dword [esp + 0x1c], ebx
cmp byte [edi], 0
je 0x431172
push 0
lea eax, [esp + 0x28]
push eax
push ebx
push dword [esi]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43116c
mov byte [edi + 8], 1
mov eax, dword [esp + 0x24]
jmp 0x43119e
mov edx, dword [edi + 0x1c]
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
jbe 0x431186
mov ecx, dword [edi + 0x18]
sub ecx, edx
mov dword [esp + 0x1c], ecx
push ecx
mov ecx, dword [edi + 0x14]
add ecx, edx
push ecx
push dword [esi]
call fcn.0049f660
mov eax, dword [esp + 0x28]
add esp, 0xc
add dword [edi + 0x1c], eax
xor edx, edx
div ebx
cmp eax, 1
jne 0x431345
add dword [esi + 0x3c], ebx
sub dword [esi + 0x58], ebx
cmp byte [esi + 0x6c], 0
mov eax, dword [esi]
mov dword [esp + 0x1c], eax
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
je 0x431241
xor ecx, ecx
mov dword [esp + 0x18], ecx
test ebx, ebx
je 0x431241
mov edi, dword [esi + 0x78]
mov eax, edi
and eax, 0xfffd
or eax, 2
mov edx, eax
xor edx, 1
imul edx, eax
mov eax, dword [esp + 0x1c]
shr edx, 8
xor dl, byte [ecx + eax]
mov ecx, dword [esi + 0x70]
movsx eax, dl
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f4d20]
movzx eax, cl
add eax, dword [esi + 0x74]
imul eax, eax, 0x8088405
mov dword [esi + 0x70], ecx
mov ecx, dword [esp + 0x18]
inc eax
mov dword [esi + 0x74], eax
shr eax, 0x18
xor eax, edi
shr edi, 8
movzx eax, al
xor edi, dword [eax*4 + 0x4f4d20]
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x78], edi
mov byte [ecx + eax], dl
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, ebx
jb 0x4311d1
mov edi, dword [esi + 0x7c]
mov ecx, dword [esi + 8]
cmp edi, ecx
mov edx, ecx
cmovbe edx, edi
test edx, edx
je 0x431278
mov eax, dword [esi + 4]
sub ecx, edx
add eax, edx
mov bl, byte [eax - 1]
sub dword [esi + 0x5c], edx
sub edi, edx
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
mov dword [esi + 0x7c], edi
jne 0x431278
cmp bl, byte [esi + 0x80]
jne 0x43134e
cmp dword [esi + 0x64], 0
jne 0x4312e5
mov ebx, dword [esi + 0x14]
cmp ebx, ecx
cmovae ebx, ecx
xor edx, edx
test ebx, ebx
je 0x4312a1
nop dword [eax]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x10]
mov al, byte [edx + eax]
mov byte [edx + ecx], al
inc edx
cmp edx, ebx
jb 0x431290
mov edi, dword [esi + 0x10]
mov edx, edi
mov ecx, dword [esi + 0x50]
push ebx
call fcn.0042f230
mov edx, dword [esp + 0x24]
add esp, 4
sub dword [esi + 0x5c], ebx
add edx, ebx
sub dword [esi + 8], ebx
sub dword [esi + 0x14], ebx
add dword [esi + 4], ebx
add dword [esi + 0x18], ebx
cmp dword [esi + 0x5c], 0
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x50], eax
lea eax, [edi + ebx]
mov dword [esi + 0x10], eax
mov dword [esp + 0x20], edx
jne 0x431335
mov byte [esp + 0xf], 1
jmp 0x431335
mov edi, dword [esi + 0x18]
lea ecx, [esi + 4]
mov ebx, dword [esi + 0x10]
call fcn.0042f770
mov ecx, dword [esi + 0x50]
mov edx, ebx
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x18]
sub eax, edi
push eax
mov dword [esp + 0x1c], eax
call fcn.0042f230
mov edx, dword [esp + 0x24]
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x50], eax
mov eax, dword [esp + 0x18]
add edx, eax
sub dword [esi + 0x5c], eax
mov dword [esp + 0x20], edx
cmp ecx, 1
je 0x431358
cmp dword [esi + 0x5c], 0
je 0x431358
test ecx, ecx
jne 0x431365
cmp dword [esi + 0x14], 0
ja 0x4310f4
test ecx, ecx
je 0x43135d
jmp 0x431363
or eax, 0xffffffff
mov dword [esp + 0x10], eax
jmp 0x431367
mov dword [esp + 0x10], 0xffffff96
jmp 0x431367
mov byte [esp + 0xf], 1
mov ecx, edx
mov dword [esp + 0x10], ecx
test ecx, ecx
jg 0x4313bd
mov ebx, dword [esp + 0x14]
mov edi, dword [ebx]
test edi, edi
je 0x4313b2
mov esi, dword [edi + 0x7c]
test esi, esi
je 0x4313b2
mov eax, dword [esi]
test eax, eax
je 0x431387
push eax
call fcn.004aa0a3
add esp, 4
cmp dword [esi + 0x40], 0
mov dword [esi], 0
je 0x43139b
lea ecx, [esi + 4]
call fcn.0042f490
push esi
mov dword [esi + 0x40], 0
call fcn.004aa0a3
add esp, 4
mov dword [edi + 0x7c], 0
mov ecx, dword [esp + 0x10]
mov dword [ebx + 4], 0xffffffff
cmp byte [esp + 0xf], 0
je 0x4313cf
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
test ecx, ecx
jle 0x4313e1
mov eax, 0x600
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
pop edi
cmp ecx, 0xffffff96
mov eax, 0x5000000
mov edx, 0x1000
pop esi
cmove eax, edx
pop ebx
mov esp, ebp
pop ebp
ret 0x10