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

Disassembly:
sub esp, 0x7b8
mov eax, dword [0x1012007c]
xor eax, esp
mov dword [esp + 0x7b4], eax
mov eax, dword [esp + 0x7c0]
push ebx
push ebp
mov ebp, dword [esp + 0x7c4]
push esi
push edi
xor edi, edi
mov esi, edx
mov dword [esp + 0x1c], ecx
cmp dword [ebp + 0x14], edi
je 0x1003561d
mov eax, 0x40000
jmp 0x10035e4e
cmp byte [ebp + 0x2c], 0
je 0x1003562d
mov eax, 0x50000
jmp 0x10035e4e
mov dword [esp + 0x18], edi
cmp dword [ebp], edi
je 0x10035643
cmp esi, 4
je 0x10035643
mov dword [esp + 0x18], 0xc
lea edx, [esp + 0x3b0]
sub edx, eax
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, di
jne 0x10035650
cmp word [esp + 0x3b0], di
je 0x10035e49
lea eax, [esp + 0x3b0]
cmp word [eax], 0x5c
jne 0x10035682
mov edx, 0x2f
mov word [eax], dx
add eax, 2
cmp word [eax], di
jne 0x10035674
cmp esi, 4
sete al
mov byte [esp + 0x13], al
test al, al
je 0x100356c0
lea eax, [esp + 0x3b0]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x100356a2
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x3ae], 0x2f
je 0x100356c0
mov bl, 1
jmp 0x100356c2
xor bl, bl
cmp byte [esp + 0x13], 0
mov dword [esp + 0x14], 8
jne 0x100356e1
lea edx, [esp + 0x3b0]
call fcn.100347e0
test al, al
je 0x100356e5
mov dword [esp + 0x14], edi
cmp esi, 2
jne 0x100356f7
mov eax, dword [esp + 0x1c]
mov ecx, ebp
call fcn.10034fd0
jmp 0x1003573c
cmp esi, 1
jne 0x10035713
mov eax, dword [esp + 0x7d4]
mov edi, dword [esp + 0x1c]
push eax
mov esi, ebp
call fcn.10035060
xor edi, edi
jmp 0x1003573c
cmp esi, 3
jne 0x1003572c
mov eax, dword [esp + 0x7d4]
mov ecx, dword [esp + 0x1c]
mov esi, ebp
call fcn.100351a0
jmp 0x1003573c
cmp esi, 4
jne 0x10035e49
mov esi, ebp
call fcn.10035280
cmp eax, edi
jne 0x10035e4e
push edi
push edi
push 0x104
lea ecx, [esp + 0x174]
push ecx
push 0xffffffffffffffff
lea edx, [esp + 0x3c4]
push edx
push edi
push 0xfde9
mov dword [esp + 0x39c], edi
mov byte [esp + 0x78], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [esp + 0x168]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10035780
sub eax, edx
mov dword [esp + 0x38], eax
test bl, bl
je 0x100357b7
lea edi, [esp + 0x168]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100357a0
mov ax, word [0x101035d0]
mov word [edi], ax
inc dword [esp + 0x38]
xor edi, edi
xor ecx, ecx
mov eax, 0x14
mov word [esp + 0x4a], cx
mov ecx, dword [ebp + 0x68]
mov word [esp + 0x22], ax
mov edx, 0xb17
mov eax, 8
mov byte [esp + 0x26c], 0
mov dword [esp + 0x164], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x370], 1
mov dword [esp + 0x378], edi
mov word [esp + 0x20], dx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edi
mov word [esp + 0x24], ax
cmp dword [ebp], edi
je 0x10035822
cmp byte [esp + 0x13], 0
jne 0x10035822
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, edi
jne 0x10035847
mov eax, dword [ebp + 0x70]
cmp eax, edi
jl 0x10035847
mov edx, dword [esp + 0x18]
add eax, edx
mov dword [esp + 0x30], eax
jmp 0x1003584b
mov dword [esp + 0x30], edi
mov eax, dword [ebp + 0x70]
mov edx, dword [ebp + 0x4c]
mov esi, dword [ebp + 0x58]
mov edi, dword [ebp + 0x5c]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x10]
add eax, dword [ebp + 0x18]
xor ecx, ecx
mov word [esp + 0x48], cx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
mov al, byte [ebp + 0x58]
lea ecx, [esp + 0x390]
lea edx, [esp + 0x3a4]
mov dword [esp + 0x15c], ecx
mov dword [esp + 0x160], edx
mov byte [esp + 0x395], al
mov eax, esi
mov edx, edi
mov cl, 8
mov dword [esp + 0x3c], 0x11
mov dword [esp + 0x40], 9
mov byte [esp + 0x390], 0x55
mov byte [esp + 0x391], 0x54
mov byte [esp + 0x392], 0xd
mov byte [esp + 0x393], 0
mov byte [esp + 0x394], 7
call fcn.100e9830
mov byte [esp + 0x396], al
mov eax, esi
mov edx, edi
mov cl, 0x10
call fcn.100e9830
mov byte [esp + 0x397], al
mov eax, esi
mov edx, edi
mov cl, 0x18
call fcn.100e9830
mov cl, byte [ebp + 0x50]
mov esi, dword [ebp + 0x50]
mov edi, dword [ebp + 0x54]
mov bl, al
mov byte [esp + 0x399], cl
mov eax, esi
mov edx, edi
mov cl, 8
mov byte [esp + 0x398], bl
call fcn.100e9830
mov byte [esp + 0x39a], al
mov eax, esi
mov edx, edi
mov cl, 0x10
call fcn.100e9830
mov byte [esp + 0x39b], al
mov eax, esi
mov edx, edi
mov cl, 0x18
call fcn.100e9830
mov dl, byte [ebp + 0x60]
mov esi, dword [ebp + 0x60]
mov edi, dword [ebp + 0x64]
mov byte [esp + 0x39c], al
mov byte [esp + 0x39d], dl
mov eax, esi
mov edx, edi
mov cl, 8
call fcn.100e9830
mov byte [esp + 0x39e], al
mov eax, esi
mov edx, edi
mov cl, 0x10
call fcn.100e9830
mov byte [esp + 0x39f], al
mov eax, esi
mov edx, edi
mov cl, 0x18
call fcn.100e9830
mov ecx, dword [esp + 0x394]
mov byte [esp + 0x3a0], al
mov eax, dword [esp + 0x390]
mov dword [esp + 0x3a4], eax
mov esi, ebp
lea edi, [esp + 0x20]
mov dword [esp + 0x3a8], ecx
mov byte [esp + 0x3ac], bl
mov byte [esp + 0x3a6], 5
call fcn.10033b90
test eax, eax
je 0x100359db
call fcn.100353f0
mov eax, 0x400
jmp 0x10035e4e
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
lea ecx, [edx + eax + 0x1e]
add dword [ebp + 0x18], ecx
cmp dword [ebp + 0x14], 0
je 0x100359fd
call fcn.100353f0
mov eax, dword [ebp + 0x14]
jmp 0x10035e4e
mov edi, dword [ebp]
lea esi, [ebp + 0x30]
mov dword [esi], 0x12345678
mov dword [ebp + 0x34], 0x23456789
mov dword [ebp + 0x38], 0x34567890
test edi, edi
je 0x10035a32
jmp 0x10035a20
mov cl, byte [edi]
test cl, cl
je 0x10035a32
mov edx, esi
call fcn.10034700
add edi, 1
jne 0x10035a20
cmp byte [0x101236fb], 0
jne 0x10035a55
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, eax
push edi
call dword [sym.imp.MSVCR90.dll_srand]
add esp, 4
mov ebx, dword [sym.imp.MSVCR90.dll_rand]
xor edi, edi
lea ecx, [ecx]
call ebx
sar eax, 7
mov byte [esp + edi + 0x384], al
inc edi
cmp edi, 0xc
jl 0x10035a60
mov edx, dword [esp + 0x28]
shr edx, 8
mov byte [esp + 0x38f], dl
xor ebx, ebx
mov cl, byte [esp + ebx + 0x384]
movsx ecx, cl
mov edi, dword [esi]
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x100fd500]
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 + 0x100fd500]
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 + 0x100fd500]
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 + 0x100fd500]
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 + 0x100fd500]
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 + 0x100fd500]
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 + 0x100fd500]
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 + 0x100fd500]
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 0x10035a82
mov bl, byte [esp + 0x13]
xor esi, esi
cmp dword [ebp], esi
je 0x10035c86
test bl, bl
jne 0x10035c76
push 0xc
lea ecx, [esp + 0x388]
push ecx
mov ecx, ebp
call fcn.10034d90
add dword [ebp + 0x18], 0xc
cmp dword [ebp], esi
je 0x10035c86
test bl, bl
jne 0x10035c86
mov eax, 1
jmp 0x10035c88
xor eax, eax
test bl, bl
mov ebx, dword [esp + 0x14]
mov byte [ebp + 0x2d], al
jne 0x10035cb7
cmp ebx, 8
jne 0x10035ca8
lea edx, [esp + 0x20]
push edx
mov edi, ebp
call fcn.10035450
mov esi, eax
jmp 0x10035cbd
cmp ebx, esi
jne 0x10035cbd
mov eax, ebp
call fcn.10035580
mov esi, eax
jmp 0x10035cbd
mov dword [ebp + 0x90], esi
cmp byte [ebp + 0x80], 0
mov byte [ebp + 0x2d], 0
je 0x10035cd8
mov eax, dword [ebp + 0x7c]
test eax, eax
je 0x10035cd8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 0x90]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x74]
add dword [ebp + 0x18], edx
mov dword [ebp + 0x7c], 0
mov dword [ebp + 0x70], ecx
test eax, eax
jne 0x10035e4e
test esi, esi
jne 0x100359d1
mov eax, dword [esp + 0x18]
mov esi, dword [ebp + 0x78]
add eax, edx
cmp dword [esp + 0x30], eax
mov dword [esp + 0x2c], esi
sete dl
cmp byte [ebp + 0x1c], 0
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
je 0x10035d8d
cmp dword [ebp], 0
je 0x10035d30
cmp byte [esp + 0x13], 0
je 0x10035d8d
test byte [esp + 0x24], 1
mov word [esp + 0x26], bx
jne 0x10035d46
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 [ebp + 0x10]
mov eax, ebp
call fcn.10034ee0
test al, al
je 0x10035d83
mov esi, ebp
lea edi, [esp + 0x20]
call fcn.10033b90
test eax, eax
jne 0x100359d1
mov edx, dword [ebp + 0x18]
mov eax, ebp
call fcn.10034ee0
test al, al
jne 0x10035dc7
mov eax, 0x2000000
jmp 0x10035e4e
cmp word [esp + 0x26], bx
je 0x10035d9e
mov eax, 0x4000000
jmp 0x10035e4e
test ebx, ebx
jne 0x10035da6
test dl, dl
je 0x10035d94
mov esi, ebp
lea edi, [esp + 0x20]
call fcn.10033e60
test eax, eax
jne 0x100359d1
mov ax, word [esp + 0x4c]
add dword [ebp + 0x18], 0x10
mov word [esp + 0x24], ax
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x10035e4e
mov ecx, dword [esp + 0x40]
push ecx
call sub.mfc90u.dll_new__
mov edx, dword [esp + 0x44]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x160]
push edx
push eax
push esi
call sub.MSVCR90.dll_memcpy
add esp, 0xc
push 0x360
mov dword [esp + 0x164], esi
call sub.mfc90u.dll_new
mov ecx, 0xd8
lea esi, [esp + 0x24]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x44]
add esp, 4
test ecx, ecx
jne 0x10035e26
mov dword [ebp + 0x44], eax
xor eax, eax
jmp 0x10035e4e
cmp dword [ecx + 0x35c], 0
je 0x10035e3f
nop
mov ecx, dword [ecx + 0x35c]
cmp dword [ecx + 0x35c], 0
jne 0x10035e30
mov dword [ecx + 0x35c], eax
xor eax, eax
jmp 0x10035e4e
mov eax, 0x10000
mov ecx, dword [esp + 0x7c4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100e7da2
add esp, 0x7b8
ret 0xc